9 August 2024
Composable Commerce
HTTP API
Enhancement
Messages/SubscriptionsOrdersGraphQL
You can now subscribe to Messages for changes to Custom Fields and Types on Order Deliveries.

Changes:

The following changes were introduced in terms of GraphQL SDL:

type DeliveryCustomFieldAdded implements OrderMessagePayload {
  deliveryId: String!
  name: String!
  value: Json!
  type: String!
}

type DeliveryCustomFieldChanged implements OrderMessagePayload {
  deliveryId: String!
  name: String!
  value: Json!
  type: String!
  previousValue: Json
}

type DeliveryCustomFieldRemoved implements OrderMessagePayload {
  deliveryId: String!
  name: String!
  type: String!
}

type DeliveryCustomTypeSet implements OrderMessagePayload {
  deliveryId: String!
  customFields: CustomFieldsType!
  previousTypeId: String
  type: String!
}

type DeliveryCustomTypeRemoved implements OrderMessagePayload {
  deliveryId: String!
  previousTypeId: String
  type: String!
}