resurgence-data 1.0.22 → 1.0.24

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.
@@ -0,0 +1,2 @@
1
+ export * from "./biller.dto";
2
+ export * from "./biller-response.dto";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./biller.dto"), exports);
18
+ __exportStar(require("./biller-response.dto"), exports);
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from "./response";
3
3
  export * from "./exception";
4
4
  export * from "./user";
5
5
  export * from "./messaging";
6
+ export * from "./biller";
package/dist/index.js CHANGED
@@ -19,3 +19,4 @@ __exportStar(require("./response"), exports);
19
19
  __exportStar(require("./exception"), exports);
20
20
  __exportStar(require("./user"), exports);
21
21
  __exportStar(require("./messaging"), exports);
22
+ __exportStar(require("./biller"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -0,0 +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
+ export class BillerCategoryResponseDTO {
178
+ @ApiProperty()
179
+ id: string;
180
+
181
+ @ApiProperty()
182
+ name: string;
183
+
184
+ @ApiProperty({ required: false })
185
+ description?: string;
186
+
187
+ @ApiProperty({ type: () => [BillerResponseDTO], required: false })
188
+ billers?: BillerResponseDTO[];
189
+ }
190
+
191
+ export class ServiceResponseDTO {
192
+ @ApiProperty()
193
+ id: string;
194
+
195
+ @ApiProperty()
196
+ name: string;
197
+
198
+ @ApiProperty({ type: () => [BillerChargeConfigurationResponseDTO], required: false })
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({ type: () => [SettlementAccountResponseDTO], required: false })
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({ type: () => BillerCategoryResponseDTO })
251
+ category: BillerCategoryResponseDTO;
252
+
253
+ @ApiProperty({ type: () => [SettlementAccountResponseDTO] })
254
+ settlementAccounts: SettlementAccountResponseDTO[];
255
+
256
+ @ApiProperty({ type: () => BillerProfileResponseDTO, required: false })
257
+ profile?: BillerProfileResponseDTO;
258
+
259
+ @ApiProperty({ type: () => [BillerChargeConfigurationResponseDTO] })
260
+ chargeConfigurations: BillerChargeConfigurationResponseDTO[];
261
+
262
+ @ApiProperty({ type: () => GoLiveRequestResponseDTO, required: false })
263
+ goLiveRequest?: GoLiveRequestResponseDTO;
264
+
265
+ @ApiProperty({ type: () => [BillerDocumentResponseDTO] })
266
+ documents: BillerDocumentResponseDTO[];
267
+
268
+ @ApiProperty({ type: () => BillerContactResponseDTO, required: false })
269
+ contact?: BillerContactResponseDTO;
270
+
271
+ @ApiProperty({ type: () => [CustomerResponseDTO] })
272
+ customers: CustomerResponseDTO[];
273
+
274
+ @ApiProperty({ type: () => [BillerItemResponseDTO] })
275
+ items: BillerItemResponseDTO[];
276
+
277
+ @ApiProperty({ type: () => [InvoiceResponseDTO] })
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({ type: () => BillerResponseDTO })
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({ type: () => [BillerResponseDTO], required: false })
351
+ biller?: BillerResponseDTO[];
352
+
353
+ @ApiProperty({ type: () => ServiceResponseDTO })
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({ type: () => BillerResponseDTO })
386
+ biller: BillerResponseDTO;
387
+
388
+ @ApiProperty({ type: () => BankResponseDTO })
389
+ bank: BankResponseDTO;
390
+
391
+ @ApiProperty({ type: () => OnboardedAccountResponseDTO, 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({ type: () => SettlementAccountResponseDTO })
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({ type: () => BillerResponseDTO })
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({ type: () => BillerResponseDTO })
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({ type: () => BillerResponseDTO })
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({ type: () => BillerResponseDTO })
516
+ biller: BillerResponseDTO;
517
+
518
+ @ApiProperty({ type: () => [InvoiceResponseDTO] })
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({ type: () => BillerResponseDTO })
557
+ biller: BillerResponseDTO;
558
+
559
+ @ApiProperty({ type: () => [InvoiceResponseDTO] })
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({ type: () => [BillerItemResponseDTO] })
592
+ billerItems: BillerItemResponseDTO[];
593
+
594
+ @ApiProperty({ type: () => BillerResponseDTO })
595
+ biller: BillerResponseDTO;
596
+
597
+ @ApiProperty({ type: () => CustomerResponseDTO })
598
+ customer: CustomerResponseDTO;
599
+ }