web/website/docs/postbank-credit.md

4.1 KiB

Postbank credit processing

Website-only credit engine, using the existing central identity API and the independent bank database. No game database, Java code or inventory is modified.

Activation

POSTBANK_CREDIT_ENABLED=true enables application/actions endpoints and the credit section of the existing four-hour Brussels bank ticker. Missing/false keeps financial intake closed while read-only records and simulations work. Deploy and verify the additive schema migration before enabling. No sample customer contract, test credit or balance reset is seeded.

Products and cash movement

  • Launch grants: one per personal client, zero interest, borrower-selected monthly repayment within the published term. Consent queues acceptance; bank liquidity is still required.
  • Personal, Business and Civic loans: staff review, seven-day offer, separate borrower acceptance, then payout on the bank ticker. A manager cannot approve their own controlled client.
  • New ordinary loans require a first instalment of 5% of the requested loan amount, rounded up to a whole DM cent. Own funds are reserved on offer acceptance and paid to the lender before principal is issued, in the same atomic disbursement transaction. This instalment is a repayment: it reduces remaining principal and the subsequent repayment schedule, with interest calculated on that reduced balance. No new blocked collateral is collected. Launch grants remain exempt. Historical contracts keep their recorded collateral and release rules.
  • Refinancing replaces all active interest-bearing contracts for one client; zero-interest grants remain separate. Historical contracts and ledger entries are retained; no additional cash is paid out. Current payoff changes invalidate the queued refinance rather than overpay.
  • Election concessions use actual current winning terms, not provisional/custom ranks. Personal discount is limited to the first5,000DM per eligible election event; corporate concessions require a real CEO change. Reuse is prevented by an atomic event claim.
  • The one-month advance is a fixed loan paid into the current account; it does not enable a negative account balance. True account-overdraft permissions remain a later integration.
  • Revolving credit cards remain a separately planned product, not an active card/payment facility.

All principal, interest and recovery receipts return to the Website Bank Treasury. The treasury cannot disburse reserved or unavailable money. Neither P&O nor the Federal Reserve is a borrower or ordinary loan funding source.

Processing and audit

Monthly instalments start one month after payout. Early settlement charges interest earned through the UTC bank value date and excludes unearned future interest. Confirmed manual repayments reserve cash immediately and retain that value date when the four-hour batch posts them. Partial early payments revise only the remaining period, retaining previously paid interest. A seven-day grace period precedes arrears; no invented automatic penalty. Staff recovery is limited to the contract's pledged DM. Full settlement releases remaining collateral. Upcoming/failed/arrears messages are visible with contract details; this does not claim external email delivery.

Canonical entity/client/account locks, exact minor-unit amounts, stable request IDs, payload fingerprints, paired ledger legs and same-transaction credit/global audit records protect mutations. Current user authority is checked again before queued payout or manual recovery/repayment. Browser retries keep the same instruction after an uncertain result.

Credit scoring is advisory and private to the borrower and authorised bank staff. Completed-month cash flow excludes own-client transfers and system/grant/loan/treasury/test credits. Limited history stays explicit; ordinary lending is not automatically approved from the score. Declines have a bounded, recovering impact; waiting for bank liquidity is not a decline.

Future game adapter requirements are described in postbank-contract.mjs. It must map verified game identity to the existing bank client and call the same services; it must not maintain another debt ledger.