Class StagedOrderAddPaymentActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddPaymentActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderAddPaymentAction>
public class StagedOrderAddPaymentActionBuilder
extends Object
implements Builder<StagedOrderAddPaymentAction>
StagedOrderAddPaymentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderAddPaymentAction stagedOrderAddPaymentAction = StagedOrderAddPaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderAddPaymentAction with checking for non-null required valuesbuilds StagedOrderAddPaymentAction without checking for non-null required valuesPayment to add to the PaymentInfo.of()
factory method for an instance of StagedOrderAddPaymentActionBuilderof
(StagedOrderAddPaymentAction template) create builder for StagedOrderAddPaymentAction instancepayment
(PaymentResourceIdentifier payment) Payment to add to the PaymentInfo.Payment to add to the PaymentInfo.Payment to add to the PaymentInfo.
-
Constructor Details
-
StagedOrderAddPaymentActionBuilder
public StagedOrderAddPaymentActionBuilder()
-
-
Method Details
-
payment
public StagedOrderAddPaymentActionBuilder payment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifierBuilder> builder) Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
withPayment
public StagedOrderAddPaymentActionBuilder withPayment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifier> builder) Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
payment
Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.
- Parameters:
payment
- value to be set- Returns:
- Builder
-
getPayment
Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.
- Returns:
- payment
-
build
builds StagedOrderAddPaymentAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderAddPaymentAction>
- Returns:
- StagedOrderAddPaymentAction
-
buildUnchecked
builds StagedOrderAddPaymentAction without checking for non-null required values- Returns:
- StagedOrderAddPaymentAction
-
of
factory method for an instance of StagedOrderAddPaymentActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderAddPaymentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-