Interface CustomerSignin
Example to create an instance using the builder pattern
CustomerSignin customerSignin = CustomerSignin.builder()
.email("{email}")
.password("{password}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerSigninBuilderbuilder()builder factory method for CustomerSigninstatic CustomerSigninBuilderbuilder(CustomerSignin template) create builder for CustomerSignin instancecopyDeep()static CustomerSignindeepCopy(CustomerSignin template) factory method to create a deep copy of CustomerSignin@Valid CartResourceIdentifierAssigns the Customer to the specified Cart.Deprecated.@NotNull StringgetEmail()Email address of the Customer treated as case-insensitive.@NotNull StringPassword of the Customer.Iftrue, the LineItem Product data (name,variant, andproductType) of the returned Cart will be updated. Iffalse, only the prices, discounts, and tax rates will be updated.static CustomerSigninof()factory methodstatic CustomerSigninof(CustomerSignin template) factory method to create a shallow copy CustomerSigninvoidsetAnonymousCart(CartResourceIdentifier anonymousCart) Assigns the Customer to the specified Cart.voidsetAnonymousCartId(String anonymousCartId) Deprecated.voidsetAnonymousCartSignInMode(AnonymousCartSignInMode anonymousCartSignInMode) voidsetAnonymousId(String anonymousId) voidEmail address of the Customer treated as case-insensitive.voidsetPassword(String password) Password of the Customer.voidsetUpdateProductData(Boolean updateProductData) Iftrue, the LineItem Product data (name,variant, andproductType) of the returned Cart will be updated. Iffalse, only the prices, discounts, and tax rates will be updated.static com.fasterxml.jackson.core.type.TypeReference<CustomerSignin>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerSignin(Function<CustomerSignin, T> helper) accessor map function
-
Method Details
-
getEmail
Email address of the Customer treated as case-insensitive.
- Returns:
-
getPassword
Password of the Customer.
- Returns:
- password
-
getAnonymousCartId
Deprecated.Deprecated since it is now possible to identify an anonymous cart by using its
idor externalkey.- Returns:
- anonymousCartId
-
getAnonymousCart
Assigns the Customer to the specified Cart.
- Returns:
- anonymousCart
-
getAnonymousCartSignInMode
AnonymousCartSignInMode getAnonymousCartSignInMode()- Returns:
- anonymousCartSignInMode
-
getAnonymousId
String getAnonymousId()Assigns the Customer to all Carts, Orders, ShoppingLists, and Payments with the same
anonymousId.If
anonymousCartis provided, this value must match theanonymousIdof the anonymous Cart; otherwise, an InvalidOperation error is returned.- Returns:
- anonymousId
-
getUpdateProductData
Boolean getUpdateProductData()- If
true, the LineItem Product data (name,variant, andproductType) of the returned Cart will be updated. - If
false, only the prices, discounts, and tax rates will be updated.
- Returns:
- updateProductData
- If
-
setEmail
Email address of the Customer treated as case-insensitive.
- Parameters:
email- value to be set
-
setPassword
Password of the Customer.
- Parameters:
password- value to be set
-
setAnonymousCartId
Deprecated.Deprecated since it is now possible to identify an anonymous cart by using its
idor externalkey.- Parameters:
anonymousCartId- value to be set
-
setAnonymousCart
Assigns the Customer to the specified Cart.
- Parameters:
anonymousCart- value to be set
-
setAnonymousCartSignInMode
- Parameters:
anonymousCartSignInMode- value to be set
-
setAnonymousId
Assigns the Customer to all Carts, Orders, ShoppingLists, and Payments with the same
anonymousId.If
anonymousCartis provided, this value must match theanonymousIdof the anonymous Cart; otherwise, an InvalidOperation error is returned.- Parameters:
anonymousId- value to be set
-
setUpdateProductData
- If
true, the LineItem Product data (name,variant, andproductType) of the returned Cart will be updated. - If
false, only the prices, discounts, and tax rates will be updated.
- Parameters:
updateProductData- value to be set
- If
-
of
factory method- Returns:
- instance of CustomerSignin
-
of
factory method to create a shallow copy CustomerSignin- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSignin copyDeep() -
deepCopy
factory method to create a deep copy of CustomerSignin- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSignin- Returns:
- builder
-
builder
create builder for CustomerSignin instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSignin
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-