pub struct InvoicePayApi<'a> { /* private fields */ }Expand description
Invoice Pay API.
Implementations§
Source§impl<'a> InvoicePayApi<'a>
impl<'a> InvoicePayApi<'a>
pub fn new(client: &'a ConcurClient) -> Self
Sourcepub async fn list_payments(
&self,
query: &PaymentQuery,
) -> Result<PaymentsResponse>
pub async fn list_payments( &self, query: &PaymentQuery, ) -> Result<PaymentsResponse>
List pending payments.
Sourcepub async fn update_payment(
&self,
payment_id: &str,
update: &PaymentUpdate,
) -> Result<PaymentUpdateResult>
pub async fn update_payment( &self, payment_id: &str, update: &PaymentUpdate, ) -> Result<PaymentUpdateResult>
Update a single payment status.
Sourcepub async fn bulk_update_payments(
&self,
updates: &[PaymentUpdate],
) -> Result<BulkUpdateResult>
pub async fn bulk_update_payments( &self, updates: &[PaymentUpdate], ) -> Result<BulkUpdateResult>
Update multiple payment statuses in bulk.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InvoicePayApi<'a>
impl<'a> !UnwindSafe for InvoicePayApi<'a>
impl<'a> Forget for InvoicePayApi<'a>
impl<'a> Freeze for InvoicePayApi<'a>
impl<'a> Send for InvoicePayApi<'a>
impl<'a> Sync for InvoicePayApi<'a>
impl<'a> Unpin for InvoicePayApi<'a>
impl<'a> UnsafeUnpin for InvoicePayApi<'a>
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