Skip to content

Commit 89d4477

Browse files
authored
build(codegen): updating SDK (#1237)
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent c6f7063 commit 89d4477

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/platform-sdk/src/generated/models/cart.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,8 @@ export interface DiscountedLineItemPrice {
12761276
/**
12771277
* Money value of the discounted Line Item or Custom Line Item.
12781278
*
1279+
* When multiple discounts from `includedDiscounts` apply, they are applied sequentially based on the `sortOrder` of their associated [Cart Discounts](ctp:api:type:CartDiscount) (discounts with higher `sortOrder` values are applied first). The Cart's `priceRoundingMode` field ([RoundingMode](ctp:api:type:RoundingMode)) is applied after each discount calculation, so rounding occurs after each discount step rather than only once on the final cumulative amount.
1280+
*
12791281
*
12801282
*/
12811283
readonly value: TypedMoney
@@ -1296,6 +1298,8 @@ export interface DiscountedLineItemPriceForQuantity {
12961298
/**
12971299
* Discounted price of the Line Item or Custom Line Item.
12981300
*
1301+
* When multiple [Cart Discounts](ctp:api:type:CartDiscount) apply to the same Line Item, the discounts are applied sequentially in the order determined by their `sortOrder` values (higher values are applied first). The [price rounding mode](ctp:api:type:RoundingMode) specified by the Cart's `priceRoundingMode` field is applied after each individual discount is calculated, not after all discounts have been applied cumulatively. This means that rounding occurs at each step of the discount calculation process.
1302+
*
12991303
*
13001304
*/
13011305
readonly discountedPrice: DiscountedLineItemPrice

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,3 +517,4 @@ f3ae1f87cbf764a30d228bf4e01215405951d454
517517
1119815b3a93e1f6fa3894492e10cbb57f93a3d7
518518
a1e8798ca33fe3c7621ab83ff12ca20f269c406d
519519
d3b8e01b6233c9a25fa53d3a8a50a8e1721e664c
520+
d71139f421f6ec0343438bef335b6826feaa86e7

0 commit comments

Comments
 (0)