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

com.conekta.model.OrderFiscalEntityAddressResponse 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;


/**
 * Address of the fiscal entity
 */
@JsonPropertyOrder({
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_STREET1,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_STREET2,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_POSTAL_CODE,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_CITY,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_STATE,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_COUNTRY,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_EXTERNAL_NUMBER,
  OrderFiscalEntityAddressResponse.JSON_PROPERTY_OBJECT
})
@JsonTypeName("order_fiscal_entity_address_response")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
public class OrderFiscalEntityAddressResponse {
  public static final String JSON_PROPERTY_STREET1 = "street1";
  private String street1;

  public static final String JSON_PROPERTY_STREET2 = "street2";
  private String street2;

  public static final String JSON_PROPERTY_POSTAL_CODE = "postal_code";
  private String postalCode;

  public static final String JSON_PROPERTY_CITY = "city";
  private String city;

  public static final String JSON_PROPERTY_STATE = "state";
  private String state;

  public static final String JSON_PROPERTY_COUNTRY = "country";
  private String country;

  public static final String JSON_PROPERTY_EXTERNAL_NUMBER = "external_number";
  private String externalNumber;

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

  public OrderFiscalEntityAddressResponse() { 
  }

  public OrderFiscalEntityAddressResponse street1(String street1) {
    this.street1 = street1;
    return this;
  }

   /**
   * Street name and number
   * @return street1
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_STREET1)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getStreet1() {
    return street1;
  }


  @JsonProperty(JSON_PROPERTY_STREET1)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setStreet1(String street1) {
    this.street1 = street1;
  }


  public OrderFiscalEntityAddressResponse street2(String street2) {
    this.street2 = street2;
    return this;
  }

   /**
   * Street name and number
   * @return street2
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STREET2)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getStreet2() {
    return street2;
  }


  @JsonProperty(JSON_PROPERTY_STREET2)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStreet2(String street2) {
    this.street2 = street2;
  }


  public OrderFiscalEntityAddressResponse postalCode(String postalCode) {
    this.postalCode = postalCode;
    return this;
  }

   /**
   * Postal code
   * @return postalCode
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_POSTAL_CODE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getPostalCode() {
    return postalCode;
  }


  @JsonProperty(JSON_PROPERTY_POSTAL_CODE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setPostalCode(String postalCode) {
    this.postalCode = postalCode;
  }


  public OrderFiscalEntityAddressResponse city(String city) {
    this.city = city;
    return this;
  }

   /**
   * City
   * @return city
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_CITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getCity() {
    return city;
  }


  @JsonProperty(JSON_PROPERTY_CITY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCity(String city) {
    this.city = city;
  }


  public OrderFiscalEntityAddressResponse state(String state) {
    this.state = state;
    return this;
  }

   /**
   * State
   * @return state
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getState() {
    return state;
  }


  @JsonProperty(JSON_PROPERTY_STATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setState(String state) {
    this.state = state;
  }


  public OrderFiscalEntityAddressResponse country(String country) {
    this.country = country;
    return this;
  }

   /**
   * this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
   * @return country
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_COUNTRY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getCountry() {
    return country;
  }


  @JsonProperty(JSON_PROPERTY_COUNTRY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setCountry(String country) {
    this.country = country;
  }


  public OrderFiscalEntityAddressResponse externalNumber(String externalNumber) {
    this.externalNumber = externalNumber;
    return this;
  }

   /**
   * External number
   * @return externalNumber
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_EXTERNAL_NUMBER)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getExternalNumber() {
    return externalNumber;
  }


  @JsonProperty(JSON_PROPERTY_EXTERNAL_NUMBER)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setExternalNumber(String externalNumber) {
    this.externalNumber = externalNumber;
  }


  public OrderFiscalEntityAddressResponse _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;
  }


  /**
   * Return true if this order_fiscal_entity_address_response object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OrderFiscalEntityAddressResponse orderFiscalEntityAddressResponse = (OrderFiscalEntityAddressResponse) o;
    return Objects.equals(this.street1, orderFiscalEntityAddressResponse.street1) &&
        Objects.equals(this.street2, orderFiscalEntityAddressResponse.street2) &&
        Objects.equals(this.postalCode, orderFiscalEntityAddressResponse.postalCode) &&
        Objects.equals(this.city, orderFiscalEntityAddressResponse.city) &&
        Objects.equals(this.state, orderFiscalEntityAddressResponse.state) &&
        Objects.equals(this.country, orderFiscalEntityAddressResponse.country) &&
        Objects.equals(this.externalNumber, orderFiscalEntityAddressResponse.externalNumber) &&
        Objects.equals(this._object, orderFiscalEntityAddressResponse._object);
  }

  @Override
  public int hashCode() {
    return Objects.hash(street1, street2, postalCode, city, state, country, externalNumber, _object);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OrderFiscalEntityAddressResponse {\n");
    sb.append("    street1: ").append(toIndentedString(street1)).append("\n");
    sb.append("    street2: ").append(toIndentedString(street2)).append("\n");
    sb.append("    postalCode: ").append(toIndentedString(postalCode)).append("\n");
    sb.append("    city: ").append(toIndentedString(city)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
    sb.append("    externalNumber: ").append(toIndentedString(externalNumber)).append("\n");
    sb.append("    _object: ").append(toIndentedString(_object)).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