Interface StagedOrderChangePaymentStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Produces the Order Payment State Changed Message.
Example to create an instance using the builder pattern
StagedOrderChangePaymentStateAction stagedOrderChangePaymentStateAction = StagedOrderChangePaymentStateAction.builder()
.paymentState(PaymentState.BALANCE_DUE)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderChangePaymentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderChangePaymentStateActionbuilder
(StagedOrderChangePaymentStateAction template) create builder for StagedOrderChangePaymentStateAction instancedeepCopy
(StagedOrderChangePaymentStateAction template) factory method to create a deep copy of StagedOrderChangePaymentStateAction@NotNull PaymentState
New payment status of the Order.of()
factory methodof
(StagedOrderChangePaymentStateAction template) factory method to create a shallow copy StagedOrderChangePaymentStateActionvoid
setPaymentState
(PaymentState paymentState) New payment status of the Order.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangePaymentStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
CHANGE_PAYMENT_STATE
discriminator value for StagedOrderChangePaymentStateAction- See Also:
-
-
Method Details
-
getPaymentState
New payment status of the Order.
- Returns:
- paymentState
-
setPaymentState
New payment status of the Order.
- Parameters:
paymentState
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderChangePaymentStateAction
-
of
factory method to create a shallow copy StagedOrderChangePaymentStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderChangePaymentStateAction deepCopy(@Nullable StagedOrderChangePaymentStateAction template) factory method to create a deep copy of StagedOrderChangePaymentStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangePaymentStateAction- Returns:
- builder
-
builder
static StagedOrderChangePaymentStateActionBuilder builder(StagedOrderChangePaymentStateAction template) create builder for StagedOrderChangePaymentStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangePaymentStateAction
default <T> T withStagedOrderChangePaymentStateAction(Function<StagedOrderChangePaymentStateAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangePaymentStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-