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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[doc(hidden)]
use reqwest::Body;
#[doc(hidden)]
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct InvoiceDelete {
    #[serde(rename = "externalId")]
    pub external_id: String,
}

impl From<InvoiceDelete> for Body {
    fn from(invoice_delete: InvoiceDelete) -> Self {
        Body::from(serde_json::to_string(&invoice_delete).unwrap())
    }
}