Skip to content

fix: add blockedBalance, automaticallyInvestedBalance and closingBalance to AccountBalance - #114

Merged
tmelendez-p merged 1 commit into
masterfrom
fix/account-balance-fields
Oct 21, 2026
Merged

tmelendez-p merged 1 commit into
masterfrom
fix/account-balance-fields

Conversation

@tmelendez-p

Copy link
Copy Markdown
Contributor

Changes

  • AccountBalance: new blockedBalance, automaticallyInvestedBalance and closingBalance (Double, null when the institution does not report them). The API returns them on GET /accounts/{id}/balance for Open Finance accounts; Gson dropped them because the DTO did not declare them. Field names match the JSON keys byte for byte, as the repo requires.
  • TransactionsV2Test.getAccountBalance_parsesBalance extended, plus a test for the response without the optional amounts.
  • pom.xml: 1.16.0 → 1.16.1 (the release flow publishes only on a version change).

Backwards compatible: additive fields only.

Verification

mvn -B test on Java 8: 63 unit tests passed.

After merge

release.yml tags v1.16.1 on push to master; maven-publish.yml still has to be run manually via workflow_dispatch with that tag (see CLAUDE.md).

Related: TRIN-2651.

🤖 Generated with Claude Code

…nce to AccountBalance

GET /accounts/{id}/balance returns these amounts for Open Finance accounts;
Gson dropped them because the DTO did not declare them. Null when the
institution does not report them. Bumps the version to 1.16.1 so the release
flow publishes it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@tmelendez-p
tmelendez-p merged commit 19de06f into master Oct 21, 2026
3 of 4 checks passed
@tmelendez-p
tmelendez-p deleted the fix/account-balance-fields branch October 21, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants