Class CheckoutMessageOrderPayloadBaseDataBuilder
- All Implemented Interfaces:
Builder<CheckoutMessageOrderPayloadBaseData>
Example to create an instance using the builder pattern
CheckoutMessageOrderPayloadBaseData checkoutMessageOrderPayloadBaseData = CheckoutMessageOrderPayloadBaseData.builder()
.projectKey("{projectKey}")
.cart(cartBuilder -> cartBuilder)
.plusPayments(paymentsBuilder -> paymentsBuilder)
.plusErrors(errorsBuilder -> errorsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Payments on which the change or action was performed.build()
builds CheckoutMessageOrderPayloadBaseData with checking for non-null required valuesbuilds CheckoutMessageOrderPayloadBaseData without checking for non-null required valuescart
(CartReference cart) The Cart on which the change or action was performed.cart
(Function<CartReferenceBuilder, CartReferenceBuilder> builder) The Cart on which the change or action was performed.errors
(ErrorObject... errors) Errors associated with the order event.errors
(List<ErrorObject> errors) Errors associated with the order event.getCart()
The Cart on which the change or action was performed.Errors associated with the order event.The Payments on which the change or action was performed.key
of the Project where the order would belong to.of()
factory method for an instance of CheckoutMessageOrderPayloadBaseDataBuilderof
(CheckoutMessageOrderPayloadBaseData template) create builder for CheckoutMessageOrderPayloadBaseData instancepayments
(PaymentReference... payments) The Payments on which the change or action was performed.payments
(List<PaymentReference> payments) The Payments on which the change or action was performed.plusErrors
(ErrorObject... errors) Errors associated with the order event.plusErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors associated with the order event.plusPayments
(PaymentReference... payments) The Payments on which the change or action was performed.The Payments on which the change or action was performed.projectKey
(String projectKey) key
of the Project where the order would belong to.The Payments on which the change or action was performed.withCart
(Function<CartReferenceBuilder, CartReference> builder) The Cart on which the change or action was performed.withErrors
(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors associated with the order event.The Payments on which the change or action was performed.
-
Constructor Details
-
CheckoutMessageOrderPayloadBaseDataBuilder
public CheckoutMessageOrderPayloadBaseDataBuilder()
-
-
Method Details
-
projectKey
key
of the Project where the order would belong to.- Parameters:
projectKey
- value to be set- Returns:
- Builder
-
cart
public CheckoutMessageOrderPayloadBaseDataBuilder cart(Function<CartReferenceBuilder, CartReferenceBuilder> builder) The Cart on which the change or action was performed.
- Parameters:
builder
- function to build the cart value- Returns:
- Builder
-
withCart
public CheckoutMessageOrderPayloadBaseDataBuilder withCart(Function<CartReferenceBuilder, CartReference> builder) The Cart on which the change or action was performed.
- Parameters:
builder
- function to build the cart value- Returns:
- Builder
-
cart
The Cart on which the change or action was performed.
- Parameters:
cart
- value to be set- Returns:
- Builder
-
payments
The Payments on which the change or action was performed.
- Parameters:
payments
- value to be set- Returns:
- Builder
-
payments
The Payments on which the change or action was performed.
- Parameters:
payments
- value to be set- Returns:
- Builder
-
plusPayments
The Payments on which the change or action was performed.
- Parameters:
payments
- value to be set- Returns:
- Builder
-
plusPayments
public CheckoutMessageOrderPayloadBaseDataBuilder plusPayments(Function<PaymentReferenceBuilder, PaymentReferenceBuilder> builder) The Payments on which the change or action was performed.
- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
withPayments
public CheckoutMessageOrderPayloadBaseDataBuilder withPayments(Function<PaymentReferenceBuilder, PaymentReferenceBuilder> builder) The Payments on which the change or action was performed.
- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
addPayments
public CheckoutMessageOrderPayloadBaseDataBuilder addPayments(Function<PaymentReferenceBuilder, PaymentReference> builder) The Payments on which the change or action was performed.
- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
setPayments
public CheckoutMessageOrderPayloadBaseDataBuilder setPayments(Function<PaymentReferenceBuilder, PaymentReference> builder) The Payments on which the change or action was performed.
- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
errors
Errors associated with the order event.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
errors
Errors associated with the order event.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
Errors associated with the order event.
- Parameters:
errors
- value to be set- Returns:
- Builder
-
plusErrors
public CheckoutMessageOrderPayloadBaseDataBuilder plusErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors associated with the order event.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
withErrors
public CheckoutMessageOrderPayloadBaseDataBuilder withErrors(Function<ErrorObjectBuilder, Builder<? extends ErrorObject>> builder) Errors associated with the order event.
- Parameters:
builder
- function to build the errors value- Returns:
- Builder
-
getProjectKey
key
of the Project where the order would belong to.- Returns:
- projectKey
-
getCart
The Cart on which the change or action was performed.
- Returns:
- cart
-
getPayments
The Payments on which the change or action was performed.
- Returns:
- payments
-
getErrors
Errors associated with the order event.
- Returns:
- errors
-
build
builds CheckoutMessageOrderPayloadBaseData with checking for non-null required values- Specified by:
build
in interfaceBuilder<CheckoutMessageOrderPayloadBaseData>
- Returns:
- CheckoutMessageOrderPayloadBaseData
-
buildUnchecked
builds CheckoutMessageOrderPayloadBaseData without checking for non-null required values- Returns:
- CheckoutMessageOrderPayloadBaseData
-
of
factory method for an instance of CheckoutMessageOrderPayloadBaseDataBuilder- Returns:
- builder
-
of
public static CheckoutMessageOrderPayloadBaseDataBuilder of(CheckoutMessageOrderPayloadBaseData template) create builder for CheckoutMessageOrderPayloadBaseData instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-