resurgence-data 1.0.25 → 1.0.27
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.
- package/dist/biller/biller-response.dto.js +183 -588
- package/dist/biller/biller.dto.d.ts +2 -0
- package/dist/biller/biller.dto.js +18 -0
- package/package.json +1 -1
- package/src/biller/biller-response.dto.ts +431 -431
- package/src/biller/biller.dto.ts +15 -0
@@ -1,599 +1,599 @@
|
|
1
|
-
// export class BillerCategoryResponseDTO {
|
2
|
-
// id: string;
|
3
|
-
// name: string;
|
4
|
-
// description?: string;
|
5
|
-
// billers?: BillerResponseDTO[];
|
6
|
-
// }
|
7
|
-
|
8
|
-
// export class ServiceResponseDTO {
|
9
|
-
// id: string;
|
10
|
-
// name: string;
|
11
|
-
// chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
|
12
|
-
// }
|
13
|
-
|
14
|
-
// export class BankResponseDTO {
|
15
|
-
// id: string;
|
16
|
-
// name: string;
|
17
|
-
// slug: string;
|
18
|
-
// code: string;
|
19
|
-
// longCode: string;
|
20
|
-
// settlementAccounts?: SettlementAccountResponseDTO[];
|
21
|
-
// }
|
22
|
-
|
23
|
-
// export class BillerResponseDTO {
|
24
|
-
// id: string;
|
25
|
-
// categoryId: string;
|
26
|
-
// name: string;
|
27
|
-
// live: boolean;
|
28
|
-
// active: boolean;
|
29
|
-
// slug?: string;
|
30
|
-
// billerCode?: string;
|
31
|
-
// createdAt: Date;
|
32
|
-
// updatedAt: Date;
|
33
|
-
// category: BillerCategoryResponseDTO;
|
34
|
-
// settlementAccounts: SettlementAccountResponseDTO[];
|
35
|
-
// profile?: BillerProfileResponseDTO;
|
36
|
-
// chargeConfigurations: BillerChargeConfigurationResponseDTO[];
|
37
|
-
// goLiveRequest?: GoLiveRequestResponseDTO;
|
38
|
-
// documents: BillerDocumentResponseDTO[];
|
39
|
-
// contact?: BillerContactResponseDTO;
|
40
|
-
// customers: CustomerResponseDTO[];
|
41
|
-
// items: BillerItemResponseDTO[];
|
42
|
-
// invoices: InvoiceResponseDTO[];
|
43
|
-
// }
|
44
|
-
|
45
|
-
// export class BillerProfileResponseDTO {
|
46
|
-
// id: string;
|
47
|
-
// name?: string;
|
48
|
-
// billerId: string;
|
49
|
-
// hasTransactionLimit: boolean;
|
50
|
-
// transactionLimit: number;
|
51
|
-
// delimiter: string; // TIME_DELIMITER
|
52
|
-
// createdAt: Date;
|
53
|
-
// updatedAt: Date;
|
54
|
-
// biller: BillerResponseDTO;
|
55
|
-
// }
|
56
|
-
|
57
|
-
// export class BillerChargeConfigurationResponseDTO {
|
58
|
-
// id: string;
|
59
|
-
// serviceId: string;
|
60
|
-
// active: boolean;
|
61
|
-
// capped: boolean;
|
62
|
-
// floored: boolean;
|
63
|
-
// chargeCap: number;
|
64
|
-
// chargeFloor: number;
|
65
|
-
// currency: string;
|
66
|
-
// chargeType: string; // CHARGE_TYPE
|
67
|
-
// fixedAmount: number;
|
68
|
-
// percentAmount: number;
|
69
|
-
// createdAt: Date;
|
70
|
-
// updatedAt: Date;
|
71
|
-
// biller?: BillerResponseDTO[];
|
72
|
-
// service: ServiceResponseDTO;
|
73
|
-
// }
|
74
|
-
|
75
|
-
// export class SettlementAccountResponseDTO {
|
76
|
-
// id: string;
|
77
|
-
// billerId: string;
|
78
|
-
// bankId: string;
|
79
|
-
// default: boolean;
|
80
|
-
// accountName: string;
|
81
|
-
// accountNumber: string;
|
82
|
-
// currency: string;
|
83
|
-
// createdAt: Date;
|
84
|
-
// updatedAt: Date;
|
85
|
-
// biller: BillerResponseDTO;
|
86
|
-
// bank: BankResponseDTO;
|
87
|
-
// onboardedAccount?: OnboardedAccountResponseDTO;
|
88
|
-
// }
|
89
|
-
|
90
|
-
// export class OnboardedAccountResponseDTO {
|
91
|
-
// id: string;
|
92
|
-
// settlementAccountId: string;
|
93
|
-
// vendor: string;
|
94
|
-
// createdAt: Date;
|
95
|
-
// updatedAt: Date;
|
96
|
-
// settlementAccount: SettlementAccountResponseDTO;
|
97
|
-
// }
|
98
|
-
|
99
|
-
// export class BillerDocumentResponseDTO {
|
100
|
-
// id: string;
|
101
|
-
// billerId: string;
|
102
|
-
// url: string;
|
103
|
-
// type: string; // DOCUMENT_TYPE
|
104
|
-
// biller: BillerResponseDTO;
|
105
|
-
// }
|
106
|
-
|
107
|
-
// export class GoLiveRequestResponseDTO {
|
108
|
-
// id: string;
|
109
|
-
// billerId: string;
|
110
|
-
// status: string; // REQUEST_STATUS
|
111
|
-
// createdAt: Date;
|
112
|
-
// updatedAt: Date;
|
113
|
-
// biller: BillerResponseDTO;
|
114
|
-
// }
|
115
|
-
|
116
|
-
// export class BillerContactResponseDTO {
|
117
|
-
// id: string;
|
118
|
-
// billerId: string;
|
119
|
-
// contactName: string;
|
120
|
-
// emailAddress: string;
|
121
|
-
// phoneNumber?: string;
|
122
|
-
// dob: Date;
|
123
|
-
// address: string;
|
124
|
-
// country: string;
|
125
|
-
// city: string;
|
126
|
-
// state: string;
|
127
|
-
// createdAt: Date;
|
128
|
-
// updatedAt: Date;
|
129
|
-
// biller: BillerResponseDTO;
|
130
|
-
// }
|
131
|
-
|
132
|
-
// export class CustomerResponseDTO {
|
133
|
-
// id: string;
|
134
|
-
// billerId: string;
|
135
|
-
// name: string;
|
136
|
-
// emailAddress?: string;
|
137
|
-
// phoneNumber?: string;
|
138
|
-
// createdAt: Date;
|
139
|
-
// updatedAt: Date;
|
140
|
-
// biller: BillerResponseDTO;
|
141
|
-
// invoices: InvoiceResponseDTO[];
|
142
|
-
// }
|
143
|
-
|
144
|
-
// export class BillerItemResponseDTO {
|
145
|
-
// id: string;
|
146
|
-
// billerId: string;
|
147
|
-
// amount: number;
|
148
|
-
// source?: string;
|
149
|
-
// customerIdentifierName?: string;
|
150
|
-
// serviceFee: number;
|
151
|
-
// currency: string;
|
152
|
-
// description?: string;
|
153
|
-
// external: boolean;
|
154
|
-
// createdAt: Date;
|
155
|
-
// updatedAt: Date;
|
156
|
-
// biller: BillerResponseDTO;
|
157
|
-
// invoices: InvoiceResponseDTO[];
|
158
|
-
// }
|
159
|
-
|
160
|
-
// export class InvoiceResponseDTO {
|
161
|
-
// id: string;
|
162
|
-
// billerId: string;
|
163
|
-
// customerId: string;
|
164
|
-
// discountValue: number;
|
165
|
-
// discountType: string; // DISCOUNT_TYPE
|
166
|
-
// dueDate: Date;
|
167
|
-
// status: string; // INVOICE_STATUS
|
168
|
-
// createdAt: Date;
|
169
|
-
// updatedAt: Date;
|
170
|
-
// billerItems: BillerItemResponseDTO[];
|
171
|
-
// biller: BillerResponseDTO;
|
172
|
-
// customer: CustomerResponseDTO;
|
173
|
-
// }
|
174
|
-
|
175
|
-
import { ApiProperty } from "@nestjs/swagger";
|
176
|
-
|
177
1
|
export class BillerCategoryResponseDTO {
|
178
|
-
@ApiProperty()
|
179
2
|
id: string;
|
180
|
-
|
181
|
-
@ApiProperty()
|
182
3
|
name: string;
|
183
|
-
|
184
|
-
@ApiProperty({ required: false })
|
185
4
|
description?: string;
|
186
|
-
|
187
|
-
@ApiProperty()
|
188
5
|
billers?: BillerResponseDTO[];
|
189
6
|
}
|
190
7
|
|
191
8
|
export class ServiceResponseDTO {
|
192
|
-
@ApiProperty()
|
193
9
|
id: string;
|
194
|
-
|
195
|
-
@ApiProperty()
|
196
10
|
name: string;
|
197
|
-
|
198
|
-
@ApiProperty()
|
199
11
|
chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
|
200
12
|
}
|
201
13
|
|
202
14
|
export class BankResponseDTO {
|
203
|
-
@ApiProperty()
|
204
15
|
id: string;
|
205
|
-
|
206
|
-
@ApiProperty()
|
207
16
|
name: string;
|
208
|
-
|
209
|
-
@ApiProperty()
|
210
17
|
slug: string;
|
211
|
-
|
212
|
-
@ApiProperty()
|
213
18
|
code: string;
|
214
|
-
|
215
|
-
@ApiProperty()
|
216
19
|
longCode: string;
|
217
|
-
|
218
|
-
@ApiProperty()
|
219
20
|
settlementAccounts?: SettlementAccountResponseDTO[];
|
220
21
|
}
|
221
22
|
|
222
23
|
export class BillerResponseDTO {
|
223
|
-
@ApiProperty()
|
224
24
|
id: string;
|
225
|
-
|
226
|
-
@ApiProperty()
|
227
25
|
categoryId: string;
|
228
|
-
|
229
|
-
@ApiProperty()
|
230
26
|
name: string;
|
231
|
-
|
232
|
-
@ApiProperty()
|
233
27
|
live: boolean;
|
234
|
-
|
235
|
-
@ApiProperty()
|
236
28
|
active: boolean;
|
237
|
-
|
238
|
-
@ApiProperty({ required: false })
|
239
29
|
slug?: string;
|
240
|
-
|
241
|
-
@ApiProperty({ required: false })
|
242
30
|
billerCode?: string;
|
243
|
-
|
244
|
-
@ApiProperty()
|
245
31
|
createdAt: Date;
|
246
|
-
|
247
|
-
@ApiProperty()
|
248
32
|
updatedAt: Date;
|
249
|
-
|
250
|
-
@ApiProperty()
|
251
33
|
category: BillerCategoryResponseDTO;
|
252
|
-
|
253
|
-
@ApiProperty()
|
254
34
|
settlementAccounts: SettlementAccountResponseDTO[];
|
255
|
-
|
256
|
-
@ApiProperty({ required: false })
|
257
35
|
profile?: BillerProfileResponseDTO;
|
258
|
-
|
259
|
-
@ApiProperty()
|
260
36
|
chargeConfigurations: BillerChargeConfigurationResponseDTO[];
|
261
|
-
|
262
|
-
@ApiProperty({ required: false })
|
263
37
|
goLiveRequest?: GoLiveRequestResponseDTO;
|
264
|
-
|
265
|
-
@ApiProperty()
|
266
38
|
documents: BillerDocumentResponseDTO[];
|
267
|
-
|
268
|
-
@ApiProperty({ required: false })
|
269
39
|
contact?: BillerContactResponseDTO;
|
270
|
-
|
271
|
-
@ApiProperty()
|
272
40
|
customers: CustomerResponseDTO[];
|
273
|
-
|
274
|
-
@ApiProperty()
|
275
41
|
items: BillerItemResponseDTO[];
|
276
|
-
|
277
|
-
@ApiProperty()
|
278
42
|
invoices: InvoiceResponseDTO[];
|
279
43
|
}
|
280
44
|
|
281
45
|
export class BillerProfileResponseDTO {
|
282
|
-
@ApiProperty()
|
283
46
|
id: string;
|
284
|
-
|
285
|
-
@ApiProperty({ required: false })
|
286
47
|
name?: string;
|
287
|
-
|
288
|
-
@ApiProperty()
|
289
48
|
billerId: string;
|
290
|
-
|
291
|
-
@ApiProperty()
|
292
49
|
hasTransactionLimit: boolean;
|
293
|
-
|
294
|
-
@ApiProperty()
|
295
50
|
transactionLimit: number;
|
296
|
-
|
297
|
-
@ApiProperty()
|
298
|
-
delimiter: string;
|
299
|
-
|
300
|
-
@ApiProperty()
|
51
|
+
delimiter: string; // TIME_DELIMITER
|
301
52
|
createdAt: Date;
|
302
|
-
|
303
|
-
@ApiProperty()
|
304
53
|
updatedAt: Date;
|
305
|
-
|
306
|
-
@ApiProperty()
|
307
54
|
biller: BillerResponseDTO;
|
308
55
|
}
|
309
56
|
|
310
57
|
export class BillerChargeConfigurationResponseDTO {
|
311
|
-
@ApiProperty()
|
312
58
|
id: string;
|
313
|
-
|
314
|
-
@ApiProperty()
|
315
59
|
serviceId: string;
|
316
|
-
|
317
|
-
@ApiProperty()
|
318
60
|
active: boolean;
|
319
|
-
|
320
|
-
@ApiProperty()
|
321
61
|
capped: boolean;
|
322
|
-
|
323
|
-
@ApiProperty()
|
324
62
|
floored: boolean;
|
325
|
-
|
326
|
-
@ApiProperty()
|
327
63
|
chargeCap: number;
|
328
|
-
|
329
|
-
@ApiProperty()
|
330
64
|
chargeFloor: number;
|
331
|
-
|
332
|
-
@ApiProperty()
|
333
65
|
currency: string;
|
334
|
-
|
335
|
-
@ApiProperty()
|
336
|
-
chargeType: string;
|
337
|
-
|
338
|
-
@ApiProperty()
|
66
|
+
chargeType: string; // CHARGE_TYPE
|
339
67
|
fixedAmount: number;
|
340
|
-
|
341
|
-
@ApiProperty()
|
342
68
|
percentAmount: number;
|
343
|
-
|
344
|
-
@ApiProperty()
|
345
69
|
createdAt: Date;
|
346
|
-
|
347
|
-
@ApiProperty()
|
348
70
|
updatedAt: Date;
|
349
|
-
|
350
|
-
@ApiProperty({ required: false })
|
351
71
|
biller?: BillerResponseDTO[];
|
352
|
-
|
353
|
-
@ApiProperty()
|
354
72
|
service: ServiceResponseDTO;
|
355
73
|
}
|
356
74
|
|
357
75
|
export class SettlementAccountResponseDTO {
|
358
|
-
@ApiProperty()
|
359
76
|
id: string;
|
360
|
-
|
361
|
-
@ApiProperty()
|
362
77
|
billerId: string;
|
363
|
-
|
364
|
-
@ApiProperty()
|
365
78
|
bankId: string;
|
366
|
-
|
367
|
-
@ApiProperty()
|
368
79
|
default: boolean;
|
369
|
-
|
370
|
-
@ApiProperty()
|
371
80
|
accountName: string;
|
372
|
-
|
373
|
-
@ApiProperty()
|
374
81
|
accountNumber: string;
|
375
|
-
|
376
|
-
@ApiProperty()
|
377
82
|
currency: string;
|
378
|
-
|
379
|
-
@ApiProperty()
|
380
83
|
createdAt: Date;
|
381
|
-
|
382
|
-
@ApiProperty()
|
383
84
|
updatedAt: Date;
|
384
|
-
|
385
|
-
@ApiProperty()
|
386
85
|
biller: BillerResponseDTO;
|
387
|
-
|
388
|
-
@ApiProperty()
|
389
86
|
bank: BankResponseDTO;
|
390
|
-
|
391
|
-
@ApiProperty({ required: false })
|
392
87
|
onboardedAccount?: OnboardedAccountResponseDTO;
|
393
88
|
}
|
394
89
|
|
395
90
|
export class OnboardedAccountResponseDTO {
|
396
|
-
@ApiProperty()
|
397
91
|
id: string;
|
398
|
-
|
399
|
-
@ApiProperty()
|
400
92
|
settlementAccountId: string;
|
401
|
-
|
402
|
-
@ApiProperty()
|
403
93
|
vendor: string;
|
404
|
-
|
405
|
-
@ApiProperty()
|
406
94
|
createdAt: Date;
|
407
|
-
|
408
|
-
@ApiProperty()
|
409
95
|
updatedAt: Date;
|
410
|
-
|
411
|
-
@ApiProperty()
|
412
96
|
settlementAccount: SettlementAccountResponseDTO;
|
413
97
|
}
|
414
98
|
|
415
99
|
export class BillerDocumentResponseDTO {
|
416
|
-
@ApiProperty()
|
417
100
|
id: string;
|
418
|
-
|
419
|
-
@ApiProperty()
|
420
101
|
billerId: string;
|
421
|
-
|
422
|
-
@ApiProperty()
|
423
102
|
url: string;
|
424
|
-
|
425
|
-
@ApiProperty()
|
426
|
-
type: string;
|
427
|
-
|
428
|
-
@ApiProperty()
|
103
|
+
type: string; // DOCUMENT_TYPE
|
429
104
|
biller: BillerResponseDTO;
|
430
105
|
}
|
431
106
|
|
432
107
|
export class GoLiveRequestResponseDTO {
|
433
|
-
@ApiProperty()
|
434
108
|
id: string;
|
435
|
-
|
436
|
-
@ApiProperty()
|
437
109
|
billerId: string;
|
438
|
-
|
439
|
-
@ApiProperty()
|
440
|
-
status: string;
|
441
|
-
|
442
|
-
@ApiProperty()
|
110
|
+
status: string; // REQUEST_STATUS
|
443
111
|
createdAt: Date;
|
444
|
-
|
445
|
-
@ApiProperty()
|
446
112
|
updatedAt: Date;
|
447
|
-
|
448
|
-
@ApiProperty()
|
449
113
|
biller: BillerResponseDTO;
|
450
114
|
}
|
451
115
|
|
452
116
|
export class BillerContactResponseDTO {
|
453
|
-
@ApiProperty()
|
454
117
|
id: string;
|
455
|
-
|
456
|
-
@ApiProperty()
|
457
118
|
billerId: string;
|
458
|
-
|
459
|
-
@ApiProperty()
|
460
119
|
contactName: string;
|
461
|
-
|
462
|
-
@ApiProperty()
|
463
120
|
emailAddress: string;
|
464
|
-
|
465
|
-
@ApiProperty({ required: false })
|
466
121
|
phoneNumber?: string;
|
467
|
-
|
468
|
-
@ApiProperty()
|
469
122
|
dob: Date;
|
470
|
-
|
471
|
-
@ApiProperty()
|
472
123
|
address: string;
|
473
|
-
|
474
|
-
@ApiProperty()
|
475
124
|
country: string;
|
476
|
-
|
477
|
-
@ApiProperty()
|
478
125
|
city: string;
|
479
|
-
|
480
|
-
@ApiProperty()
|
481
126
|
state: string;
|
482
|
-
|
483
|
-
@ApiProperty()
|
484
127
|
createdAt: Date;
|
485
|
-
|
486
|
-
@ApiProperty()
|
487
128
|
updatedAt: Date;
|
488
|
-
|
489
|
-
@ApiProperty()
|
490
129
|
biller: BillerResponseDTO;
|
491
130
|
}
|
492
131
|
|
493
132
|
export class CustomerResponseDTO {
|
494
|
-
@ApiProperty()
|
495
133
|
id: string;
|
496
|
-
|
497
|
-
@ApiProperty()
|
498
134
|
billerId: string;
|
499
|
-
|
500
|
-
@ApiProperty()
|
501
135
|
name: string;
|
502
|
-
|
503
|
-
@ApiProperty({ required: false })
|
504
136
|
emailAddress?: string;
|
505
|
-
|
506
|
-
@ApiProperty({ required: false })
|
507
137
|
phoneNumber?: string;
|
508
|
-
|
509
|
-
@ApiProperty()
|
510
138
|
createdAt: Date;
|
511
|
-
|
512
|
-
@ApiProperty()
|
513
139
|
updatedAt: Date;
|
514
|
-
|
515
|
-
@ApiProperty()
|
516
140
|
biller: BillerResponseDTO;
|
517
|
-
|
518
|
-
@ApiProperty()
|
519
141
|
invoices: InvoiceResponseDTO[];
|
520
142
|
}
|
521
143
|
|
522
144
|
export class BillerItemResponseDTO {
|
523
|
-
@ApiProperty()
|
524
145
|
id: string;
|
525
|
-
|
526
|
-
@ApiProperty()
|
527
146
|
billerId: string;
|
528
|
-
|
529
|
-
@ApiProperty()
|
530
147
|
amount: number;
|
531
|
-
|
532
|
-
@ApiProperty({ required: false })
|
533
148
|
source?: string;
|
534
|
-
|
535
|
-
@ApiProperty({ required: false })
|
536
149
|
customerIdentifierName?: string;
|
537
|
-
|
538
|
-
@ApiProperty()
|
539
150
|
serviceFee: number;
|
540
|
-
|
541
|
-
@ApiProperty()
|
542
151
|
currency: string;
|
543
|
-
|
544
|
-
@ApiProperty({ required: false })
|
545
152
|
description?: string;
|
546
|
-
|
547
|
-
@ApiProperty()
|
548
153
|
external: boolean;
|
549
|
-
|
550
|
-
@ApiProperty()
|
551
154
|
createdAt: Date;
|
552
|
-
|
553
|
-
@ApiProperty()
|
554
155
|
updatedAt: Date;
|
555
|
-
|
556
|
-
@ApiProperty()
|
557
156
|
biller: BillerResponseDTO;
|
558
|
-
|
559
|
-
@ApiProperty()
|
560
157
|
invoices: InvoiceResponseDTO[];
|
561
158
|
}
|
562
159
|
|
563
160
|
export class InvoiceResponseDTO {
|
564
|
-
@ApiProperty()
|
565
161
|
id: string;
|
566
|
-
|
567
|
-
@ApiProperty()
|
568
162
|
billerId: string;
|
569
|
-
|
570
|
-
@ApiProperty()
|
571
163
|
customerId: string;
|
572
|
-
|
573
|
-
@ApiProperty()
|
574
164
|
discountValue: number;
|
165
|
+
discountType: string; // DISCOUNT_TYPE
|
166
|
+
dueDate: Date;
|
167
|
+
status: string; // INVOICE_STATUS
|
168
|
+
createdAt: Date;
|
169
|
+
updatedAt: Date;
|
170
|
+
billerItems: BillerItemResponseDTO[];
|
171
|
+
biller: BillerResponseDTO;
|
172
|
+
customer: CustomerResponseDTO;
|
173
|
+
}
|
575
174
|
|
576
|
-
|
577
|
-
discountType: string;
|
175
|
+
// import { ApiProperty } from "@nestjs/swagger";
|
578
176
|
|
579
|
-
|
580
|
-
|
177
|
+
// export class BillerCategoryResponseDTO {
|
178
|
+
// @ApiProperty()
|
179
|
+
// id: string;
|
581
180
|
|
582
|
-
|
583
|
-
|
181
|
+
// @ApiProperty()
|
182
|
+
// name: string;
|
584
183
|
|
585
|
-
|
586
|
-
|
184
|
+
// @ApiProperty({ required: false })
|
185
|
+
// description?: string;
|
587
186
|
|
588
|
-
|
589
|
-
|
187
|
+
// @ApiProperty()
|
188
|
+
// billers?: BillerResponseDTO[];
|
189
|
+
// }
|
590
190
|
|
591
|
-
|
592
|
-
|
191
|
+
// export class ServiceResponseDTO {
|
192
|
+
// @ApiProperty()
|
193
|
+
// id: string;
|
593
194
|
|
594
|
-
|
595
|
-
|
195
|
+
// @ApiProperty()
|
196
|
+
// name: string;
|
596
197
|
|
597
|
-
|
598
|
-
|
599
|
-
}
|
198
|
+
// @ApiProperty()
|
199
|
+
// chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
|
200
|
+
// }
|
201
|
+
|
202
|
+
// export class BankResponseDTO {
|
203
|
+
// @ApiProperty()
|
204
|
+
// id: string;
|
205
|
+
|
206
|
+
// @ApiProperty()
|
207
|
+
// name: string;
|
208
|
+
|
209
|
+
// @ApiProperty()
|
210
|
+
// slug: string;
|
211
|
+
|
212
|
+
// @ApiProperty()
|
213
|
+
// code: string;
|
214
|
+
|
215
|
+
// @ApiProperty()
|
216
|
+
// longCode: string;
|
217
|
+
|
218
|
+
// @ApiProperty()
|
219
|
+
// settlementAccounts?: SettlementAccountResponseDTO[];
|
220
|
+
// }
|
221
|
+
|
222
|
+
// export class BillerResponseDTO {
|
223
|
+
// @ApiProperty()
|
224
|
+
// id: string;
|
225
|
+
|
226
|
+
// @ApiProperty()
|
227
|
+
// categoryId: string;
|
228
|
+
|
229
|
+
// @ApiProperty()
|
230
|
+
// name: string;
|
231
|
+
|
232
|
+
// @ApiProperty()
|
233
|
+
// live: boolean;
|
234
|
+
|
235
|
+
// @ApiProperty()
|
236
|
+
// active: boolean;
|
237
|
+
|
238
|
+
// @ApiProperty({ required: false })
|
239
|
+
// slug?: string;
|
240
|
+
|
241
|
+
// @ApiProperty({ required: false })
|
242
|
+
// billerCode?: string;
|
243
|
+
|
244
|
+
// @ApiProperty()
|
245
|
+
// createdAt: Date;
|
246
|
+
|
247
|
+
// @ApiProperty()
|
248
|
+
// updatedAt: Date;
|
249
|
+
|
250
|
+
// @ApiProperty()
|
251
|
+
// category: BillerCategoryResponseDTO;
|
252
|
+
|
253
|
+
// @ApiProperty()
|
254
|
+
// settlementAccounts: SettlementAccountResponseDTO[];
|
255
|
+
|
256
|
+
// @ApiProperty({ required: false })
|
257
|
+
// profile?: BillerProfileResponseDTO;
|
258
|
+
|
259
|
+
// @ApiProperty()
|
260
|
+
// chargeConfigurations: BillerChargeConfigurationResponseDTO[];
|
261
|
+
|
262
|
+
// @ApiProperty({ required: false })
|
263
|
+
// goLiveRequest?: GoLiveRequestResponseDTO;
|
264
|
+
|
265
|
+
// @ApiProperty()
|
266
|
+
// documents: BillerDocumentResponseDTO[];
|
267
|
+
|
268
|
+
// @ApiProperty({ required: false })
|
269
|
+
// contact?: BillerContactResponseDTO;
|
270
|
+
|
271
|
+
// @ApiProperty()
|
272
|
+
// customers: CustomerResponseDTO[];
|
273
|
+
|
274
|
+
// @ApiProperty()
|
275
|
+
// items: BillerItemResponseDTO[];
|
276
|
+
|
277
|
+
// @ApiProperty()
|
278
|
+
// invoices: InvoiceResponseDTO[];
|
279
|
+
// }
|
280
|
+
|
281
|
+
// export class BillerProfileResponseDTO {
|
282
|
+
// @ApiProperty()
|
283
|
+
// id: string;
|
284
|
+
|
285
|
+
// @ApiProperty({ required: false })
|
286
|
+
// name?: string;
|
287
|
+
|
288
|
+
// @ApiProperty()
|
289
|
+
// billerId: string;
|
290
|
+
|
291
|
+
// @ApiProperty()
|
292
|
+
// hasTransactionLimit: boolean;
|
293
|
+
|
294
|
+
// @ApiProperty()
|
295
|
+
// transactionLimit: number;
|
296
|
+
|
297
|
+
// @ApiProperty()
|
298
|
+
// delimiter: string;
|
299
|
+
|
300
|
+
// @ApiProperty()
|
301
|
+
// createdAt: Date;
|
302
|
+
|
303
|
+
// @ApiProperty()
|
304
|
+
// updatedAt: Date;
|
305
|
+
|
306
|
+
// @ApiProperty()
|
307
|
+
// biller: BillerResponseDTO;
|
308
|
+
// }
|
309
|
+
|
310
|
+
// export class BillerChargeConfigurationResponseDTO {
|
311
|
+
// @ApiProperty()
|
312
|
+
// id: string;
|
313
|
+
|
314
|
+
// @ApiProperty()
|
315
|
+
// serviceId: string;
|
316
|
+
|
317
|
+
// @ApiProperty()
|
318
|
+
// active: boolean;
|
319
|
+
|
320
|
+
// @ApiProperty()
|
321
|
+
// capped: boolean;
|
322
|
+
|
323
|
+
// @ApiProperty()
|
324
|
+
// floored: boolean;
|
325
|
+
|
326
|
+
// @ApiProperty()
|
327
|
+
// chargeCap: number;
|
328
|
+
|
329
|
+
// @ApiProperty()
|
330
|
+
// chargeFloor: number;
|
331
|
+
|
332
|
+
// @ApiProperty()
|
333
|
+
// currency: string;
|
334
|
+
|
335
|
+
// @ApiProperty()
|
336
|
+
// chargeType: string;
|
337
|
+
|
338
|
+
// @ApiProperty()
|
339
|
+
// fixedAmount: number;
|
340
|
+
|
341
|
+
// @ApiProperty()
|
342
|
+
// percentAmount: number;
|
343
|
+
|
344
|
+
// @ApiProperty()
|
345
|
+
// createdAt: Date;
|
346
|
+
|
347
|
+
// @ApiProperty()
|
348
|
+
// updatedAt: Date;
|
349
|
+
|
350
|
+
// @ApiProperty({ required: false })
|
351
|
+
// biller?: BillerResponseDTO[];
|
352
|
+
|
353
|
+
// @ApiProperty()
|
354
|
+
// service: ServiceResponseDTO;
|
355
|
+
// }
|
356
|
+
|
357
|
+
// export class SettlementAccountResponseDTO {
|
358
|
+
// @ApiProperty()
|
359
|
+
// id: string;
|
360
|
+
|
361
|
+
// @ApiProperty()
|
362
|
+
// billerId: string;
|
363
|
+
|
364
|
+
// @ApiProperty()
|
365
|
+
// bankId: string;
|
366
|
+
|
367
|
+
// @ApiProperty()
|
368
|
+
// default: boolean;
|
369
|
+
|
370
|
+
// @ApiProperty()
|
371
|
+
// accountName: string;
|
372
|
+
|
373
|
+
// @ApiProperty()
|
374
|
+
// accountNumber: string;
|
375
|
+
|
376
|
+
// @ApiProperty()
|
377
|
+
// currency: string;
|
378
|
+
|
379
|
+
// @ApiProperty()
|
380
|
+
// createdAt: Date;
|
381
|
+
|
382
|
+
// @ApiProperty()
|
383
|
+
// updatedAt: Date;
|
384
|
+
|
385
|
+
// @ApiProperty()
|
386
|
+
// biller: BillerResponseDTO;
|
387
|
+
|
388
|
+
// @ApiProperty()
|
389
|
+
// bank: BankResponseDTO;
|
390
|
+
|
391
|
+
// @ApiProperty({ required: false })
|
392
|
+
// onboardedAccount?: OnboardedAccountResponseDTO;
|
393
|
+
// }
|
394
|
+
|
395
|
+
// export class OnboardedAccountResponseDTO {
|
396
|
+
// @ApiProperty()
|
397
|
+
// id: string;
|
398
|
+
|
399
|
+
// @ApiProperty()
|
400
|
+
// settlementAccountId: string;
|
401
|
+
|
402
|
+
// @ApiProperty()
|
403
|
+
// vendor: string;
|
404
|
+
|
405
|
+
// @ApiProperty()
|
406
|
+
// createdAt: Date;
|
407
|
+
|
408
|
+
// @ApiProperty()
|
409
|
+
// updatedAt: Date;
|
410
|
+
|
411
|
+
// @ApiProperty()
|
412
|
+
// settlementAccount: SettlementAccountResponseDTO;
|
413
|
+
// }
|
414
|
+
|
415
|
+
// export class BillerDocumentResponseDTO {
|
416
|
+
// @ApiProperty()
|
417
|
+
// id: string;
|
418
|
+
|
419
|
+
// @ApiProperty()
|
420
|
+
// billerId: string;
|
421
|
+
|
422
|
+
// @ApiProperty()
|
423
|
+
// url: string;
|
424
|
+
|
425
|
+
// @ApiProperty()
|
426
|
+
// type: string;
|
427
|
+
|
428
|
+
// @ApiProperty()
|
429
|
+
// biller: BillerResponseDTO;
|
430
|
+
// }
|
431
|
+
|
432
|
+
// export class GoLiveRequestResponseDTO {
|
433
|
+
// @ApiProperty()
|
434
|
+
// id: string;
|
435
|
+
|
436
|
+
// @ApiProperty()
|
437
|
+
// billerId: string;
|
438
|
+
|
439
|
+
// @ApiProperty()
|
440
|
+
// status: string;
|
441
|
+
|
442
|
+
// @ApiProperty()
|
443
|
+
// createdAt: Date;
|
444
|
+
|
445
|
+
// @ApiProperty()
|
446
|
+
// updatedAt: Date;
|
447
|
+
|
448
|
+
// @ApiProperty()
|
449
|
+
// biller: BillerResponseDTO;
|
450
|
+
// }
|
451
|
+
|
452
|
+
// export class BillerContactResponseDTO {
|
453
|
+
// @ApiProperty()
|
454
|
+
// id: string;
|
455
|
+
|
456
|
+
// @ApiProperty()
|
457
|
+
// billerId: string;
|
458
|
+
|
459
|
+
// @ApiProperty()
|
460
|
+
// contactName: string;
|
461
|
+
|
462
|
+
// @ApiProperty()
|
463
|
+
// emailAddress: string;
|
464
|
+
|
465
|
+
// @ApiProperty({ required: false })
|
466
|
+
// phoneNumber?: string;
|
467
|
+
|
468
|
+
// @ApiProperty()
|
469
|
+
// dob: Date;
|
470
|
+
|
471
|
+
// @ApiProperty()
|
472
|
+
// address: string;
|
473
|
+
|
474
|
+
// @ApiProperty()
|
475
|
+
// country: string;
|
476
|
+
|
477
|
+
// @ApiProperty()
|
478
|
+
// city: string;
|
479
|
+
|
480
|
+
// @ApiProperty()
|
481
|
+
// state: string;
|
482
|
+
|
483
|
+
// @ApiProperty()
|
484
|
+
// createdAt: Date;
|
485
|
+
|
486
|
+
// @ApiProperty()
|
487
|
+
// updatedAt: Date;
|
488
|
+
|
489
|
+
// @ApiProperty()
|
490
|
+
// biller: BillerResponseDTO;
|
491
|
+
// }
|
492
|
+
|
493
|
+
// export class CustomerResponseDTO {
|
494
|
+
// @ApiProperty()
|
495
|
+
// id: string;
|
496
|
+
|
497
|
+
// @ApiProperty()
|
498
|
+
// billerId: string;
|
499
|
+
|
500
|
+
// @ApiProperty()
|
501
|
+
// name: string;
|
502
|
+
|
503
|
+
// @ApiProperty({ required: false })
|
504
|
+
// emailAddress?: string;
|
505
|
+
|
506
|
+
// @ApiProperty({ required: false })
|
507
|
+
// phoneNumber?: string;
|
508
|
+
|
509
|
+
// @ApiProperty()
|
510
|
+
// createdAt: Date;
|
511
|
+
|
512
|
+
// @ApiProperty()
|
513
|
+
// updatedAt: Date;
|
514
|
+
|
515
|
+
// @ApiProperty()
|
516
|
+
// biller: BillerResponseDTO;
|
517
|
+
|
518
|
+
// @ApiProperty()
|
519
|
+
// invoices: InvoiceResponseDTO[];
|
520
|
+
// }
|
521
|
+
|
522
|
+
// export class BillerItemResponseDTO {
|
523
|
+
// @ApiProperty()
|
524
|
+
// id: string;
|
525
|
+
|
526
|
+
// @ApiProperty()
|
527
|
+
// billerId: string;
|
528
|
+
|
529
|
+
// @ApiProperty()
|
530
|
+
// amount: number;
|
531
|
+
|
532
|
+
// @ApiProperty({ required: false })
|
533
|
+
// source?: string;
|
534
|
+
|
535
|
+
// @ApiProperty({ required: false })
|
536
|
+
// customerIdentifierName?: string;
|
537
|
+
|
538
|
+
// @ApiProperty()
|
539
|
+
// serviceFee: number;
|
540
|
+
|
541
|
+
// @ApiProperty()
|
542
|
+
// currency: string;
|
543
|
+
|
544
|
+
// @ApiProperty({ required: false })
|
545
|
+
// description?: string;
|
546
|
+
|
547
|
+
// @ApiProperty()
|
548
|
+
// external: boolean;
|
549
|
+
|
550
|
+
// @ApiProperty()
|
551
|
+
// createdAt: Date;
|
552
|
+
|
553
|
+
// @ApiProperty()
|
554
|
+
// updatedAt: Date;
|
555
|
+
|
556
|
+
// @ApiProperty()
|
557
|
+
// biller: BillerResponseDTO;
|
558
|
+
|
559
|
+
// @ApiProperty()
|
560
|
+
// invoices: InvoiceResponseDTO[];
|
561
|
+
// }
|
562
|
+
|
563
|
+
// export class InvoiceResponseDTO {
|
564
|
+
// @ApiProperty()
|
565
|
+
// id: string;
|
566
|
+
|
567
|
+
// @ApiProperty()
|
568
|
+
// billerId: string;
|
569
|
+
|
570
|
+
// @ApiProperty()
|
571
|
+
// customerId: string;
|
572
|
+
|
573
|
+
// @ApiProperty()
|
574
|
+
// discountValue: number;
|
575
|
+
|
576
|
+
// @ApiProperty()
|
577
|
+
// discountType: string;
|
578
|
+
|
579
|
+
// @ApiProperty()
|
580
|
+
// dueDate: Date;
|
581
|
+
|
582
|
+
// @ApiProperty()
|
583
|
+
// status: string;
|
584
|
+
|
585
|
+
// @ApiProperty()
|
586
|
+
// createdAt: Date;
|
587
|
+
|
588
|
+
// @ApiProperty()
|
589
|
+
// updatedAt: Date;
|
590
|
+
|
591
|
+
// @ApiProperty()
|
592
|
+
// billerItems: BillerItemResponseDTO[];
|
593
|
+
|
594
|
+
// @ApiProperty()
|
595
|
+
// biller: BillerResponseDTO;
|
596
|
+
|
597
|
+
// @ApiProperty()
|
598
|
+
// customer: CustomerResponseDTO;
|
599
|
+
// }
|