All Release Notes
Added Messages for changes on Cart Discounts
12 January 2024
Enhancement
Pricing and DiscountsMessages/SubscriptionsGraphQL
You can now subscribe to Messages that will be triggered when creating and deleting a Cart Discount, and when using the Add Store, Remove Store, and Set Stores actions on Cart Discounts.
Changes:
- [API] Added
CartDiscountCreated
,CartDiscountDeleted
,CartDiscountStoreAdded
,CartDiscountStoreRemoved
,CartDiscountStoresSet
Messages. - [GraphQL API] Added the following types to the GraphQL schema:
CartDiscountCreated
,CartDiscountDeleted
,CartDiscountStoreAdded
,CartDiscountStoreRemoved
,CartDiscountStoresSet
.
The following changes were introduced in terms of GraphQL SDL:
type CartDiscountCreated implements MessagePayload {cartDiscount: CartDiscount!type: String!}type CartDiscountDeleted implements MessagePayload {type: String!}type CartDiscountStoreAdded implements MessagePayload {store: Store!storeRef: KeyReference!type: String!}type CartDiscountStoreRemoved implements MessagePayload {store: Store!storeRef: KeyReference!type: String!}type CartDiscountStoresSet implements MessagePayload {storesRef: [KeyReference!]!stores: [Store!]!type: String!}