pub struct Client<C: Config> { /* private fields */ }
Implementations§
Source§impl Client<MpesaConfig>
impl Client<MpesaConfig>
Sourcepub fn new() -> Self
pub fn new() -> Self
Client with default MpesaConfig
Source§impl<C: Config> Client<C>
impl<C: Config> Client<C>
Sourcepub fn with_config(config: C) -> Self
pub fn with_config(config: C) -> Self
Create client with MpesaConfig
Sourcepub fn with_http_client(self, http_client: Client) -> Self
pub fn with_http_client(self, http_client: Client) -> Self
Provide your own client to make HTTP requests with
pub fn accountbalance(&self) -> AccountBalance<'_, C>
pub fn b2c(&self) -> B2C<'_, C>
pub fn b2bexpress(&self) -> B2bExpress<'_, C>
pub fn b2btopup(&self) -> B2bTopup<'_, C>
pub fn bbuygoods(&self) -> Bbuygoods<'_, C>
pub fn billreconciliation(&self) -> Reconciliation<'_, C>
pub fn billupdate(&self) -> BillUpdate<'_, C>
pub fn billmanager(&self) -> BillOnboarding<'_, C>
pub fn bpaybill(&self) -> Bbuygoods<'_, C>
pub fn cancelinvoice(&self) -> CancelInvoice<'_, C>
pub fn expressquery(&self) -> ExpressQuery<'_, C>
pub fn qr(&self) -> Qr<'_, C>
pub fn ratiba(&self) -> Ratiba<'_, C>
pub fn reversal(&self) -> Reversal<'_, C>
pub fn singleinvoice(&self) -> SingleInvoice<'_, C>
pub fn stkpush(&self) -> STKPush<'_, C>
pub fn taxremit(&self) -> Tax<'_, C>
pub fn transactionstatus(&self) -> TransactionStatus<'_, C>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Client<C>where
C: Freeze,
impl<C> !RefUnwindSafe for Client<C>
impl<C> Send for Client<C>where
C: Send,
impl<C> Sync for Client<C>where
C: Sync,
impl<C> Unpin for Client<C>where
C: Unpin,
impl<C> !UnwindSafe for Client<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more