1 August 2023
OrdersMessages/SubscriptionsGraphQL
You can now subscribe to Messages that will be triggered when using Set CustomField and Set Custom Type actions on Orders.
Changes:
- [API] Added OrderCustomFieldAdded Message.
- [API] Added OrderCustomFieldChanged Message.
- [API] Added OrderCustomFieldRemoved Message.
- [API] Added OrderCustomTypeSet Message.
- [API] Added OrderCustomTypeRemoved Message.
- [GraphQL API] Added the following types to the GraphQL schema:
OrderCustomFieldAdded
,OrderCustomFieldChanged
,OrderCustomFieldRemoved
,OrderCustomTypeRemoved
,OrderCustomTypeSet
.
The following changes were introduced in terms of GraphQL SDL:
type OrderCustomFieldAdded implements MessagePayload & OrderMessagePayload {
name: String!
value: Json!
type: String!
}
type OrderCustomFieldChanged implements MessagePayload & OrderMessagePayload {
name: String!
value: Json!
previousValue: Json
type: String!
}
type OrderCustomFieldRemoved implements MessagePayload & OrderMessagePayload {
name: String!
type: String!
}
type OrderCustomTypeRemoved implements MessagePayload & OrderMessagePayload {
previousTypeId: String
type: String!
}
type OrderCustomTypeSet implements MessagePayload & OrderMessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
type: String!
}