Interface PaymentAddTransactionAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
Adding a Transaction to a Payment generates the PaymentTransactionAdded Message.
Example to create an instance using the builder pattern
PaymentAddTransactionAction paymentAddTransactionAction = PaymentAddTransactionAction.builder()
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentAddTransactionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentAddTransactionActionbuilder
(PaymentAddTransactionAction template) create builder for PaymentAddTransactionAction instancestatic PaymentAddTransactionAction
deepCopy
(PaymentAddTransactionAction template) factory method to create a deep copy of PaymentAddTransactionAction@NotNull @Valid TransactionDraft
Value to append to thetransactions
array.static PaymentAddTransactionAction
of()
factory methodstatic PaymentAddTransactionAction
of
(PaymentAddTransactionAction template) factory method to create a shallow copy PaymentAddTransactionActionvoid
setTransaction
(TransactionDraft transaction) Value to append to thetransactions
array.static com.fasterxml.jackson.core.type.TypeReference<PaymentAddTransactionAction>
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
-
ADD_TRANSACTION
discriminator value for PaymentAddTransactionAction- See Also:
-
-
Method Details
-
getTransaction
Value to append to the
transactions
array.- Returns:
- transaction
-
setTransaction
Value to append to the
transactions
array.- Parameters:
transaction
- value to be set
-
of
factory method- Returns:
- instance of PaymentAddTransactionAction
-
of
factory method to create a shallow copy PaymentAddTransactionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentAddTransactionAction deepCopy(@Nullable PaymentAddTransactionAction template) factory method to create a deep copy of PaymentAddTransactionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentAddTransactionAction- Returns:
- builder
-
builder
create builder for PaymentAddTransactionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentAddTransactionAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-