org.openapitools.client.model.PaypalAdaptive 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.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* If it is a `paypal_adaptive` payment method, this hash contains details about the PayPal Adaptive payment method.
*/
@ApiModel(description = "If it is a `paypal_adaptive` payment method, this hash contains details about the PayPal Adaptive payment method.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PaypalAdaptive {
public static final String SERIALIZED_NAME_PREAPPROVAL_KEY = "preapproval_key";
@SerializedName(SERIALIZED_NAME_PREAPPROVAL_KEY)
private String preapprovalKey;
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
private String email;
public PaypalAdaptive() {
}
public PaypalAdaptive preapprovalKey(String preapprovalKey) {
this.preapprovalKey = preapprovalKey;
return this;
}
/**
* PayPal preapproval key.
* @return preapprovalKey
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "2G4EPFSD", required = true, value = "PayPal preapproval key.")
public String getPreapprovalKey() {
return preapprovalKey;
}
public void setPreapprovalKey(String preapprovalKey) {
this.preapprovalKey = preapprovalKey;
}
public PaypalAdaptive email(String email) {
this.email = email;
return this;
}
/**
* Email address associated with the payment method.
* @return email
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "[email protected]", required = true, value = "Email address associated with the payment method.")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaypalAdaptive paypalAdaptive = (PaypalAdaptive) o;
return Objects.equals(this.preapprovalKey, paypalAdaptive.preapprovalKey) &&
Objects.equals(this.email, paypalAdaptive.email);
}
@Override
public int hashCode() {
return Objects.hash(preapprovalKey, email);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaypalAdaptive {\n");
sb.append(" preapprovalKey: ").append(toIndentedString(preapprovalKey)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).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