public static class Storefront.MailingAddress extends AbstractResponse<Storefront.MailingAddress> implements Storefront.DeliveryAddress, Storefront.Node
optimisticData, responseData| Constructor and Description |
|---|
MailingAddress() |
MailingAddress(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAddress1()
The first line of the address.
|
java.lang.String |
getAddress2()
The second line of the address.
|
java.lang.String |
getCity()
The name of the city, district, village, or town.
|
java.lang.String |
getCompany()
The name of the customer's company or organization.
|
java.lang.String |
getCountry()
The name of the country.
|
java.lang.String |
getCountryCode()
Deprecated.
Use `countryCodeV2` instead.
|
Storefront.CountryCode |
getCountryCodeV2()
The two-letter code for the country of the address.
|
java.lang.String |
getFirstName()
The first name of the customer.
|
java.util.List<java.lang.String> |
getFormatted()
A formatted version of the address, customized by the provided arguments.
|
java.lang.String |
getFormattedArea()
A comma-separated list of the values for city, province, and country.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
java.lang.String |
getLastName()
The last name of the customer.
|
java.lang.Double |
getLatitude()
The latitude coordinate of the customer address.
|
java.lang.Double |
getLongitude()
The longitude coordinate of the customer address.
|
java.lang.String |
getName()
The full name of the customer, based on firstName and lastName.
|
java.lang.String |
getPhone()
A unique phone number for the customer.
|
java.lang.String |
getProvince()
The region of the address, such as the province, state, or district.
|
java.lang.String |
getProvinceCode()
The alphanumeric code for the region.
|
java.lang.String |
getZip()
The zip or postal code of the address.
|
Storefront.MailingAddress |
setAddress1(java.lang.String arg) |
Storefront.MailingAddress |
setAddress2(java.lang.String arg) |
Storefront.MailingAddress |
setCity(java.lang.String arg) |
Storefront.MailingAddress |
setCompany(java.lang.String arg) |
Storefront.MailingAddress |
setCountry(java.lang.String arg) |
Storefront.MailingAddress |
setCountryCode(java.lang.String arg) |
Storefront.MailingAddress |
setCountryCodeV2(Storefront.CountryCode arg) |
Storefront.MailingAddress |
setFirstName(java.lang.String arg) |
Storefront.MailingAddress |
setFormatted(java.util.List<java.lang.String> arg) |
Storefront.MailingAddress |
setFormattedArea(java.lang.String arg) |
Storefront.MailingAddress |
setLastName(java.lang.String arg) |
Storefront.MailingAddress |
setLatitude(java.lang.Double arg) |
Storefront.MailingAddress |
setLongitude(java.lang.Double arg) |
Storefront.MailingAddress |
setName(java.lang.String arg) |
Storefront.MailingAddress |
setPhone(java.lang.String arg) |
Storefront.MailingAddress |
setProvince(java.lang.String arg) |
Storefront.MailingAddress |
setProvinceCode(java.lang.String arg) |
Storefront.MailingAddress |
setZip(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic MailingAddress()
public MailingAddress(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.DeliveryAddressgetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.lang.String getAddress1()
public Storefront.MailingAddress setAddress1(java.lang.String arg)
public java.lang.String getAddress2()
public Storefront.MailingAddress setAddress2(java.lang.String arg)
public java.lang.String getCity()
public Storefront.MailingAddress setCity(java.lang.String arg)
public java.lang.String getCompany()
public Storefront.MailingAddress setCompany(java.lang.String arg)
public java.lang.String getCountry()
public Storefront.MailingAddress setCountry(java.lang.String arg)
public java.lang.String getCountryCode()
public Storefront.MailingAddress setCountryCode(java.lang.String arg)
public Storefront.CountryCode getCountryCodeV2()
public Storefront.MailingAddress setCountryCodeV2(Storefront.CountryCode arg)
public java.lang.String getFirstName()
public Storefront.MailingAddress setFirstName(java.lang.String arg)
public java.util.List<java.lang.String> getFormatted()
public Storefront.MailingAddress setFormatted(java.util.List<java.lang.String> arg)
public java.lang.String getFormattedArea()
public Storefront.MailingAddress setFormattedArea(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic java.lang.String getLastName()
public Storefront.MailingAddress setLastName(java.lang.String arg)
public java.lang.Double getLatitude()
public Storefront.MailingAddress setLatitude(java.lang.Double arg)
public java.lang.Double getLongitude()
public Storefront.MailingAddress setLongitude(java.lang.Double arg)
public java.lang.String getName()
public Storefront.MailingAddress setName(java.lang.String arg)
public java.lang.String getPhone()
public Storefront.MailingAddress setPhone(java.lang.String arg)
public java.lang.String getProvince()
public Storefront.MailingAddress setProvince(java.lang.String arg)
public java.lang.String getProvinceCode()
public Storefront.MailingAddress setProvinceCode(java.lang.String arg)
public java.lang.String getZip()
public Storefront.MailingAddress setZip(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.MailingAddress>