@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.
- package/build/cjs/index.d.ts +13 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +14 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +13 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +14 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +14 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +13 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +14 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1951,7 +1951,7 @@ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
1951
1951
|
* @format GUID
|
|
1952
1952
|
* @deprecated IDs of line items the discount applies to.
|
|
1953
1953
|
* @replacedBy line_items_discounts
|
|
1954
|
-
* @targetRemovalDate
|
|
1954
|
+
* @targetRemovalDate 2025-12-31
|
|
1955
1955
|
*/
|
|
1956
1956
|
lineItemIds?: string[];
|
|
1957
1957
|
}
|
|
@@ -3008,7 +3008,9 @@ interface CreateCartOptions {
|
|
|
3008
3008
|
/**
|
|
3009
3009
|
* Updates a cart's properties.
|
|
3010
3010
|
*
|
|
3011
|
-
* > **
|
|
3011
|
+
* > **Notes:**
|
|
3012
|
+
* > + When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3013
|
+
* > + 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.
|
|
3012
3014
|
* @public
|
|
3013
3015
|
* @requiredField _id
|
|
3014
3016
|
* @requiredField options.customLineItems.itemType
|
|
@@ -3172,7 +3174,9 @@ declare function getCart(_id: string): Promise<NonNullablePaths<Cart, `lineItems
|
|
|
3172
3174
|
/**
|
|
3173
3175
|
* 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.
|
|
3174
3176
|
*
|
|
3175
|
-
* >**
|
|
3177
|
+
* >**Notes:**
|
|
3178
|
+
* > + When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3179
|
+
* > + 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.
|
|
3176
3180
|
* @param _id - Cart ID.
|
|
3177
3181
|
* @public
|
|
3178
3182
|
* @requiredField _id
|
|
@@ -3216,6 +3220,8 @@ interface AddToCartOptions {
|
|
|
3216
3220
|
}
|
|
3217
3221
|
/**
|
|
3218
3222
|
* Removes line items from a cart.
|
|
3223
|
+
*
|
|
3224
|
+
* > **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.
|
|
3219
3225
|
* @public
|
|
3220
3226
|
* @requiredField _id
|
|
3221
3227
|
* @requiredField lineItemIds
|
|
@@ -3261,6 +3267,8 @@ interface CreateCheckoutOptions {
|
|
|
3261
3267
|
}
|
|
3262
3268
|
/**
|
|
3263
3269
|
* Removes the coupon from a cart.
|
|
3270
|
+
*
|
|
3271
|
+
* > **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.
|
|
3264
3272
|
* @param _id - Cart ID.
|
|
3265
3273
|
* @public
|
|
3266
3274
|
* @requiredField _id
|
|
@@ -3270,7 +3278,7 @@ interface CreateCheckoutOptions {
|
|
|
3270
3278
|
*/
|
|
3271
3279
|
declare function removeCoupon(_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>>;
|
|
3272
3280
|
/**
|
|
3273
|
-
* Updates the quantity of
|
|
3281
|
+
* Updates the quantity of 1 or more line items in a cart.
|
|
3274
3282
|
*
|
|
3275
3283
|
* This method is only for updating the quantity of line items.
|
|
3276
3284
|
* To entirely remove a line item from the cart, use Remove Line Items.
|
|
@@ -3279,6 +3287,8 @@ declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCoupo
|
|
|
3279
3287
|
* This method checks the amount of stock remaining for this line item.
|
|
3280
3288
|
* If the specified quantity is greater than the remaining stock,
|
|
3281
3289
|
* then the quantity returned in the response is the total amount of remaining stock.
|
|
3290
|
+
*
|
|
3291
|
+
* > **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.
|
|
3282
3292
|
* @param _id - Cart ID.
|
|
3283
3293
|
* @param lineItems - Line item IDs and their new quantity.
|
|
3284
3294
|
* @public
|