@@ -7163,6 +7163,8 @@ where
7163
7163
/// [`ChannelManager`] when handling [`InvoiceRequest`] messages for the offer. The offer will
7164
7164
/// not have an expiration unless otherwise set on the builder.
7165
7165
///
7166
+ /// # Privacy
7167
+ ///
7166
7168
/// Uses a one-hop [`BlindedPath`] for the offer with [`ChannelManager::get_our_node_id`] as the
7167
7169
/// introduction node and a derived signing pubkey for recipient privacy. As such, currently,
7168
7170
/// the node must be announced. Otherwise, there is no way to find a path to the introduction
@@ -7187,21 +7189,32 @@ where
7187
7189
/// Creates a [`RefundBuilder`] such that the [`Refund`] it builds is recognized by the
7188
7190
/// [`ChannelManager`] when handling [`Bolt12Invoice`] messages for the refund.
7189
7191
///
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
+ ///
7190
7197
/// The builder will have the provided expiration set. Any changes to the expiration on the
7191
7198
/// returned builder will not be honored by [`ChannelManager`]. For `no-std`, the highest seen
7192
7199
/// block time minus two hours is used for the current time when determining if the refund has
7193
7200
/// expired.
7194
7201
///
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
7199
7207
///
7200
7208
/// Uses a one-hop [`BlindedPath`] for the refund with [`ChannelManager::get_our_node_id`] as
7201
7209
/// the introduction node and a derived payer id for sender privacy. As such, currently, the
7202
7210
/// node must be announced. Otherwise, there is no way to find a path to the introduction node
7203
7211
/// in order to send the [`Bolt12Invoice`].
7204
7212
///
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
+ ///
7205
7218
/// [`Refund`]: crate::offers::refund::Refund
7206
7219
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7207
7220
pub fn create_refund_builder(
@@ -7243,6 +7256,8 @@ where
7243
7256
/// - `amount_msats` if overpaying what is required for the given `quantity` is desired, and
7244
7257
/// - `payer_note` for [`InvoiceRequest::payer_note`].
7245
7258
///
7259
+ /// # Payment
7260
+ ///
7246
7261
/// The provided `payment_id` is used to ensure that only one invoice is paid for the request
7247
7262
/// when received. See [Avoiding Duplicate Payments] for other requirements once the payment has
7248
7263
/// been sent.
@@ -7251,7 +7266,10 @@ where
7251
7266
/// invoice. If abandoned, or an invoice isn't received in a reasonable amount of time, the
7252
7267
/// payment will fail with an [`Event::InvoiceRequestFailed`].
7253
7268
///
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.
7255
7273
///
7256
7274
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
7257
7275
/// [`InvoiceRequest::quantity`]: crate::offers::invoice_request::InvoiceRequest::quantity
0 commit comments