com.plaid.client.model.CraBankIncomeAccount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plaid-java Show documentation
Show all versions of plaid-java Show documentation
Bindings for the Plaid (plaid.com) API.
/*
* The Plaid API
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* The version of the OpenAPI document: 2020-09-14_1.575.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.plaid.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 com.plaid.client.model.CreditBankIncomeAccountType;
import com.plaid.client.model.DepositoryAccountSubtype;
import com.plaid.client.model.Owner;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* The Item's bank accounts that have the selected data.
*/
@ApiModel(description = "The Item's bank accounts that have the selected data.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-09T17:51:17.896278Z[Etc/UTC]")
public class CraBankIncomeAccount {
public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
private String accountId;
public static final String SERIALIZED_NAME_MASK = "mask";
@SerializedName(SERIALIZED_NAME_MASK)
private String mask;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_OFFICIAL_NAME = "official_name";
@SerializedName(SERIALIZED_NAME_OFFICIAL_NAME)
private String officialName;
public static final String SERIALIZED_NAME_SUBTYPE = "subtype";
@SerializedName(SERIALIZED_NAME_SUBTYPE)
private DepositoryAccountSubtype subtype;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private CreditBankIncomeAccountType type;
public static final String SERIALIZED_NAME_OWNERS = "owners";
@SerializedName(SERIALIZED_NAME_OWNERS)
private List owners = new ArrayList<>();
public CraBankIncomeAccount accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new `account_id` will be assigned to the account. If an account with a specific `account_id` disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API. Like all Plaid identifiers, the `account_id` is case sensitive.
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new `account_id` will be assigned to the account. If an account with a specific `account_id` disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API. Like all Plaid identifiers, the `account_id` is case sensitive.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public CraBankIncomeAccount mask(String mask) {
this.mask = mask;
return this;
}
/**
* The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.
* @return mask
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.")
public String getMask() {
return mask;
}
public void setMask(String mask) {
this.mask = mask;
}
public CraBankIncomeAccount name(String name) {
this.name = name;
return this;
}
/**
* The name of the bank account.
* @return name
**/
@ApiModelProperty(required = true, value = "The name of the bank account.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CraBankIncomeAccount officialName(String officialName) {
this.officialName = officialName;
return this;
}
/**
* The official name of the bank account.
* @return officialName
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The official name of the bank account.")
public String getOfficialName() {
return officialName;
}
public void setOfficialName(String officialName) {
this.officialName = officialName;
}
public CraBankIncomeAccount subtype(DepositoryAccountSubtype subtype) {
this.subtype = subtype;
return this;
}
/**
* Get subtype
* @return subtype
**/
@ApiModelProperty(required = true, value = "")
public DepositoryAccountSubtype getSubtype() {
return subtype;
}
public void setSubtype(DepositoryAccountSubtype subtype) {
this.subtype = subtype;
}
public CraBankIncomeAccount type(CreditBankIncomeAccountType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(required = true, value = "")
public CreditBankIncomeAccountType getType() {
return type;
}
public void setType(CreditBankIncomeAccountType type) {
this.type = type;
}
public CraBankIncomeAccount owners(List owners) {
this.owners = owners;
return this;
}
public CraBankIncomeAccount addOwnersItem(Owner ownersItem) {
this.owners.add(ownersItem);
return this;
}
/**
* Data returned by the financial institution about the account owner or owners. Identity information is optional, so field may return an empty array.
* @return owners
**/
@ApiModelProperty(required = true, value = "Data returned by the financial institution about the account owner or owners. Identity information is optional, so field may return an empty array.")
public List getOwners() {
return owners;
}
public void setOwners(List owners) {
this.owners = owners;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CraBankIncomeAccount craBankIncomeAccount = (CraBankIncomeAccount) o;
return Objects.equals(this.accountId, craBankIncomeAccount.accountId) &&
Objects.equals(this.mask, craBankIncomeAccount.mask) &&
Objects.equals(this.name, craBankIncomeAccount.name) &&
Objects.equals(this.officialName, craBankIncomeAccount.officialName) &&
Objects.equals(this.subtype, craBankIncomeAccount.subtype) &&
Objects.equals(this.type, craBankIncomeAccount.type) &&
Objects.equals(this.owners, craBankIncomeAccount.owners);
}
@Override
public int hashCode() {
return Objects.hash(accountId, mask, name, officialName, subtype, type, owners);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CraBankIncomeAccount {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" mask: ").append(toIndentedString(mask)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" officialName: ").append(toIndentedString(officialName)).append("\n");
sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" owners: ").append(toIndentedString(owners)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy