@wix/auto_sdk_ecom_cart 1.0.76 → 1.0.78

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.
@@ -20,7 +20,9 @@ interface UpdateCartSignature {
20
20
  /**
21
21
  * Updates a cart's properties.
22
22
  *
23
- * > **Note:** When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
23
+ * > **Notes:**
24
+ * > + When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
25
+ * > + After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
24
26
  * @param - Available options to use when updating a cart.
25
27
  * @param - ID of the cart to be updated.
26
28
  * @returns Updated Cart.
@@ -43,7 +45,9 @@ interface AddToCartSignature {
43
45
  /**
44
46
  * Adds catalog ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)) line items to a cart.
45
47
  *
46
- * >**Note:** When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
48
+ * >**Notes:**
49
+ * > + When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
50
+ * > + After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
47
51
  * @param - Cart ID.
48
52
  * @param - Items to be added to cart.
49
53
  */
@@ -55,6 +59,8 @@ declare function removeLineItems$1(httpClient: HttpClient): RemoveLineItemsSigna
55
59
  interface RemoveLineItemsSignature {
56
60
  /**
57
61
  * Removes line items from a cart.
62
+ *
63
+ * > **Note:** After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
58
64
  * @param - IDs of the line items to remove from the cart.
59
65
  * @param - ID of the cart to remove line items from.
60
66
  */
@@ -80,6 +86,8 @@ declare function removeCoupon$1(httpClient: HttpClient): RemoveCouponSignature;
80
86
  interface RemoveCouponSignature {
81
87
  /**
82
88
  * Removes the coupon from a cart.
89
+ *
90
+ * > **Note:** After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
83
91
  * @param - Cart ID.
84
92
  */
85
93
  (_id: string): Promise<NonNullablePaths<RemoveCouponResponse, `cart.lineItems` | `cart.lineItems.${number}.quantity` | `cart.lineItems.${number}.catalogReference.catalogItemId` | `cart.lineItems.${number}.catalogReference.appId` | `cart.lineItems.${number}.productName.original` | `cart.lineItems.${number}.price.amount` | `cart.lineItems.${number}.price.convertedAmount` | `cart.lineItems.${number}.price.formattedAmount` | `cart.lineItems.${number}.price.formattedConvertedAmount` | `cart.lineItems.${number}.availability.status` | `cart.lineItems.${number}.physicalProperties.shippable` | `cart.lineItems.${number}.itemType.preset` | `cart.lineItems.${number}.itemType.custom` | `cart.lineItems.${number}.paymentOption` | `cart.lineItems.${number}.priceDescription.original` | `cart.lineItems.${number}.selectedMembership._id` | `cart.lineItems.${number}.selectedMembership.appId` | `cart.lineItems.${number}.customLineItem` | `cart.lineItems.${number}.priceUndetermined` | `cart.lineItems.${number}.fixedQuantity` | `cart.lineItems.${number}.catalogOverrideFields.paymentOption.value` | `cart.lineItems.${number}.savePaymentMethod` | `cart.lineItems.${number}.taxableAddress.addressType` | `cart.lineItems.${number}.membersOnly` | `cart.buyerInfo.visitorId` | `cart.buyerInfo.memberId` | `cart.buyerInfo.userId` | `cart.currency` | `cart.conversionCurrency` | `cart.weightUnit` | `cart.appliedDiscounts` | `cart.appliedDiscounts.${number}.coupon._id` | `cart.appliedDiscounts.${number}.coupon.code` | `cart.contactInfo.address.streetAddress.number` | `cart.contactInfo.address.streetAddress.name` | `cart.contactInfo.contactDetails.vatId._id` | `cart.contactInfo.contactDetails.vatId.type` | `cart.selectedShippingOption.code` | `cart.paymentCurrency`, 7>>;
@@ -87,7 +95,7 @@ interface RemoveCouponSignature {
87
95
  declare function updateLineItemsQuantity$1(httpClient: HttpClient): UpdateLineItemsQuantitySignature;
88
96
  interface UpdateLineItemsQuantitySignature {
89
97
  /**
90
- * Updates the quantity of one or more line items in a cart.
98
+ * Updates the quantity of 1 or more line items in a cart.
91
99
  *
92
100
  * This method is only for updating the quantity of line items.
93
101
  * To entirely remove a line item from the cart, use Remove Line Items.
@@ -96,6 +104,8 @@ interface UpdateLineItemsQuantitySignature {
96
104
  * This method checks the amount of stock remaining for this line item.
97
105
  * If the specified quantity is greater than the remaining stock,
98
106
  * then the quantity returned in the response is the total amount of remaining stock.
107
+ *
108
+ * > **Note:** After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
99
109
  * @param - Cart ID.
100
110
  * @param - Line item IDs and their new quantity.
101
111
  */