public static class Storefront.CartBuyerIdentity extends AbstractResponse<Storefront.CartBuyerIdentity>
optimisticData, responseData| Constructor and Description |
|---|
CartBuyerIdentity() |
CartBuyerIdentity(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.CountryCode |
getCountryCode()
The country where the buyer is located.
|
Storefront.Customer |
getCustomer()
The customer account associated with the cart.
|
java.util.List<Storefront.DeliveryAddress> |
getDeliveryAddressPreferences()
An ordered set of delivery addresses tied to the buyer that is interacting with the cart.
|
java.lang.String |
getEmail()
The email address of the buyer that is interacting with the cart.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getPhone()
The phone number of the buyer that is interacting with the cart.
|
Storefront.CartBuyerIdentity |
setCountryCode(Storefront.CountryCode arg) |
Storefront.CartBuyerIdentity |
setCustomer(Storefront.Customer arg) |
Storefront.CartBuyerIdentity |
setDeliveryAddressPreferences(java.util.List<Storefront.DeliveryAddress> arg) |
Storefront.CartBuyerIdentity |
setEmail(java.lang.String arg) |
Storefront.CartBuyerIdentity |
setPhone(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartBuyerIdentity()
public CartBuyerIdentity(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.CountryCode getCountryCode()
public Storefront.CartBuyerIdentity setCountryCode(Storefront.CountryCode arg)
public Storefront.Customer getCustomer()
public Storefront.CartBuyerIdentity setCustomer(Storefront.Customer arg)
public java.util.List<Storefront.DeliveryAddress> getDeliveryAddressPreferences()
public Storefront.CartBuyerIdentity setDeliveryAddressPreferences(java.util.List<Storefront.DeliveryAddress> arg)
public java.lang.String getEmail()
public Storefront.CartBuyerIdentity setEmail(java.lang.String arg)
public java.lang.String getPhone()
public Storefront.CartBuyerIdentity setPhone(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartBuyerIdentity>