ravcredit-lib 0.0.7 → 0.0.9

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 (61) hide show
  1. package/ng-package.json +7 -0
  2. package/package.json +13 -24
  3. package/src/lib/ravcredit-lib.component.spec.ts +23 -0
  4. package/src/lib/ravcredit-lib.component.ts +16 -0
  5. package/src/lib/ravcredit-lib.service.spec.ts +16 -0
  6. package/src/lib/ravcredit-lib.service.ts +9 -0
  7. package/src/lib/v1/const/constants.ts +35 -0
  8. package/src/lib/v1/dto/AddressDto.ts +27 -0
  9. package/src/lib/v1/dto/BusinessDeadlineDto.ts +9 -0
  10. package/src/lib/v1/dto/ConektaDto.ts +386 -0
  11. package/src/lib/v1/dto/ContractDto.ts +46 -0
  12. package/src/lib/v1/dto/CustomerDto.ts +47 -0
  13. package/src/lib/v1/dto/DeviceDto.ts +13 -0
  14. package/src/lib/v1/dto/DynamiCoreDto.ts +1017 -0
  15. package/src/lib/v1/dto/FinancialDto.ts +156 -0
  16. package/src/lib/v1/dto/PassportDto.ts +143 -0
  17. package/src/lib/v1/dto/PayLinkResDto.ts +144 -0
  18. package/src/lib/v1/dto/PayOrderResAlternaDto.ts +348 -0
  19. package/src/lib/v1/dto/PayOrderResOxxoDto.ts +254 -0
  20. package/src/lib/v1/dto/PaymentLinkDto.ts +161 -0
  21. package/src/lib/v1/dto/ScheduleDto.ts +17 -0
  22. package/src/lib/v1/dto/UserDto.ts +27 -0
  23. package/src/lib/v1/dto/WeekScheduleDTO.ts +46 -0
  24. package/src/lib/v1/idb/idb.service.spec.ts +16 -0
  25. package/src/lib/v1/idb/indexed-db.service.ts +396 -0
  26. package/src/lib/v1/objects/oAddress.ts +19 -0
  27. package/src/lib/v1/objects/oBusiness.ts +112 -0
  28. package/src/lib/v1/objects/oClient.ts +46 -0
  29. package/src/lib/v1/objects/oConekta.ts +408 -0
  30. package/src/lib/v1/objects/oContract.ts +30 -0
  31. package/src/lib/v1/objects/oContractAll.ts +38 -0
  32. package/src/lib/v1/objects/oCustomer.ts +36 -0
  33. package/src/lib/v1/objects/oDevice.ts +5 -0
  34. package/src/lib/v1/objects/oFinancial.ts +32 -0
  35. package/src/lib/v1/objects/oGlobal.ts +186 -0
  36. package/src/lib/v1/objects/oLogIn.ts +43 -0
  37. package/src/lib/v1/objects/oNewPayment.ts +18 -0
  38. package/src/lib/v1/objects/oNotification.ts +34 -0
  39. package/src/lib/v1/objects/oPassport.ts +65 -0
  40. package/src/lib/v1/objects/oUser.ts +35 -0
  41. package/src/lib/v1/objects/oVerification.ts +48 -0
  42. package/src/lib/v1/util/UtilBusiness.ts +186 -0
  43. package/src/lib/v1/util/UtilClient.ts +285 -0
  44. package/src/lib/v1/util/UtilConekta.ts +97 -0
  45. package/src/lib/v1/util/UtilContract.ts +386 -0
  46. package/src/lib/v1/util/UtilDashboard.ts +19 -0
  47. package/src/lib/v1/util/UtilDynamiCore.ts +752 -0
  48. package/src/lib/v1/util/UtilNotification.ts +46 -0
  49. package/src/lib/v1/util/UtilPassport.ts +32 -0
  50. package/src/lib/v1/util/UtilPayment.ts +22 -0
  51. package/src/lib/v1/util/UtilTime.ts +181 -0
  52. package/src/lib/v1/util/UtilsHttp.ts +11 -0
  53. package/src/lib/v2/const/constants.ts +38 -0
  54. package/src/lib/v2/messaging/messaging.ts +10 -0
  55. package/src/public-api.ts +36 -0
  56. package/tsconfig.lib.json +15 -0
  57. package/tsconfig.lib.prod.json +11 -0
  58. package/tsconfig.spec.json +15 -0
  59. package/fesm2022/ravcredit-lib.mjs +0 -1982
  60. package/fesm2022/ravcredit-lib.mjs.map +0 -1
  61. package/index.d.ts +0 -1601
@@ -0,0 +1,1017 @@
1
+ // import { IsArray, IsBoolean, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
2
+ // import { Type } from 'class-transformer';
3
+ //
4
+ // export class IDCDataPiiDto {
5
+ // @IsString()
6
+ // icc: string | number;
7
+ //
8
+ // @IsString()
9
+ // rfc: string;
10
+ //
11
+ // @IsString()
12
+ // city: string;
13
+ //
14
+ // @IsString()
15
+ // curp: string;
16
+ //
17
+ // @IsString()
18
+ // imei: string | number;
19
+ //
20
+ // @IsString()
21
+ // name: string;
22
+ //
23
+ // @IsString()
24
+ // term: string | number;
25
+ //
26
+ // @IsString()
27
+ // brand: string;
28
+ //
29
+ // @IsString()
30
+ // email: string;
31
+ //
32
+ // @IsString()
33
+ // model: string;
34
+ //
35
+ // @IsString()
36
+ // phone: string | number;
37
+ //
38
+ // @IsOptional()
39
+ // score: any;
40
+ //
41
+ // @IsString()
42
+ // state: string;
43
+ //
44
+ // @IsString()
45
+ // amount: string | number;
46
+ //
47
+ // @IsString()
48
+ // colony: string;
49
+ //
50
+ // @IsOptional()
51
+ // estado: any;
52
+ //
53
+ // @IsString()
54
+ // gender: string;
55
+ //
56
+ // @IsString()
57
+ // period: string;
58
+ //
59
+ // @IsString()
60
+ // street: string;
61
+ //
62
+ // @IsString()
63
+ // num_ext: string | number;
64
+ //
65
+ // @IsString()
66
+ // num_int: string;
67
+ //
68
+ // @IsString()
69
+ // zipcode: string | number;
70
+ //
71
+ // @IsString()
72
+ // financed: string | number;
73
+ //
74
+ // @IsString()
75
+ // house_is: string;
76
+ //
77
+ // @IsString()
78
+ // lastname: string;
79
+ //
80
+ // @IsString()
81
+ // type_job: string;
82
+ //
83
+ // @IsString()
84
+ // birthdate: string;
85
+ //
86
+ // @IsString()
87
+ // birthstate: string;
88
+ //
89
+ // @IsString()
90
+ // dicio_data: string;
91
+ //
92
+ // @IsOptional()
93
+ // dicio_step: any;
94
+ //
95
+ // @IsString()
96
+ // secondname: string;
97
+ //
98
+ // @IsString()
99
+ // nationality: string;
100
+ //
101
+ // @IsString()
102
+ // seller_name: string;
103
+ //
104
+ // @IsString()
105
+ // down_payment: string | number;
106
+ //
107
+ // @IsString()
108
+ // municipality: string;
109
+ //
110
+ // @IsString()
111
+ // score_no_hit: string;
112
+ //
113
+ // @IsString()
114
+ // study_degree: string;
115
+ //
116
+ // @IsString()
117
+ // branch_office: string | number;
118
+ //
119
+ // @IsOptional()
120
+ // identity_data: any;
121
+ //
122
+ // @IsString()
123
+ // interest_rate: string | bigint;
124
+ //
125
+ // @IsString()
126
+ // marital_status: string;
127
+ //
128
+ // @IsString()
129
+ // monthly_income: string | number;
130
+ //
131
+ // @IsString()
132
+ // motherlastname: string;
133
+ //
134
+ // @IsString()
135
+ // score_rcc_fico: string;
136
+ //
137
+ // @IsOptional()
138
+ // identity_selfie: any;
139
+ //
140
+ // @IsString()
141
+ // amount_by_period: string | bigint;
142
+ //
143
+ // @IsOptional()
144
+ // identity_id_back: any;
145
+ //
146
+ // @IsOptional()
147
+ // identity_id_front: any;
148
+ //
149
+ // @IsString()
150
+ // economic_dependents: string;
151
+ //
152
+ // @IsOptional()
153
+ // identity_id_request: any;
154
+ //
155
+ // @IsOptional()
156
+ // identity_verification: any;
157
+ //
158
+ // @IsString()
159
+ // is_address_ine_currently_live: string | boolean;
160
+ // }
161
+ //
162
+ // // export interface IDCDataPii {
163
+ // // icc: string | number,
164
+ // // rfc: string,
165
+ // // city: string,
166
+ // // curp: string,
167
+ // // imei: string | number,
168
+ // // name: string,
169
+ // // term: string | number,
170
+ // // brand: string,
171
+ // // email: string,
172
+ // // model: string,
173
+ // // phone: string | number,
174
+ // // score: any,
175
+ // // state: string,
176
+ // // amount: string | number,
177
+ // // colony: string,
178
+ // // estado: any,
179
+ // // gender: string,
180
+ // // period: string,
181
+ // // street: string,
182
+ // // num_ext: string | number,
183
+ // // num_int: string,
184
+ // // zipcode: string | number,
185
+ // // financed: string | number,
186
+ // // house_is: string,
187
+ // // lastname: string,
188
+ // // type_job: string,
189
+ // // birthdate: string,
190
+ // // birthstate: string,
191
+ // // dicio_data: string,
192
+ // // dicio_step: any,
193
+ // // secondname: string,
194
+ // // nationality: string,
195
+ // // seller_name: string,
196
+ // // down_payment: string | number,
197
+ // // municipality: string,
198
+ // // score_no_hit: string,
199
+ // // study_degree: string,
200
+ // // branch_office: string | number,
201
+ // // identity_data: any,
202
+ // // interest_rate: string | bigint,
203
+ // // marital_status: string,
204
+ // // monthly_income: string | number,
205
+ // // motherlastname: string,
206
+ // // score_rcc_fico: string,
207
+ // // identity_selfie: any,
208
+ // // amount_by_period: string | bigint,
209
+ // // identity_id_back: any,
210
+ // // identity_id_front: any,
211
+ // // economic_dependents: string,
212
+ // // identity_id_request: any,
213
+ // // identity_verification: any,
214
+ // // is_address_ine_currently_live: string | boolean
215
+ // // }
216
+ //
217
+ // export class IDCAccountPropsDto {
218
+ // @IsString()
219
+ // clabe: string | number;
220
+ //
221
+ // @IsString()
222
+ // pagaqui: string | number;
223
+ //
224
+ // @IsString()
225
+ // start_date: string;
226
+ //
227
+ // @IsNumber()
228
+ // expected_disbursed: number;
229
+ //
230
+ // @IsString()
231
+ // reference_pagaaqui: string;
232
+ //
233
+ // @IsNumber()
234
+ // principal_disbursed: number;
235
+ //
236
+ // @IsNumber()
237
+ // amount_commission_opening: number;
238
+ // }
239
+ //
240
+ // // export interface IDCAccountProps {
241
+ // // clabe: string | number,
242
+ // // pagaqui: string | number,
243
+ // // start_date: string,
244
+ // // expected_disbursed: number,
245
+ // // reference_pagaaqui: string,
246
+ // // principal_disbursed: number,
247
+ // // amount_commission_opening: number
248
+ // // }
249
+ //
250
+ // export class IDCAccountConfigDto {
251
+ // @IsString()
252
+ // contract: string;
253
+ //
254
+ // @IsString()
255
+ // credit_type: string;
256
+ //
257
+ // @IsString()
258
+ // periodicity: string;
259
+ //
260
+ // @IsNumber()
261
+ // installments: number;
262
+ //
263
+ // @IsString()
264
+ // interest_base: string;
265
+ //
266
+ // @IsNumber()
267
+ // interest_rate: number;
268
+ //
269
+ // @IsNumber()
270
+ // interest_arrears: number;
271
+ //
272
+ // @IsNumber()
273
+ // commission_opening: number;
274
+ // }
275
+ //
276
+ // // export interface IDCAccountConfig {
277
+ // // contract: string,
278
+ // // credit_type: string,
279
+ // // periodicity: string,
280
+ // // installments: number,
281
+ // // interest_base: string,
282
+ // // interest_rate: number,
283
+ // // interest_arrears: number,
284
+ // // commission_opening: number
285
+ // // }
286
+ //
287
+ // export class IDCAccountDto {
288
+ // @IsNumber()
289
+ // id: number;
290
+ //
291
+ // @IsNumber()
292
+ // group: number;
293
+ //
294
+ // @IsNumber()
295
+ // company: number;
296
+ //
297
+ // @IsNumber()
298
+ // client: number;
299
+ //
300
+ // @IsString()
301
+ // created_at: string;
302
+ //
303
+ // @IsString()
304
+ // currency: string | number;
305
+ //
306
+ // @IsString()
307
+ // status: string;
308
+ //
309
+ // @ValidateNested()
310
+ // @Type(() => IDCAccountPropsDto)
311
+ // properties: IDCAccountPropsDto;
312
+ //
313
+ // @IsNumber()
314
+ // product: number;
315
+ //
316
+ // @IsString()
317
+ // enabled: string | number;
318
+ //
319
+ // @ValidateNested()
320
+ // @Type(() => IDCAccountConfigDto)
321
+ // config: IDCAccountConfigDto;
322
+ //
323
+ // @IsNumber()
324
+ // amount: number;
325
+ //
326
+ // @IsString()
327
+ // type: string;
328
+ //
329
+ // @IsString()
330
+ // identifier: string;
331
+ //
332
+ // @IsString()
333
+ // start_at: string;
334
+ //
335
+ // @IsOptional()
336
+ // el: any;
337
+ //
338
+ // @IsString()
339
+ // client_id: string | number;
340
+ // }
341
+ //
342
+ // // export interface IDCAccount {
343
+ // // id: number,
344
+ // // group: number,
345
+ // // company: number,
346
+ // // client: number,
347
+ // // created_at: string,
348
+ // // currency: string | number,
349
+ // // status: string,
350
+ // // properties: IDCAccountProps,
351
+ // // product: number,
352
+ // // enabled: string | number,
353
+ // // config: IDCAccountConfig,
354
+ // // amount: number,
355
+ // // type: string,
356
+ // // identifier: string,
357
+ // // start_at: string,
358
+ // // el: any,
359
+ // // client_id: string | number
360
+ // // }
361
+ //
362
+ // export class IDCTxnRowExtrasDto {
363
+ // @IsString()
364
+ // reference: string;
365
+ //
366
+ // @IsString()
367
+ // transaction: string;
368
+ // }
369
+ //
370
+ // // export interface IDCTxnRowExtras {
371
+ // // reference: string,
372
+ // // transaction: string
373
+ // // }
374
+ //
375
+ // export class IDCTxnRowDto {
376
+ // @IsString()
377
+ // id: string;
378
+ //
379
+ // @IsString()
380
+ // created_at: string;
381
+ //
382
+ // @IsNumber()
383
+ // seq: number;
384
+ //
385
+ // @IsString()
386
+ // created: string;
387
+ //
388
+ // @IsString()
389
+ // last4: string;
390
+ //
391
+ // @IsOptional()
392
+ // response: any;
393
+ //
394
+ // @IsString()
395
+ // transaction_id: string;
396
+ //
397
+ // @IsString()
398
+ // contrapart: string;
399
+ //
400
+ // @IsString()
401
+ // reference: string;
402
+ //
403
+ // @IsOptional()
404
+ // external_reference: any;
405
+ //
406
+ // @ValidateNested()
407
+ // @Type(() => IDCTxnRowExtrasDto)
408
+ // extras: IDCTxnRowExtrasDto;
409
+ //
410
+ // @IsString()
411
+ // name: string;
412
+ //
413
+ // @IsNumber()
414
+ // debit: number;
415
+ //
416
+ // @IsNumber()
417
+ // credit: number;
418
+ //
419
+ // @IsNumber()
420
+ // amount: number;
421
+ // }
422
+ //
423
+ // // export interface IDCTxnRow {
424
+ // // id: string,
425
+ // // created_at: string,
426
+ // // seq: number,
427
+ // // created: string,
428
+ // // last4: string,
429
+ // // response: any,
430
+ // // transaction_id: string,
431
+ // // contrapart: string,
432
+ // // reference: string,
433
+ // // external_reference: any,
434
+ // // extras: IDCTxnRowExtras,
435
+ // // name: string,
436
+ // // debit: number,
437
+ // // credit: number,
438
+ // // amount: number
439
+ // // }
440
+ //
441
+ // export class IDCTxnHeaderDto {
442
+ // @IsString()
443
+ // name: string;
444
+ //
445
+ // @IsString()
446
+ // type: string;
447
+ //
448
+ // @IsOptional()
449
+ // @IsString()
450
+ // label?: string;
451
+ //
452
+ // @IsOptional()
453
+ // @IsString()
454
+ // money?: string;
455
+ //
456
+ // @IsOptional()
457
+ // @IsString()
458
+ // format?: string;
459
+ // }
460
+ //
461
+ // // export interface IDCTxnHeader {
462
+ // // name: string,
463
+ // // type: string,
464
+ // // label?: string,
465
+ // // money?: string,
466
+ // // format?: string
467
+ // // }
468
+ //
469
+ // export class IDCTxnDto {
470
+ // @IsArray()
471
+ // @ValidateNested({ each: true })
472
+ // @Type(() => IDCTxnRowDto)
473
+ // rows: IDCTxnRowDto[];
474
+ //
475
+ // @IsArray()
476
+ // @ValidateNested({ each: true })
477
+ // @Type(() => IDCTxnHeaderDto)
478
+ // headers: IDCTxnHeaderDto[];
479
+ // }
480
+ //
481
+ // // export interface IDCTxn {
482
+ // // rows: IDCTxnRow[],
483
+ // // headers: IDCTxnHeader[]
484
+ // // }
485
+ //
486
+ // export class IDCMntryCycleDto {
487
+ // @IsString()
488
+ // date: string;
489
+ //
490
+ // @IsNumber()
491
+ // late: number;
492
+ //
493
+ // @IsNumber()
494
+ // paid: number;
495
+ //
496
+ // @IsOptional()
497
+ // @IsString()
498
+ // @IsBoolean()
499
+ // past: string | boolean;
500
+ //
501
+ // @IsString()
502
+ // @IsNumber()
503
+ // cycle: string | number;
504
+ //
505
+ // @IsNumber()
506
+ // amount: number;
507
+ //
508
+ // @IsOptional()
509
+ // detail: any;
510
+ //
511
+ // @IsString()
512
+ // status: string;
513
+ // }
514
+ //
515
+ // // export interface IDCMntryCycle {
516
+ // // date: string,
517
+ // // late: number,
518
+ // // paid: number,
519
+ // // past: string | boolean,
520
+ // // cycle: string | number,
521
+ // // amount: number,
522
+ // // detail: any,
523
+ // // status: string
524
+ // // }
525
+ //
526
+ // export class IDCMntryPymtAllPaidTotalDto {
527
+ // @IsString()
528
+ // amount: string;
529
+ //
530
+ // @IsString()
531
+ // cycles: string;
532
+ // }
533
+ //
534
+ // // export interface IDCMntryPymtAllPaidTotal {
535
+ // // amount: string,
536
+ // // cycles: string
537
+ // // }
538
+ //
539
+ // export class IDCMntryPymtAllDto {
540
+ // @IsNumber()
541
+ // late: number;
542
+ //
543
+ // @IsNumber()
544
+ // total: number;
545
+ //
546
+ // @IsNumber()
547
+ // va_cp: number;
548
+ //
549
+ // @IsNumber()
550
+ // actual: number;
551
+ //
552
+ // @IsArray()
553
+ // @ValidateNested({ each: true })
554
+ // @Type(() => IDCMntryCycleDto)
555
+ // cycles: IDCMntryCycleDto[];
556
+ //
557
+ // @IsNumber()
558
+ // vencido: number;
559
+ //
560
+ // @ValidateNested()
561
+ // @Type(() => IDCMntryPymtAllPaidTotalDto)
562
+ // paid_total: IDCMntryPymtAllPaidTotalDto;
563
+ //
564
+ // @IsNumber()
565
+ // total_amount: number;
566
+ // }
567
+ //
568
+ // // export interface IDCMntryPymtAll {
569
+ // // late: number,
570
+ // // total: number,
571
+ // // va_cp: number,
572
+ // // actual: number,
573
+ // // cycles: IDCMntryCycle[],
574
+ // // vencido: number,
575
+ // // paid_total: IDCMntryPymtAllPaidTotal,
576
+ // // total_amount: number
577
+ // // }
578
+ //
579
+ // export class IDCMntryPymtDueDto {
580
+ // @IsNumber()
581
+ // total: number;
582
+ //
583
+ // @IsArray()
584
+ // @ValidateNested({ each: true })
585
+ // @Type(() => IDCMntryCycleDto)
586
+ // cycles: IDCMntryCycleDto[];
587
+ //
588
+ // @ValidateNested()
589
+ // @Type(() => IDCMntryCycleDto)
590
+ // new_cycle: IDCMntryCycleDto;
591
+ //
592
+ // @ValidateNested()
593
+ // @Type(() => IDCMntryCycleDto)
594
+ // old_cycle: IDCMntryCycleDto;
595
+ //
596
+ // @IsNumber()
597
+ // total_amount: number;
598
+ // }
599
+ //
600
+ // // export interface IDCMntryPymtDue {
601
+ // // total: number,
602
+ // // cycles: IDCMntryCycle[],
603
+ // // new_cycle: IDCMntryCycle,
604
+ // // old_cycle: IDCMntryCycle,
605
+ // // total_amount: number
606
+ // // }
607
+ //
608
+ // export class IDCMntryPymtOpenDto extends IDCMntryPymtDueDto {
609
+ // }
610
+ //
611
+ // export class IDCMntryPymtPaidDto {
612
+ // @IsNumber()
613
+ // total: number;
614
+ //
615
+ // @IsArray()
616
+ // @ValidateNested({ each: true })
617
+ // @Type(() => IDCMntryCycleDto)
618
+ // cycles: IDCMntryCycleDto[] | any[];
619
+ //
620
+ // @IsOptional()
621
+ // new_cycle: any;
622
+ //
623
+ // @IsOptional()
624
+ // old_cycle: any;
625
+ //
626
+ // @IsNumber()
627
+ // total_amount: number;
628
+ // }
629
+ //
630
+ // // export interface IDCMntryPymtPaid {
631
+ // // total: number,
632
+ // // cycles: IDCMntryCycle[] | any[],
633
+ // // new_cycle: any,
634
+ // // old_cycle: any,
635
+ // // total_amount: number
636
+ // // }
637
+ //
638
+ // export class IDCMntryPymtDueTaxDto {
639
+ // @IsNumber()
640
+ // expected: number;
641
+ // }
642
+ //
643
+ // // export interface IDCMntryPymtDueTax {
644
+ // // expected: number;
645
+ // // }
646
+ //
647
+ // export class IDCMntryPymtPymtDto {
648
+ // @IsNumber()
649
+ // paid: number;
650
+ //
651
+ // @IsNumber()
652
+ // expected: number;
653
+ // }
654
+ //
655
+ // // export interface IDCMntryPymtPymt {
656
+ // // paid: number,
657
+ // // expected: number
658
+ // // }
659
+ //
660
+ // export class IDCMntryPymtCalDto {
661
+ // @ValidateNested()
662
+ // @Type(() => IDCMntryPymtDueDto)
663
+ // due: IDCMntryPymtDueDto;
664
+ //
665
+ // @IsString()
666
+ // date: string;
667
+ //
668
+ // @IsString()
669
+ // past: string;
670
+ //
671
+ // @IsNumber()
672
+ // cycle: number;
673
+ //
674
+ // @IsNumber()
675
+ // balance: number;
676
+ //
677
+ // @ValidateNested()
678
+ // @Type(() => IDCMntryPymtDueTaxDto)
679
+ // due_tax: IDCMntryPymtDueTaxDto;
680
+ //
681
+ // @ValidateNested()
682
+ // @Type(() => IDCMntryPymtPymtDto)
683
+ // payment: IDCMntryPymtPymtDto;
684
+ //
685
+ // @ValidateNested()
686
+ // @Type(() => IDCMntryPymtPymtDto)
687
+ // interest: IDCMntryPymtPymtDto;
688
+ //
689
+ // @ValidateNested()
690
+ // @Type(() => IDCMntryPymtPymtDto)
691
+ // principal: IDCMntryPymtPymtDto;
692
+ //
693
+ // @ValidateNested()
694
+ // @Type(() => IDCMntryPymtPymtDto)
695
+ // payment_tax: IDCMntryPymtPymtDto;
696
+ //
697
+ // @ValidateNested()
698
+ // @Type(() => IDCMntryPymtPymtDto)
699
+ // interest_tax: IDCMntryPymtPymtDto;
700
+ //
701
+ // @IsNumber()
702
+ // final_balance: number;
703
+ //
704
+ // @ValidateNested()
705
+ // @Type(() => IDCMntryPymtPymtDto)
706
+ // payment_total: IDCMntryPymtPymtDto;
707
+ //
708
+ // @ValidateNested()
709
+ // @Type(() => IDCMntryPymtPymtDto)
710
+ // principal_tax: IDCMntryPymtPymtDto;
711
+ // }
712
+ //
713
+ // // export interface IDCMntryPymtCal {
714
+ // // due: IDCMntryPymtDue,
715
+ // // date: string,
716
+ // // past: string,
717
+ // // cycle: number,
718
+ // // balance: number,
719
+ // // due_tax: IDCMntryPymtDueTax,
720
+ // // payment: IDCMntryPymtPymt,
721
+ // // interest: IDCMntryPymtPymt,
722
+ // // principal: IDCMntryPymtPymt,
723
+ // // payment_tax: IDCMntryPymtPymt,
724
+ // // interest_tax: IDCMntryPymtPymt,
725
+ // // final_balance: number,
726
+ // // payment_total: IDCMntryPymtPymt,
727
+ // // principal_tax: IDCMntryPymtPymt
728
+ // // }
729
+ //
730
+ // export class IDCMntryPymtDto {
731
+ // @ValidateNested()
732
+ // @Type(() => IDCMntryPymtAllDto)
733
+ // all: IDCMntryPymtAllDto;
734
+ //
735
+ // @ValidateNested()
736
+ // @Type(() => IDCMntryPymtDueDto)
737
+ // due: IDCMntryPymtDueDto;
738
+ //
739
+ // @ValidateNested()
740
+ // @Type(() => IDCMntryPymtOpenDto)
741
+ // open: IDCMntryPymtOpenDto;
742
+ //
743
+ // @ValidateNested()
744
+ // @Type(() => IDCMntryPymtPaidDto)
745
+ // paid: IDCMntryPymtPaidDto;
746
+ //
747
+ // @IsArray()
748
+ // @ValidateNested({ each: true })
749
+ // @Type(() => IDCMntryPymtCalDto)
750
+ // payment_calendar: IDCMntryPymtCalDto[];
751
+ // }
752
+ //
753
+ // // export interface IDCMntryPymt {
754
+ // // all: IDCMntryPymtAll,
755
+ // // due: IDCMntryPymtDue,
756
+ // // open: IDCMntryPymtOpenDto,
757
+ // // paid: IDCMntryPymtPaid,
758
+ // // payment_calendar: IDCMntryPymtCal[]
759
+ // // }
760
+ //
761
+ // export class IDCDataDto {
762
+ // @IsNumber()
763
+ // id: number;
764
+ //
765
+ // @IsNumber()
766
+ // company: number;
767
+ //
768
+ // @IsString()
769
+ // status: string;
770
+ //
771
+ // @IsString()
772
+ // external_id: string;
773
+ //
774
+ // @ValidateNested()
775
+ // @Type(() => IDCDataPiiDto)
776
+ // pii: IDCDataPiiDto;
777
+ //
778
+ // @IsNumber()
779
+ // client_type: number;
780
+ //
781
+ // @IsString()
782
+ // created_at: string;
783
+ //
784
+ // @IsNumber()
785
+ // pd: number;
786
+ //
787
+ // @IsString()
788
+ // username: string;
789
+ //
790
+ // @IsNumber()
791
+ // group: number;
792
+ // }
793
+ //
794
+ // // export interface IDCData {
795
+ // // id: number,
796
+ // // company: number,
797
+ // // status: string,
798
+ // // external_id: string,
799
+ // // pii: IDCDataPii,
800
+ // // client_type: number,
801
+ // // created_at: string,
802
+ // // pd: number,
803
+ // // username: string,
804
+ // // group: number
805
+ // // }
806
+ //
807
+ // export class IDCMsgDto {
808
+ // @IsNumber()
809
+ // code: number;
810
+ //
811
+ // @IsNumber()
812
+ // total: number;
813
+ //
814
+ // @ValidateNested({ each: true })
815
+ // data: IDCDataDto[] | IDCAccountDto[] |
816
+ // IDCTxnDto[] | IDCMntryPymtDto;
817
+ // }
818
+ //
819
+ // export class DynamiCoreDto {
820
+ // @IsString()
821
+ // status: string;
822
+ //
823
+ // @ValidateNested({ each: true })
824
+ // @Type(() => IDCMsgDto)
825
+ // message: IDCMsgDto;
826
+ // }
827
+ //
828
+ // /**
829
+ // * Interfaces for request (base)
830
+ // * */
831
+ // export class IDCClientObjFilterDto {
832
+ // @IsString()
833
+ // name: string;
834
+ //
835
+ // @IsArray()
836
+ // filter: (string | number)[];
837
+ //
838
+ // @IsString()
839
+ // type: string;
840
+ //
841
+ // @IsString()
842
+ // sort: string;
843
+ // }
844
+ //
845
+ // // export interface IDCClientObjFilter {
846
+ // // name: string,
847
+ // // filter: string[] | number[],
848
+ // // type: string,
849
+ // // sort: string
850
+ // // }
851
+ //
852
+ // export class IDCClientQueryDto {
853
+ // @IsArray()
854
+ // @ValidateNested({ each: true })
855
+ // @Type(() => IDCClientObjFilterDto)
856
+ // filters: IDCClientObjFilterDto[];
857
+ // }
858
+ //
859
+ // // export interface IDCClientQuery {
860
+ // // filters: IDCClientObjFilter[];
861
+ // // }
862
+ //
863
+ // export class IDCClientPiiFilterDto {
864
+ // @IsNumber()
865
+ // limit: number;
866
+ //
867
+ // @IsNumber()
868
+ // page: number;
869
+ //
870
+ // @ValidateNested()
871
+ // @Type(() => IDCClientQueryDto)
872
+ // query: IDCClientQueryDto;
873
+ // }
874
+ //
875
+ // // export interface IDCClientPiiFilter {
876
+ // // limit: number,
877
+ // // page: number,
878
+ // // query: IDCClientQuery
879
+ // // }
880
+ //
881
+ // /**
882
+ // * DynamiCore Reference Interface
883
+ // * */
884
+ // export class IDCRefCustInfoDto {
885
+ // @IsString()
886
+ // name: string;
887
+ //
888
+ // @IsString()
889
+ // email: string;
890
+ //
891
+ // @IsString()
892
+ // phone: string | number;
893
+ // }
894
+ //
895
+ // export class IDCOxxoRefItemDto {
896
+ // @IsString()
897
+ // name: string;
898
+ //
899
+ // @IsNumber()
900
+ // unit_price: number;
901
+ //
902
+ // @IsNumber()
903
+ // quantity: number;
904
+ // }
905
+ //
906
+ // export class IDCOxxoRefPymtMthDto {
907
+ // @IsString()
908
+ // type: string;
909
+ // }
910
+ //
911
+ // export class IDCOxxoRefDto {
912
+ // @IsNumber()
913
+ // account: number;
914
+ //
915
+ // @IsNumber()
916
+ // operation: number;
917
+ //
918
+ // @ValidateNested()
919
+ // @Type(() => IDCRefCustInfoDto)
920
+ // customer_info: IDCRefCustInfoDto;
921
+ //
922
+ // @ValidateNested()
923
+ // @Type(() => IDCOxxoRefItemDto)
924
+ // items: IDCOxxoRefItemDto;
925
+ //
926
+ // @ValidateNested()
927
+ // @Type(() => IDCOxxoRefPymtMthDto)
928
+ // payment_method: IDCOxxoRefPymtMthDto;
929
+ // }
930
+ //
931
+ // // export interface IDCRefCustInfo {
932
+ // // name: string,
933
+ // // email: string,
934
+ // // phone: string | number
935
+ // // }
936
+ // //
937
+ // // export interface IDCOxxoRefItem {
938
+ // // name: string,
939
+ // // unit_price: number,
940
+ // // quantity: number
941
+ // // }
942
+ // //
943
+ // // export interface IDCOxxoRefPymtMth {
944
+ // // type: string;
945
+ // // }
946
+ // //
947
+ // // export interface IDCOxxoRef {
948
+ // // account: number,
949
+ // // operation: number,
950
+ // // customer_info: IDCRefCustInfo,
951
+ // // items: IDCOxxoRefItem,
952
+ // // payment_method: IDCOxxoRefPymtMth
953
+ // // }
954
+ //
955
+ // /**
956
+ // * DynamiCore Reference
957
+ // * */
958
+ //
959
+ // export class IDCRefItemsDto {
960
+ // @IsString()
961
+ // name: string;
962
+ //
963
+ // @IsNumber()
964
+ // unit_price: number;
965
+ //
966
+ // @IsNumber()
967
+ // quantity: number;
968
+ // }
969
+ //
970
+ // export class IDCRefPymtMethodDto {
971
+ // @IsString()
972
+ // type: string;
973
+ // }
974
+ //
975
+ // export class IDCReferenceDto {
976
+ // @IsNumber()
977
+ // account: number;
978
+ //
979
+ // @IsNumber()
980
+ // operation: number;
981
+ //
982
+ // @ValidateNested()
983
+ // @Type(() => IDCRefCustInfoDto)
984
+ // customer_info: IDCRefCustInfoDto;
985
+ //
986
+ // @ValidateNested()
987
+ // @Type(() => IDCRefItemsDto)
988
+ // items: IDCRefItemsDto;
989
+ //
990
+ // @ValidateNested()
991
+ // @Type(() => IDCRefPymtMethodDto)
992
+ // payment_method: IDCRefPymtMethodDto;
993
+ // }
994
+ //
995
+ // // export interface IDCRefCustInfo {
996
+ // // name: string,
997
+ // // email: string,
998
+ // // phone: string | number
999
+ // // }
1000
+ // //
1001
+ // // export interface IDCRefItems {
1002
+ // // name: string,
1003
+ // // unit_price: number,
1004
+ // // quantity: number
1005
+ // // }
1006
+ // //
1007
+ // // export interface IDCRefPymtMethod {
1008
+ // // type: string;
1009
+ // // }
1010
+ // //
1011
+ // // export interface IDCReference {
1012
+ // // account: number,
1013
+ // // operation: number,
1014
+ // // customer_info: IDCRefCustInfo,
1015
+ // // items: IDCRefItems,
1016
+ // // payment_method: IDCRefPymtMethod
1017
+ // // }