org.openapitools.client.model.AccountPaymentMethodRequest 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 java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.model.Account;
import org.openapitools.client.model.AchDebit;
import org.openapitools.client.model.ApplePay;
import org.openapitools.client.model.AuBecsDebit;
import org.openapitools.client.model.AutogiroDebit;
import org.openapitools.client.model.BacsDebit;
import org.openapitools.client.model.BetalingsDebit;
import org.openapitools.client.model.BillingDetails;
import org.openapitools.client.model.Card;
import org.openapitools.client.model.CcRef;
import org.openapitools.client.model.CustomObject;
import org.openapitools.client.model.GooglePay;
import org.openapitools.client.model.ListCustomObjectResponse;
import org.openapitools.client.model.NzBecsDebit;
import org.openapitools.client.model.PadDebit;
import org.openapitools.client.model.PaypalAdaptive;
import org.openapitools.client.model.PaypalExpress;
import org.openapitools.client.model.PaypalExpressNative;
import org.openapitools.client.model.SepaDebit;
import org.openapitools.jackson.nullable.JsonNullable;
import org.threeten.bp.OffsetDateTime;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* AccountPaymentMethodRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccountPaymentMethodRequest {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_UPDATED_BY_ID = "updated_by_id";
@SerializedName(SERIALIZED_NAME_UPDATED_BY_ID)
private String updatedById;
public static final String SERIALIZED_NAME_UPDATED_TIME = "updated_time";
@SerializedName(SERIALIZED_NAME_UPDATED_TIME)
private OffsetDateTime updatedTime;
public static final String SERIALIZED_NAME_CREATED_BY_ID = "created_by_id";
@SerializedName(SERIALIZED_NAME_CREATED_BY_ID)
private String createdById;
public static final String SERIALIZED_NAME_CREATED_TIME = "created_time";
@SerializedName(SERIALIZED_NAME_CREATED_TIME)
private OffsetDateTime createdTime;
public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "custom_fields";
@SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
@JsonAdapter(CustomFieldAdapter.class)
private Map customFields = null;
public static final String SERIALIZED_NAME_CUSTOM_OBJECTS = "custom_objects";
@SerializedName(SERIALIZED_NAME_CUSTOM_OBJECTS)
private Map customObjects = null;
/**
* The type of the payment method. An additional hash is included on the payment method with a name matching this value. It contains additional information specific to the payment method type.
*/
@JsonAdapter(TypeEnum.Adapter.class)
public enum TypeEnum {
PAYPAL_EXPRESS("paypal_express"),
PAYPAL_EXPRESS_NATIVE("paypal_express_native"),
PAYPAL_ADAPTIVE("paypal_adaptive"),
CARD("card"),
CC_REF("cc_ref"),
ACH_DEBIT("ach_debit"),
SEPA_DEBIT("sepa_debit"),
BETALINGS_DEBIT("betalings_debit"),
AUTOGIRO_DEBIT("autogiro_debit"),
BACS_DEBIT("bacs_debit"),
AU_BECS_DEBIT("au_becs_debit"),
NZ_BECS_DEBIT("nz_becs_debit"),
PAD_DEBIT("pad_debit"),
APPLE_PAY("apple_pay"),
WIRE_TRANSFER("wire_transfer"),
CHECK("check"),
CASH("cash"),
OTHER("other"),
PAYPAL("paypal"),
ADYEN_GOOGLE_PAY("adyen_google_pay"),
ADYEN_APPLE_PAY("adyen_apple_pay"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
TypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TypeEnum fromValue(String value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TypeEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private TypeEnum type;
public static final String SERIALIZED_NAME_CUSTOM_TYPE = "custom_type";
@SerializedName(SERIALIZED_NAME_CUSTOM_TYPE)
private String customType;
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 Account account;
public static final String SERIALIZED_NAME_BILLING_DETAILS = "billing_details";
@SerializedName(SERIALIZED_NAME_BILLING_DETAILS)
private BillingDetails billingDetails;
public static final String SERIALIZED_NAME_MAXIMUM_PAYMENT_ATTEMPTS = "maximum_payment_attempts";
@SerializedName(SERIALIZED_NAME_MAXIMUM_PAYMENT_ATTEMPTS)
private BigDecimal maximumPaymentAttempts;
public static final String SERIALIZED_NAME_PAYMENT_RETRY_INTERVAL = "payment_retry_interval";
@SerializedName(SERIALIZED_NAME_PAYMENT_RETRY_INTERVAL)
private Integer paymentRetryInterval;
public static final String SERIALIZED_NAME_DEVICE_SESSION_ID = "device_session_id";
@SerializedName(SERIALIZED_NAME_DEVICE_SESSION_ID)
private String deviceSessionId;
public static final String SERIALIZED_NAME_IP_ADDRESS = "ip_address";
@SerializedName(SERIALIZED_NAME_IP_ADDRESS)
private String ipAddress;
public static final String SERIALIZED_NAME_BANK_IDENTIFICATION_NUMBER = "bank_identification_number";
@SerializedName(SERIALIZED_NAME_BANK_IDENTIFICATION_NUMBER)
private String bankIdentificationNumber;
public static final String SERIALIZED_NAME_CARD = "card";
@SerializedName(SERIALIZED_NAME_CARD)
private Card card;
public static final String SERIALIZED_NAME_PAYPAL_EXPRESS_NATIVE = "paypal_express_native";
@SerializedName(SERIALIZED_NAME_PAYPAL_EXPRESS_NATIVE)
private PaypalExpressNative paypalExpressNative;
public static final String SERIALIZED_NAME_PAYPAL_EXPRESS = "paypal_express";
@SerializedName(SERIALIZED_NAME_PAYPAL_EXPRESS)
private PaypalExpress paypalExpress;
public static final String SERIALIZED_NAME_PAYPAL_ADAPTIVE = "paypal_adaptive";
@SerializedName(SERIALIZED_NAME_PAYPAL_ADAPTIVE)
private PaypalAdaptive paypalAdaptive;
public static final String SERIALIZED_NAME_SEPA_DEBIT = "sepa_debit";
@SerializedName(SERIALIZED_NAME_SEPA_DEBIT)
private SepaDebit sepaDebit;
public static final String SERIALIZED_NAME_CC_REF = "cc_ref";
@SerializedName(SERIALIZED_NAME_CC_REF)
private CcRef ccRef;
public static final String SERIALIZED_NAME_APPLE_PAY = "apple_pay";
@SerializedName(SERIALIZED_NAME_APPLE_PAY)
private ApplePay applePay;
public static final String SERIALIZED_NAME_GOOGLE_PAY = "google_pay";
@SerializedName(SERIALIZED_NAME_GOOGLE_PAY)
private GooglePay googlePay;
public static final String SERIALIZED_NAME_ACH_DEBIT = "ach_debit";
@SerializedName(SERIALIZED_NAME_ACH_DEBIT)
private AchDebit achDebit;
public static final String SERIALIZED_NAME_BETALINGS_DEBIT = "betalings_debit";
@SerializedName(SERIALIZED_NAME_BETALINGS_DEBIT)
private BetalingsDebit betalingsDebit;
public static final String SERIALIZED_NAME_AUTOGIRO_DEBIT = "autogiro_debit";
@SerializedName(SERIALIZED_NAME_AUTOGIRO_DEBIT)
private AutogiroDebit autogiroDebit;
public static final String SERIALIZED_NAME_BACS_DEBIT = "bacs_debit";
@SerializedName(SERIALIZED_NAME_BACS_DEBIT)
private BacsDebit bacsDebit;
public static final String SERIALIZED_NAME_AU_BECS_DEBIT = "au_becs_debit";
@SerializedName(SERIALIZED_NAME_AU_BECS_DEBIT)
private AuBecsDebit auBecsDebit;
public static final String SERIALIZED_NAME_NZ_BECS_DEBIT = "nz_becs_debit";
@SerializedName(SERIALIZED_NAME_NZ_BECS_DEBIT)
private NzBecsDebit nzBecsDebit;
public static final String SERIALIZED_NAME_PAD_DEBIT = "pad_debit";
@SerializedName(SERIALIZED_NAME_PAD_DEBIT)
private PadDebit padDebit;
public AccountPaymentMethodRequest() {
}
public AccountPaymentMethodRequest(
String id,
String updatedById,
OffsetDateTime updatedTime,
String createdById,
OffsetDateTime createdTime,
Map customObjects,
Account account
) {
this();
this.id = id;
this.updatedById = updatedById;
this.updatedTime = updatedTime;
this.createdById = createdById;
this.createdTime = createdTime;
this.customObjects = customObjects;
this.account = account;
}
/**
* Unique identifier for the object.
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unique identifier for the object.")
public String getId() {
return id;
}
/**
* Unique identifier of the Zuora user who last updated the object
* @return updatedById
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unique identifier of the Zuora user who last updated the object")
public String getUpdatedById() {
return updatedById;
}
/**
* The date and time when the object was last updated in ISO 8601 UTC format.
* @return updatedTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date and time when the object was last updated in ISO 8601 UTC format.")
public OffsetDateTime getUpdatedTime() {
return updatedTime;
}
/**
* Unique identifier of the Zuora user who created the object
* @return createdById
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Unique identifier of the Zuora user who created the object")
public String getCreatedById() {
return createdById;
}
/**
* The date and time when the object was created in ISO 8601 UTC format.
* @return createdTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date and time when the object was created in ISO 8601 UTC format.")
public OffsetDateTime getCreatedTime() {
return createdTime;
}
public AccountPaymentMethodRequest customFields(Map customFields) {
this.customFields = customFields;
return this;
}
public AccountPaymentMethodRequest putCustomFieldsItem(String key, String customFieldsItem) {
if (this.customFields == null) {
this.customFields = new HashMap();
}
this.customFields.put(key, customFieldsItem);
return this;
}
/**
* Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format.
* @return customFields
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format.")
public Map getCustomFields() {
return customFields;
}
public void setCustomFields(Map customFields) {
this.customFields = customFields;
}
/**
* The custom objects associated with a Zuora standard object.
* @return customObjects
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The custom objects associated with a Zuora standard object.")
public Map getCustomObjects() {
return customObjects;
}
public AccountPaymentMethodRequest type(TypeEnum type) {
this.type = type;
return this;
}
/**
* The type of the payment method. An additional hash is included on the payment method with a name matching this value. It contains additional information specific to the payment method type.
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The type of the payment method. An additional hash is included on the payment method with a name matching this value. It contains additional information specific to the payment method type.")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public AccountPaymentMethodRequest customType(String customType) {
this.customType = customType;
return this;
}
/**
* The custom type of the payment method from Universal Payment Connector.
* @return customType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The custom type of the payment method from Universal Payment Connector.")
public String getCustomType() {
return customType;
}
public void setCustomType(String customType) {
this.customType = customType;
}
public AccountPaymentMethodRequest accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* A customer account identifier.
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2c92c0f86a8dd422016a9e7a70116b0d", value = "A customer account identifier.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
/**
* The customer account associated with this payment method.
* @return account
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The customer account associated with this payment method.")
public Account getAccount() {
return account;
}
public AccountPaymentMethodRequest billingDetails(BillingDetails billingDetails) {
this.billingDetails = billingDetails;
return this;
}
/**
* Get billingDetails
* @return billingDetails
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BillingDetails getBillingDetails() {
return billingDetails;
}
public void setBillingDetails(BillingDetails billingDetails) {
this.billingDetails = billingDetails;
}
public AccountPaymentMethodRequest maximumPaymentAttempts(BigDecimal maximumPaymentAttempts) {
this.maximumPaymentAttempts = maximumPaymentAttempts;
return this;
}
/**
* Maximum number of consecutive failed retry payment attempts using this payment method before retries are stopped.
* @return maximumPaymentAttempts
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "6", value = "Maximum number of consecutive failed retry payment attempts using this payment method before retries are stopped.")
public BigDecimal getMaximumPaymentAttempts() {
return maximumPaymentAttempts;
}
public void setMaximumPaymentAttempts(BigDecimal maximumPaymentAttempts) {
this.maximumPaymentAttempts = maximumPaymentAttempts;
}
public AccountPaymentMethodRequest paymentRetryInterval(Integer paymentRetryInterval) {
this.paymentRetryInterval = paymentRetryInterval;
return this;
}
/**
* The retry interval in hours.
* @return paymentRetryInterval
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "3", value = "The retry interval in hours.")
public Integer getPaymentRetryInterval() {
return paymentRetryInterval;
}
public void setPaymentRetryInterval(Integer paymentRetryInterval) {
this.paymentRetryInterval = paymentRetryInterval;
}
public AccountPaymentMethodRequest deviceSessionId(String deviceSessionId) {
this.deviceSessionId = deviceSessionId;
return this;
}
/**
* Identifier of the device browser session.
* @return deviceSessionId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2cadffe03", value = "Identifier of the device browser session.")
public String getDeviceSessionId() {
return deviceSessionId;
}
public void setDeviceSessionId(String deviceSessionId) {
this.deviceSessionId = deviceSessionId;
}
public AccountPaymentMethodRequest ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* The IP address from which the Mandate was accepted by the customer.
* @return ipAddress
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "192.10.1.123", value = "The IP address from which the Mandate was accepted by the customer.")
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public AccountPaymentMethodRequest bankIdentificationNumber(String bankIdentificationNumber) {
this.bankIdentificationNumber = bankIdentificationNumber;
return this;
}
/**
* The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method.
* @return bankIdentificationNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "123456", value = "The first six or eight digits of the payment method's number, such as the credit card number or account number. Banks use this number to identify a payment method.")
public String getBankIdentificationNumber() {
return bankIdentificationNumber;
}
public void setBankIdentificationNumber(String bankIdentificationNumber) {
this.bankIdentificationNumber = bankIdentificationNumber;
}
public AccountPaymentMethodRequest card(Card card) {
this.card = card;
return this;
}
/**
* Get card
* @return card
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Card getCard() {
return card;
}
public void setCard(Card card) {
this.card = card;
}
public AccountPaymentMethodRequest paypalExpressNative(PaypalExpressNative paypalExpressNative) {
this.paypalExpressNative = paypalExpressNative;
return this;
}
/**
* Get paypalExpressNative
* @return paypalExpressNative
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PaypalExpressNative getPaypalExpressNative() {
return paypalExpressNative;
}
public void setPaypalExpressNative(PaypalExpressNative paypalExpressNative) {
this.paypalExpressNative = paypalExpressNative;
}
public AccountPaymentMethodRequest paypalExpress(PaypalExpress paypalExpress) {
this.paypalExpress = paypalExpress;
return this;
}
/**
* Get paypalExpress
* @return paypalExpress
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PaypalExpress getPaypalExpress() {
return paypalExpress;
}
public void setPaypalExpress(PaypalExpress paypalExpress) {
this.paypalExpress = paypalExpress;
}
public AccountPaymentMethodRequest paypalAdaptive(PaypalAdaptive paypalAdaptive) {
this.paypalAdaptive = paypalAdaptive;
return this;
}
/**
* Get paypalAdaptive
* @return paypalAdaptive
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PaypalAdaptive getPaypalAdaptive() {
return paypalAdaptive;
}
public void setPaypalAdaptive(PaypalAdaptive paypalAdaptive) {
this.paypalAdaptive = paypalAdaptive;
}
public AccountPaymentMethodRequest sepaDebit(SepaDebit sepaDebit) {
this.sepaDebit = sepaDebit;
return this;
}
/**
* Get sepaDebit
* @return sepaDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public SepaDebit getSepaDebit() {
return sepaDebit;
}
public void setSepaDebit(SepaDebit sepaDebit) {
this.sepaDebit = sepaDebit;
}
public AccountPaymentMethodRequest ccRef(CcRef ccRef) {
this.ccRef = ccRef;
return this;
}
/**
* Get ccRef
* @return ccRef
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public CcRef getCcRef() {
return ccRef;
}
public void setCcRef(CcRef ccRef) {
this.ccRef = ccRef;
}
public AccountPaymentMethodRequest applePay(ApplePay applePay) {
this.applePay = applePay;
return this;
}
/**
* Get applePay
* @return applePay
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ApplePay getApplePay() {
return applePay;
}
public void setApplePay(ApplePay applePay) {
this.applePay = applePay;
}
public AccountPaymentMethodRequest googlePay(GooglePay googlePay) {
this.googlePay = googlePay;
return this;
}
/**
* Get googlePay
* @return googlePay
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public GooglePay getGooglePay() {
return googlePay;
}
public void setGooglePay(GooglePay googlePay) {
this.googlePay = googlePay;
}
public AccountPaymentMethodRequest achDebit(AchDebit achDebit) {
this.achDebit = achDebit;
return this;
}
/**
* Get achDebit
* @return achDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AchDebit getAchDebit() {
return achDebit;
}
public void setAchDebit(AchDebit achDebit) {
this.achDebit = achDebit;
}
public AccountPaymentMethodRequest betalingsDebit(BetalingsDebit betalingsDebit) {
this.betalingsDebit = betalingsDebit;
return this;
}
/**
* Get betalingsDebit
* @return betalingsDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BetalingsDebit getBetalingsDebit() {
return betalingsDebit;
}
public void setBetalingsDebit(BetalingsDebit betalingsDebit) {
this.betalingsDebit = betalingsDebit;
}
public AccountPaymentMethodRequest autogiroDebit(AutogiroDebit autogiroDebit) {
this.autogiroDebit = autogiroDebit;
return this;
}
/**
* Get autogiroDebit
* @return autogiroDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AutogiroDebit getAutogiroDebit() {
return autogiroDebit;
}
public void setAutogiroDebit(AutogiroDebit autogiroDebit) {
this.autogiroDebit = autogiroDebit;
}
public AccountPaymentMethodRequest bacsDebit(BacsDebit bacsDebit) {
this.bacsDebit = bacsDebit;
return this;
}
/**
* Get bacsDebit
* @return bacsDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BacsDebit getBacsDebit() {
return bacsDebit;
}
public void setBacsDebit(BacsDebit bacsDebit) {
this.bacsDebit = bacsDebit;
}
public AccountPaymentMethodRequest auBecsDebit(AuBecsDebit auBecsDebit) {
this.auBecsDebit = auBecsDebit;
return this;
}
/**
* Get auBecsDebit
* @return auBecsDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AuBecsDebit getAuBecsDebit() {
return auBecsDebit;
}
public void setAuBecsDebit(AuBecsDebit auBecsDebit) {
this.auBecsDebit = auBecsDebit;
}
public AccountPaymentMethodRequest nzBecsDebit(NzBecsDebit nzBecsDebit) {
this.nzBecsDebit = nzBecsDebit;
return this;
}
/**
* Get nzBecsDebit
* @return nzBecsDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public NzBecsDebit getNzBecsDebit() {
return nzBecsDebit;
}
public void setNzBecsDebit(NzBecsDebit nzBecsDebit) {
this.nzBecsDebit = nzBecsDebit;
}
public AccountPaymentMethodRequest padDebit(PadDebit padDebit) {
this.padDebit = padDebit;
return this;
}
/**
* Get padDebit
* @return padDebit
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PadDebit getPadDebit() {
return padDebit;
}
public void setPadDebit(PadDebit padDebit) {
this.padDebit = padDebit;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountPaymentMethodRequest accountPaymentMethodRequest = (AccountPaymentMethodRequest) o;
return Objects.equals(this.id, accountPaymentMethodRequest.id) &&
Objects.equals(this.updatedById, accountPaymentMethodRequest.updatedById) &&
Objects.equals(this.updatedTime, accountPaymentMethodRequest.updatedTime) &&
Objects.equals(this.createdById, accountPaymentMethodRequest.createdById) &&
Objects.equals(this.createdTime, accountPaymentMethodRequest.createdTime) &&
Objects.equals(this.customFields, accountPaymentMethodRequest.customFields) &&
Objects.equals(this.customObjects, accountPaymentMethodRequest.customObjects) &&
Objects.equals(this.type, accountPaymentMethodRequest.type) &&
Objects.equals(this.customType, accountPaymentMethodRequest.customType) &&
Objects.equals(this.accountId, accountPaymentMethodRequest.accountId) &&
Objects.equals(this.account, accountPaymentMethodRequest.account) &&
Objects.equals(this.billingDetails, accountPaymentMethodRequest.billingDetails) &&
Objects.equals(this.maximumPaymentAttempts, accountPaymentMethodRequest.maximumPaymentAttempts) &&
Objects.equals(this.paymentRetryInterval, accountPaymentMethodRequest.paymentRetryInterval) &&
Objects.equals(this.deviceSessionId, accountPaymentMethodRequest.deviceSessionId) &&
Objects.equals(this.ipAddress, accountPaymentMethodRequest.ipAddress) &&
Objects.equals(this.bankIdentificationNumber, accountPaymentMethodRequest.bankIdentificationNumber) &&
Objects.equals(this.card, accountPaymentMethodRequest.card) &&
Objects.equals(this.paypalExpressNative, accountPaymentMethodRequest.paypalExpressNative) &&
Objects.equals(this.paypalExpress, accountPaymentMethodRequest.paypalExpress) &&
Objects.equals(this.paypalAdaptive, accountPaymentMethodRequest.paypalAdaptive) &&
Objects.equals(this.sepaDebit, accountPaymentMethodRequest.sepaDebit) &&
Objects.equals(this.ccRef, accountPaymentMethodRequest.ccRef) &&
Objects.equals(this.applePay, accountPaymentMethodRequest.applePay) &&
Objects.equals(this.googlePay, accountPaymentMethodRequest.googlePay) &&
Objects.equals(this.achDebit, accountPaymentMethodRequest.achDebit) &&
Objects.equals(this.betalingsDebit, accountPaymentMethodRequest.betalingsDebit) &&
Objects.equals(this.autogiroDebit, accountPaymentMethodRequest.autogiroDebit) &&
Objects.equals(this.bacsDebit, accountPaymentMethodRequest.bacsDebit) &&
Objects.equals(this.auBecsDebit, accountPaymentMethodRequest.auBecsDebit) &&
Objects.equals(this.nzBecsDebit, accountPaymentMethodRequest.nzBecsDebit) &&
Objects.equals(this.padDebit, accountPaymentMethodRequest.padDebit);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(id, updatedById, updatedTime, createdById, createdTime, customFields, customObjects, type, customType, accountId, account, billingDetails, maximumPaymentAttempts, paymentRetryInterval, deviceSessionId, ipAddress, bankIdentificationNumber, card, paypalExpressNative, paypalExpress, paypalAdaptive, sepaDebit, ccRef, applePay, googlePay, achDebit, betalingsDebit, autogiroDebit, bacsDebit, auBecsDebit, nzBecsDebit, padDebit);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountPaymentMethodRequest {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" updatedById: ").append(toIndentedString(updatedById)).append("\n");
sb.append(" updatedTime: ").append(toIndentedString(updatedTime)).append("\n");
sb.append(" createdById: ").append(toIndentedString(createdById)).append("\n");
sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).append("\n");
sb.append(" customObjects: ").append(toIndentedString(customObjects)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" customType: ").append(toIndentedString(customType)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" account: ").append(toIndentedString(account)).append("\n");
sb.append(" billingDetails: ").append(toIndentedString(billingDetails)).append("\n");
sb.append(" maximumPaymentAttempts: ").append(toIndentedString(maximumPaymentAttempts)).append("\n");
sb.append(" paymentRetryInterval: ").append(toIndentedString(paymentRetryInterval)).append("\n");
sb.append(" deviceSessionId: ").append(toIndentedString(deviceSessionId)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" bankIdentificationNumber: ").append(toIndentedString(bankIdentificationNumber)).append("\n");
sb.append(" card: ").append(toIndentedString(card)).append("\n");
sb.append(" paypalExpressNative: ").append(toIndentedString(paypalExpressNative)).append("\n");
sb.append(" paypalExpress: ").append(toIndentedString(paypalExpress)).append("\n");
sb.append(" paypalAdaptive: ").append(toIndentedString(paypalAdaptive)).append("\n");
sb.append(" sepaDebit: ").append(toIndentedString(sepaDebit)).append("\n");
sb.append(" ccRef: ").append(toIndentedString(ccRef)).append("\n");
sb.append(" applePay: ").append(toIndentedString(applePay)).append("\n");
sb.append(" googlePay: ").append(toIndentedString(googlePay)).append("\n");
sb.append(" achDebit: ").append(toIndentedString(achDebit)).append("\n");
sb.append(" betalingsDebit: ").append(toIndentedString(betalingsDebit)).append("\n");
sb.append(" autogiroDebit: ").append(toIndentedString(autogiroDebit)).append("\n");
sb.append(" bacsDebit: ").append(toIndentedString(bacsDebit)).append("\n");
sb.append(" auBecsDebit: ").append(toIndentedString(auBecsDebit)).append("\n");
sb.append(" nzBecsDebit: ").append(toIndentedString(nzBecsDebit)).append("\n");
sb.append(" padDebit: ").append(toIndentedString(padDebit)).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