pub struct PaymentProcessorClient { /* private fields */ }Expand description
Payment Processor
Implementations§
Trait Implementations§
Source§impl Clone for PaymentProcessorClient
impl Clone for PaymentProcessorClient
Source§fn clone(&self) -> PaymentProcessorClient
fn clone(&self) -> PaymentProcessorClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl MintPayment for PaymentProcessorClient
impl MintPayment for PaymentProcessorClient
Source§fn create_incoming_payment_request<'life0, 'life1, 'async_trait>(
&'life0 self,
amount: Amount,
unit: &'life1 CurrencyUnit,
description: String,
unix_expiry: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<CreateIncomingPaymentResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_incoming_payment_request<'life0, 'life1, 'async_trait>(
&'life0 self,
amount: Amount,
unit: &'life1 CurrencyUnit,
description: String,
unix_expiry: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<CreateIncomingPaymentResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new invoice
Source§fn wait_any_incoming_payment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = String> + Send>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wait_any_incoming_payment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = String> + Send>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Listen for invoices to be paid to the mint
Source§fn is_wait_invoice_active(&self) -> bool
fn is_wait_invoice_active(&self) -> bool
Is wait invoice active
Source§fn cancel_wait_invoice(&self)
fn cancel_wait_invoice(&self)
Cancel wait invoice
Source§fn get_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_settings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Base Settings
Source§fn get_payment_quote<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 str,
unit: &'life2 CurrencyUnit,
options: Option<MeltOptions>,
) -> Pin<Box<dyn Future<Output = Result<PaymentQuoteResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_payment_quote<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 str,
unit: &'life2 CurrencyUnit,
options: Option<MeltOptions>,
) -> Pin<Box<dyn Future<Output = Result<PaymentQuoteResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get payment quote
Used to get fee and amount required for a payment request
Source§fn make_payment<'life0, 'async_trait>(
&'life0 self,
melt_quote: MeltQuote,
partial_amount: Option<Amount>,
max_fee_amount: Option<Amount>,
) -> Pin<Box<dyn Future<Output = Result<CdkMakePaymentResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn make_payment<'life0, 'async_trait>(
&'life0 self,
melt_quote: MeltQuote,
partial_amount: Option<Amount>,
max_fee_amount: Option<Amount>,
) -> Pin<Box<dyn Future<Output = Result<CdkMakePaymentResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pay request
Source§fn check_incoming_payment_status<'life0, 'life1, 'async_trait>(
&'life0 self,
request_lookup_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MintQuoteState, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_incoming_payment_status<'life0, 'life1, 'async_trait>(
&'life0 self,
request_lookup_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MintQuoteState, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check the status of an incoming payment
Source§fn check_outgoing_payment<'life0, 'life1, 'async_trait>(
&'life0 self,
request_lookup_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CdkMakePaymentResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_outgoing_payment<'life0, 'life1, 'async_trait>(
&'life0 self,
request_lookup_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CdkMakePaymentResponse, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check the status of an outgoing payment
Auto Trait Implementations§
impl !Freeze for PaymentProcessorClient
impl !RefUnwindSafe for PaymentProcessorClient
impl Send for PaymentProcessorClient
impl Sync for PaymentProcessorClient
impl Unpin for PaymentProcessorClient
impl !UnwindSafe for PaymentProcessorClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request