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 instancestatic CustomerSignInResult
deepCopy
(CustomerSignInResult template) factory method to create a deep copy of CustomerSignInResult@Valid Cart
getCart()
Cart associated with the Customer.@NotNull @Valid Customer
Customer signed up or signed in after authentication.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) Customer signed up or signed in after authentication.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
Customer signed up or signed in after authentication.
- Returns:
- customer
-
getCart
Cart associated with the Customer. If empty, the Customer does not have a Cart assigned.
- Returns:
- cart
-
setCustomer
Customer signed up or signed in after authentication.
- Parameters:
customer
- value to be set
-
setCart
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
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-