@@ -7170,6 +7170,11 @@ where
7170
7170
/// the node must be announced. Otherwise, there is no way to find a path to the introduction
7171
7171
/// node in order to send the [`InvoiceRequest`].
7172
7172
///
7173
+ /// # Limitations
7174
+ ///
7175
+ /// Requires a direct connection to the introduction node in the responding [`InvoiceRequest`]'s
7176
+ /// reply path.
7177
+ ///
7173
7178
/// [`Offer`]: crate::offers::offer::Offer
7174
7179
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
7175
7180
pub fn create_offer_builder(
@@ -7210,13 +7215,19 @@ where
7210
7215
/// node must be announced. Otherwise, there is no way to find a path to the introduction node
7211
7216
/// in order to send the [`Bolt12Invoice`].
7212
7217
///
7218
+ /// # Limitations
7219
+ ///
7220
+ /// Requires a direct connection to an introduction node in the responding
7221
+ /// [`Bolt12Invoice::payment_paths`].
7222
+ ///
7213
7223
/// # Errors
7214
7224
///
7215
7225
/// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
7216
7226
/// or if `amount_msats` is invalid.
7217
7227
///
7218
7228
/// [`Refund`]: crate::offers::refund::Refund
7219
7229
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7230
+ /// [`Bolt12Invoice::payment_paths`]: crate::offers::invoice::Bolt12Invoice::payment_paths
7220
7231
pub fn create_refund_builder(
7221
7232
&self, description: String, amount_msats: u64, absolute_expiry: Duration,
7222
7233
payment_id: PaymentId, retry_strategy: Retry, max_total_routing_fee_msat: Option<u64>
@@ -7273,6 +7284,12 @@ where
7273
7284
/// node must be announced. Otherwise, there is no way to find a path to the introduction node
7274
7285
/// in order to send the [`Bolt12Invoice`].
7275
7286
///
7287
+ /// # Limitations
7288
+ ///
7289
+ /// Requires a direct connection to an introduction node in [`Offer::paths`] or to
7290
+ /// [`Offer::signing_pubkey`], if empty. A similar restriction applies to the responding
7291
+ /// [`Bolt12Invoice::payment_paths`].
7292
+ ///
7276
7293
/// # Errors
7277
7294
///
7278
7295
/// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
@@ -7283,6 +7300,7 @@ where
7283
7300
/// [`InvoiceRequest::payer_note`]: crate::offers::invoice_request::InvoiceRequest::payer_note
7284
7301
/// [`InvoiceRequestBuilder`]: crate::offers::invoice_request::InvoiceRequestBuilder
7285
7302
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7303
+ /// [`Bolt12Invoice::payment_paths`]: crate::offers::invoice::Bolt12Invoice::payment_paths
7286
7304
/// [Avoiding Duplicate Payments]: #avoiding-duplicate-payments
7287
7305
pub fn pay_for_offer(
7288
7306
&self, offer: &Offer, quantity: Option<u64>, amount_msats: Option<u64>,
@@ -7352,6 +7370,11 @@ where
7352
7370
/// [`BlindedPath`] containing the [`PaymentSecret`] needed to reconstruct the corresponding
7353
7371
/// [`PaymentPreimage`].
7354
7372
///
7373
+ /// # Limitations
7374
+ ///
7375
+ /// Requires a direct connection to an introduction node in [`Refund::paths`] or to
7376
+ /// [`Refund::payer_id`], if empty.
7377
+ ///
7355
7378
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7356
7379
pub fn request_refund_payment(&self, refund: &Refund) -> Result<(), Bolt12SemanticError> {
7357
7380
let expanded_key = &self.inbound_payment_key;
0 commit comments