[][src]Struct ya_client::payment::provider::PaymentProviderApi

pub struct PaymentProviderApi { /* fields omitted */ }

Implementations

impl PaymentProviderApi[src]

pub fn new(client: &Arc<WebClient>, config: ProviderApiConfig) -> Self[src]

pub async fn issue_debit_note<'_, '_>(
    &'_ self,
    debit_note: &'_ NewDebitNote
) -> Result<DebitNote>
[src]

pub async fn get_debit_notes<'_>(&'_ self) -> Result<Vec<DebitNote>>[src]

pub async fn get_debit_note<'_, '_>(
    &'_ self,
    debit_note_id: &'_ str
) -> Result<DebitNote>
[src]

pub async fn get_payments_for_debit_note<'_, '_>(
    &'_ self,
    debit_note_id: &'_ str
) -> Result<Vec<Payment>>
[src]

pub async fn send_debit_note<'_, '_>(
    &'_ self,
    debit_note_id: &'_ str
) -> Result<()>
[src]

pub async fn cancel_debit_note<'_, '_>(
    &'_ self,
    debit_note_id: &'_ str
) -> Result<()>
[src]

pub async fn get_debit_note_events<Tz, '_, '_>(
    &'_ self,
    later_than: Option<&'_ DateTime<Tz>>,
    timeout: Option<Duration>
) -> Result<Vec<DebitNoteEvent>> where
    Tz: TimeZone,
    Tz::Offset: Display
[src]

pub async fn issue_invoice<'_, '_>(
    &'_ self,
    invoice: &'_ NewInvoice
) -> Result<Invoice>
[src]

pub async fn get_invoices<'_>(&'_ self) -> Result<Vec<Invoice>>[src]

pub async fn get_invoice<'_, '_>(
    &'_ self,
    invoice_id: &'_ str
) -> Result<Invoice>
[src]

pub async fn get_payments_for_invoice<'_, '_>(
    &'_ self,
    invoice_id: &'_ str
) -> Result<Vec<Payment>>
[src]

pub async fn send_invoice<'_, '_>(&'_ self, invoice_id: &'_ str) -> Result<()>[src]

pub async fn cancel_invoice<'_, '_>(&'_ self, invoice_id: &'_ str) -> Result<()>[src]

pub async fn get_invoice_events<Tz, '_, '_>(
    &'_ self,
    later_than: Option<&'_ DateTime<Tz>>,
    timeout: Option<Duration>
) -> Result<Vec<InvoiceEvent>> where
    Tz: TimeZone,
    Tz::Offset: Display
[src]

pub async fn get_payments<Tz, '_, '_>(
    &'_ self,
    later_than: Option<&'_ DateTime<Tz>>,
    timeout: Option<Duration>
) -> Result<Vec<Payment>> where
    Tz: TimeZone,
    Tz::Offset: Display
[src]

pub async fn get_payment<'_, '_>(
    &'_ self,
    payment_id: &'_ str
) -> Result<Payment>
[src]

pub async fn get_accounts<'_>(&'_ self) -> Result<Vec<Account>>[src]

Trait Implementations

impl Clone for PaymentProviderApi[src]

impl WebInterface for PaymentProviderApi[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,