@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.
@@ -983,6 +983,8 @@ interface Address {
983
983
  * @maxLength 100
984
984
  */
985
985
  addressLine2?: string | null;
986
+ /** Geocode object containing latitude and longitude coordinates. */
987
+ location?: AddressLocation;
986
988
  /**
987
989
  * Country's full name.
988
990
  * @readonly
@@ -3008,7 +3010,9 @@ interface CreateCartOptions {
3008
3010
  /**
3009
3011
  * Updates a cart's properties.
3010
3012
  *
3011
- * > **Note:** When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3013
+ * > **Notes:**
3014
+ * > + When updating line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3015
+ * > + 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
3016
  * @public
3013
3017
  * @requiredField _id
3014
3018
  * @requiredField options.customLineItems.itemType
@@ -3172,7 +3176,9 @@ declare function getCart(_id: string): Promise<NonNullablePaths<Cart, `lineItems
3172
3176
  /**
3173
3177
  * 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
3178
  *
3175
- * >**Note:** When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3179
+ * >**Notes:**
3180
+ * > + When adding catalog line items to a cart, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
3181
+ * > + 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
3182
  * @param _id - Cart ID.
3177
3183
  * @public
3178
3184
  * @requiredField _id
@@ -3216,6 +3222,8 @@ interface AddToCartOptions {
3216
3222
  }
3217
3223
  /**
3218
3224
  * Removes line items from a cart.
3225
+ *
3226
+ * > **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
3227
  * @public
3220
3228
  * @requiredField _id
3221
3229
  * @requiredField lineItemIds
@@ -3261,6 +3269,8 @@ interface CreateCheckoutOptions {
3261
3269
  }
3262
3270
  /**
3263
3271
  * Removes the coupon from a cart.
3272
+ *
3273
+ * > **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
3274
  * @param _id - Cart ID.
3265
3275
  * @public
3266
3276
  * @requiredField _id
@@ -3270,7 +3280,7 @@ interface CreateCheckoutOptions {
3270
3280
  */
3271
3281
  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
3282
  /**
3273
- * Updates the quantity of one or more line items in a cart.
3283
+ * Updates the quantity of 1 or more line items in a cart.
3274
3284
  *
3275
3285
  * This method is only for updating the quantity of line items.
3276
3286
  * To entirely remove a line item from the cart, use Remove Line Items.
@@ -3279,6 +3289,8 @@ declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCoupo
3279
3289
  * This method checks the amount of stock remaining for this line item.
3280
3290
  * If the specified quantity is greater than the remaining stock,
3281
3291
  * then the quantity returned in the response is the total amount of remaining stock.
3292
+ *
3293
+ * > **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
3294
  * @param _id - Cart ID.
3283
3295
  * @param lineItems - Line item IDs and their new quantity.
3284
3296
  * @public