Class StagedOrderRemovePaymentActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderRemovePaymentActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderRemovePaymentAction>
public class StagedOrderRemovePaymentActionBuilder
extends Object
implements Builder<StagedOrderRemovePaymentAction>
StagedOrderRemovePaymentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderRemovePaymentAction stagedOrderRemovePaymentAction = StagedOrderRemovePaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderRemovePaymentAction with checking for non-null required valuesbuilds StagedOrderRemovePaymentAction without checking for non-null required valuesPayment to remove from the PaymentInfo.of()factory method for an instance of StagedOrderRemovePaymentActionBuilderof(StagedOrderRemovePaymentAction template) create builder for StagedOrderRemovePaymentAction instancepayment(PaymentResourceIdentifier payment) Payment to remove from the PaymentInfo.Payment to remove from the PaymentInfo.Payment to remove from the PaymentInfo.
-
Constructor Details
-
StagedOrderRemovePaymentActionBuilder
public StagedOrderRemovePaymentActionBuilder()
-
-
Method Details
-
payment
public StagedOrderRemovePaymentActionBuilder payment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifierBuilder> builder) Payment to remove from the PaymentInfo.
- Parameters:
builder- function to build the payment value- Returns:
- Builder
-
withPayment
public StagedOrderRemovePaymentActionBuilder withPayment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifier> builder) Payment to remove from the PaymentInfo.
- Parameters:
builder- function to build the payment value- Returns:
- Builder
-
payment
Payment to remove from the PaymentInfo.
- Parameters:
payment- value to be set- Returns:
- Builder
-
getPayment
Payment to remove from the PaymentInfo.
- Returns:
- payment
-
build
builds StagedOrderRemovePaymentAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderRemovePaymentAction>- Returns:
- StagedOrderRemovePaymentAction
-
buildUnchecked
builds StagedOrderRemovePaymentAction without checking for non-null required values- Returns:
- StagedOrderRemovePaymentAction
-
of
factory method for an instance of StagedOrderRemovePaymentActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderRemovePaymentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-