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

com.stripe.model.Address Maven / Gradle / Ivy

There is a newer version: 26.13.0-beta.1
Show newest version
// Generated by delombok at Tue Sep 03 10:42:51 PDT 2019
// Generated by com.stripe.generator.entity.SdkBuilder
package com.stripe.model;

import com.google.gson.annotations.SerializedName;

public class Address extends StripeObject {
  /**
   * City/District/Suburb/Town/Village.
   */
  @SerializedName("city")
  String city;
  /**
   * 2-letter country code.
   */
  @SerializedName("country")
  String country;
  /**
   * Address line 1 (Street address/PO Box/Company name).
   */
  @SerializedName("line1")
  String line1;
  /**
   * Address line 2 (Apartment/Suite/Unit/Building).
   */
  @SerializedName("line2")
  String line2;
  /**
   * ZIP or postal code.
   */
  @SerializedName("postal_code")
  String postalCode;
  /**
   * State/County/Province/Region.
   */
  @SerializedName("state")
  String state;

  /**
   * City/District/Suburb/Town/Village.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getCity() {
    return this.city;
  }

  /**
   * 2-letter country code.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getCountry() {
    return this.country;
  }

  /**
   * Address line 1 (Street address/PO Box/Company name).
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getLine1() {
    return this.line1;
  }

  /**
   * Address line 2 (Apartment/Suite/Unit/Building).
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getLine2() {
    return this.line2;
  }

  /**
   * ZIP or postal code.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getPostalCode() {
    return this.postalCode;
  }

  /**
   * State/County/Province/Region.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getState() {
    return this.state;
  }

  /**
   * City/District/Suburb/Town/Village.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setCity(final String city) {
    this.city = city;
  }

  /**
   * 2-letter country code.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setCountry(final String country) {
    this.country = country;
  }

  /**
   * Address line 1 (Street address/PO Box/Company name).
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setLine1(final String line1) {
    this.line1 = line1;
  }

  /**
   * Address line 2 (Apartment/Suite/Unit/Building).
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setLine2(final String line2) {
    this.line2 = line2;
  }

  /**
   * ZIP or postal code.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setPostalCode(final String postalCode) {
    this.postalCode = postalCode;
  }

  /**
   * State/County/Province/Region.
   */
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setState(final String state) {
    this.state = state;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof Address)) return false;
    final Address other = (Address) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$city = this.getCity();
    final java.lang.Object other$city = other.getCity();
    if (this$city == null ? other$city != null : !this$city.equals(other$city)) return false;
    final java.lang.Object this$country = this.getCountry();
    final java.lang.Object other$country = other.getCountry();
    if (this$country == null ? other$country != null : !this$country.equals(other$country)) return false;
    final java.lang.Object this$line1 = this.getLine1();
    final java.lang.Object other$line1 = other.getLine1();
    if (this$line1 == null ? other$line1 != null : !this$line1.equals(other$line1)) return false;
    final java.lang.Object this$line2 = this.getLine2();
    final java.lang.Object other$line2 = other.getLine2();
    if (this$line2 == null ? other$line2 != null : !this$line2.equals(other$line2)) return false;
    final java.lang.Object this$postalCode = this.getPostalCode();
    final java.lang.Object other$postalCode = other.getPostalCode();
    if (this$postalCode == null ? other$postalCode != null : !this$postalCode.equals(other$postalCode)) return false;
    final java.lang.Object this$state = this.getState();
    final java.lang.Object other$state = other.getState();
    if (this$state == null ? other$state != null : !this$state.equals(other$state)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof Address;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $city = this.getCity();
    result = result * PRIME + ($city == null ? 43 : $city.hashCode());
    final java.lang.Object $country = this.getCountry();
    result = result * PRIME + ($country == null ? 43 : $country.hashCode());
    final java.lang.Object $line1 = this.getLine1();
    result = result * PRIME + ($line1 == null ? 43 : $line1.hashCode());
    final java.lang.Object $line2 = this.getLine2();
    result = result * PRIME + ($line2 == null ? 43 : $line2.hashCode());
    final java.lang.Object $postalCode = this.getPostalCode();
    result = result * PRIME + ($postalCode == null ? 43 : $postalCode.hashCode());
    final java.lang.Object $state = this.getState();
    result = result * PRIME + ($state == null ? 43 : $state.hashCode());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy