Interface PaymentMethodInfoCustomFieldChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after changing an existing Custom Field on a PaymentMethodInfo using the Set MethodInfo CustomField update action on Payments and the Set MethodInfo CustomField update action on My Payments.
Example to create an instance using the builder pattern
PaymentMethodInfoCustomFieldChangedMessagePayload paymentMethodInfoCustomFieldChangedMessagePayload = PaymentMethodInfoCustomFieldChangedMessagePayload.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodInfoCustomFieldChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodInfoCustomFieldChangedMessagePayloadcreate builder for PaymentMethodInfoCustomFieldChangedMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodInfoCustomFieldChangedMessagePayload@NotNull String
getName()
Name of the Custom Field that changed.@NotNull Object
getValue()
of()
factory methodfactory method to create a shallow copy PaymentMethodInfoCustomFieldChangedMessagePayloadvoid
Name of the Custom Field that changed.void
static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfoCustomFieldChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodInfoCustomFieldChangedMessagePayload
(Function<PaymentMethodInfoCustomFieldChangedMessagePayload, 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_FIELD_CHANGED
discriminator value for PaymentMethodInfoCustomFieldChangedMessagePayload- 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
-
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
-
of
factory method- Returns:
- instance of PaymentMethodInfoCustomFieldChangedMessagePayload
-
of
static PaymentMethodInfoCustomFieldChangedMessagePayload of(PaymentMethodInfoCustomFieldChangedMessagePayload template) factory method to create a shallow copy PaymentMethodInfoCustomFieldChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodInfoCustomFieldChangedMessagePayload deepCopy(@Nullable PaymentMethodInfoCustomFieldChangedMessagePayload template) factory method to create a deep copy of PaymentMethodInfoCustomFieldChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodInfoCustomFieldChangedMessagePayload- Returns:
- builder
-
builder
static PaymentMethodInfoCustomFieldChangedMessagePayloadBuilder builder(PaymentMethodInfoCustomFieldChangedMessagePayload template) create builder for PaymentMethodInfoCustomFieldChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodInfoCustomFieldChangedMessagePayload
default <T> T withPaymentMethodInfoCustomFieldChangedMessagePayload(Function<PaymentMethodInfoCustomFieldChangedMessagePayload, 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<PaymentMethodInfoCustomFieldChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-