Class MyCustomerSigninBuilder

java.lang.Object
com.commercetools.api.models.customer.MyCustomerSigninBuilder
All Implemented Interfaces:
Builder<MyCustomerSignin>

public class MyCustomerSigninBuilder extends Object implements Builder<MyCustomerSignin>
MyCustomerSigninBuilder
Example to create an instance using the builder pattern

     MyCustomerSignin myCustomerSignin = MyCustomerSignin.builder()
             .email("{email}")
             .password("{password}")
             .build()
 
  • Constructor Details

    • MyCustomerSigninBuilder

      public MyCustomerSigninBuilder()
  • Method Details

    • email

      public MyCustomerSigninBuilder email(String email)

      Email address of the Customer treated as case-insensitive.

      Parameters:
      email - value to be set
      Returns:
      Builder
    • password

      public MyCustomerSigninBuilder password(String 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
    • updateProductData

      public MyCustomerSigninBuilder updateProductData(@Nullable Boolean updateProductData)
      • If true, the LineItem Product data (name, variant, and productType) 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
    • getEmail

      public String getEmail()

      Email address of the Customer treated as case-insensitive.

      Returns:
      email
    • getPassword

      public String getPassword()

      Password of the Customer.

      Returns:
      password
    • getActiveCartSignInMode

      @Nullable public AnonymousCartSignInMode 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
    • getUpdateProductData

      @Nullable public Boolean getUpdateProductData()
      • If true, the LineItem Product data (name, variant, and productType) of the returned Cart is updated.
      • If false, only the prices, discounts, and tax rates are updated.
      Returns:
      updateProductData
    • build

      public MyCustomerSignin build()
      builds MyCustomerSignin with checking for non-null required values
      Specified by:
      build in interface Builder<MyCustomerSignin>
      Returns:
      MyCustomerSignin
    • buildUnchecked

      public MyCustomerSignin buildUnchecked()
      builds MyCustomerSignin without checking for non-null required values
      Returns:
      MyCustomerSignin
    • of

      public static MyCustomerSigninBuilder of()
      factory method for an instance of MyCustomerSigninBuilder
      Returns:
      builder
    • of

      public static MyCustomerSigninBuilder of(MyCustomerSignin template)
      create builder for MyCustomerSignin instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder