org.openapitools.client.model.PaymentMethodCreateRequest 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.ApplePayCreate;
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.GooglePayCreate;
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;
/**
* PaymentMethodCreateRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PaymentMethodCreateRequest {
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"),
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 ApplePayCreate applePay;
public static final String SERIALIZED_NAME_GOOGLE_PAY = "google_pay";
@SerializedName(SERIALIZED_NAME_GOOGLE_PAY)
private GooglePayCreate 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 static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "account_number";
@SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
private String accountNumber;
public static final String SERIALIZED_NAME_IS_DEFAULT = "is_default";
@SerializedName(SERIALIZED_NAME_IS_DEFAULT)
private Boolean isDefault;
public static final String SERIALIZED_NAME_GATEWAY_ID = "gateway_id";
@SerializedName(SERIALIZED_NAME_GATEWAY_ID)
private String gatewayId;
public static final String SERIALIZED_NAME_GATEWAY_OPTIONS = "gateway_options";
@SerializedName(SERIALIZED_NAME_GATEWAY_OPTIONS)
private Map gatewayOptions = null;
public PaymentMethodCreateRequest() {
}
public PaymentMethodCreateRequest(
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 PaymentMethodCreateRequest customFields(Map customFields) {
this.customFields = customFields;
return this;
}
public PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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.Nonnull
@ApiModelProperty(required = true, 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest applePay(ApplePayCreate applePay) {
this.applePay = applePay;
return this;
}
/**
* Get applePay
* @return applePay
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ApplePayCreate getApplePay() {
return applePay;
}
public void setApplePay(ApplePayCreate applePay) {
this.applePay = applePay;
}
public PaymentMethodCreateRequest googlePay(GooglePayCreate googlePay) {
this.googlePay = googlePay;
return this;
}
/**
* Get googlePay
* @return googlePay
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public GooglePayCreate getGooglePay() {
return googlePay;
}
public void setGooglePay(GooglePayCreate googlePay) {
this.googlePay = googlePay;
}
public PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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 PaymentMethodCreateRequest 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;
}
public PaymentMethodCreateRequest accountNumber(String accountNumber) {
this.accountNumber = accountNumber;
return this;
}
/**
* A human-readable customer account identifier. It can be user-supplied.
* @return accountNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "A-100001", value = "A human-readable customer account identifier. It can be user-supplied.")
public String getAccountNumber() {
return accountNumber;
}
public void setAccountNumber(String accountNumber) {
this.accountNumber = accountNumber;
}
public PaymentMethodCreateRequest isDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* Indicates whether it is the default payment method on the associated account.
* @return isDefault
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "false", value = "Indicates whether it is the default payment method on the associated account.")
public Boolean getIsDefault() {
return isDefault;
}
public void setIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
}
public PaymentMethodCreateRequest gatewayId(String gatewayId) {
this.gatewayId = gatewayId;
return this;
}
/**
* Identifier of the payment gateway Zuora will use to authorize the payments that are made with this payment method.
* @return gatewayId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "8ad093d07ae636bb017ae97518762aa3", value = "Identifier of the payment gateway Zuora will use to authorize the payments that are made with this payment method.")
public String getGatewayId() {
return gatewayId;
}
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
public PaymentMethodCreateRequest gatewayOptions(Map gatewayOptions) {
this.gatewayOptions = gatewayOptions;
return this;
}
public PaymentMethodCreateRequest putGatewayOptionsItem(String key, String gatewayOptionsItem) {
if (this.gatewayOptions == null) {
this.gatewayOptions = new HashMap();
}
this.gatewayOptions.put(key, gatewayOptionsItem);
return this;
}
/**
* Get gatewayOptions
* @return gatewayOptions
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"key\":\"value\"}", value = "")
public Map getGatewayOptions() {
return gatewayOptions;
}
public void setGatewayOptions(Map gatewayOptions) {
this.gatewayOptions = gatewayOptions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentMethodCreateRequest paymentMethodCreateRequest = (PaymentMethodCreateRequest) o;
return Objects.equals(this.id, paymentMethodCreateRequest.id) &&
Objects.equals(this.updatedById, paymentMethodCreateRequest.updatedById) &&
Objects.equals(this.updatedTime, paymentMethodCreateRequest.updatedTime) &&
Objects.equals(this.createdById, paymentMethodCreateRequest.createdById) &&
Objects.equals(this.createdTime, paymentMethodCreateRequest.createdTime) &&
Objects.equals(this.customFields, paymentMethodCreateRequest.customFields) &&
Objects.equals(this.customObjects, paymentMethodCreateRequest.customObjects) &&
Objects.equals(this.type, paymentMethodCreateRequest.type) &&
Objects.equals(this.customType, paymentMethodCreateRequest.customType) &&
Objects.equals(this.accountId, paymentMethodCreateRequest.accountId) &&
Objects.equals(this.account, paymentMethodCreateRequest.account) &&
Objects.equals(this.billingDetails, paymentMethodCreateRequest.billingDetails) &&
Objects.equals(this.maximumPaymentAttempts, paymentMethodCreateRequest.maximumPaymentAttempts) &&
Objects.equals(this.paymentRetryInterval, paymentMethodCreateRequest.paymentRetryInterval) &&
Objects.equals(this.deviceSessionId, paymentMethodCreateRequest.deviceSessionId) &&
Objects.equals(this.ipAddress, paymentMethodCreateRequest.ipAddress) &&
Objects.equals(this.bankIdentificationNumber, paymentMethodCreateRequest.bankIdentificationNumber) &&
Objects.equals(this.card, paymentMethodCreateRequest.card) &&
Objects.equals(this.paypalExpressNative, paymentMethodCreateRequest.paypalExpressNative) &&
Objects.equals(this.paypalExpress, paymentMethodCreateRequest.paypalExpress) &&
Objects.equals(this.paypalAdaptive, paymentMethodCreateRequest.paypalAdaptive) &&
Objects.equals(this.sepaDebit, paymentMethodCreateRequest.sepaDebit) &&
Objects.equals(this.ccRef, paymentMethodCreateRequest.ccRef) &&
Objects.equals(this.applePay, paymentMethodCreateRequest.applePay) &&
Objects.equals(this.googlePay, paymentMethodCreateRequest.googlePay) &&
Objects.equals(this.achDebit, paymentMethodCreateRequest.achDebit) &&
Objects.equals(this.betalingsDebit, paymentMethodCreateRequest.betalingsDebit) &&
Objects.equals(this.autogiroDebit, paymentMethodCreateRequest.autogiroDebit) &&
Objects.equals(this.bacsDebit, paymentMethodCreateRequest.bacsDebit) &&
Objects.equals(this.auBecsDebit, paymentMethodCreateRequest.auBecsDebit) &&
Objects.equals(this.nzBecsDebit, paymentMethodCreateRequest.nzBecsDebit) &&
Objects.equals(this.padDebit, paymentMethodCreateRequest.padDebit) &&
Objects.equals(this.accountNumber, paymentMethodCreateRequest.accountNumber) &&
Objects.equals(this.isDefault, paymentMethodCreateRequest.isDefault) &&
Objects.equals(this.gatewayId, paymentMethodCreateRequest.gatewayId) &&
Objects.equals(this.gatewayOptions, paymentMethodCreateRequest.gatewayOptions);
}
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, accountNumber, isDefault, gatewayId, gatewayOptions);
}
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 PaymentMethodCreateRequest {\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(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");
sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n");
sb.append(" gatewayOptions: ").append(toIndentedString(gatewayOptions)).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