@wix/auto_sdk_ecom_checkout 1.0.36 → 1.0.38
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 -101
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1317
- 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 -182
- 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 -4437
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1587
- 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 -101
- package/build/es/src/ecom-v1-checkout-checkout.http.js +0 -1297
- 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 -182
- 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 -4437
- package/build/es/src/ecom-v1-checkout-checkout.universal.js +0 -1544
- 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 -101
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1317
- 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 -206
- 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 -4623
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1587
- 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 -101
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.js +0 -1297
- 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 -206
- 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 -4623
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +0 -1544
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a checkout.
|
|
4
|
-
*
|
|
5
|
-
* A checkout must include at least 1 item in `lineItems` or `customLineItems`.
|
|
6
|
-
*
|
|
7
|
-
* If passing `checkoutInfo.customFields`, then `checkoutInfo.customFields.value` is a required field.
|
|
8
|
-
*/
|
|
9
|
-
export declare function createCheckout(payload: object): RequestOptionsFactory<any>;
|
|
10
|
-
/** Retrieves a checkout. */
|
|
11
|
-
export declare function getCheckout(payload: object): RequestOptionsFactory<any>;
|
|
12
|
-
/** Retrieves the checkout associated with a specified cart. */
|
|
13
|
-
export declare function getCheckoutByCartId(payload: object): RequestOptionsFactory<any>;
|
|
14
|
-
/** Deprecated and will be removed soon, use GetCheckoutURL */
|
|
15
|
-
export declare function getWixCheckoutUrl(payload: object): RequestOptionsFactory<any>;
|
|
16
|
-
/**
|
|
17
|
-
* Retrieves the checkout page URL of a specified checkout.
|
|
18
|
-
*
|
|
19
|
-
* By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page.
|
|
20
|
-
* However, if `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
21
|
-
*/
|
|
22
|
-
export declare function getCheckoutUrl(payload: object): RequestOptionsFactory<any>;
|
|
23
|
-
/**
|
|
24
|
-
* Updates a checkout.
|
|
25
|
-
*
|
|
26
|
-
* Use this method to update checkout fields such as billing and shipping info, or to add a coupon code or gift card.
|
|
27
|
-
*
|
|
28
|
-
* To update a checkout's `lineItems`, `completed` status, or to remove coupons and gift cards, see these methods:
|
|
29
|
-
* + Add to Checkout: Add line items to the checkout.
|
|
30
|
-
* + Update Line Items Quantity: Update the quantity of 1 or more line items in the checkout.
|
|
31
|
-
* + Remove Line Items: Remove a line item from the checkout.
|
|
32
|
-
* + Mark Checkout As Completed: To update `completed` to `true` if the checkout was completed through a non-Wix orders or payments system.
|
|
33
|
-
* + Remove Coupon: To remove an applied coupon from the checkout.
|
|
34
|
-
* + Remove Gift Card: To remove an applied gift card from the checkout.
|
|
35
|
-
*
|
|
36
|
-
* >**Notes:**
|
|
37
|
-
* > + If nothing is passed in the request, the call will fail.
|
|
38
|
-
* > + The `checkout.buyerInfo.email` may not be removed once it is set.
|
|
39
|
-
*/
|
|
40
|
-
export declare function updateCheckout(payload: object): RequestOptionsFactory<any>;
|
|
41
|
-
/** Removes the coupon from a specified checkout. */
|
|
42
|
-
export declare function removeCoupon(payload: object): RequestOptionsFactory<any>;
|
|
43
|
-
/**
|
|
44
|
-
* Removes the gift card from a specified checkout.
|
|
45
|
-
*
|
|
46
|
-
* A checkout can only hold 1 gift card.
|
|
47
|
-
*/
|
|
48
|
-
export declare function removeGiftCard(payload: object): RequestOptionsFactory<any>;
|
|
49
|
-
/**
|
|
50
|
-
* Removes the `overrideCheckoutUrl` from a specified checkout.
|
|
51
|
-
*
|
|
52
|
-
* When `overrideCheckoutUrl` is removed, the `checkoutUrl` will be set to the default, standard
|
|
53
|
-
* Wix checkout page URL.
|
|
54
|
-
*/
|
|
55
|
-
export declare function removeOverrideCheckoutUrl(payload: object): RequestOptionsFactory<any>;
|
|
56
|
-
/**
|
|
57
|
-
* Adds catalog line items and/or custom line items to a checkout.
|
|
58
|
-
*
|
|
59
|
-
* When adding 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)) items
|
|
60
|
-
* to a checkout, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
61
|
-
*/
|
|
62
|
-
export declare function addToCheckout(payload: object): RequestOptionsFactory<any>;
|
|
63
|
-
/** Removes line items from the specified checkout. */
|
|
64
|
-
export declare function removeLineItems(payload: object): RequestOptionsFactory<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Creates an order from a specified checkout.
|
|
67
|
-
*
|
|
68
|
-
* For an order to be created from a checkout, the following requirements must be met:
|
|
69
|
-
* + A checkout cannot have calculation errors. Pass the checkout ID to Get Checkout and review the `calculationErrors` field.
|
|
70
|
-
* + A checkout must have at least 1 line item or custom line item.
|
|
71
|
-
* + All of the line Items have an `availability.status` of `"AVAILABLE"` or `"PARTIALLY_AVAILABLE"`.
|
|
72
|
-
* + If there is a payment to be made, meaning that `priceSummary.total` is greater than `0`, the `billingInfo.address` field are required.
|
|
73
|
-
* + When a checkout has line items to be shipped, the `shippingInfo.shippingDestination.address` and `shippingInfo.selectedCarrierServiceOption` fields are required.
|
|
74
|
-
* + When a checkout has line items for pickup, the `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails` field are required.
|
|
75
|
-
*/
|
|
76
|
-
export declare function createOrder(payload: object): RequestOptionsFactory<any>;
|
|
77
|
-
/** Deprecated (use createOrder instead) */
|
|
78
|
-
export declare function createOrderAndCharge(payload: object): RequestOptionsFactory<any>;
|
|
79
|
-
/** Marks a checkout as completed and redirects to a specified URL. */
|
|
80
|
-
export declare function markCheckoutAsCompletedAndRedirectToUrl(payload: object): RequestOptionsFactory<any>;
|
|
81
|
-
/**
|
|
82
|
-
* Sets `completed` to `true` to mark a checkout as completed.
|
|
83
|
-
*
|
|
84
|
-
* When an order is completed through Wix, the `completed` field in the associated checkout object
|
|
85
|
-
* will automatically be updated to `true`. If an order is completed through a separate system,
|
|
86
|
-
* use this method to manually mark the checkout as completed.
|
|
87
|
-
*/
|
|
88
|
-
export declare function markCheckoutAsCompleted(payload: object): RequestOptionsFactory<any>;
|
|
89
|
-
/**
|
|
90
|
-
* Updates the quantity of one or more line items in a checkout.
|
|
91
|
-
*
|
|
92
|
-
* This method is only for updating the quantity of line items. To entirely remove a line item from
|
|
93
|
-
* the checkout, use the Remove Line Items method.
|
|
94
|
-
* To add a new line item to the checkout, use the Add to Checkout method.
|
|
95
|
-
*
|
|
96
|
-
* This method checks the amount of stock remaining for this line item. If the specified `quantity`
|
|
97
|
-
* is greater than the remaining stock, then the `quantity` returned in the response is the total amount
|
|
98
|
-
* of remaining stock.
|
|
99
|
-
*/
|
|
100
|
-
export declare function updateLineItemsQuantity(payload: object): RequestOptionsFactory<any>;
|
|
101
|
-
export declare function getCheckoutPaymentSettings(payload: object): RequestOptionsFactory<any>;
|