org.openapitools.client.model.CcRef 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.CcRefCard;
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 `cc_ref`, this hash contains details about the Credit Card Reference Transactions payment method. See [Supported payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/A_Supported_Payment_Methods) for payment gateways that support this type of payment method.
*/
@ApiModel(description = "If the `type` of the payment method is `cc_ref`, this hash contains details about the Credit Card Reference Transactions payment method. See [Supported payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/A_Supported_Payment_Methods) for payment gateways that support this type of payment method.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CcRef {
public static final String SERIALIZED_NAME_SECOND_TOKEN = "second_token";
@SerializedName(SERIALIZED_NAME_SECOND_TOKEN)
private String secondToken;
public static final String SERIALIZED_NAME_TOKEN = "token";
@SerializedName(SERIALIZED_NAME_TOKEN)
private String token;
public static final String SERIALIZED_NAME_MANDATE = "mandate";
@SerializedName(SERIALIZED_NAME_MANDATE)
private Mandate mandate;
public static final String SERIALIZED_NAME_CARD = "card";
@SerializedName(SERIALIZED_NAME_CARD)
private CcRefCard card;
public CcRef() {
}
public CcRef secondToken(String secondToken) {
this.secondToken = secondToken;
return this;
}
/**
* A gateway unique identifier that replaces sensitive payment method data. This field is conditionally required only when `token` is being used to represent a gateway customer profile.
* @return secondToken
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A gateway unique identifier that replaces sensitive payment method data. This field is conditionally required only when `token` is being used to represent a gateway customer profile.")
public String getSecondToken() {
return secondToken;
}
public void setSecondToken(String secondToken) {
this.secondToken = secondToken;
}
public CcRef token(String token) {
this.token = token;
return this;
}
/**
* A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile. When `token` is used to represent a customer profile, `second_token` is conditionally required for representing the underlying tokenized payment method.
* @return token
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "A gateway unique identifier that replaces sensitive payment method data or represents a gateway's unique customer profile. When `token` is used to represent a customer profile, `second_token` is conditionally required for representing the underlying tokenized payment method.")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public CcRef 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;
}
public CcRef card(CcRefCard card) {
this.card = card;
return this;
}
/**
* Get card
* @return card
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public CcRefCard getCard() {
return card;
}
public void setCard(CcRefCard card) {
this.card = card;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CcRef ccRef = (CcRef) o;
return Objects.equals(this.secondToken, ccRef.secondToken) &&
Objects.equals(this.token, ccRef.token) &&
Objects.equals(this.mandate, ccRef.mandate) &&
Objects.equals(this.card, ccRef.card);
}
@Override
public int hashCode() {
return Objects.hash(secondToken, token, mandate, card);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CcRef {\n");
sb.append(" secondToken: ").append(toIndentedString(secondToken)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" mandate: ").append(toIndentedString(mandate)).append("\n");
sb.append(" card: ").append(toIndentedString(card)).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