Implementation of missing modules/endpoints #7
Conversation
… accrdingly to the change,[doc for get_all_transactions] [feac for initiate_transfer, bulk_transfer, get_all_transfers]
doc: add documentions for bulk_transfer endpoits
- add new data strcuter for returning ChapaTransferListResponse which has more filed like meta\n
doc: update doc for Currency explining how Currency enum can retur 'static str
… the clinte.rs file
…and add balances module for the publick use
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 00e7d7e. Configure here.
…ncy. (fix) add as_str implmenation for SplitType for subaccount creation
Pull RequestShort description
Checklist
Testing
Note Medium Risk Overview Refactors the internal request helper to support multiple body encodings via Moves inline client tests into a dedicated Reviewed by Cursor Bugbot for commit 00e7d7e. Bugbot is set up for automated code reviews on this repo. Configure here. |


Pull Request
Short description
ChapaClientfor supporting all the endpointsChecklist
Testing
make checkconsidered to use
cargo-nextestthis is the best test experience for Rust, specifically because it enables high-performance, parallel test execution by running each test in a separate processNote
Medium Risk
Adds multiple new API endpoints and refactors request handling (including a breaking change from
currency: StringtoCurrencyenum), which may impact existing consumers and request serialization behavior.Overview
Expands the SDK’s coverage by adding client support for transactions (
cancel_transaction,get_transaction_events,get_all_transactions), transfers (initiate_transfer,verify_transfer,bulk_transfer,get_all_transferswith query filters), and balances (get_balances,get_balance_by_currency,swap_currency).Refactors the internal request helper to support multiple body encodings via
RequestBody(None/Json/Form), introduces new models for balances, transfers, transaction events/cancelation, and standardizes currency handling by switchingInitializeOptions.currencyto theCurrencyenum (also used across new APIs).Moves inline client tests into a dedicated
tests/harness (wired viaCargo.toml), adds new mockito-based coverage for the new endpoints, and updates examples/README snippets to useCurrency.Reviewed by Cursor Bugbot for commit 00e7d7e. Bugbot is set up for automated code reviews on this repo. Configure here.