All Release Notes

Fixed ChangeDiscountCodeCartDiscounts type in GraphQL schema

31 August 2022
Composable Commerce
HTTP API
Resolved issue
GraphQLPricing and DiscountsProject configuration

We fixed the GraphQL type for changing the Cart Discounts on Discount Codes to achieve alignment with the respective update action on the Discount Codes API. With this, you can now reference the CartDiscounts by user-defined key in addition to id also in the GraphQL API. Furthermore, we made the Channel-related fields optional in the Store Distribution Channels Changed Message.

Changes:

  • [API] Made addedDistributionChannels and removedDistributionChannels fields optional on Store Distribution Channels Changed Message.
  • [GraphQL API] Changed the ChangeDiscountCodeCartDiscounts type:
    • ChangeDiscountCodeCartDiscounts.cartDiscounts input field type changed from [ReferenceInput!]! to [ResourceIdentifierInput!]!
  • [GraphQL API] Changed the StoreDistributionChannelsChanged type:
    • StoreDistributionChannelsChanged.addedDistributionChannels field type changed from [Channel!]! to [Channel!]
    • StoreDistributionChannelsChanged.removedDistributionChannelsRef field type changed from [Reference!]! to [Reference!]
    • StoreDistributionChannelsChanged.addedDistributionChannelsRef field type changed from [Reference!]! to [Reference!]