@wix/auto_sdk_ecom_current-cart-v-2 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +7 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -4
- package/build/es/index.d.mts +7 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -4
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +7 -4
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +7 -4
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1569,6 +1569,9 @@ interface V2AdditionalFee {
|
|
|
1569
1569
|
interface TaxSummary {
|
|
1570
1570
|
/**
|
|
1571
1571
|
* List of taxes applied to the cart.
|
|
1572
|
+
* May contain multiple entries when advanced tax rates are configured by the merchant,
|
|
1573
|
+
* or a single entry representing the total tax amount.
|
|
1574
|
+
* For more details on advanced tax rates, read [this article](https://support.wix.com/en/article/setting-up-tax-calculation-using-the-manual-method#step-3-optional-customize-advanced-mode-settings).
|
|
1572
1575
|
* @maxSize 100
|
|
1573
1576
|
*/
|
|
1574
1577
|
taxes?: Tax[];
|
|
@@ -1599,7 +1602,7 @@ interface Tax {
|
|
|
1599
1602
|
* Tax rate %, as a decimal point between 0 and 1.
|
|
1600
1603
|
* @decimalValue options { gte:0, lte:1, maxScale:6 }
|
|
1601
1604
|
*/
|
|
1602
|
-
rate?: string;
|
|
1605
|
+
rate?: string | null;
|
|
1603
1606
|
/** Calculated tax, based on `taxable_amount` and `rate`. */
|
|
1604
1607
|
totalTax?: MultiCurrencyPrice;
|
|
1605
1608
|
}
|
|
@@ -1625,7 +1628,7 @@ interface AdditionalFeeTax {
|
|
|
1625
1628
|
interface PriceSummary {
|
|
1626
1629
|
/**
|
|
1627
1630
|
* Total price of all line items after applying item-level discounts.
|
|
1628
|
-
*
|
|
1631
|
+
* Includes tax if `tax_summary.prices_include_tax` is true.
|
|
1629
1632
|
*/
|
|
1630
1633
|
subtotal?: MultiCurrencyPrice;
|
|
1631
1634
|
/**
|
|
@@ -1636,12 +1639,12 @@ interface PriceSummary {
|
|
|
1636
1639
|
discount?: MultiCurrencyPrice;
|
|
1637
1640
|
/**
|
|
1638
1641
|
* Final delivery cost for the cart.
|
|
1639
|
-
*
|
|
1642
|
+
* Includes tax if `tax_summary.prices_include_tax` is true.
|
|
1640
1643
|
*/
|
|
1641
1644
|
delivery?: MultiCurrencyPrice;
|
|
1642
1645
|
/**
|
|
1643
1646
|
* Total additional fees associated with the cart.
|
|
1644
|
-
*
|
|
1647
|
+
* Includes tax if `tax_summary.prices_include_tax` is true.
|
|
1645
1648
|
*/
|
|
1646
1649
|
additionalFees?: MultiCurrencyPrice;
|
|
1647
1650
|
/** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */
|