[EOM-2904] Remove pending_deposit and pending_withdrawal from Balance#72
[EOM-2904] Remove pending_deposit and pending_withdrawal from Balance#72axe-bitso wants to merge 1 commit into
Conversation
Pending balances are being removed from the wallet domain. The /v3/balance API will stop returning these fields; once absent, Helpers.getBD would log a stack trace per currency per call and leave the fields null. Removing them from the SDK model ahead of the API change. Breaking change for the public SDK API: Balance loses two getters/setters and two constructor parameters — next release should be a major version. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (3)
📝 WalkthroughWalkthroughThe balance parser and nested ChangesBalance model simplification
Estimated code review effort: 2 (Simple) | ~10 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)src/test/java/JSONFiles/privateAccountBalance.jsonTraceback (most recent call last): Comment |
Summary
Removes
pending_depositandpending_withdrawalfromBitsoBalance.Balance: the two fields, their constructor parameters, four getters/setters, the twoHelpers.getBDparse calls, and the entries in theprivateAccountBalance.jsontest fixture.Why
Pending balances are being removed from the wallet domain (EOM-2904). The
/v3/balanceAPI will stop returning these keys. Once absent, the current SDK behaviour is strictly worse than removal:Helpers.getBDlogs a stack trace to stderr for every missing key on every balance call and leaves the fieldsnull, so any consumer touching the getters gets an NPE.Breaking change
Balance's public constructor loses two parameters and the class loses two getter/setter pairs — the next release should be a major version bump, with a changelog note pointing at the API-side removal.Rollout note
This SDK release should land before (or with) the API-side removal. Consumers pinned to older versions (Maven Central
3.0.3, JitPack tags) will see the null-field + stderr-noise degradation once the API stops emitting the keys — that's driven by the API change, not this PR.Verification
Balanceconstructor or the removed gettersaum-reconciliation-v2, the only internal production consumer of this SDK — it only usesHelpers.parseJson)🤖 Generated with Claude Code
Summary by CodeRabbit