@wix/auto_sdk_ecom_checkout 1.0.5 → 1.0.6
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/src/ecom-v1-checkout-checkout.types.d.ts +40 -35
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js +6 -6
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +36 -34
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +6 -6
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +40 -35
- package/build/es/src/ecom-v1-checkout-checkout.types.js +6 -6
- package/build/es/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +36 -34
- package/build/es/src/ecom-v1-checkout-checkout.universal.js +6 -6
- package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.d.ts +40 -35
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js +6 -6
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +38 -36
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +6 -6
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.d.ts +40 -35
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.js +6 -6
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.d.ts +38 -36
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +6 -6
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ export interface Checkout {
|
|
|
19
19
|
/** Shipping information. */
|
|
20
20
|
shippingInfo?: ShippingInfo;
|
|
21
21
|
/**
|
|
22
|
-
* [Buyer note](https://support.wix.com/en/article/
|
|
22
|
+
* [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.
|
|
23
23
|
* @maxLength 1000
|
|
24
24
|
*/
|
|
25
25
|
buyerNote?: string | null;
|
|
@@ -44,7 +44,7 @@ export interface Checkout {
|
|
|
44
44
|
/**
|
|
45
45
|
* Applied gift card details.
|
|
46
46
|
*
|
|
47
|
-
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/
|
|
47
|
+
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
48
48
|
* @readonly
|
|
49
49
|
*/
|
|
50
50
|
giftCard?: GiftCard;
|
|
@@ -56,7 +56,7 @@ export interface Checkout {
|
|
|
56
56
|
/** Custom fields. */
|
|
57
57
|
customFields?: CustomField[];
|
|
58
58
|
/**
|
|
59
|
-
* Weight measurement unit
|
|
59
|
+
* Weight measurement unit. Defaults to a site's weight unit.
|
|
60
60
|
* @readonly
|
|
61
61
|
*/
|
|
62
62
|
weightUnit?: WeightUnit;
|
|
@@ -136,7 +136,7 @@ export interface Checkout {
|
|
|
136
136
|
*/
|
|
137
137
|
cartId?: string | null;
|
|
138
138
|
/**
|
|
139
|
-
* List of validation violations raised by the
|
|
139
|
+
* List of validation violations raised by the Validations service plugin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/validations/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction)).
|
|
140
140
|
* @readonly
|
|
141
141
|
*/
|
|
142
142
|
violations?: Violation[];
|
|
@@ -156,7 +156,7 @@ export interface Checkout {
|
|
|
156
156
|
* Additional settings for customization of the checkout process.
|
|
157
157
|
*
|
|
158
158
|
* > **Notes:**
|
|
159
|
-
* > * Custom settings can only be set when
|
|
159
|
+
* > * Custom settings can only be set when creating a checkout.
|
|
160
160
|
* > * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
161
161
|
* @immutable
|
|
162
162
|
*/
|
|
@@ -170,7 +170,8 @@ export interface Checkout {
|
|
|
170
170
|
customContentReference?: CustomContentReference;
|
|
171
171
|
/**
|
|
172
172
|
* The business location ID associated with the checkout.
|
|
173
|
-
*
|
|
173
|
+
*
|
|
174
|
+
* To learn more, see the Locations API.
|
|
174
175
|
* @format GUID
|
|
175
176
|
*/
|
|
176
177
|
businessLocationId?: string | null;
|
|
@@ -364,7 +365,7 @@ export interface CatalogReference {
|
|
|
364
365
|
/**
|
|
365
366
|
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
366
367
|
*
|
|
367
|
-
* For products and variants from a Wix Stores catalog, learn more about
|
|
368
|
+
* For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([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)).
|
|
368
369
|
*/
|
|
369
370
|
options?: Record<string, any> | null;
|
|
370
371
|
}
|
|
@@ -604,11 +605,11 @@ export interface ItemAvailabilityInfo {
|
|
|
604
605
|
}
|
|
605
606
|
export declare enum ItemAvailabilityStatus {
|
|
606
607
|
AVAILABLE = "AVAILABLE",
|
|
607
|
-
/** Item does not exist */
|
|
608
|
+
/** Item does not exist. */
|
|
608
609
|
NOT_FOUND = "NOT_FOUND",
|
|
609
|
-
/** Item not in stock */
|
|
610
|
+
/** Item is not in stock. */
|
|
610
611
|
NOT_AVAILABLE = "NOT_AVAILABLE",
|
|
611
|
-
/** Available quantity is less than requested */
|
|
612
|
+
/** Available quantity is less than requested. */
|
|
612
613
|
PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE"
|
|
613
614
|
}
|
|
614
615
|
export interface PhysicalProperties {
|
|
@@ -1236,7 +1237,7 @@ export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
|
1236
1237
|
*/
|
|
1237
1238
|
memberId?: string;
|
|
1238
1239
|
/**
|
|
1239
|
-
* Contact ID. Auto-created if one does not yet exist. For more information, see
|
|
1240
|
+
* Contact ID. Auto-created if one does not yet exist. For more information, see the Contacts API.
|
|
1240
1241
|
* @format GUID
|
|
1241
1242
|
* @readonly
|
|
1242
1243
|
*/
|
|
@@ -1535,11 +1536,11 @@ export interface CustomField {
|
|
|
1535
1536
|
translatedTitle?: string | null;
|
|
1536
1537
|
}
|
|
1537
1538
|
export declare enum WeightUnit {
|
|
1538
|
-
/** Weight unit can't be classified
|
|
1539
|
+
/** Weight unit can't be classified due to an error. */
|
|
1539
1540
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
1540
|
-
/** Kilograms */
|
|
1541
|
+
/** Kilograms. */
|
|
1541
1542
|
KG = "KG",
|
|
1542
|
-
/** Pounds */
|
|
1543
|
+
/** Pounds. */
|
|
1543
1544
|
LB = "LB"
|
|
1544
1545
|
}
|
|
1545
1546
|
export interface TaxSummary {
|
|
@@ -1668,23 +1669,23 @@ export declare enum ChannelType {
|
|
|
1668
1669
|
}
|
|
1669
1670
|
export interface CreatedBy extends CreatedByIdOneOf {
|
|
1670
1671
|
/**
|
|
1671
|
-
* User ID
|
|
1672
|
+
* User ID. When the order was created by a Wix user on behalf of a buyer.
|
|
1672
1673
|
* For example, via POS (point of service).
|
|
1673
1674
|
* @format GUID
|
|
1674
1675
|
*/
|
|
1675
1676
|
userId?: string;
|
|
1676
1677
|
/**
|
|
1677
|
-
* Member ID
|
|
1678
|
+
* Member ID. When the order was created by a **logged in** site visitor.
|
|
1678
1679
|
* @format GUID
|
|
1679
1680
|
*/
|
|
1680
1681
|
memberId?: string;
|
|
1681
1682
|
/**
|
|
1682
|
-
* Visitor ID
|
|
1683
|
+
* Visitor ID. When the order was created by a site visitor that was **not** logged in.
|
|
1683
1684
|
* @format GUID
|
|
1684
1685
|
*/
|
|
1685
1686
|
visitorId?: string;
|
|
1686
1687
|
/**
|
|
1687
|
-
* App ID
|
|
1688
|
+
* App ID. When the order was created by an external application or Wix service.
|
|
1688
1689
|
* @format GUID
|
|
1689
1690
|
*/
|
|
1690
1691
|
appId?: string;
|
|
@@ -1692,23 +1693,23 @@ export interface CreatedBy extends CreatedByIdOneOf {
|
|
|
1692
1693
|
/** @oneof */
|
|
1693
1694
|
export interface CreatedByIdOneOf {
|
|
1694
1695
|
/**
|
|
1695
|
-
* User ID
|
|
1696
|
+
* User ID. When the order was created by a Wix user on behalf of a buyer.
|
|
1696
1697
|
* For example, via POS (point of service).
|
|
1697
1698
|
* @format GUID
|
|
1698
1699
|
*/
|
|
1699
1700
|
userId?: string;
|
|
1700
1701
|
/**
|
|
1701
|
-
* Member ID
|
|
1702
|
+
* Member ID. When the order was created by a **logged in** site visitor.
|
|
1702
1703
|
* @format GUID
|
|
1703
1704
|
*/
|
|
1704
1705
|
memberId?: string;
|
|
1705
1706
|
/**
|
|
1706
|
-
* Visitor ID
|
|
1707
|
+
* Visitor ID. When the order was created by a site visitor that was **not** logged in.
|
|
1707
1708
|
* @format GUID
|
|
1708
1709
|
*/
|
|
1709
1710
|
visitorId?: string;
|
|
1710
1711
|
/**
|
|
1711
|
-
* App ID
|
|
1712
|
+
* App ID. When the order was created by an external application or Wix service.
|
|
1712
1713
|
* @format GUID
|
|
1713
1714
|
*/
|
|
1714
1715
|
appId?: string;
|
|
@@ -2059,13 +2060,13 @@ export interface CreateCheckoutRequest {
|
|
|
2059
2060
|
*
|
|
2060
2061
|
* The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.
|
|
2061
2062
|
*
|
|
2062
|
-
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/
|
|
2063
|
+
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
2063
2064
|
*/
|
|
2064
2065
|
giftCardCode?: string | null;
|
|
2065
2066
|
/**
|
|
2066
2067
|
* `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
|
|
2067
2068
|
*
|
|
2068
|
-
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the
|
|
2069
|
+
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API
|
|
2069
2070
|
* to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a
|
|
2070
2071
|
* standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
2071
2072
|
* @maxLength 1000
|
|
@@ -2218,7 +2219,7 @@ export interface GetCheckoutRequest {
|
|
|
2218
2219
|
id: string;
|
|
2219
2220
|
}
|
|
2220
2221
|
export interface GetCheckoutResponse {
|
|
2221
|
-
/**
|
|
2222
|
+
/** Retrieved checkout. */
|
|
2222
2223
|
checkout?: Checkout;
|
|
2223
2224
|
}
|
|
2224
2225
|
export interface GetCheckoutWithAllExtendedFieldsRequest {
|
|
@@ -2229,7 +2230,7 @@ export interface GetCheckoutWithAllExtendedFieldsRequest {
|
|
|
2229
2230
|
id?: string;
|
|
2230
2231
|
}
|
|
2231
2232
|
export interface GetCheckoutWithAllExtendedFieldsResponse {
|
|
2232
|
-
/**
|
|
2233
|
+
/** Retrieved checkout. */
|
|
2233
2234
|
checkout?: Checkout;
|
|
2234
2235
|
}
|
|
2235
2236
|
export interface GetCheckoutByCartIdRequest {
|
|
@@ -2240,7 +2241,7 @@ export interface GetCheckoutByCartIdRequest {
|
|
|
2240
2241
|
id: string;
|
|
2241
2242
|
}
|
|
2242
2243
|
export interface GetCheckoutByCartIdResponse {
|
|
2243
|
-
/**
|
|
2244
|
+
/** Retrieved checkout. */
|
|
2244
2245
|
checkout?: Checkout;
|
|
2245
2246
|
}
|
|
2246
2247
|
export interface GetWixCheckoutURLRequest {
|
|
@@ -2279,7 +2280,7 @@ export interface UpdateCheckoutRequest {
|
|
|
2279
2280
|
/**
|
|
2280
2281
|
* `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
|
|
2281
2282
|
*
|
|
2282
|
-
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the
|
|
2283
|
+
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API
|
|
2283
2284
|
* to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a
|
|
2284
2285
|
* standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
2285
2286
|
* @maxLength 1000
|
|
@@ -2368,6 +2369,10 @@ export interface RemoveLineItemsRequest {
|
|
|
2368
2369
|
id: string;
|
|
2369
2370
|
/**
|
|
2370
2371
|
* IDs of the line items to remove from the checkout.
|
|
2372
|
+
*
|
|
2373
|
+
* To find the IDs of the checkout line items you'd like to remove,
|
|
2374
|
+
* pass the checkout ID to Get Checkout and look for the IDs under
|
|
2375
|
+
* `lineItems`.
|
|
2371
2376
|
* @format GUID
|
|
2372
2377
|
* @minSize 1
|
|
2373
2378
|
* @maxSize 300
|
|
@@ -2384,9 +2389,9 @@ export interface CreateOrderRequest {
|
|
|
2384
2389
|
* @format GUID
|
|
2385
2390
|
*/
|
|
2386
2391
|
id: string;
|
|
2387
|
-
/**
|
|
2392
|
+
/** Whether the payment method should be saved on the order. */
|
|
2388
2393
|
savePaymentMethod?: boolean;
|
|
2389
|
-
/**
|
|
2394
|
+
/** Whether to authorize the payment and delay the capture. */
|
|
2390
2395
|
delayCapture?: boolean;
|
|
2391
2396
|
}
|
|
2392
2397
|
export interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
|
|
@@ -2407,8 +2412,8 @@ export interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
|
|
|
2407
2412
|
* `paymentGatewayOrderId` will be returned if money needs to be charged.
|
|
2408
2413
|
*
|
|
2409
2414
|
* In some cases, money cannot be charged:
|
|
2410
|
-
* + When the total price (the `priceSummary.total.amount` field in the checkout/order objects) is 0
|
|
2411
|
-
* + If the total price is not 0
|
|
2415
|
+
* + When the total price (the `priceSummary.total.amount` field in the checkout/order objects) is `0`. For example, in the case of a free item or an item with a 100% discount.
|
|
2416
|
+
* + If the total price is not `0`, but the payment is covered by alternative payment methods, such as a gift card.
|
|
2412
2417
|
*/
|
|
2413
2418
|
paymentGatewayOrderId?: string | null;
|
|
2414
2419
|
}
|
|
@@ -2458,9 +2463,9 @@ export interface CreateOrderAndChargeRequest {
|
|
|
2458
2463
|
id: string;
|
|
2459
2464
|
/** Payment token. */
|
|
2460
2465
|
paymentToken?: string | null;
|
|
2461
|
-
/**
|
|
2466
|
+
/** Whether the payment method should be saved on the order. */
|
|
2462
2467
|
savePaymentMethod?: boolean;
|
|
2463
|
-
/**
|
|
2468
|
+
/** Whether to authorize the payment and delay the capture. */
|
|
2464
2469
|
delayCapture?: boolean;
|
|
2465
2470
|
}
|
|
2466
2471
|
export interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
|
|
@@ -2523,7 +2528,7 @@ export interface MarkCheckoutAsCompletedRequest {
|
|
|
2523
2528
|
}
|
|
2524
2529
|
export interface MarkCheckoutAsCompletedResponse {
|
|
2525
2530
|
}
|
|
2526
|
-
/** Triggered when
|
|
2531
|
+
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2527
2532
|
export interface CheckoutMarkedAsCompleted {
|
|
2528
2533
|
checkout?: Checkout;
|
|
2529
2534
|
}
|
|
@@ -23,11 +23,11 @@ var DescriptionLineType;
|
|
|
23
23
|
var ItemAvailabilityStatus;
|
|
24
24
|
(function (ItemAvailabilityStatus) {
|
|
25
25
|
ItemAvailabilityStatus["AVAILABLE"] = "AVAILABLE";
|
|
26
|
-
/** Item does not exist */
|
|
26
|
+
/** Item does not exist. */
|
|
27
27
|
ItemAvailabilityStatus["NOT_FOUND"] = "NOT_FOUND";
|
|
28
|
-
/** Item not in stock */
|
|
28
|
+
/** Item is not in stock. */
|
|
29
29
|
ItemAvailabilityStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
30
|
-
/** Available quantity is less than requested */
|
|
30
|
+
/** Available quantity is less than requested. */
|
|
31
31
|
ItemAvailabilityStatus["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
|
|
32
32
|
})(ItemAvailabilityStatus || (exports.ItemAvailabilityStatus = ItemAvailabilityStatus = {}));
|
|
33
33
|
var ItemTypeItemType;
|
|
@@ -129,11 +129,11 @@ var DiscountType;
|
|
|
129
129
|
})(DiscountType || (exports.DiscountType = DiscountType = {}));
|
|
130
130
|
var WeightUnit;
|
|
131
131
|
(function (WeightUnit) {
|
|
132
|
-
/** Weight unit can't be classified
|
|
132
|
+
/** Weight unit can't be classified due to an error. */
|
|
133
133
|
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
134
|
-
/** Kilograms */
|
|
134
|
+
/** Kilograms. */
|
|
135
135
|
WeightUnit["KG"] = "KG";
|
|
136
|
-
/** Pounds */
|
|
136
|
+
/** Pounds. */
|
|
137
137
|
WeightUnit["LB"] = "LB";
|
|
138
138
|
})(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
|
|
139
139
|
var RateType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-checkout-checkout.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-checkout.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-v1-checkout-checkout.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-checkout-checkout.types.ts"],"names":[],"mappings":";;;AAgfA,0IAA0I;AAC1I,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;AACrB,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAuED,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,yBAAyB;IACzB,oDAA6B,CAAA;IAC7B,uBAAuB;IACvB,gDAAyB,CAAA;IACzB,kBAAkB;IAClB,sCAAe,CAAA;AACjB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AA4CD,IAAY,sBAQX;AARD,WAAY,sBAAsB;IAChC,iDAAuB,CAAA;IACvB,2BAA2B;IAC3B,iDAAuB,CAAA;IACvB,4BAA4B;IAC5B,yDAA+B,CAAA;IAC/B,iDAAiD;IACjD,qEAA2C,CAAA;AAC7C,CAAC,EARW,sBAAsB,sCAAtB,sBAAsB,QAQjC;AA2CD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAgCD,0CAA0C;AAC1C,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AA4DD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,6CAAiC,CAAA;IACjC,yCAA6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AW,CAAA;IACX,2DAAiC,CAAA;IACjC,yDAA+B,CAAA;AACjC,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC;AAoLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -44,7 +44,7 @@ export interface Checkout {
|
|
|
44
44
|
/**
|
|
45
45
|
* Applied gift card details.
|
|
46
46
|
*
|
|
47
|
-
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/
|
|
47
|
+
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
48
48
|
* @readonly
|
|
49
49
|
*/
|
|
50
50
|
giftCard?: GiftCard;
|
|
@@ -56,7 +56,7 @@ export interface Checkout {
|
|
|
56
56
|
/** Custom fields. */
|
|
57
57
|
customFields?: CustomField[];
|
|
58
58
|
/**
|
|
59
|
-
* Weight measurement unit
|
|
59
|
+
* Weight measurement unit. Defaults to a site's weight unit.
|
|
60
60
|
* @readonly
|
|
61
61
|
*/
|
|
62
62
|
weightUnit?: WeightUnit;
|
|
@@ -168,7 +168,8 @@ export interface Checkout {
|
|
|
168
168
|
customContentReference?: CustomContentReference;
|
|
169
169
|
/**
|
|
170
170
|
* The business location ID associated with the checkout.
|
|
171
|
-
*
|
|
171
|
+
*
|
|
172
|
+
* To learn more, see the Locations API.
|
|
172
173
|
* @format GUID
|
|
173
174
|
*/
|
|
174
175
|
businessLocationId?: string | null;
|
|
@@ -577,11 +578,11 @@ export interface ItemAvailabilityInfo {
|
|
|
577
578
|
}
|
|
578
579
|
export declare enum ItemAvailabilityStatus {
|
|
579
580
|
AVAILABLE = "AVAILABLE",
|
|
580
|
-
/** Item does not exist */
|
|
581
|
+
/** Item does not exist. */
|
|
581
582
|
NOT_FOUND = "NOT_FOUND",
|
|
582
|
-
/** Item not in stock */
|
|
583
|
+
/** Item is not in stock. */
|
|
583
584
|
NOT_AVAILABLE = "NOT_AVAILABLE",
|
|
584
|
-
/** Available quantity is less than requested */
|
|
585
|
+
/** Available quantity is less than requested. */
|
|
585
586
|
PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE"
|
|
586
587
|
}
|
|
587
588
|
export interface PhysicalProperties {
|
|
@@ -1496,11 +1497,11 @@ export interface CustomField {
|
|
|
1496
1497
|
translatedTitle?: string | null;
|
|
1497
1498
|
}
|
|
1498
1499
|
export declare enum WeightUnit {
|
|
1499
|
-
/** Weight unit can't be classified
|
|
1500
|
+
/** Weight unit can't be classified due to an error. */
|
|
1500
1501
|
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
1501
|
-
/** Kilograms */
|
|
1502
|
+
/** Kilograms. */
|
|
1502
1503
|
KG = "KG",
|
|
1503
|
-
/** Pounds */
|
|
1504
|
+
/** Pounds. */
|
|
1504
1505
|
LB = "LB"
|
|
1505
1506
|
}
|
|
1506
1507
|
export interface TaxSummary {
|
|
@@ -1629,23 +1630,23 @@ export declare enum ChannelType {
|
|
|
1629
1630
|
}
|
|
1630
1631
|
export interface CreatedBy extends CreatedByIdOneOf {
|
|
1631
1632
|
/**
|
|
1632
|
-
* User ID
|
|
1633
|
+
* User ID. When the order was created by a Wix user on behalf of a buyer.
|
|
1633
1634
|
* For example, via POS (point of service).
|
|
1634
1635
|
* @format GUID
|
|
1635
1636
|
*/
|
|
1636
1637
|
userId?: string;
|
|
1637
1638
|
/**
|
|
1638
|
-
* Member ID
|
|
1639
|
+
* Member ID. When the order was created by a **logged in** site visitor.
|
|
1639
1640
|
* @format GUID
|
|
1640
1641
|
*/
|
|
1641
1642
|
memberId?: string;
|
|
1642
1643
|
/**
|
|
1643
|
-
* Visitor ID
|
|
1644
|
+
* Visitor ID. When the order was created by a site visitor that was **not** logged in.
|
|
1644
1645
|
* @format GUID
|
|
1645
1646
|
*/
|
|
1646
1647
|
visitorId?: string;
|
|
1647
1648
|
/**
|
|
1648
|
-
* App ID
|
|
1649
|
+
* App ID. When the order was created by an external application or Wix service.
|
|
1649
1650
|
* @format GUID
|
|
1650
1651
|
*/
|
|
1651
1652
|
appId?: string;
|
|
@@ -1653,23 +1654,23 @@ export interface CreatedBy extends CreatedByIdOneOf {
|
|
|
1653
1654
|
/** @oneof */
|
|
1654
1655
|
export interface CreatedByIdOneOf {
|
|
1655
1656
|
/**
|
|
1656
|
-
* User ID
|
|
1657
|
+
* User ID. When the order was created by a Wix user on behalf of a buyer.
|
|
1657
1658
|
* For example, via POS (point of service).
|
|
1658
1659
|
* @format GUID
|
|
1659
1660
|
*/
|
|
1660
1661
|
userId?: string;
|
|
1661
1662
|
/**
|
|
1662
|
-
* Member ID
|
|
1663
|
+
* Member ID. When the order was created by a **logged in** site visitor.
|
|
1663
1664
|
* @format GUID
|
|
1664
1665
|
*/
|
|
1665
1666
|
memberId?: string;
|
|
1666
1667
|
/**
|
|
1667
|
-
* Visitor ID
|
|
1668
|
+
* Visitor ID. When the order was created by a site visitor that was **not** logged in.
|
|
1668
1669
|
* @format GUID
|
|
1669
1670
|
*/
|
|
1670
1671
|
visitorId?: string;
|
|
1671
1672
|
/**
|
|
1672
|
-
* App ID
|
|
1673
|
+
* App ID. When the order was created by an external application or Wix service.
|
|
1673
1674
|
* @format GUID
|
|
1674
1675
|
*/
|
|
1675
1676
|
appId?: string;
|
|
@@ -2020,7 +2021,7 @@ export interface CreateCheckoutRequest {
|
|
|
2020
2021
|
*
|
|
2021
2022
|
* The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.
|
|
2022
2023
|
*
|
|
2023
|
-
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/
|
|
2024
|
+
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
2024
2025
|
*/
|
|
2025
2026
|
giftCardCode?: string | null;
|
|
2026
2027
|
/**
|
|
@@ -2179,7 +2180,7 @@ export interface GetCheckoutRequest {
|
|
|
2179
2180
|
_id: string;
|
|
2180
2181
|
}
|
|
2181
2182
|
export interface GetCheckoutResponse {
|
|
2182
|
-
/**
|
|
2183
|
+
/** Retrieved checkout. */
|
|
2183
2184
|
checkout?: Checkout;
|
|
2184
2185
|
}
|
|
2185
2186
|
export interface GetCheckoutWithAllExtendedFieldsRequest {
|
|
@@ -2190,7 +2191,7 @@ export interface GetCheckoutWithAllExtendedFieldsRequest {
|
|
|
2190
2191
|
_id?: string;
|
|
2191
2192
|
}
|
|
2192
2193
|
export interface GetCheckoutWithAllExtendedFieldsResponse {
|
|
2193
|
-
/**
|
|
2194
|
+
/** Retrieved checkout. */
|
|
2194
2195
|
checkout?: Checkout;
|
|
2195
2196
|
}
|
|
2196
2197
|
export interface GetCheckoutByCartIdRequest {
|
|
@@ -2201,7 +2202,7 @@ export interface GetCheckoutByCartIdRequest {
|
|
|
2201
2202
|
_id: string;
|
|
2202
2203
|
}
|
|
2203
2204
|
export interface GetCheckoutByCartIdResponse {
|
|
2204
|
-
/**
|
|
2205
|
+
/** Retrieved checkout. */
|
|
2205
2206
|
checkout?: Checkout;
|
|
2206
2207
|
}
|
|
2207
2208
|
export interface GetWixCheckoutURLRequest {
|
|
@@ -2339,9 +2340,9 @@ export interface CreateOrderRequest {
|
|
|
2339
2340
|
* @format GUID
|
|
2340
2341
|
*/
|
|
2341
2342
|
_id: string;
|
|
2342
|
-
/**
|
|
2343
|
+
/** Whether the payment method should be saved on the order. */
|
|
2343
2344
|
savePaymentMethod?: boolean;
|
|
2344
|
-
/**
|
|
2345
|
+
/** Whether to authorize the payment and delay the capture. */
|
|
2345
2346
|
delayCapture?: boolean;
|
|
2346
2347
|
}
|
|
2347
2348
|
export interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
|
|
@@ -2412,9 +2413,9 @@ export interface CreateOrderAndChargeRequest {
|
|
|
2412
2413
|
_id: string;
|
|
2413
2414
|
/** Payment token. */
|
|
2414
2415
|
paymentToken?: string | null;
|
|
2415
|
-
/**
|
|
2416
|
+
/** Whether the payment method should be saved on the order. */
|
|
2416
2417
|
savePaymentMethod?: boolean;
|
|
2417
|
-
/**
|
|
2418
|
+
/** Whether to authorize the payment and delay the capture. */
|
|
2418
2419
|
delayCapture?: boolean;
|
|
2419
2420
|
}
|
|
2420
2421
|
export interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
|
|
@@ -2478,7 +2479,7 @@ export interface MarkCheckoutAsCompletedRequest {
|
|
|
2478
2479
|
}
|
|
2479
2480
|
export interface MarkCheckoutAsCompletedResponse {
|
|
2480
2481
|
}
|
|
2481
|
-
/** Triggered when
|
|
2482
|
+
/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
|
|
2482
2483
|
export interface CheckoutMarkedAsCompleted {
|
|
2483
2484
|
checkout?: Checkout;
|
|
2484
2485
|
}
|
|
@@ -3983,7 +3984,7 @@ export interface CreateCheckoutOptions {
|
|
|
3983
3984
|
*
|
|
3984
3985
|
* The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.
|
|
3985
3986
|
*
|
|
3986
|
-
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/
|
|
3987
|
+
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
3987
3988
|
*/
|
|
3988
3989
|
giftCardCode?: string | null;
|
|
3989
3990
|
/**
|
|
@@ -4173,7 +4174,7 @@ export interface UpdateCheckout {
|
|
|
4173
4174
|
/**
|
|
4174
4175
|
* Applied gift card details.
|
|
4175
4176
|
*
|
|
4176
|
-
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/
|
|
4177
|
+
* >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).
|
|
4177
4178
|
* @readonly
|
|
4178
4179
|
*/
|
|
4179
4180
|
giftCard?: GiftCard;
|
|
@@ -4185,7 +4186,7 @@ export interface UpdateCheckout {
|
|
|
4185
4186
|
/** Custom fields. */
|
|
4186
4187
|
customFields?: CustomField[];
|
|
4187
4188
|
/**
|
|
4188
|
-
* Weight measurement unit
|
|
4189
|
+
* Weight measurement unit. Defaults to a site's weight unit.
|
|
4189
4190
|
* @readonly
|
|
4190
4191
|
*/
|
|
4191
4192
|
weightUnit?: WeightUnit;
|
|
@@ -4297,7 +4298,8 @@ export interface UpdateCheckout {
|
|
|
4297
4298
|
customContentReference?: CustomContentReference;
|
|
4298
4299
|
/**
|
|
4299
4300
|
* The business location ID associated with the checkout.
|
|
4300
|
-
*
|
|
4301
|
+
*
|
|
4302
|
+
* To learn more, see the Locations API.
|
|
4301
4303
|
* @format GUID
|
|
4302
4304
|
*/
|
|
4303
4305
|
businessLocationId?: string | null;
|
|
@@ -4512,17 +4514,17 @@ export declare function removeLineItems(_id: string, lineItemIds: string[]): Pro
|
|
|
4512
4514
|
*/
|
|
4513
4515
|
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<CreateOrderResponse & CreateOrderResponseNonNullableFields>;
|
|
4514
4516
|
export interface CreateOrderOptions {
|
|
4515
|
-
/**
|
|
4517
|
+
/** Whether the payment method should be saved on the order. */
|
|
4516
4518
|
savePaymentMethod?: boolean;
|
|
4517
|
-
/**
|
|
4519
|
+
/** Whether to authorize the payment and delay the capture. */
|
|
4518
4520
|
delayCapture?: boolean;
|
|
4519
4521
|
}
|
|
4520
4522
|
export interface CreateOrderAndChargeOptions {
|
|
4521
4523
|
/** Payment token. */
|
|
4522
4524
|
paymentToken?: string | null;
|
|
4523
|
-
/**
|
|
4525
|
+
/** Whether the payment method should be saved on the order. */
|
|
4524
4526
|
savePaymentMethod?: boolean;
|
|
4525
|
-
/**
|
|
4527
|
+
/** Whether to authorize the payment and delay the capture. */
|
|
4526
4528
|
delayCapture?: boolean;
|
|
4527
4529
|
}
|
|
4528
4530
|
/**
|
|
@@ -56,11 +56,11 @@ var DescriptionLineType;
|
|
|
56
56
|
var ItemAvailabilityStatus;
|
|
57
57
|
(function (ItemAvailabilityStatus) {
|
|
58
58
|
ItemAvailabilityStatus["AVAILABLE"] = "AVAILABLE";
|
|
59
|
-
/** Item does not exist */
|
|
59
|
+
/** Item does not exist. */
|
|
60
60
|
ItemAvailabilityStatus["NOT_FOUND"] = "NOT_FOUND";
|
|
61
|
-
/** Item not in stock */
|
|
61
|
+
/** Item is not in stock. */
|
|
62
62
|
ItemAvailabilityStatus["NOT_AVAILABLE"] = "NOT_AVAILABLE";
|
|
63
|
-
/** Available quantity is less than requested */
|
|
63
|
+
/** Available quantity is less than requested. */
|
|
64
64
|
ItemAvailabilityStatus["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
|
|
65
65
|
})(ItemAvailabilityStatus || (exports.ItemAvailabilityStatus = ItemAvailabilityStatus = {}));
|
|
66
66
|
var ItemTypeItemType;
|
|
@@ -162,11 +162,11 @@ var DiscountType;
|
|
|
162
162
|
})(DiscountType || (exports.DiscountType = DiscountType = {}));
|
|
163
163
|
var WeightUnit;
|
|
164
164
|
(function (WeightUnit) {
|
|
165
|
-
/** Weight unit can't be classified
|
|
165
|
+
/** Weight unit can't be classified due to an error. */
|
|
166
166
|
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
167
|
-
/** Kilograms */
|
|
167
|
+
/** Kilograms. */
|
|
168
168
|
WeightUnit["KG"] = "KG";
|
|
169
|
-
/** Pounds */
|
|
169
|
+
/** Pounds. */
|
|
170
170
|
WeightUnit["LB"] = "LB";
|
|
171
171
|
})(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
|
|
172
172
|
var RateType;
|