public class Customer extends AbstractResponse<Customer>
optimisticData, responseData| Constructor and Description |
|---|
Customer() |
Customer(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
List<CustomerAddress> |
getAddresses()
An array containing the customer's shipping and billing addresses
|
Boolean |
getAllowRemoteShoppingAssistance()
Indicates whether the customer has enabled remote shopping assistance
|
CompareList |
getCompareList()
The contents of the customer's compare list
|
String |
getCreatedAt()
Timestamp indicating when the account was created
|
String |
getDateOfBirth()
The customer's date of birth
|
String |
getDefaultBilling()
The ID assigned to the billing address
|
String |
getDefaultShipping()
The ID assigned to the shipping address
|
String |
getDob()
Deprecated.
Use `date_of_birth` instead
|
String |
getEmail()
The customer's email address.
|
String |
getFirstname()
The customer's first name
|
Integer |
getGender()
The customer's gender (Male - 1, Female - 2)
|
String |
getGraphQlTypeName() |
Integer |
getGroupId()
Deprecated.
Customer group should not be exposed in the storefront scenarios
|
Integer |
getId()
Deprecated.
id is not needed as part of Customer because on server side it can be identified based on customer token used for
authentication. There is no need to know customer ID on the client side.
|
Boolean |
getIsSubscribed()
Indicates whether the customer is subscribed to the company's newsletter
|
String |
getLastname()
The customer's family name
|
String |
getMiddlename()
The customer's middle name
|
CustomerOrders |
getOrders() |
String |
getPrefix()
An honorific, such as Dr., Mr., or Mrs.
|
Return |
getReturn()
Retrieves details about the specified return request from the unique ID for a `Return` object
|
Returns |
getReturns()
Information about the customer's return requests.
|
ProductReviews |
getReviews()
Contains the customer's product reviews
|
RewardPoints |
getRewardPoints()
Customer reward points details
|
CustomerStoreCredit |
getStoreCredit()
Contains the store credit information applied for the logged in customer
|
String |
getSuffix()
A value such as Sr., Jr., or III
|
String |
getTaxvat()
The customer's Value-added tax (VAT) number (for corporate customers)
|
Wishlist |
getWishlist()
Deprecated.
Use `Customer.wishlists` or `Customer.wishlist_v2`
|
List<Wishlist> |
getWishlists()
An array of wishlists.
|
Wishlist |
getWishlistV2()
Retrieve the specified wish list identified by the unique ID for a `Wishlist` object
|
Customer |
setAddresses(List<CustomerAddress> arg) |
Customer |
setAllowRemoteShoppingAssistance(Boolean arg) |
Customer |
setCompareList(CompareList arg) |
Customer |
setCreatedAt(String arg) |
Customer |
setDateOfBirth(String arg) |
Customer |
setDefaultBilling(String arg) |
Customer |
setDefaultShipping(String arg) |
Customer |
setDob(String arg) |
Customer |
setEmail(String arg) |
Customer |
setFirstname(String arg) |
Customer |
setGender(Integer arg) |
Customer |
setGroupId(Integer arg) |
Customer |
setId(Integer arg) |
Customer |
setIsSubscribed(Boolean arg) |
Customer |
setLastname(String arg) |
Customer |
setMiddlename(String arg) |
Customer |
setOrders(CustomerOrders arg) |
Customer |
setPrefix(String arg) |
Customer |
setReturn(Return arg) |
Customer |
setReturns(Returns arg) |
Customer |
setReviews(ProductReviews arg) |
Customer |
setRewardPoints(RewardPoints arg) |
Customer |
setStoreCredit(CustomerStoreCredit arg) |
Customer |
setSuffix(String arg) |
Customer |
setTaxvat(String arg) |
Customer |
setWishlist(Wishlist arg) |
Customer |
setWishlists(List<Wishlist> arg) |
Customer |
setWishlistV2(Wishlist arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic Customer()
public Customer(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public List<CustomerAddress> getAddresses()
public Customer setAddresses(List<CustomerAddress> arg)
public Boolean getAllowRemoteShoppingAssistance()
public CompareList getCompareList()
public Customer setCompareList(CompareList arg)
public String getCreatedAt()
public String getDateOfBirth()
public String getDefaultBilling()
public String getDefaultShipping()
@Deprecated public String getDob()
public String getEmail()
public String getFirstname()
public Integer getGender()
@Deprecated public Integer getGroupId()
@Deprecated public Integer getId()
public Boolean getIsSubscribed()
public String getLastname()
public String getMiddlename()
public CustomerOrders getOrders()
public Customer setOrders(CustomerOrders arg)
public String getPrefix()
public Return getReturn()
public Returns getReturns()
public ProductReviews getReviews()
public Customer setReviews(ProductReviews arg)
public RewardPoints getRewardPoints()
public Customer setRewardPoints(RewardPoints arg)
public CustomerStoreCredit getStoreCredit()
public Customer setStoreCredit(CustomerStoreCredit arg)
public String getSuffix()
public String getTaxvat()
@Deprecated public Wishlist getWishlist()
public Wishlist getWishlistV2()
public List<Wishlist> getWishlists()
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<Customer>Copyright © 2022 Adobe. All rights reserved.