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