All Release Notes
Introduced 'lineItemKey' field on Messages related to Order Line Items
14 July 2023
Enhancement
OrdersMessages/SubscriptionsGraphQL
We introduced the lineItemKey
on Order Messages referencing Line Items. The lineItemKey
field is now also available on Transition LineItem State and Import LineItem State update actions on Orders and Order Edits. This ensures a consistent experience when working with external identifiers across different entity types in Composable Commerce.
Changes:
- [API] Added
lineItemKey
and madelineItemId
optional on the following update actions on Orders: - [API] Added
lineItemKey
and madelineItemId
optional on the following update actions on Order Edits: - [API] Added
lineItemKey
to the following Order Messages:- LineItemStateTransition Message, OrderLineItemRemoved Message, OrderLineItemDistributionChannelSet Message, and OrderLineItemDiscountSet Message.
- [GraphQL API] Changed the
ImportStagedOrderLineItemState
type:ImportStagedOrderLineItemState.lineItemId
input field type changed fromString!
toString
- Input field
lineItemKey
was added toImportStagedOrderLineItemState
type
- [GraphQL API] Changed the
OrderLineItemDiscountSet
type:- Added the
lineItemKey
field to theOrderLineItemDiscountSet
type.
- Added the
- [GraphQL API] Changed the
TransitionStagedOrderLineItemStateOutput
type:- Added the
lineItemKey
field to theTransitionStagedOrderLineItemStateOutput
type. TransitionStagedOrderLineItemStateOutput.lineItemId
field type changed fromString!
toString
- Added the
- [GraphQL API] Changed the
TransitionStagedOrderLineItemState
type:TransitionStagedOrderLineItemState.lineItemId
input field type changed fromString!
toString
- Input field
lineItemKey
was added toTransitionStagedOrderLineItemState
type
- [GraphQL API] Changed the
ImportStagedOrderLineItemStateOutput
type:- Added the
lineItemKey
field to theImportStagedOrderLineItemStateOutput
type. ImportStagedOrderLineItemStateOutput.lineItemId
field type changed fromString!
toString
- Added the
- [GraphQL API] Changed the
TransitionOrderLineItemState
type:TransitionOrderLineItemState.lineItemId
input field type changed fromString!
toString
- Input field
lineItemKey
was added toTransitionOrderLineItemState
type
- [GraphQL API] Changed the
LineItemStateTransition
type:- Added the
lineItemKey
field to theLineItemStateTransition
type.
- Added the
- [GraphQL API] Changed the
OrderLineItemRemoved
type:- Added the
lineItemKey
field to theOrderLineItemRemoved
type.
- Added the
- [GraphQL API] Changed the
ImportOrderLineItemState
type:ImportOrderLineItemState.lineItemId
input field type changed fromString!
toString
- Input field
lineItemKey
was added toImportOrderLineItemState
type
- [GraphQL API] Changed the
OrderLineItemDistributionChannelSet
type:- Added the
lineItemKey
field to theOrderLineItemDistributionChannelSet
type.
- Added the
The following changes were introduced in terms of GraphQL SDL:
extend type OrderLineItemDiscountSet {lineItemKey: String}extend type TransitionStagedOrderLineItemStateOutput {lineItemKey: String}extend type OrderLineItemRemoved {lineItemKey: String}extend type ImportStagedOrderLineItemStateOutput {lineItemKey: String}extend type LineItemStateTransition {lineItemKey: String}extend type OrderLineItemDistributionChannelSet {lineItemKey: String}extend input ImportStagedOrderLineItemState {lineItemKey: String}extend input ImportOrderLineItemState {lineItemKey: String}extend input TransitionStagedOrderLineItemState {lineItemKey: String}extend input TransitionOrderLineItemState {lineItemKey: String}