Skip to content

fix(account): rename ReservedBalance.amounts to availableAmounts#108

Merged
FranDisalvo90 merged 1 commit into
masterfrom
fix/reserved-balance-available-amounts
Jul 22, 2026
Merged

fix(account): rename ReservedBalance.amounts to availableAmounts#108
FranDisalvo90 merged 1 commit into
masterfrom
fix/reserved-balance-available-amounts

Conversation

@FranDisalvo90

Copy link
Copy Markdown
Collaborator

Summary

  • The API returns availableAmounts for each entry in bankData.reservedBalances — see the ReservedBalance schema in https://api.pluggy.ai/oas3.json, where it is a required property. The field was declared as amounts.
  • Gson maps by field name, so it always deserialized to null and reserved balances ("caixinhas") came back empty.
  • Shipped this way since v1.10.0, so the field has never worked.

Breaking rename at the API-surface level, but no working caller can depend on amounts — it was never populated.

The same field name is wrong in pluggy-node and pluggy-net; fixes for those are opened separately.

Test plan

  • CI build — I could not compile locally: mvn compile fails on master with or without this change (~200 errors), because Lombok 1.18.32 does not support JDK 21 and annotation processing is skipped. Unrelated to this change, and addressed by the pending Lombok bump in chore(deps): bump org.projectlombok:lombok from 1.18.32 to 1.18.46 #102.
  • Change is a single field rename with no other references to it in the repo.

Each entry in `bankData.reservedBalances` is returned by the API with an
`availableAmounts` array — see the `ReservedBalance` schema in
https://api.pluggy.ai/oas3.json, where it is a required property. The field
was declared as `amounts`, and since Gson maps by field name it always
deserialized to null, making reserved balances look empty.
@FranDisalvo90
FranDisalvo90 merged commit 82e3422 into master Jul 22, 2026
4 checks passed
@FranDisalvo90
FranDisalvo90 deleted the fix/reserved-balance-available-amounts branch July 22, 2026 15:05
FranDisalvo90 added a commit that referenced this pull request Jul 22, 2026
Release the changes merged since v1.12.0:
- fix(account): rename ReservedBalance.amounts to availableAmounts (#108)
- feat(cc): adding cc bill dates (#107)

Minor rather than patch because of the feat in #107.

Merging this to master triggers release.yml, which tags v1.13.0 and cuts
the GitHub Release. Publishing the jar to GitHub Packages is a separate
manual step (see #106):

  gh workflow run maven-publish.yml -f tag_version=v1.13.0
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