Interface OrderPaymentAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Payment update action or when a Payment is added via Order Edits.
Example to create an instance using the builder pattern
OrderPaymentAddedMessagePayload orderPaymentAddedMessagePayload = OrderPaymentAddedMessagePayload.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderPaymentAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderPaymentAddedMessagePayloadbuilder
(OrderPaymentAddedMessagePayload template) create builder for OrderPaymentAddedMessagePayload instancedeepCopy
(OrderPaymentAddedMessagePayload template) factory method to create a deep copy of OrderPaymentAddedMessagePayload@NotNull @Valid PaymentReference
Payment that was added to the Order.of()
factory methodof
(OrderPaymentAddedMessagePayload template) factory method to create a shallow copy OrderPaymentAddedMessagePayloadvoid
setPayment
(PaymentReference payment) Payment that was added to the Order.static com.fasterxml.jackson.core.type.TypeReference<OrderPaymentAddedMessagePayload>
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
-
ORDER_PAYMENT_ADDED
discriminator value for OrderPaymentAddedMessagePayload- See Also:
-
-
Method Details
-
getPayment
Payment that was added to the Order.
- Returns:
- payment
-
setPayment
Payment that was added to the Order.
- Parameters:
payment
- value to be set
-
of
factory method- Returns:
- instance of OrderPaymentAddedMessagePayload
-
of
factory method to create a shallow copy OrderPaymentAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderPaymentAddedMessagePayload deepCopy(@Nullable OrderPaymentAddedMessagePayload template) factory method to create a deep copy of OrderPaymentAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderPaymentAddedMessagePayload- Returns:
- builder
-
builder
create builder for OrderPaymentAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderPaymentAddedMessagePayload
default <T> T withOrderPaymentAddedMessagePayload(Function<OrderPaymentAddedMessagePayload, 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<OrderPaymentAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-