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