Class PostalAddress

java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.PostalAddress

@Generated("jsonschema2pojo") public class PostalAddress extends Object
Postal Address

  • Constructor Details

    • PostalAddress

      public PostalAddress()
  • Method Details

    • getExtendedAddress

      public String getExtendedAddress()
      An address extension such as an apartment number, C/O or alternative name.
    • setExtendedAddress

      public void setExtendedAddress(String extendedAddress)
      An address extension such as an apartment number, C/O or alternative name.
    • withExtendedAddress

      public PostalAddress withExtendedAddress(String extendedAddress)
    • getStreetAddress

      public String getStreetAddress()
      The street address.
    • setStreetAddress

      public void setStreetAddress(String streetAddress)
      The street address.
    • withStreetAddress

      public PostalAddress withStreetAddress(String streetAddress)
    • getAddressLocality

      public String getAddressLocality()
      The locality in which the street address is, and which is in the region. For example, Mountain View.
    • setAddressLocality

      public void setAddressLocality(String addressLocality)
      The locality in which the street address is, and which is in the region. For example, Mountain View.
    • withAddressLocality

      public PostalAddress withAddressLocality(String addressLocality)
    • getAddressRegion

      public String getAddressRegion()
      The region in which the locality is, and which is in the country. Required for applicable countries (i.e. state in US, province in CA). For example, California or another appropriate first-level Administrative division.
    • setAddressRegion

      public void setAddressRegion(String addressRegion)
      The region in which the locality is, and which is in the country. Required for applicable countries (i.e. state in US, province in CA). For example, California or another appropriate first-level Administrative division.
    • withAddressRegion

      public PostalAddress withAddressRegion(String addressRegion)
    • getAddressCountry

      public String getAddressCountry()
      The country. Recommended to be in 2-letter ISO 3166-1 alpha-2 format, for example "US". For backward compatibility, a 3-letter ISO 3166-1 alpha-3 country code such as "SGP" or a full country name such as "Singapore" can also be used.
    • setAddressCountry

      public void setAddressCountry(String addressCountry)
      The country. Recommended to be in 2-letter ISO 3166-1 alpha-2 format, for example "US". For backward compatibility, a 3-letter ISO 3166-1 alpha-3 country code such as "SGP" or a full country name such as "Singapore" can also be used.
    • withAddressCountry

      public PostalAddress withAddressCountry(String addressCountry)
    • getPostalCode

      public String getPostalCode()
      The postal code. For example, 94043.
    • setPostalCode

      public void setPostalCode(String postalCode)
      The postal code. For example, 94043.
    • withPostalCode

      public PostalAddress withPostalCode(String postalCode)
    • getFirstName

      public String getFirstName()
      Optional. First name of the contact associated with the address.
    • setFirstName

      public void setFirstName(String firstName)
      Optional. First name of the contact associated with the address.
    • withFirstName

      public PostalAddress withFirstName(String firstName)
    • getLastName

      public String getLastName()
      Optional. Last name of the contact associated with the address.
    • setLastName

      public void setLastName(String lastName)
      Optional. Last name of the contact associated with the address.
    • withLastName

      public PostalAddress withLastName(String lastName)
    • getFullName

      public String getFullName()
      Optional. Full name of the contact associated with the address (if first_name or last_name fields are present they take precedence).
    • setFullName

      public void setFullName(String fullName)
      Optional. Full name of the contact associated with the address (if first_name or last_name fields are present they take precedence).
    • withFullName

      public PostalAddress withFullName(String fullName)
    • getPhoneNumber

      public String getPhoneNumber()
      Optional. Phone number of the contact associated with the address.
    • setPhoneNumber

      public void setPhoneNumber(String phoneNumber)
      Optional. Phone number of the contact associated with the address.
    • withPhoneNumber

      public PostalAddress withPhoneNumber(String phoneNumber)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • withAdditionalProperty

      public PostalAddress withAdditionalProperty(String name, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object