@@ -7163,6 +7163,8 @@ where
71637163 /// [`ChannelManager`] when handling [`InvoiceRequest`] messages for the offer. The offer will
71647164 /// not have an expiration unless otherwise set on the builder.
71657165 ///
7166+ /// # Privacy
7167+ ///
71667168 /// Uses a one-hop [`BlindedPath`] for the offer with [`ChannelManager::get_our_node_id`] as the
71677169 /// introduction node and a derived signing pubkey for recipient privacy. As such, currently,
71687170 /// the node must be announced. Otherwise, there is no way to find a path to the introduction
@@ -7187,21 +7189,32 @@ where
71877189 /// Creates a [`RefundBuilder`] such that the [`Refund`] it builds is recognized by the
71887190 /// [`ChannelManager`] when handling [`Bolt12Invoice`] messages for the refund.
71897191 ///
7192+ /// # Payment
7193+ ///
7194+ /// The provided `payment_id` is used to ensure that only one invoice is paid for the refund.
7195+ /// See [Avoiding Duplicate Payments] for other requirements once the payment has been sent.
7196+ ///
71907197 /// The builder will have the provided expiration set. Any changes to the expiration on the
71917198 /// returned builder will not be honored by [`ChannelManager`]. For `no-std`, the highest seen
71927199 /// block time minus two hours is used for the current time when determining if the refund has
71937200 /// expired.
71947201 ///
7195- /// The provided `payment_id` is used to ensure that only one invoice is paid for the refund. To
7196- /// revoke the refund, use [`ChannelManager::abandon_payment`] prior to receiving the invoice.
7197- /// If an invoice isn't received before expiration, the payment will fail with an
7198- /// [`Event::InvoiceRequestFailed`].
7202+ /// To revoke the refund, use [`ChannelManager::abandon_payment`] prior to receiving the
7203+ /// invoice. If abandoned, or an invoice isn't received before expiration, the payment will fail
7204+ /// with an [`Event::InvoiceRequestFailed`].
7205+ ///
7206+ /// # Privacy
71997207 ///
72007208 /// Uses a one-hop [`BlindedPath`] for the refund with [`ChannelManager::get_our_node_id`] as
72017209 /// the introduction node and a derived payer id for sender privacy. As such, currently, the
72027210 /// node must be announced. Otherwise, there is no way to find a path to the introduction node
72037211 /// in order to send the [`Bolt12Invoice`].
72047212 ///
7213+ /// # Errors
7214+ ///
7215+ /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
7216+ /// or if `amount_msats` is invalid.
7217+ ///
72057218 /// [`Refund`]: crate::offers::refund::Refund
72067219 /// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
72077220 pub fn create_refund_builder(
@@ -7243,6 +7256,8 @@ where
72437256 /// - `amount_msats` if overpaying what is required for the given `quantity` is desired, and
72447257 /// - `payer_note` for [`InvoiceRequest::payer_note`].
72457258 ///
7259+ /// # Payment
7260+ ///
72467261 /// The provided `payment_id` is used to ensure that only one invoice is paid for the request
72477262 /// when received. See [Avoiding Duplicate Payments] for other requirements once the payment has
72487263 /// been sent.
@@ -7251,7 +7266,10 @@ where
72517266 /// invoice. If abandoned, or an invoice isn't received in a reasonable amount of time, the
72527267 /// payment will fail with an [`Event::InvoiceRequestFailed`].
72537268 ///
7254- /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link.
7269+ /// # Errors
7270+ ///
7271+ /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
7272+ /// or if the provided parameters are invalid for the offer.
72557273 ///
72567274 /// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
72577275 /// [`InvoiceRequest::quantity`]: crate::offers::invoice_request::InvoiceRequest::quantity
0 commit comments