org.openapitools.client.model.GooglePayCreate 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.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* If the `type` of the payment method is `google_pay`, this hash contains details about the Google Pay 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 `google_pay`, this hash contains details about the Google Pay 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 GooglePayCreate {
public static final String SERIALIZED_NAME_CUSTOMER_TOKEN = "customer_token";
@SerializedName(SERIALIZED_NAME_CUSTOMER_TOKEN)
private Map customerToken = new HashMap();
public GooglePayCreate() {
}
public GooglePayCreate customerToken(Map customerToken) {
this.customerToken = customerToken;
return this;
}
public GooglePayCreate putCustomerTokenItem(String key, Object customerTokenItem) {
this.customerToken.put(key, customerTokenItem);
return this;
}
/**
* The complete JSON Object representing the encrypted payment token payload returned in the response from the Google Pay session.
* @return customerToken
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The complete JSON Object representing the encrypted payment token payload returned in the response from the Google Pay session.")
public Map getCustomerToken() {
return customerToken;
}
public void setCustomerToken(Map customerToken) {
this.customerToken = customerToken;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GooglePayCreate googlePayCreate = (GooglePayCreate) o;
return Objects.equals(this.customerToken, googlePayCreate.customerToken);
}
@Override
public int hashCode() {
return Objects.hash(customerToken);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GooglePayCreate {\n");
sb.append(" customerToken: ").append(toIndentedString(customerToken)).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