Class CustomerSigninImpl

java.lang.Object
com.commercetools.api.models.customer.CustomerSigninImpl
All Implemented Interfaces:
CustomerSignin, io.vrap.rmf.base.client.ModelBase

public class CustomerSigninImpl extends Object implements CustomerSignin, io.vrap.rmf.base.client.ModelBase
CustomerSignin
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Identifies a Cart that will be assigned to the Customer.
    Deprecated.
    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.
    If both anonymousCart and anonymousId are provided, the anonymousId on the CustomerSignin must match that of the anonymous Cart.
    Email address of the Customer treated as case-insensitive.
    Password of the Customer.
    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.
    int
     
    void
    Identifies a Cart that will be assigned to the Customer.
    void
    setAnonymousCartId(String anonymousCartId)
    Deprecated.
    void
    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.
    void
    setAnonymousId(String anonymousId)
    If both anonymousCart and anonymousId are provided, the anonymousId 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)
    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.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, 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

      public String getEmail()

      Email address of the Customer treated as case-insensitive.

      Specified by:
      getEmail in interface CustomerSignin
      Returns:
      email
    • getPassword

      public String getPassword()

      Password of the Customer.

      Specified by:
      getPassword in interface CustomerSignin
      Returns:
      password
    • getAnonymousCartId

      @Deprecated public String getAnonymousCartId()
      Deprecated.

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

      Specified by:
      getAnonymousCartId in interface CustomerSignin
      Returns:
      anonymousCartId
    • getAnonymousCart

      public CartResourceIdentifier getAnonymousCart()

      Identifies a Cart that will be assigned to the Customer.

      Specified by:
      getAnonymousCart in interface CustomerSignin
      Returns:
      anonymousCart
    • getAnonymousCartSignInMode

      public 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.
      Specified by:
      getAnonymousCartSignInMode in interface CustomerSignin
      Returns:
      anonymousCartSignInMode
    • getAnonymousId

      public String getAnonymousId()

      If both anonymousCart and anonymousId are provided, the anonymousId on the CustomerSignin must match that of the anonymous Cart. Otherwise a 400 Bad Request Invalid Operation error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".

      Specified by:
      getAnonymousId in interface CustomerSignin
      Returns:
      anonymousId
    • getUpdateProductData

      public 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.
      Specified by:
      getUpdateProductData in interface CustomerSignin
      Returns:
      updateProductData
    • setEmail

      public void setEmail(String email)
      Description copied from interface: CustomerSignin

      Email address of the Customer treated as case-insensitive.

      Specified by:
      setEmail in interface CustomerSignin
      Parameters:
      email - value to be set
    • setPassword

      public void setPassword(String password)
      Description copied from interface: CustomerSignin

      Password of the Customer.

      Specified by:
      setPassword in interface CustomerSignin
      Parameters:
      password - value to be set
    • setAnonymousCartId

      @Deprecated public void setAnonymousCartId(String anonymousCartId)
      Deprecated.
      Description copied from interface: CustomerSignin

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

      Specified by:
      setAnonymousCartId in interface CustomerSignin
      Parameters:
      anonymousCartId - value to be set
    • setAnonymousCart

      public void setAnonymousCart(CartResourceIdentifier anonymousCart)
      Description copied from interface: CustomerSignin

      Identifies a Cart that will be assigned to the Customer.

      Specified by:
      setAnonymousCart in interface CustomerSignin
      Parameters:
      anonymousCart - value to be set
    • setAnonymousCartSignInMode

      public void setAnonymousCartSignInMode(AnonymousCartSignInMode anonymousCartSignInMode)
      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 interface CustomerSignin
      Parameters:
      anonymousCartSignInMode - value to be set
    • setAnonymousId

      public void setAnonymousId(String anonymousId)
      Description copied from interface: CustomerSignin

      If both anonymousCart and anonymousId are provided, the anonymousId on the CustomerSignin must match that of the anonymous Cart. Otherwise a 400 Bad Request Invalid Operation error is returned with the message: "Cart with the ID cart-id does not have the expected anonymousId.".

      Specified by:
      setAnonymousId in interface CustomerSignin
      Parameters:
      anonymousId - value to be set
    • setUpdateProductData

      public void setUpdateProductData(Boolean updateProductData)
      Description copied from interface: CustomerSignin
      • 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.
      Specified by:
      setUpdateProductData in interface CustomerSignin
      Parameters:
      updateProductData - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object