feat: Implement Transaction, Transfer, Banking, and Direct Charge APIs #5
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.
Pull Request
Short description
Here are the list of things changed:
Checklist
Testing
make checkmake checkwill execute the extensive suite of newly added test cases covering all endpoints.@isrugeek
Note
Implements new Banking, Transactions, Transfers, and Direct Charge APIs with models, tests, examples, plus utils (tx_ref), feature flags, and docs/config updates.
banks,balances,balances/{currency},swap;transaction/initialize,transaction/verify/{tx_ref},transactions,transaction/events/{tx_ref};transfers(initiate),transfers/verify/{reference},bulk-transfers,transfers?batch_id=...,transfers(list);charges?type=...,validate?type=....bank::{BalanceData, SwapOptions, SwapData},payment::{VerifyPaymentData, TransactionLog, GetTransactionsData, Transaction, Pagination},direct_charge::{DirectChargeType, DirectChargeOptions, VerifyDirectChargeOption, DirectChargeData},transfer::{TransferOptions, VerifyTransferData, BulkTransferOptions, BulkData, BulkTransferData, TransfersData, TransferMeta}.ChapaResponse,ChapaResponseWithMeta; addDirectChargeVerifyResponse.models/transaction.rs(consolidated intopayment.rs).ChapaConfiggains optionalencryptionsupport (feature-gated), builder env defaults; fields made crate-visible; addMissingEncryptionKey; addJsonError.utilsmodule withgenerate_tx_ref(featureutils).chapa_encrypt::encrypt_databehindencryptionfeature (unimplemented).mockito.chapa_rust; add optional deps (des,base64,rand) and feature flags;.env.exampleaddsENCRYPTION_KEY;makefiledocs with--all-features; README updated.Written by Cursor Bugbot for commit 047e845. This will update automatically on new commits. Configure here.