@wix/auto_sdk_ecom_cart-v-2 1.0.40 → 1.0.42
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 +139 -4047
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4374 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +139 -4047
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4374 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +0 -36
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +18 -18
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +0 -36
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +18 -18
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -3989,7 +3989,7 @@ type GetCartApplicationErrors = {
|
|
|
3989
3989
|
};
|
|
3990
3990
|
/**
|
|
3991
3991
|
* Creates a Cart.
|
|
3992
|
-
* @
|
|
3992
|
+
* @public
|
|
3993
3993
|
* @documentationMaturity preview
|
|
3994
3994
|
* @requiredField options.catalogItems.catalogReference
|
|
3995
3995
|
* @requiredField options.catalogItems.quantity
|
|
@@ -4042,7 +4042,7 @@ interface CreateCartOptions {
|
|
|
4042
4042
|
/**
|
|
4043
4043
|
* Retrieves a Cart.
|
|
4044
4044
|
* @param cartId - ID of the Cart to retrieve.
|
|
4045
|
-
* @
|
|
4045
|
+
* @public
|
|
4046
4046
|
* @documentationMaturity preview
|
|
4047
4047
|
* @requiredField cartId
|
|
4048
4048
|
* @permissionId ecom:v2:cart:get_cart
|
|
@@ -4059,7 +4059,7 @@ declare function getCart(cartId: string): Promise<NonNullablePaths<Cart, `_id` |
|
|
|
4059
4059
|
* Use this endpoint to set and replace fields such as buyer note and delivery method.
|
|
4060
4060
|
* To add or remove elements from lists (e.g., line items, discounts, gift cards), use their dedicated endpoints.
|
|
4061
4061
|
* @param _id - Cart ID.
|
|
4062
|
-
* @
|
|
4062
|
+
* @public
|
|
4063
4063
|
* @documentationMaturity preview
|
|
4064
4064
|
* @requiredField _id
|
|
4065
4065
|
* @requiredField cart
|
|
@@ -4181,7 +4181,7 @@ interface UpdateCart {
|
|
|
4181
4181
|
/**
|
|
4182
4182
|
* Deletes a Cart.
|
|
4183
4183
|
* @param cartId - ID of the Cart to delete.
|
|
4184
|
-
* @
|
|
4184
|
+
* @public
|
|
4185
4185
|
* @documentationMaturity preview
|
|
4186
4186
|
* @requiredField cartId
|
|
4187
4187
|
* @permissionId ecom:v2:cart:delete_cart
|
|
@@ -4192,7 +4192,7 @@ declare function deleteCart(cartId: string): Promise<void>;
|
|
|
4192
4192
|
/**
|
|
4193
4193
|
* Re-evaluates prices, inventory and discounts to ensure the Cart is up-to-date with the latest changes.
|
|
4194
4194
|
* @param cartId - ID of the Cart to refresh.
|
|
4195
|
-
* @
|
|
4195
|
+
* @public
|
|
4196
4196
|
* @documentationMaturity preview
|
|
4197
4197
|
* @requiredField cartId
|
|
4198
4198
|
* @permissionId ecom:v2:cart:refresh_cart
|
|
@@ -4205,7 +4205,7 @@ declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCa
|
|
|
4205
4205
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
4206
4206
|
* Note that discounts are already pre-computed and applied to the Cart.
|
|
4207
4207
|
* @param cartId - ID of the Cart to calculate.
|
|
4208
|
-
* @
|
|
4208
|
+
* @public
|
|
4209
4209
|
* @documentationMaturity preview
|
|
4210
4210
|
* @requiredField cartId
|
|
4211
4211
|
* @permissionId ecom:v2:cart:calculate_cart
|
|
@@ -4237,7 +4237,7 @@ interface CalculateCartOptions {
|
|
|
4237
4237
|
* By default, this is the standard Wix checkout page.
|
|
4238
4238
|
* If `custom_checkout_url` is defined, it overrides the default and is returned as the checkout URL.
|
|
4239
4239
|
* @param cartId - ID of the Cart to calculate.
|
|
4240
|
-
* @
|
|
4240
|
+
* @public
|
|
4241
4241
|
* @documentationMaturity preview
|
|
4242
4242
|
* @requiredField cartId
|
|
4243
4243
|
* @permissionId ecom:v2:cart:get_checkout_url
|
|
@@ -4258,7 +4258,7 @@ interface GetCheckoutUrlOptions {
|
|
|
4258
4258
|
*
|
|
4259
4259
|
* Read more about the [eCommerce Orders API](https://dev.wix.com/api/rest/wix-ecommerce/orders-api/introduction).
|
|
4260
4260
|
* @param cartId - Cart ID.
|
|
4261
|
-
* @
|
|
4261
|
+
* @public
|
|
4262
4262
|
* @documentationMaturity preview
|
|
4263
4263
|
* @requiredField cartId
|
|
4264
4264
|
* @permissionId ecom:v2:cart:place_order
|
|
@@ -4288,7 +4288,7 @@ interface PlaceOrderOptions {
|
|
|
4288
4288
|
/**
|
|
4289
4289
|
* Adds line items to the Cart.
|
|
4290
4290
|
* @param cartId - Cart ID.
|
|
4291
|
-
* @
|
|
4291
|
+
* @public
|
|
4292
4292
|
* @documentationMaturity preview
|
|
4293
4293
|
* @requiredField cartId
|
|
4294
4294
|
* @requiredField options.catalogItems.catalogReference
|
|
@@ -4322,7 +4322,7 @@ interface AddLineItemsOptions {
|
|
|
4322
4322
|
* Removes line items from the Cart.
|
|
4323
4323
|
* @param cartId - Cart ID.
|
|
4324
4324
|
* @param lineItemIds - Line item IDs to remove from cart.
|
|
4325
|
-
* @
|
|
4325
|
+
* @public
|
|
4326
4326
|
* @documentationMaturity preview
|
|
4327
4327
|
* @requiredField cartId
|
|
4328
4328
|
* @requiredField lineItemIds
|
|
@@ -4335,7 +4335,7 @@ declare function removeLineItems(cartId: string, lineItemIds: string[]): Promise
|
|
|
4335
4335
|
* Updates line items in the Cart.
|
|
4336
4336
|
* Use this endpoint to update line items properties such as quantity and selected membership.
|
|
4337
4337
|
* @param cartId - Cart ID.
|
|
4338
|
-
* @
|
|
4338
|
+
* @public
|
|
4339
4339
|
* @documentationMaturity preview
|
|
4340
4340
|
* @requiredField cartId
|
|
4341
4341
|
* @requiredField options.lineItems.lineItemId
|
|
@@ -4359,7 +4359,7 @@ interface UpdateLineItemsOptions {
|
|
|
4359
4359
|
* @param coupon - Coupon to apply.
|
|
4360
4360
|
*
|
|
4361
4361
|
* Currently only one is supported.
|
|
4362
|
-
* @
|
|
4362
|
+
* @public
|
|
4363
4363
|
* @documentationMaturity preview
|
|
4364
4364
|
* @requiredField cartId
|
|
4365
4365
|
* @requiredField coupon
|
|
@@ -4373,7 +4373,7 @@ declare function addCoupon(cartId: string, coupon: NonNullablePaths<CouponInput,
|
|
|
4373
4373
|
* Removes a coupon from the Cart.
|
|
4374
4374
|
* @param cartId - Cart ID.
|
|
4375
4375
|
* @param couponId - Discount ID.
|
|
4376
|
-
* @
|
|
4376
|
+
* @public
|
|
4377
4377
|
* @documentationMaturity preview
|
|
4378
4378
|
* @requiredField cartId
|
|
4379
4379
|
* @requiredField couponId
|
|
@@ -4386,7 +4386,7 @@ declare function removeCoupon(cartId: string, couponId: string): Promise<NonNull
|
|
|
4386
4386
|
* Sets the delivery method for the Cart.
|
|
4387
4387
|
* @param cartId - Cart ID.
|
|
4388
4388
|
* @param deliveryMethod - Delivery method.
|
|
4389
|
-
* @
|
|
4389
|
+
* @public
|
|
4390
4390
|
* @documentationMaturity preview
|
|
4391
4391
|
* @requiredField cartId
|
|
4392
4392
|
* @requiredField deliveryMethod
|
|
@@ -4403,7 +4403,7 @@ declare function setDeliveryMethod(cartId: string, deliveryMethod: NonNullablePa
|
|
|
4403
4403
|
* @param giftCard - Gift card code.
|
|
4404
4404
|
*
|
|
4405
4405
|
* Currently only one is supported.
|
|
4406
|
-
* @
|
|
4406
|
+
* @public
|
|
4407
4407
|
* @documentationMaturity preview
|
|
4408
4408
|
* @requiredField cartId
|
|
4409
4409
|
* @requiredField giftCard
|
|
@@ -4417,7 +4417,7 @@ declare function addGiftCard(cartId: string, giftCard: NonNullablePaths<GiftCard
|
|
|
4417
4417
|
* Removes a gift card from the Cart.
|
|
4418
4418
|
* @param cartId - Cart ID.
|
|
4419
4419
|
* @param giftCardId - Gift card ID.
|
|
4420
|
-
* @
|
|
4420
|
+
* @public
|
|
4421
4421
|
* @documentationMaturity preview
|
|
4422
4422
|
* @requiredField cartId
|
|
4423
4423
|
* @requiredField giftCardId
|
|
@@ -4431,7 +4431,7 @@ declare function removeGiftCard(cartId: string, giftCardId: string): Promise<Non
|
|
|
4431
4431
|
*
|
|
4432
4432
|
* Sets the `orderPlaced` field to `true`.
|
|
4433
4433
|
* @param cartId - Cart ID.
|
|
4434
|
-
* @
|
|
4434
|
+
* @public
|
|
4435
4435
|
* @documentationMaturity preview
|
|
4436
4436
|
* @requiredField cartId
|
|
4437
4437
|
* @permissionId ecom:v2:cart:update_cart
|
|
@@ -4452,7 +4452,7 @@ interface MarkCartAsCompletedOptions {
|
|
|
4452
4452
|
* Triggered by Wix Cashier after payment completion, this endpoint finalizes the checkout process and redirects the user to the previously provided success URL.
|
|
4453
4453
|
* In some cases, this endpoint might be called directly by the external payment provider.
|
|
4454
4454
|
* @param token - Server-signed JWT token with required information to complete checkout
|
|
4455
|
-
* @
|
|
4455
|
+
* @public
|
|
4456
4456
|
* @documentationMaturity preview
|
|
4457
4457
|
* @requiredField token
|
|
4458
4458
|
* @permissionId ecom:v2:cart:update_cart
|