Skip to content

Commit 65943fb

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

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,8 @@ export interface Price {
940940
* If set, the API uses the DiscountedPrice value for the [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
941941
* When a [relative discount](ctp:api:type:ProductDiscountValueRelative) has been applied and the fraction part of the DiscountedPrice `value` is 0.5, the `value` is rounded in favor of the customer with [half-down rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_down).
942942
*
943+
* If an [absolute discount](ctp:api:type:ProductDiscountValueAbsolute) value exceeds the price of the Product Variant, the discounted price is a negative value.
944+
*
943945
*
944946
*/
945947
readonly discounted?: DiscountedPrice

packages/platform-sdk/src/generated/models/product-discount.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ export interface ProductDiscountValueAbsoluteDraft
357357
* Money values in different currencies.
358358
* An absolute Product Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.
359359
*
360+
* If the value exceeds the price of a Product Variant, the discounted price (of the Product Variant) will be a negative value.
361+
*
360362
* If the array is empty or has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
361363
*
362364
*

packages/platform-sdk/src/generated/models/standalone-price.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ export interface StandalonePrice extends BaseResource {
158158
* Set if a matching [ProductDiscount](ctp:api:type:ProductDiscount) exists. If set, the API uses the `discounted` value for the [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
159159
* When a [relative discount](/../api/projects/productDiscounts#productdiscountvaluerelative) is applied and the fraction part of the `discounted` price is 0.5, the discounted price is rounded in favor of the customer with the [half down rounding](https://en.wikipedia.org/wiki/Rounding#Round_half_down).
160160
*
161+
* If an [absolute discount](ctp:api:type:ProductDiscountValueAbsolute) value exceeds the price of the Product Variant, the discounted price is a negative value.
162+
*
161163
*
162164
*/
163165
readonly discounted?: DiscountedPrice

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,3 +457,4 @@ f8b027c8e1b5ba61ace3d3d358b9efc7ad4b93eb
457457
e111bc9d132c5da4dc43085c1983efa8cbdf91d3
458458
e60554cf51abaeb40bb26716fb27ada4c135b40f
459459
0ccd9d7c7f9d43d7c437c69ec81c50b0d4ddc641
460+
8944651449b819cb620a4a763e0432bdf57cd708

0 commit comments

Comments
 (0)