Skip to content

Commit 682e147

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

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ export interface CartDiscountShippingCostTarget extends ICartDiscountTarget {
447447
}
448448
/**
449449
* Discount is applied to the total price of the [Cart](ctp:api:type:Cart).
450-
* The same percentage of discount applies on the [Cart](ctp:api:type:Cart) or [Order](ctp:api:type:Order) `taxedPrice`.
450+
* The same percentage of discount applies on the [Cart](ctp:api:type:Cart) or [Order](ctp:api:type:Order) `taxedPrice` and `taxedShippingPrice`.
451451
*
452452
*/
453453
export interface CartDiscountTotalPriceTarget extends ICartDiscountTarget {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,16 @@ export interface Cart extends BaseResource {
156156
* - For a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:CartSetShippingAddressAction). For Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode), all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via `shippingDetails`), otherwise `taxedPrice` is not automatically set.
157157
* - For a Cart with `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when `shippingAddress` and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode), all allocations must have their respective tax rates present in `perMethodTaxRate`, otherwise `taxedPrice` is not automatically set.
158158
*
159-
* If a discount applies on `totalPrice`, this field holds the discounted values.
159+
* If a discount applies on `totalPrice`, this field holds the proportionally discounted value.
160160
*
161161
*
162162
*/
163163
readonly taxedPrice?: TaxedPrice
164164
/**
165165
* Sum of the `taxedPrice` field of [ShippingInfo](ctp:api:type:ShippingInfo) across all Shipping Methods.
166166
*
167+
* If a discount applies on `totalPrice`, this field holds the proportionally discounted value.
168+
*
167169
*/
168170
readonly taxedShippingPrice?: TaxedPrice
169171
/**

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,14 +827,16 @@ export interface Order extends BaseResource {
827827
* - For `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:OrderSetShippingAddressAction).
828828
* - For `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when `shippingAddress` and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.
829829
*
830-
* If a discount applies on `totalPrice`, this field holds the discounted values.
830+
* If a discount applies on `totalPrice`, this field holds the proportionally discounted value.
831831
*
832832
*
833833
*/
834834
readonly taxedPrice?: TaxedPrice
835835
/**
836836
* Sum of the `taxedPrice` field of [ShippingInfo](ctp:api:type:ShippingInfo) across all Shipping Methods.
837837
*
838+
* If a discount applies on `totalPrice`, this field holds the proportionally discounted value.
839+
*
838840
*
839841
*/
840842
readonly taxedShippingPrice?: TaxedPrice

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,4 @@ c388d876a51d22b2b8a73249fe4694b297db6cd5
432432
62b5cf36742b61ed6fb52a93f1c241070a87e6fb
433433
bb49fa04d50e4e0267846c7d805ae8ebc254bdea
434434
619fb89cb6ac5d2a1d5f1b7d2f51a51e13e7ace9
435+
1a7da72f28929e745fe954c69569acda29a50ed5

0 commit comments

Comments
 (0)