Interface PaymentMethodInfoCustomFieldChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
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
PaymentMethodInfoCustomFieldChangedMessage paymentMethodInfoCustomFieldChangedMessage = PaymentMethodInfoCustomFieldChangedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodInfoCustomFieldChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodInfoCustomFieldChangedMessagecreate builder for PaymentMethodInfoCustomFieldChangedMessage instancecopyDeep()
factory method to create a deep copy of PaymentMethodInfoCustomFieldChangedMessage@NotNull String
getName()
Name of the Custom Field that changed.@NotNull Object
getValue()
of()
factory methodof
(PaymentMethodInfoCustomFieldChangedMessage template) factory method to create a shallow copy PaymentMethodInfoCustomFieldChangedMessagevoid
Name of the Custom Field that changed.void
static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfoCustomFieldChangedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodInfoCustomFieldChangedMessage
(Function<PaymentMethodInfoCustomFieldChangedMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
PAYMENT_METHOD_INFO_CUSTOM_FIELD_CHANGED
discriminator value for PaymentMethodInfoCustomFieldChangedMessage- 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 PaymentMethodInfoCustomFieldChangedMessage
-
of
static PaymentMethodInfoCustomFieldChangedMessage of(PaymentMethodInfoCustomFieldChangedMessage template) factory method to create a shallow copy PaymentMethodInfoCustomFieldChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodInfoCustomFieldChangedMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
@Nullable static PaymentMethodInfoCustomFieldChangedMessage deepCopy(@Nullable PaymentMethodInfoCustomFieldChangedMessage template) factory method to create a deep copy of PaymentMethodInfoCustomFieldChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodInfoCustomFieldChangedMessage- Returns:
- builder
-
builder
static PaymentMethodInfoCustomFieldChangedMessageBuilder builder(PaymentMethodInfoCustomFieldChangedMessage template) create builder for PaymentMethodInfoCustomFieldChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodInfoCustomFieldChangedMessage
default <T> T withPaymentMethodInfoCustomFieldChangedMessage(Function<PaymentMethodInfoCustomFieldChangedMessage, 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<PaymentMethodInfoCustomFieldChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-