Skip to content

Add listByBalanceId for GET /balance-monitors/balances/:id - #11

Merged
ubcodes merged 3 commits into
mainfrom
feat/list-monitors-by-balance
Sep 23, 2026
Merged

ubcodes merged 3 commits into
mainfrom
feat/list-monitors-by-balance

Conversation

@ubcodes

@ubcodes ubcodes commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds balanceMonitor().listByBalanceId(balanceId), wrapping Core's GET /balance-monitors/balances/:balance_id (api/api.go). Existing list() still returns every monitor.
  • Percent-encodes the balance id so /, ?, and # cannot split the path; empty or whitespace-only ids return 400 with no request.
  • This method takes no query map, so unknown ListOptions keys are N/A. CHANGELOG notes Core ~0.14.x (SDK aligned with 0.15.4).

Test plan

  • mvn -o clean test: 562 run, 0 failures, 59 skipped (live suites gated on BLNK_E2E=1)
  • Live BLNK_E2E=1: create a monitor on a balance and GET by that id (Core was down locally; tests skip rather than fake-pass)
  • Unit: nested route, encoding of / ? #, empty/whitespace rejection, transport errors

Keeps listByBalanceId on current main after the ledgers/balances list work landed.
Null should fail the same way as empty so callers never send GET .../balances/.
@ubcodes
ubcodes merged commit 836e26c into main Sep 23, 2026
2 checks passed
ubcodes added a commit to chidoziemfrancis/blnk-java that referenced this pull request Sep 23, 2026
Keep both changelog entries: transactions list from this PR and
listByBalanceId from main after blnkfinance#11.
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.

1 participant