creditu-common-library 1.2.13 → 1.2.14
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.
|
@@ -13,9 +13,9 @@ export declare class DebtResponse {
|
|
|
13
13
|
*/
|
|
14
14
|
balanceValues: BalancesOutput;
|
|
15
15
|
/**
|
|
16
|
-
* Saldo
|
|
16
|
+
* Saldo insoluto corregido por inflación
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
balanceInflationaryUpdated: number;
|
|
19
19
|
/**
|
|
20
20
|
* Saldo total despues del pago
|
|
21
21
|
*/
|
|
@@ -44,15 +44,15 @@ export declare class DebtResponse {
|
|
|
44
44
|
* amortization Inflationary Updated Balance (ex amortization)
|
|
45
45
|
*/
|
|
46
46
|
amortizationIUB: number;
|
|
47
|
+
amortizationDiff: number;
|
|
47
48
|
/**
|
|
48
49
|
* posponed Inflationary Update: Si "saldo anterior por tope inflacionario" está por encima de "IPCAupdate menos amortizationDiff",
|
|
49
50
|
* entonces es 0, sino es "IPCAupdate menos amortizationDiff" - "saldo anterior por tope inflacionario"
|
|
50
51
|
*/
|
|
51
52
|
postponedInflationaryUpdate: number;
|
|
52
53
|
/**
|
|
53
|
-
* Amortizacion: Es efectivamente cuanto se disminuyó el
|
|
54
|
-
*
|
|
55
|
-
* amortizationIUB - (postponedInflationaryUpdate + 1.71)
|
|
54
|
+
* Amortizacion: Es efectivamente cuanto se disminuyó el saldo insoluto al vencimiento anterior.
|
|
55
|
+
* Se puede calcular como: AmortizationIUB - (porstponedInflationaryUpdate + amortizationDIFF)
|
|
56
56
|
*
|
|
57
57
|
*/
|
|
58
58
|
amortization: number;
|
|
@@ -92,7 +92,7 @@ var InstallmentService = /** @class */ (function () {
|
|
|
92
92
|
return {
|
|
93
93
|
IPCAByDates: IPCAByDates,
|
|
94
94
|
balanceValues: balanceValues,
|
|
95
|
-
|
|
95
|
+
balanceInflationaryUpdated: balance,
|
|
96
96
|
balanceAfter: balanceAfter,
|
|
97
97
|
ipcaUpdate: ipcaUpdate,
|
|
98
98
|
dailyRate: dailyRate,
|
|
@@ -101,6 +101,7 @@ var InstallmentService = /** @class */ (function () {
|
|
|
101
101
|
monthlyPaymentWithInsurances: monthlyPaymentWithInsurances,
|
|
102
102
|
monthlyPaymentWithLate: totalLateByDates.totalMonthlyPayment,
|
|
103
103
|
amortization: amortization,
|
|
104
|
+
amortizationDiff: amortizationDiff,
|
|
104
105
|
amortizationIUB: amortizationIUB,
|
|
105
106
|
postponedInflationaryUpdate: postponedInflationaryUpdate,
|
|
106
107
|
amortizationIPCA: amortizationIPCA,
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ describe('installment-service for german method', () => {
|
|
|
73
73
|
35.5128861385
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
balanceInflationaryUpdated: 130214.569093194,
|
|
77
77
|
balanceAfter: 129724.971956824,
|
|
78
78
|
ipcaUpdate: 614.569093194,
|
|
79
79
|
dailyRate: 0.0002009109,
|
|
@@ -81,6 +81,7 @@ describe('installment-service for german method', () => {
|
|
|
81
81
|
monthlyPayment: 819.68713637,
|
|
82
82
|
monthlyPaymentWithInsurances: 873.55713637,
|
|
83
83
|
amortization: -123.261956824,
|
|
84
|
+
amortizationDiff: 1.71,
|
|
84
85
|
amortizationIUB: 361.70713637,
|
|
85
86
|
postponedInflationaryUpdate: 483.259093194,
|
|
86
87
|
amortizationIPCA: 127.89,
|
|
@@ -180,7 +181,7 @@ describe('installment-service for german method', () => {
|
|
|
180
181
|
0
|
|
181
182
|
]
|
|
182
183
|
},
|
|
183
|
-
|
|
184
|
+
balanceInflationaryUpdated: 130214.569093194,
|
|
184
185
|
balanceAfter: 129240.00286363,
|
|
185
186
|
ipcaUpdate: 614.569093194,
|
|
186
187
|
dailyRate: 0.0002009109,
|
|
@@ -189,6 +190,7 @@ describe('installment-service for german method', () => {
|
|
|
189
190
|
monthlyPaymentWithInsurances: 1358.526229564,
|
|
190
191
|
amortizationIUB: 361.70713637,
|
|
191
192
|
amortization: 359.99713637,
|
|
193
|
+
amortizationDiff: 1.71,
|
|
192
194
|
postponedInflationaryUpdate: 0,
|
|
193
195
|
amortizationIPCA: 612.859093194,
|
|
194
196
|
debtorLifeInsuranceFee: 44.27,
|
|
@@ -285,7 +287,7 @@ describe('installment-service for german method', () => {
|
|
|
285
287
|
0
|
|
286
288
|
]
|
|
287
289
|
},
|
|
288
|
-
|
|
290
|
+
balanceInflationaryUpdated: 130214.569093194,
|
|
289
291
|
balanceAfter: 129240.00286363,
|
|
290
292
|
ipcaUpdate: 614.569093194,
|
|
291
293
|
dailyRate: 0.0002009109,
|
|
@@ -294,6 +296,7 @@ describe('installment-service for german method', () => {
|
|
|
294
296
|
monthlyPaymentWithInsurances: 1358.526229564,
|
|
295
297
|
amortizationIUB: 361.70713637,
|
|
296
298
|
amortization: 359.99713637,
|
|
299
|
+
amortizationDiff: 1.71,
|
|
297
300
|
postponedInflationaryUpdate: 0,
|
|
298
301
|
amortizationIPCA: 612.859093194,
|
|
299
302
|
debtorLifeInsuranceFee: 44.27,
|
|
@@ -419,7 +422,7 @@ describe('installment-service for german method', () => {
|
|
|
419
422
|
0, 0, 0, 0
|
|
420
423
|
]
|
|
421
424
|
},
|
|
422
|
-
|
|
425
|
+
balanceInflationaryUpdated: 130438.2727816632,
|
|
423
426
|
balanceAfter: 128879.9921928087,
|
|
424
427
|
ipcaUpdate: 1198.2727816632,
|
|
425
428
|
dailyRate: 0.0002009109,
|
|
@@ -428,6 +431,7 @@ describe('installment-service for german method', () => {
|
|
|
428
431
|
monthlyPaymentWithInsurances: 2373.7405888545,
|
|
429
432
|
amortizationIUB: 363.3378071913,
|
|
430
433
|
amortization: 360.0078071913,
|
|
434
|
+
amortizationDiff: 3.33,
|
|
431
435
|
postponedInflationaryUpdate: 0,
|
|
432
436
|
amortizationIPCA: 1194.9427816632,
|
|
433
437
|
debtorLifeInsuranceFee: 22.17,
|
|
@@ -564,7 +568,7 @@ describe('installment-service for german method', () => {
|
|
|
564
568
|
10.6486532548
|
|
565
569
|
]
|
|
566
570
|
},
|
|
567
|
-
|
|
571
|
+
balanceInflationaryUpdated: 130438.2727816632,
|
|
568
572
|
balanceAfter: 129432.0649744719,
|
|
569
573
|
ipcaUpdate: 1198.2727816632,
|
|
570
574
|
dailyRate: 0.0002009109,
|
|
@@ -573,6 +577,7 @@ describe('installment-service for german method', () => {
|
|
|
573
577
|
monthlyPaymentWithInsurances: 1821.6678071913,
|
|
574
578
|
amortizationIUB: 363.3378071913,
|
|
575
579
|
amortization: -188.7349744719,
|
|
580
|
+
amortizationDiff: 3.33,
|
|
576
581
|
postponedInflationaryUpdate: 548.7427816632,
|
|
577
582
|
amortizationIPCA: 642.87,
|
|
578
583
|
debtorLifeInsuranceFee: 22.17,
|
|
@@ -772,7 +777,7 @@ describe('installment-service for german method', () => {
|
|
|
772
777
|
88.701745739, 88.7288043485
|
|
773
778
|
]
|
|
774
779
|
},
|
|
775
|
-
|
|
780
|
+
balanceInflationaryUpdated: 325340.5814257874,
|
|
776
781
|
balanceAfter: 324133.6575884935,
|
|
777
782
|
ipcaUpdate: 5860.1014257874,
|
|
778
783
|
dailyRate: 0.0002138035,
|
|
@@ -883,7 +888,7 @@ describe('installment-service for german method', () => {
|
|
|
883
888
|
10.6486532548
|
|
884
889
|
]
|
|
885
890
|
},
|
|
886
|
-
|
|
891
|
+
balanceInflationaryUpdated: 130438.2727816632,
|
|
887
892
|
balanceAfter: 129432.0649744719,
|
|
888
893
|
ipcaUpdate: 1198.2727816632,
|
|
889
894
|
dailyRate: 0.0002009109,
|
|
@@ -892,6 +897,7 @@ describe('installment-service for german method', () => {
|
|
|
892
897
|
monthlyPaymentWithInsurances: 1821.6678071913,
|
|
893
898
|
amortizationIUB: 363.3378071913,
|
|
894
899
|
amortization: -188.7349744719,
|
|
900
|
+
amortizationDiff: 3.33,
|
|
895
901
|
postponedInflationaryUpdate: 548.7427816632,
|
|
896
902
|
amortizationIPCA: 642.87,
|
|
897
903
|
debtorLifeInsuranceFee: 22.17,
|
|
@@ -986,7 +992,7 @@ describe('installment-service for german method', () => {
|
|
|
986
992
|
0
|
|
987
993
|
]
|
|
988
994
|
},
|
|
989
|
-
|
|
995
|
+
balanceInflationaryUpdated: 130214.569093194,
|
|
990
996
|
balanceAfter: 129240.00286363,
|
|
991
997
|
ipcaUpdate: 614.569093194,
|
|
992
998
|
dailyRate: 0.0002009109,
|
|
@@ -994,6 +1000,7 @@ describe('installment-service for german method', () => {
|
|
|
994
1000
|
monthlyPayment: 1304.656229564,
|
|
995
1001
|
monthlyPaymentWithInsurances: 1358.526229564,
|
|
996
1002
|
amortization: 359.99713637,
|
|
1003
|
+
amortizationDiff: 1.71,
|
|
997
1004
|
amortizationIUB: 361.70713637,
|
|
998
1005
|
postponedInflationaryUpdate: 0,
|
|
999
1006
|
amortizationIPCA: 612.859093194,
|
|
@@ -1097,7 +1104,7 @@ describe('installment-service for french method', () => {
|
|
|
1097
1104
|
0, 0, 0
|
|
1098
1105
|
]
|
|
1099
1106
|
},
|
|
1100
|
-
|
|
1107
|
+
balanceInflationaryUpdated: 482386.1822123922,
|
|
1101
1108
|
balanceAfter: 478369.497072,
|
|
1102
1109
|
ipcaUpdate: 2386.1822123922,
|
|
1103
1110
|
dailyRate: 0.0002266368,
|
|
@@ -1107,6 +1114,7 @@ describe('installment-service for french method', () => {
|
|
|
1107
1114
|
amortizationIUB: 1638.6085052585,
|
|
1108
1115
|
postponedInflationaryUpdate: 0,
|
|
1109
1116
|
amortization: 1630.502928,
|
|
1117
|
+
amortizationDiff: 8.1055772585,
|
|
1110
1118
|
amortizationIPCA: 2378.0766351337,
|
|
1111
1119
|
debtorLifeInsuranceFee: 164.01,
|
|
1112
1120
|
codebtorLifeInsuranceFee: 0,
|
|
@@ -1245,7 +1253,7 @@ describe('installment-service for french method', () => {
|
|
|
1245
1253
|
6.7423884683, 6.7441401476, 6.7458922819
|
|
1246
1254
|
]
|
|
1247
1255
|
},
|
|
1248
|
-
|
|
1256
|
+
balanceInflationaryUpdated: 79185.5345183621,
|
|
1249
1257
|
balanceAfter: 78740.2000910377,
|
|
1250
1258
|
ipcaUpdate: 775.2845183621,
|
|
1251
1259
|
dailyRate: 0.0002009109,
|
|
@@ -1357,7 +1365,7 @@ describe('installment-service for french method', () => {
|
|
|
1357
1365
|
146.562866031
|
|
1358
1366
|
]
|
|
1359
1367
|
},
|
|
1360
|
-
|
|
1368
|
+
balanceInflationaryUpdated: 1115241.458188932,
|
|
1361
1369
|
balanceAfter: 1110381.427286398,
|
|
1362
1370
|
ipcaUpdate: 5516.6781889309,
|
|
1363
1371
|
dailyRate: 0.0002009109,
|