pub struct TransferRequest {
pub amount: f64,
pub narration: String,
pub transaction_reference: String,
pub destination_bank_code: String,
pub destination_bank_name: String,
pub destination_account_number: String,
pub destination_account_name: String,
pub source_account_number: String,
}Expand description
Request body for a transfer.
Server type: OpenApiTransferRequest. Every field except narration is
required by the bank. destinationBankName is part of the schema and must
be sent (the previous SDK omitted it).
Fields§
§amount: f64Amount to transfer, in Naira.
Modeled as f64 to match the API’s JSON number. Caveat: this same
value is stringified into the HMAC (format!("{amount}")), so its textual
form must match what Wema signs server-side. Prefer whole-Naira amounts,
and confirm the canonical amount format with Wema for production use.
narration: StringNarration / memo for the transfer.
transaction_reference: StringYour unique client transaction reference (idempotency key — never reuse it on a retry; check status instead).
destination_bank_code: StringDestination bank’s NIP/CBN code (from get_bank_list).
destination_bank_name: StringDestination bank’s name (from get_bank_list).
destination_account_number: StringBeneficiary’s 10-digit NUBAN.
destination_account_name: StringBeneficiary name, as confirmed by verify_account.
source_account_number: StringThe 10-digit NUBAN to debit.
Trait Implementations§
Source§impl Clone for TransferRequest
impl Clone for TransferRequest
Source§fn clone(&self) -> TransferRequest
fn clone(&self) -> TransferRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more