
org.openapitools.client.model.BetalingsDebit 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 `betalings_debit`, this hash contains details about the Betalingsservice bank account.
*/
@ApiModel(description = "If the `type` of the payment method is `betalings_debit`, this hash contains details about the Betalingsservice bank account.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BetalingsDebit {
public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "account_number";
@SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
private String accountNumber;
public static final String SERIALIZED_NAME_IDENTITY_NUMBER = "identity_number";
@SerializedName(SERIALIZED_NAME_IDENTITY_NUMBER)
private String identityNumber;
public static final String SERIALIZED_NAME_BANK_CODE = "bank_code";
@SerializedName(SERIALIZED_NAME_BANK_CODE)
private String bankCode;
public static final String SERIALIZED_NAME_MANDATE = "mandate";
@SerializedName(SERIALIZED_NAME_MANDATE)
private Mandate mandate;
public BetalingsDebit() {
}
public BetalingsDebit 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 BetalingsDebit identityNumber(String identityNumber) {
this.identityNumber = identityNumber;
return this;
}
/**
* The identity number used for Betalingsservice (Direct Debit DK).
* @return identityNumber
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The identity number used for Betalingsservice (Direct Debit DK).")
public String getIdentityNumber() {
return identityNumber;
}
public void setIdentityNumber(String identityNumber) {
this.identityNumber = identityNumber;
}
public BetalingsDebit bankCode(String bankCode) {
this.bankCode = bankCode;
return this;
}
/**
* Identifier of the bank associated with this bank account.
* @return bankCode
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Identifier of the bank associated with this bank account.")
public String getBankCode() {
return bankCode;
}
public void setBankCode(String bankCode) {
this.bankCode = bankCode;
}
public BetalingsDebit 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;
}
BetalingsDebit betalingsDebit = (BetalingsDebit) o;
return Objects.equals(this.accountNumber, betalingsDebit.accountNumber) &&
Objects.equals(this.identityNumber, betalingsDebit.identityNumber) &&
Objects.equals(this.bankCode, betalingsDebit.bankCode) &&
Objects.equals(this.mandate, betalingsDebit.mandate);
}
@Override
public int hashCode() {
return Objects.hash(accountNumber, identityNumber, bankCode, mandate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BetalingsDebit {\n");
sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
sb.append(" identityNumber: ").append(toIndentedString(identityNumber)).append("\n");
sb.append(" bankCode: ").append(toIndentedString(bankCode)).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