pub struct TransNotifyRequest {Show 13 fields
pub originator_account_number: String,
pub amount: String,
pub currency: String,
pub originator_name: String,
pub narration: String,
pub cr_account_name: String,
pub payment_reference: String,
pub reference: String,
pub bank_name: String,
pub session_id: String,
pub cr_account: String,
pub bank_code: String,
pub created_at: String,
}Expand description
Payload your transaction-notify webhook receives when a virtual account is
credited (server type: TransNotifyRequest).
This single payload carries everything needed to (a) attribute the payment
via cr_account and (b) later refund the payer via
originator_account_number +
bank_code. Dedupe on session_id.
Fields§
§originator_account_number: StringPayer’s account number (use for refunds).
amount: StringAmount credited (the API sends this as a string).
currency: StringCurrency (e.g. "NGN").
originator_name: StringPayer’s name.
narration: StringTransfer narration.
cr_account_name: StringName on the credited virtual account.
payment_reference: StringPayment reference.
reference: StringSecondary reference.
bank_name: StringPayer’s bank name.
session_id: StringNIP session id — globally unique per credit. Use as the idempotency key.
cr_account: StringThe virtual account number that was credited — your attribution key.
bank_code: StringPayer’s bank code (use for refunds).
created_at: StringTimestamp the credit was created.
Trait Implementations§
Source§impl Clone for TransNotifyRequest
impl Clone for TransNotifyRequest
Source§fn clone(&self) -> TransNotifyRequest
fn clone(&self) -> TransNotifyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransNotifyRequest
impl Debug for TransNotifyRequest
Source§impl<'de> Deserialize<'de> for TransNotifyRequest
impl<'de> Deserialize<'de> for TransNotifyRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransNotifyRequest
impl RefUnwindSafe for TransNotifyRequest
impl Send for TransNotifyRequest
impl Sync for TransNotifyRequest
impl Unpin for TransNotifyRequest
impl UnsafeUnpin for TransNotifyRequest
impl UnwindSafe for TransNotifyRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more