1 August 2023
Composable Commerce
HTTP API
Enhancement
OrdersMessages/SubscriptionsGraphQL
You can now subscribe to Messages that will be triggered when using Set CustomField and Set Custom Type actions on Orders.

Changes:

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!
}