MC/website/node/postbank-contract.mjs

9 lines
3.3 KiB
JavaScript

export const POSTBANK_CONTRACTS=Object.freeze({
statements:{title:'Monthly account statement archive',state:'active',request:{method:'GET',path:'/api/bank/statements/archive',fields:['accountId','page']},response:{records:'closed months with ready/preparing status and download metadata'},note:'The trusted bank ticker automatically seeds and prepares closed-month PDF statements. Users only list and download already archived files through GET /api/bank/statements?accountId=...&month=.... No user generation endpoint. Brussels month boundaries; ledger history remains preserved. Recoverable worker claims, 25 statements per tick and one-minute continuation while a backlog remains.'},
server:{title:'Game server link',state:'not_linked',request:{method:'POST',path:'/api/bank/integrations/game/payments',fields:['requestId','sourceAccount','targetNumber','amount','reference','mode','gameReceipt']},response:{paymentId:'unique payment reference',state:'queued | posted | rejected'},note:'Future trusted server-to-server payment instructions only. The central bank authorises, reserves and posts; Java must not duplicate accounting or own bank balances. Standard instructions follow the same four-hour Brussels windows; instant instructions post immediately within bank limits. requestId is retained on retries and fulfilment waits for a confirmed posted bank result. No game link or request is enabled by this placeholder. Server credentials must never be supplied by a browser.'},
mandates:{title:'Account authorisations',state:'planned',request:{method:'POST',path:'/api/bank/authorisations',fields:['accountNumber','clientNumber','permissions','startsAt','expiresAt','confirmed']},response:{authorisationId:'new authorisation reference',state:'active | pending'},note:'Creation, editing and revocation of mandates are deferred. Existing imported authority remains checked by the central API.'},
collateral:{title:'Blocked collateral',state:'prepared',request:{method:'GET',path:'/api/bank/credit/overview',fields:[]},response:{accounts:'client-owned blocked type106 collateral accounts'},note:'Not an investment product. Borrowers cannot transfer collateral out. Only authorised credit repayment/release and bank staff recovery actions can move it, with ledger entries and audit.'},
loans:{title:'Credit applications',state:'planned',request:{method:'POST',path:'/api/bank/loans/applications',fields:['requestId','accountNumber','amount','motivation','confirmed']},response:{applicationId:'application reference',state:'submitted'},note:'Credit applications, approvals, payouts and repayments are deferred.'},
companies:{title:'Company registration link',state:'prepared',request:{method:'POST',path:'/api/bank/integrations/entities',fields:['sourceEventId','kind','externalKey','displayName']},response:{entityId:'bank entity reference',state:'not_activated'},note:'Trusted central company-registry event, not a browser endpoint. No companies are invented. Existing approved companies are read from the central registry.'},
economy:{title:'Cost-of-living index',state:'baseline',request:{method:'GET',path:'/api/bank/integrations/economy-index',fields:[]},response:{index:100,base:100,source:'baseline',observedAt:null},note:'No live economy feed is linked. P&O uses the published baseline until an independently verified index is integrated.'}
});