@xoxno/types 1.0.193 → 1.0.195

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 (88) 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.js +47 -10
  4. package/dist/common/kusto/volume-graph.js +47 -8
  5. package/dist/common/kusto/wallet-stats.js +153 -29
  6. package/dist/common/statistics.js +54 -11
  7. package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +85 -0
  8. package/dist/cosmos-db/documents/chat/user-block.doc.js +76 -0
  9. package/dist/cosmos-db/documents/chat/user-conversation.doc.js +115 -0
  10. package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +5 -5
  11. package/dist/cosmos-db/documents/collection/collectionConfig.js +87 -1
  12. package/dist/cosmos-db/documents/collection/globalOffer.js +37 -0
  13. package/dist/cosmos-db/documents/collection/mintProfile.js +45 -2
  14. package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +4 -5
  15. package/dist/cosmos-db/documents/external-payment/binance-hook.js +216 -0
  16. package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +218 -0
  17. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +71 -71
  18. package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +783 -0
  19. package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +1 -1
  20. package/dist/cosmos-db/documents/external-payment/twispay-cart.js +75 -0
  21. package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +1 -2
  22. package/dist/cosmos-db/documents/external-payment/twispay-customer.js +102 -0
  23. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +1 -1
  24. package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +98 -0
  25. package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +1 -1
  26. package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +116 -1
  27. package/dist/cosmos-db/documents/lending/lending-account-profile.js +21 -0
  28. package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +15 -0
  29. package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +21 -0
  30. package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +49 -0
  31. package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +21 -0
  32. package/dist/cosmos-db/documents/notification/notification.doc.js +108 -0
  33. package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +89 -0
  34. package/dist/cosmos-db/documents/staking/staking-pool-doc.js +274 -0
  35. package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +24 -0
  36. package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
  37. package/dist/cosmos-db/documents/ticketing/event-location.js +24 -0
  38. package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +14 -0
  39. package/dist/cosmos-db/documents/ticketing/event-question.doc.js +7 -0
  40. package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
  41. package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +7 -0
  42. package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +14 -0
  43. package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +14 -0
  44. package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +16 -0
  45. package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +7 -0
  46. package/dist/cosmos-db/documents/token/nft-details.doc.js +18 -5
  47. package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +59 -0
  48. package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +40 -0
  49. package/dist/cosmos-db/documents/token/nft-metadata.js +9 -0
  50. package/dist/cosmos-db/documents/token/nft-sale-info.js +89 -17
  51. package/dist/cosmos-db/documents/token/sft-owner-doc.js +86 -0
  52. package/dist/cosmos-db/documents/user/user-favorite.doc.js +67 -0
  53. package/dist/entities/airdrop/airdrop.dto.js +77 -0
  54. package/dist/entities/auth/login-request.dto.js +7 -0
  55. package/dist/entities/delegation-data/delegation-data-output.js +106 -0
  56. package/dist/entities/mvx-built-in/account-on-network.js +124 -0
  57. package/dist/entities/mvx-built-in/esdt-token.js +187 -0
  58. package/dist/entities/mvx-built-in/mvx-guardian.d.ts +5 -6
  59. package/dist/entities/mvx-built-in/mvx-guardian.js +67 -8
  60. package/dist/entities/notification-data/device-tag-storage.doc.js +79 -11
  61. package/dist/entities/notification-data/push-notification.doc.js +147 -25
  62. package/dist/entities/notification-data/tag-priority.d.ts +1 -1
  63. package/dist/entities/notification-data/tag-priority.js +57 -1
  64. package/dist/entities/search-data/filter-query.dto.js +32 -0
  65. package/dist/entities/staking-data/staking-creator.doc.js +38 -6
  66. package/dist/entities/staking-data/staking-explore.js +26 -5
  67. package/dist/entities/staking-data/user-staking-summary.dto.js +18 -0
  68. package/dist/entities/token-data/metrics.js +192 -38
  69. package/dist/entities/token-data/token-data.doc.js +84 -18
  70. package/dist/entities/transactions/smart-contract-result.js +138 -0
  71. package/dist/entities/transactions/transaction-detailed.js +44 -0
  72. package/dist/entities/transactions/transaction-log-event.js +52 -0
  73. package/dist/entities/transactions/transaction-log.js +51 -0
  74. package/dist/entities/transactions/transaction-operation.js +115 -0
  75. package/dist/entities/transactions/transaction-receipt.js +34 -0
  76. package/dist/entities/transactions/transaction.js +194 -0
  77. package/dist/entities/web2user-data/success.dto.js +18 -0
  78. package/dist/requests/bober-battle/analytics.js +187 -0
  79. package/dist/requests/collection/collection-attributes-map.js +123 -0
  80. package/dist/requests/collection/shareholder.dto.js +30 -0
  81. package/dist/requests/lending/lending-indexes.dto.js +74 -0
  82. package/dist/requests/lending/lending-token-price.dto.js +18 -0
  83. package/dist/requests/nft-activity-data/nft-activity-data.js +168 -0
  84. package/dist/requests/nft-data/nft-doc.filter.js +2 -0
  85. package/dist/requests/nft-data/nft-offer-doc.filter.js +11 -0
  86. package/dist/requests/nft-data/sign-data.dto.js +10 -2
  87. package/dist/requests/user-data/token-inventory.js +10 -0
  88. package/package.json +1 -1
@@ -1,2 +1,218 @@
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.BinanceRequestParameters = exports.BinanceNotificationData = exports.PaymentInfo = exports.PaymentInstruction = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const binance_enum_1 = require("../../../enums/binance.enum");
15
+ class PaymentInstruction {
16
+ }
17
+ exports.PaymentInstruction = PaymentInstruction;
18
+ __decorate([
19
+ (0, swagger_1.ApiProperty)({
20
+ description: 'Currency code for the payment instruction',
21
+ example: 'USD',
22
+ }),
23
+ __metadata("design:type", String)
24
+ ], PaymentInstruction.prototype, "currency", void 0);
25
+ __decorate([
26
+ (0, swagger_1.ApiProperty)({
27
+ description: 'Amount for this payment instruction',
28
+ type: 'number',
29
+ example: 100.0,
30
+ }),
31
+ __metadata("design:type", Number)
32
+ ], PaymentInstruction.prototype, "amount", void 0);
33
+ __decorate([
34
+ (0, swagger_1.ApiProperty)({
35
+ description: 'Price for this payment instruction',
36
+ type: 'number',
37
+ example: 50.0,
38
+ }),
39
+ __metadata("design:type", Number)
40
+ ], PaymentInstruction.prototype, "price", void 0);
41
+ class PaymentInfo {
42
+ }
43
+ exports.PaymentInfo = PaymentInfo;
44
+ __decorate([
45
+ (0, swagger_1.ApiProperty)({
46
+ description: 'ID of the payer',
47
+ type: 'number',
48
+ example: 123456789,
49
+ }),
50
+ __metadata("design:type", Number)
51
+ ], PaymentInfo.prototype, "payerId", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiProperty)({
54
+ description: 'Payment method used',
55
+ example: 'CARD',
56
+ }),
57
+ __metadata("design:type", String)
58
+ ], PaymentInfo.prototype, "payMethod", void 0);
59
+ __decorate([
60
+ (0, swagger_1.ApiProperty)({
61
+ description: 'Array of payment instructions',
62
+ type: [PaymentInstruction],
63
+ isArray: true,
64
+ }),
65
+ __metadata("design:type", Array)
66
+ ], PaymentInfo.prototype, "paymentInstructions", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiPropertyOptional)({
69
+ description: 'Payment channel',
70
+ example: 'ONLINE',
71
+ }),
72
+ __metadata("design:type", String)
73
+ ], PaymentInfo.prototype, "channel", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiPropertyOptional)({
76
+ description: 'Payment sub-channel',
77
+ example: 'WEB',
78
+ }),
79
+ __metadata("design:type", String)
80
+ ], PaymentInfo.prototype, "subChannel", void 0);
81
+ class BinanceNotificationData {
82
+ }
83
+ exports.BinanceNotificationData = BinanceNotificationData;
84
+ __decorate([
85
+ (0, swagger_1.ApiProperty)({
86
+ description: 'Merchant trade number',
87
+ example: 'TRADE_123456789',
88
+ }),
89
+ __metadata("design:type", String)
90
+ ], BinanceNotificationData.prototype, "merchantTradeNo", void 0);
91
+ __decorate([
92
+ (0, swagger_1.ApiProperty)({
93
+ description: 'Type of product',
94
+ example: 'NFT',
95
+ }),
96
+ __metadata("design:type", String)
97
+ ], BinanceNotificationData.prototype, "productType", void 0);
98
+ __decorate([
99
+ (0, swagger_1.ApiProperty)({
100
+ description: 'Name of the product',
101
+ example: 'Exclusive NFT Collection',
102
+ }),
103
+ __metadata("design:type", String)
104
+ ], BinanceNotificationData.prototype, "productName", void 0);
105
+ __decorate([
106
+ (0, swagger_1.ApiProperty)({
107
+ description: 'Transaction time as Unix timestamp',
108
+ type: 'number',
109
+ example: 1672531200,
110
+ }),
111
+ __metadata("design:type", Number)
112
+ ], BinanceNotificationData.prototype, "transactTime", void 0);
113
+ __decorate([
114
+ (0, swagger_1.ApiProperty)({
115
+ description: 'Type of trade',
116
+ example: 'BUY',
117
+ }),
118
+ __metadata("design:type", String)
119
+ ], BinanceNotificationData.prototype, "tradeType", void 0);
120
+ __decorate([
121
+ (0, swagger_1.ApiProperty)({
122
+ description: 'Total fee amount',
123
+ type: 'number',
124
+ example: 105.5,
125
+ }),
126
+ __metadata("design:type", Number)
127
+ ], BinanceNotificationData.prototype, "totalFee", void 0);
128
+ __decorate([
129
+ (0, swagger_1.ApiProperty)({
130
+ description: 'Currency code',
131
+ example: 'USD',
132
+ }),
133
+ __metadata("design:type", String)
134
+ ], BinanceNotificationData.prototype, "currency", void 0);
135
+ __decorate([
136
+ (0, swagger_1.ApiPropertyOptional)({
137
+ description: 'Transaction ID from Binance',
138
+ example: 'TXN_987654321',
139
+ }),
140
+ __metadata("design:type", String)
141
+ ], BinanceNotificationData.prototype, "transactionId", void 0);
142
+ __decorate([
143
+ (0, swagger_1.ApiPropertyOptional)({
144
+ description: 'Open user ID',
145
+ example: 'USER_123456',
146
+ }),
147
+ __metadata("design:type", String)
148
+ ], BinanceNotificationData.prototype, "openUserId", void 0);
149
+ __decorate([
150
+ (0, swagger_1.ApiPropertyOptional)({
151
+ description: 'Pass-through information',
152
+ example: '{"metadata": "custom data"}',
153
+ }),
154
+ __metadata("design:type", String)
155
+ ], BinanceNotificationData.prototype, "passThroughInfo", void 0);
156
+ __decorate([
157
+ (0, swagger_1.ApiProperty)({
158
+ description: 'Commission amount',
159
+ type: 'number',
160
+ example: 5.25,
161
+ }),
162
+ __metadata("design:type", Number)
163
+ ], BinanceNotificationData.prototype, "commission", void 0);
164
+ __decorate([
165
+ (0, swagger_1.ApiPropertyOptional)({
166
+ description: 'Payment information details',
167
+ type: () => PaymentInfo,
168
+ }),
169
+ __metadata("design:type", PaymentInfo)
170
+ ], BinanceNotificationData.prototype, "paymentInfo", void 0);
171
+ class BinanceRequestParameters {
172
+ }
173
+ exports.BinanceRequestParameters = BinanceRequestParameters;
174
+ __decorate([
175
+ (0, swagger_1.ApiProperty)({
176
+ description: 'Business type for the Binance request',
177
+ enum: binance_enum_1.BinanceBizType,
178
+ enumName: 'BinanceBizType',
179
+ }),
180
+ __metadata("design:type", String)
181
+ ], BinanceRequestParameters.prototype, "bizType", void 0);
182
+ __decorate([
183
+ (0, swagger_1.ApiProperty)({
184
+ description: 'Business ID',
185
+ type: 'number',
186
+ example: 123456789,
187
+ }),
188
+ __metadata("design:type", Number)
189
+ ], BinanceRequestParameters.prototype, "bizId", void 0);
190
+ __decorate([
191
+ (0, swagger_1.ApiProperty)({
192
+ description: 'Business ID as string',
193
+ example: '123456789',
194
+ }),
195
+ __metadata("design:type", String)
196
+ ], BinanceRequestParameters.prototype, "bizIdStr", void 0);
197
+ __decorate([
198
+ (0, swagger_1.ApiProperty)({
199
+ description: 'Business status',
200
+ enum: binance_enum_1.BinanceBizStatus,
201
+ enumName: 'BinanceBizStatus',
202
+ }),
203
+ __metadata("design:type", String)
204
+ ], BinanceRequestParameters.prototype, "bizStatus", void 0);
205
+ __decorate([
206
+ (0, swagger_1.ApiProperty)({
207
+ description: 'JSON string representation of NotificationData',
208
+ example: '{"merchantTradeNo": "TRADE_123", "productType": "NFT"}',
209
+ }),
210
+ __metadata("design:type", String)
211
+ ], BinanceRequestParameters.prototype, "data", void 0);
212
+ __decorate([
213
+ (0, swagger_1.ApiPropertyOptional)({
214
+ description: 'Child attribute containing notification data',
215
+ type: () => BinanceNotificationData,
216
+ }),
217
+ __metadata("design:type", BinanceNotificationData)
218
+ ], BinanceRequestParameters.prototype, "childAttribute", void 0);
@@ -1,6 +1,19 @@
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 });
3
12
  exports.ExternalPayment = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const external_payment_status_enum_1 = require("../../../enums/external-payment-status.enum");
15
+ const payment_provider_enum_1 = require("../../../enums/payment-provider.enum");
16
+ const purchase_type_enum_1 = require("../../../enums/purchase-type.enum");
4
17
  class ExternalPayment {
5
18
  constructor(props) {
6
19
  Object.assign(this, props);
@@ -8,3 +21,208 @@ class ExternalPayment {
8
21
  }
9
22
  }
10
23
  exports.ExternalPayment = ExternalPayment;
24
+ __decorate([
25
+ (0, swagger_1.ApiProperty)({
26
+ description: 'Internal status of the external payment',
27
+ enum: external_payment_status_enum_1.ExternalPaymentInternalStatus,
28
+ enumName: 'ExternalPaymentInternalStatus',
29
+ example: external_payment_status_enum_1.ExternalPaymentInternalStatus.GeneratePaymentForm,
30
+ }),
31
+ __metadata("design:type", String)
32
+ ], ExternalPayment.prototype, "internalStatus", void 0);
33
+ __decorate([
34
+ (0, swagger_1.ApiProperty)({
35
+ description: 'Wallet address of the user making the payment',
36
+ example: 'erd1qqqqqqqqqqqqqpgqvkm5elqdlpqwlpgdcklhds8u04rn3sf0n0ys5xw6u5',
37
+ }),
38
+ __metadata("design:type", String)
39
+ ], ExternalPayment.prototype, "address", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({
42
+ description: 'Type of purchase being made',
43
+ enum: purchase_type_enum_1.PurchaseType,
44
+ enumName: 'PurchaseType',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ExternalPayment.prototype, "purchaseType", void 0);
48
+ __decorate([
49
+ (0, swagger_1.ApiProperty)({
50
+ description: 'Details of the purchase including pricing and item information',
51
+ example: {
52
+ name: 'Exclusive NFT Collection',
53
+ currency: 'USD',
54
+ amount: 100.0,
55
+ egldFiatPrice: 50.0,
56
+ egldPrice: 2.0,
57
+ quantity: 1,
58
+ collection: 'COLLECTION-abc123',
59
+ description: 'Premium digital collectible',
60
+ identifier: 'NFT-001',
61
+ },
62
+ properties: {
63
+ name: { type: 'string', description: 'Name of the item being purchased' },
64
+ currency: {
65
+ type: 'string',
66
+ description: 'Currency code (e.g., USD, EUR)',
67
+ },
68
+ amount: {
69
+ type: 'number',
70
+ description: 'Total payment amount in specified currency including taxes',
71
+ },
72
+ egldFiatPrice: {
73
+ type: 'number',
74
+ description: 'EGLD price in the specified fiat currency',
75
+ required: false,
76
+ },
77
+ egldPrice: {
78
+ type: 'number',
79
+ description: 'Payment amount in EGLD',
80
+ required: false,
81
+ },
82
+ quantity: {
83
+ type: 'number',
84
+ description: 'Number of items being purchased',
85
+ },
86
+ collection: { type: 'string', description: 'Collection identifier' },
87
+ description: {
88
+ type: 'string',
89
+ description: 'Description of the purchase',
90
+ },
91
+ identifier: {
92
+ type: 'string',
93
+ description: 'Unique identifier for the item',
94
+ required: false,
95
+ },
96
+ },
97
+ }),
98
+ __metadata("design:type", Object)
99
+ ], ExternalPayment.prototype, "purchaseDetails", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiProperty)({
102
+ description: 'Custom data specific to the purchase type',
103
+ oneOf: [
104
+ { $ref: '#/components/schemas/MarketplaceCustomData' },
105
+ { $ref: '#/components/schemas/LaunchpadCustomData' },
106
+ { $ref: '#/components/schemas/TwispayEventTicketCustomData' },
107
+ ],
108
+ }),
109
+ __metadata("design:type", Object)
110
+ ], ExternalPayment.prototype, "requestData", void 0);
111
+ __decorate([
112
+ (0, swagger_1.ApiProperty)({
113
+ description: 'Payment provider used for this transaction',
114
+ enum: payment_provider_enum_1.PaymentProvider,
115
+ enumName: 'PaymentProvider',
116
+ }),
117
+ __metadata("design:type", String)
118
+ ], ExternalPayment.prototype, "paymentProvider", void 0);
119
+ __decorate([
120
+ (0, swagger_1.ApiProperty)({
121
+ description: 'Details from the payment provider',
122
+ example: {
123
+ externalOrderId: 'order_123456',
124
+ transactionId: 'txn_789012',
125
+ transactionStatus: 'completed',
126
+ customerId: 'cust_abc123',
127
+ siteId: 12345,
128
+ },
129
+ properties: {
130
+ externalOrderId: {
131
+ type: 'string',
132
+ description: 'External order ID from payment provider',
133
+ required: false,
134
+ },
135
+ transactionId: {
136
+ type: 'string',
137
+ description: 'Transaction ID from payment provider',
138
+ required: false,
139
+ },
140
+ transactionStatus: {
141
+ type: 'string',
142
+ description: 'Status of the transaction',
143
+ required: false,
144
+ },
145
+ customerId: {
146
+ type: 'string',
147
+ description: 'Customer ID (Twispay specific)',
148
+ required: false,
149
+ },
150
+ siteId: {
151
+ type: 'number',
152
+ description: 'Site ID (Twispay specific)',
153
+ required: false,
154
+ },
155
+ },
156
+ }),
157
+ __metadata("design:type", Object)
158
+ ], ExternalPayment.prototype, "paymentProviderDetails", void 0);
159
+ __decorate([
160
+ (0, swagger_1.ApiPropertyOptional)({
161
+ description: 'Customer details for the payment',
162
+ example: {
163
+ email: 'customer@example.com',
164
+ },
165
+ properties: {
166
+ email: {
167
+ type: 'string',
168
+ description: 'Customer email address',
169
+ required: false,
170
+ },
171
+ },
172
+ }),
173
+ __metadata("design:type", Object)
174
+ ], ExternalPayment.prototype, "customerDetails", void 0);
175
+ __decorate([
176
+ (0, swagger_1.ApiPropertyOptional)({
177
+ description: 'Blockchain transaction details',
178
+ example: {
179
+ txHash: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
180
+ status: 'success',
181
+ },
182
+ properties: {
183
+ txHash: { type: 'string', description: 'Blockchain transaction hash' },
184
+ status: { type: 'string', description: 'Transaction status on chain' },
185
+ },
186
+ }),
187
+ __metadata("design:type", Object)
188
+ ], ExternalPayment.prototype, "chainDetails", void 0);
189
+ __decorate([
190
+ (0, swagger_1.ApiProperty)({
191
+ description: 'Unix timestamp when the payment was created',
192
+ type: 'number',
193
+ example: 1672531200,
194
+ }),
195
+ __metadata("design:type", Number)
196
+ ], ExternalPayment.prototype, "timestamp", void 0);
197
+ __decorate([
198
+ (0, swagger_1.ApiPropertyOptional)({
199
+ description: 'Time to live in seconds, set only on form creation',
200
+ type: 'number',
201
+ example: 3600,
202
+ }),
203
+ __metadata("design:type", Number)
204
+ ], ExternalPayment.prototype, "ttl", void 0);
205
+ __decorate([
206
+ (0, swagger_1.ApiProperty)({
207
+ description: 'Unique identifier for the payment document',
208
+ type: 'string',
209
+ example: 'payment_123456789',
210
+ }),
211
+ __metadata("design:type", String)
212
+ ], ExternalPayment.prototype, "id", void 0);
213
+ __decorate([
214
+ (0, swagger_1.ApiProperty)({
215
+ description: 'Partition key for Cosmos DB (typically the address)',
216
+ type: 'string',
217
+ example: 'erd1qqqqqqqqqqqqqpgqvkm5elqdlpqwlpgdcklhds8u04rn3sf0n0ys5xw6u5',
218
+ }),
219
+ __metadata("design:type", String)
220
+ ], ExternalPayment.prototype, "pk", void 0);
221
+ __decorate([
222
+ (0, swagger_1.ApiProperty)({
223
+ description: 'Cosmos DB timestamp',
224
+ type: 'number',
225
+ example: 1672531200,
226
+ }),
227
+ __metadata("design:type", Number)
228
+ ], ExternalPayment.prototype, "_ts", void 0);
@@ -1,5 +1,75 @@
1
1
  import { ExternalPaymentRequest } from './external-payment-request';
2
- export interface ChargeEventBody {
2
+ export declare class Address {
3
+ city: null;
4
+ country: string;
5
+ line1: null;
6
+ line2: null;
7
+ postal_code: null;
8
+ state: null;
9
+ }
10
+ export declare class BillingDetails {
11
+ address: Address;
12
+ email: string;
13
+ name: string;
14
+ phone: null;
15
+ }
16
+ export declare class FraudDetails {
17
+ test: string;
18
+ }
19
+ export declare class Outcome {
20
+ network_status: string;
21
+ reason: null;
22
+ risk_level: string;
23
+ risk_score: number;
24
+ seller_message: string;
25
+ type: string;
26
+ }
27
+ export declare class Checks {
28
+ address_line1_check: null;
29
+ address_postal_code_check: null;
30
+ cvc_check: string;
31
+ }
32
+ export declare class ExtendedAuthorization {
33
+ status: string;
34
+ }
35
+ export declare class NetworkToken {
36
+ used: boolean;
37
+ }
38
+ export declare class Overcapture {
39
+ maximum_amount_capturable: number;
40
+ status: string;
41
+ }
42
+ export declare class Card {
43
+ amount_authorized: number;
44
+ brand: string;
45
+ capture_before: number;
46
+ checks: Checks;
47
+ country: string;
48
+ exp_month: number;
49
+ exp_year: number;
50
+ extended_authorization: ExtendedAuthorization;
51
+ fingerprint: string;
52
+ funding: string;
53
+ incremental_authorization: ExtendedAuthorization;
54
+ installments: null;
55
+ last4: string;
56
+ mandate: null;
57
+ multicapture: ExtendedAuthorization;
58
+ network: string;
59
+ network_token: NetworkToken;
60
+ overcapture: Overcapture;
61
+ three_d_secure: null;
62
+ wallet: null;
63
+ }
64
+ export declare class PaymentMethodDetails {
65
+ card: Card;
66
+ type: string;
67
+ }
68
+ export declare class TransferData {
69
+ amount: null;
70
+ destination: string;
71
+ }
72
+ export declare class ChargeEventBody {
3
73
  callbackData: ExternalPaymentRequest & {
4
74
  externalOrderId: string;
5
75
  };
@@ -54,73 +124,3 @@ export interface ChargeEventBody {
54
124
  transfer_data: TransferData;
55
125
  transfer_group: string;
56
126
  }
57
- export interface BillingDetails {
58
- address: Address;
59
- email: string;
60
- name: string;
61
- phone: null;
62
- }
63
- export interface Address {
64
- city: null;
65
- country: string;
66
- line1: null;
67
- line2: null;
68
- postal_code: null;
69
- state: null;
70
- }
71
- export interface FraudDetails {
72
- test: string;
73
- }
74
- export interface Outcome {
75
- network_status: string;
76
- reason: null;
77
- risk_level: string;
78
- risk_score: number;
79
- seller_message: string;
80
- type: string;
81
- }
82
- export interface PaymentMethodDetails {
83
- card: Card;
84
- type: string;
85
- }
86
- export interface Card {
87
- amount_authorized: number;
88
- brand: string;
89
- capture_before: number;
90
- checks: Checks;
91
- country: string;
92
- exp_month: number;
93
- exp_year: number;
94
- extended_authorization: ExtendedAuthorization;
95
- fingerprint: string;
96
- funding: string;
97
- incremental_authorization: ExtendedAuthorization;
98
- installments: null;
99
- last4: string;
100
- mandate: null;
101
- multicapture: ExtendedAuthorization;
102
- network: string;
103
- network_token: NetworkToken;
104
- overcapture: Overcapture;
105
- three_d_secure: null;
106
- wallet: null;
107
- }
108
- export interface Checks {
109
- address_line1_check: null;
110
- address_postal_code_check: null;
111
- cvc_check: string;
112
- }
113
- export interface ExtendedAuthorization {
114
- status: string;
115
- }
116
- export interface NetworkToken {
117
- used: boolean;
118
- }
119
- export interface Overcapture {
120
- maximum_amount_capturable: number;
121
- status: string;
122
- }
123
- export interface TransferData {
124
- amount: null;
125
- destination: string;
126
- }