[−][src]Struct ya_client::payment::provider::PaymentProviderApi
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]
&'_ self,
debit_note: &'_ NewDebitNote
) -> Result<DebitNote>
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]
&'_ self,
debit_note_id: &'_ str
) -> Result<DebitNote>
pub async fn get_payments_for_debit_note<'_, '_>(
&'_ self,
debit_note_id: &'_ str
) -> Result<Vec<Payment>>
[src]
&'_ self,
debit_note_id: &'_ str
) -> Result<Vec<Payment>>
pub async fn send_debit_note<'_, '_>(
&'_ self,
debit_note_id: &'_ str
) -> Result<()>
[src]
&'_ self,
debit_note_id: &'_ str
) -> Result<()>
pub async fn cancel_debit_note<'_, '_>(
&'_ self,
debit_note_id: &'_ str
) -> Result<()>
[src]
&'_ self,
debit_note_id: &'_ str
) -> Result<()>
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]
&'_ self,
later_than: Option<&'_ DateTime<Tz>>,
timeout: Option<Duration>
) -> Result<Vec<DebitNoteEvent>> where
Tz: TimeZone,
Tz::Offset: Display,
pub async fn issue_invoice<'_, '_>(
&'_ self,
invoice: &'_ NewInvoice
) -> Result<Invoice>
[src]
&'_ self,
invoice: &'_ NewInvoice
) -> Result<Invoice>
pub async fn get_invoices<'_>(&'_ self) -> Result<Vec<Invoice>>
[src]
pub async fn get_invoice<'_, '_>(
&'_ self,
invoice_id: &'_ str
) -> Result<Invoice>
[src]
&'_ self,
invoice_id: &'_ str
) -> Result<Invoice>
pub async fn get_payments_for_invoice<'_, '_>(
&'_ self,
invoice_id: &'_ str
) -> Result<Vec<Payment>>
[src]
&'_ self,
invoice_id: &'_ str
) -> Result<Vec<Payment>>
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]
&'_ self,
later_than: Option<&'_ DateTime<Tz>>,
timeout: Option<Duration>
) -> Result<Vec<InvoiceEvent>> where
Tz: TimeZone,
Tz::Offset: Display,
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]
&'_ self,
later_than: Option<&'_ DateTime<Tz>>,
timeout: Option<Duration>
) -> Result<Vec<Payment>> where
Tz: TimeZone,
Tz::Offset: Display,
pub async fn get_payment<'_, '_>(
&'_ self,
payment_id: &'_ str
) -> Result<Payment>
[src]
&'_ self,
payment_id: &'_ str
) -> Result<Payment>
pub async fn get_accounts<'_>(&'_ self) -> Result<Vec<Account>>
[src]
Trait Implementations
impl Clone for PaymentProviderApi
[src]
fn clone(&self) -> PaymentProviderApi
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl WebInterface for PaymentProviderApi
[src]
const API_URL_ENV_VAR: &'static str
[src]
const API_SUFFIX: &'static str
[src]
fn from_client(client: WebClient) -> Self
[src]
fn rebase_service_url(base_url: Rc<Url>) -> Result<Rc<Url>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PaymentProviderApi
impl !Send for PaymentProviderApi
impl !Sync for PaymentProviderApi
impl Unpin for PaymentProviderApi
impl !UnwindSafe for PaymentProviderApi
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,