Interface PaymentMethodCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create PaymentMethod request.
Example to create an instance using the builder pattern
PaymentMethodCreatedMessagePayload paymentMethodCreatedMessagePayload = PaymentMethodCreatedMessagePayload.builder()
.paymentMethod(paymentMethodBuilder -> paymentMethodBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodCreatedMessagePayloadbuilder
(PaymentMethodCreatedMessagePayload template) create builder for PaymentMethodCreatedMessagePayload instancecopyDeep()
deepCopy
(PaymentMethodCreatedMessagePayload template) factory method to create a deep copy of PaymentMethodCreatedMessagePayload@NotNull @Valid PaymentMethod
PaymentMethod that was created.of()
factory methodof
(PaymentMethodCreatedMessagePayload template) factory method to create a shallow copy PaymentMethodCreatedMessagePayloadvoid
setPaymentMethod
(PaymentMethod paymentMethod) PaymentMethod that was created.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodCreatedMessagePayload>
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_METHOD_CREATED
discriminator value for PaymentMethodCreatedMessagePayload- See Also:
-
-
Method Details
-
getPaymentMethod
PaymentMethod that was created.
- Returns:
- paymentMethod
-
setPaymentMethod
PaymentMethod that was created.
- Parameters:
paymentMethod
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodCreatedMessagePayload
-
of
factory method to create a shallow copy PaymentMethodCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodCreatedMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodCreatedMessagePayload deepCopy(@Nullable PaymentMethodCreatedMessagePayload template) factory method to create a deep copy of PaymentMethodCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodCreatedMessagePayload- Returns:
- builder
-
builder
static PaymentMethodCreatedMessagePayloadBuilder builder(PaymentMethodCreatedMessagePayload template) create builder for PaymentMethodCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodCreatedMessagePayload
default <T> T withPaymentMethodCreatedMessagePayload(Function<PaymentMethodCreatedMessagePayload, 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<PaymentMethodCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-