Skip to content

Commit

Permalink
Merge pull request #229 from gradientedge/feature/ST-00-add-key-line-…
Browse files Browse the repository at this point in the history
…item

feat: add key attribute at LineItemDraft level to expose the commercetools
  • Loading branch information
manumoranchel authored Aug 20, 2024
2 parents 09f15e5 + 3a3ca8b commit e984680
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/models/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ export interface LineItem {
*/
readonly id: string
/**
* User-defined unique identifier of the [Product](ctp:api:type:LineItem).
* User-defined unique identifier of the LineItem
*
*/
readonly key?: string
Expand Down Expand Up @@ -1351,6 +1351,11 @@ export interface LineItem {
*
*/
export interface LineItemDraft {
/**
* User-defined unique identifier of the LineItem
*
*/
readonly key?: string
/**
* `id` of a published [Product](ctp:api:type:Product).
*
Expand Down

0 comments on commit e984680

Please sign in to comment.