-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::objects::currency_unit::CurrencyUnit; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct CurrencyAmountInput { | ||
pub value: i64, | ||
|
||
pub unit: CurrencyUnit, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
use crate::objects::payment_failure_reason::PaymentFailureReason; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Clone, Deserialize, Serialize)] | ||
pub struct PayTestModeInvoiceInput { | ||
/// The node from where you want to send the payment. | ||
pub node_id: String, | ||
|
||
/// The invoice you want to pay (as defined by the BOLT11 standard). | ||
pub encoded_invoice: String, | ||
|
||
/// The timeout in seconds that we will try to make the payment. | ||
pub timeout_secs: i64, | ||
|
||
/// The maximum amount of fees that you want to pay for this payment to be sent, expressed in msats. | ||
pub maximum_fees_msats: i64, | ||
|
||
/// The failure reason to trigger for the payment. If not set, pay_invoice will be called. | ||
pub failure_reason: Option<PaymentFailureReason>, | ||
|
||
/// The amount you will pay for this invoice, expressed in msats. It should ONLY be set when the invoice amount is zero. | ||
pub amount_msats: Option<i64>, | ||
|
||
/// The idempotency key of the request. The same result will be returned for the same idempotency key. | ||
pub idempotency_key: Option<String>, | ||
} |