@wix/auto_sdk_ecom_subscription-contracts 1.0.1 → 1.0.3

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.
Files changed (21) hide show
  1. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +475 -105
  2. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
  3. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +496 -107
  4. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
  5. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
  6. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +475 -105
  7. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
  8. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +496 -107
  9. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
  10. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
  11. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +470 -106
  12. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
  13. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +494 -109
  14. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
  15. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
  16. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts +470 -106
  17. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +1 -1
  18. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts +494 -109
  19. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +4 -0
  20. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +1 -1
  21. 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
- /** Subscription option description. For example, `"1kg of selected coffee, once a month"`. */
32
+ /**
33
+ * Subscription option description. For example, `"1kg of selected coffee, once a month"`.
34
+ * @maxLength 500
35
+ */
32
36
  description?: string | null;
33
- /** Subscription detailed information. */
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
- /** 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. */
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
- /** Subscription option title. For example, `"Monthly coffee Subscription"`. */
100
+ /**
101
+ * Subscription option title. For example, `"Monthly coffee Subscription"`.
102
+ * @minLength 1
103
+ * @maxLength 150
104
+ */
87
105
  title?: string | null;
88
- /** Additional fees applied to subscription contract. */
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
- /** Interval of recurring payment. */
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
- /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */
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;
@@ -120,11 +148,18 @@ export declare enum SubscriptionFrequency {
120
148
  export interface V1FreeTrialPeriod {
121
149
  /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
122
150
  frequency?: SubscriptionFrequency;
123
- /** interval of period */
151
+ /**
152
+ * interval of period
153
+ * @min 1
154
+ * @max 50
155
+ */
124
156
  interval?: number;
125
157
  }
126
158
  export interface OrderLineItem {
127
- /** Line item ID. */
159
+ /**
160
+ * Line item ID.
161
+ * @immutable
162
+ */
128
163
  _id?: string;
129
164
  /**
130
165
  * Item name.
@@ -138,14 +173,21 @@ export interface OrderLineItem {
138
173
  * This field may be empty in the case of a custom line item.
139
174
  */
140
175
  catalogReference?: CatalogReference;
141
- /** Line item quantity. */
176
+ /**
177
+ * Line item quantity.
178
+ * @min 1
179
+ * @max 100000
180
+ */
142
181
  quantity?: number;
143
182
  /**
144
183
  * Total discount for this line item's entire quantity.
145
184
  * @readonly
146
185
  */
147
186
  totalDiscount?: Price;
148
- /** Line item description lines. Used for display purposes for the cart, checkout and order. */
187
+ /**
188
+ * Line item description lines. Used for display purposes for the cart, checkout and order.
189
+ * @maxSize 20
190
+ */
149
191
  descriptionLines?: DescriptionLine[];
150
192
  /** Line item image. */
151
193
  image?: string;
@@ -156,11 +198,18 @@ export interface OrderLineItem {
156
198
  /**
157
199
  * Fulfiller ID. Field is empty when the line item is self-fulfilled.
158
200
  * 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).
201
+ * @format GUID
159
202
  */
160
203
  fulfillerId?: string | null;
161
- /** Number of items that were refunded. */
204
+ /**
205
+ * Number of items that were refunded.
206
+ * @max 100000
207
+ */
162
208
  refundQuantity?: number | null;
163
- /** Number of items restocked. */
209
+ /**
210
+ * Number of items restocked.
211
+ * @max 100000
212
+ */
164
213
  restockQuantity?: number | null;
165
214
  /** Line item price after line item discounts for display purposes. */
166
215
  price?: Price;
@@ -180,11 +229,9 @@ export interface OrderLineItem {
180
229
  */
181
230
  totalPriceAfterTax?: Price;
182
231
  /**
183
- * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
184
- * + `FULL_PAYMENT_ONLINE` - The entire payment for this item happens as part of the checkout.
185
- * + `FULL_PAYMENT_OFFLINE` - The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
186
- * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
187
- * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Eligible for catalog items with type `DEPOSIT_ONLINE` only.
232
+ * Type of selected payment option for current item.
233
+ *
234
+ * Default: `FULL_PAYMENT_ONLINE`
188
235
  */
189
236
  paymentOption?: PaymentOptionType;
190
237
  /**
@@ -211,6 +258,13 @@ export interface OrderLineItem {
211
258
  * @readonly
212
259
  */
213
260
  depositAmount?: Price;
261
+ /**
262
+ * Line item locations.
263
+ *
264
+ * The location's total quantity must not exceed the line item quantity.
265
+ * @maxSize 5
266
+ */
267
+ locations?: LocationAndQuantity[];
214
268
  /**
215
269
  * Address used for tax calculation.
216
270
  * @internal
@@ -219,6 +273,7 @@ export interface OrderLineItem {
219
273
  /**
220
274
  * ID of the app managing the inventory.
221
275
  * @internal
276
+ * @format GUID
222
277
  */
223
278
  inventoryAppId?: string | null;
224
279
  /**
@@ -234,6 +289,8 @@ export interface ProductName {
234
289
  *
235
290
  * Min: 1 character.
236
291
  * Max: 200 characters.
292
+ * @minLength 1
293
+ * @maxLength 200
237
294
  */
238
295
  original?: string;
239
296
  /**
@@ -242,12 +299,18 @@ export interface ProductName {
242
299
  * Min: 1 character.
243
300
  * Max: 400 characters.
244
301
  * Default: Same as `original`.
302
+ * @minLength 1
303
+ * @maxLength 400
245
304
  */
246
305
  translated?: string | null;
247
306
  }
248
307
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
249
308
  export interface CatalogReference {
250
- /** ID of the item within the catalog it belongs to. */
309
+ /**
310
+ * ID of the item within the catalog it belongs to.
311
+ * @minLength 1
312
+ * @maxLength 36
313
+ */
251
314
  catalogItemId?: string;
252
315
  /**
253
316
  * ID of the app providing the catalog.
@@ -258,6 +321,7 @@ export interface CatalogReference {
258
321
  * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
259
322
  * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
260
323
  * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
324
+ * @minLength 1
261
325
  */
262
326
  appId?: string;
263
327
  /**
@@ -268,7 +332,10 @@ export interface CatalogReference {
268
332
  options?: Record<string, any> | null;
269
333
  }
270
334
  export interface Price {
271
- /** Amount. */
335
+ /**
336
+ * Amount.
337
+ * @decimalValue options { gte:0, lte:1000000000000000 }
338
+ */
272
339
  amount?: string;
273
340
  /**
274
341
  * Amount formatted with currency symbol.
@@ -295,32 +362,44 @@ export interface DescriptionLineValueOneOf {
295
362
  export interface DescriptionLineDescriptionLineValueOneOf {
296
363
  }
297
364
  export interface DescriptionLineName {
298
- /** 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). */
365
+ /**
366
+ * 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).
367
+ * @maxLength 100
368
+ */
299
369
  original?: string;
300
370
  /**
301
371
  * Description line name translated into the buyer's language.
302
372
  *
303
373
  * Default: Same as `original`.
374
+ * @maxLength 200
304
375
  */
305
376
  translated?: string | null;
306
377
  }
307
378
  export interface PlainTextValue {
308
- /** 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). */
379
+ /**
380
+ * 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).
381
+ * @maxLength 600
382
+ */
309
383
  original?: string;
310
384
  /**
311
385
  * Description line plain text value translated into the buyer's language.
312
386
  *
313
387
  * Default: Same as `original`.
388
+ * @maxLength 600
314
389
  */
315
390
  translated?: string | null;
316
391
  }
317
392
  export interface Color {
318
- /** 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). */
393
+ /**
394
+ * 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).
395
+ * @maxLength 500
396
+ */
319
397
  original?: string;
320
398
  /**
321
399
  * Description line color name translated into the buyer's language.
322
400
  *
323
401
  * Default: Same as `original`.
402
+ * @maxLength 500
324
403
  */
325
404
  translated?: string | null;
326
405
  /** HEX or RGB color code for display. */
@@ -347,7 +426,10 @@ export interface FocalPoint {
347
426
  export interface PhysicalProperties {
348
427
  /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
349
428
  weight?: number | null;
350
- /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
429
+ /**
430
+ * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
431
+ * @maxLength 40
432
+ */
351
433
  sku?: string | null;
352
434
  /** Whether this line item is shippable. */
353
435
  shippable?: boolean;
@@ -388,7 +470,10 @@ export declare enum PaymentOptionType {
388
470
  export interface ItemTaxFullDetails {
389
471
  /** Taxable amount of this line item. */
390
472
  taxableAmount?: Price;
391
- /** Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`. */
473
+ /**
474
+ * Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`.
475
+ * @decimalValue options { gte:0, maxScale:6 }
476
+ */
392
477
  taxRate?: string;
393
478
  /** The calculated tax, based on the `taxableAmount` and `taxRate`. */
394
479
  totalTax?: Price;
@@ -398,16 +483,24 @@ export interface LineItemTaxInfo {
398
483
  taxAmount?: Price;
399
484
  /** Amount for which tax is calculated. */
400
485
  taxableAmount?: Price;
401
- /** Tax rate %, as a decimal point. */
486
+ /**
487
+ * Tax rate %, as a decimal point.
488
+ * @format DECIMAL_VALUE
489
+ * @decimalValue options { gte:0, maxScale:6 }
490
+ */
402
491
  taxRate?: string | null;
403
492
  /**
404
493
  * Tax group ID.
405
494
  * Learn more about [Tax Groups](https://dev.wix.com/docs/rest/business-management/payments/tax/tax-groups/introduction).
495
+ * @format GUID
406
496
  */
407
497
  taxGroupId?: string | null;
408
498
  /** Indicates whether the price already includes tax. */
409
499
  taxIncludedInPrice?: boolean;
410
- /** Tax information for a line item. */
500
+ /**
501
+ * Tax information for a line item.
502
+ * @maxSize 7
503
+ */
411
504
  taxBreakdown?: LineItemTaxBreakdown[];
412
505
  }
413
506
  /**
@@ -415,17 +508,28 @@ export interface LineItemTaxInfo {
415
508
  * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
416
509
  */
417
510
  export interface LineItemTaxBreakdown {
418
- /** Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec". */
511
+ /**
512
+ * Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
513
+ * @maxLength 200
514
+ */
419
515
  jurisdiction?: string | null;
420
- /** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000. */
516
+ /**
517
+ * Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.
518
+ * @format DECIMAL_VALUE
519
+ * @decimalValue options { gte:0, maxScale:6 }
520
+ */
421
521
  rate?: string | null;
422
522
  /** Amount of tax calculated for this line item. */
423
523
  taxAmount?: Price;
424
- /** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
524
+ /**
525
+ * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
526
+ * @maxLength 200
527
+ */
425
528
  taxType?: string | null;
426
529
  /**
427
530
  * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
428
531
  * This name should be explicit enough to allow the merchant to understand what tax was calculated.
532
+ * @maxLength 200
429
533
  */
430
534
  taxName?: string | null;
431
535
  /** Type of jurisdiction that taxes were calculated for. */
@@ -445,9 +549,18 @@ export declare enum JurisdictionType {
445
549
  SPECIAL = "SPECIAL"
446
550
  }
447
551
  export interface DigitalFile {
448
- /** ID of the secure file in media. */
552
+ /**
553
+ * ID of the secure file in media.
554
+ * @minLength 1
555
+ * @maxLength 100
556
+ */
449
557
  fileId?: string;
450
- /** Link will exist after the digital links have been generated on the order. */
558
+ /**
559
+ * Link will exist after the digital links have been generated on the order.
560
+ * @format WEB_URL
561
+ * @minLength 1
562
+ * @maxLength 2000
563
+ */
451
564
  link?: string | null;
452
565
  /**
453
566
  * Link expiration time and date.
@@ -456,30 +569,54 @@ export interface DigitalFile {
456
569
  expirationDate?: Date | null;
457
570
  }
458
571
  export interface SubscriptionInfo {
459
- /** Subscription ID. */
572
+ /**
573
+ * Subscription ID.
574
+ * @format GUID
575
+ */
460
576
  _id?: string | null;
461
- /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */
577
+ /**
578
+ * Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`.
579
+ * @min 1
580
+ */
462
581
  cycleNumber?: number;
463
- /** Subscription option title. For example, `"Monthly coffee Subscription"`. */
582
+ /**
583
+ * Subscription option title. For example, `"Monthly coffee Subscription"`.
584
+ * @minLength 1
585
+ * @maxLength 20
586
+ */
464
587
  subscriptionOptionTitle?: string;
465
- /** Subscription option description. For example, `"1kg of selected coffee, once a month"`. */
588
+ /**
589
+ * Subscription option description. For example, `"1kg of selected coffee, once a month"`.
590
+ * @maxLength 60
591
+ */
466
592
  subscriptionOptionDescription?: string | null;
467
- /** Subscription detailed information. */
593
+ /**
594
+ * Subscription detailed information.
595
+ * @immutable
596
+ */
468
597
  subscriptionSettings?: SubscriptionSettings;
469
598
  /**
470
599
  * Description of the charges that will be applied for subscription.
471
600
  * @internal
601
+ * @maxLength 1000
472
602
  */
473
603
  chargesDescription?: string | null;
474
604
  }
475
605
  export interface SubscriptionSettings {
476
606
  /** Frequency of recurring payment. */
477
607
  frequency?: V2SubscriptionFrequency;
478
- /** Interval of recurring payment. */
608
+ /**
609
+ * Interval of recurring payment.
610
+ * @min 1
611
+ * @max 50
612
+ */
479
613
  interval?: number | null;
480
614
  /** Whether subscription is renewed automatically at the end of each period. */
481
615
  autoRenewal?: boolean;
482
- /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */
616
+ /**
617
+ * Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.
618
+ * @min 1
619
+ */
483
620
  billingCycles?: number | null;
484
621
  /**
485
622
  * Whether to allow the customer to cancel the subscription.
@@ -508,33 +645,51 @@ export declare enum V2SubscriptionFrequency {
508
645
  export interface FreeTrialPeriod {
509
646
  /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */
510
647
  frequency?: V2SubscriptionFrequency;
511
- /** interval of period */
648
+ /**
649
+ * interval of period
650
+ * @min 1
651
+ * @max 50
652
+ */
512
653
  interval?: number;
513
654
  }
514
655
  export interface PriceDescription {
515
- /** __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). */
656
+ /**
657
+ * __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).
658
+ * @minLength 1
659
+ * @maxLength 100
660
+ */
516
661
  original?: string;
517
662
  /**
518
663
  * Price description translated into the buyer's language.
519
664
  *
520
665
  * Default: Same as `original`.
666
+ * @minLength 1
667
+ * @maxLength 100
521
668
  */
522
669
  translated?: string | null;
523
670
  }
524
671
  export interface LocationAndQuantity {
525
- /** Location id in the associated owner app. */
672
+ /**
673
+ * Location id in the associated owner app.
674
+ * @format GUID
675
+ */
526
676
  _id?: string;
527
677
  /**
528
678
  * Location owner app, if not provided then the site business info locations will be used.
679
+ * @format GUID
529
680
  * @deprecated Location owner app, if not provided then the site business info locations will be used.
530
681
  * @targetRemovalDate 2025-03-01
531
682
  */
532
683
  appId?: string | null;
533
- /** Quantity for specific location. */
684
+ /**
685
+ * Quantity for specific location.
686
+ * @min 1
687
+ * @max 100000
688
+ */
534
689
  quantity?: number;
535
690
  /**
536
691
  * Location name.
537
- * @internal
692
+ * @maxLength 500
538
693
  * @readonly
539
694
  */
540
695
  name?: string | null;
@@ -567,20 +722,38 @@ export interface ExtendedFields {
567
722
  }
568
723
  /** Buyer Info */
569
724
  export interface BuyerInfo extends BuyerInfoIdOneOf {
570
- /** Visitor ID (if site visitor is not a member). */
725
+ /**
726
+ * Visitor ID (if site visitor is not a member).
727
+ * @format GUID
728
+ */
571
729
  visitorId?: string;
572
- /** Member ID (if site visitor is a site member). */
730
+ /**
731
+ * Member ID (if site visitor is a site member).
732
+ * @format GUID
733
+ */
573
734
  memberId?: string;
574
- /** 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). */
735
+ /**
736
+ * 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).
737
+ * @format GUID
738
+ */
575
739
  contactId?: string | null;
576
- /** Buyer email address. */
740
+ /**
741
+ * Buyer email address.
742
+ * @format EMAIL
743
+ */
577
744
  email?: string | null;
578
745
  }
579
746
  /** @oneof */
580
747
  export interface BuyerInfoIdOneOf {
581
- /** Visitor ID (if site visitor is not a member). */
748
+ /**
749
+ * Visitor ID (if site visitor is not a member).
750
+ * @format GUID
751
+ */
582
752
  visitorId?: string;
583
- /** Member ID (if site visitor is a site member). */
753
+ /**
754
+ * Member ID (if site visitor is a site member).
755
+ * @format GUID
756
+ */
584
757
  memberId?: string;
585
758
  }
586
759
  export declare enum WeightUnit {
@@ -614,19 +787,37 @@ export interface AddressWithContact {
614
787
  }
615
788
  /** Physical address */
616
789
  export interface Address {
617
- /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
790
+ /**
791
+ * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
792
+ * @format COUNTRY
793
+ */
618
794
  country?: string | null;
619
- /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
795
+ /**
796
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
797
+ * @maxLength 50
798
+ */
620
799
  subdivision?: string | null;
621
- /** City name. */
800
+ /**
801
+ * City name.
802
+ * @maxLength 50
803
+ */
622
804
  city?: string | null;
623
- /** Postal or zip code. */
805
+ /**
806
+ * Postal or zip code.
807
+ * @maxLength 50
808
+ */
624
809
  postalCode?: string | null;
625
810
  /** Street address. */
626
811
  streetAddress?: StreetAddress;
627
- /** Main address line (usually street name and number). */
812
+ /**
813
+ * Main address line (usually street name and number).
814
+ * @maxLength 150
815
+ */
628
816
  addressLine1?: string | null;
629
- /** Free text providing more detailed address info. Usually contains apt, suite, floor. */
817
+ /**
818
+ * Free text providing more detailed address info. Usually contains apt, suite, floor.
819
+ * @maxLength 100
820
+ */
630
821
  addressLine2?: string | null;
631
822
  /**
632
823
  * Country's full name.
@@ -653,13 +844,25 @@ export interface AddressLocation {
653
844
  }
654
845
  /** Full contact details for an address */
655
846
  export interface FullAddressContactDetails {
656
- /** First name. */
847
+ /**
848
+ * First name.
849
+ * @maxLength 100
850
+ */
657
851
  firstName?: string | null;
658
- /** Last name. */
852
+ /**
853
+ * Last name.
854
+ * @maxLength 100
855
+ */
659
856
  lastName?: string | null;
660
- /** Phone number. */
857
+ /**
858
+ * Phone number.
859
+ * @format PHONE
860
+ */
661
861
  phone?: string | null;
662
- /** Company name. */
862
+ /**
863
+ * Company name.
864
+ * @maxLength 1000
865
+ */
663
866
  company?: string | null;
664
867
  /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
665
868
  vatId?: VatId;
@@ -685,13 +888,22 @@ export declare enum VatType {
685
888
  CNPJ = "CNPJ"
686
889
  }
687
890
  export interface ShippingInformation {
688
- /** App Def Id of external provider which was a source of shipping info */
891
+ /**
892
+ * App Def Id of external provider which was a source of shipping info
893
+ * @minLength 1
894
+ * @maxLength 100
895
+ */
689
896
  carrierId?: string | null;
690
- /** Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`. */
897
+ /**
898
+ * Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"`.
899
+ * @minLength 1
900
+ * @maxLength 100
901
+ */
691
902
  code?: string | null;
692
903
  /**
693
904
  * Shipping option title.
694
905
  * For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
906
+ * @maxLength 250
695
907
  */
696
908
  title?: string;
697
909
  /** Shipping logistics. */
@@ -706,9 +918,15 @@ export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
706
918
  shippingDestination?: AddressWithContact;
707
919
  /** Pickup details. */
708
920
  pickupDetails?: PickupDetails;
709
- /** Expected delivery time in free text. For example, `"3-5 business days"`. */
921
+ /**
922
+ * Expected delivery time in free text. For example, `"3-5 business days"`.
923
+ * @maxLength 500
924
+ */
710
925
  deliveryTime?: string | null;
711
- /** Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`. */
926
+ /**
927
+ * Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`.
928
+ * @maxLength 1000
929
+ */
712
930
  instructions?: string | null;
713
931
  /**
714
932
  * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
@@ -733,19 +951,37 @@ export interface PickupDetails {
733
951
  }
734
952
  /** Physical address */
735
953
  export interface PickupAddress {
736
- /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
954
+ /**
955
+ * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
956
+ * @format COUNTRY
957
+ */
737
958
  country?: string | null;
738
- /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
959
+ /**
960
+ * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
961
+ * @maxLength 50
962
+ */
739
963
  subdivision?: string | null;
740
- /** City name. */
964
+ /**
965
+ * City name.
966
+ * @maxLength 1000
967
+ */
741
968
  city?: string | null;
742
- /** Postal or zip code. */
969
+ /**
970
+ * Postal or zip code.
971
+ * @maxLength 1000
972
+ */
743
973
  postalCode?: string | null;
744
974
  /** Street address object, with number, name, and apartment number in separate fields. */
745
975
  streetAddress?: StreetAddress;
746
- /** Main address line (usually street name and number). */
976
+ /**
977
+ * Main address line (usually street name and number).
978
+ * @maxLength 1000
979
+ */
747
980
  addressLine1?: string | null;
748
- /** Free text providing more detailed address info. Usually contains apt, suite, floor. */
981
+ /**
982
+ * Free text providing more detailed address info. Usually contains apt, suite, floor.
983
+ * @maxLength 1000
984
+ */
749
985
  addressLine2?: string | null;
750
986
  /**
751
987
  * Country's full name.
@@ -791,13 +1027,19 @@ export interface ShippingPrice {
791
1027
  discount?: Price;
792
1028
  }
793
1029
  export interface ShippingRegion {
794
- /** Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`. */
1030
+ /**
1031
+ * Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
1032
+ * @maxLength 100
1033
+ */
795
1034
  name?: string | null;
796
1035
  }
797
1036
  export interface OrderTaxInfo {
798
1037
  /** Calculated tax, added from line items. */
799
1038
  totalTax?: Price;
800
- /** 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. */
1039
+ /**
1040
+ * 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.
1041
+ * @maxSize 50
1042
+ */
801
1043
  taxBreakdown?: OrderTaxBreakdown[];
802
1044
  /**
803
1045
  * Whether the order is exempt from tax calculations.
@@ -812,15 +1054,28 @@ export interface OrderTaxInfo {
812
1054
  * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
813
1055
  */
814
1056
  export interface OrderTaxBreakdown {
815
- /** The name of the tax against which this tax amount was calculated. */
1057
+ /**
1058
+ * The name of the tax against which this tax amount was calculated.
1059
+ * @maxLength 200
1060
+ */
816
1061
  taxName?: string;
817
- /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
1062
+ /**
1063
+ * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
1064
+ * @maxLength 200
1065
+ */
818
1066
  taxType?: string;
819
- /** The name of the jurisdiction in which this tax detail applies. */
1067
+ /**
1068
+ * The name of the jurisdiction in which this tax detail applies.
1069
+ * @maxLength 200
1070
+ */
820
1071
  jurisdiction?: string;
821
1072
  /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
822
1073
  jurisdictionType?: JurisdictionType;
823
- /** The rate at which this tax detail was calculated. */
1074
+ /**
1075
+ * The rate at which this tax detail was calculated.
1076
+ * @format DECIMAL_VALUE
1077
+ * @decimalValue options { gte:0, maxScale:6 }
1078
+ */
824
1079
  rate?: string;
825
1080
  /** The sum of all the tax from line items that calculated by the tax identifiers. */
826
1081
  aggregatedTaxAmount?: Price;
@@ -842,18 +1097,26 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
842
1097
  /**
843
1098
  * IDs of line items discount applies to.
844
1099
  * Deprecated. Use `line_item_discounts` instead.
1100
+ * @format GUID
1101
+ * @maxSize 1
845
1102
  * @deprecated IDs of line items discount applies to.
846
1103
  * Deprecated. Use `line_item_discounts` instead.
847
1104
  * @replacedBy line_item_discounts
848
1105
  * @targetRemovalDate 2024-10-30
849
1106
  */
850
1107
  lineItemIds?: string[];
851
- /** Discount id. */
1108
+ /**
1109
+ * Discount id.
1110
+ * @format GUID
1111
+ * @immutable
1112
+ */
852
1113
  _id?: string | null;
853
1114
  /**
854
1115
  * Number of subscription billing cycles the discount applies to.
855
1116
  * If None and discount is linked to subscription line item, it applies to all cycles.
856
1117
  * @internal
1118
+ * @min 1
1119
+ * @max 999
857
1120
  */
858
1121
  subscriptionCycles?: number | null;
859
1122
  }
@@ -888,13 +1151,18 @@ export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReason
888
1151
  * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
889
1152
  */
890
1153
  discountReason?: DiscountReason;
891
- /** Discount description as free text (optional). */
1154
+ /**
1155
+ * Discount description as free text (optional).
1156
+ * @maxLength 200
1157
+ */
892
1158
  description?: string | null;
893
1159
  /** Discount amount. */
894
1160
  amount?: Price;
895
1161
  /**
896
1162
  * Discount percentage.
897
1163
  * @internal
1164
+ * @format DECIMAL_VALUE
1165
+ * @decimalValue options { gte:0, lte:100, maxScale:2 }
898
1166
  */
899
1167
  percentage?: string | null;
900
1168
  }
@@ -905,7 +1173,10 @@ export interface MerchantDiscountMerchantDiscountReasonOneOf {
905
1173
  * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
906
1174
  */
907
1175
  discountReason?: DiscountReason;
908
- /** Discount description as free text (optional). */
1176
+ /**
1177
+ * Discount description as free text (optional).
1178
+ * @maxLength 200
1179
+ */
909
1180
  description?: string | null;
910
1181
  }
911
1182
  export declare enum DiscountReason {
@@ -913,7 +1184,10 @@ export declare enum DiscountReason {
913
1184
  EXCHANGED_ITEMS = "EXCHANGED_ITEMS"
914
1185
  }
915
1186
  export interface DiscountRule {
916
- /** Discount rule ID */
1187
+ /**
1188
+ * Discount rule ID
1189
+ * @format GUID
1190
+ */
917
1191
  _id?: string;
918
1192
  /** Discount rule name */
919
1193
  name?: DiscountRuleName;
@@ -921,13 +1195,24 @@ export interface DiscountRule {
921
1195
  amount?: Price;
922
1196
  }
923
1197
  export interface DiscountRuleName {
924
- /** Original discount rule name (in site's default language). */
1198
+ /**
1199
+ * Original discount rule name (in site's default language).
1200
+ * @minLength 1
1201
+ * @maxLength 256
1202
+ */
925
1203
  original?: string;
926
- /** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */
1204
+ /**
1205
+ * Translated discount rule name according to buyer language. Defaults to `original` when not provided.
1206
+ * @minLength 1
1207
+ * @maxLength 500
1208
+ */
927
1209
  translated?: string | null;
928
1210
  }
929
1211
  export interface LineItemDiscount {
930
- /** ID of line item the discount applies to. */
1212
+ /**
1213
+ * ID of line item the discount applies to.
1214
+ * @format GUID
1215
+ */
931
1216
  _id?: string;
932
1217
  /** Total discount for this line item. */
933
1218
  totalDiscount?: Price;
@@ -935,9 +1220,15 @@ export interface LineItemDiscount {
935
1220
  export interface ChannelInfo {
936
1221
  /** Sales channel that submitted the order. */
937
1222
  type?: ChannelType;
938
- /** Reference to an order ID from an external system. */
1223
+ /**
1224
+ * Reference to an order ID from an external system.
1225
+ * @maxLength 100
1226
+ */
939
1227
  externalOrderId?: string | null;
940
- /** URL to the order in the external system. */
1228
+ /**
1229
+ * URL to the order in the external system.
1230
+ * @maxLength 300
1231
+ */
941
1232
  externalOrderUrl?: string | null;
942
1233
  }
943
1234
  export declare enum ChannelType {
@@ -977,37 +1268,63 @@ export declare enum ChannelType {
977
1268
  export interface CustomField {
978
1269
  /** Custom field value. */
979
1270
  value?: any;
980
- /** Custom field title. */
1271
+ /**
1272
+ * Custom field title.
1273
+ * @minLength 1
1274
+ * @maxLength 500
1275
+ */
981
1276
  title?: string;
982
- /** Translated custom field title. */
1277
+ /**
1278
+ * Translated custom field title.
1279
+ * @minLength 1
1280
+ * @maxLength 500
1281
+ */
983
1282
  translatedTitle?: string | null;
984
1283
  }
985
1284
  export interface AdditionalFee {
986
- /** Additional fee's unique code for future processing. */
1285
+ /**
1286
+ * Additional fee's unique code for future processing.
1287
+ * @minLength 1
1288
+ * @maxLength 100
1289
+ */
987
1290
  code?: string | null;
988
- /** Name of additional fee. */
1291
+ /**
1292
+ * Name of additional fee.
1293
+ * @minLength 1
1294
+ * @maxLength 50
1295
+ */
989
1296
  name?: string;
990
1297
  /** Additional fee's price. */
991
1298
  price?: Price;
992
1299
  /** Tax details. */
993
1300
  taxDetails?: ItemTaxFullDetails;
994
- /** SPI implementer's `appId`. */
1301
+ /**
1302
+ * SPI implementer's `appId`.
1303
+ * @format GUID
1304
+ */
995
1305
  providerAppId?: string | null;
996
1306
  /** Additional fee's price before tax. */
997
1307
  priceBeforeTax?: Price;
998
1308
  /** Additional fee's price after tax. */
999
1309
  priceAfterTax?: Price;
1000
- /** Additional fee's id. */
1310
+ /**
1311
+ * Additional fee's id.
1312
+ * @format GUID
1313
+ * @immutable
1314
+ */
1001
1315
  _id?: string;
1002
1316
  /**
1003
1317
  * Optional - Line items associated with this additional fee.
1004
1318
  * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
1319
+ * @format GUID
1005
1320
  */
1006
1321
  lineItemIds?: string[];
1007
1322
  /**
1008
1323
  * Number of subscription billing cycles the additional fee applies to.
1009
1324
  * If None and additional fee is linked to subscription line item, it applies to all cycles.
1010
1325
  * @internal
1326
+ * @min 1
1327
+ * @max 999
1011
1328
  */
1012
1329
  subscriptionCycles?: number | null;
1013
1330
  }
@@ -1015,10 +1332,13 @@ export interface Location {
1015
1332
  /**
1016
1333
  * Location ID.
1017
1334
  * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
1335
+ * @format GUID
1018
1336
  */
1019
1337
  _id?: string;
1020
1338
  /**
1021
1339
  * Location name.
1340
+ * @minLength 1
1341
+ * @maxLength 500
1022
1342
  * @readonly
1023
1343
  */
1024
1344
  name?: string;
@@ -1032,7 +1352,10 @@ export interface CreateSubscriptionContractResponse {
1032
1352
  subscriptionContract?: SubscriptionContract;
1033
1353
  }
1034
1354
  export interface GetSubscriptionContractRequest {
1035
- /** ID of the SubscriptionContract to retrieve. */
1355
+ /**
1356
+ * ID of the SubscriptionContract to retrieve.
1357
+ * @format GUID
1358
+ */
1036
1359
  subscriptionContractId: string;
1037
1360
  }
1038
1361
  export interface GetSubscriptionContractResponse {
@@ -1068,6 +1391,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1068
1391
  * Sort object in the following format:
1069
1392
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1070
1393
  * Learn more about the [sort format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
1394
+ * @maxSize 5
1071
1395
  */
1072
1396
  sort?: Sorting[];
1073
1397
  }
@@ -1077,7 +1401,10 @@ export interface CursorQueryPagingMethodOneOf {
1077
1401
  cursorPaging?: CursorPaging;
1078
1402
  }
1079
1403
  export interface Sorting {
1080
- /** Name of the field to sort by. */
1404
+ /**
1405
+ * Name of the field to sort by.
1406
+ * @maxLength 512
1407
+ */
1081
1408
  fieldName?: string;
1082
1409
  /** Sort order. */
1083
1410
  order?: SortOrder;
@@ -1087,13 +1414,17 @@ export declare enum SortOrder {
1087
1414
  DESC = "DESC"
1088
1415
  }
1089
1416
  export interface CursorPaging {
1090
- /** Maximum number of items to return in the results. */
1417
+ /**
1418
+ * Maximum number of items to return in the results.
1419
+ * @max 100
1420
+ */
1091
1421
  limit?: number | null;
1092
1422
  /**
1093
1423
  * Pointer to the next or previous page in the list of results.
1094
1424
  *
1095
1425
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1096
1426
  * Not relevant for the first request.
1427
+ * @maxLength 16000
1097
1428
  */
1098
1429
  cursor?: string | null;
1099
1430
  }
@@ -1117,9 +1448,15 @@ export interface CursorPagingMetadata {
1117
1448
  hasNext?: boolean | null;
1118
1449
  }
1119
1450
  export interface Cursors {
1120
- /** Cursor string pointing to the next page in the list of results. */
1451
+ /**
1452
+ * Cursor string pointing to the next page in the list of results.
1453
+ * @maxLength 16000
1454
+ */
1121
1455
  next?: string | null;
1122
- /** Cursor pointing to the previous page in the list of results. */
1456
+ /**
1457
+ * Cursor pointing to the previous page in the list of results.
1458
+ * @maxLength 16000
1459
+ */
1123
1460
  prev?: string | null;
1124
1461
  }
1125
1462
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -1195,9 +1532,15 @@ export interface ActionEvent {
1195
1532
  export interface Empty {
1196
1533
  }
1197
1534
  export interface MessageEnvelope {
1198
- /** App instance ID. */
1535
+ /**
1536
+ * App instance ID.
1537
+ * @format GUID
1538
+ */
1199
1539
  instanceId?: string | null;
1200
- /** Event type. */
1540
+ /**
1541
+ * Event type.
1542
+ * @maxLength 150
1543
+ */
1201
1544
  eventType?: string;
1202
1545
  /** The identification type and identity data. */
1203
1546
  identity?: IdentificationData;
@@ -1205,26 +1548,50 @@ export interface MessageEnvelope {
1205
1548
  data?: string;
1206
1549
  }
1207
1550
  export interface IdentificationData extends IdentificationDataIdOneOf {
1208
- /** ID of a site visitor that has not logged in to the site. */
1551
+ /**
1552
+ * ID of a site visitor that has not logged in to the site.
1553
+ * @format GUID
1554
+ */
1209
1555
  anonymousVisitorId?: string;
1210
- /** ID of a site visitor that has logged in to the site. */
1556
+ /**
1557
+ * ID of a site visitor that has logged in to the site.
1558
+ * @format GUID
1559
+ */
1211
1560
  memberId?: string;
1212
- /** ID of a Wix user (site owner, contributor, etc.). */
1561
+ /**
1562
+ * ID of a Wix user (site owner, contributor, etc.).
1563
+ * @format GUID
1564
+ */
1213
1565
  wixUserId?: string;
1214
- /** ID of an app. */
1566
+ /**
1567
+ * ID of an app.
1568
+ * @format GUID
1569
+ */
1215
1570
  appId?: string;
1216
1571
  /** @readonly */
1217
1572
  identityType?: WebhookIdentityType;
1218
1573
  }
1219
1574
  /** @oneof */
1220
1575
  export interface IdentificationDataIdOneOf {
1221
- /** ID of a site visitor that has not logged in to the site. */
1576
+ /**
1577
+ * ID of a site visitor that has not logged in to the site.
1578
+ * @format GUID
1579
+ */
1222
1580
  anonymousVisitorId?: string;
1223
- /** ID of a site visitor that has logged in to the site. */
1581
+ /**
1582
+ * ID of a site visitor that has logged in to the site.
1583
+ * @format GUID
1584
+ */
1224
1585
  memberId?: string;
1225
- /** ID of a Wix user (site owner, contributor, etc.). */
1586
+ /**
1587
+ * ID of a Wix user (site owner, contributor, etc.).
1588
+ * @format GUID
1589
+ */
1226
1590
  wixUserId?: string;
1227
- /** ID of an app. */
1591
+ /**
1592
+ * ID of an app.
1593
+ * @format GUID
1594
+ */
1228
1595
  appId?: string;
1229
1596
  }
1230
1597
  export declare enum WebhookIdentityType {
@@ -1348,7 +1715,6 @@ interface OrderLineItemNonNullableFields {
1348
1715
  subscriptionInfo?: SubscriptionInfoNonNullableFields;
1349
1716
  priceDescription?: PriceDescriptionNonNullableFields;
1350
1717
  depositAmount?: PriceNonNullableFields;
1351
- /** @internal */
1352
1718
  locations: LocationAndQuantityNonNullableFields[];
1353
1719
  lineItemPrice?: PriceNonNullableFields;
1354
1720
  /** @internal */
@@ -1503,9 +1869,15 @@ export interface QuerySubscriptionContractsResponseNonNullableFields {
1503
1869
  subscriptionContracts: SubscriptionContractNonNullableFields[];
1504
1870
  }
1505
1871
  export interface BaseEventMetadata {
1506
- /** App instance ID. */
1872
+ /**
1873
+ * App instance ID.
1874
+ * @format GUID
1875
+ */
1507
1876
  instanceId?: string | null;
1508
- /** Event type. */
1877
+ /**
1878
+ * Event type.
1879
+ * @maxLength 150
1880
+ */
1509
1881
  eventType?: string;
1510
1882
  /** The identification type and identity data. */
1511
1883
  identity?: IdentificationData;
@@ -1556,11 +1928,14 @@ export interface SubscriptionContractCreatedEnvelope {
1556
1928
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1557
1929
  * @permissionScope Read eCommerce - all read permissions
1558
1930
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1931
+ * @permissionScope Manage Restaurants - all permissions
1932
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1559
1933
  * @permissionScope Manage eCommerce - all permissions
1560
1934
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1561
1935
  * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ
1562
1936
  * @webhook
1563
1937
  * @eventType wix.ecom.subscription_contracts.v1.subscription_contract_created
1938
+ * @slug created
1564
1939
  * @documentationMaturity preview
1565
1940
  */
1566
1941
  export declare function onSubscriptionContractCreated(handler: (event: SubscriptionContractCreatedEnvelope) => void | Promise<void>): void;
@@ -1571,11 +1946,14 @@ export interface SubscriptionContractDeletedEnvelope {
1571
1946
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1572
1947
  * @permissionScope Read eCommerce - all read permissions
1573
1948
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1949
+ * @permissionScope Manage Restaurants - all permissions
1950
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1574
1951
  * @permissionScope Manage eCommerce - all permissions
1575
1952
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1576
1953
  * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ
1577
1954
  * @webhook
1578
1955
  * @eventType wix.ecom.subscription_contracts.v1.subscription_contract_deleted
1956
+ * @slug deleted
1579
1957
  * @documentationMaturity preview
1580
1958
  */
1581
1959
  export declare function onSubscriptionContractDeleted(handler: (event: SubscriptionContractDeletedEnvelope) => void | Promise<void>): void;
@@ -1587,11 +1965,14 @@ export interface SubscriptionContractUpdatedEnvelope {
1587
1965
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1588
1966
  * @permissionScope Read eCommerce - all read permissions
1589
1967
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1968
+ * @permissionScope Manage Restaurants - all permissions
1969
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1590
1970
  * @permissionScope Manage eCommerce - all permissions
1591
1971
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1592
1972
  * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ
1593
1973
  * @webhook
1594
1974
  * @eventType wix.ecom.subscription_contracts.v1.subscription_contract_updated
1975
+ * @slug updated
1595
1976
  * @documentationMaturity preview
1596
1977
  */
1597
1978
  export declare function onSubscriptionContractUpdated(handler: (event: SubscriptionContractUpdatedEnvelope) => void | Promise<void>): void;
@@ -1606,6 +1987,8 @@ export declare function onSubscriptionContractUpdated(handler: (event: Subscript
1606
1987
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1607
1988
  * @permissionScope Read eCommerce - all read permissions
1608
1989
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
1990
+ * @permissionScope Manage Restaurants - all permissions
1991
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1609
1992
  * @permissionScope Manage eCommerce - all permissions
1610
1993
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1611
1994
  * @applicableIdentity APP
@@ -1628,6 +2011,8 @@ export declare function getSubscriptionContract(subscriptionContractId: string):
1628
2011
  * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1629
2012
  * @permissionScope Read eCommerce - all read permissions
1630
2013
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
2014
+ * @permissionScope Manage Restaurants - all permissions
2015
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
1631
2016
  * @permissionScope Manage eCommerce - all permissions
1632
2017
  * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1633
2018
  * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ