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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentChangeTransactionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentChangeTransactionStateActionbuilder(PaymentChangeTransactionStateAction template) create builder for PaymentChangeTransactionStateAction instancecopyDeep()deepCopy(PaymentChangeTransactionStateAction template) factory method to create a deep copy of PaymentChangeTransactionStateAction@NotNull TransactionStategetState()New TransactionState.@NotNull StringUnique identifier of the Transaction.of()factory methodof(PaymentChangeTransactionStateAction template) factory method to create a shallow copy PaymentChangeTransactionStateActionvoidsetState(TransactionState state) New TransactionState.voidsetTransactionId(String transactionId) Unique identifier of the Transaction.static com.fasterxml.jackson.core.type.TypeReference<PaymentChangeTransactionStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateActionMethods 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
-
copyDeep
PaymentChangeTransactionStateAction copyDeep()- Specified by:
copyDeepin interfacePaymentUpdateAction
-
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
-