Class MyCustomerSigninBuilder
java.lang.Object
com.commercetools.api.models.customer.MyCustomerSigninBuilder
- All Implemented Interfaces:
Builder<MyCustomerSignin>
MyCustomerSigninBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCustomerSignin myCustomerSignin = MyCustomerSignin.builder()
.email("{email}")
.password("{password}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactiveCartSignInMode
(AnonymousCartSignInMode activeCartSignInMode) IfMergeWithExistingCustomerCart
, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart. IfUseAsNewActiveCustomerCart
, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.build()
builds MyCustomerSignin with checking for non-null required valuesbuilds MyCustomerSignin without checking for non-null required valuesEmail address of the Customer treated as case-insensitive.IfMergeWithExistingCustomerCart
, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart. IfUseAsNewActiveCustomerCart
, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.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 is updated. Iffalse
, only the prices, discounts, and tax rates are updated.static MyCustomerSigninBuilder
of()
factory method for an instance of MyCustomerSigninBuilderstatic MyCustomerSigninBuilder
of
(MyCustomerSignin template) create builder for MyCustomerSignin instancePassword of the Customer.updateProductData
(Boolean updateProductData) Iftrue
, the LineItem Product data (name
,variant
, andproductType
) of the returned Cart is updated. Iffalse
, only the prices, discounts, and tax rates are updated.
-
Constructor Details
-
MyCustomerSigninBuilder
public MyCustomerSigninBuilder()
-
-
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
-
activeCartSignInMode
public MyCustomerSigninBuilder activeCartSignInMode(@Nullable AnonymousCartSignInMode activeCartSignInMode) - If
MergeWithExistingCustomerCart
, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart. - If
UseAsNewActiveCustomerCart
, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.
- Parameters:
activeCartSignInMode
- value to be set- Returns:
- Builder
- If
-
updateProductData
- If
true
, the LineItem Product data (name
,variant
, andproductType
) of the returned Cart is updated. - If
false
, only the prices, discounts, and tax rates are 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
-
getActiveCartSignInMode
- If
MergeWithExistingCustomerCart
, LineItems of the anonymous Cart are merged with the recently modified active Customer Cart. - If
UseAsNewActiveCustomerCart
, the anonymous Cart is used as the new active Customer Cart, and no LineItems are merged.
- Returns:
- activeCartSignInMode
- If
-
getUpdateProductData
- If
true
, the LineItem Product data (name
,variant
, andproductType
) of the returned Cart is updated. - If
false
, only the prices, discounts, and tax rates are updated.
- Returns:
- updateProductData
- If
-
build
builds MyCustomerSignin with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCustomerSignin>
- Returns:
- MyCustomerSignin
-
buildUnchecked
builds MyCustomerSignin without checking for non-null required values- Returns:
- MyCustomerSignin
-
of
factory method for an instance of MyCustomerSigninBuilder- Returns:
- builder
-
of
create builder for MyCustomerSignin instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-