resurgence-data 1.0.23 → 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.
@@ -1,45 +1,743 @@
1
1
  "use strict";
2
+ // export class BillerCategoryResponseDTO {
3
+ // id: string;
4
+ // name: string;
5
+ // description?: string;
6
+ // billers?: BillerResponseDTO[];
7
+ // }
8
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
9
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
11
+ 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;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
16
+ };
2
17
  Object.defineProperty(exports, "__esModule", { value: true });
3
18
  exports.InvoiceResponseDTO = exports.BillerItemResponseDTO = exports.CustomerResponseDTO = exports.BillerContactResponseDTO = exports.GoLiveRequestResponseDTO = exports.BillerDocumentResponseDTO = exports.OnboardedAccountResponseDTO = exports.SettlementAccountResponseDTO = exports.BillerChargeConfigurationResponseDTO = exports.BillerProfileResponseDTO = exports.BillerResponseDTO = exports.BankResponseDTO = exports.ServiceResponseDTO = exports.BillerCategoryResponseDTO = void 0;
19
+ // export class ServiceResponseDTO {
20
+ // id: string;
21
+ // name: string;
22
+ // chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
23
+ // }
24
+ // export class BankResponseDTO {
25
+ // id: string;
26
+ // name: string;
27
+ // slug: string;
28
+ // code: string;
29
+ // longCode: string;
30
+ // settlementAccounts?: SettlementAccountResponseDTO[];
31
+ // }
32
+ // export class BillerResponseDTO {
33
+ // id: string;
34
+ // categoryId: string;
35
+ // name: string;
36
+ // live: boolean;
37
+ // active: boolean;
38
+ // slug?: string;
39
+ // billerCode?: string;
40
+ // createdAt: Date;
41
+ // updatedAt: Date;
42
+ // category: BillerCategoryResponseDTO;
43
+ // settlementAccounts: SettlementAccountResponseDTO[];
44
+ // profile?: BillerProfileResponseDTO;
45
+ // chargeConfigurations: BillerChargeConfigurationResponseDTO[];
46
+ // goLiveRequest?: GoLiveRequestResponseDTO;
47
+ // documents: BillerDocumentResponseDTO[];
48
+ // contact?: BillerContactResponseDTO;
49
+ // customers: CustomerResponseDTO[];
50
+ // items: BillerItemResponseDTO[];
51
+ // invoices: InvoiceResponseDTO[];
52
+ // }
53
+ // export class BillerProfileResponseDTO {
54
+ // id: string;
55
+ // name?: string;
56
+ // billerId: string;
57
+ // hasTransactionLimit: boolean;
58
+ // transactionLimit: number;
59
+ // delimiter: string; // TIME_DELIMITER
60
+ // createdAt: Date;
61
+ // updatedAt: Date;
62
+ // biller: BillerResponseDTO;
63
+ // }
64
+ // export class BillerChargeConfigurationResponseDTO {
65
+ // id: string;
66
+ // serviceId: string;
67
+ // active: boolean;
68
+ // capped: boolean;
69
+ // floored: boolean;
70
+ // chargeCap: number;
71
+ // chargeFloor: number;
72
+ // currency: string;
73
+ // chargeType: string; // CHARGE_TYPE
74
+ // fixedAmount: number;
75
+ // percentAmount: number;
76
+ // createdAt: Date;
77
+ // updatedAt: Date;
78
+ // biller?: BillerResponseDTO[];
79
+ // service: ServiceResponseDTO;
80
+ // }
81
+ // export class SettlementAccountResponseDTO {
82
+ // id: string;
83
+ // billerId: string;
84
+ // bankId: string;
85
+ // default: boolean;
86
+ // accountName: string;
87
+ // accountNumber: string;
88
+ // currency: string;
89
+ // createdAt: Date;
90
+ // updatedAt: Date;
91
+ // biller: BillerResponseDTO;
92
+ // bank: BankResponseDTO;
93
+ // onboardedAccount?: OnboardedAccountResponseDTO;
94
+ // }
95
+ // export class OnboardedAccountResponseDTO {
96
+ // id: string;
97
+ // settlementAccountId: string;
98
+ // vendor: string;
99
+ // createdAt: Date;
100
+ // updatedAt: Date;
101
+ // settlementAccount: SettlementAccountResponseDTO;
102
+ // }
103
+ // export class BillerDocumentResponseDTO {
104
+ // id: string;
105
+ // billerId: string;
106
+ // url: string;
107
+ // type: string; // DOCUMENT_TYPE
108
+ // biller: BillerResponseDTO;
109
+ // }
110
+ // export class GoLiveRequestResponseDTO {
111
+ // id: string;
112
+ // billerId: string;
113
+ // status: string; // REQUEST_STATUS
114
+ // createdAt: Date;
115
+ // updatedAt: Date;
116
+ // biller: BillerResponseDTO;
117
+ // }
118
+ // export class BillerContactResponseDTO {
119
+ // id: string;
120
+ // billerId: string;
121
+ // contactName: string;
122
+ // emailAddress: string;
123
+ // phoneNumber?: string;
124
+ // dob: Date;
125
+ // address: string;
126
+ // country: string;
127
+ // city: string;
128
+ // state: string;
129
+ // createdAt: Date;
130
+ // updatedAt: Date;
131
+ // biller: BillerResponseDTO;
132
+ // }
133
+ // export class CustomerResponseDTO {
134
+ // id: string;
135
+ // billerId: string;
136
+ // name: string;
137
+ // emailAddress?: string;
138
+ // phoneNumber?: string;
139
+ // createdAt: Date;
140
+ // updatedAt: Date;
141
+ // biller: BillerResponseDTO;
142
+ // invoices: InvoiceResponseDTO[];
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
+ // export class InvoiceResponseDTO {
160
+ // id: string;
161
+ // billerId: string;
162
+ // customerId: string;
163
+ // discountValue: number;
164
+ // discountType: string; // DISCOUNT_TYPE
165
+ // dueDate: Date;
166
+ // status: string; // INVOICE_STATUS
167
+ // createdAt: Date;
168
+ // updatedAt: Date;
169
+ // billerItems: BillerItemResponseDTO[];
170
+ // biller: BillerResponseDTO;
171
+ // customer: CustomerResponseDTO;
172
+ // }
173
+ const swagger_1 = require("@nestjs/swagger");
4
174
  class BillerCategoryResponseDTO {
5
175
  }
6
176
  exports.BillerCategoryResponseDTO = BillerCategoryResponseDTO;
177
+ __decorate([
178
+ (0, swagger_1.ApiProperty)(),
179
+ __metadata("design:type", String)
180
+ ], BillerCategoryResponseDTO.prototype, "id", void 0);
181
+ __decorate([
182
+ (0, swagger_1.ApiProperty)(),
183
+ __metadata("design:type", String)
184
+ ], BillerCategoryResponseDTO.prototype, "name", void 0);
185
+ __decorate([
186
+ (0, swagger_1.ApiProperty)({ required: false }),
187
+ __metadata("design:type", String)
188
+ ], BillerCategoryResponseDTO.prototype, "description", void 0);
189
+ __decorate([
190
+ (0, swagger_1.ApiProperty)({ type: () => [BillerResponseDTO], required: false }),
191
+ __metadata("design:type", Array)
192
+ ], BillerCategoryResponseDTO.prototype, "billers", void 0);
7
193
  class ServiceResponseDTO {
8
194
  }
9
195
  exports.ServiceResponseDTO = ServiceResponseDTO;
196
+ __decorate([
197
+ (0, swagger_1.ApiProperty)(),
198
+ __metadata("design:type", String)
199
+ ], ServiceResponseDTO.prototype, "id", void 0);
200
+ __decorate([
201
+ (0, swagger_1.ApiProperty)(),
202
+ __metadata("design:type", String)
203
+ ], ServiceResponseDTO.prototype, "name", void 0);
204
+ __decorate([
205
+ (0, swagger_1.ApiProperty)({ type: () => [BillerChargeConfigurationResponseDTO], required: false }),
206
+ __metadata("design:type", Array)
207
+ ], ServiceResponseDTO.prototype, "chargeConfigurations", void 0);
10
208
  class BankResponseDTO {
11
209
  }
12
210
  exports.BankResponseDTO = BankResponseDTO;
211
+ __decorate([
212
+ (0, swagger_1.ApiProperty)(),
213
+ __metadata("design:type", String)
214
+ ], BankResponseDTO.prototype, "id", void 0);
215
+ __decorate([
216
+ (0, swagger_1.ApiProperty)(),
217
+ __metadata("design:type", String)
218
+ ], BankResponseDTO.prototype, "name", void 0);
219
+ __decorate([
220
+ (0, swagger_1.ApiProperty)(),
221
+ __metadata("design:type", String)
222
+ ], BankResponseDTO.prototype, "slug", void 0);
223
+ __decorate([
224
+ (0, swagger_1.ApiProperty)(),
225
+ __metadata("design:type", String)
226
+ ], BankResponseDTO.prototype, "code", void 0);
227
+ __decorate([
228
+ (0, swagger_1.ApiProperty)(),
229
+ __metadata("design:type", String)
230
+ ], BankResponseDTO.prototype, "longCode", void 0);
231
+ __decorate([
232
+ (0, swagger_1.ApiProperty)({ type: () => [SettlementAccountResponseDTO], required: false }),
233
+ __metadata("design:type", Array)
234
+ ], BankResponseDTO.prototype, "settlementAccounts", void 0);
13
235
  class BillerResponseDTO {
14
236
  }
15
237
  exports.BillerResponseDTO = BillerResponseDTO;
238
+ __decorate([
239
+ (0, swagger_1.ApiProperty)(),
240
+ __metadata("design:type", String)
241
+ ], BillerResponseDTO.prototype, "id", void 0);
242
+ __decorate([
243
+ (0, swagger_1.ApiProperty)(),
244
+ __metadata("design:type", String)
245
+ ], BillerResponseDTO.prototype, "categoryId", void 0);
246
+ __decorate([
247
+ (0, swagger_1.ApiProperty)(),
248
+ __metadata("design:type", String)
249
+ ], BillerResponseDTO.prototype, "name", void 0);
250
+ __decorate([
251
+ (0, swagger_1.ApiProperty)(),
252
+ __metadata("design:type", Boolean)
253
+ ], BillerResponseDTO.prototype, "live", void 0);
254
+ __decorate([
255
+ (0, swagger_1.ApiProperty)(),
256
+ __metadata("design:type", Boolean)
257
+ ], BillerResponseDTO.prototype, "active", void 0);
258
+ __decorate([
259
+ (0, swagger_1.ApiProperty)({ required: false }),
260
+ __metadata("design:type", String)
261
+ ], BillerResponseDTO.prototype, "slug", void 0);
262
+ __decorate([
263
+ (0, swagger_1.ApiProperty)({ required: false }),
264
+ __metadata("design:type", String)
265
+ ], BillerResponseDTO.prototype, "billerCode", void 0);
266
+ __decorate([
267
+ (0, swagger_1.ApiProperty)(),
268
+ __metadata("design:type", Date)
269
+ ], BillerResponseDTO.prototype, "createdAt", void 0);
270
+ __decorate([
271
+ (0, swagger_1.ApiProperty)(),
272
+ __metadata("design:type", Date)
273
+ ], BillerResponseDTO.prototype, "updatedAt", void 0);
274
+ __decorate([
275
+ (0, swagger_1.ApiProperty)({ type: () => BillerCategoryResponseDTO }),
276
+ __metadata("design:type", BillerCategoryResponseDTO)
277
+ ], BillerResponseDTO.prototype, "category", void 0);
278
+ __decorate([
279
+ (0, swagger_1.ApiProperty)({ type: () => [SettlementAccountResponseDTO] }),
280
+ __metadata("design:type", Array)
281
+ ], BillerResponseDTO.prototype, "settlementAccounts", void 0);
282
+ __decorate([
283
+ (0, swagger_1.ApiProperty)({ type: () => BillerProfileResponseDTO, required: false }),
284
+ __metadata("design:type", BillerProfileResponseDTO)
285
+ ], BillerResponseDTO.prototype, "profile", void 0);
286
+ __decorate([
287
+ (0, swagger_1.ApiProperty)({ type: () => [BillerChargeConfigurationResponseDTO] }),
288
+ __metadata("design:type", Array)
289
+ ], BillerResponseDTO.prototype, "chargeConfigurations", void 0);
290
+ __decorate([
291
+ (0, swagger_1.ApiProperty)({ type: () => GoLiveRequestResponseDTO, required: false }),
292
+ __metadata("design:type", GoLiveRequestResponseDTO)
293
+ ], BillerResponseDTO.prototype, "goLiveRequest", void 0);
294
+ __decorate([
295
+ (0, swagger_1.ApiProperty)({ type: () => [BillerDocumentResponseDTO] }),
296
+ __metadata("design:type", Array)
297
+ ], BillerResponseDTO.prototype, "documents", void 0);
298
+ __decorate([
299
+ (0, swagger_1.ApiProperty)({ type: () => BillerContactResponseDTO, required: false }),
300
+ __metadata("design:type", BillerContactResponseDTO)
301
+ ], BillerResponseDTO.prototype, "contact", void 0);
302
+ __decorate([
303
+ (0, swagger_1.ApiProperty)({ type: () => [CustomerResponseDTO] }),
304
+ __metadata("design:type", Array)
305
+ ], BillerResponseDTO.prototype, "customers", void 0);
306
+ __decorate([
307
+ (0, swagger_1.ApiProperty)({ type: () => [BillerItemResponseDTO] }),
308
+ __metadata("design:type", Array)
309
+ ], BillerResponseDTO.prototype, "items", void 0);
310
+ __decorate([
311
+ (0, swagger_1.ApiProperty)({ type: () => [InvoiceResponseDTO] }),
312
+ __metadata("design:type", Array)
313
+ ], BillerResponseDTO.prototype, "invoices", void 0);
16
314
  class BillerProfileResponseDTO {
17
315
  }
18
316
  exports.BillerProfileResponseDTO = BillerProfileResponseDTO;
317
+ __decorate([
318
+ (0, swagger_1.ApiProperty)(),
319
+ __metadata("design:type", String)
320
+ ], BillerProfileResponseDTO.prototype, "id", void 0);
321
+ __decorate([
322
+ (0, swagger_1.ApiProperty)({ required: false }),
323
+ __metadata("design:type", String)
324
+ ], BillerProfileResponseDTO.prototype, "name", void 0);
325
+ __decorate([
326
+ (0, swagger_1.ApiProperty)(),
327
+ __metadata("design:type", String)
328
+ ], BillerProfileResponseDTO.prototype, "billerId", void 0);
329
+ __decorate([
330
+ (0, swagger_1.ApiProperty)(),
331
+ __metadata("design:type", Boolean)
332
+ ], BillerProfileResponseDTO.prototype, "hasTransactionLimit", void 0);
333
+ __decorate([
334
+ (0, swagger_1.ApiProperty)(),
335
+ __metadata("design:type", Number)
336
+ ], BillerProfileResponseDTO.prototype, "transactionLimit", void 0);
337
+ __decorate([
338
+ (0, swagger_1.ApiProperty)(),
339
+ __metadata("design:type", String)
340
+ ], BillerProfileResponseDTO.prototype, "delimiter", void 0);
341
+ __decorate([
342
+ (0, swagger_1.ApiProperty)(),
343
+ __metadata("design:type", Date)
344
+ ], BillerProfileResponseDTO.prototype, "createdAt", void 0);
345
+ __decorate([
346
+ (0, swagger_1.ApiProperty)(),
347
+ __metadata("design:type", Date)
348
+ ], BillerProfileResponseDTO.prototype, "updatedAt", void 0);
349
+ __decorate([
350
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
351
+ __metadata("design:type", BillerResponseDTO)
352
+ ], BillerProfileResponseDTO.prototype, "biller", void 0);
19
353
  class BillerChargeConfigurationResponseDTO {
20
354
  }
21
355
  exports.BillerChargeConfigurationResponseDTO = BillerChargeConfigurationResponseDTO;
356
+ __decorate([
357
+ (0, swagger_1.ApiProperty)(),
358
+ __metadata("design:type", String)
359
+ ], BillerChargeConfigurationResponseDTO.prototype, "id", void 0);
360
+ __decorate([
361
+ (0, swagger_1.ApiProperty)(),
362
+ __metadata("design:type", String)
363
+ ], BillerChargeConfigurationResponseDTO.prototype, "serviceId", void 0);
364
+ __decorate([
365
+ (0, swagger_1.ApiProperty)(),
366
+ __metadata("design:type", Boolean)
367
+ ], BillerChargeConfigurationResponseDTO.prototype, "active", void 0);
368
+ __decorate([
369
+ (0, swagger_1.ApiProperty)(),
370
+ __metadata("design:type", Boolean)
371
+ ], BillerChargeConfigurationResponseDTO.prototype, "capped", void 0);
372
+ __decorate([
373
+ (0, swagger_1.ApiProperty)(),
374
+ __metadata("design:type", Boolean)
375
+ ], BillerChargeConfigurationResponseDTO.prototype, "floored", void 0);
376
+ __decorate([
377
+ (0, swagger_1.ApiProperty)(),
378
+ __metadata("design:type", Number)
379
+ ], BillerChargeConfigurationResponseDTO.prototype, "chargeCap", void 0);
380
+ __decorate([
381
+ (0, swagger_1.ApiProperty)(),
382
+ __metadata("design:type", Number)
383
+ ], BillerChargeConfigurationResponseDTO.prototype, "chargeFloor", void 0);
384
+ __decorate([
385
+ (0, swagger_1.ApiProperty)(),
386
+ __metadata("design:type", String)
387
+ ], BillerChargeConfigurationResponseDTO.prototype, "currency", void 0);
388
+ __decorate([
389
+ (0, swagger_1.ApiProperty)(),
390
+ __metadata("design:type", String)
391
+ ], BillerChargeConfigurationResponseDTO.prototype, "chargeType", void 0);
392
+ __decorate([
393
+ (0, swagger_1.ApiProperty)(),
394
+ __metadata("design:type", Number)
395
+ ], BillerChargeConfigurationResponseDTO.prototype, "fixedAmount", void 0);
396
+ __decorate([
397
+ (0, swagger_1.ApiProperty)(),
398
+ __metadata("design:type", Number)
399
+ ], BillerChargeConfigurationResponseDTO.prototype, "percentAmount", void 0);
400
+ __decorate([
401
+ (0, swagger_1.ApiProperty)(),
402
+ __metadata("design:type", Date)
403
+ ], BillerChargeConfigurationResponseDTO.prototype, "createdAt", void 0);
404
+ __decorate([
405
+ (0, swagger_1.ApiProperty)(),
406
+ __metadata("design:type", Date)
407
+ ], BillerChargeConfigurationResponseDTO.prototype, "updatedAt", void 0);
408
+ __decorate([
409
+ (0, swagger_1.ApiProperty)({ type: () => [BillerResponseDTO], required: false }),
410
+ __metadata("design:type", Array)
411
+ ], BillerChargeConfigurationResponseDTO.prototype, "biller", void 0);
412
+ __decorate([
413
+ (0, swagger_1.ApiProperty)({ type: () => ServiceResponseDTO }),
414
+ __metadata("design:type", ServiceResponseDTO)
415
+ ], BillerChargeConfigurationResponseDTO.prototype, "service", void 0);
22
416
  class SettlementAccountResponseDTO {
23
417
  }
24
418
  exports.SettlementAccountResponseDTO = SettlementAccountResponseDTO;
419
+ __decorate([
420
+ (0, swagger_1.ApiProperty)(),
421
+ __metadata("design:type", String)
422
+ ], SettlementAccountResponseDTO.prototype, "id", void 0);
423
+ __decorate([
424
+ (0, swagger_1.ApiProperty)(),
425
+ __metadata("design:type", String)
426
+ ], SettlementAccountResponseDTO.prototype, "billerId", void 0);
427
+ __decorate([
428
+ (0, swagger_1.ApiProperty)(),
429
+ __metadata("design:type", String)
430
+ ], SettlementAccountResponseDTO.prototype, "bankId", void 0);
431
+ __decorate([
432
+ (0, swagger_1.ApiProperty)(),
433
+ __metadata("design:type", Boolean)
434
+ ], SettlementAccountResponseDTO.prototype, "default", void 0);
435
+ __decorate([
436
+ (0, swagger_1.ApiProperty)(),
437
+ __metadata("design:type", String)
438
+ ], SettlementAccountResponseDTO.prototype, "accountName", void 0);
439
+ __decorate([
440
+ (0, swagger_1.ApiProperty)(),
441
+ __metadata("design:type", String)
442
+ ], SettlementAccountResponseDTO.prototype, "accountNumber", void 0);
443
+ __decorate([
444
+ (0, swagger_1.ApiProperty)(),
445
+ __metadata("design:type", String)
446
+ ], SettlementAccountResponseDTO.prototype, "currency", void 0);
447
+ __decorate([
448
+ (0, swagger_1.ApiProperty)(),
449
+ __metadata("design:type", Date)
450
+ ], SettlementAccountResponseDTO.prototype, "createdAt", void 0);
451
+ __decorate([
452
+ (0, swagger_1.ApiProperty)(),
453
+ __metadata("design:type", Date)
454
+ ], SettlementAccountResponseDTO.prototype, "updatedAt", void 0);
455
+ __decorate([
456
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
457
+ __metadata("design:type", BillerResponseDTO)
458
+ ], SettlementAccountResponseDTO.prototype, "biller", void 0);
459
+ __decorate([
460
+ (0, swagger_1.ApiProperty)({ type: () => BankResponseDTO }),
461
+ __metadata("design:type", BankResponseDTO)
462
+ ], SettlementAccountResponseDTO.prototype, "bank", void 0);
463
+ __decorate([
464
+ (0, swagger_1.ApiProperty)({ type: () => OnboardedAccountResponseDTO, required: false }),
465
+ __metadata("design:type", OnboardedAccountResponseDTO)
466
+ ], SettlementAccountResponseDTO.prototype, "onboardedAccount", void 0);
25
467
  class OnboardedAccountResponseDTO {
26
468
  }
27
469
  exports.OnboardedAccountResponseDTO = OnboardedAccountResponseDTO;
470
+ __decorate([
471
+ (0, swagger_1.ApiProperty)(),
472
+ __metadata("design:type", String)
473
+ ], OnboardedAccountResponseDTO.prototype, "id", void 0);
474
+ __decorate([
475
+ (0, swagger_1.ApiProperty)(),
476
+ __metadata("design:type", String)
477
+ ], OnboardedAccountResponseDTO.prototype, "settlementAccountId", void 0);
478
+ __decorate([
479
+ (0, swagger_1.ApiProperty)(),
480
+ __metadata("design:type", String)
481
+ ], OnboardedAccountResponseDTO.prototype, "vendor", void 0);
482
+ __decorate([
483
+ (0, swagger_1.ApiProperty)(),
484
+ __metadata("design:type", Date)
485
+ ], OnboardedAccountResponseDTO.prototype, "createdAt", void 0);
486
+ __decorate([
487
+ (0, swagger_1.ApiProperty)(),
488
+ __metadata("design:type", Date)
489
+ ], OnboardedAccountResponseDTO.prototype, "updatedAt", void 0);
490
+ __decorate([
491
+ (0, swagger_1.ApiProperty)({ type: () => SettlementAccountResponseDTO }),
492
+ __metadata("design:type", SettlementAccountResponseDTO)
493
+ ], OnboardedAccountResponseDTO.prototype, "settlementAccount", void 0);
28
494
  class BillerDocumentResponseDTO {
29
495
  }
30
496
  exports.BillerDocumentResponseDTO = BillerDocumentResponseDTO;
497
+ __decorate([
498
+ (0, swagger_1.ApiProperty)(),
499
+ __metadata("design:type", String)
500
+ ], BillerDocumentResponseDTO.prototype, "id", void 0);
501
+ __decorate([
502
+ (0, swagger_1.ApiProperty)(),
503
+ __metadata("design:type", String)
504
+ ], BillerDocumentResponseDTO.prototype, "billerId", void 0);
505
+ __decorate([
506
+ (0, swagger_1.ApiProperty)(),
507
+ __metadata("design:type", String)
508
+ ], BillerDocumentResponseDTO.prototype, "url", void 0);
509
+ __decorate([
510
+ (0, swagger_1.ApiProperty)(),
511
+ __metadata("design:type", String)
512
+ ], BillerDocumentResponseDTO.prototype, "type", void 0);
513
+ __decorate([
514
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
515
+ __metadata("design:type", BillerResponseDTO)
516
+ ], BillerDocumentResponseDTO.prototype, "biller", void 0);
31
517
  class GoLiveRequestResponseDTO {
32
518
  }
33
519
  exports.GoLiveRequestResponseDTO = GoLiveRequestResponseDTO;
520
+ __decorate([
521
+ (0, swagger_1.ApiProperty)(),
522
+ __metadata("design:type", String)
523
+ ], GoLiveRequestResponseDTO.prototype, "id", void 0);
524
+ __decorate([
525
+ (0, swagger_1.ApiProperty)(),
526
+ __metadata("design:type", String)
527
+ ], GoLiveRequestResponseDTO.prototype, "billerId", void 0);
528
+ __decorate([
529
+ (0, swagger_1.ApiProperty)(),
530
+ __metadata("design:type", String)
531
+ ], GoLiveRequestResponseDTO.prototype, "status", void 0);
532
+ __decorate([
533
+ (0, swagger_1.ApiProperty)(),
534
+ __metadata("design:type", Date)
535
+ ], GoLiveRequestResponseDTO.prototype, "createdAt", void 0);
536
+ __decorate([
537
+ (0, swagger_1.ApiProperty)(),
538
+ __metadata("design:type", Date)
539
+ ], GoLiveRequestResponseDTO.prototype, "updatedAt", void 0);
540
+ __decorate([
541
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
542
+ __metadata("design:type", BillerResponseDTO)
543
+ ], GoLiveRequestResponseDTO.prototype, "biller", void 0);
34
544
  class BillerContactResponseDTO {
35
545
  }
36
546
  exports.BillerContactResponseDTO = BillerContactResponseDTO;
547
+ __decorate([
548
+ (0, swagger_1.ApiProperty)(),
549
+ __metadata("design:type", String)
550
+ ], BillerContactResponseDTO.prototype, "id", void 0);
551
+ __decorate([
552
+ (0, swagger_1.ApiProperty)(),
553
+ __metadata("design:type", String)
554
+ ], BillerContactResponseDTO.prototype, "billerId", void 0);
555
+ __decorate([
556
+ (0, swagger_1.ApiProperty)(),
557
+ __metadata("design:type", String)
558
+ ], BillerContactResponseDTO.prototype, "contactName", void 0);
559
+ __decorate([
560
+ (0, swagger_1.ApiProperty)(),
561
+ __metadata("design:type", String)
562
+ ], BillerContactResponseDTO.prototype, "emailAddress", void 0);
563
+ __decorate([
564
+ (0, swagger_1.ApiProperty)({ required: false }),
565
+ __metadata("design:type", String)
566
+ ], BillerContactResponseDTO.prototype, "phoneNumber", void 0);
567
+ __decorate([
568
+ (0, swagger_1.ApiProperty)(),
569
+ __metadata("design:type", Date)
570
+ ], BillerContactResponseDTO.prototype, "dob", void 0);
571
+ __decorate([
572
+ (0, swagger_1.ApiProperty)(),
573
+ __metadata("design:type", String)
574
+ ], BillerContactResponseDTO.prototype, "address", void 0);
575
+ __decorate([
576
+ (0, swagger_1.ApiProperty)(),
577
+ __metadata("design:type", String)
578
+ ], BillerContactResponseDTO.prototype, "country", void 0);
579
+ __decorate([
580
+ (0, swagger_1.ApiProperty)(),
581
+ __metadata("design:type", String)
582
+ ], BillerContactResponseDTO.prototype, "city", void 0);
583
+ __decorate([
584
+ (0, swagger_1.ApiProperty)(),
585
+ __metadata("design:type", String)
586
+ ], BillerContactResponseDTO.prototype, "state", void 0);
587
+ __decorate([
588
+ (0, swagger_1.ApiProperty)(),
589
+ __metadata("design:type", Date)
590
+ ], BillerContactResponseDTO.prototype, "createdAt", void 0);
591
+ __decorate([
592
+ (0, swagger_1.ApiProperty)(),
593
+ __metadata("design:type", Date)
594
+ ], BillerContactResponseDTO.prototype, "updatedAt", void 0);
595
+ __decorate([
596
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
597
+ __metadata("design:type", BillerResponseDTO)
598
+ ], BillerContactResponseDTO.prototype, "biller", void 0);
37
599
  class CustomerResponseDTO {
38
600
  }
39
601
  exports.CustomerResponseDTO = CustomerResponseDTO;
602
+ __decorate([
603
+ (0, swagger_1.ApiProperty)(),
604
+ __metadata("design:type", String)
605
+ ], CustomerResponseDTO.prototype, "id", void 0);
606
+ __decorate([
607
+ (0, swagger_1.ApiProperty)(),
608
+ __metadata("design:type", String)
609
+ ], CustomerResponseDTO.prototype, "billerId", void 0);
610
+ __decorate([
611
+ (0, swagger_1.ApiProperty)(),
612
+ __metadata("design:type", String)
613
+ ], CustomerResponseDTO.prototype, "name", void 0);
614
+ __decorate([
615
+ (0, swagger_1.ApiProperty)({ required: false }),
616
+ __metadata("design:type", String)
617
+ ], CustomerResponseDTO.prototype, "emailAddress", void 0);
618
+ __decorate([
619
+ (0, swagger_1.ApiProperty)({ required: false }),
620
+ __metadata("design:type", String)
621
+ ], CustomerResponseDTO.prototype, "phoneNumber", void 0);
622
+ __decorate([
623
+ (0, swagger_1.ApiProperty)(),
624
+ __metadata("design:type", Date)
625
+ ], CustomerResponseDTO.prototype, "createdAt", void 0);
626
+ __decorate([
627
+ (0, swagger_1.ApiProperty)(),
628
+ __metadata("design:type", Date)
629
+ ], CustomerResponseDTO.prototype, "updatedAt", void 0);
630
+ __decorate([
631
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
632
+ __metadata("design:type", BillerResponseDTO)
633
+ ], CustomerResponseDTO.prototype, "biller", void 0);
634
+ __decorate([
635
+ (0, swagger_1.ApiProperty)({ type: () => [InvoiceResponseDTO] }),
636
+ __metadata("design:type", Array)
637
+ ], CustomerResponseDTO.prototype, "invoices", void 0);
40
638
  class BillerItemResponseDTO {
41
639
  }
42
640
  exports.BillerItemResponseDTO = BillerItemResponseDTO;
641
+ __decorate([
642
+ (0, swagger_1.ApiProperty)(),
643
+ __metadata("design:type", String)
644
+ ], BillerItemResponseDTO.prototype, "id", void 0);
645
+ __decorate([
646
+ (0, swagger_1.ApiProperty)(),
647
+ __metadata("design:type", String)
648
+ ], BillerItemResponseDTO.prototype, "billerId", void 0);
649
+ __decorate([
650
+ (0, swagger_1.ApiProperty)(),
651
+ __metadata("design:type", Number)
652
+ ], BillerItemResponseDTO.prototype, "amount", void 0);
653
+ __decorate([
654
+ (0, swagger_1.ApiProperty)({ required: false }),
655
+ __metadata("design:type", String)
656
+ ], BillerItemResponseDTO.prototype, "source", void 0);
657
+ __decorate([
658
+ (0, swagger_1.ApiProperty)({ required: false }),
659
+ __metadata("design:type", String)
660
+ ], BillerItemResponseDTO.prototype, "customerIdentifierName", void 0);
661
+ __decorate([
662
+ (0, swagger_1.ApiProperty)(),
663
+ __metadata("design:type", Number)
664
+ ], BillerItemResponseDTO.prototype, "serviceFee", void 0);
665
+ __decorate([
666
+ (0, swagger_1.ApiProperty)(),
667
+ __metadata("design:type", String)
668
+ ], BillerItemResponseDTO.prototype, "currency", void 0);
669
+ __decorate([
670
+ (0, swagger_1.ApiProperty)({ required: false }),
671
+ __metadata("design:type", String)
672
+ ], BillerItemResponseDTO.prototype, "description", void 0);
673
+ __decorate([
674
+ (0, swagger_1.ApiProperty)(),
675
+ __metadata("design:type", Boolean)
676
+ ], BillerItemResponseDTO.prototype, "external", void 0);
677
+ __decorate([
678
+ (0, swagger_1.ApiProperty)(),
679
+ __metadata("design:type", Date)
680
+ ], BillerItemResponseDTO.prototype, "createdAt", void 0);
681
+ __decorate([
682
+ (0, swagger_1.ApiProperty)(),
683
+ __metadata("design:type", Date)
684
+ ], BillerItemResponseDTO.prototype, "updatedAt", void 0);
685
+ __decorate([
686
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
687
+ __metadata("design:type", BillerResponseDTO)
688
+ ], BillerItemResponseDTO.prototype, "biller", void 0);
689
+ __decorate([
690
+ (0, swagger_1.ApiProperty)({ type: () => [InvoiceResponseDTO] }),
691
+ __metadata("design:type", Array)
692
+ ], BillerItemResponseDTO.prototype, "invoices", void 0);
43
693
  class InvoiceResponseDTO {
44
694
  }
45
695
  exports.InvoiceResponseDTO = InvoiceResponseDTO;
696
+ __decorate([
697
+ (0, swagger_1.ApiProperty)(),
698
+ __metadata("design:type", String)
699
+ ], InvoiceResponseDTO.prototype, "id", void 0);
700
+ __decorate([
701
+ (0, swagger_1.ApiProperty)(),
702
+ __metadata("design:type", String)
703
+ ], InvoiceResponseDTO.prototype, "billerId", void 0);
704
+ __decorate([
705
+ (0, swagger_1.ApiProperty)(),
706
+ __metadata("design:type", String)
707
+ ], InvoiceResponseDTO.prototype, "customerId", void 0);
708
+ __decorate([
709
+ (0, swagger_1.ApiProperty)(),
710
+ __metadata("design:type", Number)
711
+ ], InvoiceResponseDTO.prototype, "discountValue", void 0);
712
+ __decorate([
713
+ (0, swagger_1.ApiProperty)(),
714
+ __metadata("design:type", String)
715
+ ], InvoiceResponseDTO.prototype, "discountType", void 0);
716
+ __decorate([
717
+ (0, swagger_1.ApiProperty)(),
718
+ __metadata("design:type", Date)
719
+ ], InvoiceResponseDTO.prototype, "dueDate", void 0);
720
+ __decorate([
721
+ (0, swagger_1.ApiProperty)(),
722
+ __metadata("design:type", String)
723
+ ], InvoiceResponseDTO.prototype, "status", void 0);
724
+ __decorate([
725
+ (0, swagger_1.ApiProperty)(),
726
+ __metadata("design:type", Date)
727
+ ], InvoiceResponseDTO.prototype, "createdAt", void 0);
728
+ __decorate([
729
+ (0, swagger_1.ApiProperty)(),
730
+ __metadata("design:type", Date)
731
+ ], InvoiceResponseDTO.prototype, "updatedAt", void 0);
732
+ __decorate([
733
+ (0, swagger_1.ApiProperty)({ type: () => [BillerItemResponseDTO] }),
734
+ __metadata("design:type", Array)
735
+ ], InvoiceResponseDTO.prototype, "billerItems", void 0);
736
+ __decorate([
737
+ (0, swagger_1.ApiProperty)({ type: () => BillerResponseDTO }),
738
+ __metadata("design:type", BillerResponseDTO)
739
+ ], InvoiceResponseDTO.prototype, "biller", void 0);
740
+ __decorate([
741
+ (0, swagger_1.ApiProperty)({ type: () => CustomerResponseDTO }),
742
+ __metadata("design:type", CustomerResponseDTO)
743
+ ], InvoiceResponseDTO.prototype, "customer", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -1,173 +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
+
1
177
  export class BillerCategoryResponseDTO {
178
+ @ApiProperty()
2
179
  id: string;
180
+
181
+ @ApiProperty()
3
182
  name: string;
183
+
184
+ @ApiProperty({ required: false })
4
185
  description?: string;
186
+
187
+ @ApiProperty({ type: () => [BillerResponseDTO], required: false })
5
188
  billers?: BillerResponseDTO[];
6
189
  }
7
190
 
8
191
  export class ServiceResponseDTO {
192
+ @ApiProperty()
9
193
  id: string;
194
+
195
+ @ApiProperty()
10
196
  name: string;
197
+
198
+ @ApiProperty({ type: () => [BillerChargeConfigurationResponseDTO], required: false })
11
199
  chargeConfigurations?: BillerChargeConfigurationResponseDTO[];
12
200
  }
13
201
 
14
202
  export class BankResponseDTO {
203
+ @ApiProperty()
15
204
  id: string;
205
+
206
+ @ApiProperty()
16
207
  name: string;
208
+
209
+ @ApiProperty()
17
210
  slug: string;
211
+
212
+ @ApiProperty()
18
213
  code: string;
214
+
215
+ @ApiProperty()
19
216
  longCode: string;
217
+
218
+ @ApiProperty({ type: () => [SettlementAccountResponseDTO], required: false })
20
219
  settlementAccounts?: SettlementAccountResponseDTO[];
21
220
  }
22
221
 
23
222
  export class BillerResponseDTO {
223
+ @ApiProperty()
24
224
  id: string;
225
+
226
+ @ApiProperty()
25
227
  categoryId: string;
228
+
229
+ @ApiProperty()
26
230
  name: string;
231
+
232
+ @ApiProperty()
27
233
  live: boolean;
234
+
235
+ @ApiProperty()
28
236
  active: boolean;
237
+
238
+ @ApiProperty({ required: false })
29
239
  slug?: string;
240
+
241
+ @ApiProperty({ required: false })
30
242
  billerCode?: string;
243
+
244
+ @ApiProperty()
31
245
  createdAt: Date;
246
+
247
+ @ApiProperty()
32
248
  updatedAt: Date;
249
+
250
+ @ApiProperty({ type: () => BillerCategoryResponseDTO })
33
251
  category: BillerCategoryResponseDTO;
252
+
253
+ @ApiProperty({ type: () => [SettlementAccountResponseDTO] })
34
254
  settlementAccounts: SettlementAccountResponseDTO[];
255
+
256
+ @ApiProperty({ type: () => BillerProfileResponseDTO, required: false })
35
257
  profile?: BillerProfileResponseDTO;
258
+
259
+ @ApiProperty({ type: () => [BillerChargeConfigurationResponseDTO] })
36
260
  chargeConfigurations: BillerChargeConfigurationResponseDTO[];
261
+
262
+ @ApiProperty({ type: () => GoLiveRequestResponseDTO, required: false })
37
263
  goLiveRequest?: GoLiveRequestResponseDTO;
264
+
265
+ @ApiProperty({ type: () => [BillerDocumentResponseDTO] })
38
266
  documents: BillerDocumentResponseDTO[];
267
+
268
+ @ApiProperty({ type: () => BillerContactResponseDTO, required: false })
39
269
  contact?: BillerContactResponseDTO;
270
+
271
+ @ApiProperty({ type: () => [CustomerResponseDTO] })
40
272
  customers: CustomerResponseDTO[];
273
+
274
+ @ApiProperty({ type: () => [BillerItemResponseDTO] })
41
275
  items: BillerItemResponseDTO[];
276
+
277
+ @ApiProperty({ type: () => [InvoiceResponseDTO] })
42
278
  invoices: InvoiceResponseDTO[];
43
279
  }
44
280
 
45
281
  export class BillerProfileResponseDTO {
282
+ @ApiProperty()
46
283
  id: string;
284
+
285
+ @ApiProperty({ required: false })
47
286
  name?: string;
287
+
288
+ @ApiProperty()
48
289
  billerId: string;
290
+
291
+ @ApiProperty()
49
292
  hasTransactionLimit: boolean;
293
+
294
+ @ApiProperty()
50
295
  transactionLimit: number;
51
- delimiter: string; // TIME_DELIMITER
296
+
297
+ @ApiProperty()
298
+ delimiter: string;
299
+
300
+ @ApiProperty()
52
301
  createdAt: Date;
302
+
303
+ @ApiProperty()
53
304
  updatedAt: Date;
305
+
306
+ @ApiProperty({ type: () => BillerResponseDTO })
54
307
  biller: BillerResponseDTO;
55
308
  }
56
309
 
57
310
  export class BillerChargeConfigurationResponseDTO {
311
+ @ApiProperty()
58
312
  id: string;
313
+
314
+ @ApiProperty()
59
315
  serviceId: string;
316
+
317
+ @ApiProperty()
60
318
  active: boolean;
319
+
320
+ @ApiProperty()
61
321
  capped: boolean;
322
+
323
+ @ApiProperty()
62
324
  floored: boolean;
325
+
326
+ @ApiProperty()
63
327
  chargeCap: number;
328
+
329
+ @ApiProperty()
64
330
  chargeFloor: number;
331
+
332
+ @ApiProperty()
65
333
  currency: string;
66
- chargeType: string; // CHARGE_TYPE
334
+
335
+ @ApiProperty()
336
+ chargeType: string;
337
+
338
+ @ApiProperty()
67
339
  fixedAmount: number;
340
+
341
+ @ApiProperty()
68
342
  percentAmount: number;
343
+
344
+ @ApiProperty()
69
345
  createdAt: Date;
346
+
347
+ @ApiProperty()
70
348
  updatedAt: Date;
349
+
350
+ @ApiProperty({ type: () => [BillerResponseDTO], required: false })
71
351
  biller?: BillerResponseDTO[];
352
+
353
+ @ApiProperty({ type: () => ServiceResponseDTO })
72
354
  service: ServiceResponseDTO;
73
355
  }
74
356
 
75
357
  export class SettlementAccountResponseDTO {
358
+ @ApiProperty()
76
359
  id: string;
360
+
361
+ @ApiProperty()
77
362
  billerId: string;
363
+
364
+ @ApiProperty()
78
365
  bankId: string;
366
+
367
+ @ApiProperty()
79
368
  default: boolean;
369
+
370
+ @ApiProperty()
80
371
  accountName: string;
372
+
373
+ @ApiProperty()
81
374
  accountNumber: string;
375
+
376
+ @ApiProperty()
82
377
  currency: string;
378
+
379
+ @ApiProperty()
83
380
  createdAt: Date;
381
+
382
+ @ApiProperty()
84
383
  updatedAt: Date;
384
+
385
+ @ApiProperty({ type: () => BillerResponseDTO })
85
386
  biller: BillerResponseDTO;
387
+
388
+ @ApiProperty({ type: () => BankResponseDTO })
86
389
  bank: BankResponseDTO;
390
+
391
+ @ApiProperty({ type: () => OnboardedAccountResponseDTO, required: false })
87
392
  onboardedAccount?: OnboardedAccountResponseDTO;
88
393
  }
89
394
 
90
395
  export class OnboardedAccountResponseDTO {
396
+ @ApiProperty()
91
397
  id: string;
398
+
399
+ @ApiProperty()
92
400
  settlementAccountId: string;
401
+
402
+ @ApiProperty()
93
403
  vendor: string;
404
+
405
+ @ApiProperty()
94
406
  createdAt: Date;
407
+
408
+ @ApiProperty()
95
409
  updatedAt: Date;
410
+
411
+ @ApiProperty({ type: () => SettlementAccountResponseDTO })
96
412
  settlementAccount: SettlementAccountResponseDTO;
97
413
  }
98
414
 
99
415
  export class BillerDocumentResponseDTO {
416
+ @ApiProperty()
100
417
  id: string;
418
+
419
+ @ApiProperty()
101
420
  billerId: string;
421
+
422
+ @ApiProperty()
102
423
  url: string;
103
- type: string; // DOCUMENT_TYPE
424
+
425
+ @ApiProperty()
426
+ type: string;
427
+
428
+ @ApiProperty({ type: () => BillerResponseDTO })
104
429
  biller: BillerResponseDTO;
105
430
  }
106
431
 
107
432
  export class GoLiveRequestResponseDTO {
433
+ @ApiProperty()
108
434
  id: string;
435
+
436
+ @ApiProperty()
109
437
  billerId: string;
110
- status: string; // REQUEST_STATUS
438
+
439
+ @ApiProperty()
440
+ status: string;
441
+
442
+ @ApiProperty()
111
443
  createdAt: Date;
444
+
445
+ @ApiProperty()
112
446
  updatedAt: Date;
447
+
448
+ @ApiProperty({ type: () => BillerResponseDTO })
113
449
  biller: BillerResponseDTO;
114
450
  }
115
451
 
116
452
  export class BillerContactResponseDTO {
453
+ @ApiProperty()
117
454
  id: string;
455
+
456
+ @ApiProperty()
118
457
  billerId: string;
458
+
459
+ @ApiProperty()
119
460
  contactName: string;
461
+
462
+ @ApiProperty()
120
463
  emailAddress: string;
464
+
465
+ @ApiProperty({ required: false })
121
466
  phoneNumber?: string;
467
+
468
+ @ApiProperty()
122
469
  dob: Date;
470
+
471
+ @ApiProperty()
123
472
  address: string;
473
+
474
+ @ApiProperty()
124
475
  country: string;
476
+
477
+ @ApiProperty()
125
478
  city: string;
479
+
480
+ @ApiProperty()
126
481
  state: string;
482
+
483
+ @ApiProperty()
127
484
  createdAt: Date;
485
+
486
+ @ApiProperty()
128
487
  updatedAt: Date;
488
+
489
+ @ApiProperty({ type: () => BillerResponseDTO })
129
490
  biller: BillerResponseDTO;
130
491
  }
131
492
 
132
493
  export class CustomerResponseDTO {
494
+ @ApiProperty()
133
495
  id: string;
496
+
497
+ @ApiProperty()
134
498
  billerId: string;
499
+
500
+ @ApiProperty()
135
501
  name: string;
502
+
503
+ @ApiProperty({ required: false })
136
504
  emailAddress?: string;
505
+
506
+ @ApiProperty({ required: false })
137
507
  phoneNumber?: string;
508
+
509
+ @ApiProperty()
138
510
  createdAt: Date;
511
+
512
+ @ApiProperty()
139
513
  updatedAt: Date;
514
+
515
+ @ApiProperty({ type: () => BillerResponseDTO })
140
516
  biller: BillerResponseDTO;
517
+
518
+ @ApiProperty({ type: () => [InvoiceResponseDTO] })
141
519
  invoices: InvoiceResponseDTO[];
142
520
  }
143
521
 
144
522
  export class BillerItemResponseDTO {
523
+ @ApiProperty()
145
524
  id: string;
525
+
526
+ @ApiProperty()
146
527
  billerId: string;
528
+
529
+ @ApiProperty()
147
530
  amount: number;
531
+
532
+ @ApiProperty({ required: false })
148
533
  source?: string;
534
+
535
+ @ApiProperty({ required: false })
149
536
  customerIdentifierName?: string;
537
+
538
+ @ApiProperty()
150
539
  serviceFee: number;
540
+
541
+ @ApiProperty()
151
542
  currency: string;
543
+
544
+ @ApiProperty({ required: false })
152
545
  description?: string;
546
+
547
+ @ApiProperty()
153
548
  external: boolean;
549
+
550
+ @ApiProperty()
154
551
  createdAt: Date;
552
+
553
+ @ApiProperty()
155
554
  updatedAt: Date;
555
+
556
+ @ApiProperty({ type: () => BillerResponseDTO })
156
557
  biller: BillerResponseDTO;
558
+
559
+ @ApiProperty({ type: () => [InvoiceResponseDTO] })
157
560
  invoices: InvoiceResponseDTO[];
158
561
  }
159
562
 
160
563
  export class InvoiceResponseDTO {
564
+ @ApiProperty()
161
565
  id: string;
566
+
567
+ @ApiProperty()
162
568
  billerId: string;
569
+
570
+ @ApiProperty()
163
571
  customerId: string;
572
+
573
+ @ApiProperty()
164
574
  discountValue: number;
165
- discountType: string; // DISCOUNT_TYPE
575
+
576
+ @ApiProperty()
577
+ discountType: string;
578
+
579
+ @ApiProperty()
166
580
  dueDate: Date;
167
- status: string; // INVOICE_STATUS
581
+
582
+ @ApiProperty()
583
+ status: string;
584
+
585
+ @ApiProperty()
168
586
  createdAt: Date;
587
+
588
+ @ApiProperty()
169
589
  updatedAt: Date;
590
+
591
+ @ApiProperty({ type: () => [BillerItemResponseDTO] })
170
592
  billerItems: BillerItemResponseDTO[];
593
+
594
+ @ApiProperty({ type: () => BillerResponseDTO })
171
595
  biller: BillerResponseDTO;
596
+
597
+ @ApiProperty({ type: () => CustomerResponseDTO })
172
598
  customer: CustomerResponseDTO;
173
599
  }