Class CustomerSigninBuilder
- All Implemented Interfaces:
Builder<CustomerSignin>
Example to create an instance using the builder pattern
CustomerSignin customerSignin = CustomerSignin.builder()
.email("{email}")
.password("{password}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanonymousCart
(CartResourceIdentifier anonymousCart) Assigns the Customer to the specified Cart.Assigns the Customer to the specified Cart.anonymousCartId
(String anonymousCartId) Deprecated.anonymousCartSignInMode
(AnonymousCartSignInMode anonymousCartSignInMode) anonymousId
(String anonymousId) build()
builds CustomerSignin with checking for non-null required valuesbuilds CustomerSignin without checking for non-null required valuesEmail address of the Customer treated as case-insensitive.Assigns the Customer to the specified Cart.Deprecated.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.static CustomerSigninBuilder
of()
factory method for an instance of CustomerSigninBuilderstatic CustomerSigninBuilder
of
(CustomerSignin template) create builder for CustomerSignin instancePassword of the Customer.updateProductData
(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.Assigns the Customer to the specified Cart.
-
Constructor Details
-
CustomerSigninBuilder
public CustomerSigninBuilder()
-
-
Method Details
-
email
Email address of the Customer treated as case-insensitive.
- Parameters:
email
- value to be set- Returns:
- Builder
-
password
Password of the Customer.
- Parameters:
password
- value to be set- Returns:
- Builder
-
anonymousCartId
Deprecated.Deprecated since it is now possible to identify an anonymous cart by using its
id
or externalkey
.- Parameters:
anonymousCartId
- value to be set- Returns:
- Builder
-
anonymousCart
public CustomerSigninBuilder anonymousCart(Function<CartResourceIdentifierBuilder, CartResourceIdentifierBuilder> builder) Assigns the Customer to the specified Cart.
- Parameters:
builder
- function to build the anonymousCart value- Returns:
- Builder
-
withAnonymousCart
public CustomerSigninBuilder withAnonymousCart(Function<CartResourceIdentifierBuilder, CartResourceIdentifier> builder) Assigns the Customer to the specified Cart.
- Parameters:
builder
- function to build the anonymousCart value- Returns:
- Builder
-
anonymousCart
Assigns the Customer to the specified Cart.
- Parameters:
anonymousCart
- value to be set- Returns:
- Builder
-
anonymousCartSignInMode
public CustomerSigninBuilder anonymousCartSignInMode(@Nullable AnonymousCartSignInMode anonymousCartSignInMode) - Parameters:
anonymousCartSignInMode
- value to be set- Returns:
- Builder
-
anonymousId
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- Returns:
- Builder
-
updateProductData
- 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- Returns:
- Builder
- If
-
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
- Returns:
- anonymousCartSignInMode
-
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
- 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
-
build
builds CustomerSignin with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSignin>
- Returns:
- CustomerSignin
-
buildUnchecked
builds CustomerSignin without checking for non-null required values- Returns:
- CustomerSignin
-
of
factory method for an instance of CustomerSigninBuilder- Returns:
- builder
-
of
create builder for CustomerSignin instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-