@wix/auto_sdk_ecom_validations 1.0.69 → 1.0.70

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.
@@ -163,7 +163,7 @@ interface LineItem {
163
163
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
164
164
  interface CatalogReference {
165
165
  /**
166
- * ID of the item within the catalog it belongs to.
166
+ * ID of the item within the catalog it belongs to. For a Wix Stores product, this is the product ID, including when the product has variants.
167
167
  * @minLength 1
168
168
  * @maxLength 36
169
169
  */
@@ -185,6 +185,8 @@ interface CatalogReference {
185
185
  *
186
186
  * Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.
187
187
  *
188
+ * For a Wix Stores product with variants, specify the variant ID in `options.variantId` and the product ID in `catalogItemId`.
189
+ *
188
190
  * For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)
189
191
  * or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction).
190
192
  */
@@ -455,13 +457,13 @@ interface LineItemPricesData {
455
457
  totalPriceBeforeTax?: MultiCurrencyPrice;
456
458
  /** Tax details. */
457
459
  taxDetails?: ItemTaxFullDetails;
458
- /** Total discount applied for the line item. */
460
+ /** Total of the discounts whose `discountType` is `GLOBAL` allocated to the line item, such as a coupon with a minimum subtotal and no scope. Doesn't include discounts whose `discountType` is `SPECIFIC_ITEMS`, because they're already subtracted from `price` and `lineItemPrice`. */
459
461
  totalDiscount?: MultiCurrencyPrice;
460
- /** Catalog price **after** catalog-defined discount and automatic discounts. */
462
+ /** Item price after the catalog-defined discount and after the discounts whose `discountType` is `SPECIFIC_ITEMS`, such as automatic discounts, coupons with a scope, and merchant discounts that apply to specific items. Discounts whose `discountType` is `GLOBAL`, such as a coupon with a minimum subtotal and no scope, aren't subtracted. */
461
463
  price?: MultiCurrencyPrice;
462
464
  /** Item price **before** automatic discounts, coupons, and global discounts, **after** catalog-defined discount. Defaults to `price` when not provided. */
463
465
  priceBeforeDiscounts?: MultiCurrencyPrice;
464
- /** Total price **after** catalog-defined discount and automatic discounts, taking line item's quantity into account. */
466
+ /** Total price of the line item, taking its quantity into account, after the catalog-defined discount and after the discounts whose `discountType` is `SPECIFIC_ITEMS`, such as automatic discounts, coupons with a scope, and merchant discounts that apply to specific items. Discounts whose `discountType` is `GLOBAL`, such as a coupon with a minimum subtotal and no scope, aren't subtracted. */
465
467
  lineItemPrice?: MultiCurrencyPrice;
466
468
  /** Item price **before** all discounts. Defaults to `price` when not provided. */
467
469
  fullPrice?: MultiCurrencyPrice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_validations",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -44,5 +44,5 @@
44
44
  "fqdn": "wix.interfaces.ecommerce.v1.validations_provider"
45
45
  }
46
46
  },
47
- "falconPackageHash": "e92cfed9ca9324308fbdb21ef3730305bbfa9dbb56df05b55598f028"
47
+ "falconPackageHash": "5bbc4f2ab82fe1bc3b849d942fdd89ade3ac14ad2a36dbcf77ccb820"
48
48
  }