Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Aug 19, 2024
1 parent b5eab6e commit 319da23
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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.1"
version = "0.5.2"
edition = "2021"
description = "Value-for-value helper utilities for Podcasting 2.0"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/alby/webhooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub use crate::svix::webhooks::{HeaderMap, WebhookError as Error};
/// headers: http::header::HeaderMap,
/// Json(body): Json<serde_json::Value>,
/// ) -> StatusCode {
/// match v4v::verify_signature(&secret, body.to_string().as_bytes(), &headers) {
/// match v4v::alby::webhooks::verify_signature(&secret, body.to_string().as_bytes(), &headers) {
/// Ok(()) => {}
/// Err(e) => {
/// log::error!("Failed to verify webhook: {:?}", e);
Expand Down
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ pub mod pc20 {
///
/// #[derive(serde::Deserialize)]
/// struct GenerateForwardingInvoiceRequest {
/// pub payment_info: v4v::podcasting::payments::PaymentInfo,
/// pub recipients: Vec<v4v::podcasting::payments::PaymentRecipientInfo>,
/// pub payment_info: v4v::pc20::payments::PaymentInfo,
/// pub recipients: Vec<v4v::pc20::payments::PaymentRecipientInfo>,
/// }
///
/// #[derive(serde::Serialize)]
Expand All @@ -67,8 +67,8 @@ pub mod pc20 {
/// // Might also want to do additional checks before generating invoice, e.g., limiting
/// // the amount.
///
/// let resp = match v4v::podcasting::forwarding::create_invoice(
/// v4v::podcasting::forwarding::CreateInvoiceArgs {
/// let resp = match v4v::pc20::forwarding::create_invoice(
/// v4v::pc20::forwarding::CreateInvoiceArgs {
/// user_agent: USER_AGENT,
/// token: ALBY_TOKEN,
/// payment_info: body.payment_info,
Expand Down Expand Up @@ -103,7 +103,7 @@ pub mod pc20 {
/// return StatusCode::OK;
/// }
///
/// let metadata = match v4v::podcasting::forwarding::CreateInvoiceMetadata::try_from(
/// let metadata = match v4v::pc20::forwarding::CreateInvoiceMetadata::try_from(
/// alby_invoice,
/// ) {
/// Ok(metadata) => metadata,
Expand All @@ -115,7 +115,7 @@ pub mod pc20 {
/// // Trim if the sum of payments somehow exceeds the total amount received.
/// let recipients = v4v::clip_recipients_at_amount(&recipients, alby_invoice.num_sats);
///
/// match v4v::forward_payments(v4v::podcasting::forwarding::ForwardPaymentArgs {
/// match v4v::forward_payments(v4v::pc20::forwarding::ForwardPaymentArgs {
/// user_agent: USER_AGENT,
/// token: ALBY_TOKEN,
/// payment_info,
Expand Down

0 comments on commit 319da23

Please sign in to comment.