Interface PaymentChangeTransactionStateAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
Changing the TransactionState generates the PaymentTransactionStateChanged Message.
Example to create an instance using the builder pattern
PaymentChangeTransactionStateAction paymentChangeTransactionStateAction = PaymentChangeTransactionStateAction.builder()
.transactionId("{transactionId}")
.state(TransactionState.INITIAL)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentChangeTransactionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentChangeTransactionStateActionbuilder
(PaymentChangeTransactionStateAction template) create builder for PaymentChangeTransactionStateAction instancedeepCopy
(PaymentChangeTransactionStateAction template) factory method to create a deep copy of PaymentChangeTransactionStateAction@NotNull TransactionState
getState()
New TransactionState.@NotNull String
Unique identifier of the Transaction.of()
factory methodof
(PaymentChangeTransactionStateAction template) factory method to create a shallow copy PaymentChangeTransactionStateActionvoid
setState
(TransactionState state) New TransactionState.void
setTransactionId
(String transactionId) Unique identifier of the Transaction.static com.fasterxml.jackson.core.type.TypeReference<PaymentChangeTransactionStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_TRANSACTION_STATE
discriminator value for PaymentChangeTransactionStateAction- See Also:
-
-
Method Details
-
getTransactionId
Unique identifier of the Transaction.
- Returns:
- transactionId
-
getState
New TransactionState.
- Returns:
- state
-
setTransactionId
Unique identifier of the Transaction.
- Parameters:
transactionId
- value to be set
-
setState
New TransactionState.
- Parameters:
state
- value to be set
-
of
factory method- Returns:
- instance of PaymentChangeTransactionStateAction
-
of
factory method to create a shallow copy PaymentChangeTransactionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentChangeTransactionStateAction deepCopy(@Nullable PaymentChangeTransactionStateAction template) factory method to create a deep copy of PaymentChangeTransactionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentChangeTransactionStateAction- Returns:
- builder
-
builder
static PaymentChangeTransactionStateActionBuilder builder(PaymentChangeTransactionStateAction template) create builder for PaymentChangeTransactionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentChangeTransactionStateAction
default <T> T withPaymentChangeTransactionStateAction(Function<PaymentChangeTransactionStateAction, 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<PaymentChangeTransactionStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-