Interface PaymentTransactionStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change TransactionState update action.
Example to create an instance using the builder pattern
PaymentTransactionStateChangedMessagePayload paymentTransactionStateChangedMessagePayload = PaymentTransactionStateChangedMessagePayload.builder()
.transactionId("{transactionId}")
.state(TransactionState.INITIAL)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentTransactionStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentTransactionStateChangedMessagePayloadcreate builder for PaymentTransactionStateChangedMessagePayload instancefactory method to create a deep copy of PaymentTransactionStateChangedMessagePayload@NotNull TransactionState
getState()
Transaction State after the Change Transaction State update action.@NotNull String
Unique identifier for the Transaction for which the Transaction State changed.of()
factory methodfactory method to create a shallow copy PaymentTransactionStateChangedMessagePayloadvoid
setState
(TransactionState state) Transaction State after the Change Transaction State update action.void
setTransactionId
(String transactionId) Unique identifier for the Transaction for which the Transaction State changed.static com.fasterxml.jackson.core.type.TypeReference<PaymentTransactionStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentTransactionStateChangedMessagePayload
(Function<PaymentTransactionStateChangedMessagePayload, 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
-
Field Details
-
PAYMENT_TRANSACTION_STATE_CHANGED
discriminator value for PaymentTransactionStateChangedMessagePayload- See Also:
-
-
Method Details
-
getTransactionId
Unique identifier for the Transaction for which the Transaction State changed.
- Returns:
- transactionId
-
getState
Transaction State after the Change Transaction State update action.
- Returns:
- state
-
setTransactionId
Unique identifier for the Transaction for which the Transaction State changed.
- Parameters:
transactionId
- value to be set
-
setState
Transaction State after the Change Transaction State update action.
- Parameters:
state
- value to be set
-
of
factory method- Returns:
- instance of PaymentTransactionStateChangedMessagePayload
-
of
static PaymentTransactionStateChangedMessagePayload of(PaymentTransactionStateChangedMessagePayload template) factory method to create a shallow copy PaymentTransactionStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentTransactionStateChangedMessagePayload deepCopy(@Nullable PaymentTransactionStateChangedMessagePayload template) factory method to create a deep copy of PaymentTransactionStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentTransactionStateChangedMessagePayload- Returns:
- builder
-
builder
static PaymentTransactionStateChangedMessagePayloadBuilder builder(PaymentTransactionStateChangedMessagePayload template) create builder for PaymentTransactionStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentTransactionStateChangedMessagePayload
default <T> T withPaymentTransactionStateChangedMessagePayload(Function<PaymentTransactionStateChangedMessagePayload, 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<PaymentTransactionStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-