@wix/auto_sdk_ecom_subscription-contracts 1.0.1 → 1.0.2
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-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +457 -105
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +478 -107
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
- package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +457 -105
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +478 -107
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
- package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +457 -105
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +487 -107
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
- package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +457 -105
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +487 -107
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
- package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
export interface SubscriptionContract {
|
|
8
8
|
/**
|
|
9
9
|
* SubscriptionContract ID.
|
|
10
|
+
* @format GUID
|
|
10
11
|
* @readonly
|
|
11
12
|
*/
|
|
12
13
|
id?: string | null;
|
|
@@ -28,12 +29,20 @@ export interface SubscriptionContract {
|
|
|
28
29
|
* @readonly
|
|
29
30
|
*/
|
|
30
31
|
updatedDate?: Date | null;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Subscription option description. For example, `"1kg of selected coffee, once a month"`.
|
|
34
|
+
* @maxLength 500
|
|
35
|
+
*/
|
|
32
36
|
description?: string | null;
|
|
33
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Subscription detailed information.
|
|
39
|
+
* @immutable
|
|
40
|
+
*/
|
|
34
41
|
subscriptionSettings?: V1SubscriptionSettings;
|
|
35
42
|
/**
|
|
36
43
|
* Order line items.
|
|
44
|
+
* @minSize 1
|
|
45
|
+
* @maxSize 1
|
|
37
46
|
* @readonly
|
|
38
47
|
*/
|
|
39
48
|
lineItems?: OrderLineItem[];
|
|
@@ -46,12 +55,17 @@ export interface SubscriptionContract {
|
|
|
46
55
|
buyerLanguage?: string | null;
|
|
47
56
|
/** Weight measurement unit - defaults to site's weight unit. */
|
|
48
57
|
weightUnit?: WeightUnit;
|
|
49
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
|
|
60
|
+
* @format CURRENCY
|
|
61
|
+
* @immutable
|
|
62
|
+
*/
|
|
50
63
|
currency?: string | null;
|
|
51
64
|
/**
|
|
52
65
|
* Whether tax is included in line item prices.
|
|
53
66
|
*
|
|
54
67
|
* Default: `false`
|
|
68
|
+
* @immutable
|
|
55
69
|
*/
|
|
56
70
|
taxIncludedInPrices?: boolean;
|
|
57
71
|
/**
|
|
@@ -83,19 +97,33 @@ export interface SubscriptionContract {
|
|
|
83
97
|
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.
|
|
84
98
|
*/
|
|
85
99
|
extendedFields?: ExtendedFields;
|
|
86
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* Subscription option title. For example, `"Monthly coffee Subscription"`.
|
|
102
|
+
* @minLength 1
|
|
103
|
+
* @maxLength 150
|
|
104
|
+
*/
|
|
87
105
|
title?: string | null;
|
|
88
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Additional fees applied to subscription contract.
|
|
108
|
+
* @maxSize 100
|
|
109
|
+
*/
|
|
89
110
|
additionalFees?: AdditionalFee[];
|
|
90
111
|
}
|
|
91
112
|
export interface V1SubscriptionSettings {
|
|
92
113
|
/** Frequency of recurring payment. */
|
|
93
114
|
frequency?: SubscriptionFrequency;
|
|
94
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Interval of recurring payment.
|
|
117
|
+
* @min 1
|
|
118
|
+
* @max 50
|
|
119
|
+
*/
|
|
95
120
|
interval?: number | null;
|
|
96
121
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
97
122
|
autoRenewal?: boolean;
|
|
98
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.
|
|
125
|
+
* @min 1
|
|
126
|
+
*/
|
|
99
127
|
billingCycles?: number | null;
|
|
100
128
|
/** Whether to allow the customer to cancel the subscription. */
|
|
101
129
|
enableCustomerCancellation?: boolean;
|
|
@@ -110,11 +138,18 @@ export declare enum SubscriptionFrequency {
|
|
|
110
138
|
export interface V1FreeTrialPeriod {
|
|
111
139
|
/** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
|
|
112
140
|
frequency?: SubscriptionFrequency;
|
|
113
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* interval of period
|
|
143
|
+
* @min 1
|
|
144
|
+
* @max 50
|
|
145
|
+
*/
|
|
114
146
|
interval?: number;
|
|
115
147
|
}
|
|
116
148
|
export interface OrderLineItem {
|
|
117
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Line item ID.
|
|
151
|
+
* @immutable
|
|
152
|
+
*/
|
|
118
153
|
id?: string;
|
|
119
154
|
/**
|
|
120
155
|
* Item name.
|
|
@@ -128,14 +163,21 @@ export interface OrderLineItem {
|
|
|
128
163
|
* This field may be empty in the case of a custom line item.
|
|
129
164
|
*/
|
|
130
165
|
catalogReference?: CatalogReference;
|
|
131
|
-
/**
|
|
166
|
+
/**
|
|
167
|
+
* Line item quantity.
|
|
168
|
+
* @min 1
|
|
169
|
+
* @max 100000
|
|
170
|
+
*/
|
|
132
171
|
quantity?: number;
|
|
133
172
|
/**
|
|
134
173
|
* Total discount for this line item's entire quantity.
|
|
135
174
|
* @readonly
|
|
136
175
|
*/
|
|
137
176
|
totalDiscount?: Price;
|
|
138
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* Line item description lines. Used for display purposes for the cart, checkout and order.
|
|
179
|
+
* @maxSize 20
|
|
180
|
+
*/
|
|
139
181
|
descriptionLines?: DescriptionLine[];
|
|
140
182
|
/** Line item image. */
|
|
141
183
|
image?: Image;
|
|
@@ -146,11 +188,18 @@ export interface OrderLineItem {
|
|
|
146
188
|
/**
|
|
147
189
|
* Fulfiller ID. Field is empty when the line item is self-fulfilled.
|
|
148
190
|
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).
|
|
191
|
+
* @format GUID
|
|
149
192
|
*/
|
|
150
193
|
fulfillerId?: string | null;
|
|
151
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Number of items that were refunded.
|
|
196
|
+
* @max 100000
|
|
197
|
+
*/
|
|
152
198
|
refundQuantity?: number | null;
|
|
153
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Number of items restocked.
|
|
201
|
+
* @max 100000
|
|
202
|
+
*/
|
|
154
203
|
restockQuantity?: number | null;
|
|
155
204
|
/** Line item price after line item discounts for display purposes. */
|
|
156
205
|
price?: Price;
|
|
@@ -170,11 +219,9 @@ export interface OrderLineItem {
|
|
|
170
219
|
*/
|
|
171
220
|
totalPriceAfterTax?: Price;
|
|
172
221
|
/**
|
|
173
|
-
* Type of selected payment option for current item.
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
|
|
177
|
-
* + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Eligible for catalog items with type `DEPOSIT_ONLINE` only.
|
|
222
|
+
* Type of selected payment option for current item.
|
|
223
|
+
*
|
|
224
|
+
* Default: `FULL_PAYMENT_ONLINE`
|
|
178
225
|
*/
|
|
179
226
|
paymentOption?: PaymentOptionType;
|
|
180
227
|
/**
|
|
@@ -214,6 +261,8 @@ export interface ProductName {
|
|
|
214
261
|
*
|
|
215
262
|
* Min: 1 character.
|
|
216
263
|
* Max: 200 characters.
|
|
264
|
+
* @minLength 1
|
|
265
|
+
* @maxLength 200
|
|
217
266
|
*/
|
|
218
267
|
original?: string;
|
|
219
268
|
/**
|
|
@@ -222,12 +271,18 @@ export interface ProductName {
|
|
|
222
271
|
* Min: 1 character.
|
|
223
272
|
* Max: 400 characters.
|
|
224
273
|
* Default: Same as `original`.
|
|
274
|
+
* @minLength 1
|
|
275
|
+
* @maxLength 400
|
|
225
276
|
*/
|
|
226
277
|
translated?: string | null;
|
|
227
278
|
}
|
|
228
279
|
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
229
280
|
export interface CatalogReference {
|
|
230
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* ID of the item within the catalog it belongs to.
|
|
283
|
+
* @minLength 1
|
|
284
|
+
* @maxLength 36
|
|
285
|
+
*/
|
|
231
286
|
catalogItemId?: string;
|
|
232
287
|
/**
|
|
233
288
|
* ID of the app providing the catalog.
|
|
@@ -238,6 +293,7 @@ export interface CatalogReference {
|
|
|
238
293
|
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
239
294
|
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
240
295
|
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
296
|
+
* @minLength 1
|
|
241
297
|
*/
|
|
242
298
|
appId?: string;
|
|
243
299
|
/**
|
|
@@ -248,7 +304,10 @@ export interface CatalogReference {
|
|
|
248
304
|
options?: Record<string, any> | null;
|
|
249
305
|
}
|
|
250
306
|
export interface Price {
|
|
251
|
-
/**
|
|
307
|
+
/**
|
|
308
|
+
* Amount.
|
|
309
|
+
* @decimalValue options { gte:0, lte:1000000000000000 }
|
|
310
|
+
*/
|
|
252
311
|
amount?: string;
|
|
253
312
|
/**
|
|
254
313
|
* Amount formatted with currency symbol.
|
|
@@ -275,32 +334,44 @@ export interface DescriptionLineValueOneOf {
|
|
|
275
334
|
export interface DescriptionLineDescriptionLineValueOneOf {
|
|
276
335
|
}
|
|
277
336
|
export interface DescriptionLineName {
|
|
278
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* 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).
|
|
339
|
+
* @maxLength 100
|
|
340
|
+
*/
|
|
279
341
|
original?: string;
|
|
280
342
|
/**
|
|
281
343
|
* Description line name translated into the buyer's language.
|
|
282
344
|
*
|
|
283
345
|
* Default: Same as `original`.
|
|
346
|
+
* @maxLength 200
|
|
284
347
|
*/
|
|
285
348
|
translated?: string | null;
|
|
286
349
|
}
|
|
287
350
|
export interface PlainTextValue {
|
|
288
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* 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).
|
|
353
|
+
* @maxLength 600
|
|
354
|
+
*/
|
|
289
355
|
original?: string;
|
|
290
356
|
/**
|
|
291
357
|
* Description line plain text value translated into the buyer's language.
|
|
292
358
|
*
|
|
293
359
|
* Default: Same as `original`.
|
|
360
|
+
* @maxLength 600
|
|
294
361
|
*/
|
|
295
362
|
translated?: string | null;
|
|
296
363
|
}
|
|
297
364
|
export interface Color {
|
|
298
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* 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).
|
|
367
|
+
* @maxLength 500
|
|
368
|
+
*/
|
|
299
369
|
original?: string;
|
|
300
370
|
/**
|
|
301
371
|
* Description line color name translated into the buyer's language.
|
|
302
372
|
*
|
|
303
373
|
* Default: Same as `original`.
|
|
374
|
+
* @maxLength 500
|
|
304
375
|
*/
|
|
305
376
|
translated?: string | null;
|
|
306
377
|
/** HEX or RGB color code for display. */
|
|
@@ -350,7 +421,10 @@ export interface FocalPoint {
|
|
|
350
421
|
export interface PhysicalProperties {
|
|
351
422
|
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
352
423
|
weight?: number | null;
|
|
353
|
-
/**
|
|
424
|
+
/**
|
|
425
|
+
* Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
426
|
+
* @maxLength 40
|
|
427
|
+
*/
|
|
354
428
|
sku?: string | null;
|
|
355
429
|
/** Whether this line item is shippable. */
|
|
356
430
|
shippable?: boolean;
|
|
@@ -391,7 +465,10 @@ export declare enum PaymentOptionType {
|
|
|
391
465
|
export interface ItemTaxFullDetails {
|
|
392
466
|
/** Taxable amount of this line item. */
|
|
393
467
|
taxableAmount?: Price;
|
|
394
|
-
/**
|
|
468
|
+
/**
|
|
469
|
+
* Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.
|
|
470
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
471
|
+
*/
|
|
395
472
|
taxRate?: string;
|
|
396
473
|
/** The calculated tax, based on the `taxableAmount` and `taxRate`. */
|
|
397
474
|
totalTax?: Price;
|
|
@@ -401,16 +478,24 @@ export interface LineItemTaxInfo {
|
|
|
401
478
|
taxAmount?: Price;
|
|
402
479
|
/** Amount for which tax is calculated. */
|
|
403
480
|
taxableAmount?: Price;
|
|
404
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* Tax rate %, as a decimal point.
|
|
483
|
+
* @format DECIMAL_VALUE
|
|
484
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
485
|
+
*/
|
|
405
486
|
taxRate?: string | null;
|
|
406
487
|
/**
|
|
407
488
|
* Tax group ID.
|
|
408
489
|
* Learn more about [Tax Groups](https://dev.wix.com/docs/rest/business-management/payments/tax/tax-groups/introduction).
|
|
490
|
+
* @format GUID
|
|
409
491
|
*/
|
|
410
492
|
taxGroupId?: string | null;
|
|
411
493
|
/** Indicates whether the price already includes tax. */
|
|
412
494
|
taxIncludedInPrice?: boolean;
|
|
413
|
-
/**
|
|
495
|
+
/**
|
|
496
|
+
* Tax information for a line item.
|
|
497
|
+
* @maxSize 7
|
|
498
|
+
*/
|
|
414
499
|
taxBreakdown?: LineItemTaxBreakdown[];
|
|
415
500
|
}
|
|
416
501
|
/**
|
|
@@ -418,17 +503,28 @@ export interface LineItemTaxInfo {
|
|
|
418
503
|
* It holds the tax amount and the tax rate for each tax authority that apply on the line item.
|
|
419
504
|
*/
|
|
420
505
|
export interface LineItemTaxBreakdown {
|
|
421
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
|
|
508
|
+
* @maxLength 200
|
|
509
|
+
*/
|
|
422
510
|
jurisdiction?: string | null;
|
|
423
|
-
/**
|
|
511
|
+
/**
|
|
512
|
+
* Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.
|
|
513
|
+
* @format DECIMAL_VALUE
|
|
514
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
515
|
+
*/
|
|
424
516
|
rate?: string | null;
|
|
425
517
|
/** Amount of tax calculated for this line item. */
|
|
426
518
|
taxAmount?: Price;
|
|
427
|
-
/**
|
|
519
|
+
/**
|
|
520
|
+
* The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
|
|
521
|
+
* @maxLength 200
|
|
522
|
+
*/
|
|
428
523
|
taxType?: string | null;
|
|
429
524
|
/**
|
|
430
525
|
* The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
431
526
|
* This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
527
|
+
* @maxLength 200
|
|
432
528
|
*/
|
|
433
529
|
taxName?: string | null;
|
|
434
530
|
/** Type of jurisdiction that taxes were calculated for. */
|
|
@@ -448,9 +544,18 @@ export declare enum JurisdictionType {
|
|
|
448
544
|
SPECIAL = "SPECIAL"
|
|
449
545
|
}
|
|
450
546
|
export interface DigitalFile {
|
|
451
|
-
/**
|
|
547
|
+
/**
|
|
548
|
+
* ID of the secure file in media.
|
|
549
|
+
* @minLength 1
|
|
550
|
+
* @maxLength 100
|
|
551
|
+
*/
|
|
452
552
|
fileId?: string;
|
|
453
|
-
/**
|
|
553
|
+
/**
|
|
554
|
+
* Link will exist after the digital links have been generated on the order.
|
|
555
|
+
* @format WEB_URL
|
|
556
|
+
* @minLength 1
|
|
557
|
+
* @maxLength 2000
|
|
558
|
+
*/
|
|
454
559
|
link?: string | null;
|
|
455
560
|
/**
|
|
456
561
|
* Link expiration time and date.
|
|
@@ -459,25 +564,48 @@ export interface DigitalFile {
|
|
|
459
564
|
expirationDate?: Date | null;
|
|
460
565
|
}
|
|
461
566
|
export interface SubscriptionInfo {
|
|
462
|
-
/**
|
|
567
|
+
/**
|
|
568
|
+
* Subscription ID.
|
|
569
|
+
* @format GUID
|
|
570
|
+
*/
|
|
463
571
|
id?: string | null;
|
|
464
|
-
/**
|
|
572
|
+
/**
|
|
573
|
+
* Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`.
|
|
574
|
+
* @min 1
|
|
575
|
+
*/
|
|
465
576
|
cycleNumber?: number;
|
|
466
|
-
/**
|
|
577
|
+
/**
|
|
578
|
+
* Subscription option title. For example, `"Monthly coffee Subscription"`.
|
|
579
|
+
* @minLength 1
|
|
580
|
+
* @maxLength 20
|
|
581
|
+
*/
|
|
467
582
|
subscriptionOptionTitle?: string;
|
|
468
|
-
/**
|
|
583
|
+
/**
|
|
584
|
+
* Subscription option description. For example, `"1kg of selected coffee, once a month"`.
|
|
585
|
+
* @maxLength 60
|
|
586
|
+
*/
|
|
469
587
|
subscriptionOptionDescription?: string | null;
|
|
470
|
-
/**
|
|
588
|
+
/**
|
|
589
|
+
* Subscription detailed information.
|
|
590
|
+
* @immutable
|
|
591
|
+
*/
|
|
471
592
|
subscriptionSettings?: SubscriptionSettings;
|
|
472
593
|
}
|
|
473
594
|
export interface SubscriptionSettings {
|
|
474
595
|
/** Frequency of recurring payment. */
|
|
475
596
|
frequency?: V2SubscriptionFrequency;
|
|
476
|
-
/**
|
|
597
|
+
/**
|
|
598
|
+
* Interval of recurring payment.
|
|
599
|
+
* @min 1
|
|
600
|
+
* @max 50
|
|
601
|
+
*/
|
|
477
602
|
interval?: number | null;
|
|
478
603
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
479
604
|
autoRenewal?: boolean;
|
|
480
|
-
/**
|
|
605
|
+
/**
|
|
606
|
+
* Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.
|
|
607
|
+
* @min 1
|
|
608
|
+
*/
|
|
481
609
|
billingCycles?: number | null;
|
|
482
610
|
}
|
|
483
611
|
/** Frequency unit of recurring payment */
|
|
@@ -491,29 +619,47 @@ export declare enum V2SubscriptionFrequency {
|
|
|
491
619
|
export interface FreeTrialPeriod {
|
|
492
620
|
/** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
|
|
493
621
|
frequency?: V2SubscriptionFrequency;
|
|
494
|
-
/**
|
|
622
|
+
/**
|
|
623
|
+
* interval of period
|
|
624
|
+
* @min 1
|
|
625
|
+
* @max 50
|
|
626
|
+
*/
|
|
495
627
|
interval?: number;
|
|
496
628
|
}
|
|
497
629
|
export interface PriceDescription {
|
|
498
|
-
/**
|
|
630
|
+
/**
|
|
631
|
+
* __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).
|
|
632
|
+
* @minLength 1
|
|
633
|
+
* @maxLength 100
|
|
634
|
+
*/
|
|
499
635
|
original?: string;
|
|
500
636
|
/**
|
|
501
637
|
* Price description translated into the buyer's language.
|
|
502
638
|
*
|
|
503
639
|
* Default: Same as `original`.
|
|
640
|
+
* @minLength 1
|
|
641
|
+
* @maxLength 100
|
|
504
642
|
*/
|
|
505
643
|
translated?: string | null;
|
|
506
644
|
}
|
|
507
645
|
export interface LocationAndQuantity {
|
|
508
|
-
/**
|
|
646
|
+
/**
|
|
647
|
+
* Location id in the associated owner app.
|
|
648
|
+
* @format GUID
|
|
649
|
+
*/
|
|
509
650
|
id?: string;
|
|
510
651
|
/**
|
|
511
652
|
* Location owner app, if not provided then the site business info locations will be used.
|
|
653
|
+
* @format GUID
|
|
512
654
|
* @deprecated Location owner app, if not provided then the site business info locations will be used.
|
|
513
655
|
* @targetRemovalDate 2025-03-01
|
|
514
656
|
*/
|
|
515
657
|
appId?: string | null;
|
|
516
|
-
/**
|
|
658
|
+
/**
|
|
659
|
+
* Quantity for specific location.
|
|
660
|
+
* @min 1
|
|
661
|
+
* @max 100000
|
|
662
|
+
*/
|
|
517
663
|
quantity?: number;
|
|
518
664
|
}
|
|
519
665
|
export interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
|
|
@@ -544,20 +690,38 @@ export interface ExtendedFields {
|
|
|
544
690
|
}
|
|
545
691
|
/** Buyer Info */
|
|
546
692
|
export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
547
|
-
/**
|
|
693
|
+
/**
|
|
694
|
+
* Visitor ID (if site visitor is not a member).
|
|
695
|
+
* @format GUID
|
|
696
|
+
*/
|
|
548
697
|
visitorId?: string;
|
|
549
|
-
/**
|
|
698
|
+
/**
|
|
699
|
+
* Member ID (if site visitor is a site member).
|
|
700
|
+
* @format GUID
|
|
701
|
+
*/
|
|
550
702
|
memberId?: string;
|
|
551
|
-
/**
|
|
703
|
+
/**
|
|
704
|
+
* Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).
|
|
705
|
+
* @format GUID
|
|
706
|
+
*/
|
|
552
707
|
contactId?: string | null;
|
|
553
|
-
/**
|
|
708
|
+
/**
|
|
709
|
+
* Buyer email address.
|
|
710
|
+
* @format EMAIL
|
|
711
|
+
*/
|
|
554
712
|
email?: string | null;
|
|
555
713
|
}
|
|
556
714
|
/** @oneof */
|
|
557
715
|
export interface BuyerInfoIdOneOf {
|
|
558
|
-
/**
|
|
716
|
+
/**
|
|
717
|
+
* Visitor ID (if site visitor is not a member).
|
|
718
|
+
* @format GUID
|
|
719
|
+
*/
|
|
559
720
|
visitorId?: string;
|
|
560
|
-
/**
|
|
721
|
+
/**
|
|
722
|
+
* Member ID (if site visitor is a site member).
|
|
723
|
+
* @format GUID
|
|
724
|
+
*/
|
|
561
725
|
memberId?: string;
|
|
562
726
|
}
|
|
563
727
|
export declare enum WeightUnit {
|
|
@@ -591,19 +755,37 @@ export interface AddressWithContact {
|
|
|
591
755
|
}
|
|
592
756
|
/** Physical address */
|
|
593
757
|
export interface Address {
|
|
594
|
-
/**
|
|
758
|
+
/**
|
|
759
|
+
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
760
|
+
* @format COUNTRY
|
|
761
|
+
*/
|
|
595
762
|
country?: string | null;
|
|
596
|
-
/**
|
|
763
|
+
/**
|
|
764
|
+
* Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
765
|
+
* @maxLength 50
|
|
766
|
+
*/
|
|
597
767
|
subdivision?: string | null;
|
|
598
|
-
/**
|
|
768
|
+
/**
|
|
769
|
+
* City name.
|
|
770
|
+
* @maxLength 50
|
|
771
|
+
*/
|
|
599
772
|
city?: string | null;
|
|
600
|
-
/**
|
|
773
|
+
/**
|
|
774
|
+
* Postal or zip code.
|
|
775
|
+
* @maxLength 50
|
|
776
|
+
*/
|
|
601
777
|
postalCode?: string | null;
|
|
602
778
|
/** Street address. */
|
|
603
779
|
streetAddress?: StreetAddress;
|
|
604
|
-
/**
|
|
780
|
+
/**
|
|
781
|
+
* Main address line (usually street name and number).
|
|
782
|
+
* @maxLength 150
|
|
783
|
+
*/
|
|
605
784
|
addressLine?: string | null;
|
|
606
|
-
/**
|
|
785
|
+
/**
|
|
786
|
+
* Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
787
|
+
* @maxLength 100
|
|
788
|
+
*/
|
|
607
789
|
addressLine2?: string | null;
|
|
608
790
|
/**
|
|
609
791
|
* Country's full name.
|
|
@@ -630,13 +812,25 @@ export interface AddressLocation {
|
|
|
630
812
|
}
|
|
631
813
|
/** Full contact details for an address */
|
|
632
814
|
export interface FullAddressContactDetails {
|
|
633
|
-
/**
|
|
815
|
+
/**
|
|
816
|
+
* First name.
|
|
817
|
+
* @maxLength 100
|
|
818
|
+
*/
|
|
634
819
|
firstName?: string | null;
|
|
635
|
-
/**
|
|
820
|
+
/**
|
|
821
|
+
* Last name.
|
|
822
|
+
* @maxLength 100
|
|
823
|
+
*/
|
|
636
824
|
lastName?: string | null;
|
|
637
|
-
/**
|
|
825
|
+
/**
|
|
826
|
+
* Phone number.
|
|
827
|
+
* @format PHONE
|
|
828
|
+
*/
|
|
638
829
|
phone?: string | null;
|
|
639
|
-
/**
|
|
830
|
+
/**
|
|
831
|
+
* Company name.
|
|
832
|
+
* @maxLength 1000
|
|
833
|
+
*/
|
|
640
834
|
company?: string | null;
|
|
641
835
|
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
642
836
|
vatId?: VatId;
|
|
@@ -662,13 +856,22 @@ export declare enum VatType {
|
|
|
662
856
|
CNPJ = "CNPJ"
|
|
663
857
|
}
|
|
664
858
|
export interface ShippingInformation {
|
|
665
|
-
/**
|
|
859
|
+
/**
|
|
860
|
+
* App Def Id of external provider which was a source of shipping info
|
|
861
|
+
* @minLength 1
|
|
862
|
+
* @maxLength 100
|
|
863
|
+
*/
|
|
666
864
|
carrierId?: string | null;
|
|
667
|
-
/**
|
|
865
|
+
/**
|
|
866
|
+
* Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`.
|
|
867
|
+
* @minLength 1
|
|
868
|
+
* @maxLength 100
|
|
869
|
+
*/
|
|
668
870
|
code?: string | null;
|
|
669
871
|
/**
|
|
670
872
|
* Shipping option title.
|
|
671
873
|
* For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
|
|
874
|
+
* @maxLength 250
|
|
672
875
|
*/
|
|
673
876
|
title?: string;
|
|
674
877
|
/** Shipping logistics. */
|
|
@@ -683,9 +886,15 @@ export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
|
|
|
683
886
|
shippingDestination?: AddressWithContact;
|
|
684
887
|
/** Pickup details. */
|
|
685
888
|
pickupDetails?: PickupDetails;
|
|
686
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* Expected delivery time in free text. For example, `"3-5 business days"`.
|
|
891
|
+
* @maxLength 500
|
|
892
|
+
*/
|
|
687
893
|
deliveryTime?: string | null;
|
|
688
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`.
|
|
896
|
+
* @maxLength 1000
|
|
897
|
+
*/
|
|
689
898
|
instructions?: string | null;
|
|
690
899
|
/**
|
|
691
900
|
* Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
@@ -710,19 +919,37 @@ export interface PickupDetails {
|
|
|
710
919
|
}
|
|
711
920
|
/** Physical address */
|
|
712
921
|
export interface PickupAddress {
|
|
713
|
-
/**
|
|
922
|
+
/**
|
|
923
|
+
* Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
924
|
+
* @format COUNTRY
|
|
925
|
+
*/
|
|
714
926
|
country?: string | null;
|
|
715
|
-
/**
|
|
927
|
+
/**
|
|
928
|
+
* Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
929
|
+
* @maxLength 50
|
|
930
|
+
*/
|
|
716
931
|
subdivision?: string | null;
|
|
717
|
-
/**
|
|
932
|
+
/**
|
|
933
|
+
* City name.
|
|
934
|
+
* @maxLength 1000
|
|
935
|
+
*/
|
|
718
936
|
city?: string | null;
|
|
719
|
-
/**
|
|
937
|
+
/**
|
|
938
|
+
* Postal or zip code.
|
|
939
|
+
* @maxLength 1000
|
|
940
|
+
*/
|
|
720
941
|
postalCode?: string | null;
|
|
721
942
|
/** Street address object, with number, name, and apartment number in separate fields. */
|
|
722
943
|
streetAddress?: StreetAddress;
|
|
723
|
-
/**
|
|
944
|
+
/**
|
|
945
|
+
* Main address line (usually street name and number).
|
|
946
|
+
* @maxLength 1000
|
|
947
|
+
*/
|
|
724
948
|
addressLine?: string | null;
|
|
725
|
-
/**
|
|
949
|
+
/**
|
|
950
|
+
* Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
951
|
+
* @maxLength 1000
|
|
952
|
+
*/
|
|
726
953
|
addressLine2?: string | null;
|
|
727
954
|
/**
|
|
728
955
|
* Country's full name.
|
|
@@ -768,13 +995,19 @@ export interface ShippingPrice {
|
|
|
768
995
|
discount?: Price;
|
|
769
996
|
}
|
|
770
997
|
export interface ShippingRegion {
|
|
771
|
-
/**
|
|
998
|
+
/**
|
|
999
|
+
* Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
|
|
1000
|
+
* @maxLength 100
|
|
1001
|
+
*/
|
|
772
1002
|
name?: string | null;
|
|
773
1003
|
}
|
|
774
1004
|
export interface OrderTaxInfo {
|
|
775
1005
|
/** Calculated tax, added from line items. */
|
|
776
1006
|
totalTax?: Price;
|
|
777
|
-
/**
|
|
1007
|
+
/**
|
|
1008
|
+
* The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
|
|
1009
|
+
* @maxSize 50
|
|
1010
|
+
*/
|
|
778
1011
|
taxBreakdown?: OrderTaxBreakdown[];
|
|
779
1012
|
/**
|
|
780
1013
|
* Whether the order is exempt from tax calculations.
|
|
@@ -789,15 +1022,28 @@ export interface OrderTaxInfo {
|
|
|
789
1022
|
* Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
|
|
790
1023
|
*/
|
|
791
1024
|
export interface OrderTaxBreakdown {
|
|
792
|
-
/**
|
|
1025
|
+
/**
|
|
1026
|
+
* The name of the tax against which this tax amount was calculated.
|
|
1027
|
+
* @maxLength 200
|
|
1028
|
+
*/
|
|
793
1029
|
taxName?: string;
|
|
794
|
-
/**
|
|
1030
|
+
/**
|
|
1031
|
+
* The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
|
|
1032
|
+
* @maxLength 200
|
|
1033
|
+
*/
|
|
795
1034
|
taxType?: string;
|
|
796
|
-
/**
|
|
1035
|
+
/**
|
|
1036
|
+
* The name of the jurisdiction in which this tax detail applies.
|
|
1037
|
+
* @maxLength 200
|
|
1038
|
+
*/
|
|
797
1039
|
jurisdiction?: string;
|
|
798
1040
|
/** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
799
1041
|
jurisdictionType?: JurisdictionType;
|
|
800
|
-
/**
|
|
1042
|
+
/**
|
|
1043
|
+
* The rate at which this tax detail was calculated.
|
|
1044
|
+
* @format DECIMAL_VALUE
|
|
1045
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
1046
|
+
*/
|
|
801
1047
|
rate?: string;
|
|
802
1048
|
/** The sum of all the tax from line items that calculated by the tax identifiers. */
|
|
803
1049
|
aggregatedTaxAmount?: Price;
|
|
@@ -819,13 +1065,19 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
819
1065
|
/**
|
|
820
1066
|
* IDs of line items discount applies to.
|
|
821
1067
|
* Deprecated. Use `line_item_discounts` instead.
|
|
1068
|
+
* @format GUID
|
|
1069
|
+
* @maxSize 1
|
|
822
1070
|
* @deprecated IDs of line items discount applies to.
|
|
823
1071
|
* Deprecated. Use `line_item_discounts` instead.
|
|
824
1072
|
* @replacedBy line_item_discounts
|
|
825
1073
|
* @targetRemovalDate 2024-10-30
|
|
826
1074
|
*/
|
|
827
1075
|
lineItemIds?: string[];
|
|
828
|
-
/**
|
|
1076
|
+
/**
|
|
1077
|
+
* Discount id.
|
|
1078
|
+
* @format GUID
|
|
1079
|
+
* @immutable
|
|
1080
|
+
*/
|
|
829
1081
|
id?: string | null;
|
|
830
1082
|
}
|
|
831
1083
|
/** @oneof */
|
|
@@ -859,7 +1111,10 @@ export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReason
|
|
|
859
1111
|
* * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
860
1112
|
*/
|
|
861
1113
|
discountReason?: DiscountReason;
|
|
862
|
-
/**
|
|
1114
|
+
/**
|
|
1115
|
+
* Discount description as free text (optional).
|
|
1116
|
+
* @maxLength 200
|
|
1117
|
+
*/
|
|
863
1118
|
description?: string | null;
|
|
864
1119
|
/** Discount amount. */
|
|
865
1120
|
amount?: Price;
|
|
@@ -871,7 +1126,10 @@ export interface MerchantDiscountMerchantDiscountReasonOneOf {
|
|
|
871
1126
|
* * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
872
1127
|
*/
|
|
873
1128
|
discountReason?: DiscountReason;
|
|
874
|
-
/**
|
|
1129
|
+
/**
|
|
1130
|
+
* Discount description as free text (optional).
|
|
1131
|
+
* @maxLength 200
|
|
1132
|
+
*/
|
|
875
1133
|
description?: string | null;
|
|
876
1134
|
}
|
|
877
1135
|
export declare enum DiscountReason {
|
|
@@ -879,7 +1137,10 @@ export declare enum DiscountReason {
|
|
|
879
1137
|
EXCHANGED_ITEMS = "EXCHANGED_ITEMS"
|
|
880
1138
|
}
|
|
881
1139
|
export interface DiscountRule {
|
|
882
|
-
/**
|
|
1140
|
+
/**
|
|
1141
|
+
* Discount rule ID
|
|
1142
|
+
* @format GUID
|
|
1143
|
+
*/
|
|
883
1144
|
id?: string;
|
|
884
1145
|
/** Discount rule name */
|
|
885
1146
|
name?: DiscountRuleName;
|
|
@@ -887,13 +1148,24 @@ export interface DiscountRule {
|
|
|
887
1148
|
amount?: Price;
|
|
888
1149
|
}
|
|
889
1150
|
export interface DiscountRuleName {
|
|
890
|
-
/**
|
|
1151
|
+
/**
|
|
1152
|
+
* Original discount rule name (in site's default language).
|
|
1153
|
+
* @minLength 1
|
|
1154
|
+
* @maxLength 256
|
|
1155
|
+
*/
|
|
891
1156
|
original?: string;
|
|
892
|
-
/**
|
|
1157
|
+
/**
|
|
1158
|
+
* Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
1159
|
+
* @minLength 1
|
|
1160
|
+
* @maxLength 500
|
|
1161
|
+
*/
|
|
893
1162
|
translated?: string | null;
|
|
894
1163
|
}
|
|
895
1164
|
export interface LineItemDiscount {
|
|
896
|
-
/**
|
|
1165
|
+
/**
|
|
1166
|
+
* ID of line item the discount applies to.
|
|
1167
|
+
* @format GUID
|
|
1168
|
+
*/
|
|
897
1169
|
id?: string;
|
|
898
1170
|
/** Total discount for this line item. */
|
|
899
1171
|
totalDiscount?: Price;
|
|
@@ -901,9 +1173,15 @@ export interface LineItemDiscount {
|
|
|
901
1173
|
export interface ChannelInfo {
|
|
902
1174
|
/** Sales channel that submitted the order. */
|
|
903
1175
|
type?: ChannelType;
|
|
904
|
-
/**
|
|
1176
|
+
/**
|
|
1177
|
+
* Reference to an order ID from an external system.
|
|
1178
|
+
* @maxLength 100
|
|
1179
|
+
*/
|
|
905
1180
|
externalOrderId?: string | null;
|
|
906
|
-
/**
|
|
1181
|
+
/**
|
|
1182
|
+
* URL to the order in the external system.
|
|
1183
|
+
* @maxLength 300
|
|
1184
|
+
*/
|
|
907
1185
|
externalOrderUrl?: string | null;
|
|
908
1186
|
}
|
|
909
1187
|
export declare enum ChannelType {
|
|
@@ -943,31 +1221,55 @@ export declare enum ChannelType {
|
|
|
943
1221
|
export interface CustomField {
|
|
944
1222
|
/** Custom field value. */
|
|
945
1223
|
value?: any;
|
|
946
|
-
/**
|
|
1224
|
+
/**
|
|
1225
|
+
* Custom field title.
|
|
1226
|
+
* @minLength 1
|
|
1227
|
+
* @maxLength 500
|
|
1228
|
+
*/
|
|
947
1229
|
title?: string;
|
|
948
|
-
/**
|
|
1230
|
+
/**
|
|
1231
|
+
* Translated custom field title.
|
|
1232
|
+
* @minLength 1
|
|
1233
|
+
* @maxLength 500
|
|
1234
|
+
*/
|
|
949
1235
|
translatedTitle?: string | null;
|
|
950
1236
|
}
|
|
951
1237
|
export interface AdditionalFee {
|
|
952
|
-
/**
|
|
1238
|
+
/**
|
|
1239
|
+
* Additional fee's unique code for future processing.
|
|
1240
|
+
* @minLength 1
|
|
1241
|
+
* @maxLength 100
|
|
1242
|
+
*/
|
|
953
1243
|
code?: string | null;
|
|
954
|
-
/**
|
|
1244
|
+
/**
|
|
1245
|
+
* Name of additional fee.
|
|
1246
|
+
* @minLength 1
|
|
1247
|
+
* @maxLength 50
|
|
1248
|
+
*/
|
|
955
1249
|
name?: string;
|
|
956
1250
|
/** Additional fee's price. */
|
|
957
1251
|
price?: Price;
|
|
958
1252
|
/** Tax details. */
|
|
959
1253
|
taxDetails?: ItemTaxFullDetails;
|
|
960
|
-
/**
|
|
1254
|
+
/**
|
|
1255
|
+
* SPI implementer's `appId`.
|
|
1256
|
+
* @format GUID
|
|
1257
|
+
*/
|
|
961
1258
|
providerAppId?: string | null;
|
|
962
1259
|
/** Additional fee's price before tax. */
|
|
963
1260
|
priceBeforeTax?: Price;
|
|
964
1261
|
/** Additional fee's price after tax. */
|
|
965
1262
|
priceAfterTax?: Price;
|
|
966
|
-
/**
|
|
1263
|
+
/**
|
|
1264
|
+
* Additional fee's id.
|
|
1265
|
+
* @format GUID
|
|
1266
|
+
* @immutable
|
|
1267
|
+
*/
|
|
967
1268
|
id?: string;
|
|
968
1269
|
/**
|
|
969
1270
|
* Optional - Line items associated with this additional fee.
|
|
970
1271
|
* If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
1272
|
+
* @format GUID
|
|
971
1273
|
*/
|
|
972
1274
|
lineItemIds?: string[];
|
|
973
1275
|
}
|
|
@@ -975,10 +1277,13 @@ export interface Location {
|
|
|
975
1277
|
/**
|
|
976
1278
|
* Location ID.
|
|
977
1279
|
* Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
1280
|
+
* @format GUID
|
|
978
1281
|
*/
|
|
979
1282
|
id?: string;
|
|
980
1283
|
/**
|
|
981
1284
|
* Location name.
|
|
1285
|
+
* @minLength 1
|
|
1286
|
+
* @maxLength 500
|
|
982
1287
|
* @readonly
|
|
983
1288
|
*/
|
|
984
1289
|
name?: string;
|
|
@@ -992,7 +1297,10 @@ export interface CreateSubscriptionContractResponse {
|
|
|
992
1297
|
subscriptionContract?: SubscriptionContract;
|
|
993
1298
|
}
|
|
994
1299
|
export interface GetSubscriptionContractRequest {
|
|
995
|
-
/**
|
|
1300
|
+
/**
|
|
1301
|
+
* ID of the SubscriptionContract to retrieve.
|
|
1302
|
+
* @format GUID
|
|
1303
|
+
*/
|
|
996
1304
|
subscriptionContractId: string;
|
|
997
1305
|
}
|
|
998
1306
|
export interface GetSubscriptionContractResponse {
|
|
@@ -1028,6 +1336,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
1028
1336
|
* Sort object in the following format:
|
|
1029
1337
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
1030
1338
|
* Learn more about the [sort format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1339
|
+
* @maxSize 5
|
|
1031
1340
|
*/
|
|
1032
1341
|
sort?: Sorting[];
|
|
1033
1342
|
}
|
|
@@ -1037,7 +1346,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
1037
1346
|
cursorPaging?: CursorPaging;
|
|
1038
1347
|
}
|
|
1039
1348
|
export interface Sorting {
|
|
1040
|
-
/**
|
|
1349
|
+
/**
|
|
1350
|
+
* Name of the field to sort by.
|
|
1351
|
+
* @maxLength 512
|
|
1352
|
+
*/
|
|
1041
1353
|
fieldName?: string;
|
|
1042
1354
|
/** Sort order. */
|
|
1043
1355
|
order?: SortOrder;
|
|
@@ -1047,13 +1359,17 @@ export declare enum SortOrder {
|
|
|
1047
1359
|
DESC = "DESC"
|
|
1048
1360
|
}
|
|
1049
1361
|
export interface CursorPaging {
|
|
1050
|
-
/**
|
|
1362
|
+
/**
|
|
1363
|
+
* Maximum number of items to return in the results.
|
|
1364
|
+
* @max 100
|
|
1365
|
+
*/
|
|
1051
1366
|
limit?: number | null;
|
|
1052
1367
|
/**
|
|
1053
1368
|
* Pointer to the next or previous page in the list of results.
|
|
1054
1369
|
*
|
|
1055
1370
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1056
1371
|
* Not relevant for the first request.
|
|
1372
|
+
* @maxLength 16000
|
|
1057
1373
|
*/
|
|
1058
1374
|
cursor?: string | null;
|
|
1059
1375
|
}
|
|
@@ -1077,9 +1393,15 @@ export interface CursorPagingMetadata {
|
|
|
1077
1393
|
hasNext?: boolean | null;
|
|
1078
1394
|
}
|
|
1079
1395
|
export interface Cursors {
|
|
1080
|
-
/**
|
|
1396
|
+
/**
|
|
1397
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1398
|
+
* @maxLength 16000
|
|
1399
|
+
*/
|
|
1081
1400
|
next?: string | null;
|
|
1082
|
-
/**
|
|
1401
|
+
/**
|
|
1402
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1403
|
+
* @maxLength 16000
|
|
1404
|
+
*/
|
|
1083
1405
|
prev?: string | null;
|
|
1084
1406
|
}
|
|
1085
1407
|
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
@@ -1157,9 +1479,15 @@ export interface ActionEvent {
|
|
|
1157
1479
|
export interface Empty {
|
|
1158
1480
|
}
|
|
1159
1481
|
export interface MessageEnvelope {
|
|
1160
|
-
/**
|
|
1482
|
+
/**
|
|
1483
|
+
* App instance ID.
|
|
1484
|
+
* @format GUID
|
|
1485
|
+
*/
|
|
1161
1486
|
instanceId?: string | null;
|
|
1162
|
-
/**
|
|
1487
|
+
/**
|
|
1488
|
+
* Event type.
|
|
1489
|
+
* @maxLength 150
|
|
1490
|
+
*/
|
|
1163
1491
|
eventType?: string;
|
|
1164
1492
|
/** The identification type and identity data. */
|
|
1165
1493
|
identity?: IdentificationData;
|
|
@@ -1167,26 +1495,50 @@ export interface MessageEnvelope {
|
|
|
1167
1495
|
data?: string;
|
|
1168
1496
|
}
|
|
1169
1497
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1170
|
-
/**
|
|
1498
|
+
/**
|
|
1499
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1500
|
+
* @format GUID
|
|
1501
|
+
*/
|
|
1171
1502
|
anonymousVisitorId?: string;
|
|
1172
|
-
/**
|
|
1503
|
+
/**
|
|
1504
|
+
* ID of a site visitor that has logged in to the site.
|
|
1505
|
+
* @format GUID
|
|
1506
|
+
*/
|
|
1173
1507
|
memberId?: string;
|
|
1174
|
-
/**
|
|
1508
|
+
/**
|
|
1509
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1510
|
+
* @format GUID
|
|
1511
|
+
*/
|
|
1175
1512
|
wixUserId?: string;
|
|
1176
|
-
/**
|
|
1513
|
+
/**
|
|
1514
|
+
* ID of an app.
|
|
1515
|
+
* @format GUID
|
|
1516
|
+
*/
|
|
1177
1517
|
appId?: string;
|
|
1178
1518
|
/** @readonly */
|
|
1179
1519
|
identityType?: WebhookIdentityType;
|
|
1180
1520
|
}
|
|
1181
1521
|
/** @oneof */
|
|
1182
1522
|
export interface IdentificationDataIdOneOf {
|
|
1183
|
-
/**
|
|
1523
|
+
/**
|
|
1524
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1525
|
+
* @format GUID
|
|
1526
|
+
*/
|
|
1184
1527
|
anonymousVisitorId?: string;
|
|
1185
|
-
/**
|
|
1528
|
+
/**
|
|
1529
|
+
* ID of a site visitor that has logged in to the site.
|
|
1530
|
+
* @format GUID
|
|
1531
|
+
*/
|
|
1186
1532
|
memberId?: string;
|
|
1187
|
-
/**
|
|
1533
|
+
/**
|
|
1534
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1535
|
+
* @format GUID
|
|
1536
|
+
*/
|
|
1188
1537
|
wixUserId?: string;
|
|
1189
|
-
/**
|
|
1538
|
+
/**
|
|
1539
|
+
* ID of an app.
|
|
1540
|
+
* @format GUID
|
|
1541
|
+
*/
|
|
1190
1542
|
appId?: string;
|
|
1191
1543
|
}
|
|
1192
1544
|
export declare enum WebhookIdentityType {
|