@gradientedge/commercetools-utils
    Preparing search index...

    Interface CustomerSignin

    interface CustomerSignin {
        anonymousCart?: CartResourceIdentifier;
        anonymousCartId?: string;
        anonymousCartSignInMode?: AnonymousCartSignInMode;
        anonymousId?: string;
        email: string;
        password: string;
        updateProductData?: boolean;
    }
    Index

    Properties

    anonymousCart?: CartResourceIdentifier

    Identifies a Cart that will be assigned to the Customer.

    anonymousCartId?: string

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

    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.
    anonymousId?: string

    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.".

    email: string

    Email address of the Customer treated as case-insensitive.

    password: string

    Password of the Customer.

    updateProductData?: boolean
    • 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.