diff --git a/readme.md b/readme.md index 8c5f77e..f08915f 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,9 @@ ### MOMO.rs is a Rust library for the MOMO payment gateway. [![build tests](https://github.com/Bourse-numerique-d-afrique/momo.rs/actions/workflows/deployment.yml/badge.svg)](https://github.com/Bourse-numerique-d-afrique/momo.rs/actions/workflows/deployment.yml) [![crates.io](https://github.com/Bourse-numerique-d-afrique/momo.rs/actions/workflows/publish.yml/badge.svg)](https://github.com/Bourse-numerique-d-afrique/momo.rs/actions/workflows/publish.yml) +[![Crates.io][crates-badge]][https://crates.io/crates/mtnmomo] +[![MIT licensed][mit-badge]][https://choosealicense.com/licenses/mit/] +[![Docs][docs-badge]][https://docs.rs/mtnmomo/0.1.2/mtnmomo/]

MOMO logo

diff --git a/src/lib.rs b/src/lib.rs index a39012e..caedae4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,8 +78,8 @@ #[doc(hidden)] use std::error::Error; -use enums::environment::Environment; -use products::{provisioning::Provisioning, collection::Collection, remittance::Remittance, disbursements::Disbursements}; + + use uuid::Uuid; @@ -98,6 +98,32 @@ pub mod products; pub mod enums; +pub type PartyIdType = enums::party_id_type::PartyIdType; +pub type Currency = enums::currency::Currency; +pub type Environment = enums::environment::Environment; +pub type AccessType = enums::access_type::AccessType; + +pub type Party = structs::party::Party; +pub type Balance = structs::balance::Balance; +pub type Money = structs::money::Money; + +pub type RequestToPayRequest = requests::request_to_pay::RequestToPay; +pub type RefundRequest = requests::refund::Refund; +pub type TransferRequest = requests::transfer::Transfer; +pub type CashTransferRequest = requests::cash_transfer::CashTransferRequest; +pub type InvoiceRequest = requests::invoice::InvoiceRequest; +pub type DeleteInvoiceRequest = requests::invoice_delete::InvoiceDelete; +pub type CreatePaymentRequest = requests::create_payment::CreatePayment; +pub type DeliveryNotification = requests::delivery_notification::DeliveryNotification; + + +pub type Collection = products::collection::Collection; +pub type Remittance = products::remittance::Remittance; +pub type Disbursements = products::disbursements::Disbursements; +pub type Provisioning = products::provisioning::Provisioning; + + +