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

com.conekta.model.PayoutOrderResponseCustomerInfo Maven / Gradle / Ivy

Go to download

This is a java library that allows interaction with https://api.conekta.io API.

The newest version!
/*
 * Conekta API
 * Conekta sdk
 *
 * The version of the OpenAPI document: 2.1.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.conekta.model;

import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.conekta.JSON;


/**
 * The customer information of the payout order.
 */
@JsonPropertyOrder({
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_CUSTOMER_CUSTOM_REFERENCE,
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_NAME,
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_EMAIL,
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_PHONE,
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_CORPORATE,
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_OBJECT,
  PayoutOrderResponseCustomerInfo.JSON_PROPERTY_ID
})
@JsonTypeName("payout_order_response_customer_info")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
public class PayoutOrderResponseCustomerInfo {
  public static final String JSON_PROPERTY_CUSTOMER_CUSTOM_REFERENCE = "customer_custom_reference";
  private String customerCustomReference;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_EMAIL = "email";
  private String email;

  public static final String JSON_PROPERTY_PHONE = "phone";
  private String phone;

  public static final String JSON_PROPERTY_CORPORATE = "corporate";
  private Boolean corporate = false;

  public static final String JSON_PROPERTY_OBJECT = "object";
  private String _object;

  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public PayoutOrderResponseCustomerInfo() { 
  }

  public PayoutOrderResponseCustomerInfo customerCustomReference(String customerCustomReference) {
    this.customerCustomReference = customerCustomReference;
    return this;
  }

   /**
   * Custom reference
   * @return customerCustomReference
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CUSTOMER_CUSTOM_REFERENCE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getCustomerCustomReference() {
    return customerCustomReference;
  }


  @JsonProperty(JSON_PROPERTY_CUSTOMER_CUSTOM_REFERENCE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCustomerCustomReference(String customerCustomReference) {
    this.customerCustomReference = customerCustomReference;
  }


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

   /**
   * Get name
   * @return name
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setName(String name) {
    this.name = name;
  }


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

   /**
   * Get email
   * @return email
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getEmail() {
    return email;
  }


  @JsonProperty(JSON_PROPERTY_EMAIL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setEmail(String email) {
    this.email = email;
  }


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

   /**
   * Get phone
   * @return phone
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_PHONE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getPhone() {
    return phone;
  }


  @JsonProperty(JSON_PROPERTY_PHONE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setPhone(String phone) {
    this.phone = phone;
  }


  public PayoutOrderResponseCustomerInfo corporate(Boolean corporate) {
    this.corporate = corporate;
    return this;
  }

   /**
   * Get corporate
   * @return corporate
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CORPORATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getCorporate() {
    return corporate;
  }


  @JsonProperty(JSON_PROPERTY_CORPORATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCorporate(Boolean corporate) {
    this.corporate = corporate;
  }


  public PayoutOrderResponseCustomerInfo _object(String _object) {
    this._object = _object;
    return this;
  }

   /**
   * Get _object
   * @return _object
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_OBJECT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getObject() {
    return _object;
  }


  @JsonProperty(JSON_PROPERTY_OBJECT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setObject(String _object) {
    this._object = _object;
  }


  public PayoutOrderResponseCustomerInfo id(String id) {
    this.id = id;
    return this;
  }

   /**
   * The id of the customer.
   * @return id
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setId(String id) {
    this.id = id;
  }


  /**
   * Return true if this payout_order_response_customer_info object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PayoutOrderResponseCustomerInfo payoutOrderResponseCustomerInfo = (PayoutOrderResponseCustomerInfo) o;
    return Objects.equals(this.customerCustomReference, payoutOrderResponseCustomerInfo.customerCustomReference) &&
        Objects.equals(this.name, payoutOrderResponseCustomerInfo.name) &&
        Objects.equals(this.email, payoutOrderResponseCustomerInfo.email) &&
        Objects.equals(this.phone, payoutOrderResponseCustomerInfo.phone) &&
        Objects.equals(this.corporate, payoutOrderResponseCustomerInfo.corporate) &&
        Objects.equals(this._object, payoutOrderResponseCustomerInfo._object) &&
        Objects.equals(this.id, payoutOrderResponseCustomerInfo.id);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerCustomReference, name, email, phone, corporate, _object, id);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PayoutOrderResponseCustomerInfo {\n");
    sb.append("    customerCustomReference: ").append(toIndentedString(customerCustomReference)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    corporate: ").append(toIndentedString(corporate)).append("\n");
    sb.append("    _object: ").append(toIndentedString(_object)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).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 - 2024 Weber Informatics LLC | Privacy Policy