[][src]Struct satispay::Satispay

pub struct Satispay { /* fields omitted */ }

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]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,