@wix/auto_sdk_ecom_subscription-contracts 1.0.33 → 1.0.34

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-BwexlKIz.d.mts} +135 -227
  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-BwexlKIz.d.ts} +135 -227
  3. package/build/index.d.mts +41 -0
  4. package/build/index.d.ts +41 -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-DaM0yN7N.d.mts} +135 -227
  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-DaM0yN7N.d.ts} +135 -227
  11. package/build/internal/index.d.mts +41 -0
  12. package/build/internal/index.d.ts +41 -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} +111 -479
  18. package/build/{es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → internal/meta.d.ts} +111 -479
  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} +111 -479
  24. package/build/{internal/es/src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.d.ts → meta.d.ts} +111 -479
  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 +12 -11
  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 -338
  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 -310
  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 -338
  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 -310
  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 { aC as GetSubscriptionContractRequest$1, aD as GetSubscriptionContractResponse$1, aG as QuerySubscriptionContractsRequest$1, aL as QuerySubscriptionContractsResponse$1 } from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal-DaM0yN7N.mjs';
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?: SubscriptionFrequencyWithLiterals;
134
124
  /**
@@ -149,7 +139,7 @@ export interface V1SubscriptionSettings {
149
139
  /** Period until first cycle starts. If None => no free trial */
150
140
  freeTrialPeriod?: V1FreeTrialPeriod;
151
141
  }
152
- export declare enum SubscriptionFrequency {
142
+ declare enum SubscriptionFrequency {
153
143
  UNDEFINED = "UNDEFINED",
154
144
  DAY = "DAY",
155
145
  WEEK = "WEEK",
@@ -157,8 +147,8 @@ export declare enum SubscriptionFrequency {
157
147
  YEAR = "YEAR"
158
148
  }
159
149
  /** @enumType */
160
- export type SubscriptionFrequencyWithLiterals = SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
161
- export interface V1FreeTrialPeriod {
150
+ type SubscriptionFrequencyWithLiterals = SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
151
+ interface V1FreeTrialPeriod {
162
152
  /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
163
153
  frequency?: SubscriptionFrequencyWithLiterals;
164
154
  /**
@@ -168,7 +158,7 @@ export interface V1FreeTrialPeriod {
168
158
  */
169
159
  interval?: number;
170
160
  }
171
- export interface OrderLineItem {
161
+ interface OrderLineItem {
172
162
  /**
173
163
  * Line item ID.
174
164
  * @immutable
@@ -287,7 +277,7 @@ export interface OrderLineItem {
287
277
  */
288
278
  extendedFields?: ExtendedFields;
289
279
  }
290
- export interface ProductName {
280
+ interface ProductName {
291
281
  /**
292
282
  * __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).
293
283
  *
@@ -309,7 +299,7 @@ export interface ProductName {
309
299
  translated?: string | null;
310
300
  }
311
301
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
312
- export interface CatalogReference {
302
+ interface CatalogReference {
313
303
  /**
314
304
  * ID of the item within the catalog it belongs to.
315
305
  * @minLength 1
@@ -335,7 +325,7 @@ export interface CatalogReference {
335
325
  */
336
326
  options?: Record<string, any> | null;
337
327
  }
338
- export interface Price {
328
+ interface Price {
339
329
  /**
340
330
  * Amount.
341
331
  * @decimalValue options { gte:0, lte:1000000000000000 }
@@ -347,7 +337,7 @@ export interface Price {
347
337
  */
348
338
  formattedAmount?: string;
349
339
  }
350
- export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
340
+ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
351
341
  /** Description line plain text value. */
352
342
  plainText?: PlainTextValue;
353
343
  /** Description line color value. */
@@ -356,16 +346,16 @@ export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionL
356
346
  name?: DescriptionLineName;
357
347
  }
358
348
  /** @oneof */
359
- export interface DescriptionLineValueOneOf {
349
+ interface DescriptionLineValueOneOf {
360
350
  /** Description line plain text value. */
361
351
  plainText?: PlainTextValue;
362
352
  /** Description line color value. */
363
353
  colorInfo?: Color;
364
354
  }
365
355
  /** @oneof */
366
- export interface DescriptionLineDescriptionLineValueOneOf {
356
+ interface DescriptionLineDescriptionLineValueOneOf {
367
357
  }
368
- export interface DescriptionLineName {
358
+ interface DescriptionLineName {
369
359
  /**
370
360
  * 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).
371
361
  * @maxLength 100
@@ -379,7 +369,7 @@ export interface DescriptionLineName {
379
369
  */
380
370
  translated?: string | null;
381
371
  }
382
- export interface PlainTextValue {
372
+ interface PlainTextValue {
383
373
  /**
384
374
  * 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).
385
375
  * @maxLength 600
@@ -393,7 +383,7 @@ export interface PlainTextValue {
393
383
  */
394
384
  translated?: string | null;
395
385
  }
396
- export interface Color {
386
+ interface Color {
397
387
  /**
398
388
  * 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).
399
389
  * @maxLength 500
@@ -409,17 +399,7 @@ export interface Color {
409
399
  /** HEX or RGB color code for display. */
410
400
  code?: string | null;
411
401
  }
412
- export declare enum DescriptionLineType {
413
- /** Unrecognized type. */
414
- UNRECOGNISED = "UNRECOGNISED",
415
- /** Plain text type. */
416
- PLAIN_TEXT = "PLAIN_TEXT",
417
- /** Color type. */
418
- COLOR = "COLOR"
419
- }
420
- /** @enumType */
421
- export type DescriptionLineTypeWithLiterals = DescriptionLineType | 'UNRECOGNISED' | 'PLAIN_TEXT' | 'COLOR';
422
- export interface Image {
402
+ interface Image {
423
403
  /** WixMedia image ID. */
424
404
  id?: string;
425
405
  /** Image URL. */
@@ -442,17 +422,7 @@ export interface Image {
442
422
  */
443
423
  filename?: string | null;
444
424
  }
445
- export interface FocalPoint {
446
- /** X-coordinate of the focal point. */
447
- x?: number;
448
- /** Y-coordinate of the focal point. */
449
- y?: number;
450
- /** crop by height */
451
- height?: number | null;
452
- /** crop by width */
453
- width?: number | null;
454
- }
455
- export interface PhysicalProperties {
425
+ interface PhysicalProperties {
456
426
  /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
457
427
  weight?: number | null;
458
428
  /**
@@ -463,20 +433,20 @@ export interface PhysicalProperties {
463
433
  /** Whether this line item is shippable. */
464
434
  shippable?: boolean;
465
435
  }
466
- export interface ItemType extends ItemTypeItemTypeDataOneOf {
436
+ interface ItemType extends ItemTypeItemTypeDataOneOf {
467
437
  /** Preset item type. */
468
438
  preset?: ItemTypeItemTypeWithLiterals;
469
439
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
470
440
  custom?: string;
471
441
  }
472
442
  /** @oneof */
473
- export interface ItemTypeItemTypeDataOneOf {
443
+ interface ItemTypeItemTypeDataOneOf {
474
444
  /** Preset item type. */
475
445
  preset?: ItemTypeItemTypeWithLiterals;
476
446
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
477
447
  custom?: string;
478
448
  }
479
- export declare enum ItemTypeItemType {
449
+ declare enum ItemTypeItemType {
480
450
  UNRECOGNISED = "UNRECOGNISED",
481
451
  PHYSICAL = "PHYSICAL",
482
452
  DIGITAL = "DIGITAL",
@@ -484,9 +454,9 @@ export declare enum ItemTypeItemType {
484
454
  SERVICE = "SERVICE"
485
455
  }
486
456
  /** @enumType */
487
- export type ItemTypeItemTypeWithLiterals = ItemTypeItemType | 'UNRECOGNISED' | 'PHYSICAL' | 'DIGITAL' | 'GIFT_CARD' | 'SERVICE';
457
+ type ItemTypeItemTypeWithLiterals = ItemTypeItemType | 'UNRECOGNISED' | 'PHYSICAL' | 'DIGITAL' | 'GIFT_CARD' | 'SERVICE';
488
458
  /** Type of selected payment option for catalog item */
489
- export declare enum PaymentOptionType {
459
+ declare enum PaymentOptionType {
490
460
  /** The entire payment for this item happens as part of the checkout. */
491
461
  FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
492
462
  /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */
@@ -499,8 +469,8 @@ export declare enum PaymentOptionType {
499
469
  MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
500
470
  }
501
471
  /** @enumType */
502
- export type PaymentOptionTypeWithLiterals = PaymentOptionType | 'FULL_PAYMENT_ONLINE' | 'FULL_PAYMENT_OFFLINE' | 'MEMBERSHIP' | 'DEPOSIT_ONLINE' | 'MEMBERSHIP_OFFLINE';
503
- export interface ItemTaxFullDetails {
472
+ type PaymentOptionTypeWithLiterals = PaymentOptionType | 'FULL_PAYMENT_ONLINE' | 'FULL_PAYMENT_OFFLINE' | 'MEMBERSHIP' | 'DEPOSIT_ONLINE' | 'MEMBERSHIP_OFFLINE';
473
+ interface ItemTaxFullDetails {
504
474
  /** Taxable amount of this line item. */
505
475
  taxableAmount?: Price;
506
476
  /**
@@ -511,7 +481,7 @@ export interface ItemTaxFullDetails {
511
481
  /** The calculated tax, based on the `taxableAmount` and `taxRate`. */
512
482
  totalTax?: Price;
513
483
  }
514
- export interface LineItemTaxInfo {
484
+ interface LineItemTaxInfo {
515
485
  /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
516
486
  taxAmount?: Price;
517
487
  /** Amount for which tax is calculated. */
@@ -539,7 +509,7 @@ export interface LineItemTaxInfo {
539
509
  * TaxBreakdown represents tax information for a line item.
540
510
  * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
541
511
  */
542
- export interface LineItemTaxBreakdown {
512
+ interface LineItemTaxBreakdown {
543
513
  /**
544
514
  * Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
545
515
  * @maxLength 200
@@ -572,7 +542,7 @@ export interface LineItemTaxBreakdown {
572
542
  taxableAmount?: Price;
573
543
  }
574
544
  /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
575
- export declare enum JurisdictionType {
545
+ declare enum JurisdictionType {
576
546
  UNDEFINED = "UNDEFINED",
577
547
  COUNTRY = "COUNTRY",
578
548
  STATE = "STATE",
@@ -581,8 +551,8 @@ export declare enum JurisdictionType {
581
551
  SPECIAL = "SPECIAL"
582
552
  }
583
553
  /** @enumType */
584
- export type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
585
- export interface DigitalFile {
554
+ type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
555
+ interface DigitalFile {
586
556
  /**
587
557
  * ID of the secure file in media.
588
558
  * @minLength 1
@@ -602,7 +572,7 @@ export interface DigitalFile {
602
572
  */
603
573
  expirationDate?: Date | null;
604
574
  }
605
- export interface SubscriptionInfo {
575
+ interface SubscriptionInfo {
606
576
  /**
607
577
  * Subscription ID.
608
578
  * @format GUID
@@ -640,35 +610,7 @@ export interface SubscriptionInfo {
640
610
  */
641
611
  chargesDescription?: string | null;
642
612
  }
643
- export interface SubscriptionTitle {
644
- /**
645
- * 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).
646
- * @minLength 1
647
- * @maxLength 150
648
- */
649
- original?: string;
650
- /**
651
- * Subscription option name translated into the buyer's language.
652
- *
653
- * Default: Same as `original`.
654
- * @minLength 1
655
- * @maxLength 150
656
- */
657
- translated?: string | null;
658
- }
659
- export interface SubscriptionDescription {
660
- /**
661
- * Subscription option description.
662
- * @maxLength 500
663
- */
664
- original?: string;
665
- /**
666
- * Translated subscription option description.
667
- * @maxLength 500
668
- */
669
- translated?: string | null;
670
- }
671
- export interface SubscriptionSettings {
613
+ interface SubscriptionSettings {
672
614
  /** Frequency of recurring payment. */
673
615
  frequency?: V2SubscriptionFrequencyWithLiterals;
674
616
  /**
@@ -690,7 +632,7 @@ export interface SubscriptionSettings {
690
632
  freeTrialPeriod?: FreeTrialPeriod;
691
633
  }
692
634
  /** Frequency unit of recurring payment */
693
- export declare enum V2SubscriptionFrequency {
635
+ declare enum V2SubscriptionFrequency {
694
636
  UNDEFINED = "UNDEFINED",
695
637
  DAY = "DAY",
696
638
  WEEK = "WEEK",
@@ -698,8 +640,8 @@ export declare enum V2SubscriptionFrequency {
698
640
  YEAR = "YEAR"
699
641
  }
700
642
  /** @enumType */
701
- export type V2SubscriptionFrequencyWithLiterals = V2SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
702
- export interface FreeTrialPeriod {
643
+ type V2SubscriptionFrequencyWithLiterals = V2SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
644
+ interface FreeTrialPeriod {
703
645
  /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
704
646
  frequency?: V2SubscriptionFrequencyWithLiterals;
705
647
  /**
@@ -709,30 +651,7 @@ export interface FreeTrialPeriod {
709
651
  */
710
652
  interval?: number;
711
653
  }
712
- export interface BillingAdjustment {
713
- /** The type of adjustment. */
714
- type?: AdjustmentTypeWithLiterals;
715
- /** Summary of the prorated adjustment amount. */
716
- priceSummary?: BillingAdjustmentPriceSummary;
717
- }
718
- export declare enum AdjustmentType {
719
- UNKNOWN_ADJUSTMENT_TYPE = "UNKNOWN_ADJUSTMENT_TYPE",
720
- /** Adjustment increases the total amount due to changes like covering extra billing days. Typically results in an additional fee. */
721
- EXTRA_CHARGE = "EXTRA_CHARGE",
722
- /** Adjustment reduces the total amount due to changes like covering fewer billing days. Typically results in a credit or discount. */
723
- CREDIT = "CREDIT"
724
- }
725
- /** @enumType */
726
- export type AdjustmentTypeWithLiterals = AdjustmentType | 'UNKNOWN_ADJUSTMENT_TYPE' | 'EXTRA_CHARGE' | 'CREDIT';
727
- export interface BillingAdjustmentPriceSummary {
728
- /** Subtotal of adjustment, before tax. */
729
- subtotal?: Price;
730
- /** Tax on adjustment. */
731
- tax?: Price;
732
- /** Total price after tax. */
733
- total?: Price;
734
- }
735
- export interface PriceDescription {
654
+ interface PriceDescription {
736
655
  /**
737
656
  * __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).
738
657
  * @minLength 1
@@ -748,7 +667,7 @@ export interface PriceDescription {
748
667
  */
749
668
  translated?: string | null;
750
669
  }
751
- export interface LocationAndQuantity {
670
+ interface LocationAndQuantity {
752
671
  /**
753
672
  * Location id in the associated owner app.
754
673
  * @format GUID
@@ -774,24 +693,24 @@ export interface LocationAndQuantity {
774
693
  */
775
694
  name?: string | null;
776
695
  }
777
- export interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
696
+ interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {
778
697
  /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
779
698
  addressType?: TaxableAddressTypeWithLiterals;
780
699
  }
781
700
  /** @oneof */
782
- export interface TaxableAddressTaxableAddressDataOneOf {
701
+ interface TaxableAddressTaxableAddressDataOneOf {
783
702
  /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */
784
703
  addressType?: TaxableAddressTypeWithLiterals;
785
704
  }
786
- export declare enum TaxableAddressType {
705
+ declare enum TaxableAddressType {
787
706
  UNKNOWN_TAXABLE_ADDRESS = "UNKNOWN_TAXABLE_ADDRESS",
788
707
  BUSINESS = "BUSINESS",
789
708
  BILLING = "BILLING",
790
709
  SHIPPING = "SHIPPING"
791
710
  }
792
711
  /** @enumType */
793
- export type TaxableAddressTypeWithLiterals = TaxableAddressType | 'UNKNOWN_TAXABLE_ADDRESS' | 'BUSINESS' | 'BILLING' | 'SHIPPING';
794
- export interface ExtendedFields {
712
+ type TaxableAddressTypeWithLiterals = TaxableAddressType | 'UNKNOWN_TAXABLE_ADDRESS' | 'BUSINESS' | 'BILLING' | 'SHIPPING';
713
+ interface ExtendedFields {
795
714
  /**
796
715
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
797
716
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -802,65 +721,8 @@ export interface ExtendedFields {
802
721
  */
803
722
  namespaces?: Record<string, Record<string, any>>;
804
723
  }
805
- export interface ModifierGroup {
806
- /**
807
- * Modifier group id.
808
- * @minLength 1
809
- * @maxLength 36
810
- */
811
- id?: string;
812
- /** Modifier group name. */
813
- name?: TranslatableString;
814
- /**
815
- * List of modifiers in this group.
816
- * @minSize 1
817
- * @maxSize 10
818
- */
819
- modifiers?: ItemModifier[];
820
- }
821
- export interface TranslatableString {
822
- /**
823
- * __Required.__ String 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).
824
- *
825
- * Min: 1 character.
826
- * Max: 200 characters.
827
- * @minLength 1
828
- * @maxLength 200
829
- */
830
- original?: string;
831
- /**
832
- * String translated into the buyer's language.
833
- *
834
- * Min: 1 character.
835
- * Max: 400 characters.
836
- * Default: Same as `original`.
837
- * @minLength 1
838
- * @maxLength 400
839
- */
840
- translated?: string | null;
841
- }
842
- export interface ItemModifier {
843
- /**
844
- * Modifier ID.
845
- * @minLength 1
846
- * @maxLength 36
847
- */
848
- id?: string;
849
- /**
850
- * The quantity of this modifier.
851
- * @min 1
852
- * @max 100000
853
- */
854
- quantity?: number | null;
855
- /** Primary display label for the modifier. */
856
- label?: TranslatableString;
857
- /** Optional additional details or clarification for the modifier. */
858
- details?: TranslatableString;
859
- /** The price of the modifier. */
860
- price?: Price;
861
- }
862
724
  /** Buyer Info */
863
- export interface BuyerInfo extends BuyerInfoIdOneOf {
725
+ interface BuyerInfo extends BuyerInfoIdOneOf {
864
726
  /**
865
727
  * Visitor ID (if site visitor is not a member).
866
728
  * @format GUID
@@ -883,7 +745,7 @@ export interface BuyerInfo extends BuyerInfoIdOneOf {
883
745
  email?: string | null;
884
746
  }
885
747
  /** @oneof */
886
- export interface BuyerInfoIdOneOf {
748
+ interface BuyerInfoIdOneOf {
887
749
  /**
888
750
  * Visitor ID (if site visitor is not a member).
889
751
  * @format GUID
@@ -895,7 +757,7 @@ export interface BuyerInfoIdOneOf {
895
757
  */
896
758
  memberId?: string;
897
759
  }
898
- export declare enum WeightUnit {
760
+ declare enum WeightUnit {
899
761
  /** Weight unit can't be classified due to an error. */
900
762
  UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
901
763
  /** Kilograms. */
@@ -904,8 +766,8 @@ export declare enum WeightUnit {
904
766
  LB = "LB"
905
767
  }
906
768
  /** @enumType */
907
- export type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
908
- export interface CurrencyConversionDetails {
769
+ type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
770
+ interface CurrencyConversionDetails {
909
771
  /**
910
772
  * 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.
911
773
  *
@@ -923,7 +785,7 @@ export interface CurrencyConversionDetails {
923
785
  */
924
786
  conversionRate?: string | null;
925
787
  }
926
- export interface PriceSummary {
788
+ interface PriceSummary {
927
789
  /** Subtotal of all the line items, before discounts and before tax. */
928
790
  subtotal?: Price;
929
791
  /** Total shipping price, before discounts and before tax. */
@@ -938,14 +800,14 @@ export interface PriceSummary {
938
800
  totalAdditionalFees?: Price;
939
801
  }
940
802
  /** Billing Info and shipping details */
941
- export interface AddressWithContact {
803
+ interface AddressWithContact {
942
804
  /** Address. */
943
805
  address?: Address;
944
806
  /** Contact details. */
945
807
  contactDetails?: FullAddressContactDetails;
946
808
  }
947
809
  /** Physical address */
948
- export interface Address {
810
+ interface Address {
949
811
  /**
950
812
  * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
951
813
  * @format COUNTRY
@@ -989,20 +851,14 @@ export interface Address {
989
851
  */
990
852
  subdivisionFullname?: string | null;
991
853
  }
992
- export interface StreetAddress {
854
+ interface StreetAddress {
993
855
  /** Street number. */
994
856
  number?: string;
995
857
  /** Street name. */
996
858
  name?: string;
997
859
  }
998
- export interface AddressLocation {
999
- /** Address latitude. */
1000
- latitude?: number | null;
1001
- /** Address longitude. */
1002
- longitude?: number | null;
1003
- }
1004
860
  /** Full contact details for an address */
1005
- export interface FullAddressContactDetails {
861
+ interface FullAddressContactDetails {
1006
862
  /**
1007
863
  * First name.
1008
864
  * @maxLength 100
@@ -1026,7 +882,7 @@ export interface FullAddressContactDetails {
1026
882
  /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
1027
883
  vatId?: VatId;
1028
884
  }
1029
- export interface VatId {
885
+ interface VatId {
1030
886
  /** Customer's tax ID. */
1031
887
  id?: string;
1032
888
  /**
@@ -1039,7 +895,7 @@ export interface VatId {
1039
895
  type?: VatTypeWithLiterals;
1040
896
  }
1041
897
  /** tax info types */
1042
- export declare enum VatType {
898
+ declare enum VatType {
1043
899
  UNSPECIFIED = "UNSPECIFIED",
1044
900
  /** CPF - for individual tax payers. */
1045
901
  CPF = "CPF",
@@ -1047,8 +903,8 @@ export declare enum VatType {
1047
903
  CNPJ = "CNPJ"
1048
904
  }
1049
905
  /** @enumType */
1050
- export type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
1051
- export interface ShippingInformation {
906
+ type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
907
+ interface ShippingInformation {
1052
908
  /**
1053
909
  * App Def Id of external provider which was a source of shipping info
1054
910
  * @minLength 1
@@ -1074,7 +930,7 @@ export interface ShippingInformation {
1074
930
  /** Shipping region. */
1075
931
  region?: ShippingRegion;
1076
932
  }
1077
- export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
933
+ interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
1078
934
  /** Shipping address and contact details. */
1079
935
  shippingDestination?: AddressWithContact;
1080
936
  /** Pickup details. */
@@ -1098,20 +954,20 @@ export interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {
1098
954
  deliveryTimeSlot?: DeliveryTimeSlot;
1099
955
  }
1100
956
  /** @oneof */
1101
- export interface DeliveryLogisticsAddressOneOf {
957
+ interface DeliveryLogisticsAddressOneOf {
1102
958
  /** Shipping address and contact details. */
1103
959
  shippingDestination?: AddressWithContact;
1104
960
  /** Pickup details. */
1105
961
  pickupDetails?: PickupDetails;
1106
962
  }
1107
- export interface PickupDetails {
963
+ interface PickupDetails {
1108
964
  /** Pickup address. */
1109
965
  address?: PickupAddress;
1110
966
  /** Pickup method */
1111
967
  pickupMethod?: PickupMethodWithLiterals;
1112
968
  }
1113
969
  /** Physical address */
1114
- export interface PickupAddress {
970
+ interface PickupAddress {
1115
971
  /**
1116
972
  * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
1117
973
  * @format COUNTRY
@@ -1155,20 +1011,20 @@ export interface PickupAddress {
1155
1011
  */
1156
1012
  subdivisionFullname?: string | null;
1157
1013
  }
1158
- export declare enum PickupMethod {
1014
+ declare enum PickupMethod {
1159
1015
  UNKNOWN_METHOD = "UNKNOWN_METHOD",
1160
1016
  STORE_PICKUP = "STORE_PICKUP",
1161
1017
  PICKUP_POINT = "PICKUP_POINT"
1162
1018
  }
1163
1019
  /** @enumType */
1164
- export type PickupMethodWithLiterals = PickupMethod | 'UNKNOWN_METHOD' | 'STORE_PICKUP' | 'PICKUP_POINT';
1165
- export interface DeliveryTimeSlot {
1020
+ type PickupMethodWithLiterals = PickupMethod | 'UNKNOWN_METHOD' | 'STORE_PICKUP' | 'PICKUP_POINT';
1021
+ interface DeliveryTimeSlot {
1166
1022
  /** Delivery slot starting time. */
1167
1023
  from?: Date | null;
1168
1024
  /** Delivery slot ending time. */
1169
1025
  to?: Date | null;
1170
1026
  }
1171
- export interface ShippingPrice {
1027
+ interface ShippingPrice {
1172
1028
  /** Shipping price for display purposes. */
1173
1029
  price?: Price;
1174
1030
  /**
@@ -1189,61 +1045,14 @@ export interface ShippingPrice {
1189
1045
  */
1190
1046
  discount?: Price;
1191
1047
  }
1192
- export interface ShippingRegion {
1048
+ interface ShippingRegion {
1193
1049
  /**
1194
1050
  * Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
1195
1051
  * @maxLength 100
1196
1052
  */
1197
1053
  name?: string | null;
1198
1054
  }
1199
- export interface OrderTaxInfo {
1200
- /** Calculated tax, added from line items. */
1201
- totalTax?: Price;
1202
- /**
1203
- * 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.
1204
- * @maxSize 50
1205
- */
1206
- taxBreakdown?: OrderTaxBreakdown[];
1207
- /**
1208
- * Whether the order is exempt from tax calculations.
1209
- *
1210
- * Default: `false`
1211
- * @readonly
1212
- */
1213
- taxExempt?: boolean | null;
1214
- }
1215
- /**
1216
- * 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.
1217
- * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
1218
- */
1219
- export interface OrderTaxBreakdown {
1220
- /**
1221
- * The name of the tax against which this tax amount was calculated.
1222
- * @maxLength 200
1223
- */
1224
- taxName?: string;
1225
- /**
1226
- * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
1227
- * @maxLength 200
1228
- */
1229
- taxType?: string;
1230
- /**
1231
- * The name of the jurisdiction in which this tax detail applies.
1232
- * @maxLength 200
1233
- */
1234
- jurisdiction?: string;
1235
- /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1236
- jurisdictionType?: JurisdictionTypeWithLiterals;
1237
- /**
1238
- * The rate at which this tax detail was calculated.
1239
- * @format DECIMAL_VALUE
1240
- * @decimalValue options { gte:0, maxScale:6 }
1241
- */
1242
- rate?: string;
1243
- /** The sum of all the tax from line items that calculated by the tax identifiers. */
1244
- aggregatedTaxAmount?: Price;
1245
- }
1246
- export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1055
+ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1247
1056
  /** Applied coupon info. */
1248
1057
  coupon?: Coupon;
1249
1058
  /** Merchant discount. */
@@ -1276,7 +1085,7 @@ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1276
1085
  id?: string | null;
1277
1086
  }
1278
1087
  /** @oneof */
1279
- export interface AppliedDiscountDiscountSourceOneOf {
1088
+ interface AppliedDiscountDiscountSourceOneOf {
1280
1089
  /** Applied coupon info. */
1281
1090
  coupon?: Coupon;
1282
1091
  /** Merchant discount. */
@@ -1284,15 +1093,15 @@ export interface AppliedDiscountDiscountSourceOneOf {
1284
1093
  /** Automatic Discount */
1285
1094
  discountRule?: DiscountRule;
1286
1095
  }
1287
- export declare enum DiscountType {
1096
+ declare enum DiscountType {
1288
1097
  GLOBAL = "GLOBAL",
1289
1098
  SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1290
1099
  SHIPPING = "SHIPPING"
1291
1100
  }
1292
1101
  /** @enumType */
1293
- export type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
1102
+ type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
1294
1103
  /** Coupon */
1295
- export interface Coupon {
1104
+ interface Coupon {
1296
1105
  /** Coupon ID. */
1297
1106
  id?: string;
1298
1107
  /** Coupon code. */
@@ -1302,7 +1111,7 @@ export interface Coupon {
1302
1111
  /** Coupon value. */
1303
1112
  amount?: Price;
1304
1113
  }
1305
- export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
1114
+ interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
1306
1115
  /**
1307
1116
  * Pre-defined discount reason (optional).
1308
1117
  * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
@@ -1317,7 +1126,7 @@ export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReason
1317
1126
  amount?: Price;
1318
1127
  }
1319
1128
  /** @oneof */
1320
- export interface MerchantDiscountMerchantDiscountReasonOneOf {
1129
+ interface MerchantDiscountMerchantDiscountReasonOneOf {
1321
1130
  /**
1322
1131
  * Pre-defined discount reason (optional).
1323
1132
  * * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
@@ -1329,14 +1138,14 @@ export interface MerchantDiscountMerchantDiscountReasonOneOf {
1329
1138
  */
1330
1139
  description?: string | null;
1331
1140
  }
1332
- export declare enum DiscountReason {
1141
+ declare enum DiscountReason {
1333
1142
  UNSPECIFIED = "UNSPECIFIED",
1334
1143
  EXCHANGED_ITEMS = "EXCHANGED_ITEMS",
1335
1144
  BILLING_ADJUSTMENT = "BILLING_ADJUSTMENT"
1336
1145
  }
1337
1146
  /** @enumType */
1338
- export type DiscountReasonWithLiterals = DiscountReason | 'UNSPECIFIED' | 'EXCHANGED_ITEMS' | 'BILLING_ADJUSTMENT';
1339
- export interface DiscountRule {
1147
+ type DiscountReasonWithLiterals = DiscountReason | 'UNSPECIFIED' | 'EXCHANGED_ITEMS' | 'BILLING_ADJUSTMENT';
1148
+ interface DiscountRule {
1340
1149
  /**
1341
1150
  * Discount rule ID
1342
1151
  * @format GUID
@@ -1347,7 +1156,7 @@ export interface DiscountRule {
1347
1156
  /** Discount value. */
1348
1157
  amount?: Price;
1349
1158
  }
1350
- export interface DiscountRuleName {
1159
+ interface DiscountRuleName {
1351
1160
  /**
1352
1161
  * Original discount rule name (in site's default language).
1353
1162
  * @minLength 1
@@ -1361,16 +1170,7 @@ export interface DiscountRuleName {
1361
1170
  */
1362
1171
  translated?: string | null;
1363
1172
  }
1364
- export interface LineItemDiscount {
1365
- /**
1366
- * ID of line item the discount applies to.
1367
- * @format GUID
1368
- */
1369
- id?: string;
1370
- /** Total discount for this line item. */
1371
- totalDiscount?: Price;
1372
- }
1373
- export interface ChannelInfo {
1173
+ interface ChannelInfo {
1374
1174
  /** Sales channel that submitted the order. */
1375
1175
  type?: ChannelTypeWithLiterals;
1376
1176
  /**
@@ -1384,7 +1184,7 @@ export interface ChannelInfo {
1384
1184
  */
1385
1185
  externalOrderUrl?: string | null;
1386
1186
  }
1387
- export declare enum ChannelType {
1187
+ declare enum ChannelType {
1388
1188
  /** Unspecified sales channel. This value is not supported. */
1389
1189
  UNSPECIFIED = "UNSPECIFIED",
1390
1190
  /** A web client. */
@@ -1419,8 +1219,8 @@ export declare enum ChannelType {
1419
1219
  FAIRE_COM = "FAIRE_COM"
1420
1220
  }
1421
1221
  /** @enumType */
1422
- export type ChannelTypeWithLiterals = ChannelType | 'UNSPECIFIED' | 'WEB' | 'POS' | 'EBAY' | 'AMAZON' | 'OTHER_PLATFORM' | 'WIX_APP_STORE' | 'WIX_INVOICES' | 'BACKOFFICE_MERCHANT' | 'WISH' | 'CLASS_PASS' | 'GLOBAL_E' | 'FACEBOOK' | 'ETSY' | 'TIKTOK' | 'FAIRE_COM';
1423
- export interface CustomField {
1222
+ type ChannelTypeWithLiterals = ChannelType | 'UNSPECIFIED' | 'WEB' | 'POS' | 'EBAY' | 'AMAZON' | 'OTHER_PLATFORM' | 'WIX_APP_STORE' | 'WIX_INVOICES' | 'BACKOFFICE_MERCHANT' | 'WISH' | 'CLASS_PASS' | 'GLOBAL_E' | 'FACEBOOK' | 'ETSY' | 'TIKTOK' | 'FAIRE_COM';
1223
+ interface CustomField {
1424
1224
  /** Custom field value. */
1425
1225
  value?: any;
1426
1226
  /**
@@ -1436,23 +1236,7 @@ export interface CustomField {
1436
1236
  */
1437
1237
  translatedTitle?: string | null;
1438
1238
  }
1439
- export interface V1SubscriptionTitle {
1440
- /**
1441
- * 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).
1442
- * @minLength 1
1443
- * @maxLength 150
1444
- */
1445
- original?: string;
1446
- /**
1447
- * Subscription option name translated into the buyer's language.
1448
- *
1449
- * Default: Same as `original`.
1450
- * @minLength 1
1451
- * @maxLength 150
1452
- */
1453
- translated?: string | null;
1454
- }
1455
- export interface AdditionalFee {
1239
+ interface AdditionalFee {
1456
1240
  /**
1457
1241
  * Additional fee's unique code for future processing.
1458
1242
  * @minLength 1
@@ -1491,53 +1275,22 @@ export interface AdditionalFee {
1491
1275
  */
1492
1276
  lineItemIds?: string[];
1493
1277
  }
1494
- export interface Location {
1495
- /**
1496
- * Location ID.
1497
- * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
1498
- * @format GUID
1499
- */
1500
- id?: string;
1501
- /**
1502
- * Location name.
1503
- * @minLength 1
1504
- * @maxLength 500
1505
- * @readonly
1506
- */
1507
- name?: string;
1508
- }
1509
- export interface CreateSubscriptionContractRequest {
1510
- /** SubscriptionContract to be created. */
1511
- subscriptionContract?: SubscriptionContract;
1512
- }
1513
- export interface CreateSubscriptionContractResponse {
1514
- /** The created SubscriptionContract. */
1515
- subscriptionContract?: SubscriptionContract;
1516
- }
1517
- export interface GetSubscriptionContractRequest {
1278
+ interface GetSubscriptionContractRequest {
1518
1279
  /**
1519
1280
  * ID of the SubscriptionContract to retrieve.
1520
1281
  * @format GUID
1521
1282
  */
1522
1283
  subscriptionContractId: string;
1523
1284
  }
1524
- export interface GetSubscriptionContractResponse {
1285
+ interface GetSubscriptionContractResponse {
1525
1286
  /** The requested SubscriptionContract. */
1526
1287
  subscriptionContract?: SubscriptionContract;
1527
1288
  }
1528
- export interface UpdateSubscriptionContractRequest {
1529
- /** SubscriptionContract to be updated, may be partial. */
1530
- subscriptionContract?: SubscriptionContract;
1531
- }
1532
- export interface UpdateSubscriptionContractResponse {
1533
- /** Updated SubscriptionContract. */
1534
- subscriptionContract?: SubscriptionContract;
1535
- }
1536
- export interface QuerySubscriptionContractsRequest {
1289
+ interface QuerySubscriptionContractsRequest {
1537
1290
  /** WQL expression. */
1538
1291
  query?: CursorQuery;
1539
1292
  }
1540
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1293
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
1541
1294
  /** 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`. */
1542
1295
  cursorPaging?: CursorPaging;
1543
1296
  /**
@@ -1559,11 +1312,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1559
1312
  sort?: Sorting[];
1560
1313
  }
1561
1314
  /** @oneof */
1562
- export interface CursorQueryPagingMethodOneOf {
1315
+ interface CursorQueryPagingMethodOneOf {
1563
1316
  /** 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`. */
1564
1317
  cursorPaging?: CursorPaging;
1565
1318
  }
1566
- export interface Sorting {
1319
+ interface Sorting {
1567
1320
  /**
1568
1321
  * Name of the field to sort by.
1569
1322
  * @maxLength 512
@@ -1572,13 +1325,13 @@ export interface Sorting {
1572
1325
  /** Sort order. */
1573
1326
  order?: SortOrderWithLiterals;
1574
1327
  }
1575
- export declare enum SortOrder {
1328
+ declare enum SortOrder {
1576
1329
  ASC = "ASC",
1577
1330
  DESC = "DESC"
1578
1331
  }
1579
1332
  /** @enumType */
1580
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1581
- export interface CursorPaging {
1333
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1334
+ interface CursorPaging {
1582
1335
  /**
1583
1336
  * Maximum number of items to return in the results.
1584
1337
  * @max 100
@@ -1593,13 +1346,13 @@ export interface CursorPaging {
1593
1346
  */
1594
1347
  cursor?: string | null;
1595
1348
  }
1596
- export interface QuerySubscriptionContractsResponse {
1349
+ interface QuerySubscriptionContractsResponse {
1597
1350
  /** List of SubscriptionContracts. */
1598
1351
  subscriptionContracts?: SubscriptionContract[];
1599
1352
  /** Paging metadata */
1600
1353
  pagingMetadata?: CursorPagingMetadata;
1601
1354
  }
1602
- export interface CursorPagingMetadata {
1355
+ interface CursorPagingMetadata {
1603
1356
  /** Number of items returned in the response. */
1604
1357
  count?: number | null;
1605
1358
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -1612,7 +1365,7 @@ export interface CursorPagingMetadata {
1612
1365
  */
1613
1366
  hasNext?: boolean | null;
1614
1367
  }
1615
- export interface Cursors {
1368
+ interface Cursors {
1616
1369
  /**
1617
1370
  * Cursor string pointing to the next page in the list of results.
1618
1371
  * @maxLength 16000
@@ -1624,141 +1377,20 @@ export interface Cursors {
1624
1377
  */
1625
1378
  prev?: string | null;
1626
1379
  }
1627
- export interface DomainEvent extends DomainEventBodyOneOf {
1628
- createdEvent?: EntityCreatedEvent;
1629
- updatedEvent?: EntityUpdatedEvent;
1630
- deletedEvent?: EntityDeletedEvent;
1631
- actionEvent?: ActionEvent;
1632
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1633
- id?: string;
1634
- /**
1635
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1636
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1637
- */
1638
- entityFqdn?: string;
1639
- /**
1640
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
1641
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1642
- */
1643
- slug?: string;
1644
- /** ID of the entity associated with the event. */
1645
- entityId?: string;
1646
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1647
- eventTime?: Date | null;
1648
- /**
1649
- * Whether the event was triggered as a result of a privacy regulation application
1650
- * (for example, GDPR).
1651
- */
1652
- triggeredByAnonymizeRequest?: boolean | null;
1653
- /** If present, indicates the action that triggered the event. */
1654
- originatedFrom?: string | null;
1655
- /**
1656
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1657
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1658
- */
1659
- entityEventSequence?: string | null;
1660
- }
1661
- /** @oneof */
1662
- export interface DomainEventBodyOneOf {
1663
- createdEvent?: EntityCreatedEvent;
1664
- updatedEvent?: EntityUpdatedEvent;
1665
- deletedEvent?: EntityDeletedEvent;
1666
- actionEvent?: ActionEvent;
1667
- }
1668
- export interface EntityCreatedEvent {
1669
- entityAsJson?: string;
1670
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1671
- restoreInfo?: RestoreInfo;
1672
- }
1673
- export interface RestoreInfo {
1674
- deletedDate?: Date | null;
1675
- }
1676
- export interface EntityUpdatedEvent {
1677
- /**
1678
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1679
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1680
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1681
- */
1682
- currentEntityAsJson?: string;
1683
- }
1684
- export interface EntityDeletedEvent {
1685
- /** Entity that was deleted. */
1686
- deletedEntityAsJson?: string | null;
1687
- }
1688
- export interface ActionEvent {
1689
- bodyAsJson?: string;
1690
- }
1691
- export interface Empty {
1692
- }
1693
- export interface MessageEnvelope {
1694
- /**
1695
- * App instance ID.
1696
- * @format GUID
1697
- */
1698
- instanceId?: string | null;
1699
- /**
1700
- * Event type.
1701
- * @maxLength 150
1702
- */
1703
- eventType?: string;
1704
- /** The identification type and identity data. */
1705
- identity?: IdentificationData;
1706
- /** Stringify payload. */
1707
- data?: string;
1708
- }
1709
- export interface IdentificationData extends IdentificationDataIdOneOf {
1710
- /**
1711
- * ID of a site visitor that has not logged in to the site.
1712
- * @format GUID
1713
- */
1714
- anonymousVisitorId?: string;
1715
- /**
1716
- * ID of a site visitor that has logged in to the site.
1717
- * @format GUID
1718
- */
1719
- memberId?: string;
1720
- /**
1721
- * ID of a Wix user (site owner, contributor, etc.).
1722
- * @format GUID
1723
- */
1724
- wixUserId?: string;
1725
- /**
1726
- * ID of an app.
1727
- * @format GUID
1728
- */
1729
- appId?: string;
1730
- /** @readonly */
1731
- identityType?: WebhookIdentityTypeWithLiterals;
1732
- }
1733
- /** @oneof */
1734
- export interface IdentificationDataIdOneOf {
1735
- /**
1736
- * ID of a site visitor that has not logged in to the site.
1737
- * @format GUID
1738
- */
1739
- anonymousVisitorId?: string;
1740
- /**
1741
- * ID of a site visitor that has logged in to the site.
1742
- * @format GUID
1743
- */
1744
- memberId?: string;
1745
- /**
1746
- * ID of a Wix user (site owner, contributor, etc.).
1747
- * @format GUID
1748
- */
1749
- wixUserId?: string;
1750
- /**
1751
- * ID of an app.
1752
- * @format GUID
1753
- */
1754
- appId?: string;
1755
- }
1756
- export declare enum WebhookIdentityType {
1757
- UNKNOWN = "UNKNOWN",
1758
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1759
- MEMBER = "MEMBER",
1760
- WIX_USER = "WIX_USER",
1761
- APP = "APP"
1762
- }
1763
- /** @enumType */
1764
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1380
+
1381
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1382
+ getUrl: (context: any) => string;
1383
+ httpMethod: K;
1384
+ path: string;
1385
+ pathParams: M;
1386
+ __requestType: T;
1387
+ __originalRequestType: S;
1388
+ __responseType: Q;
1389
+ __originalResponseType: R;
1390
+ };
1391
+ declare function getSubscriptionContract(): __PublicMethodMetaInfo<'GET', {
1392
+ subscriptionContractId: string;
1393
+ }, GetSubscriptionContractRequest$1, GetSubscriptionContractRequest, GetSubscriptionContractResponse$1, GetSubscriptionContractResponse>;
1394
+ declare function querySubscriptionContracts(): __PublicMethodMetaInfo<'GET', {}, QuerySubscriptionContractsRequest$1, QuerySubscriptionContractsRequest, QuerySubscriptionContractsResponse$1, QuerySubscriptionContractsResponse>;
1395
+
1396
+ export { type __PublicMethodMetaInfo, getSubscriptionContract, querySubscriptionContracts };