bachs-sdk 0.1.0

Unofficial Rust SDK for the Bachs API — payments and billing for internet businesses.
Documentation
pub mod accounts;
pub mod checkout_sessions;
pub mod connected_accounts;
pub mod customer_sessions;
pub mod customers;
pub mod media;
pub mod payment_rails;
pub mod payments;
pub mod products;
pub mod refunds;
pub mod subscriptions;
pub mod transfers;

use crate::client::Bachs;

impl Bachs {
    pub fn customers(&self) -> customers::Customers<'_> {
        customers::Customers { client: self }
    }

    pub fn products(&self) -> products::Products<'_> {
        products::Products { client: self }
    }

    pub fn checkout_sessions(&self) -> checkout_sessions::CheckoutSessions<'_> {
        checkout_sessions::CheckoutSessions { client: self }
    }

    pub fn subscriptions(&self) -> subscriptions::Subscriptions<'_> {
        subscriptions::Subscriptions { client: self }
    }

    pub fn payments(&self) -> payments::Payments<'_> {
        payments::Payments { client: self }
    }

    pub fn refunds(&self) -> refunds::Refunds<'_> {
        refunds::Refunds { client: self }
    }

    pub fn customer_sessions(&self) -> customer_sessions::CustomerSessions<'_> {
        customer_sessions::CustomerSessions { client: self }
    }

    pub fn accounts(&self) -> accounts::Accounts<'_> {
        accounts::Accounts { client: self }
    }

    pub fn connected_accounts(&self) -> connected_accounts::ConnectedAccounts<'_> {
        connected_accounts::ConnectedAccounts { client: self }
    }

    pub fn transfers(&self) -> transfers::Transfers<'_> {
        transfers::Transfers { client: self }
    }

    pub fn media(&self) -> media::Media<'_> {
        media::Media { client: self }
    }

    pub fn payment_rails(&self) -> payment_rails::PaymentRails<'_> {
        payment_rails::PaymentRails { client: self }
    }
}