mtnmomo 0.1.9

MTN Momo Payment API for Rust, with support for both the Sandbox and Production environments. All products are supported: Collections, Disbursements and Remittances.
Documentation
use crate::structs::party::Party;
#[doc(hidden)]
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct RequestToPayResult {
    pub amount: String,
    pub currency: String,
    #[serde(rename = "financialTransactionId")]
    pub financial_transaction_id: Option<String>,
    #[serde(rename = "externalId")]
    pub external_id: String,
    pub payer: Party,
    #[serde(rename = "payerMessage")]
    pub payer_message: String,
    #[serde(rename = "payeeNote")]
    pub payee_note: String,
    pub status: String,
    pub reason: Option<String>,
}