All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openapitools.client.model.PaypalExpress Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
* 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_express` payment method, this hash contains details about the PayPal Express payment method.
 */
@ApiModel(description = "If it is a `paypal_express` payment method, this hash contains details about the PayPal Express payment method.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PaypalExpress {
  public static final String SERIALIZED_NAME_BAID = "baid";
  @SerializedName(SERIALIZED_NAME_BAID)
  private String baid;

  public static final String SERIALIZED_NAME_EMAIL = "email";
  @SerializedName(SERIALIZED_NAME_EMAIL)
  private String email;

  public PaypalExpress() { 
  }

  public PaypalExpress baid(String baid) {
    
    this.baid = baid;
    return this;
  }

   /**
   * Identifier of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.
   * @return baid
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "Identifier of a PayPal billing agreement. For example, I-1TJ3GAGG82Y9.")

  public String getBaid() {
    return baid;
  }


  public void setBaid(String baid) {
    this.baid = baid;
  }


  public PaypalExpress email(String email) {
    
    this.email = email;
    return this;
  }

   /**
   * Email address associated with the payment method
   * @return email
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(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;
    }
    PaypalExpress paypalExpress = (PaypalExpress) o;
    return Objects.equals(this.baid, paypalExpress.baid) &&
        Objects.equals(this.email, paypalExpress.email);
  }

  @Override
  public int hashCode() {
    return Objects.hash(baid, email);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaypalExpress {\n");
    sb.append("    baid: ").append(toIndentedString(baid)).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