Hide fixed and recurring deposits on the account details screen

Every action this screen offers — mini statement, e-passbook, re-KYC,
balance — is one the bank refuses on a deposit, and the account information
grid showed an MMID that is permanently "Not allocated" because deposits
cannot take part in IMPS. The home screen already filters its carousel the
same way; this brings the screen it links to into line.

Filtered on type alone, not through `isOperativeAccount`, so a dormant
savings account still appears — it cannot be debited but it is still the
customer's money.

Adds `isEverydayAccount` to carry that rule, with `supportsBalanceEnquiry`
now defined in terms of it: the same set today, kept under its own name
because it states a fact about the endpoint rather than about the account.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Abin Toppo
2026-09-21 15:38:26 +05:30
co-authored by Claude Opus 5
parent 86f9647437
commit 4eeababec8
5 changed files with 84 additions and 14 deletions
+3 -2
View File
@@ -235,8 +235,9 @@ export type CbsAccountStatus = 'ACTIVE' | 'DORMANT' | 'BLOCKED' | 'CLOSED';
/**
* An account as `GET /accounts` returns it.
*
* Note what is *not* here: there is no balance field, because no endpoint in
* the CBS API returns one. Anything showing a balance is not sourced from here.
* Note what is *not* here: there is no balance field. `GET /accounts/balance`
* answers that separately, as `CbsAccountBalance` below — so anything showing
* a balance is not sourced from this type.
*
* The account number is unmasked — this is the only endpoint that returns one —
* so it must never be written to disk, logged, or rendered in full where a