org.openapitools.client.model.AuBecsDebit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuora-sdk-java Show documentation
Show all versions of zuora-sdk-java Show documentation
The SDK of JAVA language for Zuora pricing system
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/
package org.openapitools.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 org.openapitools.client.model.Mandate;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* If the `type` of the payment method is `au_becs_debit`, this hash contains details about the BECS bank account.
*/
@ApiModel(description = "If the `type` of the payment method is `au_becs_debit`, this hash contains details about the BECS bank account.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AuBecsDebit {
public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "account_number";
@SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
private String accountNumber;
public static final String SERIALIZED_NAME_BRANCH_CODE = "branch_code";
@SerializedName(SERIALIZED_NAME_BRANCH_CODE)
private String branchCode;
public static final String SERIALIZED_NAME_MANDATE = "mandate";
@SerializedName(SERIALIZED_NAME_MANDATE)
private Mandate mandate;
public AuBecsDebit() {
}
public AuBecsDebit accountNumber(String accountNumber) {
this.accountNumber = accountNumber;
return this;
}
/**
* The bank account number of the account holder.
* @return accountNumber
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The bank account number of the account holder.")
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
public AuBecsDebit branchCode(String branchCode) {
this.branchCode = branchCode;
return this;
}
/**
* Identifier of the bank branch associated with this bank account.
* @return branchCode
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Identifier of the bank branch associated with this bank account.")
public String getBranchCode() {
return branchCode;
}
public void setBranchCode(String branchCode) {
this.branchCode = branchCode;
}
public AuBecsDebit mandate(Mandate mandate) {
this.mandate = mandate;
return this;
}
/**
* Get mandate
* @return mandate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Mandate getMandate() {
return mandate;
}
public void setMandate(Mandate mandate) {
this.mandate = mandate;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuBecsDebit auBecsDebit = (AuBecsDebit) o;
return Objects.equals(this.accountNumber, auBecsDebit.accountNumber) &&
Objects.equals(this.branchCode, auBecsDebit.branchCode) &&
Objects.equals(this.mandate, auBecsDebit.mandate);
}
@Override
public int hashCode() {
return Objects.hash(accountNumber, branchCode, mandate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuBecsDebit {\n");
sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
sb.append(" branchCode: ").append(toIndentedString(branchCode)).append("\n");
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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy