Trait StripeApi

Source
pub trait StripeApi: Send + Sync {
    // Required methods
    fn create_setup_intent_for_bank_account<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSetupIntentForBankAccountError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_setup_intent_for_card<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSetupIntentForCardError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_country_supported<'a, 'life0, 'async_trait>(
        &'life0 self,
        country: Option<&'a str>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<IsCountrySupportedError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create_setup_intent_for_bank_account<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSetupIntentForBankAccountError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /setup-intent/bank-account

Source

fn create_setup_intent_for_card<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSetupIntentForCardError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /setup-intent/card

Source

fn is_country_supported<'a, 'life0, 'async_trait>( &'life0 self, country: Option<&'a str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<IsCountrySupportedError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /tax/is-country-supported

Implementors§