Skip to content

Commit

Permalink
adding type and docs in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
princefr committed Dec 30, 2023
1 parent 4d0e336 commit 3411f76
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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/]
<p align="center">
<img src="https://github.com/Bourse-numerique-d-afrique/momo.rs/blob/master/images/BrandGuid-mtnmomo.svg" alt="MOMO logo">
</p>
Expand Down
30 changes: 28 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand All @@ -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;






Expand Down

0 comments on commit 3411f76

Please sign in to comment.