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 CustomerSignInResultBuilder
builder()
builder factory method for CustomerSignInResultstatic CustomerSignInResultBuilder
builder
(CustomerSignInResult template) create builder for CustomerSignInResult instancecopyDeep()
static CustomerSignInResult
deepCopy
(CustomerSignInResult template) factory method to create a deep copy of CustomerSignInResult@Valid Cart
getCart()
Cart associated with the Customer.@NotNull @Valid Customer
static CustomerSignInResult
of()
factory methodstatic CustomerSignInResult
of
(CustomerSignInResult template) factory method to create a shallow copy CustomerSignInResultvoid
Cart associated with the Customer.void
setCustomer
(Customer customer) static com.fasterxml.jackson.core.type.TypeReference<CustomerSignInResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerSignInResult
(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
-