@wix/auto_sdk_ecom_checkout 1.0.35 → 1.0.37
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/{es/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-DEDRvPML.d.mts} +674 -365
- package/build/{cjs/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-DEDRvPML.d.ts} +674 -365
- package/build/index.d.mts +210 -0
- package/build/index.d.ts +210 -0
- package/build/index.js +2782 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +2708 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-CirtPjnM.d.mts} +803 -364
- package/build/internal/{es/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-CirtPjnM.d.ts} +803 -364
- package/build/internal/index.d.mts +240 -0
- package/build/internal/index.d.ts +240 -0
- package/build/internal/index.js +2782 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +2708 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +2606 -0
- package/build/internal/meta.d.ts +2606 -0
- package/build/internal/meta.js +1587 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1544 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +2606 -0
- package/build/meta.d.ts +2606 -0
- package/build/meta.js +1587 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1544 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +0 -35
- package/build/cjs/src/ecom-v1-checkout-checkout.context.js +0 -76
- package/build/cjs/src/ecom-v1-checkout-checkout.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.http.d.ts +0 -122
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1338
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +0 -351
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +0 -194
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js +0 -357
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js +0 -303
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4429
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1599
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +0 -35
- package/build/es/src/ecom-v1-checkout-checkout.context.js +0 -41
- package/build/es/src/ecom-v1-checkout-checkout.context.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.http.d.ts +0 -122
- package/build/es/src/ecom-v1-checkout-checkout.http.js +0 -1318
- package/build/es/src/ecom-v1-checkout-checkout.http.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
- package/build/es/src/ecom-v1-checkout-checkout.meta.js +0 -308
- package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +0 -194
- package/build/es/src/ecom-v1-checkout-checkout.public.js +0 -305
- package/build/es/src/ecom-v1-checkout-checkout.public.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.types.js +0 -300
- package/build/es/src/ecom-v1-checkout-checkout.types.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4429
- package/build/es/src/ecom-v1-checkout-checkout.universal.js +0 -1556
- package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.d.ts +0 -41
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js +0 -76
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.d.ts +0 -122
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1338
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js +0 -351
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.d.ts +0 -218
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js +0 -357
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js +0 -303
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4615
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1599
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.d.ts +0 -41
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.js +0 -41
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.d.ts +0 -122
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.js +0 -1318
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js +0 -308
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.d.ts +0 -218
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.js +0 -305
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.js +0 -300
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4615
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +0 -1556
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a checkout.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* The `createCheckout()` function returns a Promise that resolves to the new checkout when it's created.
|
|
7
|
-
*
|
|
8
|
-
* > **Notes:**
|
|
9
|
-
* > + Checkout must include at least 1 item in the `options.lineItems` array.
|
|
10
|
-
* > + `options.channelType` is required.
|
|
11
|
-
* > + If `_id` for `options.lineItems` is added, make sure that each `_id` is unique.
|
|
12
|
-
* > + If `options.checkoutInfo.customFields` are added, then `options.checkoutInfo.customFields.value` is required.
|
|
13
|
-
*/
|
|
14
|
-
export declare function createCheckout(payload: object): RequestOptionsFactory<any>;
|
|
15
|
-
/**
|
|
16
|
-
* Retrieves a checkout.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The `getCheckout()` function returns a Promise that resolves when the specified checkout is retrieved.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getCheckout(payload: object): RequestOptionsFactory<any>;
|
|
22
|
-
/** Retrieves the checkout associated with a specified cart. */
|
|
23
|
-
export declare function getCheckoutByCartId(payload: object): RequestOptionsFactory<any>;
|
|
24
|
-
/** Deprecated and will be removed soon, use GetCheckoutURL */
|
|
25
|
-
export declare function getWixCheckoutUrl(payload: object): RequestOptionsFactory<any>;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves the checkout page URL of a specified checkout.
|
|
28
|
-
*
|
|
29
|
-
* By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page.
|
|
30
|
-
* However, if `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
31
|
-
*/
|
|
32
|
-
export declare function getCheckoutUrl(payload: object): RequestOptionsFactory<any>;
|
|
33
|
-
/**
|
|
34
|
-
* Updates a checkout.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* The `updateCheckout()` function returns a Promise that resolves to the updated checkout when the specified properties are updated.
|
|
38
|
-
*
|
|
39
|
-
* >**Notes:**
|
|
40
|
-
* > + If nothing is passed in the request, the call will fail.
|
|
41
|
-
* > + The `checkout.buyerInfo.email` may not be removed once it is set.
|
|
42
|
-
*/
|
|
43
|
-
export declare function updateCheckout(payload: object): RequestOptionsFactory<any>;
|
|
44
|
-
/**
|
|
45
|
-
* Removes the coupon from a specified checkout.
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* The `removeCoupon()` function returns a Promise that resolves to the updated checkout when the coupon is removed from the specified checkout.
|
|
49
|
-
*
|
|
50
|
-
* >**Note:** A checkout can only hold 1 coupon.
|
|
51
|
-
*/
|
|
52
|
-
export declare function removeCoupon(payload: object): RequestOptionsFactory<any>;
|
|
53
|
-
/**
|
|
54
|
-
* Removes the gift card from a specified checkout.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* The `removeGiftCard()` function returns a Promise that resolves to the updated checkout when the gift card is removed from the specified checkout.
|
|
58
|
-
*
|
|
59
|
-
* >**Note:** A checkout can only hold 1 gift card.
|
|
60
|
-
*/
|
|
61
|
-
export declare function removeGiftCard(payload: object): RequestOptionsFactory<any>;
|
|
62
|
-
/**
|
|
63
|
-
* Removes the `overrideCheckoutUrl` from a specified checkout.
|
|
64
|
-
*
|
|
65
|
-
* When `overrideCheckoutUrl` is removed, the `checkoutUrl` will be set to the default, standard
|
|
66
|
-
* Wix checkout page URL.
|
|
67
|
-
*/
|
|
68
|
-
export declare function removeOverrideCheckoutUrl(payload: object): RequestOptionsFactory<any>;
|
|
69
|
-
/**
|
|
70
|
-
* Adds catalog line items and/or custom line items to a checkout.
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* The `addToCheckout()` function returns a Promise that resolves to the updated checkout when the specified items have been added.
|
|
74
|
-
* > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
|
|
75
|
-
*/
|
|
76
|
-
export declare function addToCheckout(payload: object): RequestOptionsFactory<any>;
|
|
77
|
-
/**
|
|
78
|
-
* Removes line items from the specified checkout.
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* The `removeLineItems()` function returns a Promise that resolves to the updated checkout when the line items are removed from the specified checkout.
|
|
82
|
-
*/
|
|
83
|
-
export declare function removeLineItems(payload: object): RequestOptionsFactory<any>;
|
|
84
|
-
/**
|
|
85
|
-
* Creates an order from a specified checkout.
|
|
86
|
-
*
|
|
87
|
-
* The `createOrder()` function returns a Promise that resolves to the new order's ID and `paymentGatewayOrderID` when the order is created.
|
|
88
|
-
* Pass the `paymentGatewayOrderId` as the `paymentId` param to the [`startPayment()`](https://www.wix.com/velo/reference/wix-pay-frontend/startpayment) function to allow a customer to pay for their order.
|
|
89
|
-
*
|
|
90
|
-
* > **Note:** The following requirements must be met for an order to be created from a checkout.
|
|
91
|
-
* > + A checkout cannot have calculation errors. Pass the `checkout._id` to [Get Checkout](https://www.wix.com/velo/reference/wix-ecom-backend/checkout/getcheckout) and take a look at the `calculationErrors` field.
|
|
92
|
-
* > + A checkout must have at least 1 line item.
|
|
93
|
-
* > + All of the line Items have an `availability.status` of `"AVAILABLE"` or `"PARTIALLY_AVAILABLE"`.
|
|
94
|
-
* > + If there is a payment to be made, meaning that `priceSummary.total` is greater than 0, the `billingInfo.address` field must be provided.
|
|
95
|
-
* > + When a checkout has line items to be shipped, the `shippingInfo.shippingDestination.address` and `shippingInfo.selectedCarrierServiceOption` fields must be provided.
|
|
96
|
-
* > + When a checkout has line items for pickup, the `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails` field must be provided.
|
|
97
|
-
*/
|
|
98
|
-
export declare function createOrder(payload: object): RequestOptionsFactory<any>;
|
|
99
|
-
/** Deprecated (use createOrder instead) */
|
|
100
|
-
export declare function createOrderAndCharge(payload: object): RequestOptionsFactory<any>;
|
|
101
|
-
/** Marks a checkout as completed and redirects to a specified URL. */
|
|
102
|
-
export declare function markCheckoutAsCompletedAndRedirectToUrl(payload: object): RequestOptionsFactory<any>;
|
|
103
|
-
/**
|
|
104
|
-
* Marks a checkout as completed - `checkout.complete` boolean is set to `true`.
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* The `markCheckoutAsCompleted()` function returns a Promise that resolves when the specified checkout is marked as completed.
|
|
108
|
-
*/
|
|
109
|
-
export declare function markCheckoutAsCompleted(payload: object): RequestOptionsFactory<any>;
|
|
110
|
-
/**
|
|
111
|
-
* Updates the quantity of one or more line items in a checkout.
|
|
112
|
-
*
|
|
113
|
-
* This endpoint is only for updating the quantity of line items. To entirely remove a line item from
|
|
114
|
-
* the checkout, use [`removeLineItems()`](#removelineitems).
|
|
115
|
-
* To add a new line item to the checkout, use [`addToCheckout()`](#addtocheckout).
|
|
116
|
-
*
|
|
117
|
-
* This endpoint checks the amount of stock remaining for this line item. If the specified `quantity`
|
|
118
|
-
* is greater than the remaining stock, then the `quantity` returned in the response is the total amount
|
|
119
|
-
* of remaining stock.
|
|
120
|
-
*/
|
|
121
|
-
export declare function updateLineItemsQuantity(payload: object): RequestOptionsFactory<any>;
|
|
122
|
-
export declare function getCheckoutPaymentSettings(payload: object): RequestOptionsFactory<any>;
|