All Release Notes

Added addedAt field to Cart's LineItems

24 August 2020
Enhancement
CartsOrders

LineItems of the Cart and My Cart now have a field addedAt, which contains the DateTime when the LineItem was added to the Cart. addedAt can be passed in through the API, and if omitted, it is created on the Server with the current DateTime as default.

  • [API] Added addedAt to LineItem
  • [API] Added addedAt to LineItemDraft
  • [API] Added addedAt to MyLineItemDraft
  • [API] Added addedAt to Add LineItem action My Carts action
  • [API] Added addedAt to LineItemDraft for Add LineItem on the Order Edits action
  • [GraphQL API] Changed the AddStagedOrderLineItem type:
    • Input field addedAt was added to AddStagedOrderLineItem type
  • [GraphQL API] Changed the LineItemDraft type:
    • Input field addedAt was added to LineItemDraft type
  • [GraphQL API] Changed the AddCartLineItem type:
    • Input field addedAt was added to AddCartLineItem type
  • [GraphQL API] Changed the LineItem type:
    • Added the addedAt field to the LineItem type.
  • [GraphQL API] Changed the LineItemDraftOutput type:
    • Added the addedAt field to the LineItemDraftOutput type.
  • [GraphQL API] Changed the AddMyCartLineItem type:
    • Input field addedAt was added to AddMyCartLineItem type
  • [GraphQL API] Changed the MyLineItemDraft type:
    • Input field addedAt was added to MyLineItemDraft type

Introduced the following changes to the GraphQL schema (in SDL format):

extend type LineItemDraftOutput {
addedAt: DateTime
}
extend type LineItem {
addedAt: DateTime
}
extend input AddMyCartLineItem {
addedAt: DateTime
}
extend input AddStagedOrderLineItem {
addedAt: DateTime
}
extend input MyLineItemDraft {
addedAt: DateTime
}
extend input LineItemDraft {
addedAt: DateTime
}
extend input AddCartLineItem {
addedAt: DateTime
}