@wix/auto_sdk_ecom_subscription-contracts 1.0.18 → 1.0.19

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 (130) hide show
  1. package/build/{cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts → ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-C1mp-xS2.d.mts} +117 -217
  2. package/build/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts → ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-C1mp-xS2.d.ts} +117 -217
  3. package/build/index.d.mts +39 -0
  4. package/build/index.d.ts +39 -0
  5. package/build/index.js +659 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +615 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts → ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-WYe0iZSk.d.mts} +117 -217
  10. package/build/internal/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.d.ts → ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-WYe0iZSk.d.ts} +117 -217
  11. package/build/internal/index.d.mts +39 -0
  12. package/build/internal/index.d.ts +39 -0
  13. package/build/internal/index.js +659 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +615 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → internal/meta.d.mts} +93 -441
  18. package/build/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → internal/meta.d.ts} +93 -441
  19. package/build/internal/meta.js +257 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +229 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → meta.d.mts} +93 -441
  24. package/build/{internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → meta.d.ts} +93 -441
  25. package/build/meta.js +257 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +229 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
  40. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -35
  41. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
  42. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
  43. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -198
  44. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
  45. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
  46. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -66
  47. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
  49. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -153
  50. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
  51. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -161
  52. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
  53. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -342
  54. package/build/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
  66. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -16
  67. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
  68. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
  69. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -193
  70. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
  71. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
  72. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -38
  73. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
  74. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
  75. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -132
  76. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
  77. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -158
  78. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
  79. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -314
  80. package/build/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
  91. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -35
  92. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
  93. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
  94. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -198
  95. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
  96. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
  97. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -66
  98. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
  99. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
  100. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -153
  101. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
  102. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -161
  103. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -342
  105. package/build/internal/cjs/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.d.ts +0 -16
  116. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js +0 -16
  117. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.js.map +0 -1
  118. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.d.ts +0 -14
  119. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js +0 -193
  120. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js.map +0 -1
  121. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.d.ts +0 -16
  122. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js +0 -38
  123. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.js.map +0 -1
  124. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.d.ts +0 -32
  125. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js +0 -132
  126. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js.map +0 -1
  127. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js +0 -158
  128. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.js.map +0 -1
  129. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js +0 -314
  130. package/build/internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js.map +0 -1
@@ -1,10 +1,12 @@
1
+ import { aw as GetSubscriptionContractRequest$1, ax as GetSubscriptionContractResponse$1, aA as QuerySubscriptionContractsRequest$1, aF as QuerySubscriptionContractsResponse$1 } from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-C1mp-xS2.js';
2
+
1
3
  /**
2
4
  * A SubscriptionContract is a ...
3
5
  * You can ...
4
6
  * Read more about SubscriptionContracts
5
7
  * in this [article](<LINK_TO_KB_ARTICLE>).
6
8
  */
7
- export interface SubscriptionContract {
9
+ interface SubscriptionContract {
8
10
  /**
9
11
  * SubscriptionContract ID.
10
12
  * @format GUID
@@ -116,19 +118,7 @@ export interface SubscriptionContract {
116
118
  */
117
119
  additionalFees?: AdditionalFee[];
118
120
  }
119
- export interface V1SubscriptionDescription {
120
- /**
121
- * Subscription option description.
122
- * @maxLength 500
123
- */
124
- original?: string;
125
- /**
126
- * Translated subscription option description.
127
- * @maxLength 500
128
- */
129
- translated?: string | null;
130
- }
131
- export interface V1SubscriptionSettings {
121
+ interface V1SubscriptionSettings {
132
122
  /** Frequency of recurring payment. */
133
123
  frequency?: SubscriptionFrequency;
134
124
  /**
@@ -147,24 +137,14 @@ export interface V1SubscriptionSettings {
147
137
  /** Whether to allow the customer to cancel the subscription. */
148
138
  enableCustomerCancellation?: boolean;
149
139
  }
150
- export declare enum SubscriptionFrequency {
140
+ declare enum SubscriptionFrequency {
151
141
  UNDEFINED = "UNDEFINED",
152
142
  DAY = "DAY",
153
143
  WEEK = "WEEK",
154
144
  MONTH = "MONTH",
155
145
  YEAR = "YEAR"
156
146
  }
157
- export interface V1FreeTrialPeriod {
158
- /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
159
- frequency?: SubscriptionFrequency;
160
- /**
161
- * interval of period
162
- * @min 1
163
- * @max 999
164
- */
165
- interval?: number;
166
- }
167
- export interface OrderLineItem {
147
+ interface OrderLineItem {
168
148
  /**
169
149
  * Line item ID.
170
150
  * @immutable
@@ -281,7 +261,7 @@ export interface OrderLineItem {
281
261
  */
282
262
  extendedFields?: ExtendedFields;
283
263
  }
284
- export interface ProductName {
264
+ interface ProductName {
285
265
  /**
286
266
  * __Required.__ Item 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).
287
267
  *
@@ -303,7 +283,7 @@ export interface ProductName {
303
283
  translated?: string | null;
304
284
  }
305
285
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
306
- export interface CatalogReference {
286
+ interface CatalogReference {
307
287
  /**
308
288
  * ID of the item within the catalog it belongs to.
309
289
  * @minLength 1
@@ -329,7 +309,7 @@ export interface CatalogReference {
329
309
  */
330
310
  options?: Record<string, any> | null;
331
311
  }
332
- export interface Price {
312
+ interface Price {
333
313
  /**
334
314
  * Amount.
335
315
  * @decimalValue options { gte:0, lte:1000000000000000 }
@@ -341,7 +321,7 @@ export interface Price {
341
321
  */
342
322
  formattedAmount?: string;
343
323
  }
344
- export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
324
+ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
345
325
  /** Description line plain text value. */
346
326
  plainText?: PlainTextValue;
347
327
  /** Description line color value. */
@@ -350,16 +330,16 @@ export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionL
350
330
  name?: DescriptionLineName;
351
331
  }
352
332
  /** @oneof */
353
- export interface DescriptionLineValueOneOf {
333
+ interface DescriptionLineValueOneOf {
354
334
  /** Description line plain text value. */
355
335
  plainText?: PlainTextValue;
356
336
  /** Description line color value. */
357
337
  colorInfo?: Color;
358
338
  }
359
339
  /** @oneof */
360
- export interface DescriptionLineDescriptionLineValueOneOf {
340
+ interface DescriptionLineDescriptionLineValueOneOf {
361
341
  }
362
- export interface DescriptionLineName {
342
+ interface DescriptionLineName {
363
343
  /**
364
344
  * 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
345
  * @maxLength 100
@@ -373,7 +353,7 @@ export interface DescriptionLineName {
373
353
  */
374
354
  translated?: string | null;
375
355
  }
376
- export interface PlainTextValue {
356
+ interface PlainTextValue {
377
357
  /**
378
358
  * 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
359
  * @maxLength 600
@@ -387,7 +367,7 @@ export interface PlainTextValue {
387
367
  */
388
368
  translated?: string | null;
389
369
  }
390
- export interface Color {
370
+ interface Color {
391
371
  /**
392
372
  * 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
373
  * @maxLength 500
@@ -403,15 +383,7 @@ export interface Color {
403
383
  /** HEX or RGB color code for display. */
404
384
  code?: string | null;
405
385
  }
406
- export declare enum DescriptionLineType {
407
- /** Unrecognized type. */
408
- UNRECOGNISED = "UNRECOGNISED",
409
- /** Plain text type. */
410
- PLAIN_TEXT = "PLAIN_TEXT",
411
- /** Color type. */
412
- COLOR = "COLOR"
413
- }
414
- export interface Image {
386
+ interface Image {
415
387
  /** WixMedia image ID. */
416
388
  id?: string;
417
389
  /** Image URL. */
@@ -434,17 +406,7 @@ export interface Image {
434
406
  */
435
407
  filename?: string | null;
436
408
  }
437
- export interface FocalPoint {
438
- /** X-coordinate of the focal point. */
439
- x?: number;
440
- /** Y-coordinate of the focal point. */
441
- y?: number;
442
- /** crop by height */
443
- height?: number | null;
444
- /** crop by width */
445
- width?: number | null;
446
- }
447
- export interface PhysicalProperties {
409
+ interface PhysicalProperties {
448
410
  /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
449
411
  weight?: number | null;
450
412
  /**
@@ -455,20 +417,20 @@ export interface PhysicalProperties {
455
417
  /** Whether this line item is shippable. */
456
418
  shippable?: boolean;
457
419
  }
458
- export interface ItemType extends ItemTypeItemTypeDataOneOf {
420
+ interface ItemType extends ItemTypeItemTypeDataOneOf {
459
421
  /** Preset item type. */
460
422
  preset?: ItemTypeItemType;
461
423
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
462
424
  custom?: string;
463
425
  }
464
426
  /** @oneof */
465
- export interface ItemTypeItemTypeDataOneOf {
427
+ interface ItemTypeItemTypeDataOneOf {
466
428
  /** Preset item type. */
467
429
  preset?: ItemTypeItemType;
468
430
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
469
431
  custom?: string;
470
432
  }
471
- export declare enum ItemTypeItemType {
433
+ declare enum ItemTypeItemType {
472
434
  UNRECOGNISED = "UNRECOGNISED",
473
435
  PHYSICAL = "PHYSICAL",
474
436
  DIGITAL = "DIGITAL",
@@ -476,7 +438,7 @@ export declare enum ItemTypeItemType {
476
438
  SERVICE = "SERVICE"
477
439
  }
478
440
  /** Type of selected payment option for catalog item */
479
- export declare enum PaymentOptionType {
441
+ declare enum PaymentOptionType {
480
442
  /** The entire payment for this item happens as part of the checkout. */
481
443
  FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
482
444
  /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
@@ -488,7 +450,7 @@ export declare enum PaymentOptionType {
488
450
  /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
489
451
  MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
490
452
  }
491
- export interface ItemTaxFullDetails {
453
+ interface ItemTaxFullDetails {
492
454
  /** Taxable amount of this line item. */
493
455
  taxableAmount?: Price;
494
456
  /**
@@ -499,7 +461,7 @@ export interface ItemTaxFullDetails {
499
461
  /** The calculated tax, based on the `taxableAmount` and `taxRate`. */
500
462
  totalTax?: Price;
501
463
  }
502
- export interface LineItemTaxInfo {
464
+ interface LineItemTaxInfo {
503
465
  /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
504
466
  taxAmount?: Price;
505
467
  /** Amount for which tax is calculated. */
@@ -527,7 +489,7 @@ export interface LineItemTaxInfo {
527
489
  * TaxBreakdown represents tax information for a line item.
528
490
  * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
529
491
  */
530
- export interface LineItemTaxBreakdown {
492
+ interface LineItemTaxBreakdown {
531
493
  /**
532
494
  * Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
533
495
  * @maxLength 200
@@ -560,7 +522,7 @@ export interface LineItemTaxBreakdown {
560
522
  taxableAmount?: Price;
561
523
  }
562
524
  /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
563
- export declare enum JurisdictionType {
525
+ declare enum JurisdictionType {
564
526
  UNDEFINED = "UNDEFINED",
565
527
  COUNTRY = "COUNTRY",
566
528
  STATE = "STATE",
@@ -568,7 +530,7 @@ export declare enum JurisdictionType {
568
530
  CITY = "CITY",
569
531
  SPECIAL = "SPECIAL"
570
532
  }
571
- export interface DigitalFile {
533
+ interface DigitalFile {
572
534
  /**
573
535
  * ID of the secure file in media.
574
536
  * @minLength 1
@@ -588,7 +550,7 @@ export interface DigitalFile {
588
550
  */
589
551
  expirationDate?: Date | null;
590
552
  }
591
- export interface SubscriptionInfo {
553
+ interface SubscriptionInfo {
592
554
  /**
593
555
  * Subscription ID.
594
556
  * @format GUID
@@ -621,35 +583,7 @@ export interface SubscriptionInfo {
621
583
  */
622
584
  subscriptionSettings?: SubscriptionSettings;
623
585
  }
624
- export interface SubscriptionTitle {
625
- /**
626
- * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
627
- * @minLength 1
628
- * @maxLength 150
629
- */
630
- original?: string;
631
- /**
632
- * Subscription option name translated into the buyer's language.
633
- *
634
- * Default: Same as `original`.
635
- * @minLength 1
636
- * @maxLength 150
637
- */
638
- translated?: string | null;
639
- }
640
- export interface SubscriptionDescription {
641
- /**
642
- * Subscription option description.
643
- * @maxLength 500
644
- */
645
- original?: string;
646
- /**
647
- * Translated subscription option description.
648
- * @maxLength 500
649
- */
650
- translated?: string | null;
651
- }
652
- export interface SubscriptionSettings {
586
+ interface SubscriptionSettings {
653
587
  /** Frequency of recurring payment. */
654
588
  frequency?: V2SubscriptionFrequency;
655
589
  /**
@@ -667,45 +601,14 @@ export interface SubscriptionSettings {
667
601
  billingCycles?: number | null;
668
602
  }
669
603
  /** Frequency unit of recurring payment */
670
- export declare enum V2SubscriptionFrequency {
604
+ declare enum V2SubscriptionFrequency {
671
605
  UNDEFINED = "UNDEFINED",
672
606
  DAY = "DAY",
673
607
  WEEK = "WEEK",
674
608
  MONTH = "MONTH",
675
609
  YEAR = "YEAR"
676
610
  }
677
- export interface FreeTrialPeriod {
678
- /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
679
- frequency?: V2SubscriptionFrequency;
680
- /**
681
- * interval of period
682
- * @min 1
683
- * @max 999
684
- */
685
- interval?: number;
686
- }
687
- export interface BillingAdjustment {
688
- /** The type of adjustment. */
689
- type?: AdjustmentType;
690
- /** Summary of the prorated adjustment amount. */
691
- priceSummary?: BillingAdjustmentPriceSummary;
692
- }
693
- export declare enum AdjustmentType {
694
- UNKNOWN_ADJUSTMENT_TYPE = "UNKNOWN_ADJUSTMENT_TYPE",
695
- /** Adjustment increases the total amount due to changes like covering extra billing days. Typically results in an additional fee. */
696
- EXTRA_CHARGE = "EXTRA_CHARGE",
697
- /** Adjustment reduces the total amount due to changes like covering fewer billing days. Typically results in a credit or discount. */
698
- CREDIT = "CREDIT"
699
- }
700
- export interface BillingAdjustmentPriceSummary {
701
- /** Subtotal of adjustment, before tax. */
702
- subtotal?: Price;
703
- /** Tax on adjustment. */
704
- tax?: Price;
705
- /** Total price after tax. */
706
- total?: Price;
707
- }
708
- export interface PriceDescription {
611
+ interface PriceDescription {
709
612
  /**
710
613
  * __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).
711
614
  * @minLength 1
@@ -721,7 +624,7 @@ export interface PriceDescription {
721
624
  */
722
625
  translated?: string | null;
723
626
  }
724
- export interface LocationAndQuantity {
627
+ interface LocationAndQuantity {
725
628
  /**
726
629
  * Location id in the associated owner app.
727
630
  * @format GUID
@@ -747,22 +650,7 @@ export interface LocationAndQuantity {
747
650
  */
748
651
  name?: string | null;
749
652
  }
750
- export interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
751
- /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
752
- addressType?: TaxableAddressType;
753
- }
754
- /** @oneof */
755
- export interface TaxableAddressTaxableAddressDataOneOf {
756
- /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
757
- addressType?: TaxableAddressType;
758
- }
759
- export declare enum TaxableAddressType {
760
- UNKNOWN_TAXABLE_ADDRESS = "UNKNOWN_TAXABLE_ADDRESS",
761
- BUSINESS = "BUSINESS",
762
- BILLING = "BILLING",
763
- SHIPPING = "SHIPPING"
764
- }
765
- export interface ExtendedFields {
653
+ interface ExtendedFields {
766
654
  /**
767
655
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
768
656
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -774,7 +662,7 @@ export interface ExtendedFields {
774
662
  namespaces?: Record<string, Record<string, any>>;
775
663
  }
776
664
  /** Buyer Info */
777
- export interface BuyerInfo extends BuyerInfoIdOneOf {
665
+ interface BuyerInfo extends BuyerInfoIdOneOf {
778
666
  /**
779
667
  * Visitor ID (if site visitor is not a member).
780
668
  * @format GUID
@@ -797,7 +685,7 @@ export interface BuyerInfo extends BuyerInfoIdOneOf {
797
685
  email?: string | null;
798
686
  }
799
687
  /** @oneof */
800
- export interface BuyerInfoIdOneOf {
688
+ interface BuyerInfoIdOneOf {
801
689
  /**
802
690
  * Visitor ID (if site visitor is not a member).
803
691
  * @format GUID
@@ -809,7 +697,7 @@ export interface BuyerInfoIdOneOf {
809
697
  */
810
698
  memberId?: string;
811
699
  }
812
- export declare enum WeightUnit {
700
+ declare enum WeightUnit {
813
701
  /** Weight unit can't be classified due to an error. */
814
702
  UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
815
703
  /** Kilograms. */
@@ -817,7 +705,7 @@ export declare enum WeightUnit {
817
705
  /** Pounds. */
818
706
  LB = "LB"
819
707
  }
820
- export interface CurrencyConversionDetails {
708
+ interface CurrencyConversionDetails {
821
709
  /**
822
710
  * Original currency used to calculate the pricing before conversion to payment currency set on the order [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
823
711
  * @readonly
@@ -833,7 +721,7 @@ export interface CurrencyConversionDetails {
833
721
  */
834
722
  conversionRate?: string | null;
835
723
  }
836
- export interface PriceSummary {
724
+ interface PriceSummary {
837
725
  /** Subtotal of all the line items, before discounts and before tax. */
838
726
  subtotal?: Price;
839
727
  /** Total shipping price, before discounts and before tax. */
@@ -848,14 +736,14 @@ export interface PriceSummary {
848
736
  totalAdditionalFees?: Price;
849
737
  }
850
738
  /** Billing Info and shipping details */
851
- export interface AddressWithContact {
739
+ interface AddressWithContact {
852
740
  /** Address. */
853
741
  address?: Address;
854
742
  /** Contact details. */
855
743
  contactDetails?: FullAddressContactDetails;
856
744
  }
857
745
  /** Physical address */
858
- export interface Address {
746
+ interface Address {
859
747
  /**
860
748
  * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
861
749
  * @format COUNTRY
@@ -899,20 +787,14 @@ export interface Address {
899
787
  */
900
788
  subdivisionFullname?: string | null;
901
789
  }
902
- export interface StreetAddress {
790
+ interface StreetAddress {
903
791
  /** Street number. */
904
792
  number?: string;
905
793
  /** Street name. */
906
794
  name?: string;
907
795
  }
908
- export interface AddressLocation {
909
- /** Address latitude. */
910
- latitude?: number | null;
911
- /** Address longitude. */
912
- longitude?: number | null;
913
- }
914
796
  /** Full contact details for an address */
915
- export interface FullAddressContactDetails {
797
+ interface FullAddressContactDetails {
916
798
  /**
917
799
  * First name.
918
800
  * @maxLength 100
@@ -936,7 +818,7 @@ export interface FullAddressContactDetails {
936
818
  /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
937
819
  vatId?: VatId;
938
820
  }
939
- export interface VatId {
821
+ interface VatId {
940
822
  /** Customer's tax ID. */
941
823
  id?: string;
942
824
  /**
@@ -949,14 +831,14 @@ export interface VatId {
949
831
  type?: VatType;
950
832
  }
951
833
  /** tax info types */
952
- export declare enum VatType {
834
+ declare enum VatType {
953
835
  UNSPECIFIED = "UNSPECIFIED",
954
836
  /** CPF - for individual tax payers. */
955
837
  CPF = "CPF",
956
838
  /** CNPJ - for corporations */
957
839
  CNPJ = "CNPJ"
958
840
  }
959
- export interface ShippingInformation {
841
+ interface ShippingInformation {
960
842
  /**
961
843
  * App Def Id of external provider which was a source of shipping info
962
844
  * @minLength 1
@@ -982,7 +864,7 @@ export interface ShippingInformation {
982
864
  /** Shipping region. */
983
865
  region?: ShippingRegion;
984
866
  }
985
- export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
867
+ interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
986
868
  /** Shipping address and contact details. */
987
869
  shippingDestination?: AddressWithContact;
988
870
  /** Pickup details. */
@@ -1006,20 +888,20 @@ export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
1006
888
  deliveryTimeSlot?: DeliveryTimeSlot;
1007
889
  }
1008
890
  /** @oneof */
1009
- export interface DeliveryLogisticsAddressOneOf {
891
+ interface DeliveryLogisticsAddressOneOf {
1010
892
  /** Shipping address and contact details. */
1011
893
  shippingDestination?: AddressWithContact;
1012
894
  /** Pickup details. */
1013
895
  pickupDetails?: PickupDetails;
1014
896
  }
1015
- export interface PickupDetails {
897
+ interface PickupDetails {
1016
898
  /** Pickup address. */
1017
899
  address?: PickupAddress;
1018
900
  /** Pickup method */
1019
901
  pickupMethod?: PickupMethod;
1020
902
  }
1021
903
  /** Physical address */
1022
- export interface PickupAddress {
904
+ interface PickupAddress {
1023
905
  /**
1024
906
  * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
1025
907
  * @format COUNTRY
@@ -1063,18 +945,18 @@ export interface PickupAddress {
1063
945
  */
1064
946
  subdivisionFullname?: string | null;
1065
947
  }
1066
- export declare enum PickupMethod {
948
+ declare enum PickupMethod {
1067
949
  UNKNOWN_METHOD = "UNKNOWN_METHOD",
1068
950
  STORE_PICKUP = "STORE_PICKUP",
1069
951
  PICKUP_POINT = "PICKUP_POINT"
1070
952
  }
1071
- export interface DeliveryTimeSlot {
953
+ interface DeliveryTimeSlot {
1072
954
  /** Delivery slot starting time. */
1073
955
  from?: Date | null;
1074
956
  /** Delivery slot ending time. */
1075
957
  to?: Date | null;
1076
958
  }
1077
- export interface ShippingPrice {
959
+ interface ShippingPrice {
1078
960
  /** Shipping price for display purposes. */
1079
961
  price?: Price;
1080
962
  /**
@@ -1095,61 +977,14 @@ export interface ShippingPrice {
1095
977
  */
1096
978
  discount?: Price;
1097
979
  }
1098
- export interface ShippingRegion {
980
+ interface ShippingRegion {
1099
981
  /**
1100
982
  * Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
1101
983
  * @maxLength 100
1102
984
  */
1103
985
  name?: string | null;
1104
986
  }
1105
- export interface OrderTaxInfo {
1106
- /** Calculated tax, added from line items. */
1107
- totalTax?: Price;
1108
- /**
1109
- * 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.
1110
- * @maxSize 50
1111
- */
1112
- taxBreakdown?: OrderTaxBreakdown[];
1113
- /**
1114
- * Whether the order is exempt from tax calculations.
1115
- *
1116
- * Default: `false`
1117
- * @readonly
1118
- */
1119
- taxExempt?: boolean | null;
1120
- }
1121
- /**
1122
- * 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.
1123
- * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
1124
- */
1125
- export interface OrderTaxBreakdown {
1126
- /**
1127
- * The name of the tax against which this tax amount was calculated.
1128
- * @maxLength 200
1129
- */
1130
- taxName?: string;
1131
- /**
1132
- * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
1133
- * @maxLength 200
1134
- */
1135
- taxType?: string;
1136
- /**
1137
- * The name of the jurisdiction in which this tax detail applies.
1138
- * @maxLength 200
1139
- */
1140
- jurisdiction?: string;
1141
- /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1142
- jurisdictionType?: JurisdictionType;
1143
- /**
1144
- * The rate at which this tax detail was calculated.
1145
- * @format DECIMAL_VALUE
1146
- * @decimalValue options { gte:0, maxScale:6 }
1147
- */
1148
- rate?: string;
1149
- /** The sum of all the tax from line items that calculated by the tax identifiers. */
1150
- aggregatedTaxAmount?: Price;
1151
- }
1152
- export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
987
+ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1153
988
  /** Applied coupon info. */
1154
989
  coupon?: Coupon;
1155
990
  /** Merchant discount. */
@@ -1182,7 +1017,7 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1182
1017
  id?: string | null;
1183
1018
  }
1184
1019
  /** @oneof */
1185
- export interface AppliedDiscountDiscountSourceOneOf {
1020
+ interface AppliedDiscountDiscountSourceOneOf {
1186
1021
  /** Applied coupon info. */
1187
1022
  coupon?: Coupon;
1188
1023
  /** Merchant discount. */
@@ -1190,13 +1025,13 @@ export interface AppliedDiscountDiscountSourceOneOf {
1190
1025
  /** Automatic Discount */
1191
1026
  discountRule?: DiscountRule;
1192
1027
  }
1193
- export declare enum DiscountType {
1028
+ declare enum DiscountType {
1194
1029
  GLOBAL = "GLOBAL",
1195
1030
  SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1196
1031
  SHIPPING = "SHIPPING"
1197
1032
  }
1198
1033
  /** Coupon */
1199
- export interface Coupon {
1034
+ interface Coupon {
1200
1035
  /** Coupon ID. */
1201
1036
  id?: string;
1202
1037
  /** Coupon code. */
@@ -1206,7 +1041,7 @@ export interface Coupon {
1206
1041
  /** Coupon value. */
1207
1042
  amount?: Price;
1208
1043
  }
1209
- export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
1044
+ interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
1210
1045
  /**
1211
1046
  * Pre-defined discount reason (optional).
1212
1047
  * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
@@ -1221,7 +1056,7 @@ export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReason
1221
1056
  amount?: Price;
1222
1057
  }
1223
1058
  /** @oneof */
1224
- export interface MerchantDiscountMerchantDiscountReasonOneOf {
1059
+ interface MerchantDiscountMerchantDiscountReasonOneOf {
1225
1060
  /**
1226
1061
  * Pre-defined discount reason (optional).
1227
1062
  * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
@@ -1233,12 +1068,12 @@ export interface MerchantDiscountMerchantDiscountReasonOneOf {
1233
1068
  */
1234
1069
  description?: string | null;
1235
1070
  }
1236
- export declare enum DiscountReason {
1071
+ declare enum DiscountReason {
1237
1072
  UNSPECIFIED = "UNSPECIFIED",
1238
1073
  EXCHANGED_ITEMS = "EXCHANGED_ITEMS",
1239
1074
  BILLING_ADJUSTMENT = "BILLING_ADJUSTMENT"
1240
1075
  }
1241
- export interface DiscountRule {
1076
+ interface DiscountRule {
1242
1077
  /**
1243
1078
  * Discount rule ID
1244
1079
  * @format GUID
@@ -1249,7 +1084,7 @@ export interface DiscountRule {
1249
1084
  /** Discount value. */
1250
1085
  amount?: Price;
1251
1086
  }
1252
- export interface DiscountRuleName {
1087
+ interface DiscountRuleName {
1253
1088
  /**
1254
1089
  * Original discount rule name (in site's default language).
1255
1090
  * @minLength 1
@@ -1263,16 +1098,7 @@ export interface DiscountRuleName {
1263
1098
  */
1264
1099
  translated?: string | null;
1265
1100
  }
1266
- export interface LineItemDiscount {
1267
- /**
1268
- * ID of line item the discount applies to.
1269
- * @format GUID
1270
- */
1271
- id?: string;
1272
- /** Total discount for this line item. */
1273
- totalDiscount?: Price;
1274
- }
1275
- export interface ChannelInfo {
1101
+ interface ChannelInfo {
1276
1102
  /** Sales channel that submitted the order. */
1277
1103
  type?: ChannelType;
1278
1104
  /**
@@ -1286,7 +1112,7 @@ export interface ChannelInfo {
1286
1112
  */
1287
1113
  externalOrderUrl?: string | null;
1288
1114
  }
1289
- export declare enum ChannelType {
1115
+ declare enum ChannelType {
1290
1116
  /** Unspecified sales channel. This value is not supported. */
1291
1117
  UNSPECIFIED = "UNSPECIFIED",
1292
1118
  /** A web client. */
@@ -1320,7 +1146,7 @@ export declare enum ChannelType {
1320
1146
  /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
1321
1147
  FAIRE_COM = "FAIRE_COM"
1322
1148
  }
1323
- export interface CustomField {
1149
+ interface CustomField {
1324
1150
  /** Custom field value. */
1325
1151
  value?: any;
1326
1152
  /**
@@ -1336,23 +1162,7 @@ export interface CustomField {
1336
1162
  */
1337
1163
  translatedTitle?: string | null;
1338
1164
  }
1339
- export interface V1SubscriptionTitle {
1340
- /**
1341
- * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
1342
- * @minLength 1
1343
- * @maxLength 150
1344
- */
1345
- original?: string;
1346
- /**
1347
- * Subscription option name translated into the buyer's language.
1348
- *
1349
- * Default: Same as `original`.
1350
- * @minLength 1
1351
- * @maxLength 150
1352
- */
1353
- translated?: string | null;
1354
- }
1355
- export interface AdditionalFee {
1165
+ interface AdditionalFee {
1356
1166
  /**
1357
1167
  * Additional fee's unique code for future processing.
1358
1168
  * @minLength 1
@@ -1391,53 +1201,22 @@ export interface AdditionalFee {
1391
1201
  */
1392
1202
  lineItemIds?: string[];
1393
1203
  }
1394
- export interface Location {
1395
- /**
1396
- * Location ID.
1397
- * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
1398
- * @format GUID
1399
- */
1400
- id?: string;
1401
- /**
1402
- * Location name.
1403
- * @minLength 1
1404
- * @maxLength 500
1405
- * @readonly
1406
- */
1407
- name?: string;
1408
- }
1409
- export interface CreateSubscriptionContractRequest {
1410
- /** SubscriptionContract to be created. */
1411
- subscriptionContract?: SubscriptionContract;
1412
- }
1413
- export interface CreateSubscriptionContractResponse {
1414
- /** The created SubscriptionContract. */
1415
- subscriptionContract?: SubscriptionContract;
1416
- }
1417
- export interface GetSubscriptionContractRequest {
1204
+ interface GetSubscriptionContractRequest {
1418
1205
  /**
1419
1206
  * ID of the SubscriptionContract to retrieve.
1420
1207
  * @format GUID
1421
1208
  */
1422
1209
  subscriptionContractId: string;
1423
1210
  }
1424
- export interface GetSubscriptionContractResponse {
1211
+ interface GetSubscriptionContractResponse {
1425
1212
  /** The requested SubscriptionContract. */
1426
1213
  subscriptionContract?: SubscriptionContract;
1427
1214
  }
1428
- export interface UpdateSubscriptionContractRequest {
1429
- /** SubscriptionContract to be updated, may be partial. */
1430
- subscriptionContract?: SubscriptionContract;
1431
- }
1432
- export interface UpdateSubscriptionContractResponse {
1433
- /** Updated SubscriptionContract. */
1434
- subscriptionContract?: SubscriptionContract;
1435
- }
1436
- export interface QuerySubscriptionContractsRequest {
1215
+ interface QuerySubscriptionContractsRequest {
1437
1216
  /** WQL expression. */
1438
1217
  query?: CursorQuery;
1439
1218
  }
1440
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1219
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
1441
1220
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
1442
1221
  cursorPaging?: CursorPaging;
1443
1222
  /**
@@ -1459,11 +1238,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1459
1238
  sort?: Sorting[];
1460
1239
  }
1461
1240
  /** @oneof */
1462
- export interface CursorQueryPagingMethodOneOf {
1241
+ interface CursorQueryPagingMethodOneOf {
1463
1242
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
1464
1243
  cursorPaging?: CursorPaging;
1465
1244
  }
1466
- export interface Sorting {
1245
+ interface Sorting {
1467
1246
  /**
1468
1247
  * Name of the field to sort by.
1469
1248
  * @maxLength 512
@@ -1472,11 +1251,11 @@ export interface Sorting {
1472
1251
  /** Sort order. */
1473
1252
  order?: SortOrder;
1474
1253
  }
1475
- export declare enum SortOrder {
1254
+ declare enum SortOrder {
1476
1255
  ASC = "ASC",
1477
1256
  DESC = "DESC"
1478
1257
  }
1479
- export interface CursorPaging {
1258
+ interface CursorPaging {
1480
1259
  /**
1481
1260
  * Maximum number of items to return in the results.
1482
1261
  * @max 100
@@ -1491,13 +1270,13 @@ export interface CursorPaging {
1491
1270
  */
1492
1271
  cursor?: string | null;
1493
1272
  }
1494
- export interface QuerySubscriptionContractsResponse {
1273
+ interface QuerySubscriptionContractsResponse {
1495
1274
  /** List of SubscriptionContracts. */
1496
1275
  subscriptionContracts?: SubscriptionContract[];
1497
1276
  /** Paging metadata */
1498
1277
  pagingMetadata?: CursorPagingMetadata;
1499
1278
  }
1500
- export interface CursorPagingMetadata {
1279
+ interface CursorPagingMetadata {
1501
1280
  /** Number of items returned in the response. */
1502
1281
  count?: number | null;
1503
1282
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -1510,7 +1289,7 @@ export interface CursorPagingMetadata {
1510
1289
  */
1511
1290
  hasNext?: boolean | null;
1512
1291
  }
1513
- export interface Cursors {
1292
+ interface Cursors {
1514
1293
  /**
1515
1294
  * Cursor string pointing to the next page in the list of results.
1516
1295
  * @maxLength 16000
@@ -1522,147 +1301,20 @@ export interface Cursors {
1522
1301
  */
1523
1302
  prev?: string | null;
1524
1303
  }
1525
- export interface DomainEvent extends DomainEventBodyOneOf {
1526
- createdEvent?: EntityCreatedEvent;
1527
- updatedEvent?: EntityUpdatedEvent;
1528
- deletedEvent?: EntityDeletedEvent;
1529
- actionEvent?: ActionEvent;
1530
- /**
1531
- * Unique event ID.
1532
- * Allows clients to ignore duplicate webhooks.
1533
- */
1534
- id?: string;
1535
- /**
1536
- * Assumes actions are also always typed to an entity_type
1537
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1538
- */
1539
- entityFqdn?: string;
1540
- /**
1541
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1542
- * This is although the created/updated/deleted notion is duplication of the oneof types
1543
- * Example: created/updated/deleted/started/completed/email_opened
1544
- */
1545
- slug?: string;
1546
- /** ID of the entity associated with the event. */
1547
- entityId?: string;
1548
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1549
- eventTime?: Date | null;
1550
- /**
1551
- * Whether the event was triggered as a result of a privacy regulation application
1552
- * (for example, GDPR).
1553
- */
1554
- triggeredByAnonymizeRequest?: boolean | null;
1555
- /** If present, indicates the action that triggered the event. */
1556
- originatedFrom?: string | null;
1557
- /**
1558
- * A sequence number defining the order of updates to the underlying entity.
1559
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1560
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1561
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1562
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1563
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1564
- */
1565
- entityEventSequence?: string | null;
1566
- }
1567
- /** @oneof */
1568
- export interface DomainEventBodyOneOf {
1569
- createdEvent?: EntityCreatedEvent;
1570
- updatedEvent?: EntityUpdatedEvent;
1571
- deletedEvent?: EntityDeletedEvent;
1572
- actionEvent?: ActionEvent;
1573
- }
1574
- export interface EntityCreatedEvent {
1575
- entityAsJson?: string;
1576
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1577
- restoreInfo?: RestoreInfo;
1578
- }
1579
- export interface RestoreInfo {
1580
- deletedDate?: Date | null;
1581
- }
1582
- export interface EntityUpdatedEvent {
1583
- /**
1584
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1585
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1586
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1587
- */
1588
- currentEntityAsJson?: string;
1589
- }
1590
- export interface EntityDeletedEvent {
1591
- /** Entity that was deleted */
1592
- deletedEntityAsJson?: string | null;
1593
- }
1594
- export interface ActionEvent {
1595
- bodyAsJson?: string;
1596
- }
1597
- export interface Empty {
1598
- }
1599
- export interface MessageEnvelope {
1600
- /**
1601
- * App instance ID.
1602
- * @format GUID
1603
- */
1604
- instanceId?: string | null;
1605
- /**
1606
- * Event type.
1607
- * @maxLength 150
1608
- */
1609
- eventType?: string;
1610
- /** The identification type and identity data. */
1611
- identity?: IdentificationData;
1612
- /** Stringify payload. */
1613
- data?: string;
1614
- }
1615
- export interface IdentificationData extends IdentificationDataIdOneOf {
1616
- /**
1617
- * ID of a site visitor that has not logged in to the site.
1618
- * @format GUID
1619
- */
1620
- anonymousVisitorId?: string;
1621
- /**
1622
- * ID of a site visitor that has logged in to the site.
1623
- * @format GUID
1624
- */
1625
- memberId?: string;
1626
- /**
1627
- * ID of a Wix user (site owner, contributor, etc.).
1628
- * @format GUID
1629
- */
1630
- wixUserId?: string;
1631
- /**
1632
- * ID of an app.
1633
- * @format GUID
1634
- */
1635
- appId?: string;
1636
- /** @readonly */
1637
- identityType?: WebhookIdentityType;
1638
- }
1639
- /** @oneof */
1640
- export interface IdentificationDataIdOneOf {
1641
- /**
1642
- * ID of a site visitor that has not logged in to the site.
1643
- * @format GUID
1644
- */
1645
- anonymousVisitorId?: string;
1646
- /**
1647
- * ID of a site visitor that has logged in to the site.
1648
- * @format GUID
1649
- */
1650
- memberId?: string;
1651
- /**
1652
- * ID of a Wix user (site owner, contributor, etc.).
1653
- * @format GUID
1654
- */
1655
- wixUserId?: string;
1656
- /**
1657
- * ID of an app.
1658
- * @format GUID
1659
- */
1660
- appId?: string;
1661
- }
1662
- export declare enum WebhookIdentityType {
1663
- UNKNOWN = "UNKNOWN",
1664
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1665
- MEMBER = "MEMBER",
1666
- WIX_USER = "WIX_USER",
1667
- APP = "APP"
1668
- }
1304
+
1305
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1306
+ getUrl: (context: any) => string;
1307
+ httpMethod: K;
1308
+ path: string;
1309
+ pathParams: M;
1310
+ __requestType: T;
1311
+ __originalRequestType: S;
1312
+ __responseType: Q;
1313
+ __originalResponseType: R;
1314
+ };
1315
+ declare function getSubscriptionContract(): __PublicMethodMetaInfo<'GET', {
1316
+ subscriptionContractId: string;
1317
+ }, GetSubscriptionContractRequest$1, GetSubscriptionContractRequest, GetSubscriptionContractResponse$1, GetSubscriptionContractResponse>;
1318
+ declare function querySubscriptionContracts(): __PublicMethodMetaInfo<'GET', {}, QuerySubscriptionContractsRequest$1, QuerySubscriptionContractsRequest, QuerySubscriptionContractsResponse$1, QuerySubscriptionContractsResponse>;
1319
+
1320
+ export { type __PublicMethodMetaInfo, getSubscriptionContract, querySubscriptionContracts };