fix(account): rename ReservedBalance.amounts to availableAmounts#108
Merged
Merged
Conversation
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.
cernadasjuan
approved these changes
Jul 22, 2026
3 tasks
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
availableAmountsfor each entry inbankData.reservedBalances— see theReservedBalanceschema in https://api.pluggy.ai/oas3.json, where it is a required property. The field was declared asamounts.nulland reserved balances ("caixinhas") came back empty.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-nodeandpluggy-net; fixes for those are opened separately.Test plan
mvn compilefails onmasterwith 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.