Interface PaymentMethodCustomTypeRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after removing a Custom Type from a Payment Method using the Set Custom Type update action.
Example to create an instance using the builder pattern
PaymentMethodCustomTypeRemovedMessagePayload paymentMethodCustomTypeRemovedMessagePayload = PaymentMethodCustomTypeRemovedMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodCustomTypeRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodCustomTypeRemovedMessagePayloadcreate builder for PaymentMethodCustomTypeRemovedMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodCustomTypeRemovedMessagePayloadid
of the Custom Type that was removed.of()
factory methodfactory method to create a shallow copy PaymentMethodCustomTypeRemovedMessagePayloadvoid
setOldTypeId
(String oldTypeId) id
of the Custom Type that was removed.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodCustomTypeRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodCustomTypeRemovedMessagePayload
(Function<PaymentMethodCustomTypeRemovedMessagePayload, T> helper) 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_CUSTOM_TYPE_REMOVED
discriminator value for PaymentMethodCustomTypeRemovedMessagePayload- See Also:
-
-
Method Details
-
getOldTypeId
String getOldTypeId()id
of the Custom Type that was removed. Absent if there was no previous Custom Type present.- Returns:
- oldTypeId
-
setOldTypeId
id
of the Custom Type that was removed. Absent if there was no previous Custom Type present.- Parameters:
oldTypeId
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodCustomTypeRemovedMessagePayload
-
of
static PaymentMethodCustomTypeRemovedMessagePayload of(PaymentMethodCustomTypeRemovedMessagePayload template) factory method to create a shallow copy PaymentMethodCustomTypeRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodCustomTypeRemovedMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodCustomTypeRemovedMessagePayload deepCopy(@Nullable PaymentMethodCustomTypeRemovedMessagePayload template) factory method to create a deep copy of PaymentMethodCustomTypeRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodCustomTypeRemovedMessagePayload- Returns:
- builder
-
builder
static PaymentMethodCustomTypeRemovedMessagePayloadBuilder builder(PaymentMethodCustomTypeRemovedMessagePayload template) create builder for PaymentMethodCustomTypeRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodCustomTypeRemovedMessagePayload
default <T> T withPaymentMethodCustomTypeRemovedMessagePayload(Function<PaymentMethodCustomTypeRemovedMessagePayload, 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<PaymentMethodCustomTypeRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-