commercetools-sdk-typescript
commercetools-sdk-typescript copied to clipboard
Missing `discountedPrice` property on LineItem type
Describe the bug
When retrieving a cart with a Cart Discount targeting Line Items from the Platform API, I can see a discountedPrice property being retrieved. However, it is not defined in the types nor present in the documentation. That cart discount is also not present elsewhere in the response other than discountedPrice and discountedPricePerQuantity inside the Line Item.
To Reproduce Create a cart and apply a cart discount targeting one line item.
Expected behavior
The typing and documentation should exist or at least the cart discount should be present somewhere else like lineItem.price.discounted or at the cart level.
Screenshots/Code snippet
Stack information (please complete the following information):
Node: v18.18.2 SDK: latest (v8.1.0).