Interface CustomerSignin


public interface CustomerSignin
CustomerSignin
Example to create an instance using the builder pattern

     CustomerSignin customerSignin = CustomerSignin.builder()
             .email("{email}")
             .password("{password}")
             .build()
 
  • Method Details

    • getEmail

      @NotNull @NotNull String getEmail()

      Email address of the Customer treated as case-insensitive.

      Returns:
      email
    • getPassword

      @NotNull @NotNull String getPassword()

      Password of the Customer.

      Returns:
      password
    • getAnonymousCartId

      @Deprecated String getAnonymousCartId()
      Deprecated.

      Deprecated since it is now possible to identify an anonymous cart by using its id or external key.

      Returns:
      anonymousCartId
    • getAnonymousCart

      @Valid @Valid CartResourceIdentifier getAnonymousCart()

      Assigns the Customer to the specified Cart.

      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
    • getAnonymousId

      String getAnonymousId()

      Assigns the Customer to all Carts, Orders, ShoppingLists, and Payments with the same anonymousId.

      If anonymousCart is provided, this value must match the anonymousId of the anonymous Cart; otherwise, an InvalidOperation error is returned.

      Returns:
      anonymousId
    • getUpdateProductData

      Boolean getUpdateProductData()
      • If true, the LineItem Product data (name, variant, and productType) of the returned Cart will be updated.
      • If false, only the prices, discounts, and tax rates will be updated.
      Returns:
      updateProductData
    • setEmail

      void setEmail(String email)

      Email address of the Customer treated as case-insensitive.

      Parameters:
      email - value to be set
    • setPassword

      void setPassword(String password)

      Password of the Customer.

      Parameters:
      password - value to be set
    • setAnonymousCartId

      @Deprecated void setAnonymousCartId(String anonymousCartId)
      Deprecated.

      Deprecated since it is now possible to identify an anonymous cart by using its id or external key.

      Parameters:
      anonymousCartId - value to be set
    • setAnonymousCart

      void setAnonymousCart(CartResourceIdentifier anonymousCart)

      Assigns the Customer to the specified Cart.

      Parameters:
      anonymousCart - value to be set
    • setAnonymousCartSignInMode

      void setAnonymousCartSignInMode(AnonymousCartSignInMode anonymousCartSignInMode)
      • 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
    • setAnonymousId

      void setAnonymousId(String anonymousId)

      Assigns the Customer to all Carts, Orders, ShoppingLists, and Payments with the same anonymousId.

      If anonymousCart is provided, this value must match the anonymousId of the anonymous Cart; otherwise, an InvalidOperation error is returned.

      Parameters:
      anonymousId - value to be set
    • setUpdateProductData

      void setUpdateProductData(Boolean updateProductData)
      • If true, the LineItem Product data (name, variant, and productType) 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
    • of

      static CustomerSignin of()
      factory method
      Returns:
      instance of CustomerSignin
    • of

      static CustomerSignin of(CustomerSignin template)
      factory method to create a shallow copy CustomerSignin
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      CustomerSignin copyDeep()
    • deepCopy

      @Nullable static CustomerSignin deepCopy(@Nullable CustomerSignin template)
      factory method to create a deep copy of CustomerSignin
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CustomerSigninBuilder builder()
      builder factory method for CustomerSignin
      Returns:
      builder
    • builder

      static CustomerSigninBuilder builder(CustomerSignin template)
      create builder for CustomerSignin instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSignin

      default <T> T withCustomerSignin(Function<CustomerSignin,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomerSignin> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference