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

org.openapitools.client.model.BillingDetails 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.model.AddressFieldDefinitions;

import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
 * Billing information associated with the payment method that may be used or required by specific payment method types.
 */
@ApiModel(description = "Billing information associated with the payment method that may be used or required by specific payment method types.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BillingDetails {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_ADDRESS = "address";
  @SerializedName(SERIALIZED_NAME_ADDRESS)
  private AddressFieldDefinitions address;

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

  public static final String SERIALIZED_NAME_PHONE = "phone";
  @SerializedName(SERIALIZED_NAME_PHONE)
  private String phone;

  public BillingDetails() { 
  }

  public BillingDetails name(String name) {
    
    this.name = name;
    return this;
  }

   /**
   * Customer full name or business name.
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Amy Lawrence", value = "Customer full name or business name.")

  public String getName() {
    return name;
  }


  public void setName(String name) {
    this.name = name;
  }


  public BillingDetails address(AddressFieldDefinitions address) {
    
    this.address = address;
    return this;
  }

   /**
   * Get address
   * @return address
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AddressFieldDefinitions getAddress() {
    return address;
  }


  public void setAddress(AddressFieldDefinitions address) {
    this.address = address;
  }


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

   /**
   * Customer email address.
   * @return email
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "[email protected]", value = "Customer email address.")

  public String getEmail() {
    return email;
  }


  public void setEmail(String email) {
    this.email = email;
  }


  public BillingDetails phone(String phone) {
    
    this.phone = phone;
    return this;
  }

   /**
   * Customer phone (including extension).
   * @return phone
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "(888)976-9056", value = "Customer phone (including extension).")

  public String getPhone() {
    return phone;
  }


  public void setPhone(String phone) {
    this.phone = phone;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BillingDetails billingDetails = (BillingDetails) o;
    return Objects.equals(this.name, billingDetails.name) &&
        Objects.equals(this.address, billingDetails.address) &&
        Objects.equals(this.email, billingDetails.email) &&
        Objects.equals(this.phone, billingDetails.phone);
  }

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

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