Generated when an existing Custom Field has been changed using the Set CustomField action.

interface OrderCustomFieldChangedMessagePayload {
    name: string;
    previousValue?: any;
    type: "OrderCustomFieldChanged";
    value: any;
}

Properties

name: string

Name of the Custom Field that changed.

previousValue?: any

CustomFieldValue based on the FieldType before the Set CustomField update action. When there has not been a Custom Field with the name on the Order before, an Order Custom Field Added Message is generated instead.

type: "OrderCustomFieldChanged"
value: any

CustomFieldValue based on the FieldType after the Set CustomField update action.