@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.
@@ -1546,6 +1546,9 @@ interface V2AdditionalFee {
1546
1546
  interface TaxSummary {
1547
1547
  /**
1548
1548
  * List of taxes applied to the cart.
1549
+ * May contain multiple entries when advanced tax rates are configured by the merchant,
1550
+ * or a single entry representing the total tax amount.
1551
+ * 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).
1549
1552
  * @maxSize 100
1550
1553
  */
1551
1554
  taxes?: Tax[];
@@ -1576,7 +1579,7 @@ interface Tax {
1576
1579
  * Tax rate %, as a decimal point between 0 and 1.
1577
1580
  * @decimalValue options { gte:0, lte:1, maxScale:6 }
1578
1581
  */
1579
- rate?: string;
1582
+ rate?: string | null;
1580
1583
  /** Calculated tax, based on `taxable_amount` and `rate`. */
1581
1584
  totalTax?: MultiCurrencyPrice;
1582
1585
  }
@@ -1602,7 +1605,7 @@ interface AdditionalFeeTax {
1602
1605
  interface PriceSummary {
1603
1606
  /**
1604
1607
  * Total price of all line items after applying item-level discounts.
1605
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1608
+ * Includes tax if `tax_summary.prices_include_tax` is true.
1606
1609
  */
1607
1610
  subtotal?: MultiCurrencyPrice;
1608
1611
  /**
@@ -1613,12 +1616,12 @@ interface PriceSummary {
1613
1616
  discount?: MultiCurrencyPrice;
1614
1617
  /**
1615
1618
  * Final delivery cost for the cart.
1616
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1619
+ * Includes tax if `tax_summary.prices_include_tax` is true.
1617
1620
  */
1618
1621
  delivery?: MultiCurrencyPrice;
1619
1622
  /**
1620
1623
  * Total additional fees associated with the cart.
1621
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
1624
+ * Includes tax if `tax_summary.prices_include_tax` is true.
1622
1625
  */
1623
1626
  additionalFees?: MultiCurrencyPrice;
1624
1627
  /** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */
@@ -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
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
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
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
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
- * Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
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). */