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
#[doc(hidden)]
use serde::{Deserialize, Serialize};

use crate::enums::currency::Currency;

#[derive(Debug, Serialize, Deserialize)]
pub struct Balance {
    #[serde(rename = "availableBalance")] // The available balance of the account
    pub available_balance: String, // The available balance of the account
    pub currency: Currency, // ISO4217 Currency
}