Class StagedOrderChangePaymentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderChangePaymentStateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderChangePaymentStateAction>
public class StagedOrderChangePaymentStateActionBuilder
extends Object
implements Builder<StagedOrderChangePaymentStateAction>
StagedOrderChangePaymentStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangePaymentStateAction stagedOrderChangePaymentStateAction = StagedOrderChangePaymentStateAction.builder()
.paymentState(PaymentState.BALANCE_DUE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderChangePaymentStateAction with checking for non-null required valuesbuilds StagedOrderChangePaymentStateAction without checking for non-null required valuesNew payment status of the Order.of()
factory method for an instance of StagedOrderChangePaymentStateActionBuilderof
(StagedOrderChangePaymentStateAction template) create builder for StagedOrderChangePaymentStateAction instancepaymentState
(PaymentState paymentState) New payment status of the Order.
-
Constructor Details
-
StagedOrderChangePaymentStateActionBuilder
public StagedOrderChangePaymentStateActionBuilder()
-
-
Method Details
-
paymentState
New payment status of the Order.
- Parameters:
paymentState
- value to be set- Returns:
- Builder
-
getPaymentState
New payment status of the Order.
- Returns:
- paymentState
-
build
builds StagedOrderChangePaymentStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderChangePaymentStateAction>
- Returns:
- StagedOrderChangePaymentStateAction
-
buildUnchecked
builds StagedOrderChangePaymentStateAction without checking for non-null required values- Returns:
- StagedOrderChangePaymentStateAction
-
of
factory method for an instance of StagedOrderChangePaymentStateActionBuilder- Returns:
- builder
-
of
public static StagedOrderChangePaymentStateActionBuilder of(StagedOrderChangePaymentStateAction template) create builder for StagedOrderChangePaymentStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-