pub struct Satispay { /* private fields */ }
Implementations§
Source§impl Satispay
impl Satispay
Sourcepub fn from_files(key_file: &str, key_id_file: &str) -> Self
pub fn from_files(key_file: &str, key_id_file: &str) -> Self
Load a Satispay instance from the private key and the keyId
Sourcepub fn get_payments_list(
&self,
status: Option<PaymentStatus>,
limit: Option<i32>,
starting_after: Option<String>,
starting_after_timestamp: Option<u64>,
) -> Result<Vec<Payment>, Error>
pub fn get_payments_list( &self, status: Option<PaymentStatus>, limit: Option<i32>, starting_after: Option<String>, starting_after_timestamp: Option<u64>, ) -> Result<Vec<Payment>, Error>
API to retrieve the list of payments for a specific shop. The shop is automatically filtered based on the KeyID used in the authorisation header.
Sourcepub fn get_payment(&self, id: &str) -> Result<Payment, Error>
pub fn get_payment(&self, id: &str) -> Result<Payment, Error>
API to retrieve the detail of a specific payment
Sourcepub fn retrieve_customer(&self, phone_number: &str) -> Result<String, Error>
pub fn retrieve_customer(&self, phone_number: &str) -> Result<String, Error>
API to retrieve a customer uid from the phone number
Sourcepub fn update_payment(&self, id: &str, action: Action) -> Result<Payment, Error>
pub fn update_payment(&self, id: &str, action: Action) -> Result<Payment, Error>
API to retrieve a customer uid from the phone number
Sourcepub fn retrieve_daily_closure(
&self,
date: Date<Utc>,
) -> Result<(DailyClosure, PDF), Error>
pub fn retrieve_daily_closure( &self, date: Date<Utc>, ) -> Result<(DailyClosure, PDF), Error>
API to retrieve shop daily closure
Sourcepub fn create_payment(&self, payment: NewPayment) -> Result<Payment, Error>
pub fn create_payment(&self, payment: NewPayment) -> Result<Payment, Error>
API to create a payment
Auto Trait Implementations§
impl Freeze for Satispay
impl RefUnwindSafe for Satispay
impl Send for Satispay
impl Sync for Satispay
impl Unpin for Satispay
impl UnwindSafe for Satispay
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