Interface PaymentCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create Payment request.
Example to create an instance using the builder pattern
PaymentCreatedMessagePayload paymentCreatedMessagePayload = PaymentCreatedMessagePayload.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentCreatedMessagePayloadbuilder
(PaymentCreatedMessagePayload template) create builder for PaymentCreatedMessagePayload instancestatic PaymentCreatedMessagePayload
deepCopy
(PaymentCreatedMessagePayload template) factory method to create a deep copy of PaymentCreatedMessagePayload@NotNull @Valid Payment
Payment that was created.static PaymentCreatedMessagePayload
of()
factory methodstatic PaymentCreatedMessagePayload
of
(PaymentCreatedMessagePayload template) factory method to create a shallow copy PaymentCreatedMessagePayloadvoid
setPayment
(Payment payment) Payment that was created.static com.fasterxml.jackson.core.type.TypeReference<PaymentCreatedMessagePayload>
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_CREATED
discriminator value for PaymentCreatedMessagePayload- See Also:
-
-
Method Details
-
getPayment
Payment that was created.
- Returns:
- payment
-
setPayment
Payment that was created.
- Parameters:
payment
- value to be set
-
of
factory method- Returns:
- instance of PaymentCreatedMessagePayload
-
of
factory method to create a shallow copy PaymentCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentCreatedMessagePayload deepCopy(@Nullable PaymentCreatedMessagePayload template) factory method to create a deep copy of PaymentCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentCreatedMessagePayload- Returns:
- builder
-
builder
create builder for PaymentCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentCreatedMessagePayload
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
-