com.plaid.client.model.NumbersACH 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.503.5
*
*
* 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Identifying information for transferring money to or from a US account via ACH or wire transfer.
*/
@ApiModel(description = "Identifying information for transferring money to or from a US account via ACH or wire transfer.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-28T21:00:55.745394Z[Etc/UTC]")
public class NumbersACH {
public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
private String accountId;
public static final String SERIALIZED_NAME_ACCOUNT = "account";
@SerializedName(SERIALIZED_NAME_ACCOUNT)
private String account;
public static final String SERIALIZED_NAME_ROUTING = "routing";
@SerializedName(SERIALIZED_NAME_ROUTING)
private String routing;
public static final String SERIALIZED_NAME_WIRE_ROUTING = "wire_routing";
@SerializedName(SERIALIZED_NAME_WIRE_ROUTING)
private String wireRouting;
public static final String SERIALIZED_NAME_CAN_TRANSFER_IN = "can_transfer_in";
@SerializedName(SERIALIZED_NAME_CAN_TRANSFER_IN)
private Boolean canTransferIn;
public static final String SERIALIZED_NAME_CAN_TRANSFER_OUT = "can_transfer_out";
@SerializedName(SERIALIZED_NAME_CAN_TRANSFER_OUT)
private Boolean canTransferOut;
public NumbersACH accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* The Plaid account ID associated with the account numbers
* @return accountId
**/
@ApiModelProperty(required = true, value = "The Plaid account ID associated with the account numbers")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public NumbersACH account(String account) {
this.account = account;
return this;
}
/**
* The ACH account number for the account. Note that when using OAuth with Chase Bank (`ins_56`), Chase will issue \"tokenized\" routing and account numbers, which are not the user's actual account and routing numbers. These tokenized account numbers (also known as TANs) should work identically to normal account and routing numbers. The digits returned in the `mask` field will continue to reflect the actual account number, rather than the tokenized account number; for this reason, when displaying account numbers to the user to help them identify their account in your UI, always use the `mask` rather than truncating the `account` number. If a user revokes their permissions to your app, the tokenized numbers will no longer work.
* @return account
**/
@ApiModelProperty(required = true, value = "The ACH account number for the account. Note that when using OAuth with Chase Bank (`ins_56`), Chase will issue \"tokenized\" routing and account numbers, which are not the user's actual account and routing numbers. These tokenized account numbers (also known as TANs) should work identically to normal account and routing numbers. The digits returned in the `mask` field will continue to reflect the actual account number, rather than the tokenized account number; for this reason, when displaying account numbers to the user to help them identify their account in your UI, always use the `mask` rather than truncating the `account` number. If a user revokes their permissions to your app, the tokenized numbers will no longer work.")
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public NumbersACH routing(String routing) {
this.routing = routing;
return this;
}
/**
* The ACH routing number for the account. If the institution is `ins_56`, this may be a tokenized routing number. For more information, see the description of the `account` field.
* @return routing
**/
@ApiModelProperty(required = true, value = "The ACH routing number for the account. If the institution is `ins_56`, this may be a tokenized routing number. For more information, see the description of the `account` field.")
public String getRouting() {
return routing;
}
public void setRouting(String routing) {
this.routing = routing;
}
public NumbersACH wireRouting(String wireRouting) {
this.wireRouting = wireRouting;
return this;
}
/**
* The wire transfer routing number for the account, if available
* @return wireRouting
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The wire transfer routing number for the account, if available")
public String getWireRouting() {
return wireRouting;
}
public void setWireRouting(String wireRouting) {
this.wireRouting = wireRouting;
}
public NumbersACH canTransferIn(Boolean canTransferIn) {
this.canTransferIn = canTransferIn;
return this;
}
/**
* Whether the account supports ACH transfers into the account
* @return canTransferIn
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Whether the account supports ACH transfers into the account")
public Boolean getCanTransferIn() {
return canTransferIn;
}
public void setCanTransferIn(Boolean canTransferIn) {
this.canTransferIn = canTransferIn;
}
public NumbersACH canTransferOut(Boolean canTransferOut) {
this.canTransferOut = canTransferOut;
return this;
}
/**
* Whether the account supports ACH transfers out of the account
* @return canTransferOut
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Whether the account supports ACH transfers out of the account")
public Boolean getCanTransferOut() {
return canTransferOut;
}
public void setCanTransferOut(Boolean canTransferOut) {
this.canTransferOut = canTransferOut;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NumbersACH numbersACH = (NumbersACH) o;
return Objects.equals(this.accountId, numbersACH.accountId) &&
Objects.equals(this.account, numbersACH.account) &&
Objects.equals(this.routing, numbersACH.routing) &&
Objects.equals(this.wireRouting, numbersACH.wireRouting) &&
Objects.equals(this.canTransferIn, numbersACH.canTransferIn) &&
Objects.equals(this.canTransferOut, numbersACH.canTransferOut);
}
@Override
public int hashCode() {
return Objects.hash(accountId, account, routing, wireRouting, canTransferIn, canTransferOut);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NumbersACH {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" account: ").append(toIndentedString(account)).append("\n");
sb.append(" routing: ").append(toIndentedString(routing)).append("\n");
sb.append(" wireRouting: ").append(toIndentedString(wireRouting)).append("\n");
sb.append(" canTransferIn: ").append(toIndentedString(canTransferIn)).append("\n");
sb.append(" canTransferOut: ").append(toIndentedString(canTransferOut)).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