Interface CustomerSignInResult
public interface CustomerSignInResult
CustomerSignInResult
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSignInResult customerSignInResult = CustomerSignInResult.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerSignInResultBuilderbuilder()builder factory method for CustomerSignInResultstatic CustomerSignInResultBuilderbuilder(CustomerSignInResult template) create builder for CustomerSignInResult instancecopyDeep()static CustomerSignInResultdeepCopy(CustomerSignInResult template) factory method to create a deep copy of CustomerSignInResult@Valid CartgetCart()Cart associated with the Customer.@NotNull @Valid Customerstatic CustomerSignInResultof()factory methodstatic CustomerSignInResultof(CustomerSignInResult template) factory method to create a shallow copy CustomerSignInResultvoidCart associated with the Customer.voidsetCustomer(Customer customer) static com.fasterxml.jackson.core.type.TypeReference<CustomerSignInResult>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerSignInResult(Function<CustomerSignInResult, T> helper) accessor map function
-
Method Details
-
getCustomer
- Returns:
- customer
-
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
- Parameters:
customer- value to be set
-
setCart
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
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
CustomerSignInResult copyDeep() -
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
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-