@wix/auto_sdk_ecom_current-cart-v-2 1.0.232 → 1.0.233

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.
@@ -3257,11 +3257,21 @@ interface InsufficientInventoryErrorData {
3257
3257
  invalidItems?: InsufficientInventoryEntry[];
3258
3258
  }
3259
3259
  interface InsufficientInventoryEntry {
3260
- /** Line item with low stock. */
3260
+ /**
3261
+ * Line item whose requested quantity exceeds the quantity available.
3262
+ *
3263
+ * Identified by `catalogReference` when the line item has one, otherwise by `lineItemId`.
3264
+ * For Create Cart and Add Line Items, and their Current Cart equivalents, `lineItemId` is
3265
+ * provisional: the request is rejected before the new line items are saved, so the ID doesn't
3266
+ * match any line item you can retrieve.
3267
+ */
3261
3268
  id?: LineItemIdentifier;
3262
3269
  /** Requested quantity, including what's already on the cart. */
3263
3270
  requestedQuantity?: number;
3264
- /** Quantity in stock. */
3271
+ /**
3272
+ * Quantity available.
3273
+ * For a custom line item, the value set in `quantityInfo.availableQuantity`.
3274
+ */
3265
3275
  availableQuantity?: number;
3266
3276
  }
3267
3277
  interface MaxLineItemsExceededErrorData {