@@ -7318,6 +7318,8 @@ where
7318
7318
/// [`ChannelManager`] when handling [`InvoiceRequest`] messages for the offer. The offer will
7319
7319
/// not have an expiration unless otherwise set on the builder.
7320
7320
///
7321
+ /// # Privacy
7322
+ ///
7321
7323
/// Uses a one-hop [`BlindedPath`] for the offer with [`ChannelManager::get_our_node_id`] as the
7322
7324
/// introduction node and a derived signing pubkey for recipient privacy. As such, currently,
7323
7325
/// the node must be announced. Otherwise, there is no way to find a path to the introduction
@@ -7342,21 +7344,32 @@ where
7342
7344
/// Creates a [`RefundBuilder`] such that the [`Refund`] it builds is recognized by the
7343
7345
/// [`ChannelManager`] when handling [`Bolt12Invoice`] messages for the refund.
7344
7346
///
7347
+ /// # Payment
7348
+ ///
7349
+ /// The provided `payment_id` is used to ensure that only one invoice is paid for the refund.
7350
+ /// See [Avoiding Duplicate Payments] for other requirements once the payment has been sent.
7351
+ ///
7345
7352
/// The builder will have the provided expiration set. Any changes to the expiration on the
7346
7353
/// returned builder will not be honored by [`ChannelManager`]. For `no-std`, the highest seen
7347
7354
/// block time minus two hours is used for the current time when determining if the refund has
7348
7355
/// expired.
7349
7356
///
7350
- /// The provided `payment_id` is used to ensure that only one invoice is paid for the refund. To
7351
- /// revoke the refund, use [`ChannelManager::abandon_payment`] prior to receiving the invoice.
7352
- /// If an invoice isn't received before expiration, the payment will fail with an
7353
- /// [`Event::InvoiceRequestFailed`].
7357
+ /// To revoke the refund, use [`ChannelManager::abandon_payment`] prior to receiving the
7358
+ /// invoice. If abandoned, or an invoice isn't received before expiration, the payment will fail
7359
+ /// with an [`Event::InvoiceRequestFailed`].
7360
+ ///
7361
+ /// # Privacy
7354
7362
///
7355
7363
/// Uses a one-hop [`BlindedPath`] for the refund with [`ChannelManager::get_our_node_id`] as
7356
7364
/// the introduction node and a derived payer id for sender privacy. As such, currently, the
7357
7365
/// node must be announced. Otherwise, there is no way to find a path to the introduction node
7358
7366
/// in order to send the [`Bolt12Invoice`].
7359
7367
///
7368
+ /// # Errors
7369
+ ///
7370
+ /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
7371
+ /// or if `amount_msats` is invalid.
7372
+ ///
7360
7373
/// [`Refund`]: crate::offers::refund::Refund
7361
7374
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7362
7375
pub fn create_refund_builder(
@@ -7398,6 +7411,8 @@ where
7398
7411
/// - `amount_msats` if overpaying what is required for the given `quantity` is desired, and
7399
7412
/// - `payer_note` for [`InvoiceRequest::payer_note`].
7400
7413
///
7414
+ /// # Payment
7415
+ ///
7401
7416
/// The provided `payment_id` is used to ensure that only one invoice is paid for the request
7402
7417
/// when received. See [Avoiding Duplicate Payments] for other requirements once the payment has
7403
7418
/// been sent.
@@ -7406,7 +7421,10 @@ where
7406
7421
/// invoice. If abandoned, or an invoice isn't received in a reasonable amount of time, the
7407
7422
/// payment will fail with an [`Event::InvoiceRequestFailed`].
7408
7423
///
7409
- /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link.
7424
+ /// # Errors
7425
+ ///
7426
+ /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
7427
+ /// or if the provided parameters are invalid for the offer.
7410
7428
///
7411
7429
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
7412
7430
/// [`InvoiceRequest::quantity`]: crate::offers::invoice_request::InvoiceRequest::quantity
0 commit comments