Skip to content

Commit

Permalink
make sat forwarding structs public
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Aug 22, 2024
1 parent 3cef674 commit 3b13024
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["RSS Blue", "Dovydas Joksas"]
name = "v4v"
version = "0.5.4"
version = "0.5.5"
edition = "2021"
description = "Value-for-value helper utilities for Podcasting 2.0"
license = "MIT OR Apache-2.0"
Expand Down
7 changes: 5 additions & 2 deletions src/pc20/forwarding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ pub struct CreateInvoiceArgs<'a> {
pub recipients: Vec<PaymentRecipientInfo>,
}

/// Metadata fields for sat forwarding service using Alby API.
#[derive(Debug, serde::Serialize, serde::Deserialize)]
struct CreateInvoiceMetadataForwardingStruct {
pub struct CreateInvoiceMetadataForwardingStruct {
/// Payment information.
pub payment_info: PaymentInfo,
/// Recipients' information.
pub recipients: Vec<PaymentRecipientInfo>,
}

/// Metadata for sat forwarding service using Alby API.
#[derive(Debug, serde::Serialize, serde::Deserialize)]
struct CreateInvoiceMetadata {
pub struct CreateInvoiceMetadata {
/// Forwarding data.
pub forwarding_data: CreateInvoiceMetadataForwardingStruct,
}

Expand Down

0 comments on commit 3b13024

Please sign in to comment.