@wix/auto_sdk_ecom_cart 1.0.77 → 1.0.79
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 +15 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -0
- 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 +15 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -0
- 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 +15 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +8 -0
- 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 +15 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +8 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1032,6 +1032,8 @@ interface Address {
|
|
|
1032
1032
|
* @maxLength 100
|
|
1033
1033
|
*/
|
|
1034
1034
|
addressLine2?: string | null;
|
|
1035
|
+
/** Geocode object containing latitude and longitude coordinates. */
|
|
1036
|
+
location?: AddressLocation;
|
|
1035
1037
|
/**
|
|
1036
1038
|
* Country's full name.
|
|
1037
1039
|
* @readonly
|
|
@@ -3130,7 +3132,9 @@ interface CreateCartOptions {
|
|
|
3130
3132
|
/**
|
|
3131
3133
|
* Updates a cart's properties.
|
|
3132
3134
|
*
|
|
3133
|
-
* > **
|
|
3135
|
+
* > **Notes:**
|
|
3136
|
+
* > + When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3137
|
+
* > + 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
3138
|
* @public
|
|
3135
3139
|
* @requiredField _id
|
|
3136
3140
|
* @requiredField options.customLineItems.itemType
|
|
@@ -3305,7 +3309,9 @@ declare function getCartByCheckoutId(_id: string): Promise<NonNullablePaths<GetC
|
|
|
3305
3309
|
/**
|
|
3306
3310
|
* 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
3311
|
*
|
|
3308
|
-
* >**
|
|
3312
|
+
* >**Notes:**
|
|
3313
|
+
* > + When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3314
|
+
* > + 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
3315
|
* @param _id - Cart ID.
|
|
3310
3316
|
* @public
|
|
3311
3317
|
* @requiredField _id
|
|
@@ -3349,6 +3355,8 @@ interface AddToCartOptions {
|
|
|
3349
3355
|
}
|
|
3350
3356
|
/**
|
|
3351
3357
|
* Removes line items from a cart.
|
|
3358
|
+
*
|
|
3359
|
+
* > **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
3360
|
* @public
|
|
3353
3361
|
* @requiredField _id
|
|
3354
3362
|
* @requiredField lineItemIds
|
|
@@ -3394,6 +3402,8 @@ interface CreateCheckoutOptions {
|
|
|
3394
3402
|
}
|
|
3395
3403
|
/**
|
|
3396
3404
|
* Removes the coupon from a cart.
|
|
3405
|
+
*
|
|
3406
|
+
* > **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
3407
|
* @param _id - Cart ID.
|
|
3398
3408
|
* @public
|
|
3399
3409
|
* @requiredField _id
|
|
@@ -3403,7 +3413,7 @@ interface CreateCheckoutOptions {
|
|
|
3403
3413
|
*/
|
|
3404
3414
|
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
3415
|
/**
|
|
3406
|
-
* Updates the quantity of
|
|
3416
|
+
* Updates the quantity of 1 or more line items in a cart.
|
|
3407
3417
|
*
|
|
3408
3418
|
* This method is only for updating the quantity of line items.
|
|
3409
3419
|
* To entirely remove a line item from the cart, use Remove Line Items.
|
|
@@ -3412,6 +3422,8 @@ declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCoupo
|
|
|
3412
3422
|
* This method checks the amount of stock remaining for this line item.
|
|
3413
3423
|
* If the specified quantity is greater than the remaining stock,
|
|
3414
3424
|
* then the quantity returned in the response is the total amount of remaining stock.
|
|
3425
|
+
*
|
|
3426
|
+
* > **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
3427
|
* @param _id - Cart ID.
|
|
3416
3428
|
* @param lineItems - Line item IDs and their new quantity.
|
|
3417
3429
|
* @public
|