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 instancestatic CustomerSignin
deepCopy
(CustomerSignin template) factory method to create a deep copy of CustomerSignin@Valid CartResourceIdentifier
Identifies a Cart that will be assigned to the Customer.Deprecated.Set toMergeWithExistingCustomerCart
if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently. Set toUseAsNewActiveCustomerCart
if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.If bothanonymousCart
andanonymousId
are provided, theanonymousId
on the CustomerSignin must match that of the anonymous Cart.@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) Identifies a Cart that will be assigned to the Customer.void
setAnonymousCartId
(String anonymousCartId) Deprecated.void
setAnonymousCartSignInMode
(AnonymousCartSignInMode anonymousCartSignInMode) Set toMergeWithExistingCustomerCart
if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently. Set toUseAsNewActiveCustomerCart
if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.void
setAnonymousId
(String anonymousId) If bothanonymousCart
andanonymousId
are provided, theanonymousId
on the CustomerSignin must match that of the anonymous Cart.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
Identifies a Cart that will be assigned to the Customer.
- Returns:
- anonymousCart
-
getAnonymousCartSignInMode
AnonymousCartSignInMode getAnonymousCartSignInMode()- Set to
MergeWithExistingCustomerCart
if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently. - Set to
UseAsNewActiveCustomerCart
if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.
- Returns:
- anonymousCartSignInMode
- Set to
-
getAnonymousId
String getAnonymousId()If both
anonymousCart
andanonymousId
are provided, theanonymousId
on the CustomerSignin must match that of the anonymous Cart. Otherwise a 400 Bad RequestInvalid Operation
error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".- 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
Identifies a Cart that will be assigned to the Customer.
- Parameters:
anonymousCart
- value to be set
-
setAnonymousCartSignInMode
- Set to
MergeWithExistingCustomerCart
if LineItems of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently. - Set to
UseAsNewActiveCustomerCart
if the anonymous Cart should be used as the new active Customer Cart and no LineItems are to be merged.
- Parameters:
anonymousCartSignInMode
- value to be set
- Set to
-
setAnonymousId
If both
anonymousCart
andanonymousId
are provided, theanonymousId
on the CustomerSignin must match that of the anonymous Cart. Otherwise a 400 Bad RequestInvalid Operation
error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".- 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
-
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
-