This class contains the information that describes a property change for an object. It contains the original value of the property (as a serializable Object) and the new value for the property.
For example, to change the state of a ShippingGroup
from PENDING_SHIPMENT to NO_PENDING_ACTION (for example ship the shipping group):
Set the
targetId
of theGenericUpdate
to the ID of the shipping group to be shipped.Set the
containerId
of theGenericUpdate
to the ID of the order containing that shipping group.Set the
propertyName
of theGenericUpdate
to “state” to update the state property of the shipping group.Set the
originalValue
to PENDING_SHIPMENT and set the new value to NO_PENDING_ACTION.
If you included the resulting GenericUpdate
in a ModifyOrder
message and sent it to the OrderFulfiller
, the status of the given shipping group would change to reflect that it has shipped.