@fiado/type-kit 3.501.0 → 3.502.0
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.
|
@@ -112,6 +112,25 @@ describe('loanCredit — contrato del cobro en tienda', () => {
|
|
|
112
112
|
expect(item.mechanism).toBeUndefined();
|
|
113
113
|
});
|
|
114
114
|
|
|
115
|
+
it('el historial lista todas las cuotas que cubrió el pago, en orden', () => {
|
|
116
|
+
const item: LoanPaymentListItem = {
|
|
117
|
+
paymentId: 'P-2',
|
|
118
|
+
receipt: 'SK-TD-0123456789ac',
|
|
119
|
+
installmentNumber: 3,
|
|
120
|
+
installmentNumbers: [3, 4],
|
|
121
|
+
attemptId: 'IN_STORE#k2',
|
|
122
|
+
result: 'FULL' as never,
|
|
123
|
+
currency: 'MXN' as never,
|
|
124
|
+
collectedCents: 97_400,
|
|
125
|
+
appliedCents: 97_400,
|
|
126
|
+
overpaidCents: 0,
|
|
127
|
+
reservedCents: 0,
|
|
128
|
+
needsReview: false,
|
|
129
|
+
appliedAt: '2026-10-08T17:00:00.000Z',
|
|
130
|
+
};
|
|
131
|
+
expect(item.installmentNumbers).toEqual([3, 4]);
|
|
132
|
+
});
|
|
133
|
+
|
|
115
134
|
it('la fila de Clientes trae el último pago con su lugar', () => {
|
|
116
135
|
const row: CreditCustomerListItem = {
|
|
117
136
|
retailCustomerId: 'RC-1',
|
|
@@ -11,6 +11,8 @@ export interface LoanPaymentListItem {
|
|
|
11
11
|
/** Folio del pago — la referencia de conciliación. */
|
|
12
12
|
receipt: string;
|
|
13
13
|
installmentNumber: number;
|
|
14
|
+
/** Todas las cuotas que cubrió el pago, ascendente; ausente en abono, liquidación y filas viejas (usar `installmentNumber`). */
|
|
15
|
+
installmentNumbers?: number[];
|
|
14
16
|
attemptId: string;
|
|
15
17
|
/** Ausente en los pagos en tienda: ahí no hubo motor. */
|
|
16
18
|
mechanism?: MechanismType;
|
package/package.json
CHANGED
|
@@ -12,6 +12,8 @@ export interface LoanPaymentListItem {
|
|
|
12
12
|
/** Folio del pago — la referencia de conciliación. */
|
|
13
13
|
receipt: string;
|
|
14
14
|
installmentNumber: number;
|
|
15
|
+
/** Todas las cuotas que cubrió el pago, ascendente; ausente en abono, liquidación y filas viejas (usar `installmentNumber`). */
|
|
16
|
+
installmentNumbers?: number[];
|
|
15
17
|
attemptId: string;
|
|
16
18
|
/** Ausente en los pagos en tienda: ahí no hubo motor. */
|
|
17
19
|
mechanism?: MechanismType;
|