org.openapitools.client.model.CardUpdate 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 org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* If the `type` of the payment method is `card`, this hash contains details about the Credit Card payment method. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Zuora's [Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0) instead of interacting with this API directly.
*/
@ApiModel(description = "If the `type` of the payment method is `card`, this hash contains details about the Credit Card payment method. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Zuora's [Payment Pages 2.0](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0) instead of interacting with this API directly.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CardUpdate {
public static final String SERIALIZED_NAME_EXPIRY_MONTH = "expiry_month";
@SerializedName(SERIALIZED_NAME_EXPIRY_MONTH)
private BigDecimal expiryMonth;
public static final String SERIALIZED_NAME_EXPIRY_YEAR = "expiry_year";
@SerializedName(SERIALIZED_NAME_EXPIRY_YEAR)
private BigDecimal expiryYear;
public static final String SERIALIZED_NAME_SECURITY_CODE = "security_code";
@SerializedName(SERIALIZED_NAME_SECURITY_CODE)
private String securityCode;
public CardUpdate() {
}
public CardUpdate expiryMonth(BigDecimal expiryMonth) {
this.expiryMonth = expiryMonth;
return this;
}
/**
* One- or two-digit expiration month (1-12) of the credit card.
* @return expiryMonth
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "One- or two-digit expiration month (1-12) of the credit card.")
public BigDecimal getExpiryMonth() {
return expiryMonth;
}
public void setExpiryMonth(BigDecimal expiryMonth) {
this.expiryMonth = expiryMonth;
}
public CardUpdate expiryYear(BigDecimal expiryYear) {
this.expiryYear = expiryYear;
return this;
}
/**
* Two- or four-digit number representing the card's expiration year.
* @return expiryYear
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Two- or four-digit number representing the card's expiration year.")
public BigDecimal getExpiryYear() {
return expiryYear;
}
public void setExpiryYear(BigDecimal expiryYear) {
this.expiryYear = expiryYear;
}
public CardUpdate securityCode(String securityCode) {
this.securityCode = securityCode;
return this;
}
/**
* Card security code. It is highly recommended to always include this value.
* @return securityCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Card security code. It is highly recommended to always include this value.")
public String getSecurityCode() {
return securityCode;
}
public void setSecurityCode(String securityCode) {
this.securityCode = securityCode;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CardUpdate cardUpdate = (CardUpdate) o;
return Objects.equals(this.expiryMonth, cardUpdate.expiryMonth) &&
Objects.equals(this.expiryYear, cardUpdate.expiryYear) &&
Objects.equals(this.securityCode, cardUpdate.securityCode);
}
@Override
public int hashCode() {
return Objects.hash(expiryMonth, expiryYear, securityCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CardUpdate {\n");
sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n");
sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n");
sb.append(" securityCode: ").append(toIndentedString(securityCode)).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