-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-33967) feat(creditV3): refactor after review
- Loading branch information
1 parent
5f9b460
commit 2b08764
Showing
2 changed files
with
26 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
export const DEFAULT_FIFTEEN_YEARS_OLD_AMOUNT_V2 = 20_00 | ||
export const DEFAULT_FIFTEEN_YEARS_OLD_AMOUNT_V3 = 0 | ||
import type { ReadonlyDeep } from 'type-fest' | ||
|
||
export const DEFAULT_SIXTEEN_YEARS_OLD_AMOUNT_V2 = 30_00 | ||
export const DEFAULT_SIXTEEN_YEARS_OLD_AMOUNT_V3 = 0 | ||
import { DepositAmountsByAge } from 'api/gen' | ||
|
||
export const DEFAULT_SEVENTEEN_YEARS_OLD_AMOUNT_V2 = 30_00 | ||
export const DEFAULT_SEVENTEEN_YEARS_OLD_AMOUNT_V3 = 50_00 | ||
export const DEFAULT_EIGHTEEN_YEARS_OLD_DIGITAL_AMOUNT_V2 = 100_00 | ||
|
||
export const DEFAULT_EIGHTEEN_YEARS_OLD_AMOUNT_V2 = 300_00 | ||
export const DEFAULT_EIGHTEEN_YEARS_OLD_AMOUNT_V3 = 150_00 | ||
type Version = 'v2' | 'v3' | ||
|
||
export const DEFAULT_EIGHTEEN_YEARS_OLD_DIGITAL_AMOUNT_V2 = 100_00 | ||
export const defaultCreditByAge = { | ||
v2: { | ||
age_15: 20_00, | ||
age_16: 30_00, | ||
age_17: 30_00, | ||
age_18: 300_0, | ||
}, | ||
v3: { | ||
age_15: 0, | ||
age_16: 0, | ||
age_17: 50_00, | ||
age_18: 150_0, | ||
}, | ||
} as const satisfies ReadonlyDeep<Record<Version, DepositAmountsByAge>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters