Interface CustomerSignInResult

All Known Implementing Classes:
CustomerSignInResultImpl

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. If empty, the Customer does not have a Cart assigned.

      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. If empty, the Customer does not have a Cart assigned.

      Parameters:
      cart - value to be set
    • 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
    • deepCopy

      factory method to create a deep copy of CustomerSignInResult
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • 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

      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