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

com.klarna.rest.api.payments.model.PaymentsAddress 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.payments.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;

/**
 * PaymentsAddress
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-01-20T11:12:59.490Z")
public class PaymentsAddress {
  @JsonProperty("attention")
  private String attention = null;

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

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

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

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

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

  @JsonProperty("organization_name")
  private String organizationName = null;

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

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

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

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

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

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

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

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

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

  public PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress organizationName(String organizationName) {
    this.organizationName = organizationName;
    return this;
  }

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

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

  public PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress 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 PaymentsAddress title(String title) {
    this.title = title;
    return this;
  }

   /**
   * Title.
   * @return title
  **/
  @ApiModelProperty(example = "Mr", value = "Title.")
  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentsAddress address = (PaymentsAddress) o;
    return Objects.equals(this.attention, address.attention) &&
        Objects.equals(this.city, address.city) &&
        Objects.equals(this.country, address.country) &&
        Objects.equals(this.email, address.email) &&
        Objects.equals(this.familyName, address.familyName) &&
        Objects.equals(this.givenName, address.givenName) &&
        Objects.equals(this.organizationName, address.organizationName) &&
        Objects.equals(this.phone, address.phone) &&
        Objects.equals(this.postalCode, address.postalCode) &&
        Objects.equals(this.region, address.region) &&
        Objects.equals(this.streetAddress, address.streetAddress) &&
        Objects.equals(this.streetAddress2, address.streetAddress2) &&
        Objects.equals(this.title, address.title);
  }

  @Override
  public int hashCode() {
    return Objects.hash(attention, city, country, email, familyName, givenName, organizationName, phone, postalCode, region, streetAddress, streetAddress2, title);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentsAddress {\n");
    
    sb.append("    attention: ").append(toIndentedString(attention)).append("\n");
    sb.append("    city: ").append(toIndentedString(city)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    familyName: ").append(toIndentedString(familyName)).append("\n");
    sb.append("    givenName: ").append(toIndentedString(givenName)).append("\n");
    sb.append("    organizationName: ").append(toIndentedString(organizationName)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    postalCode: ").append(toIndentedString(postalCode)).append("\n");
    sb.append("    region: ").append(toIndentedString(region)).append("\n");
    sb.append("    streetAddress: ").append(toIndentedString(streetAddress)).append("\n");
    sb.append("    streetAddress2: ").append(toIndentedString(streetAddress2)).append("\n");
    sb.append("    title: ").append(toIndentedString(title)).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