com.plaid.client.model.ConsentedAccount 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.565.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.AccountSubtype;
import com.plaid.client.model.AccountType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* A financial institution account.
*/
@ApiModel(description = "A financial institution account.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-17T16:42:02.150702Z[Etc/UTC]")
public class ConsentedAccount {
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_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private AccountType type;
public static final String SERIALIZED_NAME_SUBTYPE = "subtype";
@SerializedName(SERIALIZED_NAME_SUBTYPE)
private AccountSubtype subtype;
public ConsentedAccount accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Plaid’s unique identifier for the account. Like all Plaid identifiers, the `account_id` is case sensitive.
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Plaid’s unique identifier for the account. Like all Plaid identifiers, the `account_id` is case sensitive.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public ConsentedAccount mask(String mask) {
this.mask = mask;
return this;
}
/**
* The last 2-4 alphanumeric characters of an account's official account number
* @return mask
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The last 2-4 alphanumeric characters of an account's official account number")
public String getMask() {
return mask;
}
public void setMask(String mask) {
this.mask = mask;
}
public ConsentedAccount name(String name) {
this.name = name;
return this;
}
/**
* The name of the account, either assigned by the user or by the financial institution itself
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The name of the account, either assigned by the user or by the financial institution itself")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ConsentedAccount officialName(String officialName) {
this.officialName = officialName;
return this;
}
/**
* The official name of the account as given by the financial institution
* @return officialName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The official name of the account as given by the financial institution")
public String getOfficialName() {
return officialName;
}
public void setOfficialName(String officialName) {
this.officialName = officialName;
}
public ConsentedAccount type(AccountType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AccountType getType() {
return type;
}
public void setType(AccountType type) {
this.type = type;
}
public ConsentedAccount subtype(AccountSubtype subtype) {
this.subtype = subtype;
return this;
}
/**
* Get subtype
* @return subtype
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AccountSubtype getSubtype() {
return subtype;
}
public void setSubtype(AccountSubtype subtype) {
this.subtype = subtype;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConsentedAccount consentedAccount = (ConsentedAccount) o;
return Objects.equals(this.accountId, consentedAccount.accountId) &&
Objects.equals(this.mask, consentedAccount.mask) &&
Objects.equals(this.name, consentedAccount.name) &&
Objects.equals(this.officialName, consentedAccount.officialName) &&
Objects.equals(this.type, consentedAccount.type) &&
Objects.equals(this.subtype, consentedAccount.subtype);
}
@Override
public int hashCode() {
return Objects.hash(accountId, mask, name, officialName, type, subtype);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConsentedAccount {\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(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" subtype: ").append(toIndentedString(subtype)).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 - 2024 Weber Informatics LLC | Privacy Policy