Interface OrderPaymentStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Change PaymentState update action.
Example to create an instance using the builder pattern
OrderPaymentStateChangedMessagePayload orderPaymentStateChangedMessagePayload = OrderPaymentStateChangedMessagePayload.builder()
.paymentState(PaymentState.BALANCE_DUE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderPaymentStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderPaymentStateChangedMessagePayloadcreate builder for OrderPaymentStateChangedMessagePayload instancefactory method to create a deep copy of OrderPaymentStateChangedMessagePayloadPaymentState before the Change Payment State update action.@NotNull PaymentState
PaymentState after the Change Payment State update action.of()
factory methodof
(OrderPaymentStateChangedMessagePayload template) factory method to create a shallow copy OrderPaymentStateChangedMessagePayloadvoid
setOldPaymentState
(PaymentState oldPaymentState) PaymentState before the Change Payment State update action.void
setPaymentState
(PaymentState paymentState) PaymentState after the Change Payment State update action.static com.fasterxml.jackson.core.type.TypeReference<OrderPaymentStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderPaymentStateChangedMessagePayload
(Function<OrderPaymentStateChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_PAYMENT_STATE_CHANGED
discriminator value for OrderPaymentStateChangedMessagePayload- See Also:
-
-
Method Details
-
getPaymentState
PaymentState after the Change Payment State update action.
- Returns:
- paymentState
-
getOldPaymentState
PaymentState getOldPaymentState()PaymentState before the Change Payment State update action.
- Returns:
- oldPaymentState
-
setPaymentState
PaymentState after the Change Payment State update action.
- Parameters:
paymentState
- value to be set
-
setOldPaymentState
PaymentState before the Change Payment State update action.
- Parameters:
oldPaymentState
- value to be set
-
of
factory method- Returns:
- instance of OrderPaymentStateChangedMessagePayload
-
of
factory method to create a shallow copy OrderPaymentStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderPaymentStateChangedMessagePayload deepCopy(@Nullable OrderPaymentStateChangedMessagePayload template) factory method to create a deep copy of OrderPaymentStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderPaymentStateChangedMessagePayload- Returns:
- builder
-
builder
static OrderPaymentStateChangedMessagePayloadBuilder builder(OrderPaymentStateChangedMessagePayload template) create builder for OrderPaymentStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderPaymentStateChangedMessagePayload
default <T> T withOrderPaymentStateChangedMessagePayload(Function<OrderPaymentStateChangedMessagePayload, 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<OrderPaymentStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-