@xoxno/types 1.0.192 → 1.0.194

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 (101) hide show
  1. package/dist/common/kusto/lending-overall-stats.d.ts +1 -1
  2. package/dist/common/kusto/lending-overall-stats.js +3 -0
  3. package/dist/common/kusto/user-trading-summary.d.ts +13 -15
  4. package/dist/common/kusto/user-trading-summary.js +91 -0
  5. package/dist/common/kusto/volume-graph.js +71 -0
  6. package/dist/common/kusto/wallet-stats.d.ts +1 -1
  7. package/dist/common/kusto/wallet-stats.js +254 -1
  8. package/dist/common/statistics.js +75 -4
  9. package/dist/cosmos-db/cosmos-db-paginated-response.dto.d.ts +7 -6
  10. package/dist/cosmos-db/cosmos-db-paginated-response.dto.js +14 -2
  11. package/dist/cosmos-db/documents/activity/nft-activity.doc.js +13 -0
  12. package/dist/cosmos-db/documents/chat/chat-message.doc.js +57 -0
  13. package/dist/cosmos-db/documents/chat/chat-read.dto.js +26 -0
  14. package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +85 -0
  15. package/dist/cosmos-db/documents/chat/user-block.doc.js +76 -0
  16. package/dist/cosmos-db/documents/chat/user-conversation.doc.js +115 -0
  17. package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +1 -1
  18. package/dist/cosmos-db/documents/collection/collectionConfig.js +87 -1
  19. package/dist/cosmos-db/documents/collection/globalOffer.js +37 -0
  20. package/dist/cosmos-db/documents/collection/mintProfile.js +45 -2
  21. package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +4 -5
  22. package/dist/cosmos-db/documents/external-payment/binance-hook.js +216 -0
  23. package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +218 -0
  24. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +71 -71
  25. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +783 -0
  26. package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +1 -1
  27. package/dist/cosmos-db/documents/external-payment/twispay-cart.js +75 -0
  28. package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +1 -2
  29. package/dist/cosmos-db/documents/external-payment/twispay-customer.js +102 -0
  30. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +1 -1
  31. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +98 -0
  32. package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +1 -1
  33. package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +116 -1
  34. package/dist/cosmos-db/documents/lending/lending-account-profile.js +21 -0
  35. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +15 -0
  36. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +21 -0
  37. package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +49 -0
  38. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +21 -0
  39. package/dist/cosmos-db/documents/notification/notification.doc.js +108 -0
  40. package/dist/cosmos-db/documents/short/short-collection-info.doc.d.ts +2 -2
  41. package/dist/cosmos-db/documents/short/short-collection.doc.d.ts +2 -2
  42. package/dist/cosmos-db/documents/short/short-nft-collection-info.doc.d.ts +2 -2
  43. package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +89 -0
  44. package/dist/cosmos-db/documents/staking/staking-pool-doc.js +274 -0
  45. package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +24 -0
  46. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
  47. package/dist/cosmos-db/documents/ticketing/event-location.js +24 -0
  48. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +14 -0
  49. package/dist/cosmos-db/documents/ticketing/event-question.doc.js +7 -0
  50. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
  51. package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +7 -0
  52. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +14 -0
  53. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +14 -0
  54. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +16 -0
  55. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +7 -0
  56. package/dist/cosmos-db/documents/token/nft-details.doc.js +18 -5
  57. package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +59 -0
  58. package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +40 -0
  59. package/dist/cosmos-db/documents/token/nft-metadata.js +9 -0
  60. package/dist/cosmos-db/documents/token/nft-sale-info.js +89 -17
  61. package/dist/cosmos-db/documents/token/sft-owner-doc.js +86 -0
  62. package/dist/cosmos-db/documents/user/user-favorite.doc.js +67 -0
  63. package/dist/cosmos-db/paginated-responses.d.ts +113 -15
  64. package/dist/cosmos-db/paginated-responses.js +43 -14
  65. package/dist/entities/airdrop/airdrop.dto.js +77 -0
  66. package/dist/entities/auth/login-request.dto.js +7 -0
  67. package/dist/entities/delegation-data/delegation-data-output.js +106 -0
  68. package/dist/entities/mvx-built-in/account-on-network.js +124 -0
  69. package/dist/entities/mvx-built-in/esdt-token.js +187 -0
  70. package/dist/entities/mvx-built-in/mvx-guardian.d.ts +5 -6
  71. package/dist/entities/mvx-built-in/mvx-guardian.js +67 -8
  72. package/dist/entities/notification-data/device-tag-storage.doc.js +79 -11
  73. package/dist/entities/notification-data/push-notification.doc.js +147 -25
  74. package/dist/entities/notification-data/tag-priority.d.ts +1 -1
  75. package/dist/entities/notification-data/tag-priority.js +57 -1
  76. package/dist/entities/search-data/filter-query.dto.js +32 -0
  77. package/dist/entities/staking-data/staking-creator.doc.js +38 -6
  78. package/dist/entities/staking-data/staking-explore.js +26 -5
  79. package/dist/entities/staking-data/user-staking-summary.dto.js +18 -0
  80. package/dist/entities/token-data/metrics.js +192 -38
  81. package/dist/entities/token-data/token-data.doc.js +99 -13
  82. package/dist/entities/transactions/smart-contract-result.js +138 -0
  83. package/dist/entities/transactions/transaction-detailed.js +44 -0
  84. package/dist/entities/transactions/transaction-log-event.js +52 -0
  85. package/dist/entities/transactions/transaction-log.js +51 -0
  86. package/dist/entities/transactions/transaction-operation.js +115 -0
  87. package/dist/entities/transactions/transaction-receipt.js +34 -0
  88. package/dist/entities/transactions/transaction.js +194 -0
  89. package/dist/entities/web2user-data/success.dto.js +18 -0
  90. package/dist/requests/bober-battle/analytics.js +187 -0
  91. package/dist/requests/collection/collection-attributes-map.js +123 -0
  92. package/dist/requests/collection/pinned-collections.d.ts +2 -2
  93. package/dist/requests/collection/shareholder.dto.js +30 -0
  94. package/dist/requests/lending/lending-indexes.dto.js +74 -0
  95. package/dist/requests/lending/lending-token-price.dto.js +18 -0
  96. package/dist/requests/nft-activity-data/nft-activity-data.js +168 -0
  97. package/dist/requests/nft-data/nft-doc.filter.js +2 -0
  98. package/dist/requests/nft-data/nft-offer-doc.filter.js +11 -0
  99. package/dist/requests/nft-data/sign-data.dto.js +10 -2
  100. package/dist/requests/user-data/token-inventory.js +10 -0
  101. package/package.json +1 -1
@@ -1,2 +1,785 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ChargeEventBody = exports.TransferData = exports.PaymentMethodDetails = exports.Card = exports.Overcapture = exports.NetworkToken = exports.ExtendedAuthorization = exports.Checks = exports.Outcome = exports.FraudDetails = exports.BillingDetails = exports.Address = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ class Address {
15
+ }
16
+ exports.Address = Address;
17
+ __decorate([
18
+ (0, swagger_1.ApiProperty)({
19
+ description: 'City name',
20
+ nullable: true,
21
+ example: null,
22
+ }),
23
+ __metadata("design:type", void 0)
24
+ ], Address.prototype, "city", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({
27
+ description: 'Country code',
28
+ example: 'US',
29
+ }),
30
+ __metadata("design:type", String)
31
+ ], Address.prototype, "country", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({
34
+ description: 'Address line 1',
35
+ nullable: true,
36
+ example: null,
37
+ }),
38
+ __metadata("design:type", void 0)
39
+ ], Address.prototype, "line1", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({
42
+ description: 'Address line 2',
43
+ nullable: true,
44
+ example: null,
45
+ }),
46
+ __metadata("design:type", void 0)
47
+ ], Address.prototype, "line2", void 0);
48
+ __decorate([
49
+ (0, swagger_1.ApiProperty)({
50
+ description: 'Postal code',
51
+ nullable: true,
52
+ example: null,
53
+ }),
54
+ __metadata("design:type", void 0)
55
+ ], Address.prototype, "postal_code", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({
58
+ description: 'State or province',
59
+ nullable: true,
60
+ example: null,
61
+ }),
62
+ __metadata("design:type", void 0)
63
+ ], Address.prototype, "state", void 0);
64
+ class BillingDetails {
65
+ }
66
+ exports.BillingDetails = BillingDetails;
67
+ __decorate([
68
+ (0, swagger_1.ApiProperty)({
69
+ description: 'Billing address details',
70
+ type: () => Address,
71
+ }),
72
+ __metadata("design:type", Address)
73
+ ], BillingDetails.prototype, "address", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({
76
+ description: 'Email address for billing',
77
+ example: 'customer@example.com',
78
+ }),
79
+ __metadata("design:type", String)
80
+ ], BillingDetails.prototype, "email", void 0);
81
+ __decorate([
82
+ (0, swagger_1.ApiProperty)({
83
+ description: 'Customer name',
84
+ example: 'John Doe',
85
+ }),
86
+ __metadata("design:type", String)
87
+ ], BillingDetails.prototype, "name", void 0);
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({
90
+ description: 'Phone number',
91
+ nullable: true,
92
+ example: null,
93
+ }),
94
+ __metadata("design:type", void 0)
95
+ ], BillingDetails.prototype, "phone", void 0);
96
+ class FraudDetails {
97
+ }
98
+ exports.FraudDetails = FraudDetails;
99
+ __decorate([
100
+ (0, swagger_1.ApiProperty)({
101
+ description: 'Test fraud detection result',
102
+ example: 'pass',
103
+ }),
104
+ __metadata("design:type", String)
105
+ ], FraudDetails.prototype, "test", void 0);
106
+ class Outcome {
107
+ }
108
+ exports.Outcome = Outcome;
109
+ __decorate([
110
+ (0, swagger_1.ApiProperty)({
111
+ description: 'Network status of the transaction',
112
+ example: 'approved_by_network',
113
+ }),
114
+ __metadata("design:type", String)
115
+ ], Outcome.prototype, "network_status", void 0);
116
+ __decorate([
117
+ (0, swagger_1.ApiProperty)({
118
+ description: 'Reason for outcome',
119
+ nullable: true,
120
+ example: null,
121
+ }),
122
+ __metadata("design:type", void 0)
123
+ ], Outcome.prototype, "reason", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiProperty)({
126
+ description: 'Risk level assessment',
127
+ example: 'normal',
128
+ }),
129
+ __metadata("design:type", String)
130
+ ], Outcome.prototype, "risk_level", void 0);
131
+ __decorate([
132
+ (0, swagger_1.ApiProperty)({
133
+ description: 'Risk score',
134
+ type: 'number',
135
+ example: 32,
136
+ }),
137
+ __metadata("design:type", Number)
138
+ ], Outcome.prototype, "risk_score", void 0);
139
+ __decorate([
140
+ (0, swagger_1.ApiProperty)({
141
+ description: 'Message for the seller',
142
+ example: 'Payment complete.',
143
+ }),
144
+ __metadata("design:type", String)
145
+ ], Outcome.prototype, "seller_message", void 0);
146
+ __decorate([
147
+ (0, swagger_1.ApiProperty)({
148
+ description: 'Type of outcome',
149
+ example: 'authorized',
150
+ }),
151
+ __metadata("design:type", String)
152
+ ], Outcome.prototype, "type", void 0);
153
+ class Checks {
154
+ }
155
+ exports.Checks = Checks;
156
+ __decorate([
157
+ (0, swagger_1.ApiProperty)({
158
+ description: 'Address line 1 verification check',
159
+ nullable: true,
160
+ example: null,
161
+ }),
162
+ __metadata("design:type", void 0)
163
+ ], Checks.prototype, "address_line1_check", void 0);
164
+ __decorate([
165
+ (0, swagger_1.ApiProperty)({
166
+ description: 'Address postal code verification check',
167
+ nullable: true,
168
+ example: null,
169
+ }),
170
+ __metadata("design:type", void 0)
171
+ ], Checks.prototype, "address_postal_code_check", void 0);
172
+ __decorate([
173
+ (0, swagger_1.ApiProperty)({
174
+ description: 'CVC verification check result',
175
+ example: 'pass',
176
+ }),
177
+ __metadata("design:type", String)
178
+ ], Checks.prototype, "cvc_check", void 0);
179
+ class ExtendedAuthorization {
180
+ }
181
+ exports.ExtendedAuthorization = ExtendedAuthorization;
182
+ __decorate([
183
+ (0, swagger_1.ApiProperty)({
184
+ description: 'Status of extended authorization',
185
+ example: 'disabled',
186
+ }),
187
+ __metadata("design:type", String)
188
+ ], ExtendedAuthorization.prototype, "status", void 0);
189
+ class NetworkToken {
190
+ }
191
+ exports.NetworkToken = NetworkToken;
192
+ __decorate([
193
+ (0, swagger_1.ApiProperty)({
194
+ description: 'Whether network token was used',
195
+ type: 'boolean',
196
+ example: false,
197
+ }),
198
+ __metadata("design:type", Boolean)
199
+ ], NetworkToken.prototype, "used", void 0);
200
+ class Overcapture {
201
+ }
202
+ exports.Overcapture = Overcapture;
203
+ __decorate([
204
+ (0, swagger_1.ApiProperty)({
205
+ description: 'Maximum amount that can be captured',
206
+ type: 'number',
207
+ example: 10000,
208
+ }),
209
+ __metadata("design:type", Number)
210
+ ], Overcapture.prototype, "maximum_amount_capturable", void 0);
211
+ __decorate([
212
+ (0, swagger_1.ApiProperty)({
213
+ description: 'Overcapture status',
214
+ example: 'unavailable',
215
+ }),
216
+ __metadata("design:type", String)
217
+ ], Overcapture.prototype, "status", void 0);
218
+ class Card {
219
+ }
220
+ exports.Card = Card;
221
+ __decorate([
222
+ (0, swagger_1.ApiProperty)({
223
+ description: 'Amount authorized on the card',
224
+ type: 'number',
225
+ example: 10000,
226
+ }),
227
+ __metadata("design:type", Number)
228
+ ], Card.prototype, "amount_authorized", void 0);
229
+ __decorate([
230
+ (0, swagger_1.ApiProperty)({
231
+ description: 'Card brand',
232
+ example: 'visa',
233
+ }),
234
+ __metadata("design:type", String)
235
+ ], Card.prototype, "brand", void 0);
236
+ __decorate([
237
+ (0, swagger_1.ApiProperty)({
238
+ description: 'Unix timestamp before which capture must happen',
239
+ type: 'number',
240
+ example: 1673136000,
241
+ }),
242
+ __metadata("design:type", Number)
243
+ ], Card.prototype, "capture_before", void 0);
244
+ __decorate([
245
+ (0, swagger_1.ApiProperty)({
246
+ description: 'Card verification checks',
247
+ type: () => Checks,
248
+ }),
249
+ __metadata("design:type", Checks)
250
+ ], Card.prototype, "checks", void 0);
251
+ __decorate([
252
+ (0, swagger_1.ApiProperty)({
253
+ description: 'Card country of issue',
254
+ example: 'US',
255
+ }),
256
+ __metadata("design:type", String)
257
+ ], Card.prototype, "country", void 0);
258
+ __decorate([
259
+ (0, swagger_1.ApiProperty)({
260
+ description: 'Card expiration month',
261
+ type: 'number',
262
+ example: 12,
263
+ }),
264
+ __metadata("design:type", Number)
265
+ ], Card.prototype, "exp_month", void 0);
266
+ __decorate([
267
+ (0, swagger_1.ApiProperty)({
268
+ description: 'Card expiration year',
269
+ type: 'number',
270
+ example: 2025,
271
+ }),
272
+ __metadata("design:type", Number)
273
+ ], Card.prototype, "exp_year", void 0);
274
+ __decorate([
275
+ (0, swagger_1.ApiProperty)({
276
+ description: 'Extended authorization details',
277
+ type: () => ExtendedAuthorization,
278
+ }),
279
+ __metadata("design:type", ExtendedAuthorization)
280
+ ], Card.prototype, "extended_authorization", void 0);
281
+ __decorate([
282
+ (0, swagger_1.ApiProperty)({
283
+ description: 'Card fingerprint',
284
+ example: 'Qw7kJEAT12ABC123',
285
+ }),
286
+ __metadata("design:type", String)
287
+ ], Card.prototype, "fingerprint", void 0);
288
+ __decorate([
289
+ (0, swagger_1.ApiProperty)({
290
+ description: 'Card funding type',
291
+ example: 'credit',
292
+ }),
293
+ __metadata("design:type", String)
294
+ ], Card.prototype, "funding", void 0);
295
+ __decorate([
296
+ (0, swagger_1.ApiProperty)({
297
+ description: 'Incremental authorization details',
298
+ type: () => ExtendedAuthorization,
299
+ }),
300
+ __metadata("design:type", ExtendedAuthorization)
301
+ ], Card.prototype, "incremental_authorization", void 0);
302
+ __decorate([
303
+ (0, swagger_1.ApiProperty)({
304
+ description: 'Installment details',
305
+ nullable: true,
306
+ example: null,
307
+ }),
308
+ __metadata("design:type", void 0)
309
+ ], Card.prototype, "installments", void 0);
310
+ __decorate([
311
+ (0, swagger_1.ApiProperty)({
312
+ description: 'Last 4 digits of the card',
313
+ example: '4242',
314
+ }),
315
+ __metadata("design:type", String)
316
+ ], Card.prototype, "last4", void 0);
317
+ __decorate([
318
+ (0, swagger_1.ApiProperty)({
319
+ description: 'Mandate details',
320
+ nullable: true,
321
+ example: null,
322
+ }),
323
+ __metadata("design:type", void 0)
324
+ ], Card.prototype, "mandate", void 0);
325
+ __decorate([
326
+ (0, swagger_1.ApiProperty)({
327
+ description: 'Multicapture details',
328
+ type: () => ExtendedAuthorization,
329
+ }),
330
+ __metadata("design:type", ExtendedAuthorization)
331
+ ], Card.prototype, "multicapture", void 0);
332
+ __decorate([
333
+ (0, swagger_1.ApiProperty)({
334
+ description: 'Card network',
335
+ example: 'visa',
336
+ }),
337
+ __metadata("design:type", String)
338
+ ], Card.prototype, "network", void 0);
339
+ __decorate([
340
+ (0, swagger_1.ApiProperty)({
341
+ description: 'Network token details',
342
+ type: () => NetworkToken,
343
+ }),
344
+ __metadata("design:type", NetworkToken)
345
+ ], Card.prototype, "network_token", void 0);
346
+ __decorate([
347
+ (0, swagger_1.ApiProperty)({
348
+ description: 'Overcapture details',
349
+ type: () => Overcapture,
350
+ }),
351
+ __metadata("design:type", Overcapture)
352
+ ], Card.prototype, "overcapture", void 0);
353
+ __decorate([
354
+ (0, swagger_1.ApiProperty)({
355
+ description: '3D Secure details',
356
+ nullable: true,
357
+ example: null,
358
+ }),
359
+ __metadata("design:type", void 0)
360
+ ], Card.prototype, "three_d_secure", void 0);
361
+ __decorate([
362
+ (0, swagger_1.ApiProperty)({
363
+ description: 'Digital wallet details',
364
+ nullable: true,
365
+ example: null,
366
+ }),
367
+ __metadata("design:type", void 0)
368
+ ], Card.prototype, "wallet", void 0);
369
+ class PaymentMethodDetails {
370
+ }
371
+ exports.PaymentMethodDetails = PaymentMethodDetails;
372
+ __decorate([
373
+ (0, swagger_1.ApiProperty)({
374
+ description: 'Card payment details',
375
+ type: () => Card,
376
+ }),
377
+ __metadata("design:type", Card)
378
+ ], PaymentMethodDetails.prototype, "card", void 0);
379
+ __decorate([
380
+ (0, swagger_1.ApiProperty)({
381
+ description: 'Payment method type',
382
+ example: 'card',
383
+ }),
384
+ __metadata("design:type", String)
385
+ ], PaymentMethodDetails.prototype, "type", void 0);
386
+ class TransferData {
387
+ }
388
+ exports.TransferData = TransferData;
389
+ __decorate([
390
+ (0, swagger_1.ApiProperty)({
391
+ description: 'Transfer amount',
392
+ nullable: true,
393
+ example: null,
394
+ }),
395
+ __metadata("design:type", void 0)
396
+ ], TransferData.prototype, "amount", void 0);
397
+ __decorate([
398
+ (0, swagger_1.ApiProperty)({
399
+ description: 'Transfer destination account',
400
+ example: 'acct_1234567890',
401
+ }),
402
+ __metadata("design:type", String)
403
+ ], TransferData.prototype, "destination", void 0);
404
+ class ChargeEventBody {
405
+ }
406
+ exports.ChargeEventBody = ChargeEventBody;
407
+ __decorate([
408
+ (0, swagger_1.ApiProperty)({
409
+ description: 'Callback data with external payment request and order ID',
410
+ allOf: [
411
+ { $ref: '#/components/schemas/ExternalPaymentRequest' },
412
+ {
413
+ type: 'object',
414
+ properties: {
415
+ externalOrderId: { type: 'string' },
416
+ },
417
+ },
418
+ ],
419
+ }),
420
+ __metadata("design:type", Object)
421
+ ], ChargeEventBody.prototype, "callbackData", void 0);
422
+ __decorate([
423
+ (0, swagger_1.ApiProperty)({
424
+ description: 'Stripe charge ID',
425
+ example: 'ch_1234567890',
426
+ }),
427
+ __metadata("design:type", String)
428
+ ], ChargeEventBody.prototype, "id", void 0);
429
+ __decorate([
430
+ (0, swagger_1.ApiProperty)({
431
+ description: 'Object type',
432
+ example: 'charge',
433
+ }),
434
+ __metadata("design:type", String)
435
+ ], ChargeEventBody.prototype, "object", void 0);
436
+ __decorate([
437
+ (0, swagger_1.ApiProperty)({
438
+ description: 'Whether this is a live mode charge',
439
+ type: 'boolean',
440
+ example: true,
441
+ }),
442
+ __metadata("design:type", Boolean)
443
+ ], ChargeEventBody.prototype, "livemode", void 0);
444
+ __decorate([
445
+ (0, swagger_1.ApiProperty)({
446
+ description: 'Payment intent ID',
447
+ example: 'pi_1234567890',
448
+ }),
449
+ __metadata("design:type", String)
450
+ ], ChargeEventBody.prototype, "payment_intent", void 0);
451
+ __decorate([
452
+ (0, swagger_1.ApiProperty)({
453
+ description: 'Charge status',
454
+ example: 'succeeded',
455
+ }),
456
+ __metadata("design:type", String)
457
+ ], ChargeEventBody.prototype, "status", void 0);
458
+ __decorate([
459
+ (0, swagger_1.ApiProperty)({
460
+ description: 'Charge amount in cents',
461
+ type: 'number',
462
+ example: 10000,
463
+ }),
464
+ __metadata("design:type", Number)
465
+ ], ChargeEventBody.prototype, "amount", void 0);
466
+ __decorate([
467
+ (0, swagger_1.ApiProperty)({
468
+ description: 'Amount captured in cents',
469
+ type: 'number',
470
+ example: 10000,
471
+ }),
472
+ __metadata("design:type", Number)
473
+ ], ChargeEventBody.prototype, "amount_captured", void 0);
474
+ __decorate([
475
+ (0, swagger_1.ApiProperty)({
476
+ description: 'Amount refunded in cents',
477
+ type: 'number',
478
+ example: 0,
479
+ }),
480
+ __metadata("design:type", Number)
481
+ ], ChargeEventBody.prototype, "amount_refunded", void 0);
482
+ __decorate([
483
+ (0, swagger_1.ApiProperty)({
484
+ description: 'Application ID',
485
+ nullable: true,
486
+ example: null,
487
+ }),
488
+ __metadata("design:type", void 0)
489
+ ], ChargeEventBody.prototype, "application", void 0);
490
+ __decorate([
491
+ (0, swagger_1.ApiProperty)({
492
+ description: 'Application fee ID',
493
+ nullable: true,
494
+ example: null,
495
+ }),
496
+ __metadata("design:type", void 0)
497
+ ], ChargeEventBody.prototype, "application_fee", void 0);
498
+ __decorate([
499
+ (0, swagger_1.ApiProperty)({
500
+ description: 'Application fee amount',
501
+ type: 'number',
502
+ example: 0,
503
+ }),
504
+ __metadata("design:type", Number)
505
+ ], ChargeEventBody.prototype, "application_fee_amount", void 0);
506
+ __decorate([
507
+ (0, swagger_1.ApiProperty)({
508
+ description: 'Balance transaction ID',
509
+ nullable: true,
510
+ example: null,
511
+ }),
512
+ __metadata("design:type", void 0)
513
+ ], ChargeEventBody.prototype, "balance_transaction", void 0);
514
+ __decorate([
515
+ (0, swagger_1.ApiProperty)({
516
+ description: 'Billing details',
517
+ type: () => BillingDetails,
518
+ }),
519
+ __metadata("design:type", BillingDetails)
520
+ ], ChargeEventBody.prototype, "billing_details", void 0);
521
+ __decorate([
522
+ (0, swagger_1.ApiProperty)({
523
+ description: 'Calculated statement descriptor',
524
+ example: 'XOXNO MARKETPLACE',
525
+ }),
526
+ __metadata("design:type", String)
527
+ ], ChargeEventBody.prototype, "calculated_statement_descriptor", void 0);
528
+ __decorate([
529
+ (0, swagger_1.ApiProperty)({
530
+ description: 'Whether the charge was captured',
531
+ type: 'boolean',
532
+ example: true,
533
+ }),
534
+ __metadata("design:type", Boolean)
535
+ ], ChargeEventBody.prototype, "captured", void 0);
536
+ __decorate([
537
+ (0, swagger_1.ApiProperty)({
538
+ description: 'Unix timestamp when charge was created',
539
+ type: 'number',
540
+ example: 1672531200,
541
+ }),
542
+ __metadata("design:type", Number)
543
+ ], ChargeEventBody.prototype, "created", void 0);
544
+ __decorate([
545
+ (0, swagger_1.ApiProperty)({
546
+ description: 'Currency code',
547
+ example: 'usd',
548
+ }),
549
+ __metadata("design:type", String)
550
+ ], ChargeEventBody.prototype, "currency", void 0);
551
+ __decorate([
552
+ (0, swagger_1.ApiProperty)({
553
+ description: 'Customer ID',
554
+ nullable: true,
555
+ example: null,
556
+ }),
557
+ __metadata("design:type", void 0)
558
+ ], ChargeEventBody.prototype, "customer", void 0);
559
+ __decorate([
560
+ (0, swagger_1.ApiProperty)({
561
+ description: 'Charge description',
562
+ example: 'NFT Purchase',
563
+ }),
564
+ __metadata("design:type", String)
565
+ ], ChargeEventBody.prototype, "description", void 0);
566
+ __decorate([
567
+ (0, swagger_1.ApiProperty)({
568
+ description: 'Destination account for direct charges',
569
+ example: 'acct_1234567890',
570
+ }),
571
+ __metadata("design:type", String)
572
+ ], ChargeEventBody.prototype, "destination", void 0);
573
+ __decorate([
574
+ (0, swagger_1.ApiProperty)({
575
+ description: 'Dispute ID',
576
+ nullable: true,
577
+ example: null,
578
+ }),
579
+ __metadata("design:type", void 0)
580
+ ], ChargeEventBody.prototype, "dispute", void 0);
581
+ __decorate([
582
+ (0, swagger_1.ApiProperty)({
583
+ description: 'Whether the charge is disputed',
584
+ type: 'boolean',
585
+ example: false,
586
+ }),
587
+ __metadata("design:type", Boolean)
588
+ ], ChargeEventBody.prototype, "disputed", void 0);
589
+ __decorate([
590
+ (0, swagger_1.ApiProperty)({
591
+ description: 'Failure balance transaction',
592
+ nullable: true,
593
+ example: null,
594
+ }),
595
+ __metadata("design:type", void 0)
596
+ ], ChargeEventBody.prototype, "failure_balance_transaction", void 0);
597
+ __decorate([
598
+ (0, swagger_1.ApiProperty)({
599
+ description: 'Failure code',
600
+ nullable: true,
601
+ example: null,
602
+ }),
603
+ __metadata("design:type", void 0)
604
+ ], ChargeEventBody.prototype, "failure_code", void 0);
605
+ __decorate([
606
+ (0, swagger_1.ApiProperty)({
607
+ description: 'Failure message',
608
+ nullable: true,
609
+ example: null,
610
+ }),
611
+ __metadata("design:type", void 0)
612
+ ], ChargeEventBody.prototype, "failure_message", void 0);
613
+ __decorate([
614
+ (0, swagger_1.ApiProperty)({
615
+ description: 'Fraud details',
616
+ type: () => FraudDetails,
617
+ }),
618
+ __metadata("design:type", FraudDetails)
619
+ ], ChargeEventBody.prototype, "fraud_details", void 0);
620
+ __decorate([
621
+ (0, swagger_1.ApiProperty)({
622
+ description: 'Invoice ID',
623
+ nullable: true,
624
+ example: null,
625
+ }),
626
+ __metadata("design:type", void 0)
627
+ ], ChargeEventBody.prototype, "invoice", void 0);
628
+ __decorate([
629
+ (0, swagger_1.ApiProperty)({
630
+ description: 'Charge metadata',
631
+ example: {
632
+ externalOrderId: 'ORDER_123456',
633
+ payload: '{"custom": "data"}',
634
+ },
635
+ properties: {
636
+ externalOrderId: { type: 'string' },
637
+ payload: { type: 'string' },
638
+ },
639
+ }),
640
+ __metadata("design:type", Object)
641
+ ], ChargeEventBody.prototype, "metadata", void 0);
642
+ __decorate([
643
+ (0, swagger_1.ApiProperty)({
644
+ description: 'On behalf of account',
645
+ nullable: true,
646
+ example: null,
647
+ }),
648
+ __metadata("design:type", void 0)
649
+ ], ChargeEventBody.prototype, "on_behalf_of", void 0);
650
+ __decorate([
651
+ (0, swagger_1.ApiProperty)({
652
+ description: 'Order ID',
653
+ nullable: true,
654
+ example: null,
655
+ }),
656
+ __metadata("design:type", void 0)
657
+ ], ChargeEventBody.prototype, "order", void 0);
658
+ __decorate([
659
+ (0, swagger_1.ApiProperty)({
660
+ description: 'Charge outcome details',
661
+ type: () => Outcome,
662
+ }),
663
+ __metadata("design:type", Outcome)
664
+ ], ChargeEventBody.prototype, "outcome", void 0);
665
+ __decorate([
666
+ (0, swagger_1.ApiProperty)({
667
+ description: 'Whether the charge was paid',
668
+ type: 'boolean',
669
+ example: true,
670
+ }),
671
+ __metadata("design:type", Boolean)
672
+ ], ChargeEventBody.prototype, "paid", void 0);
673
+ __decorate([
674
+ (0, swagger_1.ApiProperty)({
675
+ description: 'Payment method ID',
676
+ example: 'pm_1234567890',
677
+ }),
678
+ __metadata("design:type", String)
679
+ ], ChargeEventBody.prototype, "payment_method", void 0);
680
+ __decorate([
681
+ (0, swagger_1.ApiProperty)({
682
+ description: 'Payment method details',
683
+ type: () => PaymentMethodDetails,
684
+ }),
685
+ __metadata("design:type", PaymentMethodDetails)
686
+ ], ChargeEventBody.prototype, "payment_method_details", void 0);
687
+ __decorate([
688
+ (0, swagger_1.ApiProperty)({
689
+ description: 'Radar options',
690
+ type: () => FraudDetails,
691
+ }),
692
+ __metadata("design:type", FraudDetails)
693
+ ], ChargeEventBody.prototype, "radar_options", void 0);
694
+ __decorate([
695
+ (0, swagger_1.ApiProperty)({
696
+ description: 'Receipt email address',
697
+ example: 'customer@example.com',
698
+ }),
699
+ __metadata("design:type", String)
700
+ ], ChargeEventBody.prototype, "receipt_email", void 0);
701
+ __decorate([
702
+ (0, swagger_1.ApiProperty)({
703
+ description: 'Receipt number',
704
+ nullable: true,
705
+ example: null,
706
+ }),
707
+ __metadata("design:type", void 0)
708
+ ], ChargeEventBody.prototype, "receipt_number", void 0);
709
+ __decorate([
710
+ (0, swagger_1.ApiProperty)({
711
+ description: 'Receipt URL',
712
+ example: 'https://pay.stripe.com/receipts/...',
713
+ }),
714
+ __metadata("design:type", String)
715
+ ], ChargeEventBody.prototype, "receipt_url", void 0);
716
+ __decorate([
717
+ (0, swagger_1.ApiProperty)({
718
+ description: 'Whether the charge was refunded',
719
+ type: 'boolean',
720
+ example: false,
721
+ }),
722
+ __metadata("design:type", Boolean)
723
+ ], ChargeEventBody.prototype, "refunded", void 0);
724
+ __decorate([
725
+ (0, swagger_1.ApiProperty)({
726
+ description: 'Review ID',
727
+ nullable: true,
728
+ example: null,
729
+ }),
730
+ __metadata("design:type", void 0)
731
+ ], ChargeEventBody.prototype, "review", void 0);
732
+ __decorate([
733
+ (0, swagger_1.ApiProperty)({
734
+ description: 'Shipping details',
735
+ nullable: true,
736
+ example: null,
737
+ }),
738
+ __metadata("design:type", void 0)
739
+ ], ChargeEventBody.prototype, "shipping", void 0);
740
+ __decorate([
741
+ (0, swagger_1.ApiProperty)({
742
+ description: 'Source ID',
743
+ nullable: true,
744
+ example: null,
745
+ }),
746
+ __metadata("design:type", void 0)
747
+ ], ChargeEventBody.prototype, "source", void 0);
748
+ __decorate([
749
+ (0, swagger_1.ApiProperty)({
750
+ description: 'Source transfer ID',
751
+ nullable: true,
752
+ example: null,
753
+ }),
754
+ __metadata("design:type", void 0)
755
+ ], ChargeEventBody.prototype, "source_transfer", void 0);
756
+ __decorate([
757
+ (0, swagger_1.ApiProperty)({
758
+ description: 'Statement descriptor',
759
+ nullable: true,
760
+ example: null,
761
+ }),
762
+ __metadata("design:type", void 0)
763
+ ], ChargeEventBody.prototype, "statement_descriptor", void 0);
764
+ __decorate([
765
+ (0, swagger_1.ApiProperty)({
766
+ description: 'Statement descriptor suffix',
767
+ nullable: true,
768
+ example: null,
769
+ }),
770
+ __metadata("design:type", void 0)
771
+ ], ChargeEventBody.prototype, "statement_descriptor_suffix", void 0);
772
+ __decorate([
773
+ (0, swagger_1.ApiProperty)({
774
+ description: 'Transfer data',
775
+ type: () => TransferData,
776
+ }),
777
+ __metadata("design:type", TransferData)
778
+ ], ChargeEventBody.prototype, "transfer_data", void 0);
779
+ __decorate([
780
+ (0, swagger_1.ApiProperty)({
781
+ description: 'Transfer group',
782
+ example: 'group_123456',
783
+ }),
784
+ __metadata("design:type", String)
785
+ ], ChargeEventBody.prototype, "transfer_group", void 0);