Release 5.2.0 - Top-up instructions and amount allocations - #456
Conversation
🟢 Risk Classification: LOWApproval route: AI Auto-Approval Classification reasons
Operational gates
Files analysed: 1 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
|
|
🟠 Withholding auto-approval — merit review raised concerns. This PR is in scope for auto-approval (low-risk class, gates passed, checks green), but the merit review flagged the following for a human to confirm before merge:
A maintainer should review and approve manually if these are acceptable. wall-e 2026.06.19-02 · merit review · us.anthropic.claude-sonnet-4-6 |



This release adds support for retrieving top-up bank instructions for sub-accounts (currency accounts) via a new method in the
BalancesAPI, including configuration changes and comprehensive unit tests. It also documents a new request field in payment sessions. The main focus is ensuring the correct URL is used for the new endpoint, which does not follow the existing/balancespath convention.Key changes include:
Balances API Enhancements:
retrieveTopUpInstructionsmethod to theBalancesclass, allowing retrieval of bank details and payment references needed to top up a sub-account. This method uses a new configuration property to target the correct base URL for the endpoint.src/config.jsandsrc/special-urls.js) to introducebalancesHostUrl, distinguishing it from the standardbalancesUrl, so endpoints not under/balancesare correctly addressed. [1] [2]Testing:
test/balances/balances-topup-unit.js) covering successful retrievals (including different bank details scenarios) and error handling for authentication and not found errors.Documentation:
retrieveTopUpInstructionsmethod to describe its parameters, response shape, and usage notes.amount_allocationsfield in the payment sessions API.Minor Refactoring:
lettoconstforqueryParamsin theretrievemethod ofBalancesfor code consistency.