Class CustomerSignInResultBuilder
- All Implemented Interfaces:
Builder<CustomerSignInResult>
Example to create an instance using the builder pattern
CustomerSignInResult customerSignInResult = CustomerSignInResult.builder()
.customer(customerBuilder -> customerBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerSignInResult with checking for non-null required valuesbuilds CustomerSignInResult without checking for non-null required valuesCart associated with the Customer.cart
(Function<CartBuilder, CartBuilder> builder) Cart associated with the Customer.customer
(Function<CustomerBuilder, CustomerBuilder> builder) getCart()
Cart associated with the Customer.static CustomerSignInResultBuilder
of()
factory method for an instance of CustomerSignInResultBuilderstatic CustomerSignInResultBuilder
of
(CustomerSignInResult template) create builder for CustomerSignInResult instancewithCart
(Function<CartBuilder, Cart> builder) Cart associated with the Customer.withCustomer
(Function<CustomerBuilder, Customer> builder)
-
Constructor Details
-
CustomerSignInResultBuilder
public CustomerSignInResultBuilder()
-
-
Method Details
-
customer
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
withCustomer
- Parameters:
builder
- function to build the customer value- Returns:
- Builder
-
customer
- Parameters:
customer
- value to be set- Returns:
- Builder
-
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:
builder
- function to build the cart value- Returns:
- Builder
-
withCart
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:
builder
- function to build the cart value- Returns:
- Builder
-
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- Returns:
- Builder
-
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
-
build
builds CustomerSignInResult with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSignInResult>
- Returns:
- CustomerSignInResult
-
buildUnchecked
builds CustomerSignInResult without checking for non-null required values- Returns:
- CustomerSignInResult
-
of
factory method for an instance of CustomerSignInResultBuilder- Returns:
- builder
-
of
create builder for CustomerSignInResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-