Interface CustomerSignInResult


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

     CustomerSignInResult customerSignInResult = CustomerSignInResult.builder()
             .customer(customerBuilder -> customerBuilder)
             .build()
 
  • Method Details

    • getCustomer

      @NotNull @Valid @NotNull @Valid Customer getCustomer()

      Customer signed up or signed in after authentication.

      Returns:
      customer
    • getCart

      @Valid @Valid Cart getCart()

      Cart associated with the Customer.

      The Cart is recalculated to remove invalid Line Items and apply the latest prices, taxes, and discounts. During these updates, the following errors can be returned: MatchingPriceNotFound and MissingTaxRateForCountry.

      For more information, see Cart updates.

      Returns:
      cart
    • setCustomer

      void setCustomer(Customer customer)

      Customer signed up or signed in after authentication.

      Parameters:
      customer - value to be set
    • setCart

      void setCart(Cart cart)

      Cart associated with the Customer.

      The Cart is recalculated to remove invalid Line Items and apply the latest prices, taxes, and discounts. During these updates, the following errors can be returned: MatchingPriceNotFound and MissingTaxRateForCountry.

      For more information, see Cart updates.

      Parameters:
      cart - value to be set
    • of

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

      factory method to create a shallow copy CustomerSignInResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

    • deepCopy

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

      static CustomerSignInResultBuilder builder()
      builder factory method for CustomerSignInResult
      Returns:
      builder
    • builder

      create builder for CustomerSignInResult instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomerSignInResult

      default <T> T withCustomerSignInResult(Function<CustomerSignInResult,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<CustomerSignInResult> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference