Class CustomerSigninImpl
- All Implemented Interfaces:
CustomerSignin
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.getEmail()
Email address of the Customer treated as case-insensitive.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.int
hashCode()
void
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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.customer.CustomerSignin
withCustomerSignin
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CustomerSigninImpl
public CustomerSigninImpl()create empty instance
-
-
Method Details
-
getEmail
Email address of the Customer treated as case-insensitive.
- Specified by:
getEmail
in interfaceCustomerSignin
- Returns:
-
getPassword
Password of the Customer.
- Specified by:
getPassword
in interfaceCustomerSignin
- Returns:
- password
-
getAnonymousCartId
Deprecated.Deprecated since it is now possible to identify an anonymous cart by using its
id
or externalkey
.- Specified by:
getAnonymousCartId
in interfaceCustomerSignin
- Returns:
- anonymousCartId
-
getAnonymousCart
Identifies a Cart that will be assigned to the Customer.
- Specified by:
getAnonymousCart
in interfaceCustomerSignin
- Returns:
- anonymousCart
-
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.
- Specified by:
getAnonymousCartSignInMode
in interfaceCustomerSignin
- Returns:
- anonymousCartSignInMode
- Set to
-
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.".- Specified by:
getAnonymousId
in interfaceCustomerSignin
- Returns:
- anonymousId
-
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.
- Specified by:
getUpdateProductData
in interfaceCustomerSignin
- Returns:
- updateProductData
- If
-
setEmail
Description copied from interface:CustomerSignin
Email address of the Customer treated as case-insensitive.
- Specified by:
setEmail
in interfaceCustomerSignin
- Parameters:
email
- value to be set
-
setPassword
Description copied from interface:CustomerSignin
Password of the Customer.
- Specified by:
setPassword
in interfaceCustomerSignin
- Parameters:
password
- value to be set
-
setAnonymousCartId
Deprecated.Description copied from interface:CustomerSignin
Deprecated since it is now possible to identify an anonymous cart by using its
id
or externalkey
.- Specified by:
setAnonymousCartId
in interfaceCustomerSignin
- Parameters:
anonymousCartId
- value to be set
-
setAnonymousCart
Description copied from interface:CustomerSignin
Identifies a Cart that will be assigned to the Customer.
- Specified by:
setAnonymousCart
in interfaceCustomerSignin
- Parameters:
anonymousCart
- value to be set
-
setAnonymousCartSignInMode
Description copied from interface:CustomerSignin
- 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.
- Specified by:
setAnonymousCartSignInMode
in interfaceCustomerSignin
- Parameters:
anonymousCartSignInMode
- value to be set
- Set to
-
setAnonymousId
Description copied from interface:CustomerSignin
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.".- Specified by:
setAnonymousId
in interfaceCustomerSignin
- Parameters:
anonymousId
- value to be set
-
setUpdateProductData
Description copied from interface:CustomerSignin
- 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.
- Specified by:
setUpdateProductData
in interfaceCustomerSignin
- Parameters:
updateProductData
- value to be set
- If
-
equals
-
hashCode
public int hashCode()
-