
Model.TssV2TransactionsGet200ResponsePaymentInformationBank Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 Model;
import java.util.Objects;
import java.util.Arrays;
import Model.TssV2TransactionsGet200ResponsePaymentInformationBankAccount;
import Model.TssV2TransactionsGet200ResponsePaymentInformationBankMandate;
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;
/**
* TssV2TransactionsGet200ResponsePaymentInformationBank
*/
public class TssV2TransactionsGet200ResponsePaymentInformationBank {
@SerializedName("routingNumber")
private String routingNumber = null;
@SerializedName("branchCode")
private String branchCode = null;
@SerializedName("swiftCode")
private String swiftCode = null;
@SerializedName("bankCode")
private String bankCode = null;
@SerializedName("iban")
private String iban = null;
@SerializedName("account")
private TssV2TransactionsGet200ResponsePaymentInformationBankAccount account = null;
@SerializedName("mandate")
private TssV2TransactionsGet200ResponsePaymentInformationBankMandate mandate = null;
public TssV2TransactionsGet200ResponsePaymentInformationBank routingNumber(String routingNumber) {
this.routingNumber = routingNumber;
return this;
}
/**
* Bank routing number. This is also called the transit number.
* @return routingNumber
**/
@ApiModelProperty(value = "Bank routing number. This is also called the transit number. ")
public String getRoutingNumber() {
return routingNumber;
}
public void setRoutingNumber(String routingNumber) {
this.routingNumber = routingNumber;
}
public TssV2TransactionsGet200ResponsePaymentInformationBank branchCode(String branchCode) {
this.branchCode = branchCode;
return this;
}
/**
* Code used to identify the branch of the customer's bank. Required for some countries if you do not or are not allowed to provide the IBAN. Use this field only when scoring a direct debit transaction.
* @return branchCode
**/
@ApiModelProperty(value = "Code used to identify the branch of the customer's bank. Required for some countries if you do not or are not allowed to provide the IBAN. Use this field only when scoring a direct debit transaction. ")
public String getBranchCode() {
return branchCode;
}
public void setBranchCode(String branchCode) {
this.branchCode = branchCode;
}
public TssV2TransactionsGet200ResponsePaymentInformationBank swiftCode(String swiftCode) {
this.swiftCode = swiftCode;
return this;
}
/**
* Bank's SWIFT code. You can use this field only when scoring a direct debit transaction. Required only for crossborder transactions.
* @return swiftCode
**/
@ApiModelProperty(value = "Bank's SWIFT code. You can use this field only when scoring a direct debit transaction. Required only for crossborder transactions. ")
public String getSwiftCode() {
return swiftCode;
}
public void setSwiftCode(String swiftCode) {
this.swiftCode = swiftCode;
}
public TssV2TransactionsGet200ResponsePaymentInformationBank bankCode(String bankCode) {
this.bankCode = bankCode;
return this;
}
/**
* Country-specific code used to identify the customer's bank. Required for some countries if you do not or are not allowed to provide the IBAN instead. You can use this field only when scoring a direct debit transaction.
* @return bankCode
**/
@ApiModelProperty(value = "Country-specific code used to identify the customer's bank. Required for some countries if you do not or are not allowed to provide the IBAN instead. You can use this field only when scoring a direct debit transaction. ")
public String getBankCode() {
return bankCode;
}
public void setBankCode(String bankCode) {
this.bankCode = bankCode;
}
public TssV2TransactionsGet200ResponsePaymentInformationBank iban(String iban) {
this.iban = iban;
return this;
}
/**
* International Bank Account Number (IBAN) for the bank account. For some countries you can provide this number instead of the traditional bank account information. You can use this field only when scoring a direct debit transaction.
* @return iban
**/
@ApiModelProperty(value = "International Bank Account Number (IBAN) for the bank account. For some countries you can provide this number instead of the traditional bank account information. You can use this field only when scoring a direct debit transaction. ")
public String getIban() {
return iban;
}
public void setIban(String iban) {
this.iban = iban;
}
public TssV2TransactionsGet200ResponsePaymentInformationBank account(TssV2TransactionsGet200ResponsePaymentInformationBankAccount account) {
this.account = account;
return this;
}
/**
* Get account
* @return account
**/
@ApiModelProperty(value = "")
public TssV2TransactionsGet200ResponsePaymentInformationBankAccount getAccount() {
return account;
}
public void setAccount(TssV2TransactionsGet200ResponsePaymentInformationBankAccount account) {
this.account = account;
}
public TssV2TransactionsGet200ResponsePaymentInformationBank mandate(TssV2TransactionsGet200ResponsePaymentInformationBankMandate mandate) {
this.mandate = mandate;
return this;
}
/**
* Get mandate
* @return mandate
**/
@ApiModelProperty(value = "")
public TssV2TransactionsGet200ResponsePaymentInformationBankMandate getMandate() {
return mandate;
}
public void setMandate(TssV2TransactionsGet200ResponsePaymentInformationBankMandate mandate) {
this.mandate = mandate;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TssV2TransactionsGet200ResponsePaymentInformationBank tssV2TransactionsGet200ResponsePaymentInformationBank = (TssV2TransactionsGet200ResponsePaymentInformationBank) o;
return Objects.equals(this.routingNumber, tssV2TransactionsGet200ResponsePaymentInformationBank.routingNumber) &&
Objects.equals(this.branchCode, tssV2TransactionsGet200ResponsePaymentInformationBank.branchCode) &&
Objects.equals(this.swiftCode, tssV2TransactionsGet200ResponsePaymentInformationBank.swiftCode) &&
Objects.equals(this.bankCode, tssV2TransactionsGet200ResponsePaymentInformationBank.bankCode) &&
Objects.equals(this.iban, tssV2TransactionsGet200ResponsePaymentInformationBank.iban) &&
Objects.equals(this.account, tssV2TransactionsGet200ResponsePaymentInformationBank.account) &&
Objects.equals(this.mandate, tssV2TransactionsGet200ResponsePaymentInformationBank.mandate);
}
@Override
public int hashCode() {
return Objects.hash(routingNumber, branchCode, swiftCode, bankCode, iban, account, mandate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TssV2TransactionsGet200ResponsePaymentInformationBank {\n");
if (routingNumber != null) sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n");
if (branchCode != null) sb.append(" branchCode: ").append(toIndentedString(branchCode)).append("\n");
if (swiftCode != null) sb.append(" swiftCode: ").append(toIndentedString(swiftCode)).append("\n");
if (bankCode != null) sb.append(" bankCode: ").append(toIndentedString(bankCode)).append("\n");
if (iban != null) sb.append(" iban: ").append(toIndentedString(iban)).append("\n");
if (account != null) sb.append(" account: ").append(toIndentedString(account)).append("\n");
if (mandate != null) sb.append(" mandate: ").append(toIndentedString(mandate)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy