Package com.commercetools.api.models.me
Interface MyPaymentAddTransactionAction
- All Superinterfaces:
MyPaymentUpdateAction,ResourceUpdateAction<MyPaymentUpdateAction>
Adding a Transaction to a Payment generates the PaymentTransactionAdded Message. Once a Transaction is added to the Payment, it can no longer be updated or deleted using the My Payments API.
Example to create an instance using the builder pattern
MyPaymentAddTransactionAction myPaymentAddTransactionAction = MyPaymentAddTransactionAction.builder()
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyPaymentAddTransactionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyPaymentAddTransactionActionbuilder(MyPaymentAddTransactionAction template) create builder for MyPaymentAddTransactionAction instancecopyDeep()deepCopy(MyPaymentAddTransactionAction template) factory method to create a deep copy of MyPaymentAddTransactionAction@NotNull @Valid TransactionDraftTransaction to add to the Payment.of()factory methodof(MyPaymentAddTransactionAction template) factory method to create a shallow copy MyPaymentAddTransactionActionvoidsetTransaction(TransactionDraft transaction) Transaction to add to the Payment.static com.fasterxml.jackson.core.type.TypeReference<MyPaymentAddTransactionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyPaymentUpdateAction
getAction, withMyPaymentUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_TRANSACTION
discriminator value for MyPaymentAddTransactionAction- See Also:
-
-
Method Details
-
getTransaction
Transaction to add to the Payment.
- Returns:
- transaction
-
setTransaction
Transaction to add to the Payment.
- Parameters:
transaction- value to be set
-
of
factory method- Returns:
- instance of MyPaymentAddTransactionAction
-
of
factory method to create a shallow copy MyPaymentAddTransactionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyPaymentAddTransactionAction copyDeep()- Specified by:
copyDeepin interfaceMyPaymentUpdateAction
-
deepCopy
@Nullable static MyPaymentAddTransactionAction deepCopy(@Nullable MyPaymentAddTransactionAction template) factory method to create a deep copy of MyPaymentAddTransactionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyPaymentAddTransactionAction- Returns:
- builder
-
builder
create builder for MyPaymentAddTransactionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyPaymentAddTransactionAction
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
-