[−][src]Struct satispay::Satispay
Implementations
impl Satispay
[src]
pub fn from_files(key_file: &str, key_id_file: &str) -> Self
[src]
Load a Satispay instance from the private key and the keyId
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>
[src]
&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.
pub fn get_payment(&self, id: &str) -> Result<Payment, Error>
[src]
API to retrieve the detail of a specific payment
pub fn retrieve_customer(&self, phone_number: &str) -> Result<String, Error>
[src]
API to retrieve a customer uid from the phone number
pub fn update_payment(&self, id: &str, action: Action) -> Result<Payment, Error>
[src]
API to retrieve a customer uid from the phone number
pub fn retrieve_daily_closure(
&self,
date: Date<Utc>
) -> Result<(DailyClosure, PDF), Error>
[src]
&self,
date: Date<Utc>
) -> Result<(DailyClosure, PDF), Error>
API to retrieve shop daily closure
pub fn create_payment(&self, payment: NewPayment) -> Result<Payment, Error>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,