@wix/auto_sdk_ecom_checkout 1.0.3 → 1.0.5
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.context.d.ts +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.context.js +4 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.context.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.http.d.ts +2 -0
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js +40 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +1 -0
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +20 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js +14 -2
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +1018 -228
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +1079 -248
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +51 -5
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.context.js +3 -1
- package/build/es/src/ecom-v1-checkout-checkout.context.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.http.d.ts +2 -0
- package/build/es/src/ecom-v1-checkout-checkout.http.js +38 -0
- package/build/es/src/ecom-v1-checkout-checkout.http.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +1 -0
- package/build/es/src/ecom-v1-checkout-checkout.meta.js +18 -0
- package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.public.js +12 -1
- package/build/es/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +1018 -228
- package/build/es/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +1079 -248
- package/build/es/src/ecom-v1-checkout-checkout.universal.js +49 -4
- package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.d.ts +4 -2
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js +4 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.d.ts +2 -0
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js +40 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +1 -0
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js +20 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.d.ts +11 -2
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js +14 -2
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.d.ts +1028 -228
- 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 +1133 -253
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +51 -5
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.d.ts +4 -2
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.js +3 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.d.ts +2 -0
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.js +38 -0
- package/build/internal/es/src/ecom-v1-checkout-checkout.http.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.d.ts +1 -0
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js +18 -0
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.d.ts +11 -2
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.js +12 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.d.ts +1028 -228
- 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 +1133 -253
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +49 -4
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface Checkout {
|
|
2
2
|
/**
|
|
3
3
|
* Checkout ID.
|
|
4
|
+
* @format GUID
|
|
4
5
|
* @readonly
|
|
5
6
|
*/
|
|
6
7
|
_id?: string | null;
|
|
@@ -8,6 +9,8 @@ export interface Checkout {
|
|
|
8
9
|
* Line items.
|
|
9
10
|
*
|
|
10
11
|
* Max: 300 items
|
|
12
|
+
* @minSize 1
|
|
13
|
+
* @maxSize 300
|
|
11
14
|
* @readonly
|
|
12
15
|
*/
|
|
13
16
|
lineItems?: LineItem[];
|
|
@@ -15,13 +18,17 @@ export interface Checkout {
|
|
|
15
18
|
billingInfo?: AddressWithContact;
|
|
16
19
|
/** Shipping information. */
|
|
17
20
|
shippingInfo?: ShippingInfo;
|
|
18
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.
|
|
23
|
+
* @maxLength 1000
|
|
24
|
+
*/
|
|
19
25
|
buyerNote?: string | null;
|
|
20
26
|
/** Buyer information. */
|
|
21
27
|
buyerInfo?: BuyerInfo;
|
|
22
28
|
/**
|
|
23
29
|
* All converted prices are displayed in this currency in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
24
30
|
* @readonly
|
|
31
|
+
* @format CURRENCY
|
|
25
32
|
*/
|
|
26
33
|
conversionCurrency?: string;
|
|
27
34
|
/**
|
|
@@ -60,6 +67,7 @@ export interface Checkout {
|
|
|
60
67
|
taxSummary?: TaxSummary;
|
|
61
68
|
/**
|
|
62
69
|
* The currency used when submitting the order.
|
|
70
|
+
* @format CURRENCY
|
|
63
71
|
* @readonly
|
|
64
72
|
*/
|
|
65
73
|
currency?: string;
|
|
@@ -117,9 +125,15 @@ export interface Checkout {
|
|
|
117
125
|
payLater?: PriceSummary;
|
|
118
126
|
/** Memberships to apply when creating the order. */
|
|
119
127
|
membershipOptions?: MembershipOptions;
|
|
120
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Additional Fees.
|
|
130
|
+
* @maxSize 100
|
|
131
|
+
*/
|
|
121
132
|
additionalFees?: AdditionalFee[];
|
|
122
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart.
|
|
135
|
+
* @format GUID
|
|
136
|
+
*/
|
|
123
137
|
cartId?: string | null;
|
|
124
138
|
/**
|
|
125
139
|
* List of validation violations raised by the [Validations Custom Extension SPI](https://www.wix.com/velo/reference/spis/wix-ecom/ecom-validations/introduction).
|
|
@@ -134,6 +148,7 @@ export interface Checkout {
|
|
|
134
148
|
extendedFields?: ExtendedFields;
|
|
135
149
|
/**
|
|
136
150
|
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
151
|
+
* @format GUID
|
|
137
152
|
* @readonly
|
|
138
153
|
*/
|
|
139
154
|
purchaseFlowId?: string | null;
|
|
@@ -141,6 +156,7 @@ export interface Checkout {
|
|
|
141
156
|
* Additional settings for customization of the checkout process.
|
|
142
157
|
*
|
|
143
158
|
* Custom settings can only be defined when [creating a checkout](https://www.wix.com/velo/reference/wix-ecom-backend/checkout/createcheckout).
|
|
159
|
+
* @immutable
|
|
144
160
|
*/
|
|
145
161
|
customSettings?: CustomSettings;
|
|
146
162
|
/**
|
|
@@ -155,6 +171,7 @@ export interface Checkout {
|
|
|
155
171
|
*
|
|
156
172
|
* This field is empty until the checkout completes and becomes an order.
|
|
157
173
|
* @internal
|
|
174
|
+
* @format GUID
|
|
158
175
|
* @readonly
|
|
159
176
|
*/
|
|
160
177
|
orderId?: string | null;
|
|
@@ -167,6 +184,7 @@ export interface Checkout {
|
|
|
167
184
|
/**
|
|
168
185
|
* The business location ID associated with the checkout.
|
|
169
186
|
* Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
187
|
+
* @format GUID
|
|
170
188
|
*/
|
|
171
189
|
businessLocationId?: string | null;
|
|
172
190
|
/**
|
|
@@ -179,10 +197,18 @@ export interface Checkout {
|
|
|
179
197
|
* @readonly
|
|
180
198
|
*/
|
|
181
199
|
paymentRequired?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Charges information for each subscription in the Checkout.
|
|
202
|
+
* @internal
|
|
203
|
+
* @readonly
|
|
204
|
+
* @maxSize 100
|
|
205
|
+
*/
|
|
206
|
+
subscriptionCharges?: SubscriptionCharges[];
|
|
182
207
|
}
|
|
183
208
|
export interface LineItem {
|
|
184
209
|
/**
|
|
185
210
|
* Line item ID.
|
|
211
|
+
* @format GUID
|
|
186
212
|
* @readonly
|
|
187
213
|
*/
|
|
188
214
|
_id?: string | null;
|
|
@@ -191,6 +217,8 @@ export interface LineItem {
|
|
|
191
217
|
*
|
|
192
218
|
* Min: `"1"`
|
|
193
219
|
* Max: `"100000"`
|
|
220
|
+
* @min 1
|
|
221
|
+
* @max 100000
|
|
194
222
|
*/
|
|
195
223
|
quantity?: number;
|
|
196
224
|
/** Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
|
|
@@ -297,6 +325,8 @@ export interface LineItem {
|
|
|
297
325
|
* + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
|
|
298
326
|
* + In most cases, this field has the same value as `catalogReference.catalogItemId`.
|
|
299
327
|
* + Used in membership validation.
|
|
328
|
+
* @minLength 1
|
|
329
|
+
* @maxLength 36
|
|
300
330
|
* @readonly
|
|
301
331
|
*/
|
|
302
332
|
rootCatalogItemId?: string | null;
|
|
@@ -311,8 +341,8 @@ export interface LineItem {
|
|
|
311
341
|
*/
|
|
312
342
|
depositAmount?: MultiCurrencyPrice;
|
|
313
343
|
/**
|
|
314
|
-
* Delivery
|
|
315
|
-
* @
|
|
344
|
+
* Delivery profile ID.
|
|
345
|
+
* @format GUID
|
|
316
346
|
* @readonly
|
|
317
347
|
*/
|
|
318
348
|
deliveryProfileId?: string | null;
|
|
@@ -323,6 +353,8 @@ export interface LineItem {
|
|
|
323
353
|
customLineItem?: boolean;
|
|
324
354
|
/**
|
|
325
355
|
* Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
|
|
356
|
+
* @minLength 1
|
|
357
|
+
* @maxLength 2500
|
|
326
358
|
* @readonly
|
|
327
359
|
*/
|
|
328
360
|
consentRequiredPaymentPolicy?: string | null;
|
|
@@ -353,7 +385,7 @@ export interface LineItem {
|
|
|
353
385
|
*/
|
|
354
386
|
savePaymentMethod?: boolean;
|
|
355
387
|
/**
|
|
356
|
-
* Address to
|
|
388
|
+
* Address to use for tax calculation purposes.
|
|
357
389
|
* @internal
|
|
358
390
|
*/
|
|
359
391
|
taxableAddress?: TaxableAddress;
|
|
@@ -368,11 +400,13 @@ export interface LineItem {
|
|
|
368
400
|
* Policies to be displayed to the customer on the checkout page.
|
|
369
401
|
* @internal
|
|
370
402
|
* @readonly
|
|
403
|
+
* @maxSize 5
|
|
371
404
|
*/
|
|
372
405
|
policies?: Policy[];
|
|
373
406
|
/**
|
|
374
407
|
* ID of the app managing the inventory.
|
|
375
408
|
* @internal
|
|
409
|
+
* @format GUID
|
|
376
410
|
*/
|
|
377
411
|
inventoryAppId?: string | null;
|
|
378
412
|
/**
|
|
@@ -386,7 +420,11 @@ export interface LineItem {
|
|
|
386
420
|
}
|
|
387
421
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
388
422
|
export interface CatalogReference {
|
|
389
|
-
/**
|
|
423
|
+
/**
|
|
424
|
+
* ID of the item within the catalog it belongs to.
|
|
425
|
+
* @minLength 1
|
|
426
|
+
* @maxLength 36
|
|
427
|
+
*/
|
|
390
428
|
catalogItemId?: string;
|
|
391
429
|
/**
|
|
392
430
|
* ID of the app providing the catalog.
|
|
@@ -397,6 +435,7 @@ export interface CatalogReference {
|
|
|
397
435
|
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
398
436
|
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
399
437
|
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
438
|
+
* @minLength 1
|
|
400
439
|
*/
|
|
401
440
|
appId?: string;
|
|
402
441
|
/**
|
|
@@ -414,6 +453,8 @@ export interface ProductName {
|
|
|
414
453
|
*
|
|
415
454
|
* Min: 1 character.
|
|
416
455
|
* Max: 200 characters.
|
|
456
|
+
* @minLength 1
|
|
457
|
+
* @maxLength 200
|
|
417
458
|
*/
|
|
418
459
|
original?: string;
|
|
419
460
|
/**
|
|
@@ -422,15 +463,21 @@ export interface ProductName {
|
|
|
422
463
|
* Min: 1 character.
|
|
423
464
|
* Max: 400 characters.
|
|
424
465
|
* Default: Same as `original`.
|
|
466
|
+
* @minLength 1
|
|
467
|
+
* @maxLength 400
|
|
425
468
|
*/
|
|
426
469
|
translated?: string | null;
|
|
427
470
|
}
|
|
428
471
|
export interface MultiCurrencyPrice {
|
|
429
|
-
/**
|
|
472
|
+
/**
|
|
473
|
+
* Amount.
|
|
474
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
475
|
+
*/
|
|
430
476
|
amount?: string;
|
|
431
477
|
/**
|
|
432
478
|
* Converted amount.
|
|
433
479
|
* @readonly
|
|
480
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
434
481
|
*/
|
|
435
482
|
convertedAmount?: string;
|
|
436
483
|
/**
|
|
@@ -447,7 +494,10 @@ export interface MultiCurrencyPrice {
|
|
|
447
494
|
export interface ItemTaxFullDetails {
|
|
448
495
|
/** Amount for which tax is calculated. */
|
|
449
496
|
taxableAmount?: MultiCurrencyPrice;
|
|
450
|
-
/**
|
|
497
|
+
/**
|
|
498
|
+
* Tax rate %, as a decimal point between 0 and 1.
|
|
499
|
+
* @decimalValue options { gte:0, lte:1, maxScale:6 }
|
|
500
|
+
*/
|
|
451
501
|
taxRate?: string;
|
|
452
502
|
/** Calculated tax, based on `taxable_amount` and `tax_rate`. */
|
|
453
503
|
totalTax?: MultiCurrencyPrice;
|
|
@@ -459,9 +509,15 @@ export interface ItemTaxFullDetails {
|
|
|
459
509
|
rateBreakdown?: TaxRateBreakdown[];
|
|
460
510
|
}
|
|
461
511
|
export interface TaxRateBreakdown {
|
|
462
|
-
/**
|
|
512
|
+
/**
|
|
513
|
+
* Name of tax against which the calculation was performed.
|
|
514
|
+
* @maxLength 100
|
|
515
|
+
*/
|
|
463
516
|
name?: string;
|
|
464
|
-
/**
|
|
517
|
+
/**
|
|
518
|
+
* Rate at which this tax detail was calculated.
|
|
519
|
+
* @decimalValue options { gte:0, lte:1, maxScale:6 }
|
|
520
|
+
*/
|
|
465
521
|
rate?: string;
|
|
466
522
|
/** Amount of tax for this tax detail. */
|
|
467
523
|
tax?: MultiCurrencyPrice;
|
|
@@ -471,21 +527,31 @@ export interface TaxRateBreakdown {
|
|
|
471
527
|
* It holds the tax amount and the tax rate for each tax authority that apply on the line item.
|
|
472
528
|
*/
|
|
473
529
|
export interface TaxBreakdown {
|
|
474
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec".
|
|
532
|
+
* @maxLength 200
|
|
533
|
+
*/
|
|
475
534
|
jurisdiction?: string | null;
|
|
476
535
|
/** The amount of this line item price that was considered nontaxable. (Decimal value) */
|
|
477
536
|
nonTaxableAmount?: MultiCurrencyPrice;
|
|
478
|
-
/**
|
|
537
|
+
/**
|
|
538
|
+
* The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)
|
|
539
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
540
|
+
*/
|
|
479
541
|
rate?: string | null;
|
|
480
542
|
/** The amount of tax estimated for this line item. (Decimal value) */
|
|
481
543
|
taxAmount?: MultiCurrencyPrice;
|
|
482
544
|
/** The taxable amount of this line item. */
|
|
483
545
|
taxableAmount?: MultiCurrencyPrice;
|
|
484
|
-
/**
|
|
546
|
+
/**
|
|
547
|
+
* The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
|
|
548
|
+
* @maxLength 200
|
|
549
|
+
*/
|
|
485
550
|
taxType?: string | null;
|
|
486
551
|
/**
|
|
487
552
|
* The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
488
553
|
* This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
554
|
+
* @maxLength 200
|
|
489
555
|
*/
|
|
490
556
|
taxName?: string | null;
|
|
491
557
|
/** The type of the jurisdiction in which this tax detail applies. */
|
|
@@ -519,32 +585,44 @@ export interface DescriptionLineValueOneOf {
|
|
|
519
585
|
export interface DescriptionLineDescriptionLineValueOneOf {
|
|
520
586
|
}
|
|
521
587
|
export interface DescriptionLineName {
|
|
522
|
-
/**
|
|
588
|
+
/**
|
|
589
|
+
* Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
590
|
+
* @maxLength 100
|
|
591
|
+
*/
|
|
523
592
|
original?: string;
|
|
524
593
|
/**
|
|
525
594
|
* Description line name translated into the buyer's language.
|
|
526
595
|
*
|
|
527
596
|
* Default: Same as `original`.
|
|
597
|
+
* @maxLength 200
|
|
528
598
|
*/
|
|
529
599
|
translated?: string | null;
|
|
530
600
|
}
|
|
531
601
|
export interface PlainTextValue {
|
|
532
|
-
/**
|
|
602
|
+
/**
|
|
603
|
+
* Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
604
|
+
* @maxLength 600
|
|
605
|
+
*/
|
|
533
606
|
original?: string;
|
|
534
607
|
/**
|
|
535
608
|
* Description line plain text value translated into the buyer's language.
|
|
536
609
|
*
|
|
537
610
|
* Default: Same as `original`.
|
|
611
|
+
* @maxLength 600
|
|
538
612
|
*/
|
|
539
613
|
translated?: string | null;
|
|
540
614
|
}
|
|
541
615
|
export interface Color {
|
|
542
|
-
/**
|
|
616
|
+
/**
|
|
617
|
+
* Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
618
|
+
* @maxLength 500
|
|
619
|
+
*/
|
|
543
620
|
original?: string;
|
|
544
621
|
/**
|
|
545
622
|
* Description line color name translated into the buyer's language.
|
|
546
623
|
*
|
|
547
624
|
* Default: Same as `original`.
|
|
625
|
+
* @maxLength 500
|
|
548
626
|
*/
|
|
549
627
|
translated?: string | null;
|
|
550
628
|
/** HEX or RGB color code for display. */
|
|
@@ -586,7 +664,10 @@ export declare enum ItemAvailabilityStatus {
|
|
|
586
664
|
export interface PhysicalProperties {
|
|
587
665
|
/** Line item weight. Measurement unit (`"KG"` or `"LB"`) is taken from `order.weightUnit`. */
|
|
588
666
|
weight?: number | null;
|
|
589
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
669
|
+
* @maxLength 40
|
|
670
|
+
*/
|
|
590
671
|
sku?: string | null;
|
|
591
672
|
/** Whether this line item is shippable. */
|
|
592
673
|
shippable?: boolean;
|
|
@@ -639,11 +720,16 @@ export interface SubscriptionSettings {
|
|
|
639
720
|
*
|
|
640
721
|
* Default: `1`.
|
|
641
722
|
* If SubscriptionFrequency is Day the minimum interval is 7
|
|
723
|
+
* @min 1
|
|
724
|
+
* @max 50
|
|
642
725
|
*/
|
|
643
726
|
interval?: number | null;
|
|
644
727
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
645
728
|
autoRenewal?: boolean;
|
|
646
|
-
/**
|
|
729
|
+
/**
|
|
730
|
+
* Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.
|
|
731
|
+
* @min 1
|
|
732
|
+
*/
|
|
647
733
|
billingCycles?: number | null;
|
|
648
734
|
/**
|
|
649
735
|
* Whether to allow the customer to cancel the subscription..
|
|
@@ -673,29 +759,53 @@ export declare enum SubscriptionFrequency {
|
|
|
673
759
|
export interface FreeTrialPeriod {
|
|
674
760
|
/** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
|
|
675
761
|
frequency?: SubscriptionFrequency;
|
|
676
|
-
/**
|
|
762
|
+
/**
|
|
763
|
+
* interval of period
|
|
764
|
+
* @min 1
|
|
765
|
+
* @max 50
|
|
766
|
+
*/
|
|
677
767
|
interval?: number;
|
|
678
768
|
}
|
|
679
769
|
export interface Title {
|
|
680
|
-
/**
|
|
770
|
+
/**
|
|
771
|
+
* Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
772
|
+
* @minLength 1
|
|
773
|
+
* @maxLength 150
|
|
774
|
+
*/
|
|
681
775
|
original?: string;
|
|
682
776
|
/**
|
|
683
777
|
* Subscription option name translated into the buyer's language.
|
|
684
778
|
*
|
|
685
779
|
* Default: Same as `original`.
|
|
780
|
+
* @minLength 1
|
|
781
|
+
* @maxLength 150
|
|
686
782
|
*/
|
|
687
783
|
translated?: string | null;
|
|
688
784
|
}
|
|
689
785
|
export interface Description {
|
|
690
|
-
/**
|
|
786
|
+
/**
|
|
787
|
+
* Subscription option description.
|
|
788
|
+
* @maxLength 500
|
|
789
|
+
*/
|
|
691
790
|
original?: string;
|
|
692
|
-
/**
|
|
791
|
+
/**
|
|
792
|
+
* Translated subscription option description.
|
|
793
|
+
* @maxLength 500
|
|
794
|
+
*/
|
|
693
795
|
translated?: string | null;
|
|
694
796
|
}
|
|
695
797
|
export interface SecuredMedia {
|
|
696
|
-
/**
|
|
798
|
+
/**
|
|
799
|
+
* Media ID in Wix Media Manager.
|
|
800
|
+
* @minLength 1
|
|
801
|
+
* @maxLength 100
|
|
802
|
+
*/
|
|
697
803
|
_id?: string;
|
|
698
|
-
/**
|
|
804
|
+
/**
|
|
805
|
+
* Original filename.
|
|
806
|
+
* @minLength 1
|
|
807
|
+
* @maxLength 1000
|
|
808
|
+
*/
|
|
699
809
|
fileName?: string;
|
|
700
810
|
/** File type. */
|
|
701
811
|
fileType?: FileType;
|
|
@@ -727,27 +837,46 @@ export interface ServiceProperties {
|
|
|
727
837
|
* For example, the start time of a class.
|
|
728
838
|
*/
|
|
729
839
|
scheduledDate?: Date | null;
|
|
730
|
-
/**
|
|
840
|
+
/**
|
|
841
|
+
* The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.
|
|
842
|
+
* @min 1
|
|
843
|
+
* @max 10000
|
|
844
|
+
*/
|
|
731
845
|
numberOfParticipants?: number | null;
|
|
732
846
|
}
|
|
733
847
|
export interface PriceDescription {
|
|
734
|
-
/**
|
|
848
|
+
/**
|
|
849
|
+
* __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
850
|
+
* @minLength 1
|
|
851
|
+
* @maxLength 100
|
|
852
|
+
*/
|
|
735
853
|
original?: string;
|
|
736
854
|
/**
|
|
737
855
|
* Price description translated into the buyer's language.
|
|
738
856
|
*
|
|
739
857
|
* Default: Same as `original`.
|
|
858
|
+
* @minLength 1
|
|
859
|
+
* @maxLength 100
|
|
740
860
|
*/
|
|
741
861
|
translated?: string | null;
|
|
742
862
|
}
|
|
743
863
|
export interface CatalogOverrideFields {
|
|
744
864
|
/** Item name. */
|
|
745
865
|
productName?: ProductName;
|
|
746
|
-
/**
|
|
866
|
+
/**
|
|
867
|
+
* Item price **after** discounts.
|
|
868
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
869
|
+
*/
|
|
747
870
|
price?: string | null;
|
|
748
|
-
/**
|
|
871
|
+
/**
|
|
872
|
+
* Item price **before** discounts.
|
|
873
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
874
|
+
*/
|
|
749
875
|
fullPrice?: string | null;
|
|
750
|
-
/**
|
|
876
|
+
/**
|
|
877
|
+
* Item description lines. Used when displaying the line item to customers.
|
|
878
|
+
* @maxSize 20
|
|
879
|
+
*/
|
|
751
880
|
descriptionLines?: DescriptionLine[];
|
|
752
881
|
/** Physical properties of the item. */
|
|
753
882
|
physicalProperties?: PhysicalProperties;
|
|
@@ -755,7 +884,11 @@ export interface CatalogOverrideFields {
|
|
|
755
884
|
image?: string;
|
|
756
885
|
/** Payment method selected for the item. */
|
|
757
886
|
paymentOption?: PaymentOption;
|
|
758
|
-
/**
|
|
887
|
+
/**
|
|
888
|
+
* Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.
|
|
889
|
+
* @format DECIMAL_VALUE
|
|
890
|
+
* @decimalValue options { gt:0, lte:999999999, maxScale:3 }
|
|
891
|
+
*/
|
|
759
892
|
depositAmount?: string | null;
|
|
760
893
|
/**
|
|
761
894
|
* Whether to save the payment method on the order.
|
|
@@ -766,11 +899,9 @@ export interface CatalogOverrideFields {
|
|
|
766
899
|
}
|
|
767
900
|
export interface PaymentOption {
|
|
768
901
|
/**
|
|
769
|
-
*
|
|
770
|
-
*
|
|
771
|
-
*
|
|
772
|
-
* + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`.
|
|
773
|
-
* + `MEMBERSHIP_OFFLINE`: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
|
|
902
|
+
* Type of selected payment option for current item.
|
|
903
|
+
*
|
|
904
|
+
* Default: `FULL_PAYMENT_ONLINE`
|
|
774
905
|
*/
|
|
775
906
|
value?: PaymentOptionType;
|
|
776
907
|
}
|
|
@@ -801,9 +932,17 @@ export interface ExtendedFields {
|
|
|
801
932
|
namespaces?: Record<string, Record<string, any>>;
|
|
802
933
|
}
|
|
803
934
|
export interface Policy {
|
|
804
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* Policy title - should be translated
|
|
937
|
+
* @minLength 1
|
|
938
|
+
* @maxLength 29
|
|
939
|
+
*/
|
|
805
940
|
title?: string | null;
|
|
806
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* Policy content - should be translated
|
|
943
|
+
* @minLength 1
|
|
944
|
+
* @maxLength 3000
|
|
945
|
+
*/
|
|
807
946
|
content?: string;
|
|
808
947
|
}
|
|
809
948
|
/** Billing Info and shipping details */
|
|
@@ -815,19 +954,37 @@ export interface AddressWithContact {
|
|
|
815
954
|
}
|
|
816
955
|
/** Physical address */
|
|
817
956
|
export interface ApiAddress {
|
|
818
|
-
/**
|
|
957
|
+
/**
|
|
958
|
+
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
959
|
+
* @format COUNTRY
|
|
960
|
+
*/
|
|
819
961
|
country?: string | null;
|
|
820
|
-
/**
|
|
962
|
+
/**
|
|
963
|
+
* Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
964
|
+
* @maxLength 50
|
|
965
|
+
*/
|
|
821
966
|
subdivision?: string | null;
|
|
822
|
-
/**
|
|
967
|
+
/**
|
|
968
|
+
* City name.
|
|
969
|
+
* @maxLength 50
|
|
970
|
+
*/
|
|
823
971
|
city?: string | null;
|
|
824
|
-
/**
|
|
972
|
+
/**
|
|
973
|
+
* Postal or zip code.
|
|
974
|
+
* @maxLength 50
|
|
975
|
+
*/
|
|
825
976
|
postalCode?: string | null;
|
|
826
977
|
/** Street address. */
|
|
827
978
|
streetAddress?: StreetAddress;
|
|
828
|
-
/**
|
|
979
|
+
/**
|
|
980
|
+
* Main address line (usually street name and number).
|
|
981
|
+
* @maxLength 150
|
|
982
|
+
*/
|
|
829
983
|
addressLine1?: string | null;
|
|
830
|
-
/**
|
|
984
|
+
/**
|
|
985
|
+
* Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
986
|
+
* @maxLength 100
|
|
987
|
+
*/
|
|
831
988
|
addressLine2?: string | null;
|
|
832
989
|
/**
|
|
833
990
|
* Country's full name.
|
|
@@ -854,13 +1011,25 @@ export interface AddressLocation {
|
|
|
854
1011
|
}
|
|
855
1012
|
/** Full contact details for an address */
|
|
856
1013
|
export interface FullAddressContactDetails {
|
|
857
|
-
/**
|
|
1014
|
+
/**
|
|
1015
|
+
* First name.
|
|
1016
|
+
* @maxLength 100
|
|
1017
|
+
*/
|
|
858
1018
|
firstName?: string | null;
|
|
859
|
-
/**
|
|
1019
|
+
/**
|
|
1020
|
+
* Last name.
|
|
1021
|
+
* @maxLength 100
|
|
1022
|
+
*/
|
|
860
1023
|
lastName?: string | null;
|
|
861
|
-
/**
|
|
1024
|
+
/**
|
|
1025
|
+
* Phone number.
|
|
1026
|
+
* @format PHONE
|
|
1027
|
+
*/
|
|
862
1028
|
phone?: string | null;
|
|
863
|
-
/**
|
|
1029
|
+
/**
|
|
1030
|
+
* Company name.
|
|
1031
|
+
* @maxLength 1000
|
|
1032
|
+
*/
|
|
864
1033
|
company?: string | null;
|
|
865
1034
|
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
866
1035
|
vatId?: CommonVatId;
|
|
@@ -902,11 +1071,15 @@ export interface ShippingInfo {
|
|
|
902
1071
|
carrierServiceOptions?: CarrierServiceOption[];
|
|
903
1072
|
}
|
|
904
1073
|
export interface SelectedCarrierServiceOption {
|
|
905
|
-
/**
|
|
1074
|
+
/**
|
|
1075
|
+
* Unique identifier of selected option. For example, "usps_std_overnight".
|
|
1076
|
+
* @maxLength 100
|
|
1077
|
+
*/
|
|
906
1078
|
code?: string;
|
|
907
1079
|
/**
|
|
908
1080
|
* Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
|
|
909
1081
|
* For example, "Standard" or "First-Class Package International".
|
|
1082
|
+
* @maxLength 250
|
|
910
1083
|
* @readonly
|
|
911
1084
|
*/
|
|
912
1085
|
title?: string;
|
|
@@ -927,17 +1100,29 @@ export interface SelectedCarrierServiceOption {
|
|
|
927
1100
|
requestedShippingOption?: boolean;
|
|
928
1101
|
/** Other charges */
|
|
929
1102
|
otherCharges?: SelectedCarrierServiceOptionOtherCharge[];
|
|
930
|
-
/**
|
|
1103
|
+
/**
|
|
1104
|
+
* This carrier's unique ID
|
|
1105
|
+
* @format GUID
|
|
1106
|
+
*/
|
|
931
1107
|
carrierId?: string | null;
|
|
932
|
-
/**
|
|
1108
|
+
/**
|
|
1109
|
+
* Delivery solution allocations to different delivery carriers and delivery regions
|
|
1110
|
+
* @maxSize 300
|
|
1111
|
+
*/
|
|
933
1112
|
deliveryAllocations?: DeliveryAllocation[];
|
|
934
1113
|
/** If the delivery solution is a partial and doesn't apply to all items. */
|
|
935
1114
|
partial?: boolean | null;
|
|
936
1115
|
}
|
|
937
1116
|
export interface DeliveryLogistics {
|
|
938
|
-
/**
|
|
1117
|
+
/**
|
|
1118
|
+
* Expected delivery time, in free text. For example, "3-5 business days".
|
|
1119
|
+
* @maxLength 500
|
|
1120
|
+
*/
|
|
939
1121
|
deliveryTime?: string | null;
|
|
940
|
-
/**
|
|
1122
|
+
/**
|
|
1123
|
+
* Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot".
|
|
1124
|
+
* @maxLength 1000
|
|
1125
|
+
*/
|
|
941
1126
|
instructions?: string | null;
|
|
942
1127
|
/** Pickup details. */
|
|
943
1128
|
pickupDetails?: PickupDetails;
|
|
@@ -979,7 +1164,10 @@ export interface SelectedCarrierServiceOptionPrices {
|
|
|
979
1164
|
export interface SelectedCarrierServiceOptionOtherCharge {
|
|
980
1165
|
/** Type of additional cost. */
|
|
981
1166
|
type?: ChargeType;
|
|
982
|
-
/**
|
|
1167
|
+
/**
|
|
1168
|
+
* Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'.
|
|
1169
|
+
* @maxLength 200
|
|
1170
|
+
*/
|
|
983
1171
|
details?: string | null;
|
|
984
1172
|
/** Price of added charge. */
|
|
985
1173
|
cost?: SelectedCarrierServiceOptionPrices;
|
|
@@ -997,32 +1185,56 @@ export interface DeliveryAllocation {
|
|
|
997
1185
|
applicableLineItems?: ApplicableLineItems;
|
|
998
1186
|
}
|
|
999
1187
|
export interface Carrier {
|
|
1000
|
-
/**
|
|
1188
|
+
/**
|
|
1189
|
+
* The carrier app id
|
|
1190
|
+
* @format GUID
|
|
1191
|
+
*/
|
|
1001
1192
|
appId?: string | null;
|
|
1002
|
-
/**
|
|
1193
|
+
/**
|
|
1194
|
+
* Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
|
|
1195
|
+
* @maxLength 250
|
|
1196
|
+
*/
|
|
1003
1197
|
code?: string;
|
|
1004
1198
|
}
|
|
1005
1199
|
export interface Region {
|
|
1006
|
-
/**
|
|
1200
|
+
/**
|
|
1201
|
+
* The delivery region id.
|
|
1202
|
+
* @format GUID
|
|
1203
|
+
*/
|
|
1007
1204
|
_id?: string | null;
|
|
1008
|
-
/**
|
|
1205
|
+
/**
|
|
1206
|
+
* The delivery region name.
|
|
1207
|
+
* @maxLength 100
|
|
1208
|
+
*/
|
|
1009
1209
|
name?: string | null;
|
|
1010
1210
|
}
|
|
1011
1211
|
export interface ApplicableLineItems {
|
|
1012
|
-
/**
|
|
1212
|
+
/**
|
|
1213
|
+
* Line items that the delivery solution is for.
|
|
1214
|
+
* @maxSize 300
|
|
1215
|
+
* @minLength 1
|
|
1216
|
+
* @maxLength 100
|
|
1217
|
+
*/
|
|
1013
1218
|
lineItemIds?: string[];
|
|
1014
1219
|
}
|
|
1015
1220
|
export interface ShippingRegion {
|
|
1016
1221
|
/**
|
|
1017
1222
|
* Shipping region ID.
|
|
1223
|
+
* @format GUID
|
|
1018
1224
|
* @readonly
|
|
1019
1225
|
*/
|
|
1020
1226
|
_id?: string;
|
|
1021
|
-
/**
|
|
1227
|
+
/**
|
|
1228
|
+
* Shipping region name.
|
|
1229
|
+
* @maxLength 100
|
|
1230
|
+
*/
|
|
1022
1231
|
name?: string;
|
|
1023
1232
|
}
|
|
1024
1233
|
export interface CarrierServiceOption {
|
|
1025
|
-
/**
|
|
1234
|
+
/**
|
|
1235
|
+
* Carrier ID.
|
|
1236
|
+
* @format GUID
|
|
1237
|
+
*/
|
|
1026
1238
|
carrierId?: string;
|
|
1027
1239
|
/** Shipping options offered by this carrier for this request. */
|
|
1028
1240
|
shippingOptions?: ShippingOption[];
|
|
@@ -1031,18 +1243,23 @@ export interface ShippingOption {
|
|
|
1031
1243
|
/**
|
|
1032
1244
|
* Unique code of provided shipping option like "usps_std_overnight".
|
|
1033
1245
|
* For legacy calculators this would be the UUID of the option.
|
|
1246
|
+
* @maxLength 100
|
|
1034
1247
|
*/
|
|
1035
1248
|
code?: string;
|
|
1036
1249
|
/**
|
|
1037
1250
|
* Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
|
|
1038
1251
|
* For example, "Standard" or "First-Class Package International".
|
|
1252
|
+
* @maxLength 250
|
|
1039
1253
|
*/
|
|
1040
1254
|
title?: string;
|
|
1041
1255
|
/** Delivery logistics. */
|
|
1042
1256
|
logistics?: DeliveryLogistics;
|
|
1043
1257
|
/** Sipping price information. */
|
|
1044
1258
|
cost?: ShippingPrice;
|
|
1045
|
-
/**
|
|
1259
|
+
/**
|
|
1260
|
+
* Delivery solution allocations to different delivery carriers and delivery regions
|
|
1261
|
+
* @maxSize 300
|
|
1262
|
+
*/
|
|
1046
1263
|
deliveryAllocations?: DeliveryAllocation[];
|
|
1047
1264
|
/** If the delivery solution is a partial and doesn't apply to all items. */
|
|
1048
1265
|
partial?: boolean | null;
|
|
@@ -1062,31 +1279,39 @@ export interface OtherCharge {
|
|
|
1062
1279
|
export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
1063
1280
|
/**
|
|
1064
1281
|
* Visitor ID - if the buyer is **not** a site member.
|
|
1282
|
+
* @format GUID
|
|
1065
1283
|
* @readonly
|
|
1066
1284
|
*/
|
|
1067
1285
|
visitorId?: string;
|
|
1068
1286
|
/**
|
|
1069
1287
|
* Member ID - If the buyer is a site member.
|
|
1288
|
+
* @format GUID
|
|
1070
1289
|
* @readonly
|
|
1071
1290
|
*/
|
|
1072
1291
|
memberId?: string;
|
|
1073
1292
|
/**
|
|
1074
1293
|
* Contact ID. For more information, see the Contacts API.
|
|
1294
|
+
* @format GUID
|
|
1075
1295
|
* @readonly
|
|
1076
1296
|
*/
|
|
1077
1297
|
contactId?: string | null;
|
|
1078
|
-
/**
|
|
1298
|
+
/**
|
|
1299
|
+
* Buyer email address.
|
|
1300
|
+
* @format EMAIL
|
|
1301
|
+
*/
|
|
1079
1302
|
email?: string | null;
|
|
1080
1303
|
}
|
|
1081
1304
|
/** @oneof */
|
|
1082
1305
|
export interface BuyerInfoIdOneOf {
|
|
1083
1306
|
/**
|
|
1084
1307
|
* Visitor ID - if the buyer is **not** a site member.
|
|
1308
|
+
* @format GUID
|
|
1085
1309
|
* @readonly
|
|
1086
1310
|
*/
|
|
1087
1311
|
visitorId?: string;
|
|
1088
1312
|
/**
|
|
1089
1313
|
* Member ID - If the buyer is a site member.
|
|
1314
|
+
* @format GUID
|
|
1090
1315
|
* @readonly
|
|
1091
1316
|
*/
|
|
1092
1317
|
memberId?: string;
|
|
@@ -1247,11 +1472,16 @@ export interface GiftCard {
|
|
|
1247
1472
|
obfuscatedCode?: string;
|
|
1248
1473
|
/** Gift card value. */
|
|
1249
1474
|
amount?: MultiCurrencyPrice;
|
|
1250
|
-
/**
|
|
1475
|
+
/**
|
|
1476
|
+
* App ID of the gift card provider.
|
|
1477
|
+
* @format GUID
|
|
1478
|
+
*/
|
|
1251
1479
|
appId?: string;
|
|
1252
1480
|
/**
|
|
1253
1481
|
* External ID in the gift card provider's system.
|
|
1254
1482
|
* Used for integration and tracking across different platforms.
|
|
1483
|
+
* @minLength 1
|
|
1484
|
+
* @maxLength 50
|
|
1255
1485
|
*/
|
|
1256
1486
|
externalId?: string | null;
|
|
1257
1487
|
}
|
|
@@ -1266,6 +1496,7 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
1266
1496
|
discountType?: DiscountType;
|
|
1267
1497
|
/**
|
|
1268
1498
|
* IDs of the line items the discount applies to.
|
|
1499
|
+
* @format GUID
|
|
1269
1500
|
* @deprecated IDs of line items the discount applies to.
|
|
1270
1501
|
* @replacedBy line_items_discounts
|
|
1271
1502
|
* @targetRemovalDate 2024-06-01
|
|
@@ -1275,6 +1506,8 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
1275
1506
|
* Number of subscription cycle this discount applies to
|
|
1276
1507
|
* default None - all billing cycle
|
|
1277
1508
|
* @internal
|
|
1509
|
+
* @min 1
|
|
1510
|
+
* @max 999
|
|
1278
1511
|
*/
|
|
1279
1512
|
subscriptionCycles?: number | null;
|
|
1280
1513
|
}
|
|
@@ -1306,11 +1539,18 @@ export interface Coupon {
|
|
|
1306
1539
|
export interface MerchantDiscount {
|
|
1307
1540
|
/** Discount value. */
|
|
1308
1541
|
amount?: MultiCurrencyPrice;
|
|
1309
|
-
/**
|
|
1542
|
+
/**
|
|
1543
|
+
* Discount Percentage. Will be calculated from items price before other discounts.
|
|
1544
|
+
* @min 1
|
|
1545
|
+
* @max 100
|
|
1546
|
+
*/
|
|
1310
1547
|
percentage?: number | null;
|
|
1311
1548
|
}
|
|
1312
1549
|
export interface DiscountRule {
|
|
1313
|
-
/**
|
|
1550
|
+
/**
|
|
1551
|
+
* Discount rule ID
|
|
1552
|
+
* @format GUID
|
|
1553
|
+
*/
|
|
1314
1554
|
_id?: string;
|
|
1315
1555
|
/** Discount rule name */
|
|
1316
1556
|
name?: DiscountRuleName;
|
|
@@ -1318,13 +1558,24 @@ export interface DiscountRule {
|
|
|
1318
1558
|
amount?: MultiCurrencyPrice;
|
|
1319
1559
|
}
|
|
1320
1560
|
export interface DiscountRuleName {
|
|
1321
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* Original discount rule name (in site's default language).
|
|
1563
|
+
* @minLength 1
|
|
1564
|
+
* @maxLength 256
|
|
1565
|
+
*/
|
|
1322
1566
|
original?: string;
|
|
1323
|
-
/**
|
|
1567
|
+
/**
|
|
1568
|
+
* Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
1569
|
+
* @minLength 1
|
|
1570
|
+
* @maxLength 500
|
|
1571
|
+
*/
|
|
1324
1572
|
translated?: string | null;
|
|
1325
1573
|
}
|
|
1326
1574
|
export interface LineItemDiscount {
|
|
1327
|
-
/**
|
|
1575
|
+
/**
|
|
1576
|
+
* ID of line item the discount applies to.
|
|
1577
|
+
* @format GUID
|
|
1578
|
+
*/
|
|
1328
1579
|
_id?: string;
|
|
1329
1580
|
/** Discount value. */
|
|
1330
1581
|
totalDiscountAmount?: MultiCurrencyPrice;
|
|
@@ -1332,9 +1583,17 @@ export interface LineItemDiscount {
|
|
|
1332
1583
|
export interface CustomField {
|
|
1333
1584
|
/** Custom field value. */
|
|
1334
1585
|
value?: any;
|
|
1335
|
-
/**
|
|
1586
|
+
/**
|
|
1587
|
+
* Custom field title.
|
|
1588
|
+
* @minLength 1
|
|
1589
|
+
* @maxLength 500
|
|
1590
|
+
*/
|
|
1336
1591
|
title?: string;
|
|
1337
|
-
/**
|
|
1592
|
+
/**
|
|
1593
|
+
* Translated custom field title.
|
|
1594
|
+
* @minLength 1
|
|
1595
|
+
* @maxLength 500
|
|
1596
|
+
*/
|
|
1338
1597
|
translatedTitle?: string | null;
|
|
1339
1598
|
}
|
|
1340
1599
|
export declare enum WeightUnit {
|
|
@@ -1410,15 +1669,27 @@ export declare enum FallbackReason {
|
|
|
1410
1669
|
* Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
|
|
1411
1670
|
*/
|
|
1412
1671
|
export interface AggregatedTaxBreakdown {
|
|
1413
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* The name of the tax against which this tax amount was calculated.
|
|
1674
|
+
* @maxLength 200
|
|
1675
|
+
*/
|
|
1414
1676
|
taxName?: string;
|
|
1415
|
-
/**
|
|
1677
|
+
/**
|
|
1678
|
+
* The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
|
|
1679
|
+
* @maxLength 200
|
|
1680
|
+
*/
|
|
1416
1681
|
taxType?: string;
|
|
1417
|
-
/**
|
|
1682
|
+
/**
|
|
1683
|
+
* The name of the jurisdiction in which this tax detail applies.
|
|
1684
|
+
* @maxLength 200
|
|
1685
|
+
*/
|
|
1418
1686
|
jurisdiction?: string;
|
|
1419
1687
|
/** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
1420
1688
|
jurisdictionTypeEnum?: JurisdictionType;
|
|
1421
|
-
/**
|
|
1689
|
+
/**
|
|
1690
|
+
* The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)
|
|
1691
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
1692
|
+
*/
|
|
1422
1693
|
rate?: string;
|
|
1423
1694
|
/** The sum of all the tax from line items that calculated by the tax identifiers. */
|
|
1424
1695
|
aggregatedTaxAmount?: MultiCurrencyPrice;
|
|
@@ -1461,13 +1732,23 @@ export interface CreatedBy extends CreatedByIdOneOf {
|
|
|
1461
1732
|
/**
|
|
1462
1733
|
* User ID - when the order was created by a Wix user on behalf of a buyer.
|
|
1463
1734
|
* For example, via POS (point of service).
|
|
1735
|
+
* @format GUID
|
|
1464
1736
|
*/
|
|
1465
1737
|
userId?: string;
|
|
1466
|
-
/**
|
|
1738
|
+
/**
|
|
1739
|
+
* Member ID - when the order was created by a **logged in** site visitor.
|
|
1740
|
+
* @format GUID
|
|
1741
|
+
*/
|
|
1467
1742
|
memberId?: string;
|
|
1468
|
-
/**
|
|
1743
|
+
/**
|
|
1744
|
+
* Visitor ID - when the order was created by a site visitor that was **not** logged in.
|
|
1745
|
+
* @format GUID
|
|
1746
|
+
*/
|
|
1469
1747
|
visitorId?: string;
|
|
1470
|
-
/**
|
|
1748
|
+
/**
|
|
1749
|
+
* App ID - when the order was created by an external application or Wix service.
|
|
1750
|
+
* @format GUID
|
|
1751
|
+
*/
|
|
1471
1752
|
appId?: string;
|
|
1472
1753
|
}
|
|
1473
1754
|
/** @oneof */
|
|
@@ -1475,13 +1756,23 @@ export interface CreatedByIdOneOf {
|
|
|
1475
1756
|
/**
|
|
1476
1757
|
* User ID - when the order was created by a Wix user on behalf of a buyer.
|
|
1477
1758
|
* For example, via POS (point of service).
|
|
1759
|
+
* @format GUID
|
|
1478
1760
|
*/
|
|
1479
1761
|
userId?: string;
|
|
1480
|
-
/**
|
|
1762
|
+
/**
|
|
1763
|
+
* Member ID - when the order was created by a **logged in** site visitor.
|
|
1764
|
+
* @format GUID
|
|
1765
|
+
*/
|
|
1481
1766
|
memberId?: string;
|
|
1482
|
-
/**
|
|
1767
|
+
/**
|
|
1768
|
+
* Visitor ID - when the order was created by a site visitor that was **not** logged in.
|
|
1769
|
+
* @format GUID
|
|
1770
|
+
*/
|
|
1483
1771
|
visitorId?: string;
|
|
1484
|
-
/**
|
|
1772
|
+
/**
|
|
1773
|
+
* App ID - when the order was created by an external application or Wix service.
|
|
1774
|
+
* @format GUID
|
|
1775
|
+
*/
|
|
1485
1776
|
appId?: string;
|
|
1486
1777
|
}
|
|
1487
1778
|
/** Reserved for internal use. */
|
|
@@ -1489,24 +1780,39 @@ export interface MembershipOptions {
|
|
|
1489
1780
|
/**
|
|
1490
1781
|
* Reserved for internal use.
|
|
1491
1782
|
* @readonly
|
|
1783
|
+
* @maxSize 300
|
|
1492
1784
|
*/
|
|
1493
1785
|
eligibleMemberships?: Membership[];
|
|
1494
1786
|
/**
|
|
1495
1787
|
* Reserved for internal use.
|
|
1496
1788
|
* @readonly
|
|
1789
|
+
* @maxSize 300
|
|
1497
1790
|
*/
|
|
1498
1791
|
invalidMemberships?: InvalidMembership[];
|
|
1499
1792
|
/** Selected membership to apply to this checkout. */
|
|
1500
1793
|
selectedMemberships?: SelectedMemberships;
|
|
1501
1794
|
}
|
|
1502
1795
|
export interface Membership {
|
|
1503
|
-
/**
|
|
1796
|
+
/**
|
|
1797
|
+
* Membership ID.
|
|
1798
|
+
* @minLength 1
|
|
1799
|
+
* @maxLength 100
|
|
1800
|
+
*/
|
|
1504
1801
|
_id?: string;
|
|
1505
|
-
/**
|
|
1802
|
+
/**
|
|
1803
|
+
* ID of the application providing this payment option.
|
|
1804
|
+
* @format GUID
|
|
1805
|
+
*/
|
|
1506
1806
|
appId?: string;
|
|
1507
1807
|
/** The name of this membership. */
|
|
1508
1808
|
name?: MembershipName;
|
|
1509
|
-
/**
|
|
1809
|
+
/**
|
|
1810
|
+
* Line item IDs which are "paid for" by this membership.
|
|
1811
|
+
* @minSize 1
|
|
1812
|
+
* @maxSize 300
|
|
1813
|
+
* @minLength 1
|
|
1814
|
+
* @maxLength 100
|
|
1815
|
+
*/
|
|
1510
1816
|
lineItemIds?: string[];
|
|
1511
1817
|
/** Optional - For a membership that has limited credits, information about credit usage. */
|
|
1512
1818
|
credits?: MembershipPaymentCredits;
|
|
@@ -1516,13 +1822,22 @@ export interface Membership {
|
|
|
1516
1822
|
additionalData?: Record<string, any> | null;
|
|
1517
1823
|
}
|
|
1518
1824
|
export interface MembershipName {
|
|
1519
|
-
/**
|
|
1825
|
+
/**
|
|
1826
|
+
* Membership name.
|
|
1827
|
+
* @maxLength 100
|
|
1828
|
+
*/
|
|
1520
1829
|
original?: string;
|
|
1521
|
-
/**
|
|
1830
|
+
/**
|
|
1831
|
+
* Translated membership name. Defaults to `original` when not provided.
|
|
1832
|
+
* @maxLength 100
|
|
1833
|
+
*/
|
|
1522
1834
|
translated?: string | null;
|
|
1523
1835
|
}
|
|
1524
1836
|
export interface MembershipPaymentCredits {
|
|
1525
|
-
/**
|
|
1837
|
+
/**
|
|
1838
|
+
* Membership's total amount of credits.
|
|
1839
|
+
* @min 1
|
|
1840
|
+
*/
|
|
1526
1841
|
total?: number;
|
|
1527
1842
|
/** Membership's remaining amount of credits. */
|
|
1528
1843
|
remaining?: number;
|
|
@@ -1530,31 +1845,63 @@ export interface MembershipPaymentCredits {
|
|
|
1530
1845
|
export interface InvalidMembership {
|
|
1531
1846
|
/** Membership details. */
|
|
1532
1847
|
membership?: Membership;
|
|
1533
|
-
/**
|
|
1848
|
+
/**
|
|
1849
|
+
* Reason why this membership is invalid and cannot be used.
|
|
1850
|
+
* @minLength 1
|
|
1851
|
+
* @maxLength 100
|
|
1852
|
+
*/
|
|
1534
1853
|
reason?: string;
|
|
1535
1854
|
}
|
|
1536
1855
|
export interface SelectedMemberships {
|
|
1537
|
-
/**
|
|
1856
|
+
/**
|
|
1857
|
+
* Selected memberships.
|
|
1858
|
+
* @maxSize 300
|
|
1859
|
+
*/
|
|
1538
1860
|
memberships?: SelectedMembership[];
|
|
1539
1861
|
}
|
|
1540
1862
|
export interface SelectedMembership {
|
|
1541
|
-
/**
|
|
1863
|
+
/**
|
|
1864
|
+
* Membership ID.
|
|
1865
|
+
* @minLength 1
|
|
1866
|
+
* @maxLength 100
|
|
1867
|
+
*/
|
|
1542
1868
|
_id?: string;
|
|
1543
|
-
/**
|
|
1869
|
+
/**
|
|
1870
|
+
* ID of the app providing this payment option.
|
|
1871
|
+
* @format GUID
|
|
1872
|
+
*/
|
|
1544
1873
|
appId?: string;
|
|
1545
|
-
/**
|
|
1874
|
+
/**
|
|
1875
|
+
* IDs of the line items this membership applies to.
|
|
1876
|
+
* @minSize 1
|
|
1877
|
+
* @maxSize 300
|
|
1878
|
+
* @minLength 1
|
|
1879
|
+
* @maxLength 100
|
|
1880
|
+
*/
|
|
1546
1881
|
lineItemIds?: string[];
|
|
1547
1882
|
}
|
|
1548
1883
|
export interface AdditionalFee {
|
|
1549
|
-
/**
|
|
1884
|
+
/**
|
|
1885
|
+
* Additional fee's unique code (or ID) for future processing.
|
|
1886
|
+
* @minLength 1
|
|
1887
|
+
* @maxLength 100
|
|
1888
|
+
*/
|
|
1550
1889
|
code?: string | null;
|
|
1551
|
-
/**
|
|
1890
|
+
/**
|
|
1891
|
+
* Translated additional fee's name.
|
|
1892
|
+
* @minLength 1
|
|
1893
|
+
* @maxLength 50
|
|
1894
|
+
*/
|
|
1552
1895
|
name?: string;
|
|
1553
1896
|
/** Additional fee's price. */
|
|
1554
1897
|
price?: MultiCurrencyPrice;
|
|
1555
1898
|
/** Tax details. */
|
|
1556
1899
|
taxDetails?: ItemTaxFullDetails;
|
|
1557
|
-
/**
|
|
1900
|
+
/**
|
|
1901
|
+
* Provider's app id.
|
|
1902
|
+
* @minLength 1
|
|
1903
|
+
* @maxLength 100
|
|
1904
|
+
*/
|
|
1558
1905
|
providerAppId?: string | null;
|
|
1559
1906
|
/** Additional fee's price before tax. */
|
|
1560
1907
|
priceBeforeTax?: MultiCurrencyPrice;
|
|
@@ -1563,12 +1910,15 @@ export interface AdditionalFee {
|
|
|
1563
1910
|
/**
|
|
1564
1911
|
* Optional - Line items associated with this additional fee.
|
|
1565
1912
|
* If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
1913
|
+
* @format GUID
|
|
1566
1914
|
*/
|
|
1567
1915
|
lineItemIds?: string[];
|
|
1568
1916
|
/**
|
|
1569
1917
|
* Number of subscription cycle this fee applies to
|
|
1570
1918
|
* default None - all billing cycle
|
|
1571
1919
|
* @internal
|
|
1920
|
+
* @min 1
|
|
1921
|
+
* @max 999
|
|
1572
1922
|
*/
|
|
1573
1923
|
subscriptionCycles?: number | null;
|
|
1574
1924
|
/** the source the additional fee was added from */
|
|
@@ -1587,11 +1937,13 @@ export interface ConversionInfo {
|
|
|
1587
1937
|
/**
|
|
1588
1938
|
* The site currency.
|
|
1589
1939
|
* @readonly
|
|
1940
|
+
* @format CURRENCY
|
|
1590
1941
|
*/
|
|
1591
1942
|
siteCurrency?: string;
|
|
1592
1943
|
/**
|
|
1593
1944
|
* The rate used when converting from the site currency to the checkout currency.
|
|
1594
1945
|
* @readonly
|
|
1946
|
+
* @decimalValue options { gt:0, lte:1000000000000000 }
|
|
1595
1947
|
*/
|
|
1596
1948
|
conversionRate?: string;
|
|
1597
1949
|
}
|
|
@@ -1600,7 +1952,11 @@ export interface Violation {
|
|
|
1600
1952
|
severity?: Severity;
|
|
1601
1953
|
/** Target location on a checkout or cart page where the violation will be displayed. */
|
|
1602
1954
|
target?: Target;
|
|
1603
|
-
/**
|
|
1955
|
+
/**
|
|
1956
|
+
* Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href="https://www.wix.com">Click me</a>`.
|
|
1957
|
+
* @minLength 1
|
|
1958
|
+
* @maxLength 1000
|
|
1959
|
+
*/
|
|
1604
1960
|
description?: string | null;
|
|
1605
1961
|
}
|
|
1606
1962
|
export declare enum Severity {
|
|
@@ -1689,12 +2045,14 @@ export interface CustomContentReference {
|
|
|
1689
2045
|
* ID of the app providing the content.
|
|
1690
2046
|
*
|
|
1691
2047
|
* You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
2048
|
+
* @format GUID
|
|
1692
2049
|
*/
|
|
1693
2050
|
appId?: string;
|
|
1694
2051
|
/**
|
|
1695
2052
|
* ID of the component within the app it belongs to.
|
|
1696
2053
|
*
|
|
1697
2054
|
* You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
2055
|
+
* @format GUID
|
|
1698
2056
|
*/
|
|
1699
2057
|
componentId?: string;
|
|
1700
2058
|
}
|
|
@@ -1702,14 +2060,49 @@ export interface ExternalReference {
|
|
|
1702
2060
|
/**
|
|
1703
2061
|
* ID of the app associated with the purchase flow.
|
|
1704
2062
|
* For example, the Wix Pay Links app ID.
|
|
2063
|
+
* @format GUID
|
|
2064
|
+
* @immutable
|
|
1705
2065
|
*/
|
|
1706
2066
|
appId?: string;
|
|
1707
2067
|
/**
|
|
1708
2068
|
* Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.
|
|
1709
2069
|
* For example, a Wix Pay Link ID.
|
|
2070
|
+
* @minLength 1
|
|
2071
|
+
* @maxLength 100
|
|
2072
|
+
* @immutable
|
|
1710
2073
|
*/
|
|
1711
2074
|
resourceId?: string | null;
|
|
1712
2075
|
}
|
|
2076
|
+
export interface SubscriptionCharges {
|
|
2077
|
+
/**
|
|
2078
|
+
* ids of the items the subscription is defined on
|
|
2079
|
+
* @format GUID
|
|
2080
|
+
* @minSize 1
|
|
2081
|
+
* @maxSize 300
|
|
2082
|
+
*/
|
|
2083
|
+
lineItemIds?: string[];
|
|
2084
|
+
/**
|
|
2085
|
+
* Generated description explaining future charges amount and schedule.
|
|
2086
|
+
* Translated to subscription order buyer language, or to site language if was not provided.
|
|
2087
|
+
* @maxLength 1000
|
|
2088
|
+
*/
|
|
2089
|
+
description?: string | null;
|
|
2090
|
+
/**
|
|
2091
|
+
* Charges for subscription.
|
|
2092
|
+
* @maxSize 50
|
|
2093
|
+
*/
|
|
2094
|
+
charges?: Charge[];
|
|
2095
|
+
}
|
|
2096
|
+
export interface Charge {
|
|
2097
|
+
/** The cycle number from which the charge starts. */
|
|
2098
|
+
cycleFrom?: number;
|
|
2099
|
+
/** The number of cycles for which the charge is applicable. */
|
|
2100
|
+
cycleCount?: number | null;
|
|
2101
|
+
/** Charge summary. */
|
|
2102
|
+
priceSummary?: PriceSummary;
|
|
2103
|
+
/** The billing date from which the charge starts. */
|
|
2104
|
+
cycleBillingDate?: Date | null;
|
|
2105
|
+
}
|
|
1713
2106
|
export interface UpdatedCheckoutMessage {
|
|
1714
2107
|
/** Previous checkout. */
|
|
1715
2108
|
oldCheckout?: Checkout;
|
|
@@ -1721,28 +2114,20 @@ export interface CreateCheckoutRequest {
|
|
|
1721
2114
|
checkoutInfo?: Checkout;
|
|
1722
2115
|
/** The code of an existing coupon to apply to checkout. For more information, see the [Coupons API](https://www.wix.com/velo/reference/wix-marketing-backend/coupons). */
|
|
1723
2116
|
couponCode?: string | null;
|
|
1724
|
-
/**
|
|
2117
|
+
/**
|
|
2118
|
+
* Catalog line items to add to the checkout.
|
|
2119
|
+
* @maxSize 300
|
|
2120
|
+
*/
|
|
1725
2121
|
lineItems?: LineItem[];
|
|
1726
2122
|
/**
|
|
1727
2123
|
* Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.
|
|
1728
2124
|
*
|
|
1729
2125
|
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
1730
2126
|
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
2127
|
+
* @maxSize 300
|
|
1731
2128
|
*/
|
|
1732
2129
|
customLineItems?: CustomLineItem[];
|
|
1733
|
-
/**
|
|
1734
|
-
* Sales channel that submitted the order.
|
|
1735
|
-
* + `"UNSPECIFIED"`: Unspecified sales channel. This value is not supported.
|
|
1736
|
-
* + `"WEB"`: A web client.
|
|
1737
|
-
* + `"POS"`: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395)
|
|
1738
|
-
* + `"EBAY"`: [eBay](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop)
|
|
1739
|
-
* + `"AMAZON"`: [Amazon](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop)
|
|
1740
|
-
* + `"WISH"`: [Wish](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-a-wish-shop)
|
|
1741
|
-
* + `"WIX_INVOICES"`: Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings)
|
|
1742
|
-
* + `"WIX_APP_STORE"`: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview)
|
|
1743
|
-
* + `"BACKOFFICE_MERCHANT"`: Wix merchant backoffice
|
|
1744
|
-
* + `"OTHER_PLATFORM"`: Other sales platform.
|
|
1745
|
-
*/
|
|
2130
|
+
/** Sales channel that submitted the order. */
|
|
1746
2131
|
channelType: ChannelType;
|
|
1747
2132
|
/**
|
|
1748
2133
|
* Gift card code.
|
|
@@ -1756,6 +2141,7 @@ export interface CreateCheckoutRequest {
|
|
|
1756
2141
|
* `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
|
|
1757
2142
|
*
|
|
1758
2143
|
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
2144
|
+
* @maxLength 1000
|
|
1759
2145
|
*/
|
|
1760
2146
|
overrideCheckoutUrl?: string | null;
|
|
1761
2147
|
}
|
|
@@ -1765,13 +2151,22 @@ export interface CustomLineItem {
|
|
|
1765
2151
|
*
|
|
1766
2152
|
* Min: `1`
|
|
1767
2153
|
* Max: `100000`
|
|
2154
|
+
* @min 1
|
|
2155
|
+
* @max 100000
|
|
1768
2156
|
*/
|
|
1769
2157
|
quantity?: number;
|
|
1770
|
-
/**
|
|
2158
|
+
/**
|
|
2159
|
+
* Custom line item price. For security reasons, the `price` field should come from backend Velo code, and not be passed from the frontend.
|
|
2160
|
+
* @format DECIMAL_VALUE
|
|
2161
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
2162
|
+
*/
|
|
1771
2163
|
price?: string;
|
|
1772
2164
|
/** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
|
|
1773
2165
|
priceDescription?: PriceDescription;
|
|
1774
|
-
/**
|
|
2166
|
+
/**
|
|
2167
|
+
* Custom line item description lines. Used for displaying the cart, checkout and order.
|
|
2168
|
+
* @maxSize 10
|
|
2169
|
+
*/
|
|
1775
2170
|
descriptionLines?: DescriptionLine[];
|
|
1776
2171
|
/**
|
|
1777
2172
|
* Custom line item media.
|
|
@@ -1783,9 +2178,13 @@ export interface CustomLineItem {
|
|
|
1783
2178
|
* Custom line item ID. If passed, `id` must be unique.
|
|
1784
2179
|
*
|
|
1785
2180
|
* Default: auto-generated ID
|
|
2181
|
+
* @format GUID
|
|
1786
2182
|
*/
|
|
1787
2183
|
_id?: string | null;
|
|
1788
|
-
/**
|
|
2184
|
+
/**
|
|
2185
|
+
* Tax group ID for this custom line item.
|
|
2186
|
+
* @format GUID
|
|
2187
|
+
*/
|
|
1789
2188
|
taxGroupId?: string | null;
|
|
1790
2189
|
/** Name of the item or product. */
|
|
1791
2190
|
productName?: ProductName;
|
|
@@ -1793,11 +2192,15 @@ export interface CustomLineItem {
|
|
|
1793
2192
|
url?: string;
|
|
1794
2193
|
/** Item type. Either a preset type or custom. */
|
|
1795
2194
|
itemType?: ItemType;
|
|
1796
|
-
/**
|
|
2195
|
+
/**
|
|
2196
|
+
* Item price **before** catalog-defined discount. Defaults to `price` when not provided.
|
|
2197
|
+
* @format DECIMAL_VALUE
|
|
2198
|
+
*/
|
|
1797
2199
|
fullPrice?: string | null;
|
|
1798
2200
|
/**
|
|
1799
2201
|
* Item quantity available for purchase. Only return this if inventory is managed.
|
|
1800
2202
|
* Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
|
|
2203
|
+
* @max 100000
|
|
1801
2204
|
*/
|
|
1802
2205
|
quantityAvailable?: number | null;
|
|
1803
2206
|
/** Physical properties of the item. */
|
|
@@ -1822,6 +2225,8 @@ export interface CustomLineItem {
|
|
|
1822
2225
|
* + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
|
|
1823
2226
|
* + In most cases, this field is the same as `catalogReference.catalogItemId`.
|
|
1824
2227
|
* + Used in membership validation.
|
|
2228
|
+
* @minLength 1
|
|
2229
|
+
* @maxLength 36
|
|
1825
2230
|
*/
|
|
1826
2231
|
rootCatalogItemId?: string | null;
|
|
1827
2232
|
/**
|
|
@@ -1829,11 +2234,12 @@ export interface CustomLineItem {
|
|
|
1829
2234
|
*
|
|
1830
2235
|
* Eligible for catalog items with type `DEPOSIT_ONLINE`.
|
|
1831
2236
|
* When omitted, the item's price will not be split and is expected to be paid in a single installment.
|
|
2237
|
+
* @format DECIMAL_VALUE
|
|
1832
2238
|
*/
|
|
1833
2239
|
depositAmount?: string | null;
|
|
1834
2240
|
/**
|
|
1835
|
-
* Delivery
|
|
1836
|
-
* @
|
|
2241
|
+
* Delivery profile ID.
|
|
2242
|
+
* @format GUID
|
|
1837
2243
|
*/
|
|
1838
2244
|
deliveryProfileId?: string | null;
|
|
1839
2245
|
/** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */
|
|
@@ -1854,6 +2260,8 @@ export interface CustomLineItem {
|
|
|
1854
2260
|
fixedQuantity?: boolean;
|
|
1855
2261
|
/**
|
|
1856
2262
|
* Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.
|
|
2263
|
+
* @minLength 1
|
|
2264
|
+
* @maxLength 1000
|
|
1857
2265
|
* @readonly
|
|
1858
2266
|
*/
|
|
1859
2267
|
consentRequiredPaymentPolicy?: string | null;
|
|
@@ -1867,11 +2275,13 @@ export interface CustomLineItem {
|
|
|
1867
2275
|
/**
|
|
1868
2276
|
* Policies to be displayed to the customer on the checkout page.
|
|
1869
2277
|
* @internal
|
|
2278
|
+
* @maxSize 5
|
|
1870
2279
|
*/
|
|
1871
2280
|
policies?: Policy[];
|
|
1872
2281
|
/**
|
|
1873
2282
|
* ID of the app managing the inventory.
|
|
1874
2283
|
* @internal
|
|
2284
|
+
* @format GUID
|
|
1875
2285
|
*/
|
|
1876
2286
|
inventoryAppId?: string | null;
|
|
1877
2287
|
/**
|
|
@@ -1881,11 +2291,23 @@ export interface CustomLineItem {
|
|
|
1881
2291
|
* @internal
|
|
1882
2292
|
*/
|
|
1883
2293
|
membersOnly?: boolean;
|
|
2294
|
+
/**
|
|
2295
|
+
* Address to use for tax calculation purposes.
|
|
2296
|
+
* @internal
|
|
2297
|
+
*/
|
|
2298
|
+
taxableAddress?: TaxableAddress;
|
|
1884
2299
|
}
|
|
1885
2300
|
export interface MerchantDiscountInput {
|
|
1886
|
-
/**
|
|
2301
|
+
/**
|
|
2302
|
+
* Discount amount.
|
|
2303
|
+
* @decimalValue options { gte:0 }
|
|
2304
|
+
*/
|
|
1887
2305
|
amount?: string;
|
|
1888
|
-
/**
|
|
2306
|
+
/**
|
|
2307
|
+
* IDs of the line items the discount applies to.
|
|
2308
|
+
* @format GUID
|
|
2309
|
+
* @maxSize 300
|
|
2310
|
+
*/
|
|
1889
2311
|
lineItemIds?: string[];
|
|
1890
2312
|
}
|
|
1891
2313
|
export interface CreateCheckoutResponse {
|
|
@@ -1902,7 +2324,10 @@ export interface ShippingCalculationErrorDataShippingCalculationErrorOneOf {
|
|
|
1902
2324
|
carrierErrors?: CarrierErrors;
|
|
1903
2325
|
}
|
|
1904
2326
|
export interface GetCheckoutRequest {
|
|
1905
|
-
/**
|
|
2327
|
+
/**
|
|
2328
|
+
* Checkout ID.
|
|
2329
|
+
* @format GUID
|
|
2330
|
+
*/
|
|
1906
2331
|
_id: string;
|
|
1907
2332
|
}
|
|
1908
2333
|
export interface GetCheckoutResponse {
|
|
@@ -1910,7 +2335,10 @@ export interface GetCheckoutResponse {
|
|
|
1910
2335
|
checkout?: Checkout;
|
|
1911
2336
|
}
|
|
1912
2337
|
export interface GetCheckoutWithAllExtendedFieldsRequest {
|
|
1913
|
-
/**
|
|
2338
|
+
/**
|
|
2339
|
+
* Checkout ID.
|
|
2340
|
+
* @format GUID
|
|
2341
|
+
*/
|
|
1914
2342
|
_id?: string;
|
|
1915
2343
|
}
|
|
1916
2344
|
export interface GetCheckoutWithAllExtendedFieldsResponse {
|
|
@@ -1918,7 +2346,10 @@ export interface GetCheckoutWithAllExtendedFieldsResponse {
|
|
|
1918
2346
|
checkout?: Checkout;
|
|
1919
2347
|
}
|
|
1920
2348
|
export interface GetCheckoutByCartIdRequest {
|
|
1921
|
-
/**
|
|
2349
|
+
/**
|
|
2350
|
+
* Cart ID.
|
|
2351
|
+
* @format GUID
|
|
2352
|
+
*/
|
|
1922
2353
|
_id: string;
|
|
1923
2354
|
}
|
|
1924
2355
|
export interface GetCheckoutByCartIdResponse {
|
|
@@ -1926,7 +2357,10 @@ export interface GetCheckoutByCartIdResponse {
|
|
|
1926
2357
|
checkout?: Checkout;
|
|
1927
2358
|
}
|
|
1928
2359
|
export interface GetWixCheckoutURLRequest {
|
|
1929
|
-
/**
|
|
2360
|
+
/**
|
|
2361
|
+
* Checkout ID.
|
|
2362
|
+
* @format GUID
|
|
2363
|
+
*/
|
|
1930
2364
|
_id: string;
|
|
1931
2365
|
}
|
|
1932
2366
|
export interface GetWixCheckoutURLResponse {
|
|
@@ -1934,7 +2368,10 @@ export interface GetWixCheckoutURLResponse {
|
|
|
1934
2368
|
checkoutUrl?: string;
|
|
1935
2369
|
}
|
|
1936
2370
|
export interface GetCheckoutURLRequest {
|
|
1937
|
-
/**
|
|
2371
|
+
/**
|
|
2372
|
+
* Checkout ID.
|
|
2373
|
+
* @format GUID
|
|
2374
|
+
*/
|
|
1938
2375
|
_id: string;
|
|
1939
2376
|
}
|
|
1940
2377
|
export interface GetCheckoutURLResponse {
|
|
@@ -1952,15 +2389,20 @@ export interface UpdateCheckoutRequest {
|
|
|
1952
2389
|
* `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
|
|
1953
2390
|
*
|
|
1954
2391
|
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
2392
|
+
* @maxLength 1000
|
|
1955
2393
|
*/
|
|
1956
2394
|
overrideCheckoutUrl?: string | null;
|
|
1957
|
-
/**
|
|
2395
|
+
/**
|
|
2396
|
+
* Catalog line items.
|
|
2397
|
+
* @maxSize 300
|
|
2398
|
+
*/
|
|
1958
2399
|
lineItems?: LineItem[];
|
|
1959
2400
|
/**
|
|
1960
2401
|
* Custom line items. Custom line items don't trigger the Catalog service plugin.
|
|
1961
2402
|
*
|
|
1962
2403
|
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
1963
2404
|
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
2405
|
+
* @maxSize 300
|
|
1964
2406
|
*/
|
|
1965
2407
|
customLineItems?: CustomLineItem[];
|
|
1966
2408
|
}
|
|
@@ -1969,7 +2411,10 @@ export interface UpdateCheckoutResponse {
|
|
|
1969
2411
|
checkout?: Checkout;
|
|
1970
2412
|
}
|
|
1971
2413
|
export interface RemoveCouponRequest {
|
|
1972
|
-
/**
|
|
2414
|
+
/**
|
|
2415
|
+
* ID of the checkout to remove the coupon from.
|
|
2416
|
+
* @format GUID
|
|
2417
|
+
*/
|
|
1973
2418
|
_id: string;
|
|
1974
2419
|
}
|
|
1975
2420
|
export interface RemoveCouponResponse {
|
|
@@ -1977,7 +2422,10 @@ export interface RemoveCouponResponse {
|
|
|
1977
2422
|
checkout?: Checkout;
|
|
1978
2423
|
}
|
|
1979
2424
|
export interface RemoveGiftCardRequest {
|
|
1980
|
-
/**
|
|
2425
|
+
/**
|
|
2426
|
+
* ID of the checkout to remove the gift card from.
|
|
2427
|
+
* @format GUID
|
|
2428
|
+
*/
|
|
1981
2429
|
_id: string;
|
|
1982
2430
|
}
|
|
1983
2431
|
export interface RemoveGiftCardResponse {
|
|
@@ -1985,7 +2433,10 @@ export interface RemoveGiftCardResponse {
|
|
|
1985
2433
|
checkout?: Checkout;
|
|
1986
2434
|
}
|
|
1987
2435
|
export interface RemoveOverrideCheckoutUrlRequest {
|
|
1988
|
-
/**
|
|
2436
|
+
/**
|
|
2437
|
+
* ID of the checkout to remove the override checkout url from.
|
|
2438
|
+
* @format GUID
|
|
2439
|
+
*/
|
|
1989
2440
|
_id: string;
|
|
1990
2441
|
}
|
|
1991
2442
|
export interface RemoveOverrideCheckoutUrlResponse {
|
|
@@ -1993,15 +2444,22 @@ export interface RemoveOverrideCheckoutUrlResponse {
|
|
|
1993
2444
|
checkout?: Checkout;
|
|
1994
2445
|
}
|
|
1995
2446
|
export interface AddToCheckoutRequest {
|
|
1996
|
-
/**
|
|
2447
|
+
/**
|
|
2448
|
+
* Checkout ID.
|
|
2449
|
+
* @format GUID
|
|
2450
|
+
*/
|
|
1997
2451
|
_id: string;
|
|
1998
|
-
/**
|
|
2452
|
+
/**
|
|
2453
|
+
* Catalog line items.
|
|
2454
|
+
* @maxSize 100
|
|
2455
|
+
*/
|
|
1999
2456
|
lineItems?: LineItem[];
|
|
2000
2457
|
/**
|
|
2001
2458
|
* Custom line items. Custom line items don't trigger the Catalog service plugin.
|
|
2002
2459
|
*
|
|
2003
2460
|
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
2004
2461
|
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
2462
|
+
* @maxSize 100
|
|
2005
2463
|
*/
|
|
2006
2464
|
customLineItems?: CustomLineItem[];
|
|
2007
2465
|
}
|
|
@@ -2010,9 +2468,17 @@ export interface AddToCheckoutResponse {
|
|
|
2010
2468
|
checkout?: Checkout;
|
|
2011
2469
|
}
|
|
2012
2470
|
export interface RemoveLineItemsRequest {
|
|
2013
|
-
/**
|
|
2471
|
+
/**
|
|
2472
|
+
* ID of the checkout to remove line items from.
|
|
2473
|
+
* @format GUID
|
|
2474
|
+
*/
|
|
2014
2475
|
_id: string;
|
|
2015
|
-
/**
|
|
2476
|
+
/**
|
|
2477
|
+
* IDs of the line items to remove from the checkout.
|
|
2478
|
+
* @format GUID
|
|
2479
|
+
* @minSize 1
|
|
2480
|
+
* @maxSize 300
|
|
2481
|
+
*/
|
|
2016
2482
|
lineItemIds: string[];
|
|
2017
2483
|
}
|
|
2018
2484
|
export interface RemoveLineItemsResponse {
|
|
@@ -2020,7 +2486,10 @@ export interface RemoveLineItemsResponse {
|
|
|
2020
2486
|
checkout?: Checkout;
|
|
2021
2487
|
}
|
|
2022
2488
|
export interface CreateOrderRequest {
|
|
2023
|
-
/**
|
|
2489
|
+
/**
|
|
2490
|
+
* Checkout ID.
|
|
2491
|
+
* @format GUID
|
|
2492
|
+
*/
|
|
2024
2493
|
_id: string;
|
|
2025
2494
|
/** Indicates the payment method should be saved on the order */
|
|
2026
2495
|
savePaymentMethod?: boolean;
|
|
@@ -2028,9 +2497,15 @@ export interface CreateOrderRequest {
|
|
|
2028
2497
|
delayCapture?: boolean;
|
|
2029
2498
|
}
|
|
2030
2499
|
export interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
|
|
2031
|
-
/**
|
|
2500
|
+
/**
|
|
2501
|
+
* ID of the newly created order.
|
|
2502
|
+
* @format GUID
|
|
2503
|
+
*/
|
|
2032
2504
|
orderId?: string;
|
|
2033
|
-
/**
|
|
2505
|
+
/**
|
|
2506
|
+
* ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions).
|
|
2507
|
+
* @format GUID
|
|
2508
|
+
*/
|
|
2034
2509
|
subscriptionId?: string;
|
|
2035
2510
|
/**
|
|
2036
2511
|
* Payment gateway order ID.
|
|
@@ -2045,9 +2520,15 @@ export interface CreateOrderResponse extends CreateOrderResponseIdOneOf {
|
|
|
2045
2520
|
}
|
|
2046
2521
|
/** @oneof */
|
|
2047
2522
|
export interface CreateOrderResponseIdOneOf {
|
|
2048
|
-
/**
|
|
2523
|
+
/**
|
|
2524
|
+
* ID of newly created order.
|
|
2525
|
+
* @format GUID
|
|
2526
|
+
*/
|
|
2049
2527
|
orderId?: string;
|
|
2050
|
-
/**
|
|
2528
|
+
/**
|
|
2529
|
+
* ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions).
|
|
2530
|
+
* @format GUID
|
|
2531
|
+
*/
|
|
2051
2532
|
subscriptionId?: string;
|
|
2052
2533
|
}
|
|
2053
2534
|
export interface PaymentErrorResponseData {
|
|
@@ -2056,12 +2537,16 @@ export interface PaymentErrorResponseData {
|
|
|
2056
2537
|
failureDetails?: string | null;
|
|
2057
2538
|
}
|
|
2058
2539
|
export interface DoublePaymentErrorData extends DoublePaymentErrorDataIdOneOf {
|
|
2540
|
+
/** @format GUID */
|
|
2059
2541
|
orderId?: string;
|
|
2542
|
+
/** @format GUID */
|
|
2060
2543
|
subscriptionId?: string;
|
|
2061
2544
|
}
|
|
2062
2545
|
/** @oneof */
|
|
2063
2546
|
export interface DoublePaymentErrorDataIdOneOf {
|
|
2547
|
+
/** @format GUID */
|
|
2064
2548
|
orderId?: string;
|
|
2549
|
+
/** @format GUID */
|
|
2065
2550
|
subscriptionId?: string;
|
|
2066
2551
|
}
|
|
2067
2552
|
export interface RedeemErrorData {
|
|
@@ -2072,7 +2557,10 @@ export interface ViolationsList {
|
|
|
2072
2557
|
violations?: Violation[];
|
|
2073
2558
|
}
|
|
2074
2559
|
export interface CreateOrderAndChargeRequest {
|
|
2075
|
-
/**
|
|
2560
|
+
/**
|
|
2561
|
+
* Checkout ID.
|
|
2562
|
+
* @format GUID
|
|
2563
|
+
*/
|
|
2076
2564
|
_id: string;
|
|
2077
2565
|
/** Payment token. */
|
|
2078
2566
|
paymentToken?: string | null;
|
|
@@ -2082,9 +2570,15 @@ export interface CreateOrderAndChargeRequest {
|
|
|
2082
2570
|
delayCapture?: boolean;
|
|
2083
2571
|
}
|
|
2084
2572
|
export interface CreateOrderAndChargeResponse extends CreateOrderAndChargeResponseIdOneOf {
|
|
2085
|
-
/**
|
|
2573
|
+
/**
|
|
2574
|
+
* ID of newly created order.
|
|
2575
|
+
* @format GUID
|
|
2576
|
+
*/
|
|
2086
2577
|
orderId?: string;
|
|
2087
|
-
/**
|
|
2578
|
+
/**
|
|
2579
|
+
* ID of newly created subscription.
|
|
2580
|
+
* @format GUID
|
|
2581
|
+
*/
|
|
2088
2582
|
subscriptionId?: string;
|
|
2089
2583
|
/** Payment response token. */
|
|
2090
2584
|
paymentResponseToken?: string | null;
|
|
@@ -2100,17 +2594,43 @@ export interface CreateOrderAndChargeResponse extends CreateOrderAndChargeRespon
|
|
|
2100
2594
|
}
|
|
2101
2595
|
/** @oneof */
|
|
2102
2596
|
export interface CreateOrderAndChargeResponseIdOneOf {
|
|
2103
|
-
/**
|
|
2597
|
+
/**
|
|
2598
|
+
* ID of newly created order.
|
|
2599
|
+
* @format GUID
|
|
2600
|
+
*/
|
|
2104
2601
|
orderId?: string;
|
|
2105
|
-
/**
|
|
2602
|
+
/**
|
|
2603
|
+
* ID of newly created subscription.
|
|
2604
|
+
* @format GUID
|
|
2605
|
+
*/
|
|
2106
2606
|
subscriptionId?: string;
|
|
2107
2607
|
}
|
|
2608
|
+
export interface MarkCheckoutAsCompletedAndRedirectToUrlRequest {
|
|
2609
|
+
/**
|
|
2610
|
+
* Server-signed JWT token with required information to complete checkout
|
|
2611
|
+
* @maxLength 4096
|
|
2612
|
+
*/
|
|
2613
|
+
token: string;
|
|
2614
|
+
}
|
|
2615
|
+
export interface RawHttpResponse {
|
|
2616
|
+
body?: Uint8Array;
|
|
2617
|
+
statusCode?: number | null;
|
|
2618
|
+
headers?: HeadersEntry[];
|
|
2619
|
+
}
|
|
2620
|
+
export interface HeadersEntry {
|
|
2621
|
+
key?: string;
|
|
2622
|
+
value?: string;
|
|
2623
|
+
}
|
|
2108
2624
|
export interface MarkCheckoutAsCompletedRequest {
|
|
2109
|
-
/**
|
|
2625
|
+
/**
|
|
2626
|
+
* Checkout ID.
|
|
2627
|
+
* @format GUID
|
|
2628
|
+
*/
|
|
2110
2629
|
_id: string;
|
|
2111
2630
|
/**
|
|
2112
2631
|
* Order ID.
|
|
2113
2632
|
* @internal
|
|
2633
|
+
* @format GUID
|
|
2114
2634
|
*/
|
|
2115
2635
|
orderId?: string | null;
|
|
2116
2636
|
}
|
|
@@ -2121,13 +2641,23 @@ export interface CheckoutMarkedAsCompleted {
|
|
|
2121
2641
|
checkout?: Checkout;
|
|
2122
2642
|
}
|
|
2123
2643
|
export interface UpdateLineItemsQuantityRequest {
|
|
2124
|
-
/**
|
|
2644
|
+
/**
|
|
2645
|
+
* Checkout ID.
|
|
2646
|
+
* @format GUID
|
|
2647
|
+
*/
|
|
2125
2648
|
_id: string;
|
|
2126
|
-
/**
|
|
2649
|
+
/**
|
|
2650
|
+
* Line item info to update.
|
|
2651
|
+
* @minSize 1
|
|
2652
|
+
* @maxSize 100
|
|
2653
|
+
*/
|
|
2127
2654
|
lineItems: LineItemQuantityUpdate[];
|
|
2128
2655
|
}
|
|
2129
2656
|
export interface LineItemQuantityUpdate {
|
|
2130
|
-
/**
|
|
2657
|
+
/**
|
|
2658
|
+
* ID of the line item to update.
|
|
2659
|
+
* @format GUID
|
|
2660
|
+
*/
|
|
2131
2661
|
_id?: string;
|
|
2132
2662
|
/**
|
|
2133
2663
|
* New total amount of the line item,
|
|
@@ -2136,6 +2666,8 @@ export interface LineItemQuantityUpdate {
|
|
|
2136
2666
|
* Min: `1`
|
|
2137
2667
|
*
|
|
2138
2668
|
* Max: `100000`
|
|
2669
|
+
* @min 1
|
|
2670
|
+
* @max 100000
|
|
2139
2671
|
*/
|
|
2140
2672
|
quantity?: number;
|
|
2141
2673
|
}
|
|
@@ -2144,7 +2676,10 @@ export interface UpdateLineItemsQuantityResponse {
|
|
|
2144
2676
|
checkout?: Checkout;
|
|
2145
2677
|
}
|
|
2146
2678
|
export interface GetCheckoutPaymentSettingsRequest {
|
|
2147
|
-
/**
|
|
2679
|
+
/**
|
|
2680
|
+
* Checkout ID.
|
|
2681
|
+
* @format GUID
|
|
2682
|
+
*/
|
|
2148
2683
|
_id: string;
|
|
2149
2684
|
}
|
|
2150
2685
|
export interface GetCheckoutPaymentSettingsResponse {
|
|
@@ -2155,7 +2690,10 @@ export declare enum GetCheckoutPaymentSettingsResponsePaymentOption {
|
|
|
2155
2690
|
MANUAL = "MANUAL"
|
|
2156
2691
|
}
|
|
2157
2692
|
export interface DeleteCheckoutRequest {
|
|
2158
|
-
/**
|
|
2693
|
+
/**
|
|
2694
|
+
* ID of the checkout to delete.
|
|
2695
|
+
* @format GUID
|
|
2696
|
+
*/
|
|
2159
2697
|
_id?: string;
|
|
2160
2698
|
}
|
|
2161
2699
|
export interface DeleteCheckoutResponse {
|
|
@@ -2169,20 +2707,33 @@ export interface Subscription {
|
|
|
2169
2707
|
* @readonly
|
|
2170
2708
|
*/
|
|
2171
2709
|
_id?: string;
|
|
2172
|
-
/**
|
|
2710
|
+
/**
|
|
2711
|
+
* id of subscription in external system
|
|
2712
|
+
* @format GUID
|
|
2713
|
+
*/
|
|
2173
2714
|
externalId?: string | null;
|
|
2174
2715
|
/**
|
|
2175
2716
|
* Subscription creation date
|
|
2176
2717
|
* @readonly
|
|
2177
2718
|
*/
|
|
2178
2719
|
dateCreated?: Date | null;
|
|
2179
|
-
/**
|
|
2720
|
+
/**
|
|
2721
|
+
* The id of the cart this order was created from
|
|
2722
|
+
* @format GUID
|
|
2723
|
+
*/
|
|
2180
2724
|
cartId?: string | null;
|
|
2181
|
-
/**
|
|
2725
|
+
/**
|
|
2726
|
+
* The id of the checkout this subscriptions was created from
|
|
2727
|
+
* @format GUID
|
|
2728
|
+
*/
|
|
2182
2729
|
checkoutId?: string | null;
|
|
2183
2730
|
/** member or contact */
|
|
2184
2731
|
buyerInfo?: V1BuyerInfo;
|
|
2185
|
-
/**
|
|
2732
|
+
/**
|
|
2733
|
+
* Line items ordered
|
|
2734
|
+
* @minSize 1
|
|
2735
|
+
* @maxSize 1
|
|
2736
|
+
*/
|
|
2186
2737
|
lineItems?: V1LineItem[];
|
|
2187
2738
|
/** Totals for subscription's line items */
|
|
2188
2739
|
totals?: Totals;
|
|
@@ -2194,7 +2745,10 @@ export interface Subscription {
|
|
|
2194
2745
|
shippingInfo?: V1ShippingInfo;
|
|
2195
2746
|
/** Coupon that was applied to subscription */
|
|
2196
2747
|
appliedCoupon?: AppliedCoupon;
|
|
2197
|
-
/**
|
|
2748
|
+
/**
|
|
2749
|
+
* Message from the customer (e.g., customization request)
|
|
2750
|
+
* @maxLength 1000
|
|
2751
|
+
*/
|
|
2198
2752
|
buyerNote?: string | null;
|
|
2199
2753
|
/** Custom field */
|
|
2200
2754
|
customField?: V1CustomField;
|
|
@@ -2212,7 +2766,10 @@ export interface Subscription {
|
|
|
2212
2766
|
}
|
|
2213
2767
|
/** Buyer Info */
|
|
2214
2768
|
export interface V1BuyerInfo {
|
|
2215
|
-
/**
|
|
2769
|
+
/**
|
|
2770
|
+
* Wix customer ID
|
|
2771
|
+
* @format GUID
|
|
2772
|
+
*/
|
|
2216
2773
|
_id?: string;
|
|
2217
2774
|
/** Customer type */
|
|
2218
2775
|
identityType?: IdentityType;
|
|
@@ -2227,13 +2784,26 @@ export declare enum IdentityType {
|
|
|
2227
2784
|
export interface V1LineItem {
|
|
2228
2785
|
/** Line item ID (auto-generated) */
|
|
2229
2786
|
index?: number;
|
|
2230
|
-
/**
|
|
2787
|
+
/**
|
|
2788
|
+
* Line item quantity
|
|
2789
|
+
* @min 1
|
|
2790
|
+
* @max 100000
|
|
2791
|
+
*/
|
|
2231
2792
|
quantity?: number;
|
|
2232
|
-
/**
|
|
2793
|
+
/**
|
|
2794
|
+
* Line item variantId (from Stores Catalog)
|
|
2795
|
+
* @format GUID
|
|
2796
|
+
*/
|
|
2233
2797
|
variantId?: string | null;
|
|
2234
|
-
/**
|
|
2798
|
+
/**
|
|
2799
|
+
* Line item options ordered
|
|
2800
|
+
* @maxSize 6
|
|
2801
|
+
*/
|
|
2235
2802
|
options?: OptionSelection[];
|
|
2236
|
-
/**
|
|
2803
|
+
/**
|
|
2804
|
+
* Line item custom text field selections
|
|
2805
|
+
* @maxSize 20
|
|
2806
|
+
*/
|
|
2237
2807
|
customTextFields?: CustomTextFieldSelection[];
|
|
2238
2808
|
/** Charges details */
|
|
2239
2809
|
chargeDetails?: ChargeDetails;
|
|
@@ -2241,53 +2811,109 @@ export interface V1LineItem {
|
|
|
2241
2811
|
productDetails?: ProductDetails;
|
|
2242
2812
|
}
|
|
2243
2813
|
export interface OptionSelection {
|
|
2244
|
-
/**
|
|
2814
|
+
/**
|
|
2815
|
+
* Option name
|
|
2816
|
+
* @maxLength 200
|
|
2817
|
+
*/
|
|
2245
2818
|
option?: string;
|
|
2246
|
-
/**
|
|
2819
|
+
/**
|
|
2820
|
+
* Selected choice for this option
|
|
2821
|
+
* @maxLength 500
|
|
2822
|
+
*/
|
|
2247
2823
|
selection?: string;
|
|
2248
2824
|
}
|
|
2249
2825
|
export interface CustomTextFieldSelection {
|
|
2250
|
-
/**
|
|
2826
|
+
/**
|
|
2827
|
+
* Custom text field name
|
|
2828
|
+
* @maxLength 100
|
|
2829
|
+
*/
|
|
2251
2830
|
title?: string;
|
|
2252
|
-
/**
|
|
2831
|
+
/**
|
|
2832
|
+
* Custom text field value
|
|
2833
|
+
* @maxLength 500
|
|
2834
|
+
*/
|
|
2253
2835
|
value?: string;
|
|
2254
2836
|
}
|
|
2255
2837
|
export interface ChargeDetails {
|
|
2256
|
-
/**
|
|
2838
|
+
/**
|
|
2839
|
+
* price of line item (depends on subscription option)
|
|
2840
|
+
* @max 999999999.99
|
|
2841
|
+
*/
|
|
2257
2842
|
price?: number;
|
|
2258
|
-
/**
|
|
2843
|
+
/**
|
|
2844
|
+
* Total price charged to the customer (for this line items) after computation of quantity and discount
|
|
2845
|
+
* @max 999999999.99
|
|
2846
|
+
*/
|
|
2259
2847
|
totalPrice?: number | null;
|
|
2260
|
-
/**
|
|
2848
|
+
/**
|
|
2849
|
+
* Discount applied for this line item
|
|
2850
|
+
* @max 999999999.99
|
|
2851
|
+
*/
|
|
2261
2852
|
discount?: number | null;
|
|
2262
|
-
/**
|
|
2853
|
+
/**
|
|
2854
|
+
* Tax applied for this line item
|
|
2855
|
+
* @max 999999999.99
|
|
2856
|
+
*/
|
|
2263
2857
|
tax?: number | null;
|
|
2264
2858
|
/** Is tax applied for this line item */
|
|
2265
2859
|
taxIncludedInPrice?: boolean;
|
|
2266
|
-
/**
|
|
2860
|
+
/**
|
|
2861
|
+
* Tax rate %, as a decimal point >= 0
|
|
2862
|
+
* @decimalValue options { maxScale:6, gte:0 }
|
|
2863
|
+
*/
|
|
2267
2864
|
taxRate?: string | null;
|
|
2268
2865
|
}
|
|
2269
2866
|
export interface ProductDetails {
|
|
2270
|
-
/**
|
|
2867
|
+
/**
|
|
2868
|
+
* Line item product ID (optional for POS orders)
|
|
2869
|
+
* @minLength 1
|
|
2870
|
+
*/
|
|
2271
2871
|
productId?: string | null;
|
|
2272
|
-
/**
|
|
2872
|
+
/**
|
|
2873
|
+
* Line item name
|
|
2874
|
+
* @minLength 1
|
|
2875
|
+
* @maxLength 100
|
|
2876
|
+
*/
|
|
2273
2877
|
name?: string;
|
|
2274
|
-
/**
|
|
2878
|
+
/**
|
|
2879
|
+
* Line item name translated to buyer's language
|
|
2880
|
+
* @minLength 1
|
|
2881
|
+
* @maxLength 100
|
|
2882
|
+
*/
|
|
2275
2883
|
translatedName?: string | null;
|
|
2276
2884
|
/** Line item type (may be extended) */
|
|
2277
2885
|
lineItemType?: LineItemType;
|
|
2278
2886
|
/** Line item primary media for preview */
|
|
2279
2887
|
mediaItem?: MediaItem;
|
|
2280
|
-
/**
|
|
2888
|
+
/**
|
|
2889
|
+
* Line item SKU
|
|
2890
|
+
* @maxLength 40
|
|
2891
|
+
*/
|
|
2281
2892
|
sku?: string | null;
|
|
2282
|
-
/**
|
|
2893
|
+
/**
|
|
2894
|
+
* Line item weight
|
|
2895
|
+
* @max 999999999.99
|
|
2896
|
+
*/
|
|
2283
2897
|
weight?: number | null;
|
|
2284
|
-
/**
|
|
2898
|
+
/**
|
|
2899
|
+
* Line item notes
|
|
2900
|
+
* @maxLength 1000
|
|
2901
|
+
*/
|
|
2285
2902
|
notes?: string | null;
|
|
2286
|
-
/**
|
|
2903
|
+
/**
|
|
2904
|
+
* Line item fulfillerId from stores fulfillers. No value means self fulfilled
|
|
2905
|
+
* @format GUID
|
|
2906
|
+
*/
|
|
2287
2907
|
fulfillerId?: string | null;
|
|
2288
|
-
/**
|
|
2908
|
+
/**
|
|
2909
|
+
* Tax group id
|
|
2910
|
+
* @format GUID
|
|
2911
|
+
*/
|
|
2289
2912
|
taxGroupId?: string | null;
|
|
2290
|
-
/**
|
|
2913
|
+
/**
|
|
2914
|
+
* App id from the catalog reference
|
|
2915
|
+
* @format GUID
|
|
2916
|
+
*/
|
|
2291
2917
|
appId?: string | null;
|
|
2292
2918
|
}
|
|
2293
2919
|
export declare enum LineItemType {
|
|
@@ -2308,16 +2934,19 @@ export interface MediaItem {
|
|
|
2308
2934
|
mediaType?: MediaItemType;
|
|
2309
2935
|
/**
|
|
2310
2936
|
* Media URL
|
|
2937
|
+
* @format WEB_URL
|
|
2311
2938
|
* @readonly
|
|
2312
2939
|
*/
|
|
2313
2940
|
url?: string;
|
|
2314
2941
|
/**
|
|
2315
2942
|
* Media item width
|
|
2943
|
+
* @max 5000
|
|
2316
2944
|
* @readonly
|
|
2317
2945
|
*/
|
|
2318
2946
|
width?: number;
|
|
2319
2947
|
/**
|
|
2320
2948
|
* Media item height
|
|
2949
|
+
* @max 5000
|
|
2321
2950
|
* @readonly
|
|
2322
2951
|
*/
|
|
2323
2952
|
height?: number;
|
|
@@ -2325,7 +2954,10 @@ export interface MediaItem {
|
|
|
2325
2954
|
_id?: string | null;
|
|
2326
2955
|
/** Media external URL */
|
|
2327
2956
|
externalImageUrl?: string | null;
|
|
2328
|
-
/**
|
|
2957
|
+
/**
|
|
2958
|
+
* Alternative text for presentation when media cannot be displayed
|
|
2959
|
+
* @maxLength 256
|
|
2960
|
+
*/
|
|
2329
2961
|
altText?: string | null;
|
|
2330
2962
|
}
|
|
2331
2963
|
export declare enum MediaItemType {
|
|
@@ -2335,17 +2967,35 @@ export declare enum MediaItemType {
|
|
|
2335
2967
|
IMAGE = "IMAGE"
|
|
2336
2968
|
}
|
|
2337
2969
|
export interface Totals {
|
|
2338
|
-
/**
|
|
2970
|
+
/**
|
|
2971
|
+
* Subtotal of all line items, before tax
|
|
2972
|
+
* @max 999999999.99
|
|
2973
|
+
*/
|
|
2339
2974
|
subtotal?: number;
|
|
2340
|
-
/**
|
|
2975
|
+
/**
|
|
2976
|
+
* Total shipping price, including tax
|
|
2977
|
+
* @max 999999999.99
|
|
2978
|
+
*/
|
|
2341
2979
|
shipping?: number;
|
|
2342
|
-
/**
|
|
2980
|
+
/**
|
|
2981
|
+
* Total tax
|
|
2982
|
+
* @max 999999999.99
|
|
2983
|
+
*/
|
|
2343
2984
|
tax?: number;
|
|
2344
|
-
/**
|
|
2985
|
+
/**
|
|
2986
|
+
* Total calculated discount value
|
|
2987
|
+
* @max 999999999.99
|
|
2988
|
+
*/
|
|
2345
2989
|
discount?: number;
|
|
2346
|
-
/**
|
|
2990
|
+
/**
|
|
2991
|
+
* Total price
|
|
2992
|
+
* @max 999999999.99
|
|
2993
|
+
*/
|
|
2347
2994
|
total?: number;
|
|
2348
|
-
/**
|
|
2995
|
+
/**
|
|
2996
|
+
* Total weight
|
|
2997
|
+
* @max 999999999.99
|
|
2998
|
+
*/
|
|
2349
2999
|
weight?: number | null;
|
|
2350
3000
|
/**
|
|
2351
3001
|
* Total line items quantity
|
|
@@ -2354,7 +3004,11 @@ export interface Totals {
|
|
|
2354
3004
|
quantity?: number;
|
|
2355
3005
|
}
|
|
2356
3006
|
export interface StoreSettings {
|
|
2357
|
-
/**
|
|
3007
|
+
/**
|
|
3008
|
+
* Currency used for pricing in this store
|
|
3009
|
+
* @maxLength 3
|
|
3010
|
+
* @format CURRENCY
|
|
3011
|
+
*/
|
|
2358
3012
|
currency?: string | null;
|
|
2359
3013
|
/** Weight unit used in this store */
|
|
2360
3014
|
weightUnit?: WeightUnit;
|
|
@@ -2362,56 +3016,103 @@ export interface StoreSettings {
|
|
|
2362
3016
|
* The language to be used when communicating with the buyer
|
|
2363
3017
|
* For a site that support multiple languages, this would be the language the buyer selected
|
|
2364
3018
|
* Otherwise this would be the site language
|
|
3019
|
+
* @minLength 2
|
|
3020
|
+
* @maxLength 2
|
|
2365
3021
|
*/
|
|
2366
3022
|
buyerLanguage?: string | null;
|
|
2367
3023
|
}
|
|
2368
3024
|
export interface Address extends AddressAddressLine1OptionsOneOf {
|
|
2369
|
-
/**
|
|
3025
|
+
/**
|
|
3026
|
+
* Address line 1 (free text)
|
|
3027
|
+
* @maxLength 1000
|
|
3028
|
+
*/
|
|
2370
3029
|
addressLine1?: string;
|
|
2371
3030
|
/** Address line 1 (street) */
|
|
2372
3031
|
street?: Street;
|
|
2373
3032
|
/** Addressee name */
|
|
2374
3033
|
fullName?: FullName;
|
|
2375
|
-
/**
|
|
3034
|
+
/**
|
|
3035
|
+
* Country code (2 letters)
|
|
3036
|
+
* @format COUNTRY
|
|
3037
|
+
*/
|
|
2376
3038
|
country?: string | null;
|
|
2377
|
-
/**
|
|
3039
|
+
/**
|
|
3040
|
+
* State or district
|
|
3041
|
+
* @maxLength 50
|
|
3042
|
+
*/
|
|
2378
3043
|
subdivision?: string | null;
|
|
2379
|
-
/**
|
|
3044
|
+
/**
|
|
3045
|
+
* City name
|
|
3046
|
+
* @maxLength 150
|
|
3047
|
+
*/
|
|
2380
3048
|
city?: string | null;
|
|
2381
|
-
/**
|
|
3049
|
+
/**
|
|
3050
|
+
* ZIP/postal code
|
|
3051
|
+
* @maxLength 200
|
|
3052
|
+
*/
|
|
2382
3053
|
zipCode?: string | null;
|
|
2383
|
-
/**
|
|
3054
|
+
/**
|
|
3055
|
+
* Phone number
|
|
3056
|
+
* @maxLength 200
|
|
3057
|
+
*/
|
|
2384
3058
|
phone?: string | null;
|
|
2385
|
-
/**
|
|
3059
|
+
/**
|
|
3060
|
+
* Company name
|
|
3061
|
+
* @maxLength 500
|
|
3062
|
+
*/
|
|
2386
3063
|
company?: string | null;
|
|
2387
|
-
/**
|
|
3064
|
+
/**
|
|
3065
|
+
* Email address
|
|
3066
|
+
* @maxLength 500
|
|
3067
|
+
*/
|
|
2388
3068
|
email?: string | null;
|
|
2389
|
-
/**
|
|
3069
|
+
/**
|
|
3070
|
+
* address line
|
|
3071
|
+
* @maxLength 250
|
|
3072
|
+
*/
|
|
2390
3073
|
addressLine2?: string | null;
|
|
2391
3074
|
/** Tax information (for Brazil only) */
|
|
2392
3075
|
vatId?: VatId;
|
|
2393
3076
|
}
|
|
2394
3077
|
/** @oneof */
|
|
2395
3078
|
export interface AddressAddressLine1OptionsOneOf {
|
|
2396
|
-
/**
|
|
3079
|
+
/**
|
|
3080
|
+
* Address line 1 (free text)
|
|
3081
|
+
* @maxLength 1000
|
|
3082
|
+
*/
|
|
2397
3083
|
addressLine1?: string;
|
|
2398
3084
|
/** Address line 1 (street) */
|
|
2399
3085
|
street?: Street;
|
|
2400
3086
|
}
|
|
2401
3087
|
export interface FullName {
|
|
2402
|
-
/**
|
|
3088
|
+
/**
|
|
3089
|
+
* Customer's first name
|
|
3090
|
+
* @maxLength 1000
|
|
3091
|
+
*/
|
|
2403
3092
|
firstName?: string;
|
|
2404
|
-
/**
|
|
3093
|
+
/**
|
|
3094
|
+
* Customer's last name
|
|
3095
|
+
* @maxLength 1000
|
|
3096
|
+
*/
|
|
2405
3097
|
lastName?: string;
|
|
2406
3098
|
}
|
|
2407
3099
|
export interface Street {
|
|
2408
|
-
/**
|
|
3100
|
+
/**
|
|
3101
|
+
* Street number
|
|
3102
|
+
* @maxLength 500
|
|
3103
|
+
*/
|
|
2409
3104
|
number?: string;
|
|
2410
|
-
/**
|
|
3105
|
+
/**
|
|
3106
|
+
* Street name
|
|
3107
|
+
* @maxLength 1000
|
|
3108
|
+
*/
|
|
2411
3109
|
name?: string;
|
|
2412
3110
|
}
|
|
2413
3111
|
export interface VatId {
|
|
2414
|
-
/**
|
|
3112
|
+
/**
|
|
3113
|
+
* Customer's tax ID.
|
|
3114
|
+
* @maxLength 50
|
|
3115
|
+
*/
|
|
2415
3116
|
number?: string;
|
|
2416
3117
|
/**
|
|
2417
3118
|
* Tax type.
|
|
@@ -2434,9 +3135,15 @@ export interface V1ShippingInfo extends V1ShippingInfoDetailsOneOf {
|
|
|
2434
3135
|
shipmentDetails?: ShipmentDetails;
|
|
2435
3136
|
/** Pickup details (when this object describes pickup) */
|
|
2436
3137
|
pickupDetails?: V1PickupDetails;
|
|
2437
|
-
/**
|
|
3138
|
+
/**
|
|
3139
|
+
* Delivery option name
|
|
3140
|
+
* @maxLength 250
|
|
3141
|
+
*/
|
|
2438
3142
|
deliveryOption?: string;
|
|
2439
|
-
/**
|
|
3143
|
+
/**
|
|
3144
|
+
* Delivery option delivery time
|
|
3145
|
+
* @maxLength 500
|
|
3146
|
+
*/
|
|
2440
3147
|
estimatedDeliveryTime?: string | null;
|
|
2441
3148
|
}
|
|
2442
3149
|
/** @oneof */
|
|
@@ -2449,53 +3156,101 @@ export interface V1ShippingInfoDetailsOneOf {
|
|
|
2449
3156
|
export interface ShipmentDetails {
|
|
2450
3157
|
/** Shipping destination address */
|
|
2451
3158
|
address?: Address;
|
|
2452
|
-
/**
|
|
3159
|
+
/**
|
|
3160
|
+
* Discount applied for shipping
|
|
3161
|
+
* @max 999999999.99
|
|
3162
|
+
*/
|
|
2453
3163
|
discount?: number | null;
|
|
2454
|
-
/**
|
|
3164
|
+
/**
|
|
3165
|
+
* Tax applied for shipping
|
|
3166
|
+
* @max 999999999.99
|
|
3167
|
+
*/
|
|
2455
3168
|
tax?: number | null;
|
|
2456
3169
|
/** Whether tax is included in the price */
|
|
2457
3170
|
taxIncludedInPrice?: boolean;
|
|
2458
|
-
/**
|
|
3171
|
+
/**
|
|
3172
|
+
* Tax rate % for shipping, as a decimal point >= 0
|
|
3173
|
+
* @decimalValue options { maxScale:6, gte:0 }
|
|
3174
|
+
*/
|
|
2459
3175
|
taxRate?: string | null;
|
|
2460
3176
|
}
|
|
2461
3177
|
export interface V1PickupDetails {
|
|
2462
3178
|
/** Pickup address */
|
|
2463
3179
|
address?: PickupAddress;
|
|
2464
|
-
/**
|
|
3180
|
+
/**
|
|
3181
|
+
* Store owner's pickup instructions
|
|
3182
|
+
* @maxLength 1000
|
|
3183
|
+
*/
|
|
2465
3184
|
pickupInstructions?: string | null;
|
|
2466
3185
|
}
|
|
2467
3186
|
export interface PickupAddress {
|
|
2468
|
-
/**
|
|
3187
|
+
/**
|
|
3188
|
+
* Country code (2 letters)
|
|
3189
|
+
* @format COUNTRY
|
|
3190
|
+
*/
|
|
2469
3191
|
country?: string;
|
|
2470
|
-
/**
|
|
3192
|
+
/**
|
|
3193
|
+
* State/District
|
|
3194
|
+
* @maxLength 50
|
|
3195
|
+
*/
|
|
2471
3196
|
subdivision?: string | null;
|
|
2472
|
-
/**
|
|
3197
|
+
/**
|
|
3198
|
+
* Address
|
|
3199
|
+
* @maxLength 200
|
|
3200
|
+
*/
|
|
2473
3201
|
addressLine?: string;
|
|
2474
|
-
/**
|
|
3202
|
+
/**
|
|
3203
|
+
* City
|
|
3204
|
+
* @maxLength 85
|
|
3205
|
+
*/
|
|
2475
3206
|
city?: string;
|
|
2476
|
-
/**
|
|
3207
|
+
/**
|
|
3208
|
+
* ZIP/postal code
|
|
3209
|
+
* @maxLength 50
|
|
3210
|
+
*/
|
|
2477
3211
|
zipCode?: string;
|
|
2478
3212
|
}
|
|
2479
3213
|
export interface AppliedCoupon {
|
|
2480
3214
|
/** Coupon ID */
|
|
2481
3215
|
couponId?: string;
|
|
2482
|
-
/**
|
|
3216
|
+
/**
|
|
3217
|
+
* Coupon name
|
|
3218
|
+
* @maxLength 100
|
|
3219
|
+
*/
|
|
2483
3220
|
name?: string;
|
|
2484
|
-
/**
|
|
3221
|
+
/**
|
|
3222
|
+
* Coupon code
|
|
3223
|
+
* @maxLength 100
|
|
3224
|
+
*/
|
|
2485
3225
|
code?: string;
|
|
2486
3226
|
}
|
|
2487
3227
|
/** Custom field */
|
|
2488
3228
|
export interface V1CustomField {
|
|
2489
|
-
/**
|
|
3229
|
+
/**
|
|
3230
|
+
* Free text that the customer entered in the custom field during the checkout process
|
|
3231
|
+
* @maxLength 250
|
|
3232
|
+
*/
|
|
2490
3233
|
value?: string;
|
|
2491
|
-
/**
|
|
3234
|
+
/**
|
|
3235
|
+
* Title for the custom field
|
|
3236
|
+
* @maxLength 200
|
|
3237
|
+
*/
|
|
2492
3238
|
title?: string;
|
|
2493
|
-
/**
|
|
3239
|
+
/**
|
|
3240
|
+
* The title translated according to the buyer language
|
|
3241
|
+
* @maxLength 200
|
|
3242
|
+
*/
|
|
2494
3243
|
translatedTitle?: string;
|
|
2495
3244
|
}
|
|
2496
3245
|
export interface V1SubscriptionOptionInfo {
|
|
3246
|
+
/** @format GUID */
|
|
2497
3247
|
_id?: string | null;
|
|
3248
|
+
/**
|
|
3249
|
+
* @minLength 1
|
|
3250
|
+
* @maxLength 20
|
|
3251
|
+
*/
|
|
2498
3252
|
title?: string;
|
|
3253
|
+
/** @maxLength 60 */
|
|
2499
3254
|
description?: string | null;
|
|
2500
3255
|
discount?: Discount;
|
|
2501
3256
|
}
|
|
@@ -2526,15 +3281,28 @@ export interface V1SubscriptionSettings {
|
|
|
2526
3281
|
frequency?: SubscriptionFrequency;
|
|
2527
3282
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
2528
3283
|
autoRenewal?: boolean;
|
|
2529
|
-
/**
|
|
3284
|
+
/**
|
|
3285
|
+
* Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.
|
|
3286
|
+
* @min 2
|
|
3287
|
+
* @max 999
|
|
3288
|
+
*/
|
|
2530
3289
|
billingCycles?: number | null;
|
|
2531
3290
|
}
|
|
2532
3291
|
export interface BillingInfo {
|
|
2533
|
-
/**
|
|
3292
|
+
/**
|
|
3293
|
+
* Payment method used for this order
|
|
3294
|
+
* @maxLength 50
|
|
3295
|
+
*/
|
|
2534
3296
|
paymentMethod?: string | null;
|
|
2535
|
-
/**
|
|
3297
|
+
/**
|
|
3298
|
+
* Transaction ID from payment gateway (e.g., Wix Payments)
|
|
3299
|
+
* @maxLength 100
|
|
3300
|
+
*/
|
|
2536
3301
|
paymentGatewayTransactionId?: string | null;
|
|
2537
|
-
/**
|
|
3302
|
+
/**
|
|
3303
|
+
* Order ID from payment gateway (e.g., Wix Payments)
|
|
3304
|
+
* @maxLength 100
|
|
3305
|
+
*/
|
|
2538
3306
|
paymentGatewayOrderId?: string | null;
|
|
2539
3307
|
}
|
|
2540
3308
|
export interface Empty {
|
|
@@ -2610,9 +3378,15 @@ export interface ActionEvent {
|
|
|
2610
3378
|
body?: string;
|
|
2611
3379
|
}
|
|
2612
3380
|
export interface MessageEnvelope {
|
|
2613
|
-
/**
|
|
3381
|
+
/**
|
|
3382
|
+
* App instance ID.
|
|
3383
|
+
* @format GUID
|
|
3384
|
+
*/
|
|
2614
3385
|
instanceId?: string | null;
|
|
2615
|
-
/**
|
|
3386
|
+
/**
|
|
3387
|
+
* Event type.
|
|
3388
|
+
* @maxLength 150
|
|
3389
|
+
*/
|
|
2616
3390
|
eventType?: string;
|
|
2617
3391
|
/** The identification type and identity data. */
|
|
2618
3392
|
identity?: IdentificationData;
|
|
@@ -2620,26 +3394,50 @@ export interface MessageEnvelope {
|
|
|
2620
3394
|
data?: string;
|
|
2621
3395
|
}
|
|
2622
3396
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
2623
|
-
/**
|
|
3397
|
+
/**
|
|
3398
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3399
|
+
* @format GUID
|
|
3400
|
+
*/
|
|
2624
3401
|
anonymousVisitorId?: string;
|
|
2625
|
-
/**
|
|
3402
|
+
/**
|
|
3403
|
+
* ID of a site visitor that has logged in to the site.
|
|
3404
|
+
* @format GUID
|
|
3405
|
+
*/
|
|
2626
3406
|
memberId?: string;
|
|
2627
|
-
/**
|
|
3407
|
+
/**
|
|
3408
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3409
|
+
* @format GUID
|
|
3410
|
+
*/
|
|
2628
3411
|
wixUserId?: string;
|
|
2629
|
-
/**
|
|
3412
|
+
/**
|
|
3413
|
+
* ID of an app.
|
|
3414
|
+
* @format GUID
|
|
3415
|
+
*/
|
|
2630
3416
|
appId?: string;
|
|
2631
3417
|
/** @readonly */
|
|
2632
3418
|
identityType?: WebhookIdentityType;
|
|
2633
3419
|
}
|
|
2634
3420
|
/** @oneof */
|
|
2635
3421
|
export interface IdentificationDataIdOneOf {
|
|
2636
|
-
/**
|
|
3422
|
+
/**
|
|
3423
|
+
* ID of a site visitor that has not logged in to the site.
|
|
3424
|
+
* @format GUID
|
|
3425
|
+
*/
|
|
2637
3426
|
anonymousVisitorId?: string;
|
|
2638
|
-
/**
|
|
3427
|
+
/**
|
|
3428
|
+
* ID of a site visitor that has logged in to the site.
|
|
3429
|
+
* @format GUID
|
|
3430
|
+
*/
|
|
2639
3431
|
memberId?: string;
|
|
2640
|
-
/**
|
|
3432
|
+
/**
|
|
3433
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
3434
|
+
* @format GUID
|
|
3435
|
+
*/
|
|
2641
3436
|
wixUserId?: string;
|
|
2642
|
-
/**
|
|
3437
|
+
/**
|
|
3438
|
+
* ID of an app.
|
|
3439
|
+
* @format GUID
|
|
3440
|
+
*/
|
|
2643
3441
|
appId?: string;
|
|
2644
3442
|
}
|
|
2645
3443
|
export declare enum WebhookIdentityType {
|
|
@@ -3080,6 +3878,14 @@ interface CustomContentReferenceNonNullableFields {
|
|
|
3080
3878
|
interface ExternalReferenceNonNullableFields {
|
|
3081
3879
|
appId: string;
|
|
3082
3880
|
}
|
|
3881
|
+
interface ChargeNonNullableFields {
|
|
3882
|
+
cycleFrom: number;
|
|
3883
|
+
priceSummary?: PriceSummaryNonNullableFields;
|
|
3884
|
+
}
|
|
3885
|
+
interface SubscriptionChargesNonNullableFields {
|
|
3886
|
+
lineItemIds: string[];
|
|
3887
|
+
charges: ChargeNonNullableFields[];
|
|
3888
|
+
}
|
|
3083
3889
|
export interface CheckoutNonNullableFields {
|
|
3084
3890
|
lineItems: LineItemNonNullableFields[];
|
|
3085
3891
|
billingInfo?: AddressWithContactNonNullableFields;
|
|
@@ -3115,6 +3921,8 @@ export interface CheckoutNonNullableFields {
|
|
|
3115
3921
|
payAfterFreeTrial?: PriceSummaryNonNullableFields;
|
|
3116
3922
|
/** @internal */
|
|
3117
3923
|
paymentRequired: boolean;
|
|
3924
|
+
/** @internal */
|
|
3925
|
+
subscriptionCharges: SubscriptionChargesNonNullableFields[];
|
|
3118
3926
|
}
|
|
3119
3927
|
export interface CreateCheckoutResponseNonNullableFields {
|
|
3120
3928
|
checkout?: CheckoutNonNullableFields;
|
|
@@ -3157,6 +3965,14 @@ export interface CreateOrderAndChargeResponseNonNullableFields {
|
|
|
3157
3965
|
orderId: string;
|
|
3158
3966
|
subscriptionId: string;
|
|
3159
3967
|
}
|
|
3968
|
+
interface HeadersEntryNonNullableFields {
|
|
3969
|
+
key: string;
|
|
3970
|
+
value: string;
|
|
3971
|
+
}
|
|
3972
|
+
export interface RawHttpResponseNonNullableFields {
|
|
3973
|
+
body: Uint8Array;
|
|
3974
|
+
headers: HeadersEntryNonNullableFields[];
|
|
3975
|
+
}
|
|
3160
3976
|
export interface UpdateLineItemsQuantityResponseNonNullableFields {
|
|
3161
3977
|
checkout?: CheckoutNonNullableFields;
|
|
3162
3978
|
}
|
|
@@ -3164,9 +3980,15 @@ export interface GetCheckoutPaymentSettingsResponseNonNullableFields {
|
|
|
3164
3980
|
blockedPaymentOptions: GetCheckoutPaymentSettingsResponsePaymentOption[];
|
|
3165
3981
|
}
|
|
3166
3982
|
export interface BaseEventMetadata {
|
|
3167
|
-
/**
|
|
3983
|
+
/**
|
|
3984
|
+
* App instance ID.
|
|
3985
|
+
* @format GUID
|
|
3986
|
+
*/
|
|
3168
3987
|
instanceId?: string | null;
|
|
3169
|
-
/**
|
|
3988
|
+
/**
|
|
3989
|
+
* Event type.
|
|
3990
|
+
* @maxLength 150
|
|
3991
|
+
*/
|
|
3170
3992
|
eventType?: string;
|
|
3171
3993
|
/** The identification type and identity data. */
|
|
3172
3994
|
identity?: IdentificationData;
|
|
@@ -3233,6 +4055,8 @@ export interface CheckoutCompletedEnvelope {
|
|
|
3233
4055
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
3234
4056
|
* @webhook
|
|
3235
4057
|
* @eventType wix.ecom.v1.checkout_completed
|
|
4058
|
+
* @serviceIdentifier com.wix.ecom.checkout.api.v1.CheckoutService
|
|
4059
|
+
* @slug completed
|
|
3236
4060
|
*/
|
|
3237
4061
|
export declare function onCheckoutCompleted(handler: (event: CheckoutCompletedEnvelope) => void | Promise<void>): void;
|
|
3238
4062
|
export interface CheckoutCreatedEnvelope {
|
|
@@ -3258,6 +4082,8 @@ export interface CheckoutCreatedEnvelope {
|
|
|
3258
4082
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
3259
4083
|
* @webhook
|
|
3260
4084
|
* @eventType wix.ecom.v1.checkout_created
|
|
4085
|
+
* @serviceIdentifier com.wix.ecom.checkout.api.v1.CheckoutService
|
|
4086
|
+
* @slug created
|
|
3261
4087
|
*/
|
|
3262
4088
|
export declare function onCheckoutCreated(handler: (event: CheckoutCreatedEnvelope) => void | Promise<void>): void;
|
|
3263
4089
|
export interface CheckoutUpdatedEnvelope {
|
|
@@ -3283,6 +4109,8 @@ export interface CheckoutUpdatedEnvelope {
|
|
|
3283
4109
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
3284
4110
|
* @webhook
|
|
3285
4111
|
* @eventType wix.ecom.v1.checkout_updated
|
|
4112
|
+
* @serviceIdentifier com.wix.ecom.checkout.api.v1.CheckoutService
|
|
4113
|
+
* @slug updated
|
|
3286
4114
|
*/
|
|
3287
4115
|
export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelope) => void | Promise<void>): void;
|
|
3288
4116
|
/**
|
|
@@ -3302,8 +4130,8 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
3302
4130
|
* @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships._id
|
|
3303
4131
|
* @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships.appId
|
|
3304
4132
|
* @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships.lineItemIds
|
|
3305
|
-
* @requiredField options.customLineItems.descriptionLines
|
|
3306
4133
|
* @requiredField options.customLineItems.descriptionLines.name
|
|
4134
|
+
* @requiredField options.customLineItems.descriptionLines.value
|
|
3307
4135
|
* @requiredField options.customLineItems.itemType
|
|
3308
4136
|
* @requiredField options.customLineItems.price
|
|
3309
4137
|
* @requiredField options.customLineItems.productName
|
|
@@ -3327,6 +4155,8 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
3327
4155
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3328
4156
|
* @permissionScope Manage eCommerce - Admin Permissions
|
|
3329
4157
|
* @permissionScopeId SCOPE.ECOM.MANAGE-ADMIN
|
|
4158
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
4159
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3330
4160
|
* @permissionScope Manage eCommerce - all permissions
|
|
3331
4161
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3332
4162
|
* @applicableIdentity APP
|
|
@@ -3340,28 +4170,20 @@ export interface CreateCheckoutOptions {
|
|
|
3340
4170
|
checkoutInfo?: Checkout;
|
|
3341
4171
|
/** The code of an existing coupon to apply to checkout. For more information, see the [Coupons API](https://www.wix.com/velo/reference/wix-marketing-backend/coupons). */
|
|
3342
4172
|
couponCode?: string | null;
|
|
3343
|
-
/**
|
|
4173
|
+
/**
|
|
4174
|
+
* Catalog line items to add to the checkout.
|
|
4175
|
+
* @maxSize 300
|
|
4176
|
+
*/
|
|
3344
4177
|
lineItems?: LineItem[];
|
|
3345
4178
|
/**
|
|
3346
4179
|
* Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.
|
|
3347
4180
|
*
|
|
3348
4181
|
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
3349
4182
|
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
4183
|
+
* @maxSize 300
|
|
3350
4184
|
*/
|
|
3351
4185
|
customLineItems?: CustomLineItem[];
|
|
3352
|
-
/**
|
|
3353
|
-
* Sales channel that submitted the order.
|
|
3354
|
-
* + `"UNSPECIFIED"`: Unspecified sales channel. This value is not supported.
|
|
3355
|
-
* + `"WEB"`: A web client.
|
|
3356
|
-
* + `"POS"`: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395)
|
|
3357
|
-
* + `"EBAY"`: [eBay](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop)
|
|
3358
|
-
* + `"AMAZON"`: [Amazon](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop)
|
|
3359
|
-
* + `"WISH"`: [Wish](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-a-wish-shop)
|
|
3360
|
-
* + `"WIX_INVOICES"`: Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings)
|
|
3361
|
-
* + `"WIX_APP_STORE"`: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview)
|
|
3362
|
-
* + `"BACKOFFICE_MERCHANT"`: Wix merchant backoffice
|
|
3363
|
-
* + `"OTHER_PLATFORM"`: Other sales platform.
|
|
3364
|
-
*/
|
|
4186
|
+
/** Sales channel that submitted the order. */
|
|
3365
4187
|
channelType: ChannelType;
|
|
3366
4188
|
/**
|
|
3367
4189
|
* Gift card code.
|
|
@@ -3375,6 +4197,7 @@ export interface CreateCheckoutOptions {
|
|
|
3375
4197
|
* `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
|
|
3376
4198
|
*
|
|
3377
4199
|
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
4200
|
+
* @maxLength 1000
|
|
3378
4201
|
*/
|
|
3379
4202
|
overrideCheckoutUrl?: string | null;
|
|
3380
4203
|
}
|
|
@@ -3411,7 +4234,6 @@ export declare function getCheckout(_id: string): Promise<Checkout & CheckoutNon
|
|
|
3411
4234
|
* Retrieves the checkout associated with a specified cart.
|
|
3412
4235
|
* @param _id - Cart ID.
|
|
3413
4236
|
* @public
|
|
3414
|
-
* @documentationMaturity preview
|
|
3415
4237
|
* @requiredField _id
|
|
3416
4238
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
3417
4239
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -3504,8 +4326,8 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
3504
4326
|
* @requiredField checkout.membershipOptions.selectedMemberships.memberships._id
|
|
3505
4327
|
* @requiredField checkout.membershipOptions.selectedMemberships.memberships.appId
|
|
3506
4328
|
* @requiredField checkout.membershipOptions.selectedMemberships.memberships.lineItemIds
|
|
3507
|
-
* @requiredField options.customLineItems.descriptionLines
|
|
3508
4329
|
* @requiredField options.customLineItems.descriptionLines.name
|
|
4330
|
+
* @requiredField options.customLineItems.descriptionLines.value
|
|
3509
4331
|
* @requiredField options.customLineItems.itemType
|
|
3510
4332
|
* @requiredField options.customLineItems.productName
|
|
3511
4333
|
* @requiredField options.customLineItems.quantity
|
|
@@ -3528,6 +4350,8 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
3528
4350
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3529
4351
|
* @permissionScope Manage eCommerce - Admin Permissions
|
|
3530
4352
|
* @permissionScopeId SCOPE.ECOM.MANAGE-ADMIN
|
|
4353
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
4354
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3531
4355
|
* @permissionScope Manage eCommerce - all permissions
|
|
3532
4356
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3533
4357
|
* @applicableIdentity APP
|
|
@@ -3539,6 +4363,7 @@ export declare function updateCheckout(_id: string | null, checkout: UpdateCheck
|
|
|
3539
4363
|
export interface UpdateCheckout {
|
|
3540
4364
|
/**
|
|
3541
4365
|
* Checkout ID.
|
|
4366
|
+
* @format GUID
|
|
3542
4367
|
* @readonly
|
|
3543
4368
|
*/
|
|
3544
4369
|
_id?: string | null;
|
|
@@ -3546,6 +4371,8 @@ export interface UpdateCheckout {
|
|
|
3546
4371
|
* Line items.
|
|
3547
4372
|
*
|
|
3548
4373
|
* Max: 300 items
|
|
4374
|
+
* @minSize 1
|
|
4375
|
+
* @maxSize 300
|
|
3549
4376
|
* @readonly
|
|
3550
4377
|
*/
|
|
3551
4378
|
lineItems?: LineItem[];
|
|
@@ -3553,13 +4380,17 @@ export interface UpdateCheckout {
|
|
|
3553
4380
|
billingInfo?: AddressWithContact;
|
|
3554
4381
|
/** Shipping information. */
|
|
3555
4382
|
shippingInfo?: ShippingInfo;
|
|
3556
|
-
/**
|
|
4383
|
+
/**
|
|
4384
|
+
* [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.
|
|
4385
|
+
* @maxLength 1000
|
|
4386
|
+
*/
|
|
3557
4387
|
buyerNote?: string | null;
|
|
3558
4388
|
/** Buyer information. */
|
|
3559
4389
|
buyerInfo?: BuyerInfo;
|
|
3560
4390
|
/**
|
|
3561
4391
|
* All converted prices are displayed in this currency in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
3562
4392
|
* @readonly
|
|
4393
|
+
* @format CURRENCY
|
|
3563
4394
|
*/
|
|
3564
4395
|
conversionCurrency?: string;
|
|
3565
4396
|
/**
|
|
@@ -3598,6 +4429,7 @@ export interface UpdateCheckout {
|
|
|
3598
4429
|
taxSummary?: TaxSummary;
|
|
3599
4430
|
/**
|
|
3600
4431
|
* The currency used when submitting the order.
|
|
4432
|
+
* @format CURRENCY
|
|
3601
4433
|
* @readonly
|
|
3602
4434
|
*/
|
|
3603
4435
|
currency?: string;
|
|
@@ -3655,9 +4487,15 @@ export interface UpdateCheckout {
|
|
|
3655
4487
|
payLater?: PriceSummary;
|
|
3656
4488
|
/** Memberships to apply when creating the order. */
|
|
3657
4489
|
membershipOptions?: MembershipOptions;
|
|
3658
|
-
/**
|
|
4490
|
+
/**
|
|
4491
|
+
* Additional Fees.
|
|
4492
|
+
* @maxSize 100
|
|
4493
|
+
*/
|
|
3659
4494
|
additionalFees?: AdditionalFee[];
|
|
3660
|
-
/**
|
|
4495
|
+
/**
|
|
4496
|
+
* Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart.
|
|
4497
|
+
* @format GUID
|
|
4498
|
+
*/
|
|
3661
4499
|
cartId?: string | null;
|
|
3662
4500
|
/**
|
|
3663
4501
|
* List of validation violations raised by the [Validations Custom Extension SPI](https://www.wix.com/velo/reference/spis/wix-ecom/ecom-validations/introduction).
|
|
@@ -3672,6 +4510,7 @@ export interface UpdateCheckout {
|
|
|
3672
4510
|
extendedFields?: ExtendedFields;
|
|
3673
4511
|
/**
|
|
3674
4512
|
* Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
4513
|
+
* @format GUID
|
|
3675
4514
|
* @readonly
|
|
3676
4515
|
*/
|
|
3677
4516
|
purchaseFlowId?: string | null;
|
|
@@ -3679,6 +4518,7 @@ export interface UpdateCheckout {
|
|
|
3679
4518
|
* Additional settings for customization of the checkout process.
|
|
3680
4519
|
*
|
|
3681
4520
|
* Custom settings can only be defined when [creating a checkout](https://www.wix.com/velo/reference/wix-ecom-backend/checkout/createcheckout).
|
|
4521
|
+
* @immutable
|
|
3682
4522
|
*/
|
|
3683
4523
|
customSettings?: CustomSettings;
|
|
3684
4524
|
/**
|
|
@@ -3693,6 +4533,7 @@ export interface UpdateCheckout {
|
|
|
3693
4533
|
*
|
|
3694
4534
|
* This field is empty until the checkout completes and becomes an order.
|
|
3695
4535
|
* @internal
|
|
4536
|
+
* @format GUID
|
|
3696
4537
|
* @readonly
|
|
3697
4538
|
*/
|
|
3698
4539
|
orderId?: string | null;
|
|
@@ -3705,6 +4546,7 @@ export interface UpdateCheckout {
|
|
|
3705
4546
|
/**
|
|
3706
4547
|
* The business location ID associated with the checkout.
|
|
3707
4548
|
* Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
4549
|
+
* @format GUID
|
|
3708
4550
|
*/
|
|
3709
4551
|
businessLocationId?: string | null;
|
|
3710
4552
|
/**
|
|
@@ -3717,6 +4559,13 @@ export interface UpdateCheckout {
|
|
|
3717
4559
|
* @readonly
|
|
3718
4560
|
*/
|
|
3719
4561
|
paymentRequired?: boolean;
|
|
4562
|
+
/**
|
|
4563
|
+
* Charges information for each subscription in the Checkout.
|
|
4564
|
+
* @internal
|
|
4565
|
+
* @readonly
|
|
4566
|
+
* @maxSize 100
|
|
4567
|
+
*/
|
|
4568
|
+
subscriptionCharges?: SubscriptionCharges[];
|
|
3720
4569
|
}
|
|
3721
4570
|
export interface UpdateCheckoutOptions {
|
|
3722
4571
|
/** The code of an existing coupon to apply to checkout. For more information, see the [Coupons API](https://www.wix.com/velo/reference/wix-marketing-backend/coupons). */
|
|
@@ -3727,15 +4576,20 @@ export interface UpdateCheckoutOptions {
|
|
|
3727
4576
|
* `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
|
|
3728
4577
|
*
|
|
3729
4578
|
* This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
|
|
4579
|
+
* @maxLength 1000
|
|
3730
4580
|
*/
|
|
3731
4581
|
overrideCheckoutUrl?: string | null;
|
|
3732
|
-
/**
|
|
4582
|
+
/**
|
|
4583
|
+
* Catalog line items.
|
|
4584
|
+
* @maxSize 300
|
|
4585
|
+
*/
|
|
3733
4586
|
lineItems?: LineItem[];
|
|
3734
4587
|
/**
|
|
3735
4588
|
* Custom line items. Custom line items don't trigger the Catalog service plugin.
|
|
3736
4589
|
*
|
|
3737
4590
|
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
3738
4591
|
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
4592
|
+
* @maxSize 300
|
|
3739
4593
|
*/
|
|
3740
4594
|
customLineItems?: CustomLineItem[];
|
|
3741
4595
|
}
|
|
@@ -3818,8 +4672,8 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
3818
4672
|
* @param _id - Checkout ID.
|
|
3819
4673
|
* @public
|
|
3820
4674
|
* @requiredField _id
|
|
3821
|
-
* @requiredField options.customLineItems.descriptionLines
|
|
3822
4675
|
* @requiredField options.customLineItems.descriptionLines.name
|
|
4676
|
+
* @requiredField options.customLineItems.descriptionLines.value
|
|
3823
4677
|
* @requiredField options.customLineItems.itemType
|
|
3824
4678
|
* @requiredField options.customLineItems.productName
|
|
3825
4679
|
* @requiredField options.customLineItems.quantity
|
|
@@ -3842,6 +4696,8 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
3842
4696
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3843
4697
|
* @permissionScope Manage eCommerce - Admin Permissions
|
|
3844
4698
|
* @permissionScopeId SCOPE.ECOM.MANAGE-ADMIN
|
|
4699
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
4700
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3845
4701
|
* @permissionScope Manage eCommerce - all permissions
|
|
3846
4702
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3847
4703
|
* @applicableIdentity APP
|
|
@@ -3850,13 +4706,17 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
3850
4706
|
*/
|
|
3851
4707
|
export declare function addToCheckout(_id: string, options?: AddToCheckoutOptions): Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
|
|
3852
4708
|
export interface AddToCheckoutOptions {
|
|
3853
|
-
/**
|
|
4709
|
+
/**
|
|
4710
|
+
* Catalog line items.
|
|
4711
|
+
* @maxSize 100
|
|
4712
|
+
*/
|
|
3854
4713
|
lineItems?: LineItem[];
|
|
3855
4714
|
/**
|
|
3856
4715
|
* Custom line items. Custom line items don't trigger the Catalog service plugin.
|
|
3857
4716
|
*
|
|
3858
4717
|
* To access and manage custom line items, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
3859
4718
|
* Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
4719
|
+
* @maxSize 100
|
|
3860
4720
|
*/
|
|
3861
4721
|
customLineItems?: CustomLineItem[];
|
|
3862
4722
|
}
|
|
@@ -3950,6 +4810,26 @@ export interface CreateOrderAndChargeOptions {
|
|
|
3950
4810
|
/** Indicates whether to authorize the payment and delay the capture */
|
|
3951
4811
|
delayCapture?: boolean;
|
|
3952
4812
|
}
|
|
4813
|
+
/**
|
|
4814
|
+
* Marks a checkout as completed and redirects to a specified URL.
|
|
4815
|
+
* @param token - Server-signed JWT token with required information to complete checkout
|
|
4816
|
+
* @internal
|
|
4817
|
+
* @documentationMaturity preview
|
|
4818
|
+
* @requiredField token
|
|
4819
|
+
* @permissionId ECOM.MODIFY_CHECKOUTS
|
|
4820
|
+
* @permissionScope Manage Stores - all permissions
|
|
4821
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
4822
|
+
* @permissionScope Manage Restaurants - all permissions
|
|
4823
|
+
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4824
|
+
* @permissionScope Manage eCommerce - all permissions
|
|
4825
|
+
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4826
|
+
* @permissionScope Manage Orders
|
|
4827
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4828
|
+
* @applicableIdentity APP
|
|
4829
|
+
* @applicableIdentity VISITOR
|
|
4830
|
+
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl
|
|
4831
|
+
*/
|
|
4832
|
+
export declare function markCheckoutAsCompletedAndRedirectToUrl(token: string): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
|
|
3953
4833
|
/**
|
|
3954
4834
|
* Marks a checkout as completed - `checkout.complete` boolean is set to `true`.
|
|
3955
4835
|
*
|