Interface PaymentMethodInfoCustomFieldAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after adding a Custom Field to a PaymentMethodInfo using the Set MethodInfo CustomField update action on Payments and the Set MethodInfo CustomField update action on My Payments. If a Custom Field already exists with the same name, a PaymentMethodInfoCustomFieldChanged Message is generated instead.
Example to create an instance using the builder pattern
PaymentMethodInfoCustomFieldAddedMessagePayload paymentMethodInfoCustomFieldAddedMessagePayload = PaymentMethodInfoCustomFieldAddedMessagePayload.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodInfoCustomFieldAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodInfoCustomFieldAddedMessagePayloadcreate builder for PaymentMethodInfoCustomFieldAddedMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodInfoCustomFieldAddedMessagePayload@NotNull String
getName()
Name of the Custom Field that was added.@NotNull Object
getValue()
The added CustomFieldValue based on the FieldType.of()
factory methodfactory method to create a shallow copy PaymentMethodInfoCustomFieldAddedMessagePayloadvoid
Name of the Custom Field that was added.void
The added CustomFieldValue based on the FieldType.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfoCustomFieldAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodInfoCustomFieldAddedMessagePayload
(Function<PaymentMethodInfoCustomFieldAddedMessagePayload, 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_ADDED
discriminator value for PaymentMethodInfoCustomFieldAddedMessagePayload- See Also:
-
-
Method Details
-
getName
Name of the Custom Field that was added.
- Returns:
- name
-
getValue
The added CustomFieldValue based on the FieldType.
- Returns:
- value
-
setName
Name of the Custom Field that was added.
- Parameters:
name
- value to be set
-
setValue
The added CustomFieldValue based on the FieldType.
- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodInfoCustomFieldAddedMessagePayload
-
of
static PaymentMethodInfoCustomFieldAddedMessagePayload of(PaymentMethodInfoCustomFieldAddedMessagePayload template) factory method to create a shallow copy PaymentMethodInfoCustomFieldAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodInfoCustomFieldAddedMessagePayload deepCopy(@Nullable PaymentMethodInfoCustomFieldAddedMessagePayload template) factory method to create a deep copy of PaymentMethodInfoCustomFieldAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodInfoCustomFieldAddedMessagePayload- Returns:
- builder
-
builder
static PaymentMethodInfoCustomFieldAddedMessagePayloadBuilder builder(PaymentMethodInfoCustomFieldAddedMessagePayload template) create builder for PaymentMethodInfoCustomFieldAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodInfoCustomFieldAddedMessagePayload
default <T> T withPaymentMethodInfoCustomFieldAddedMessagePayload(Function<PaymentMethodInfoCustomFieldAddedMessagePayload, 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<PaymentMethodInfoCustomFieldAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-