pub struct PaymentsSender<T: Transport> { /* private fields */ }Expand description
PaymentsSender sends messages to a Payments service client for sending Payments messages
Implementations
sourceimpl<T: Transport> PaymentsSender<T>
impl<T: Transport> PaymentsSender<T>
pub fn set_timeout(&self, interval: Duration)
Trait Implementations
sourceimpl<T: Debug + Transport> Debug for PaymentsSender<T>
impl<T: Debug + Transport> Debug for PaymentsSender<T>
sourceimpl<T: Transport + Sync + Send> Payments for PaymentsSender<T>
impl<T: Transport + Sync + Send> Payments for PaymentsSender<T>
AuthorizePayment - Validates that a potential payment transaction can go through. If this succeeds then we should assume it is safe to complete a payment. Payments cannot be completed without getting a validation code (in other words, all payments have to be pre-authorized).
sourcefn complete_payment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 CompletePaymentRequest
) -> Pin<Box<dyn Future<Output = RpcResult<CompletePaymentResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn complete_payment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 CompletePaymentRequest
) -> Pin<Box<dyn Future<Output = RpcResult<CompletePaymentResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Completes a previously authorized payment. This operation requires the “authorization code” from a successful authorization operation.
sourcefn get_payment_methods<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 Context
) -> Pin<Box<dyn Future<Output = RpcResult<PaymentMethods>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_payment_methods<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 Context
) -> Pin<Box<dyn Future<Output = RpcResult<PaymentMethods>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
GetPaymentMethods - Retrieves an opaque list of payment methods,
which is a list of customer-facing method names and the
tokens
belonging to that payment method. You could think of this list as
a previously saved list of payment methods stored in a “wallet”.
A payment method token is required to authorize and subsequently
complete a payment transaction. A customer could have previously
supplied their credit card and user-friendly labels for those methods
like “personal” and “work”, etc.
sourcefn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations
impl<T> RefUnwindSafe for PaymentsSender<T> where
T: RefUnwindSafe,
impl<T> Send for PaymentsSender<T>
impl<T> Sync for PaymentsSender<T> where
T: Sync,
impl<T> Unpin for PaymentsSender<T> where
T: Unpin,
impl<T> UnwindSafe for PaymentsSender<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more