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

com.klarna.rest.api.checkout.model.CheckoutAddress Maven / Gradle / Ivy

The newest version!
/*
 * 
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.klarna.rest.api.checkout.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * CheckoutAddress
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-04-02T15:03:42.622Z")
public class CheckoutAddress {
  @JsonProperty("organization_name")
  private String organizationName = null;

  @JsonProperty("reference")
  private String reference = null;

  @JsonProperty("attention")
  private String attention = null;

  @JsonProperty("given_name")
  private String givenName = null;

  @JsonProperty("family_name")
  private String familyName = null;

  @JsonProperty("email")
  private String email = null;

  @JsonProperty("title")
  private String title = null;

  @JsonProperty("street_address")
  private String streetAddress = null;

  @JsonProperty("street_address2")
  private String streetAddress2 = null;

  @JsonProperty("street_name")
  private String streetName = null;

  @JsonProperty("street_number")
  private String streetNumber = null;

  @JsonProperty("house_extension")
  private String houseExtension = null;

  @JsonProperty("postal_code")
  private String postalCode = null;

  @JsonProperty("city")
  private String city = null;

  @JsonProperty("region")
  private String region = null;

  @JsonProperty("phone")
  private String phone = null;

  @JsonProperty("country")
  private String country = null;

  @JsonProperty("care_of")
  private String careOf = null;

  public CheckoutAddress organizationName(String organizationName) {
    this.organizationName = organizationName;
    return this;
  }

   /**
   * Get organizationName
   * @return organizationName
  **/
  @ApiModelProperty(value = "")
  public String getOrganizationName() {
    return organizationName;
  }

  public void setOrganizationName(String organizationName) {
    this.organizationName = organizationName;
  }

  public CheckoutAddress reference(String reference) {
    this.reference = reference;
    return this;
  }

   /**
   * Get reference
   * @return reference
  **/
  @ApiModelProperty(value = "")
  public String getReference() {
    return reference;
  }

  public void setReference(String reference) {
    this.reference = reference;
  }

  public CheckoutAddress attention(String attention) {
    this.attention = attention;
    return this;
  }

   /**
   * Get attention
   * @return attention
  **/
  @ApiModelProperty(value = "")
  public String getAttention() {
    return attention;
  }

  public void setAttention(String attention) {
    this.attention = attention;
  }

  public CheckoutAddress givenName(String givenName) {
    this.givenName = givenName;
    return this;
  }

   /**
   * Given name.
   * @return givenName
  **/
  @ApiModelProperty(example = "John", value = "Given name.")
  public String getGivenName() {
    return givenName;
  }

  public void setGivenName(String givenName) {
    this.givenName = givenName;
  }

  public CheckoutAddress familyName(String familyName) {
    this.familyName = familyName;
    return this;
  }

   /**
   * Family name.
   * @return familyName
  **/
  @ApiModelProperty(example = "Doe", value = "Family name.")
  public String getFamilyName() {
    return familyName;
  }

  public void setFamilyName(String familyName) {
    this.familyName = familyName;
  }

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

   /**
   * E-mail address.
   * @return email
  **/
  @ApiModelProperty(example = "[email protected]", value = "E-mail address.")
  public String getEmail() {
    return email;
  }

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

  public CheckoutAddress title(String title) {
    this.title = title;
    return this;
  }

   /**
   * Title.<p>Valid values for UK:</p><ul><li><em>Mr</em></li><li><em>Ms</em></li><li><em>Mrs</em></li><li><em>Miss</em></li></ul><p>Valid values for DACH:</p><ul><li><em>Herr</em></li><li><em>Frau</em></li></ul><p>Valid values for NL:</p><ul><li><em>Dhr.</em></li><li><em>Mevr.</em></li></ul>
   * @return title
  **/
  @ApiModelProperty(example = "Mr", value = "Title.

Valid values for UK:

  • Mr
  • Ms
  • Mrs
  • Miss

Valid values for DACH:

  • Herr
  • Frau

Valid values for NL:

  • Dhr.
  • Mevr.
") public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public CheckoutAddress streetAddress(String streetAddress) { this.streetAddress = streetAddress; return this; } /** * Street address, first line. * @return streetAddress **/ @ApiModelProperty(example = "Lombard St 10", value = "Street address, first line.") public String getStreetAddress() { return streetAddress; } public void setStreetAddress(String streetAddress) { this.streetAddress = streetAddress; } public CheckoutAddress streetAddress2(String streetAddress2) { this.streetAddress2 = streetAddress2; return this; } /** * Street address, second line. * @return streetAddress2 **/ @ApiModelProperty(example = "Apt 214", value = "Street address, second line.") public String getStreetAddress2() { return streetAddress2; } public void setStreetAddress2(String streetAddress2) { this.streetAddress2 = streetAddress2; } public CheckoutAddress streetName(String streetName) { this.streetName = streetName; return this; } /** * Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See <b>streetNumber</b>. * @return streetName **/ @ApiModelProperty(example = "Lombard St", value = "Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See streetNumber.") public String getStreetName() { return streetName; } public void setStreetName(String streetName) { this.streetName = streetName; } public CheckoutAddress streetNumber(String streetNumber) { this.streetNumber = streetNumber; return this; } /** * Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See <b>streetName</b>. * @return streetNumber **/ @ApiModelProperty(example = "10", value = "Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See streetName.") public String getStreetNumber() { return streetNumber; } public void setStreetNumber(String streetNumber) { this.streetNumber = streetNumber; } public CheckoutAddress houseExtension(String houseExtension) { this.houseExtension = houseExtension; return this; } /** * House extension. Only applicable in NL * @return houseExtension **/ @ApiModelProperty(example = "B", value = "House extension. Only applicable in NL") public String getHouseExtension() { return houseExtension; } public void setHouseExtension(String houseExtension) { this.houseExtension = houseExtension; } public CheckoutAddress postalCode(String postalCode) { this.postalCode = postalCode; return this; } /** * Postal/post code. * @return postalCode **/ @ApiModelProperty(example = "90210", value = "Postal/post code.") public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public CheckoutAddress city(String city) { this.city = city; return this; } /** * City. * @return city **/ @ApiModelProperty(example = "Beverly Hills", value = "City.") public String getCity() { return city; } public void setCity(String city) { this.city = city; } public CheckoutAddress region(String region) { this.region = region; return this; } /** * State or Region. * @return region **/ @ApiModelProperty(example = "CA", value = "State or Region.") public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public CheckoutAddress phone(String phone) { this.phone = phone; return this; } /** * Phone number. * @return phone **/ @ApiModelProperty(example = "333444555", value = "Phone number.") public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public CheckoutAddress country(String country) { this.country = country; return this; } /** * ISO 3166 alpha-2. Country. * @return country **/ @ApiModelProperty(example = "US", value = "ISO 3166 alpha-2. Country.") public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public CheckoutAddress careOf(String careOf) { this.careOf = careOf; return this; } /** * Care of. * @return careOf **/ @ApiModelProperty(example = "C/O", value = "Care of.") public String getCareOf() { return careOf; } public void setCareOf(String careOf) { this.careOf = careOf; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CheckoutAddress address = (CheckoutAddress) o; return Objects.equals(this.organizationName, address.organizationName) && Objects.equals(this.reference, address.reference) && Objects.equals(this.attention, address.attention) && Objects.equals(this.givenName, address.givenName) && Objects.equals(this.familyName, address.familyName) && Objects.equals(this.email, address.email) && Objects.equals(this.title, address.title) && Objects.equals(this.streetAddress, address.streetAddress) && Objects.equals(this.streetAddress2, address.streetAddress2) && Objects.equals(this.streetName, address.streetName) && Objects.equals(this.streetNumber, address.streetNumber) && Objects.equals(this.houseExtension, address.houseExtension) && Objects.equals(this.postalCode, address.postalCode) && Objects.equals(this.city, address.city) && Objects.equals(this.region, address.region) && Objects.equals(this.phone, address.phone) && Objects.equals(this.country, address.country) && Objects.equals(this.careOf, address.careOf); } @Override public int hashCode() { return Objects.hash(organizationName, reference, attention, givenName, familyName, email, title, streetAddress, streetAddress2, streetName, streetNumber, houseExtension, postalCode, city, region, phone, country, careOf); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckoutAddress {\n"); sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" attention: ").append(toIndentedString(attention)).append("\n"); sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n"); sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" streetAddress: ").append(toIndentedString(streetAddress)).append("\n"); sb.append(" streetAddress2: ").append(toIndentedString(streetAddress2)).append("\n"); sb.append(" streetName: ").append(toIndentedString(streetName)).append("\n"); sb.append(" streetNumber: ").append(toIndentedString(streetNumber)).append("\n"); sb.append(" houseExtension: ").append(toIndentedString(houseExtension)).append("\n"); sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); sb.append(" city: ").append(toIndentedString(city)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append(" careOf: ").append(toIndentedString(careOf)).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(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy