commercetools-sdk-typescript icon indicating copy to clipboard operation
commercetools-sdk-typescript copied to clipboard

Missing `discountedPrice` property on LineItem type

Open williampsouza opened this issue 10 months ago • 0 comments

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 Image

Stack information (please complete the following information):

Node: v18.18.2 SDK: latest (v8.1.0).

williampsouza avatar Jan 22 '25 19:01 williampsouza