org.openapitools.client.model.CcRefUpdate 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 `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 CcRefUpdate {
public static final String SERIALIZED_NAME_SECOND_TOKEN = "second_token";
@SerializedName(SERIALIZED_NAME_SECOND_TOKEN)
private String secondToken;
public static final String SERIALIZED_NAME_MANDATE = "mandate";
@SerializedName(SERIALIZED_NAME_MANDATE)
private Mandate mandate;
public CcRefUpdate() {
}
public CcRefUpdate 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 CcRefUpdate 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;
}
CcRefUpdate ccRefUpdate = (CcRefUpdate) o;
return Objects.equals(this.secondToken, ccRefUpdate.secondToken) &&
Objects.equals(this.mandate, ccRefUpdate.mandate);
}
@Override
public int hashCode() {
return Objects.hash(secondToken, mandate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CcRefUpdate {\n");
sb.append(" secondToken: ").append(toIndentedString(secondToken)).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