Interface PaymentTransactionAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Transaction update action.
Example to create an instance using the builder pattern
PaymentTransactionAddedMessagePayload paymentTransactionAddedMessagePayload = PaymentTransactionAddedMessagePayload.builder()
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentTransactionAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentTransactionAddedMessagePayloadbuilder
(PaymentTransactionAddedMessagePayload template) create builder for PaymentTransactionAddedMessagePayload instancefactory method to create a deep copy of PaymentTransactionAddedMessagePayload@NotNull @Valid Transaction
Transaction that was added to the Payment.of()
factory methodof
(PaymentTransactionAddedMessagePayload template) factory method to create a shallow copy PaymentTransactionAddedMessagePayloadvoid
setTransaction
(Transaction transaction) Transaction that was added to the Payment.static com.fasterxml.jackson.core.type.TypeReference<PaymentTransactionAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_ADDED
discriminator value for PaymentTransactionAddedMessagePayload- See Also:
-
-
Method Details
-
getTransaction
Transaction that was added to the Payment.
- Returns:
- transaction
-
setTransaction
Transaction that was added to the Payment.
- Parameters:
transaction
- value to be set
-
of
factory method- Returns:
- instance of PaymentTransactionAddedMessagePayload
-
of
factory method to create a shallow copy PaymentTransactionAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentTransactionAddedMessagePayload deepCopy(@Nullable PaymentTransactionAddedMessagePayload template) factory method to create a deep copy of PaymentTransactionAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentTransactionAddedMessagePayload- Returns:
- builder
-
builder
static PaymentTransactionAddedMessagePayloadBuilder builder(PaymentTransactionAddedMessagePayload template) create builder for PaymentTransactionAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentTransactionAddedMessagePayload
default <T> T withPaymentTransactionAddedMessagePayload(Function<PaymentTransactionAddedMessagePayload, 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<PaymentTransactionAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-