@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
|
@@ -2052,7 +2052,7 @@ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
2052
2052
|
* @format GUID
|
|
2053
2053
|
* @deprecated IDs of line items the discount applies to.
|
|
2054
2054
|
* @replacedBy line_items_discounts
|
|
2055
|
-
* @targetRemovalDate
|
|
2055
|
+
* @targetRemovalDate 2025-12-31
|
|
2056
2056
|
*/
|
|
2057
2057
|
lineItemIds?: string[];
|
|
2058
2058
|
/**
|
|
@@ -3130,7 +3130,9 @@ interface CreateCartOptions {
|
|
|
3130
3130
|
/**
|
|
3131
3131
|
* Updates a cart's properties.
|
|
3132
3132
|
*
|
|
3133
|
-
* > **
|
|
3133
|
+
* > **Notes:**
|
|
3134
|
+
* > + When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3135
|
+
* > + 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.
|
|
3134
3136
|
* @public
|
|
3135
3137
|
* @requiredField _id
|
|
3136
3138
|
* @requiredField options.customLineItems.itemType
|
|
@@ -3305,7 +3307,9 @@ declare function getCartByCheckoutId(_id: string): Promise<NonNullablePaths<GetC
|
|
|
3305
3307
|
/**
|
|
3306
3308
|
* 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.
|
|
3307
3309
|
*
|
|
3308
|
-
* >**
|
|
3310
|
+
* >**Notes:**
|
|
3311
|
+
* > + When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3312
|
+
* > + 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.
|
|
3309
3313
|
* @param _id - Cart ID.
|
|
3310
3314
|
* @public
|
|
3311
3315
|
* @requiredField _id
|
|
@@ -3349,6 +3353,8 @@ interface AddToCartOptions {
|
|
|
3349
3353
|
}
|
|
3350
3354
|
/**
|
|
3351
3355
|
* Removes line items from a cart.
|
|
3356
|
+
*
|
|
3357
|
+
* > **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.
|
|
3352
3358
|
* @public
|
|
3353
3359
|
* @requiredField _id
|
|
3354
3360
|
* @requiredField lineItemIds
|
|
@@ -3394,6 +3400,8 @@ interface CreateCheckoutOptions {
|
|
|
3394
3400
|
}
|
|
3395
3401
|
/**
|
|
3396
3402
|
* Removes the coupon from a cart.
|
|
3403
|
+
*
|
|
3404
|
+
* > **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.
|
|
3397
3405
|
* @param _id - Cart ID.
|
|
3398
3406
|
* @public
|
|
3399
3407
|
* @requiredField _id
|
|
@@ -3403,7 +3411,7 @@ interface CreateCheckoutOptions {
|
|
|
3403
3411
|
*/
|
|
3404
3412
|
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>>;
|
|
3405
3413
|
/**
|
|
3406
|
-
* Updates the quantity of
|
|
3414
|
+
* Updates the quantity of 1 or more line items in a cart.
|
|
3407
3415
|
*
|
|
3408
3416
|
* This method is only for updating the quantity of line items.
|
|
3409
3417
|
* To entirely remove a line item from the cart, use Remove Line Items.
|
|
@@ -3412,6 +3420,8 @@ declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCoupo
|
|
|
3412
3420
|
* This method checks the amount of stock remaining for this line item.
|
|
3413
3421
|
* If the specified quantity is greater than the remaining stock,
|
|
3414
3422
|
* then the quantity returned in the response is the total amount of remaining stock.
|
|
3423
|
+
*
|
|
3424
|
+
* > **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.
|
|
3415
3425
|
* @param _id - Cart ID.
|
|
3416
3426
|
* @param lineItems - Line item IDs and their new quantity.
|
|
3417
3427
|
* @public
|