All Release Notes
Added update action for the supply channel of Line Items in a Cart
10 December 2021
Enhancement
CartsGraphQL
You can now update the inventory supply channel for Line Items that are already in a Cart. Before, you could only achieve this via replacing the existing Line Item with a new one.
Changes:
- [API] Added Set LineItem SupplyChannel to Carts and My Carts.
- [GraphQL API] Added the following types to the GraphQL schema:
SetCartLineItemSupplyChannel. - [GraphQL API] Changed the
CartUpdateActiontype:- Input field
setLineItemSupplyChannelwas added toCartUpdateActiontype
- Input field
- [GraphQL API] Changed the
MyCartUpdateActiontype:- Input field
setLineItemSupplyChannelwas added toMyCartUpdateActiontype
- Input field
The following changes were introduced in terms of GraphQL SDL:
extend input CartUpdateAction {setLineItemSupplyChannel: SetCartLineItemSupplyChannel}extend input MyCartUpdateAction {setLineItemSupplyChannel: SetCartLineItemSupplyChannel}input SetCartLineItemSupplyChannel {lineItemId: String!supplyChannel: ResourceIdentifierInput}