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 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