pub struct ChipClient { /* private fields */ }Implementations§
Source§impl ChipClient
impl ChipClient
pub async fn payment_methods( &self, brand_id: &str, currency: &str, opts: Option<PaymentMethodsOptions>, ) -> Result<PaymentMethods, ChipError>
pub async fn create_purchase( &self, purchase: &Purchase, ) -> Result<Purchase, ChipError>
pub async fn get_purchase(&self, id: &str) -> Result<Purchase, ChipError>
pub async fn cancel_purchase(&self, id: &str) -> Result<Purchase, ChipError>
pub async fn capture_purchase( &self, id: &str, amount: Option<f64>, ) -> Result<Purchase, ChipError>
pub async fn charge_purchase( &self, id: &str, recurring_token: &str, ) -> Result<Purchase, ChipError>
pub async fn refund_purchase( &self, id: &str, amount: Option<f64>, ) -> Result<Purchase, ChipError>
pub async fn release_purchase(&self, id: &str) -> Result<Purchase, ChipError>
pub async fn delete_recurring_token( &self, id: &str, ) -> Result<Purchase, ChipError>
Source§impl ChipClient
impl ChipClient
pub fn builder() -> ChipClientBuilder
Auto Trait Implementations§
impl Freeze for ChipClient
impl !RefUnwindSafe for ChipClient
impl Send for ChipClient
impl Sync for ChipClient
impl Unpin for ChipClient
impl UnsafeUnpin for ChipClient
impl !UnwindSafe for ChipClient
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