Class PostalAddress
java.lang.Object
io.deeplumen.ucp.models.schemas.shopping.PostalAddress
Postal Address
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe country.The locality in which the street address is, and which is in the region.The region in which the locality is, and which is in the country.An address extension such as an apartment number, C/O or alternative name.Optional.Optional.Optional.Optional.The postal code.The street address.inthashCode()voidsetAdditionalProperty(String name, Object value) voidsetAddressCountry(String addressCountry) The country.voidsetAddressLocality(String addressLocality) The locality in which the street address is, and which is in the region.voidsetAddressRegion(String addressRegion) The region in which the locality is, and which is in the country.voidsetExtendedAddress(String extendedAddress) An address extension such as an apartment number, C/O or alternative name.voidsetFirstName(String firstName) Optional.voidsetFullName(String fullName) Optional.voidsetLastName(String lastName) Optional.voidsetPhoneNumber(String phoneNumber) Optional.voidsetPostalCode(String postalCode) The postal code.voidsetStreetAddress(String streetAddress) The street address.toString()withAdditionalProperty(String name, Object value) withAddressCountry(String addressCountry) withAddressLocality(String addressLocality) withAddressRegion(String addressRegion) withExtendedAddress(String extendedAddress) withFirstName(String firstName) withFullName(String fullName) withLastName(String lastName) withPhoneNumber(String phoneNumber) withPostalCode(String postalCode) withStreetAddress(String streetAddress)
-
Constructor Details
-
PostalAddress
public PostalAddress()
-
-
Method Details
-
getExtendedAddress
An address extension such as an apartment number, C/O or alternative name. -
setExtendedAddress
An address extension such as an apartment number, C/O or alternative name. -
withExtendedAddress
-
getStreetAddress
The street address. -
setStreetAddress
The street address. -
withStreetAddress
-
getAddressLocality
The locality in which the street address is, and which is in the region. For example, Mountain View. -
setAddressLocality
The locality in which the street address is, and which is in the region. For example, Mountain View. -
withAddressLocality
-
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
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
-
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
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
-
getPostalCode
The postal code. For example, 94043. -
setPostalCode
The postal code. For example, 94043. -
withPostalCode
-
getFirstName
Optional. First name of the contact associated with the address. -
setFirstName
Optional. First name of the contact associated with the address. -
withFirstName
-
getLastName
Optional. Last name of the contact associated with the address. -
setLastName
Optional. Last name of the contact associated with the address. -
withLastName
-
getFullName
Optional. Full name of the contact associated with the address (if first_name or last_name fields are present they take precedence). -
setFullName
Optional. Full name of the contact associated with the address (if first_name or last_name fields are present they take precedence). -
withFullName
-
getPhoneNumber
Optional. Phone number of the contact associated with the address. -
setPhoneNumber
Optional. Phone number of the contact associated with the address. -
withPhoneNumber
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-