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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderPaymentStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderPaymentStateChangedMessagePayloadcreate builder for OrderPaymentStateChangedMessagePayload instancecopyDeep()factory method to create a deep copy of OrderPaymentStateChangedMessagePayloadPaymentState before the Change Payment State update action.@NotNull PaymentStatePaymentState after the Change Payment State update action.of()factory methodof(OrderPaymentStateChangedMessagePayload template) factory method to create a shallow copy OrderPaymentStateChangedMessagePayloadvoidsetOldPaymentState(PaymentState oldPaymentState) PaymentState before the Change Payment State update action.voidsetPaymentState(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> TwithOrderPaymentStateChangedMessagePayload(Function<OrderPaymentStateChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods 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
-
copyDeep
OrderPaymentStateChangedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-