-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom TLV records to invoice (#98)
* Add custom TLV records to invoice Custom [TLV records](https://github.com/satoshisstream/satoshis.stream/blob/main/TLV_registry.md) only work for LND right now, Core Lightning support might come, see ElementsProject/lightning#4470 * Format files
- Loading branch information
1 parent
2e865d1
commit 265fcf5
Showing
4 changed files
with
51 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace BTCPayServer.Lightning | ||
namespace BTCPayServer.Lightning; | ||
|
||
public class LightningInvoice | ||
{ | ||
public class LightningInvoice | ||
{ | ||
public string Id { get; set; } | ||
public LightningInvoiceStatus Status { get; set; } | ||
public string BOLT11 { get; set; } | ||
public DateTimeOffset? PaidAt { get; set; } | ||
public DateTimeOffset ExpiresAt { get; set; } | ||
public LightMoney Amount { get; set; } | ||
public LightMoney AmountReceived { get; set; } | ||
} | ||
public string Id { get; set; } | ||
public LightningInvoiceStatus Status { get; set; } | ||
public string BOLT11 { get; set; } | ||
public DateTimeOffset? PaidAt { get; set; } | ||
public DateTimeOffset ExpiresAt { get; set; } | ||
public LightMoney Amount { get; set; } | ||
public LightMoney AmountReceived { get; set; } | ||
public Dictionary<ulong, string> CustomRecords { get; set; } | ||
} |
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