Use invoice items instead of amount

This commit is contained in:
Jon Staab
2026-03-31 11:22:20 -07:00
parent 15394f55d2
commit 8018950ba9
6 changed files with 60 additions and 9 deletions
+7
View File
@@ -75,3 +75,10 @@ pub struct InvoiceItem {
pub relay: String,
pub sats: i64,
}
#[derive(Debug, Clone, Serialize)]
pub struct InvoiceWithItems {
#[serde(flatten)]
pub invoice: Invoice,
pub items: Vec<InvoiceItem>,
}