pub struct PaymentsApi { /* private fields */ }Implementations§
Source§impl PaymentsApi
impl PaymentsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn list_orders( &self, params: &GetOrdersParams, ) -> Result<GetOrdersResponse>
pub async fn get_order(&self, order_id: &str) -> Result<GetOrderResponse>
pub async fn list_transactions( &self, params: &GetTransactionsParams, ) -> Result<GetTransactionsResponse>
pub async fn get_transaction( &self, transaction_id: &str, ) -> Result<GetTransactionResponse>
pub async fn list_subscriptions( &self, params: &GetSubscriptionsParams, ) -> Result<GetSubscriptionsResponse>
pub async fn get_subscription(&self, subscription_id: &str) -> Result<Value>
Auto Trait Implementations§
impl !RefUnwindSafe for PaymentsApi
impl !UnwindSafe for PaymentsApi
impl Freeze for PaymentsApi
impl Send for PaymentsApi
impl Sync for PaymentsApi
impl Unpin for PaymentsApi
impl UnsafeUnpin for PaymentsApi
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