@wix/auto_sdk_ecom_order-transactions 1.0.11 → 1.0.13

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 (134) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.context.d.ts +9 -0
  11. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.context.js +41 -0
  12. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  14. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.http.js +466 -0
  15. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  17. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js +161 -0
  18. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.public.d.ts +63 -0
  20. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.public.js +76 -0
  21. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  22. package/build/{ecom-v1-order-transactions-order-transactions.universal-DgIVKgiJ.d.mts → cjs/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -221
  23. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.types.js +303 -0
  24. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2537 -0
  26. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.universal.js +681 -0
  27. package/build/cjs/src/ecom-v1-order-transactions-order-transactions.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-order-transactions-order-transactions.context.d.ts +9 -0
  39. package/build/es/src/ecom-v1-order-transactions-order-transactions.context.js +13 -0
  40. package/build/es/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  42. package/build/es/src/ecom-v1-order-transactions-order-transactions.http.js +456 -0
  43. package/build/es/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  45. package/build/es/src/ecom-v1-order-transactions-order-transactions.meta.js +128 -0
  46. package/build/es/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-order-transactions-order-transactions.public.d.ts +63 -0
  48. package/build/es/src/ecom-v1-order-transactions-order-transactions.public.js +41 -0
  49. package/build/es/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  50. package/build/{ecom-v1-order-transactions-order-transactions.universal-DgIVKgiJ.d.ts → es/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -221
  51. package/build/es/src/ecom-v1-order-transactions-order-transactions.types.js +300 -0
  52. package/build/es/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2537 -0
  54. package/build/es/src/ecom-v1-order-transactions-order-transactions.universal.js +648 -0
  55. package/build/es/src/ecom-v1-order-transactions-order-transactions.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.context.d.ts +13 -0
  66. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.context.js +41 -0
  67. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  69. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.http.js +466 -0
  70. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  72. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js +161 -0
  73. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.public.d.ts +108 -0
  75. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.public.js +76 -0
  76. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  77. package/build/internal/{ecom-v1-order-transactions-order-transactions.universal-CQewkK3E.d.mts → cjs/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -305
  78. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.types.js +303 -0
  79. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2684 -0
  81. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.universal.js +681 -0
  82. package/build/internal/cjs/src/ecom-v1-order-transactions-order-transactions.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.context.d.ts +13 -0
  93. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.context.js +13 -0
  94. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.http.d.ts +73 -0
  96. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.http.js +456 -0
  97. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.meta.d.ts +30 -0
  99. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.meta.js +128 -0
  100. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.public.d.ts +108 -0
  102. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.public.js +41 -0
  103. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.public.js.map +1 -0
  104. package/build/internal/{ecom-v1-order-transactions-order-transactions.universal-CQewkK3E.d.ts → es/src/ecom-v1-order-transactions-order-transactions.types.d.ts} +199 -305
  105. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.types.js +300 -0
  106. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.universal.d.ts +2684 -0
  108. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.universal.js +648 -0
  109. package/build/internal/es/src/ecom-v1-order-transactions-order-transactions.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -69
  112. package/build/index.d.ts +0 -69
  113. package/build/index.js +0 -942
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -887
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -118
  118. package/build/internal/index.d.ts +0 -118
  119. package/build/internal/index.js +0 -942
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -887
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -602
  124. package/build/internal/meta.d.ts +0 -602
  125. package/build/internal/meta.js +0 -566
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -533
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -602
  130. package/build/meta.d.ts +0 -602
  131. package/build/meta.js +0 -566
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -533
  134. package/build/meta.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- interface OrderTransactions {
1
+ export interface OrderTransactions {
2
2
  /**
3
3
  * Order ID.
4
4
  * @format GUID
@@ -15,34 +15,24 @@ interface OrderTransactions {
15
15
  */
16
16
  refunds?: Refund[];
17
17
  }
18
- interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
18
+ export interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
19
19
  /** Regular payment details. */
20
20
  regularPaymentDetails?: RegularPaymentDetails;
21
21
  /** Gift card payment details. */
22
22
  giftcardPaymentDetails?: GiftCardPaymentDetails;
23
- /**
24
- * Receipt created by Wix
25
- * @internal
26
- */
27
- wixReceipt?: WixReceiptInfo;
28
- /**
29
- * Receipt created by an external system.
30
- * @internal
31
- */
32
- externalReceipt?: ExternalReceiptInfo;
33
23
  /**
34
24
  * Payment ID.
35
25
  * @format GUID
36
26
  * @readonly
37
27
  */
38
- _id?: string | null;
28
+ id?: string | null;
39
29
  /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
40
- _createdDate?: Date | null;
30
+ createdDate?: Date | null;
41
31
  /**
42
32
  * Date and time the payment was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
43
33
  * @readonly
44
34
  */
45
- _updatedDate?: Date | null;
35
+ updatedDate?: Date | null;
46
36
  /** Payment amount. */
47
37
  amount?: Price;
48
38
  /**
@@ -51,36 +41,18 @@ interface Payment extends PaymentPaymentDetailsOneOf, PaymentReceiptInfoOneOf {
51
41
  * + `false`: This payment may be refunded. However, this ultimately depends on the payment provider.
52
42
  */
53
43
  refundDisabled?: boolean;
54
- /**
55
- * Whether receipt generation for this payment are allowed.
56
- * + `true`: This payment supports receipt generation.
57
- * + `false`: This payment not supports receipt generation, or receipt already generated
58
- * @internal
59
- * @readonly
60
- */
61
- supportReceiptGeneration?: boolean;
62
44
  }
63
45
  /** @oneof */
64
- interface PaymentPaymentDetailsOneOf {
46
+ export interface PaymentPaymentDetailsOneOf {
65
47
  /** Regular payment details. */
66
48
  regularPaymentDetails?: RegularPaymentDetails;
67
49
  /** Gift card payment details. */
68
50
  giftcardPaymentDetails?: GiftCardPaymentDetails;
69
51
  }
70
52
  /** @oneof */
71
- interface PaymentReceiptInfoOneOf {
72
- /**
73
- * Receipt created by Wix
74
- * @internal
75
- */
76
- wixReceipt?: WixReceiptInfo;
77
- /**
78
- * Receipt created by an external system.
79
- * @internal
80
- */
81
- externalReceipt?: ExternalReceiptInfo;
53
+ export interface PaymentReceiptInfoOneOf {
82
54
  }
83
- interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
55
+ export interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
84
56
  /** Whether regular card used */
85
57
  creditCardDetails?: CreditCardPaymentMethodDetails;
86
58
  /**
@@ -116,19 +88,13 @@ interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetail
116
88
  savedPaymentMethod?: boolean;
117
89
  /** Authorization details. */
118
90
  authorizationDetails?: AuthorizationDetails;
119
- /**
120
- * Payment service provider display name. Non-exhaustive list of supported values: Wix Payments, PayPal, Square, Stripe, etc.
121
- * @internal
122
- * @maxLength 300
123
- */
124
- paymentProvider?: string | null;
125
91
  }
126
92
  /** @oneof */
127
- interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
93
+ export interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
128
94
  /** Whether regular card used */
129
95
  creditCardDetails?: CreditCardPaymentMethodDetails;
130
96
  }
131
- declare enum TransactionStatus {
97
+ export declare enum TransactionStatus {
132
98
  UNDEFINED = "UNDEFINED",
133
99
  APPROVED = "APPROVED",
134
100
  PENDING = "PENDING",
@@ -140,7 +106,7 @@ declare enum TransactionStatus {
140
106
  AUTHORIZED = "AUTHORIZED",
141
107
  VOIDED = "VOIDED"
142
108
  }
143
- interface CreditCardPaymentMethodDetails {
109
+ export interface CreditCardPaymentMethodDetails {
144
110
  /**
145
111
  * The last 4 digits of the card number.
146
112
  * @maxLength 4
@@ -152,7 +118,7 @@ interface CreditCardPaymentMethodDetails {
152
118
  */
153
119
  brand?: string | null;
154
120
  }
155
- interface AuthorizationDetails {
121
+ export interface AuthorizationDetails {
156
122
  /**
157
123
  * Whether the authorized payment is of a delayed capture.
158
124
  * @readonly
@@ -171,13 +137,13 @@ interface AuthorizationDetails {
171
137
  /** Scheduled action for this transaction */
172
138
  scheduledAction?: ScheduledAction;
173
139
  }
174
- interface AuthorizationCapture {
140
+ export interface AuthorizationCapture {
175
141
  /**
176
142
  * Capture ID.
177
143
  * @format GUID
178
144
  * @readonly
179
145
  */
180
- _id?: string | null;
146
+ id?: string | null;
181
147
  /** Status of this capture action */
182
148
  status?: AuthorizationCaptureStatus;
183
149
  /**
@@ -186,11 +152,11 @@ interface AuthorizationCapture {
186
152
  */
187
153
  amount?: Price;
188
154
  /** Date and time the capture was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
189
- _createdDate?: Date | null;
155
+ createdDate?: Date | null;
190
156
  /** In case of status is FAILED may contain failure details */
191
157
  failureDetails?: AuthorizationActionFailureDetails;
192
158
  }
193
- declare enum AuthorizationCaptureStatus {
159
+ export declare enum AuthorizationCaptureStatus {
194
160
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
195
161
  /** Capture operation still in progress. */
196
162
  PENDING = "PENDING",
@@ -199,7 +165,7 @@ declare enum AuthorizationCaptureStatus {
199
165
  /** Capture operation failed. */
200
166
  FAILED = "FAILED"
201
167
  }
202
- interface Price {
168
+ export interface Price {
203
169
  /**
204
170
  * Amount.
205
171
  * @decimalValue options { gte:0, lte:1000000000000000 }
@@ -211,11 +177,11 @@ interface Price {
211
177
  */
212
178
  formattedAmount?: string;
213
179
  }
214
- interface AuthorizationActionFailureDetails {
180
+ export interface AuthorizationActionFailureDetails {
215
181
  /** @maxLength 100 */
216
182
  failureCode?: string;
217
183
  }
218
- interface AuthorizationVoid {
184
+ export interface AuthorizationVoid {
219
185
  /** Status of this void action */
220
186
  status?: AuthorizationVoidStatus;
221
187
  /** Date and time the void was initiated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
@@ -225,7 +191,7 @@ interface AuthorizationVoid {
225
191
  /** Reason of void action */
226
192
  reason?: Reason;
227
193
  }
228
- declare enum AuthorizationVoidStatus {
194
+ export declare enum AuthorizationVoidStatus {
229
195
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
230
196
  /** Void operation still in progress. */
231
197
  PENDING = "PENDING",
@@ -235,25 +201,25 @@ declare enum AuthorizationVoidStatus {
235
201
  FAILED = "FAILED"
236
202
  }
237
203
  /** Reason the authorization was voided. */
238
- declare enum Reason {
204
+ export declare enum Reason {
239
205
  UNKNOWN_REASON = "UNKNOWN_REASON",
240
206
  /** Authorization was voided by user. */
241
207
  MANUAL = "MANUAL",
242
208
  /** Authorization passed execution date. */
243
209
  SCHEDULED = "SCHEDULED"
244
210
  }
245
- interface ScheduledAction {
211
+ export interface ScheduledAction {
246
212
  /** Type of the action. */
247
213
  actionType?: ActionType;
248
214
  /** The date and time of the action. */
249
215
  executionDate?: Date | null;
250
216
  }
251
- declare enum ActionType {
217
+ export declare enum ActionType {
252
218
  UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
253
219
  VOID = "VOID",
254
220
  CAPTURE = "CAPTURE"
255
221
  }
256
- interface GiftCardPaymentDetails {
222
+ export interface GiftCardPaymentDetails {
257
223
  /**
258
224
  * Gift card payment ID.
259
225
  * @minLength 1
@@ -270,15 +236,8 @@ interface GiftCardPaymentDetails {
270
236
  * @readonly
271
237
  */
272
238
  voided?: boolean;
273
- /**
274
- * Gift card obfuscated code.
275
- * @internal
276
- * @maxLength 30
277
- * @immutable
278
- */
279
- obfuscatedCode?: string | null;
280
239
  }
281
- interface MembershipPaymentDetails {
240
+ export interface MembershipPaymentDetails {
282
241
  /**
283
242
  * Membership ID.
284
243
  * @minLength 1
@@ -312,13 +271,13 @@ interface MembershipPaymentDetails {
312
271
  */
313
272
  providerAppId?: string;
314
273
  }
315
- declare enum MembershipPaymentStatus {
274
+ export declare enum MembershipPaymentStatus {
316
275
  /** Payment was charged. */
317
276
  CHARGED = "CHARGED",
318
277
  /** The attempt to charge the payment failed, for example, due to lack of credits. */
319
278
  CHARGE_FAILED = "CHARGE_FAILED"
320
279
  }
321
- interface MembershipName {
280
+ export interface MembershipName {
322
281
  /**
323
282
  * Membership name.
324
283
  * @maxLength 100
@@ -330,7 +289,7 @@ interface MembershipName {
330
289
  */
331
290
  translated?: string | null;
332
291
  }
333
- interface WixReceiptInfo {
292
+ export interface WixReceiptInfo {
334
293
  /**
335
294
  * Receipt ID
336
295
  * @format GUID
@@ -343,7 +302,7 @@ interface WixReceiptInfo {
343
302
  */
344
303
  displayNumber?: string | null;
345
304
  }
346
- interface ExternalReceiptInfo {
305
+ export interface ExternalReceiptInfo {
347
306
  /**
348
307
  * External receipt ID
349
308
  * @maxLength 100
@@ -361,13 +320,13 @@ interface ExternalReceiptInfo {
361
320
  */
362
321
  displayNumber?: string | null;
363
322
  }
364
- interface Refund {
323
+ export interface Refund {
365
324
  /**
366
325
  * Refund ID.
367
326
  * @format GUID
368
327
  * @readonly
369
328
  */
370
- _id?: string;
329
+ id?: string;
371
330
  /**
372
331
  * List of transactions.
373
332
  * @maxSize 50
@@ -380,7 +339,7 @@ interface Refund {
380
339
  * @readonly
381
340
  * @immutable
382
341
  */
383
- _createdDate?: Date | null;
342
+ createdDate?: Date | null;
384
343
  /**
385
344
  * Aggregated refund summary.
386
345
  * @readonly
@@ -394,7 +353,7 @@ interface Refund {
394
353
  */
395
354
  requestingServiceAppId?: string | null;
396
355
  }
397
- interface RefundTransaction {
356
+ export interface RefundTransaction {
398
357
  /**
399
358
  * ID of the payment associated with this refund.
400
359
  * @format GUID
@@ -425,7 +384,7 @@ interface RefundTransaction {
425
384
  externalRefund?: boolean;
426
385
  }
427
386
  /** Refund transaction status. */
428
- declare enum RefundStatus {
387
+ export declare enum RefundStatus {
429
388
  /** Refund was initiated on payment provider side. PENDING status was assigned by provider. */
430
389
  PENDING = "PENDING",
431
390
  /** Refund transaction succeeded. */
@@ -437,7 +396,7 @@ declare enum RefundStatus {
437
396
  /** Refund was initiated on payment provider side. */
438
397
  STARTED = "STARTED"
439
398
  }
440
- interface RefundStatusInfo {
399
+ export interface RefundStatusInfo {
441
400
  /**
442
401
  * Reason code for the refund's current status.
443
402
  *
@@ -454,7 +413,7 @@ interface RefundStatusInfo {
454
413
  description?: string | null;
455
414
  }
456
415
  /** Business model of a refund request */
457
- interface RefundDetails {
416
+ export interface RefundDetails {
458
417
  /**
459
418
  * Order line item IDs and quantities that were refunded.
460
419
  * @maxSize 300
@@ -480,7 +439,7 @@ interface RefundDetails {
480
439
  /** Shipping amount that was refunded. */
481
440
  shipping?: ShippingRefund;
482
441
  }
483
- interface RefundItem {
442
+ export interface RefundItem {
484
443
  /**
485
444
  * Line item ID the refunded line item.
486
445
  * @format GUID
@@ -493,7 +452,7 @@ interface RefundItem {
493
452
  */
494
453
  quantity?: number;
495
454
  }
496
- interface LineItemRefund {
455
+ export interface LineItemRefund {
497
456
  /**
498
457
  * Line item ID.
499
458
  * @format GUID
@@ -508,7 +467,7 @@ interface LineItemRefund {
508
467
  */
509
468
  quantity?: number;
510
469
  }
511
- interface AdditionalFeeRefund {
470
+ export interface AdditionalFeeRefund {
512
471
  /**
513
472
  * Additional fee ID.
514
473
  * @format GUID
@@ -521,14 +480,14 @@ interface AdditionalFeeRefund {
521
480
  */
522
481
  amount?: Price;
523
482
  }
524
- interface ShippingRefund {
483
+ export interface ShippingRefund {
525
484
  /**
526
485
  * Refund amount.
527
486
  * @immutable
528
487
  */
529
488
  amount?: Price;
530
489
  }
531
- interface AggregatedRefundSummary {
490
+ export interface AggregatedRefundSummary {
532
491
  /** Total amount requested for refund. */
533
492
  requestedRefund?: Price;
534
493
  /** Pending refund amount - the portion of `requestedRefund` that is still pending. */
@@ -542,14 +501,14 @@ interface AggregatedRefundSummary {
542
501
  /** Breakdown of refunded items. Available only after refund is complete. */
543
502
  breakdown?: RefundItemsBreakdown;
544
503
  }
545
- interface RefundItemsBreakdown {
504
+ export interface RefundItemsBreakdown {
546
505
  /**
547
506
  * Refunded line items and the amount refunded for each.
548
507
  * @maxSize 300
549
508
  */
550
509
  lineItems?: LineItemRefundSummary[];
551
510
  }
552
- interface LineItemRefundSummary {
511
+ export interface LineItemRefundSummary {
553
512
  /**
554
513
  * ID of the refunded line item.
555
514
  * @format GUID
@@ -558,16 +517,16 @@ interface LineItemRefundSummary {
558
517
  /** Total refunded amount for the line item. */
559
518
  totalRefundedAmount?: Price;
560
519
  }
561
- interface SnapshotMessage {
562
- _id?: string;
520
+ export interface SnapshotMessage {
521
+ id?: string;
563
522
  opType?: number;
564
523
  }
565
- interface IndexingMessage {
566
- _id?: string;
524
+ export interface IndexingMessage {
525
+ id?: string;
567
526
  opType?: number;
568
527
  requiredVersions?: string[];
569
528
  }
570
- interface DiffmatokyPayload {
529
+ export interface DiffmatokyPayload {
571
530
  left?: string;
572
531
  right?: string;
573
532
  compareChannel?: string;
@@ -575,10 +534,10 @@ interface DiffmatokyPayload {
575
534
  errorInformation?: ErrorInformation;
576
535
  tags?: string[];
577
536
  }
578
- interface ErrorInformation {
537
+ export interface ErrorInformation {
579
538
  stackTrace?: string;
580
539
  }
581
- interface OrderRefunded {
540
+ export interface OrderRefunded {
582
541
  /**
583
542
  * Refund ID.
584
543
  * @readonly
@@ -590,13 +549,13 @@ interface OrderRefunded {
590
549
  */
591
550
  order?: Order;
592
551
  }
593
- interface Order {
552
+ export interface Order {
594
553
  /**
595
554
  * Order ID (auto-generated upon order creation).
596
555
  * @format GUID
597
556
  * @readonly
598
557
  */
599
- _id?: string | null;
558
+ id?: string | null;
600
559
  /**
601
560
  * Order number displayed in the owner's store (auto-generated).
602
561
  * @readonly
@@ -705,12 +664,12 @@ interface Order {
705
664
  refunds?: V2Refund[];
706
665
  }
707
666
  /** Buyer Info */
708
- interface BuyerInfo {
667
+ export interface BuyerInfo {
709
668
  /**
710
669
  * Wix customer ID
711
670
  * @format GUID
712
671
  */
713
- _id?: string | null;
672
+ id?: string | null;
714
673
  /**
715
674
  * Deprecated (use identityType instead)
716
675
  * @readonly
@@ -740,14 +699,14 @@ interface BuyerInfo {
740
699
  */
741
700
  email?: string;
742
701
  }
743
- declare enum IdentityType {
702
+ export declare enum IdentityType {
744
703
  UNSPECIFIED_IDENTITY_TYPE = "UNSPECIFIED_IDENTITY_TYPE",
745
704
  /** Site member */
746
705
  MEMBER = "MEMBER",
747
706
  /** Contact */
748
707
  CONTACT = "CONTACT"
749
708
  }
750
- declare enum WeightUnit {
709
+ export declare enum WeightUnit {
751
710
  /** Weight unit can't be classified due to an error. */
752
711
  UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
753
712
  /** Kilograms. */
@@ -755,7 +714,7 @@ declare enum WeightUnit {
755
714
  /** Pounds. */
756
715
  LB = "LB"
757
716
  }
758
- interface Totals {
717
+ export interface Totals {
759
718
  /**
760
719
  * Subtotal of all the line items, before tax.
761
720
  * @format DECIMAL_VALUE
@@ -803,7 +762,7 @@ interface Totals {
803
762
  */
804
763
  giftCard?: string | null;
805
764
  }
806
- interface BillingInfo {
765
+ export interface BillingInfo {
807
766
  /**
808
767
  * Payment method used for this order
809
768
  * @maxLength 50
@@ -835,7 +794,7 @@ interface BillingInfo {
835
794
  /** Whether order can be refunded by payment provider (manually or automatic) */
836
795
  refundableByPaymentProvider?: boolean | null;
837
796
  }
838
- interface Address extends AddressAddressLine1OptionsOneOf {
797
+ export interface Address extends AddressAddressLine1OptionsOneOf {
839
798
  /**
840
799
  * Address line 1 (free text)
841
800
  * @maxLength 1000
@@ -889,7 +848,7 @@ interface Address extends AddressAddressLine1OptionsOneOf {
889
848
  vatId?: VatId;
890
849
  }
891
850
  /** @oneof */
892
- interface AddressAddressLine1OptionsOneOf {
851
+ export interface AddressAddressLine1OptionsOneOf {
893
852
  /**
894
853
  * Address line 1 (free text)
895
854
  * @maxLength 1000
@@ -898,7 +857,7 @@ interface AddressAddressLine1OptionsOneOf {
898
857
  /** Address line 1 (street) */
899
858
  street?: Street;
900
859
  }
901
- interface FullName {
860
+ export interface FullName {
902
861
  /**
903
862
  * Customer's first name
904
863
  * @maxLength 1000
@@ -910,7 +869,7 @@ interface FullName {
910
869
  */
911
870
  lastName?: string;
912
871
  }
913
- interface Street {
872
+ export interface Street {
914
873
  /**
915
874
  * Street number
916
875
  * @maxLength 500
@@ -922,7 +881,7 @@ interface Street {
922
881
  */
923
882
  name?: string;
924
883
  }
925
- interface VatId {
884
+ export interface VatId {
926
885
  /**
927
886
  * Customer's tax ID.
928
887
  * @maxLength 50
@@ -936,7 +895,7 @@ interface VatId {
936
895
  type?: VatType;
937
896
  }
938
897
  /** Brazilian tax info types */
939
- declare enum VatType {
898
+ export declare enum VatType {
940
899
  /** When the tax info type can't be classified, due to an error */
941
900
  UNSPECIFIED_TAX_TYPE = "UNSPECIFIED_TAX_TYPE",
942
901
  /** CPF - for individual tax payers */
@@ -944,7 +903,7 @@ declare enum VatType {
944
903
  /** CNPJ - for corporations */
945
904
  CNPJ = "CNPJ"
946
905
  }
947
- interface ShippingInfo extends ShippingInfoDetailsOneOf {
906
+ export interface ShippingInfo extends ShippingInfoDetailsOneOf {
948
907
  /** Shipment details (when this object describes shipment). */
949
908
  shipmentDetails?: ShipmentDetails;
950
909
  /** Pickup details (when this object describes pickup). */
@@ -977,13 +936,13 @@ interface ShippingInfo extends ShippingInfoDetailsOneOf {
977
936
  code?: string | null;
978
937
  }
979
938
  /** @oneof */
980
- interface ShippingInfoDetailsOneOf {
939
+ export interface ShippingInfoDetailsOneOf {
981
940
  /** Shipment details (when this object describes shipment). */
982
941
  shipmentDetails?: ShipmentDetails;
983
942
  /** Pickup details (when this object describes pickup). */
984
943
  pickupDetails?: PickupDetails;
985
944
  }
986
- interface ShipmentDetails {
945
+ export interface ShipmentDetails {
987
946
  /** Shipping destination address. */
988
947
  address?: Address;
989
948
  /**
@@ -1005,7 +964,7 @@ interface ShipmentDetails {
1005
964
  /** Price data. */
1006
965
  priceData?: ShippingPriceData;
1007
966
  }
1008
- interface TrackingInfo {
967
+ export interface TrackingInfo {
1009
968
  /**
1010
969
  * Tracking number
1011
970
  * @maxLength 100
@@ -1025,7 +984,7 @@ interface TrackingInfo {
1025
984
  */
1026
985
  trackingLink?: string | null;
1027
986
  }
1028
- interface ShippingPriceData {
987
+ export interface ShippingPriceData {
1029
988
  /** Whether tax is included in the price. */
1030
989
  taxIncludedInPrice?: boolean;
1031
990
  /**
@@ -1034,7 +993,7 @@ interface ShippingPriceData {
1034
993
  */
1035
994
  price?: string | null;
1036
995
  }
1037
- interface PickupDetails {
996
+ export interface PickupDetails {
1038
997
  /** Pickup address. */
1039
998
  pickupAddress?: PickupAddress;
1040
999
  /**
@@ -1049,7 +1008,7 @@ interface PickupDetails {
1049
1008
  */
1050
1009
  pickupInstructions?: string | null;
1051
1010
  }
1052
- interface PickupAddress {
1011
+ export interface PickupAddress {
1053
1012
  /** Country code (3 letters) */
1054
1013
  country?: string;
1055
1014
  /**
@@ -1073,7 +1032,7 @@ interface PickupAddress {
1073
1032
  */
1074
1033
  zipCode?: string;
1075
1034
  }
1076
- interface BuyerDetails {
1035
+ export interface BuyerDetails {
1077
1036
  /** Addressee name */
1078
1037
  fullName?: FullName;
1079
1038
  /**
@@ -1090,7 +1049,7 @@ interface BuyerDetails {
1090
1049
  phone?: string;
1091
1050
  }
1092
1051
  /** This might be extended in the future with pending orders statuses */
1093
- declare enum PaymentStatus {
1052
+ export declare enum PaymentStatus {
1094
1053
  /** Payment status can't be classified, due to an error */
1095
1054
  UNSPECIFIED_PAYMENT_STATUS = "UNSPECIFIED_PAYMENT_STATUS",
1096
1055
  /** Order is pending response from the payment provider */
@@ -1106,7 +1065,7 @@ declare enum PaymentStatus {
1106
1065
  /** At least one payment was received and approved, covering less than total price amount */
1107
1066
  PARTIALLY_PAID = "PARTIALLY_PAID"
1108
1067
  }
1109
- declare enum FulfillmentStatus {
1068
+ export declare enum FulfillmentStatus {
1110
1069
  /** None of the order items are fulfilled */
1111
1070
  NOT_FULFILLED = "NOT_FULFILLED",
1112
1071
  /**
@@ -1119,7 +1078,7 @@ declare enum FulfillmentStatus {
1119
1078
  /** Some, but not all of the order items are fulfilled */
1120
1079
  PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
1121
1080
  }
1122
- interface LineItem {
1081
+ export interface LineItem {
1123
1082
  /**
1124
1083
  * Line item ID (auto-generated, stable within this order only)
1125
1084
  * @readonly
@@ -1218,7 +1177,7 @@ interface LineItem {
1218
1177
  /** Price data */
1219
1178
  priceData?: LineItemPriceData;
1220
1179
  }
1221
- declare enum LineItemType {
1180
+ export declare enum LineItemType {
1222
1181
  /** Line item type can't be classified, due to an error */
1223
1182
  UNSPECIFIED_LINE_ITEM_TYPE = "UNSPECIFIED_LINE_ITEM_TYPE",
1224
1183
  /** Physical item type */
@@ -1228,7 +1187,7 @@ declare enum LineItemType {
1228
1187
  /** Custom item price */
1229
1188
  CUSTOM_AMOUNT_ITEM = "CUSTOM_AMOUNT_ITEM"
1230
1189
  }
1231
- interface OptionSelection {
1190
+ export interface OptionSelection {
1232
1191
  /**
1233
1192
  * Option name
1234
1193
  * @maxLength 1000
@@ -1240,7 +1199,7 @@ interface OptionSelection {
1240
1199
  */
1241
1200
  selection?: string;
1242
1201
  }
1243
- interface CustomTextFieldSelection {
1202
+ export interface CustomTextFieldSelection {
1244
1203
  /**
1245
1204
  * Custom text field name
1246
1205
  * @maxLength 1000
@@ -1252,7 +1211,7 @@ interface CustomTextFieldSelection {
1252
1211
  */
1253
1212
  value?: string;
1254
1213
  }
1255
- interface MediaItem {
1214
+ export interface MediaItem {
1256
1215
  /**
1257
1216
  * Media type
1258
1217
  * @readonly
@@ -1280,7 +1239,7 @@ interface MediaItem {
1280
1239
  */
1281
1240
  mediaId?: string | null;
1282
1241
  /** Media ID (for media items previously saved in Wix Media) */
1283
- _id?: string | null;
1242
+ id?: string | null;
1284
1243
  /** Media external URL */
1285
1244
  externalImageUrl?: string | null;
1286
1245
  /**
@@ -1289,13 +1248,13 @@ interface MediaItem {
1289
1248
  */
1290
1249
  altText?: string | null;
1291
1250
  }
1292
- declare enum MediaItemType {
1251
+ export declare enum MediaItemType {
1293
1252
  /** Media item type can't be classified, due to an error */
1294
1253
  UNSPECIFIED_MEDIA_TYPE_ITEM = "UNSPECIFIED_MEDIA_TYPE_ITEM",
1295
1254
  /** Image item type */
1296
1255
  IMAGE = "IMAGE"
1297
1256
  }
1298
- interface LineItemPriceData {
1257
+ export interface LineItemPriceData {
1299
1258
  /** Whether tax is included in the price set for this line item */
1300
1259
  taxIncludedInPrice?: boolean;
1301
1260
  /**
@@ -1310,7 +1269,7 @@ interface LineItemPriceData {
1310
1269
  */
1311
1270
  totalPrice?: string | null;
1312
1271
  }
1313
- interface DigitalFile {
1272
+ export interface DigitalFile {
1314
1273
  /**
1315
1274
  * id of the secure file in media
1316
1275
  * @minLength 1
@@ -1318,7 +1277,7 @@ interface DigitalFile {
1318
1277
  */
1319
1278
  fileId?: string;
1320
1279
  }
1321
- interface Activity {
1280
+ export interface Activity {
1322
1281
  /**
1323
1282
  * Activity item type
1324
1283
  * @readonly
@@ -1342,7 +1301,7 @@ interface Activity {
1342
1301
  */
1343
1302
  timestamp?: Date | null;
1344
1303
  }
1345
- declare enum ActivityType {
1304
+ export declare enum ActivityType {
1346
1305
  /** Activity item type can't be classified, due to an error */
1347
1306
  UNSPECIFIED_ORDER_HISTORY_ITEM_TYPE = "UNSPECIFIED_ORDER_HISTORY_ITEM_TYPE",
1348
1307
  /** Store owner added a comment */
@@ -1382,28 +1341,28 @@ declare enum ActivityType {
1382
1341
  /** Order partially paid. During the checkout for orders with deposit items. */
1383
1342
  ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID"
1384
1343
  }
1385
- interface V2InvoiceInfo {
1344
+ export interface V2InvoiceInfo {
1386
1345
  /**
1387
1346
  * Invoice ID
1388
1347
  * @maxLength 100
1389
1348
  */
1390
- _id?: string;
1349
+ id?: string;
1391
1350
  /** Invoice source */
1392
1351
  source?: InvoiceSource;
1393
1352
  }
1394
- declare enum InvoiceSource {
1353
+ export declare enum InvoiceSource {
1395
1354
  /** Invoice source can't be classified, due to an error */
1396
1355
  UNSPECIFIED_INVOICE_SOURCE = "UNSPECIFIED_INVOICE_SOURCE",
1397
1356
  /** Invoice created using the Invoices API */
1398
1357
  WIX = "WIX"
1399
1358
  }
1400
- interface Fulfillment {
1359
+ export interface Fulfillment {
1401
1360
  /**
1402
1361
  * Fulfillment ID (auto generated upon fulfillment creation).
1403
1362
  * @format GUID
1404
1363
  * @readonly
1405
1364
  */
1406
- _id?: string | null;
1365
+ id?: string | null;
1407
1366
  /**
1408
1367
  * Fulfillment creation date and time.
1409
1368
  * @readonly
@@ -1418,7 +1377,7 @@ interface Fulfillment {
1418
1377
  /** Tracking information. */
1419
1378
  trackingInfo?: FulfillmentTrackingInfo;
1420
1379
  }
1421
- interface FulfillmentLineItem {
1380
+ export interface FulfillmentLineItem {
1422
1381
  /**
1423
1382
  * Line item ID (mirrors the line item index of the order).
1424
1383
  * @min 1
@@ -1435,7 +1394,7 @@ interface FulfillmentLineItem {
1435
1394
  */
1436
1395
  quantity?: number | null;
1437
1396
  }
1438
- interface FulfillmentTrackingInfo {
1397
+ export interface FulfillmentTrackingInfo {
1439
1398
  /**
1440
1399
  * Tracking number.
1441
1400
  * @minLength 1
@@ -1461,7 +1420,7 @@ interface FulfillmentTrackingInfo {
1461
1420
  */
1462
1421
  trackingLink?: string | null;
1463
1422
  }
1464
- interface Discount {
1423
+ export interface Discount {
1465
1424
  /**
1466
1425
  * Deprecated (use Totals.discount instead)
1467
1426
  * @readonly
@@ -1471,7 +1430,7 @@ interface Discount {
1471
1430
  /** Applied coupon */
1472
1431
  appliedCoupon?: AppliedCoupon;
1473
1432
  }
1474
- interface AppliedCoupon {
1433
+ export interface AppliedCoupon {
1475
1434
  /**
1476
1435
  * Coupon ID
1477
1436
  * @minLength 1
@@ -1490,7 +1449,7 @@ interface AppliedCoupon {
1490
1449
  code?: string;
1491
1450
  }
1492
1451
  /** Custom field */
1493
- interface CustomField {
1452
+ export interface CustomField {
1494
1453
  /**
1495
1454
  * Free text that the customer entered in the custom field during the checkout process
1496
1455
  * @maxLength 2000
@@ -1507,7 +1466,7 @@ interface CustomField {
1507
1466
  */
1508
1467
  translatedTitle?: string;
1509
1468
  }
1510
- interface ChannelInfo {
1469
+ export interface ChannelInfo {
1511
1470
  /** Sales channel that submitted the order */
1512
1471
  type?: ChannelType;
1513
1472
  /**
@@ -1521,7 +1480,7 @@ interface ChannelInfo {
1521
1480
  */
1522
1481
  externalOrderUrl?: string | null;
1523
1482
  }
1524
- declare enum ChannelType {
1483
+ export declare enum ChannelType {
1525
1484
  UNSPECIFIED = "UNSPECIFIED",
1526
1485
  WEB = "WEB",
1527
1486
  POS = "POS",
@@ -1539,23 +1498,23 @@ declare enum ChannelType {
1539
1498
  TIKTOK = "TIKTOK",
1540
1499
  FAIRE_COM = "FAIRE_COM"
1541
1500
  }
1542
- interface EnteredBy {
1501
+ export interface EnteredBy {
1543
1502
  /** @format GUID */
1544
- _id?: string;
1503
+ id?: string;
1545
1504
  identityType?: EnteredByIdentityType;
1546
1505
  }
1547
- declare enum EnteredByIdentityType {
1506
+ export declare enum EnteredByIdentityType {
1548
1507
  USER = "USER",
1549
1508
  MEMBER = "MEMBER",
1550
1509
  CONTACT = "CONTACT",
1551
1510
  APP = "APP"
1552
1511
  }
1553
- interface SubscriptionInfo {
1512
+ export interface SubscriptionInfo {
1554
1513
  /**
1555
1514
  * Subscription ID.
1556
1515
  * @format GUID
1557
1516
  */
1558
- _id?: string | null;
1517
+ id?: string | null;
1559
1518
  /**
1560
1519
  * Current cycle number. For example, if the subscription is in the 3rd month of a 4-month subscription, the value will be `3`.
1561
1520
  * @min 1
@@ -1566,7 +1525,7 @@ interface SubscriptionInfo {
1566
1525
  /** Subscription options info. */
1567
1526
  subscriptionOptionInfo?: SubscriptionOptionInfo;
1568
1527
  }
1569
- interface SubscriptionSettings {
1528
+ export interface SubscriptionSettings {
1570
1529
  /** Frequency of recurring payment. */
1571
1530
  frequency?: SubscriptionFrequency;
1572
1531
  /** Whether subscription is renewed automatically at the end of each period. */
@@ -1579,14 +1538,14 @@ interface SubscriptionSettings {
1579
1538
  billingCycles?: number | null;
1580
1539
  }
1581
1540
  /** Frequency unit of recurring payment */
1582
- declare enum SubscriptionFrequency {
1541
+ export declare enum SubscriptionFrequency {
1583
1542
  UNDEFINED = "UNDEFINED",
1584
1543
  DAY = "DAY",
1585
1544
  WEEK = "WEEK",
1586
1545
  MONTH = "MONTH",
1587
1546
  YEAR = "YEAR"
1588
1547
  }
1589
- interface SubscriptionOptionInfo {
1548
+ export interface SubscriptionOptionInfo {
1590
1549
  /**
1591
1550
  * Subscription option title.
1592
1551
  * @minLength 1
@@ -1599,7 +1558,7 @@ interface SubscriptionOptionInfo {
1599
1558
  */
1600
1559
  description?: string | null;
1601
1560
  }
1602
- interface V2Refund {
1561
+ export interface V2Refund {
1603
1562
  /** Refund created timestamp. */
1604
1563
  dateCreated?: Date | null;
1605
1564
  /**
@@ -1615,11 +1574,11 @@ interface V2Refund {
1615
1574
  * Refund ID.
1616
1575
  * @format GUID
1617
1576
  */
1618
- _id?: string;
1577
+ id?: string;
1619
1578
  /** Whether refund was made externally (on the payment provider's side). */
1620
1579
  externalRefund?: boolean;
1621
1580
  }
1622
- interface GiftCard {
1581
+ export interface GiftCard {
1623
1582
  /**
1624
1583
  * @minLength 1
1625
1584
  * @maxLength 100
@@ -1631,7 +1590,7 @@ interface GiftCard {
1631
1590
  * @deprecated giftcard internal ID
1632
1591
  * @targetRemovalDate 2024-12-31
1633
1592
  */
1634
- _id?: string;
1593
+ id?: string;
1635
1594
  /**
1636
1595
  * giftcard provider appid
1637
1596
  * @format GUID
@@ -1644,7 +1603,7 @@ interface GiftCard {
1644
1603
  amount?: string;
1645
1604
  }
1646
1605
  /** Triggered when a payment is updated. */
1647
- interface PaymentsUpdated {
1606
+ export interface PaymentsUpdated {
1648
1607
  /** Updated order transactions. */
1649
1608
  orderTransactions?: OrderTransactions;
1650
1609
  /**
@@ -1659,7 +1618,7 @@ interface PaymentsUpdated {
1659
1618
  refundIds?: string[];
1660
1619
  }
1661
1620
  /** Triggered when a payment is updated. */
1662
- interface PaymentDetailsUpdated {
1621
+ export interface PaymentDetailsUpdated {
1663
1622
  /** Updated order transactions. */
1664
1623
  orderTransactions?: OrderTransactions;
1665
1624
  /**
@@ -1676,7 +1635,7 @@ interface PaymentDetailsUpdated {
1676
1635
  refundIds?: string[];
1677
1636
  }
1678
1637
  /** Triggered when a refund is created. */
1679
- interface RefundCreated {
1638
+ export interface RefundCreated {
1680
1639
  /** Updated order transactions. */
1681
1640
  orderTransactions?: OrderTransactions;
1682
1641
  /** ID of the created refund. */
@@ -1690,7 +1649,7 @@ interface RefundCreated {
1690
1649
  /** Refunded line items and quantities that are part of the created refund. */
1691
1650
  refundItems?: RefundItem[];
1692
1651
  }
1693
- interface RestockInfo {
1652
+ export interface RestockInfo {
1694
1653
  /** Restock type. */
1695
1654
  type?: RestockType;
1696
1655
  /**
@@ -1699,12 +1658,12 @@ interface RestockInfo {
1699
1658
  */
1700
1659
  items?: RestockItem[];
1701
1660
  }
1702
- declare enum RestockType {
1661
+ export declare enum RestockType {
1703
1662
  NO_ITEMS = "NO_ITEMS",
1704
1663
  ALL_ITEMS = "ALL_ITEMS",
1705
1664
  SOME_ITEMS = "SOME_ITEMS"
1706
1665
  }
1707
- interface RestockItem {
1666
+ export interface RestockItem {
1708
1667
  /**
1709
1668
  * ID of the line item being restocked.
1710
1669
  * @format GUID
@@ -1717,7 +1676,7 @@ interface RestockItem {
1717
1676
  */
1718
1677
  quantity?: number;
1719
1678
  }
1720
- interface RefundCompleted {
1679
+ export interface RefundCompleted {
1721
1680
  /**
1722
1681
  * Order ID.
1723
1682
  * @format GUID
@@ -1730,7 +1689,7 @@ interface RefundCompleted {
1730
1689
  /** Order transactions after refund is completed. */
1731
1690
  orderTransactions?: OrderTransactions;
1732
1691
  }
1733
- interface RefundSideEffects {
1692
+ export interface RefundSideEffects {
1734
1693
  /** Inventory restock details as part of this refund. */
1735
1694
  restockInfo?: RestockInfo;
1736
1695
  /** Whether to send a refund confirmation email to the customer. */
@@ -1742,7 +1701,7 @@ interface RefundSideEffects {
1742
1701
  */
1743
1702
  customMessage?: string | null;
1744
1703
  }
1745
- interface ListTransactionsForSingleOrderRequest {
1704
+ export interface ListTransactionsForSingleOrderRequest {
1746
1705
  /**
1747
1706
  * Order ID.
1748
1707
  * @minLength 1
@@ -1750,11 +1709,11 @@ interface ListTransactionsForSingleOrderRequest {
1750
1709
  */
1751
1710
  orderId: string;
1752
1711
  }
1753
- interface ListTransactionsForSingleOrderResponse {
1712
+ export interface ListTransactionsForSingleOrderResponse {
1754
1713
  /** Order ID and its associated transactions. */
1755
1714
  orderTransactions?: OrderTransactions;
1756
1715
  }
1757
- interface ListTransactionsForMultipleOrdersRequest {
1716
+ export interface ListTransactionsForMultipleOrdersRequest {
1758
1717
  /**
1759
1718
  * Order IDs for which to retrieve transactions.
1760
1719
  * @minSize 1
@@ -1764,11 +1723,11 @@ interface ListTransactionsForMultipleOrdersRequest {
1764
1723
  */
1765
1724
  orderIds: string[];
1766
1725
  }
1767
- interface ListTransactionsForMultipleOrdersResponse {
1726
+ export interface ListTransactionsForMultipleOrdersResponse {
1768
1727
  /** List of order IDs and their associated transactions. */
1769
1728
  orderTransactions?: OrderTransactions[];
1770
1729
  }
1771
- interface AddPaymentsRequest {
1730
+ export interface AddPaymentsRequest {
1772
1731
  /**
1773
1732
  * Order ID.
1774
1733
  * @format GUID
@@ -1781,13 +1740,13 @@ interface AddPaymentsRequest {
1781
1740
  */
1782
1741
  payments: Payment[];
1783
1742
  }
1784
- interface AddPaymentsResponse {
1743
+ export interface AddPaymentsResponse {
1785
1744
  /** Order ID and its associated transactions. */
1786
1745
  orderTransactions?: OrderTransactions;
1787
1746
  /** IDs of added order payments. */
1788
1747
  paymentsIds?: string[];
1789
1748
  }
1790
- interface AddRefundRequest {
1749
+ export interface AddRefundRequest {
1791
1750
  /**
1792
1751
  * Order ID this refunds related to
1793
1752
  * @minLength 1
@@ -1799,13 +1758,13 @@ interface AddRefundRequest {
1799
1758
  /** Side effect details related to refund */
1800
1759
  sideEffects?: RefundSideEffects;
1801
1760
  }
1802
- interface AddRefundResponse {
1761
+ export interface AddRefundResponse {
1803
1762
  /** Order ID and its associated transactions. */
1804
1763
  orderTransactions?: OrderTransactions;
1805
1764
  /** Created refund ID */
1806
1765
  refundId?: string;
1807
1766
  }
1808
- interface UpdatePaymentStatusRequest {
1767
+ export interface UpdatePaymentStatusRequest {
1809
1768
  /**
1810
1769
  * Order ID.
1811
1770
  * @format GUID
@@ -1819,11 +1778,11 @@ interface UpdatePaymentStatusRequest {
1819
1778
  /** Payment status. */
1820
1779
  status?: TransactionStatus;
1821
1780
  }
1822
- interface UpdatePaymentStatusResponse {
1781
+ export interface UpdatePaymentStatusResponse {
1823
1782
  /** Order ID and its associated transactions after update. */
1824
1783
  orderTransactions?: OrderTransactions;
1825
1784
  }
1826
- interface BulkUpdatePaymentStatusesRequest {
1785
+ export interface BulkUpdatePaymentStatusesRequest {
1827
1786
  /**
1828
1787
  * Order and payment IDs for which to update payment status.
1829
1788
  * @minSize 1
@@ -1835,7 +1794,7 @@ interface BulkUpdatePaymentStatusesRequest {
1835
1794
  /** Payment status. */
1836
1795
  status?: TransactionStatus;
1837
1796
  }
1838
- interface PaymentAndOrderId {
1797
+ export interface PaymentAndOrderId {
1839
1798
  /**
1840
1799
  * Order ID.
1841
1800
  * @format GUID
@@ -1847,21 +1806,21 @@ interface PaymentAndOrderId {
1847
1806
  */
1848
1807
  paymentId?: string;
1849
1808
  }
1850
- interface BulkUpdatePaymentStatusesResponse {
1809
+ export interface BulkUpdatePaymentStatusesResponse {
1851
1810
  /** Bulk operation results. */
1852
1811
  results?: BulkPaymentResult[];
1853
1812
  /** Bulk operation metadata. */
1854
1813
  bulkActionMetadata?: BulkActionMetadata;
1855
1814
  }
1856
- interface BulkPaymentResult {
1815
+ export interface BulkPaymentResult {
1857
1816
  /** Item metadata. */
1858
1817
  itemMetadata?: ItemMetadata;
1859
1818
  /** Updated payment. Returned if `return_full_entity` set to `true`. */
1860
1819
  item?: Payment;
1861
1820
  }
1862
- interface ItemMetadata {
1821
+ export interface ItemMetadata {
1863
1822
  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1864
- _id?: string | null;
1823
+ id?: string | null;
1865
1824
  /** Index of the item within the request array. Allows for correlation between request and response items. */
1866
1825
  originalIndex?: number;
1867
1826
  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
@@ -1869,7 +1828,7 @@ interface ItemMetadata {
1869
1828
  /** Details about the error in case of failure. */
1870
1829
  error?: ApplicationError;
1871
1830
  }
1872
- interface ApplicationError {
1831
+ export interface ApplicationError {
1873
1832
  /** Error code. */
1874
1833
  code?: string;
1875
1834
  /** Description of the error. */
@@ -1877,7 +1836,7 @@ interface ApplicationError {
1877
1836
  /** Data related to the error. */
1878
1837
  data?: Record<string, any> | null;
1879
1838
  }
1880
- interface BulkActionMetadata {
1839
+ export interface BulkActionMetadata {
1881
1840
  /** Number of items that were successfully processed. */
1882
1841
  totalSuccesses?: number;
1883
1842
  /** Number of items that couldn't be processed. */
@@ -1885,7 +1844,7 @@ interface BulkActionMetadata {
1885
1844
  /** Number of failures without details because detailed failure threshold was exceeded. */
1886
1845
  undetailedFailures?: number;
1887
1846
  }
1888
- interface UpdateRefundRequest {
1847
+ export interface UpdateRefundRequest {
1889
1848
  /**
1890
1849
  * Order ID.
1891
1850
  * @format GUID
@@ -1894,57 +1853,25 @@ interface UpdateRefundRequest {
1894
1853
  /** Refund with updated field values. */
1895
1854
  refund?: Refund;
1896
1855
  }
1897
- interface UpdateRefundResponse {
1856
+ export interface UpdateRefundResponse {
1898
1857
  /** Refund after update. */
1899
1858
  refund?: Refund;
1900
1859
  /** Order transactions after update. */
1901
1860
  orderTransactions?: OrderTransactions;
1902
1861
  }
1903
- interface UpdateRefundTransactionRequest {
1904
- /**
1905
- * Order ID.
1906
- * @internal
1907
- * @format GUID
1908
- */
1909
- orderId: string;
1910
- /**
1911
- * Payment ID.
1912
- * @internal
1913
- * @format GUID
1914
- */
1915
- refundId: string;
1916
- /**
1917
- * Updated refund transaction
1918
- * @internal
1919
- */
1920
- transaction: RefundTransaction;
1862
+ export interface UpdateRefundTransactionRequest {
1921
1863
  }
1922
- interface UpdateRefundTransactionResponse {
1923
- /**
1924
- * OrderTransactions with updated refund transaction
1925
- * @internal
1926
- */
1927
- orderTransactions?: OrderTransactions;
1864
+ export interface UpdateRefundTransactionResponse {
1928
1865
  }
1929
- interface UpdatePaymentsRequest {
1866
+ export interface UpdatePaymentsRequest {
1930
1867
  }
1931
- interface MaskedPayment {
1868
+ export interface MaskedPayment {
1932
1869
  }
1933
- interface UpdatePaymentsResponse {
1934
- /**
1935
- * OrderTransactions with updated payments
1936
- * @internal
1937
- */
1938
- orderTransactions?: OrderTransactions;
1870
+ export interface UpdatePaymentsResponse {
1939
1871
  }
1940
- interface QueryOrderTransactionsRequest {
1941
- /**
1942
- * Query options.
1943
- * @internal
1944
- */
1945
- query?: CursorQuery;
1872
+ export interface QueryOrderTransactionsRequest {
1946
1873
  }
1947
- interface CursorQuery extends CursorQueryPagingMethodOneOf {
1874
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1948
1875
  /** 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`. */
1949
1876
  cursorPaging?: CursorPaging;
1950
1877
  /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
@@ -1957,11 +1884,11 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
1957
1884
  sort?: Sorting[];
1958
1885
  }
1959
1886
  /** @oneof */
1960
- interface CursorQueryPagingMethodOneOf {
1887
+ export interface CursorQueryPagingMethodOneOf {
1961
1888
  /** 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`. */
1962
1889
  cursorPaging?: CursorPaging;
1963
1890
  }
1964
- interface Sorting {
1891
+ export interface Sorting {
1965
1892
  /**
1966
1893
  * Name of the field to sort by.
1967
1894
  * @maxLength 512
@@ -1970,13 +1897,13 @@ interface Sorting {
1970
1897
  /** Sort order. */
1971
1898
  order?: SortOrder;
1972
1899
  }
1973
- declare enum SortOrder {
1900
+ export declare enum SortOrder {
1974
1901
  /** Ascending order. */
1975
1902
  ASC = "ASC",
1976
1903
  /** Descending order. */
1977
1904
  DESC = "DESC"
1978
1905
  }
1979
- interface CursorPaging {
1906
+ export interface CursorPaging {
1980
1907
  /**
1981
1908
  * Maximum number of items to return in the results.
1982
1909
  * @max 100
@@ -1991,20 +1918,9 @@ interface CursorPaging {
1991
1918
  */
1992
1919
  cursor?: string | null;
1993
1920
  }
1994
- interface QueryOrderTransactionsResponse {
1995
- /**
1996
- * Order transactions.
1997
- * @internal
1998
- * @maxSize 100
1999
- */
2000
- orderTransactions?: OrderTransactions[];
2001
- /**
2002
- * Details on the paged set of results returned.
2003
- * @internal
2004
- */
2005
- metadata?: CursorPagingMetadata;
1921
+ export interface QueryOrderTransactionsResponse {
2006
1922
  }
2007
- interface CursorPagingMetadata {
1923
+ export interface CursorPagingMetadata {
2008
1924
  /** Number of items returned in the response. */
2009
1925
  count?: number | null;
2010
1926
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -2017,7 +1933,7 @@ interface CursorPagingMetadata {
2017
1933
  */
2018
1934
  hasNext?: boolean | null;
2019
1935
  }
2020
- interface Cursors {
1936
+ export interface Cursors {
2021
1937
  /**
2022
1938
  * Cursor string pointing to the next page in the list of results.
2023
1939
  * @maxLength 16000
@@ -2029,7 +1945,7 @@ interface Cursors {
2029
1945
  */
2030
1946
  prev?: string | null;
2031
1947
  }
2032
- interface TriggerRefundRequest {
1948
+ export interface TriggerRefundRequest {
2033
1949
  /**
2034
1950
  * The order this refund related to
2035
1951
  * @minLength 1
@@ -2056,7 +1972,7 @@ interface TriggerRefundRequest {
2056
1972
  */
2057
1973
  customMessage?: string | null;
2058
1974
  }
2059
- interface PaymentRefund {
1975
+ export interface PaymentRefund {
2060
1976
  /**
2061
1977
  * Specific payment within the order to refund
2062
1978
  * @format GUID
@@ -2071,13 +1987,13 @@ interface PaymentRefund {
2071
1987
  */
2072
1988
  externalRefund?: boolean;
2073
1989
  }
2074
- interface TriggerRefundResponse {
1990
+ export interface TriggerRefundResponse {
2075
1991
  /** All order's transactions after the refunds were added */
2076
1992
  orderTransactions?: OrderTransactions;
2077
1993
  /** Created refund ID */
2078
1994
  refundId?: string;
2079
1995
  }
2080
- interface CalculateRefundRequest {
1996
+ export interface CalculateRefundRequest {
2081
1997
  /**
2082
1998
  * Order ID
2083
1999
  * @minLength 1
@@ -2092,7 +2008,7 @@ interface CalculateRefundRequest {
2092
2008
  /** Should include shipping in refund calculation */
2093
2009
  refundShipping?: boolean;
2094
2010
  }
2095
- interface CalculateRefundItemRequest {
2011
+ export interface CalculateRefundItemRequest {
2096
2012
  /**
2097
2013
  * ID of the line item being refunded
2098
2014
  * @format GUID
@@ -2107,7 +2023,7 @@ interface CalculateRefundItemRequest {
2107
2023
  /** Should this item be restocked (used for validation purposes) */
2108
2024
  restock?: boolean;
2109
2025
  }
2110
- interface CalculateRefundResponse {
2026
+ export interface CalculateRefundResponse {
2111
2027
  /**
2112
2028
  * Total refundable amount
2113
2029
  * @format DECIMAL_VALUE
@@ -2136,13 +2052,13 @@ interface CalculateRefundResponse {
2136
2052
  /** The refundable items of that order */
2137
2053
  items?: CalculateRefundItemResponse[];
2138
2054
  }
2139
- interface CalculateRefundItemResponse {
2055
+ export interface CalculateRefundItemResponse {
2140
2056
  /** Line item ID */
2141
2057
  lineItemId?: string;
2142
2058
  /** The line item's price */
2143
2059
  lineItemPrice?: number;
2144
2060
  }
2145
- interface GetRefundabilityStatusRequest {
2061
+ export interface GetRefundabilityStatusRequest {
2146
2062
  /**
2147
2063
  * Order ID.
2148
2064
  * @minLength 1
@@ -2150,7 +2066,7 @@ interface GetRefundabilityStatusRequest {
2150
2066
  */
2151
2067
  orderId?: string;
2152
2068
  }
2153
- interface GetRefundabilityStatusResponse {
2069
+ export interface GetRefundabilityStatusResponse {
2154
2070
  /**
2155
2071
  * Refundability details.
2156
2072
  * @maxSize 1
@@ -2159,7 +2075,7 @@ interface GetRefundabilityStatusResponse {
2159
2075
  /** Whether the order supports refunding per item. */
2160
2076
  refundablePerItem?: boolean;
2161
2077
  }
2162
- interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
2078
+ export interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
2163
2079
  /** Reason why payment is not refundable. */
2164
2080
  nonRefundableReason?: NonRefundableReason;
2165
2081
  /** Reason why payment is only refundable manually. */
@@ -2172,13 +2088,13 @@ interface Refundability extends RefundabilityAdditionalRefundabilityInfoOneOf {
2172
2088
  providerLink?: string | null;
2173
2089
  }
2174
2090
  /** @oneof */
2175
- interface RefundabilityAdditionalRefundabilityInfoOneOf {
2091
+ export interface RefundabilityAdditionalRefundabilityInfoOneOf {
2176
2092
  /** Reason why payment is not refundable. */
2177
2093
  nonRefundableReason?: NonRefundableReason;
2178
2094
  /** Reason why payment is only refundable manually. */
2179
2095
  manuallyRefundableReason?: ManuallyRefundableReason;
2180
2096
  }
2181
- declare enum RefundableStatus {
2097
+ export declare enum RefundableStatus {
2182
2098
  /** Not refundable. */
2183
2099
  NOT_REFUNDABLE = "NOT_REFUNDABLE",
2184
2100
  /** Refundable manually. */
@@ -2186,7 +2102,7 @@ declare enum RefundableStatus {
2186
2102
  /** Refundable. */
2187
2103
  REFUNDABLE = "REFUNDABLE"
2188
2104
  }
2189
- declare enum NonRefundableReason {
2105
+ export declare enum NonRefundableReason {
2190
2106
  /** No reason. */
2191
2107
  NONE = "NONE",
2192
2108
  /** Payment already refunded. */
@@ -2212,7 +2128,7 @@ declare enum NonRefundableReason {
2212
2128
  /** Action forbidden. */
2213
2129
  FORBIDDEN = "FORBIDDEN"
2214
2130
  }
2215
- declare enum ManuallyRefundableReason {
2131
+ export declare enum ManuallyRefundableReason {
2216
2132
  /** Payment expired. */
2217
2133
  EXPIRED = "EXPIRED",
2218
2134
  /** Payment method not supported. */
@@ -2224,7 +2140,7 @@ declare enum ManuallyRefundableReason {
2224
2140
  /** Refund requires interaction with card reader. */
2225
2141
  REQUIRES_CARD_READER = "REQUIRES_CARD_READER"
2226
2142
  }
2227
- interface ListInvoicesForSingleOrderRequest {
2143
+ export interface ListInvoicesForSingleOrderRequest {
2228
2144
  /**
2229
2145
  * Order ID.
2230
2146
  * @minLength 1
@@ -2232,13 +2148,13 @@ interface ListInvoicesForSingleOrderRequest {
2232
2148
  */
2233
2149
  orderId?: string;
2234
2150
  }
2235
- interface ListInvoicesForSingleOrderResponse {
2151
+ export interface ListInvoicesForSingleOrderResponse {
2236
2152
  /** List of invoices. */
2237
2153
  invoices?: InvoiceInfo[];
2238
2154
  }
2239
- interface InvoiceInfo {
2155
+ export interface InvoiceInfo {
2240
2156
  /** Invoice ID. */
2241
- _id?: string;
2157
+ id?: string;
2242
2158
  /** ID of the app that set the invoice. */
2243
2159
  appId?: string;
2244
2160
  /**
@@ -2250,9 +2166,9 @@ interface InvoiceInfo {
2250
2166
  * Invoice creation date and time.
2251
2167
  * @deprecated
2252
2168
  */
2253
- _createdDate?: Date | null;
2169
+ createdDate?: Date | null;
2254
2170
  }
2255
- interface ListInvoicesForMultipleOrdersRequest {
2171
+ export interface ListInvoicesForMultipleOrdersRequest {
2256
2172
  /**
2257
2173
  * Order IDs for which to retrieve invoices.
2258
2174
  * @maxSize 300
@@ -2261,17 +2177,17 @@ interface ListInvoicesForMultipleOrdersRequest {
2261
2177
  */
2262
2178
  orderIds?: string[];
2263
2179
  }
2264
- interface ListInvoicesForMultipleOrdersResponse {
2180
+ export interface ListInvoicesForMultipleOrdersResponse {
2265
2181
  /** List of order IDs and their associated invoices. */
2266
2182
  invoicesForOrder?: InvoicesForOrder[];
2267
2183
  }
2268
- interface InvoicesForOrder {
2184
+ export interface InvoicesForOrder {
2269
2185
  /** Order ID. */
2270
2186
  orderId?: string;
2271
2187
  /** Invoices info. */
2272
2188
  invoicesInfo?: InvoiceInfo[];
2273
2189
  }
2274
- interface GenerateInvoiceRequest {
2190
+ export interface GenerateInvoiceRequest {
2275
2191
  /**
2276
2192
  * Order ID.
2277
2193
  * @minLength 1
@@ -2279,11 +2195,11 @@ interface GenerateInvoiceRequest {
2279
2195
  */
2280
2196
  orderId?: string;
2281
2197
  }
2282
- interface GenerateInvoiceResponse {
2198
+ export interface GenerateInvoiceResponse {
2283
2199
  /** Invoice ID. */
2284
2200
  invoiceId?: string;
2285
2201
  }
2286
- interface BulkGenerateInvoicesRequest {
2202
+ export interface BulkGenerateInvoicesRequest {
2287
2203
  /**
2288
2204
  * Order IDs.
2289
2205
  * @minSize 1
@@ -2293,21 +2209,21 @@ interface BulkGenerateInvoicesRequest {
2293
2209
  */
2294
2210
  orderIds?: string[];
2295
2211
  }
2296
- interface BulkGenerateInvoicesResponse {
2212
+ export interface BulkGenerateInvoicesResponse {
2297
2213
  results?: BulkInvoiceResult[];
2298
2214
  bulkActionMetadata?: BulkActionMetadata;
2299
2215
  }
2300
- interface BulkInvoiceResult {
2216
+ export interface BulkInvoiceResult {
2301
2217
  itemMetadata?: ItemMetadata;
2302
2218
  item?: InvoiceForOrder;
2303
2219
  }
2304
- interface InvoiceForOrder {
2220
+ export interface InvoiceForOrder {
2305
2221
  /** Order ID. */
2306
2222
  orderId?: string;
2307
2223
  /** Invoice ID. */
2308
2224
  invoiceId?: string;
2309
2225
  }
2310
- interface AddInvoiceToOrderRequest {
2226
+ export interface AddInvoiceToOrderRequest {
2311
2227
  /**
2312
2228
  * Order ID.
2313
2229
  * @minLength 1
@@ -2317,11 +2233,11 @@ interface AddInvoiceToOrderRequest {
2317
2233
  /** Invoice info. */
2318
2234
  invoiceInfo?: InvoiceInfo;
2319
2235
  }
2320
- interface AddInvoiceToOrderResponse {
2236
+ export interface AddInvoiceToOrderResponse {
2321
2237
  /** List of order invoices. */
2322
2238
  orderInvoices?: InvoiceInfo[];
2323
2239
  }
2324
- interface DomainEvent extends DomainEventBodyOneOf {
2240
+ export interface DomainEvent extends DomainEventBodyOneOf {
2325
2241
  createdEvent?: EntityCreatedEvent;
2326
2242
  updatedEvent?: EntityUpdatedEvent;
2327
2243
  deletedEvent?: EntityDeletedEvent;
@@ -2330,7 +2246,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
2330
2246
  * Unique event ID.
2331
2247
  * Allows clients to ignore duplicate webhooks.
2332
2248
  */
2333
- _id?: string;
2249
+ id?: string;
2334
2250
  /**
2335
2251
  * Assumes actions are also always typed to an entity_type
2336
2252
  * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
@@ -2364,34 +2280,36 @@ interface DomainEvent extends DomainEventBodyOneOf {
2364
2280
  entityEventSequence?: string | null;
2365
2281
  }
2366
2282
  /** @oneof */
2367
- interface DomainEventBodyOneOf {
2283
+ export interface DomainEventBodyOneOf {
2368
2284
  createdEvent?: EntityCreatedEvent;
2369
2285
  updatedEvent?: EntityUpdatedEvent;
2370
2286
  deletedEvent?: EntityDeletedEvent;
2371
2287
  actionEvent?: ActionEvent;
2372
2288
  }
2373
- interface EntityCreatedEvent {
2374
- entity?: string;
2289
+ export interface EntityCreatedEvent {
2290
+ entityAsJson?: string;
2291
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
2292
+ restoreInfo?: RestoreInfo;
2375
2293
  }
2376
- interface RestoreInfo {
2294
+ export interface RestoreInfo {
2377
2295
  deletedDate?: Date | null;
2378
2296
  }
2379
- interface EntityUpdatedEvent {
2297
+ export interface EntityUpdatedEvent {
2380
2298
  /**
2381
2299
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2382
2300
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2383
2301
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2384
2302
  */
2385
- currentEntity?: string;
2303
+ currentEntityAsJson?: string;
2386
2304
  }
2387
- interface EntityDeletedEvent {
2305
+ export interface EntityDeletedEvent {
2388
2306
  /** Entity that was deleted */
2389
- deletedEntity?: string | null;
2307
+ deletedEntityAsJson?: string | null;
2390
2308
  }
2391
- interface ActionEvent {
2392
- body?: string;
2309
+ export interface ActionEvent {
2310
+ bodyAsJson?: string;
2393
2311
  }
2394
- interface MessageEnvelope {
2312
+ export interface MessageEnvelope {
2395
2313
  /**
2396
2314
  * App instance ID.
2397
2315
  * @format GUID
@@ -2407,7 +2325,7 @@ interface MessageEnvelope {
2407
2325
  /** Stringify payload. */
2408
2326
  data?: string;
2409
2327
  }
2410
- interface IdentificationData extends IdentificationDataIdOneOf {
2328
+ export interface IdentificationData extends IdentificationDataIdOneOf {
2411
2329
  /**
2412
2330
  * ID of a site visitor that has not logged in to the site.
2413
2331
  * @format GUID
@@ -2432,7 +2350,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
2432
2350
  identityType?: WebhookIdentityType;
2433
2351
  }
2434
2352
  /** @oneof */
2435
- interface IdentificationDataIdOneOf {
2353
+ export interface IdentificationDataIdOneOf {
2436
2354
  /**
2437
2355
  * ID of a site visitor that has not logged in to the site.
2438
2356
  * @format GUID
@@ -2454,34 +2372,10 @@ interface IdentificationDataIdOneOf {
2454
2372
  */
2455
2373
  appId?: string;
2456
2374
  }
2457
- declare enum WebhookIdentityType {
2375
+ export declare enum WebhookIdentityType {
2458
2376
  UNKNOWN = "UNKNOWN",
2459
2377
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2460
2378
  MEMBER = "MEMBER",
2461
2379
  WIX_USER = "WIX_USER",
2462
2380
  APP = "APP"
2463
2381
  }
2464
- interface UpdatePaymentStatusIdentifiers {
2465
- /**
2466
- * Payment ID.
2467
- * @format GUID
2468
- */
2469
- paymentId: string;
2470
- /**
2471
- * Order ID.
2472
- * @format GUID
2473
- */
2474
- orderId: string;
2475
- }
2476
- interface UpdatePaymentStatusOptions {
2477
- /** Payment status. */
2478
- status?: TransactionStatus;
2479
- }
2480
- interface BulkUpdatePaymentStatusesOptions {
2481
- /** Whether to return the full payment entity (`results.item`) in the response. */
2482
- returnFullEntity?: boolean;
2483
- /** Payment status. */
2484
- status?: TransactionStatus;
2485
- }
2486
-
2487
- export { type RefundTransaction as $, type AddPaymentsResponse as A, type BulkUpdatePaymentStatusesOptions as B, ChannelType as C, type Price as D, EnteredByIdentityType as E, FulfillmentStatus as F, type AuthorizationActionFailureDetails as G, type AuthorizationVoid as H, IdentityType as I, type ScheduledAction as J, type GiftCardPaymentDetails as K, type ListTransactionsForSingleOrderResponse as L, MembershipPaymentStatus as M, NonRefundableReason as N, type OrderTransactions as O, type Payment as P, type MembershipPaymentDetails as Q, Reason as R, SubscriptionFrequency as S, TransactionStatus as T, type UpdatePaymentStatusIdentifiers as U, VatType as V, WeightUnit as W, type MembershipName as X, type WixReceiptInfo as Y, type ExternalReceiptInfo as Z, type Refund as _, type ListTransactionsForMultipleOrdersResponse as a, type AddRefundResponse as a$, type RefundStatusInfo as a0, type RefundDetails as a1, type RefundItem as a2, type LineItemRefund as a3, type AdditionalFeeRefund as a4, type ShippingRefund as a5, type AggregatedRefundSummary as a6, type RefundItemsBreakdown as a7, type LineItemRefundSummary as a8, type SnapshotMessage as a9, type DigitalFile as aA, type Activity as aB, type V2InvoiceInfo as aC, type Fulfillment as aD, type FulfillmentLineItem as aE, type FulfillmentTrackingInfo as aF, type Discount as aG, type AppliedCoupon as aH, type CustomField as aI, type ChannelInfo as aJ, type EnteredBy as aK, type SubscriptionInfo as aL, type SubscriptionSettings as aM, type SubscriptionOptionInfo as aN, type V2Refund as aO, type GiftCard as aP, type PaymentsUpdated as aQ, type PaymentDetailsUpdated as aR, type RefundCreated as aS, type RestockInfo as aT, type RestockItem as aU, type RefundCompleted as aV, type RefundSideEffects as aW, type ListTransactionsForSingleOrderRequest as aX, type ListTransactionsForMultipleOrdersRequest as aY, type AddPaymentsRequest as aZ, type AddRefundRequest as a_, type IndexingMessage as aa, type DiffmatokyPayload as ab, type ErrorInformation as ac, type OrderRefunded as ad, type Order as ae, type BuyerInfo as af, type Totals as ag, type BillingInfo as ah, type Address as ai, type AddressAddressLine1OptionsOneOf as aj, type FullName as ak, type Street as al, type VatId as am, type ShippingInfo as an, type ShippingInfoDetailsOneOf as ao, type ShipmentDetails as ap, type TrackingInfo as aq, type ShippingPriceData as ar, type PickupDetails as as, type PickupAddress as at, type BuyerDetails as au, type LineItem as av, type OptionSelection as aw, type CustomTextFieldSelection as ax, type MediaItem as ay, type LineItemPriceData as az, type UpdatePaymentStatusOptions as b, type UpdatePaymentStatusRequest as b0, type BulkUpdatePaymentStatusesRequest as b1, type BulkPaymentResult as b2, type ItemMetadata as b3, type ApplicationError as b4, type BulkActionMetadata as b5, type UpdateRefundRequest as b6, type UpdateRefundResponse as b7, type UpdateRefundTransactionRequest as b8, type UpdateRefundTransactionResponse as b9, type ListInvoicesForMultipleOrdersResponse as bA, type InvoicesForOrder as bB, type GenerateInvoiceRequest as bC, type GenerateInvoiceResponse as bD, type BulkGenerateInvoicesRequest as bE, type BulkGenerateInvoicesResponse as bF, type BulkInvoiceResult as bG, type InvoiceForOrder as bH, type AddInvoiceToOrderRequest as bI, type AddInvoiceToOrderResponse as bJ, type DomainEvent as bK, type DomainEventBodyOneOf as bL, type EntityCreatedEvent as bM, type RestoreInfo as bN, type EntityUpdatedEvent as bO, type EntityDeletedEvent as bP, type ActionEvent as bQ, type MessageEnvelope as bR, type IdentificationData as bS, type IdentificationDataIdOneOf as bT, type UpdatePaymentsRequest as ba, type MaskedPayment as bb, type UpdatePaymentsResponse as bc, type QueryOrderTransactionsRequest as bd, type CursorQuery as be, type CursorQueryPagingMethodOneOf as bf, type Sorting as bg, type CursorPaging as bh, type QueryOrderTransactionsResponse as bi, type CursorPagingMetadata as bj, type Cursors as bk, type TriggerRefundRequest as bl, type PaymentRefund as bm, type TriggerRefundResponse as bn, type CalculateRefundRequest as bo, type CalculateRefundItemRequest as bp, type CalculateRefundResponse as bq, type CalculateRefundItemResponse as br, type GetRefundabilityStatusRequest as bs, type GetRefundabilityStatusResponse as bt, type Refundability as bu, type RefundabilityAdditionalRefundabilityInfoOneOf as bv, type ListInvoicesForSingleOrderRequest as bw, type ListInvoicesForSingleOrderResponse as bx, type InvoiceInfo as by, type ListInvoicesForMultipleOrdersRequest as bz, type UpdatePaymentStatusResponse as c, type PaymentAndOrderId as d, type BulkUpdatePaymentStatusesResponse as e, AuthorizationCaptureStatus as f, AuthorizationVoidStatus as g, ActionType as h, RefundStatus as i, PaymentStatus as j, LineItemType as k, MediaItemType as l, ActivityType as m, InvoiceSource as n, RestockType as o, SortOrder as p, RefundableStatus as q, ManuallyRefundableReason as r, WebhookIdentityType as s, type PaymentPaymentDetailsOneOf as t, type PaymentReceiptInfoOneOf as u, type RegularPaymentDetails as v, type RegularPaymentDetailsPaymentMethodDetailsOneOf as w, type CreditCardPaymentMethodDetails as x, type AuthorizationDetails as y, type AuthorizationCapture as z };