Class StagedOrderRemovePaymentActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderRemovePaymentActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderRemovePaymentAction>
public class StagedOrderRemovePaymentActionBuilder
extends Object
implements io.vrap.rmf.base.client.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderRemovePaymentAction with checking for non-null required valuesbuilds StagedOrderRemovePaymentAction without checking for non-null required valuesResourceIdentifier of a Payment.of()
factory method for an instance of StagedOrderRemovePaymentActionBuilderof
(StagedOrderRemovePaymentAction template) create builder for StagedOrderRemovePaymentAction instancepayment
(PaymentResourceIdentifier payment) ResourceIdentifier of a Payment.ResourceIdentifier of a Payment.ResourceIdentifier of a Payment.
-
Constructor Details
-
StagedOrderRemovePaymentActionBuilder
-
-
Method Details
-
payment
public StagedOrderRemovePaymentActionBuilder payment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifierBuilder> builder) ResourceIdentifier of a Payment.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
withPayment
public StagedOrderRemovePaymentActionBuilder withPayment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifier> builder) ResourceIdentifier of a Payment.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
payment
ResourceIdentifier of a Payment.
- Parameters:
payment
- value to be set- Returns:
- Builder
-
getPayment
ResourceIdentifier of a Payment.
- Returns:
- payment
-
build
builds StagedOrderRemovePaymentAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-