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 CustomerSigninBuilder
builder()
builder factory method for CustomerSigninstatic CustomerSigninBuilder
builder
(CustomerSignin template) create builder for CustomerSignin instancecopyDeep()
static CustomerSignin
deepCopy
(CustomerSignin template) factory method to create a deep copy of CustomerSignin@Valid CartResourceIdentifier
Assigns the Customer to the specified Cart.Deprecated.@NotNull String
getEmail()
Email address of the Customer treated as case-insensitive.@NotNull String
Password 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 CustomerSignin
of()
factory methodstatic CustomerSignin
of
(CustomerSignin template) factory method to create a shallow copy CustomerSigninvoid
setAnonymousCart
(CartResourceIdentifier anonymousCart) Assigns the Customer to the specified Cart.void
setAnonymousCartId
(String anonymousCartId) Deprecated.void
setAnonymousCartSignInMode
(AnonymousCartSignInMode anonymousCartSignInMode) void
setAnonymousId
(String anonymousId) void
Email address of the Customer treated as case-insensitive.void
setPassword
(String password) Password of the Customer.void
setUpdateProductData
(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> T
withCustomerSignin
(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
id
or 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
anonymousCart
is provided, this value must match theanonymousId
of 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
id
or 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
anonymousCart
is provided, this value must match theanonymousId
of 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
-