Interface PaymentMethodCustomFieldChangedMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<Message>
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
PaymentMethodCustomFieldChangedMessage paymentMethodCustomFieldChangedMessage = PaymentMethodCustomFieldChangedMessage.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 Stringdiscriminator value for PaymentMethodCustomFieldChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentMethodCustomFieldChangedMessagecreate builder for PaymentMethodCustomFieldChangedMessage instancecopyDeep()factory method to create a deep copy of PaymentMethodCustomFieldChangedMessage@NotNull StringgetName()Name of the Custom Field that changed.@NotNull ObjectgetValue()of()factory methodof(PaymentMethodCustomFieldChangedMessage template) factory method to create a shallow copy PaymentMethodCustomFieldChangedMessagevoidName of the Custom Field that changed.voidsetOldValue(Object oldValue) voidstatic com.fasterxml.jackson.core.type.TypeReference<PaymentMethodCustomFieldChangedMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentMethodCustomFieldChangedMessage(Function<PaymentMethodCustomFieldChangedMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods 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_CUSTOM_FIELD_CHANGED
discriminator value for PaymentMethodCustomFieldChangedMessage- 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 PaymentMethodCustomFieldChangedMessage
-
of
factory method to create a shallow copy PaymentMethodCustomFieldChangedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodCustomFieldChangedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
@Nullable static PaymentMethodCustomFieldChangedMessage deepCopy(@Nullable PaymentMethodCustomFieldChangedMessage template) factory method to create a deep copy of PaymentMethodCustomFieldChangedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodCustomFieldChangedMessage- Returns:
- builder
-
builder
static PaymentMethodCustomFieldChangedMessageBuilder builder(PaymentMethodCustomFieldChangedMessage template) create builder for PaymentMethodCustomFieldChangedMessage instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodCustomFieldChangedMessage
default <T> T withPaymentMethodCustomFieldChangedMessage(Function<PaymentMethodCustomFieldChangedMessage, 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<PaymentMethodCustomFieldChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-