Interface PaymentMethodCustomFieldChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after changing an existing Custom Field on a Payment Method using the Set CustomField update action.
Example to create an instance using the builder pattern
PaymentMethodCustomFieldChangedMessagePayload paymentMethodCustomFieldChangedMessagePayload = PaymentMethodCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodCustomFieldChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodCustomFieldChangedMessagePayloadcreate builder for PaymentMethodCustomFieldChangedMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodCustomFieldChangedMessagePayload@NotNull String
getName()
Name of the Custom Field that changed.@NotNull Object
getValue()
of()
factory methodfactory method to create a shallow copy PaymentMethodCustomFieldChangedMessagePayloadvoid
Name of the Custom Field that changed.void
setOldValue
(Object oldValue) void
static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodCustomFieldChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodCustomFieldChangedMessagePayload
(Function<PaymentMethodCustomFieldChangedMessagePayload, 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_FIELD_CHANGED
discriminator value for PaymentMethodCustomFieldChangedMessagePayload- See Also:
-
-
Method Details
-
getName
Name of the Custom Field that changed.
- Returns:
- name
-
getValue
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Returns:
- value
-
getOldValue
Object getOldValue()CustomFieldValue based on the FieldType before the Set CustomField update action.
- Returns:
- oldValue
-
setName
Name of the Custom Field that changed.
- Parameters:
name
- value to be set
-
setValue
CustomFieldValue based on the FieldType after the Set CustomField update action.
- Parameters:
value
- value to be set
-
setOldValue
CustomFieldValue based on the FieldType before the Set CustomField update action.
- Parameters:
oldValue
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodCustomFieldChangedMessagePayload
-
of
static PaymentMethodCustomFieldChangedMessagePayload of(PaymentMethodCustomFieldChangedMessagePayload template) factory method to create a shallow copy PaymentMethodCustomFieldChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodCustomFieldChangedMessagePayload deepCopy(@Nullable PaymentMethodCustomFieldChangedMessagePayload template) factory method to create a deep copy of PaymentMethodCustomFieldChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodCustomFieldChangedMessagePayload- Returns:
- builder
-
builder
static PaymentMethodCustomFieldChangedMessagePayloadBuilder builder(PaymentMethodCustomFieldChangedMessagePayload template) create builder for PaymentMethodCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodCustomFieldChangedMessagePayload
default <T> T withPaymentMethodCustomFieldChangedMessagePayload(Function<PaymentMethodCustomFieldChangedMessagePayload, 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<PaymentMethodCustomFieldChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-