pub struct Strike { /* private fields */ }
Expand description
Strike
Implementations§
Source§impl Strike
impl Strike
Sourcepub async fn create_invoice(
&self,
invoice_request: InvoiceRequest,
) -> Result<InvoiceResponse>
pub async fn create_invoice( &self, invoice_request: InvoiceRequest, ) -> Result<InvoiceResponse>
Create Invoice
Sourcepub async fn get_incoming_invoice(
&self,
invoice_id: &str,
) -> Result<InvoiceResponse>
pub async fn get_incoming_invoice( &self, invoice_id: &str, ) -> Result<InvoiceResponse>
Find incoming invoice
Sourcepub async fn invoice_quote(
&self,
invoice_id: &str,
) -> Result<InvoiceQuoteResponse>
pub async fn invoice_quote( &self, invoice_id: &str, ) -> Result<InvoiceQuoteResponse>
Invoice quote
Source§impl Strike
impl Strike
Sourcepub async fn payment_quote(
&self,
quote_request: PayInvoiceQuoteRequest,
) -> Result<PayInvoiceQuoteResponse>
pub async fn payment_quote( &self, quote_request: PayInvoiceQuoteRequest, ) -> Result<PayInvoiceQuoteResponse>
Create Payment Quote
Sourcepub async fn pay_quote(
&self,
payment_quote_id: &str,
) -> Result<InvoicePaymentResponse>
pub async fn pay_quote( &self, payment_quote_id: &str, ) -> Result<InvoicePaymentResponse>
Execute quote to pay invoice
Sourcepub async fn get_outgoing_payment(
&self,
payment_id: &str,
) -> Result<InvoicePaymentResponse, Error>
pub async fn get_outgoing_payment( &self, payment_id: &str, ) -> Result<InvoicePaymentResponse, Error>
Get outgoing payment by payment id
Source§impl Strike
impl Strike
Sourcepub async fn create_invoice_webhook_router(
&self,
webhook_endpoint: &str,
sender: Sender<String>,
) -> Result<Router>
pub async fn create_invoice_webhook_router( &self, webhook_endpoint: &str, sender: Sender<String>, ) -> Result<Router>
Create invoice webhook
Sourcepub async fn subscribe_to_invoice_webhook(
&self,
webhook_url: String,
) -> Result<()>
pub async fn subscribe_to_invoice_webhook( &self, webhook_url: String, ) -> Result<()>
Subscribe to invoice webhook
Sourcepub async fn get_current_subscriptions(
&self,
) -> Result<Vec<WebhookInfoResponse>>
pub async fn get_current_subscriptions( &self, ) -> Result<Vec<WebhookInfoResponse>>
Get current subscriptions
Sourcepub async fn delete_subscription(&self, webhook_id: &str) -> Result<()>
pub async fn delete_subscription(&self, webhook_id: &str) -> Result<()>
Delete subscription
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Strike
impl !RefUnwindSafe for Strike
impl Send for Strike
impl Sync for Strike
impl Unpin for Strike
impl !UnwindSafe for Strike
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