Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* finAPI RESTful Services
* finAPI RESTful Services
*
* OpenAPI spec version: v1.64.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Update transactions parameters
*/
@ApiModel(description = "Update transactions parameters")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class UpdateTransactionsParams {
@SerializedName("isNew")
private Boolean isNew = null;
@SerializedName("isPotentialDuplicate")
private Boolean isPotentialDuplicate = null;
@SerializedName("categoryId")
private Long categoryId = null;
@SerializedName("trainCategorization")
private Boolean trainCategorization = true;
@SerializedName("labelIds")
private List labelIds = null;
public UpdateTransactionsParams isNew(Boolean isNew) {
this.isNew = isNew;
return this;
}
/**
* Whether this transactions should be flagged as 'new' or not. Any newly imported transaction will have this flag initially set to true. How you use this field is up to your interpretation. For example, you might want to set it to false once a user has clicked on/seen the transaction.
* @return isNew
**/
@ApiModelProperty(example = "false", value = "Whether this transactions should be flagged as 'new' or not. Any newly imported transaction will have this flag initially set to true. How you use this field is up to your interpretation. For example, you might want to set it to false once a user has clicked on/seen the transaction.")
public Boolean isIsNew() {
return isNew;
}
public void setIsNew(Boolean isNew) {
this.isNew = isNew;
}
public UpdateTransactionsParams isPotentialDuplicate(Boolean isPotentialDuplicate) {
this.isPotentialDuplicate = isPotentialDuplicate;
return this;
}
/**
* You can set this field only to 'false'. finAPI marks transactions as a potential duplicates when its internal duplicate detection algorithm is signaling so. Transactions that are flagged as duplicates can be deleted by the user. To prevent the user from deleting original transactions, which might lead to incorrect balances, it is not possible to manually set this flag to 'true'.
* @return isPotentialDuplicate
**/
@ApiModelProperty(example = "false", value = "You can set this field only to 'false'. finAPI marks transactions as a potential duplicates when its internal duplicate detection algorithm is signaling so. Transactions that are flagged as duplicates can be deleted by the user. To prevent the user from deleting original transactions, which might lead to incorrect balances, it is not possible to manually set this flag to 'true'.")
public Boolean isIsPotentialDuplicate() {
return isPotentialDuplicate;
}
public void setIsPotentialDuplicate(Boolean isPotentialDuplicate) {
this.isPotentialDuplicate = isPotentialDuplicate;
}
public UpdateTransactionsParams categoryId(Long categoryId) {
this.categoryId = categoryId;
return this;
}
/**
* Identifier of the new category to apply to the transaction. When updating the transaction's category, the category's fields 'id', 'name', 'parentId', 'parentName', and 'isCustom' will all get updated. To clear the category for the transaction, the categoryId field must be passed with value 0.
* @return categoryId
**/
@ApiModelProperty(example = "378", value = "Identifier of the new category to apply to the transaction. When updating the transaction's category, the category's fields 'id', 'name', 'parentId', 'parentName', and 'isCustom' will all get updated. To clear the category for the transaction, the categoryId field must be passed with value 0.")
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
public UpdateTransactionsParams trainCategorization(Boolean trainCategorization) {
this.trainCategorization = trainCategorization;
return this;
}
/**
* This field is only regarded when the field 'categoryId' is set. It controls whether finAPI's categorization system should learn from the given categorization(s). If set to 'true', then the user's categorization rules will be updated so that similar transactions will get categorized accordingly in future. If set to 'false', then the service will simply change the category of the given transaction(s), without updating the user's categorization rules. The field defaults to 'true' if not specified.
* @return trainCategorization
**/
@ApiModelProperty(example = "true", value = "This field is only regarded when the field 'categoryId' is set. It controls whether finAPI's categorization system should learn from the given categorization(s). If set to 'true', then the user's categorization rules will be updated so that similar transactions will get categorized accordingly in future. If set to 'false', then the service will simply change the category of the given transaction(s), without updating the user's categorization rules. The field defaults to 'true' if not specified.")
public Boolean isTrainCategorization() {
return trainCategorization;
}
public void setTrainCategorization(Boolean trainCategorization) {
this.trainCategorization = trainCategorization;
}
public UpdateTransactionsParams labelIds(List labelIds) {
this.labelIds = labelIds;
return this;
}
public UpdateTransactionsParams addLabelIdsItem(Long labelIdsItem) {
if (this.labelIds == null) {
this.labelIds = new ArrayList();
}
this.labelIds.add(labelIdsItem);
return this;
}
/**
* Identifiers of labels to apply to the transaction. To clear transactions' labels, pass an empty array of identifiers: '[]'
* @return labelIds
**/
@ApiModelProperty(example = "[1,2,3]", value = "Identifiers of labels to apply to the transaction. To clear transactions' labels, pass an empty array of identifiers: '[]'")
public List getLabelIds() {
return labelIds;
}
public void setLabelIds(List labelIds) {
this.labelIds = labelIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateTransactionsParams updateTransactionsParams = (UpdateTransactionsParams) o;
return Objects.equals(this.isNew, updateTransactionsParams.isNew) &&
Objects.equals(this.isPotentialDuplicate, updateTransactionsParams.isPotentialDuplicate) &&
Objects.equals(this.categoryId, updateTransactionsParams.categoryId) &&
Objects.equals(this.trainCategorization, updateTransactionsParams.trainCategorization) &&
Objects.equals(this.labelIds, updateTransactionsParams.labelIds);
}
@Override
public int hashCode() {
return Objects.hash(isNew, isPotentialDuplicate, categoryId, trainCategorization, labelIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateTransactionsParams {\n");
sb.append(" isNew: ").append(toIndentedString(isNew)).append("\n");
sb.append(" isPotentialDuplicate: ").append(toIndentedString(isPotentialDuplicate)).append("\n");
sb.append(" categoryId: ").append(toIndentedString(categoryId)).append("\n");
sb.append(" trainCategorization: ").append(toIndentedString(trainCategorization)).append("\n");
sb.append(" labelIds: ").append(toIndentedString(labelIds)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}