Class OrderChangePaymentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderChangePaymentStateActionBuilder
- All Implemented Interfaces:
Builder<OrderChangePaymentStateAction>
public class OrderChangePaymentStateActionBuilder
extends Object
implements Builder<OrderChangePaymentStateAction>
OrderChangePaymentStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderChangePaymentStateAction orderChangePaymentStateAction = OrderChangePaymentStateAction.builder()
.paymentState(PaymentState.BALANCE_DUE)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds OrderChangePaymentStateAction with checking for non-null required valuesbuilds OrderChangePaymentStateAction without checking for non-null required valuesNew payment status of the Order.of()factory method for an instance of OrderChangePaymentStateActionBuilderof(OrderChangePaymentStateAction template) create builder for OrderChangePaymentStateAction instancepaymentState(PaymentState paymentState) New payment status of the Order.
-
Constructor Details
-
OrderChangePaymentStateActionBuilder
public OrderChangePaymentStateActionBuilder()
-
-
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 OrderChangePaymentStateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<OrderChangePaymentStateAction>- Returns:
- OrderChangePaymentStateAction
-
buildUnchecked
builds OrderChangePaymentStateAction without checking for non-null required values- Returns:
- OrderChangePaymentStateAction
-
of
factory method for an instance of OrderChangePaymentStateActionBuilder- Returns:
- builder
-
of
create builder for OrderChangePaymentStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-