pub struct Transaction {Show 16 fields
pub title: Option<String>,
pub amount: f64,
pub transaction_type: Option<String>,
pub date: Option<String>,
pub transaction_date: Option<String>,
pub narration: Option<String>,
pub status: Option<String>,
pub credit_type: Option<String>,
pub sender: Option<String>,
pub sender_account_number: Option<String>,
pub destination_bank: Option<String>,
pub destination_account_number: Option<String>,
pub receiver_name: Option<String>,
pub reference_id: Option<String>,
pub is_view_receipt_enabled: Option<bool>,
pub tran_id: Option<String>,
}Expand description
A single transaction row.
Shared by both the account-history (transhistoryV2) and statement
(GetCustomerTransactions) endpoints; fields absent from one of them are
modeled as Option. Several JSON keys carry the API’s own spellings
(recieverName, etc.) and are mapped to clean Rust names via serde(rename).
Fields§
§title: Option<String>Short title/label for the transaction.
amount: f64Transaction amount.
transaction_type: Option<String>Channel/route of the transaction (e.g. "InterBank", "IntraBank").
date: Option<String>Display date string.
transaction_date: Option<String>Posting date/time (present on account history; absent on statements).
narration: Option<String>Human-readable narration.
status: Option<String>Transaction status (e.g. "Default", "Successful").
credit_type: Option<String>Credit type classification (e.g. "Default").
sender: Option<String>Sender’s display name.
sender_account_number: Option<String>Sender’s account number.
destination_bank: Option<String>Destination bank name.
destination_account_number: Option<String>Destination account number.
receiver_name: Option<String>Receiver’s display name (API key is the misspelled recieverName).
reference_id: Option<String>Reference id for the transaction.
is_view_receipt_enabled: Option<bool>Whether a receipt can be viewed for this transaction.
tran_id: Option<String>Core-banking transaction id.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more