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