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 specific transactions parameters
*/
@ApiModel(description = "Update specific transactions parameters")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class UpdateMultipleTransactionsParams {
@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;
@SerializedName("ids")
private List ids = null;
@SerializedName("accountIds")
private List accountIds = null;
public UpdateMultipleTransactionsParams 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 UpdateMultipleTransactionsParams 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 UpdateMultipleTransactionsParams 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 UpdateMultipleTransactionsParams 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 UpdateMultipleTransactionsParams labelIds(List labelIds) {
this.labelIds = labelIds;
return this;
}
public UpdateMultipleTransactionsParams 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;
}
public UpdateMultipleTransactionsParams ids(List ids) {
this.ids = ids;
return this;
}
public UpdateMultipleTransactionsParams addIdsItem(Long idsItem) {
if (this.ids == null) {
this.ids = new ArrayList();
}
this.ids.add(idsItem);
return this;
}
/**
* A comma-separated list of transaction identifiers. If specified, then only transactions whose identifier match any of the given identifiers will be regarded. The maximum number of identifiers is 100.
* @return ids
**/
@ApiModelProperty(example = "[1,2,3]", value = "A comma-separated list of transaction identifiers. If specified, then only transactions whose identifier match any of the given identifiers will be regarded. The maximum number of identifiers is 100.")
public List getIds() {
return ids;
}
public void setIds(List ids) {
this.ids = ids;
}
public UpdateMultipleTransactionsParams accountIds(List accountIds) {
this.accountIds = accountIds;
return this;
}
public UpdateMultipleTransactionsParams addAccountIdsItem(Long accountIdsItem) {
if (this.accountIds == null) {
this.accountIds = new ArrayList();
}
this.accountIds.add(accountIdsItem);
return this;
}
/**
* A comma-separated list of account identifiers. If specified, then only transactions whose account's identifier is included in this list will be regarded.
* @return accountIds
**/
@ApiModelProperty(example = "[1,2,3]", value = "A comma-separated list of account identifiers. If specified, then only transactions whose account's identifier is included in this list will be regarded.")
public List getAccountIds() {
return accountIds;
}
public void setAccountIds(List accountIds) {
this.accountIds = accountIds;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateMultipleTransactionsParams updateMultipleTransactionsParams = (UpdateMultipleTransactionsParams) o;
return Objects.equals(this.isNew, updateMultipleTransactionsParams.isNew) &&
Objects.equals(this.isPotentialDuplicate, updateMultipleTransactionsParams.isPotentialDuplicate) &&
Objects.equals(this.categoryId, updateMultipleTransactionsParams.categoryId) &&
Objects.equals(this.trainCategorization, updateMultipleTransactionsParams.trainCategorization) &&
Objects.equals(this.labelIds, updateMultipleTransactionsParams.labelIds) &&
Objects.equals(this.ids, updateMultipleTransactionsParams.ids) &&
Objects.equals(this.accountIds, updateMultipleTransactionsParams.accountIds);
}
@Override
public int hashCode() {
return Objects.hash(isNew, isPotentialDuplicate, categoryId, trainCategorization, labelIds, ids, accountIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateMultipleTransactionsParams {\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(" ids: ").append(toIndentedString(ids)).append("\n");
sb.append(" accountIds: ").append(toIndentedString(accountIds)).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 ");
}
}