@fiado/type-kit 3.492.0 → 3.493.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.
|
@@ -13,6 +13,16 @@ describe('bono de crédito en el contrato del wizard', () => {
|
|
|
13
13
|
expect(session.creditPromotionBonus?.status).toBe('RESERVED');
|
|
14
14
|
});
|
|
15
15
|
|
|
16
|
+
it('el bono RESERVED lleva el instante en que entró en reserva', () => {
|
|
17
|
+
const bonus: WizardCreditPromotionBonus = {
|
|
18
|
+
promotionId: 'promo-1',
|
|
19
|
+
amountCents: 5_000,
|
|
20
|
+
status: LoanOfferings.PromotionBonusStatusEnum.RESERVED,
|
|
21
|
+
pendingSince: '2026-10-02T15:00:00.000Z',
|
|
22
|
+
};
|
|
23
|
+
expect(bonus.pendingSince).toBe('2026-10-02T15:00:00.000Z');
|
|
24
|
+
});
|
|
25
|
+
|
|
16
26
|
it('la sesión sin bono resuelto lo omite o lo manda null', () => {
|
|
17
27
|
const absent: Pick<WizardSession, 'creditPromotionBonus'> = {};
|
|
18
28
|
const nulled: Pick<WizardSession, 'creditPromotionBonus'> = { creditPromotionBonus: null };
|
|
@@ -5,4 +5,7 @@ export interface WizardCreditPromotionBonus {
|
|
|
5
5
|
amountCents: number;
|
|
6
6
|
/** `RESERVED` = en proceso; los otros tres son terminales. */
|
|
7
7
|
status: PromotionBonusStatusEnum;
|
|
8
|
+
/** ISO 8601 del instante en que el bono entró en RESERVED por primera vez.
|
|
9
|
+
* Lo sella el wizard una vez y no cambia después. */
|
|
10
|
+
pendingSince?: string;
|
|
8
11
|
}
|
package/package.json
CHANGED
|
@@ -6,4 +6,7 @@ export interface WizardCreditPromotionBonus {
|
|
|
6
6
|
amountCents: number;
|
|
7
7
|
/** `RESERVED` = en proceso; los otros tres son terminales. */
|
|
8
8
|
status: PromotionBonusStatusEnum;
|
|
9
|
+
/** ISO 8601 del instante en que el bono entró en RESERVED por primera vez.
|
|
10
|
+
* Lo sella el wizard una vez y no cambia después. */
|
|
11
|
+
pendingSince?: string;
|
|
9
12
|
}
|