@@ -7325,6 +7325,11 @@ where
7325
7325
/// the node must be announced. Otherwise, there is no way to find a path to the introduction
7326
7326
/// node in order to send the [`InvoiceRequest`].
7327
7327
///
7328
+ /// # Limitations
7329
+ ///
7330
+ /// Requires a direct connection to the introduction node in the responding [`InvoiceRequest`]'s
7331
+ /// reply path.
7332
+ ///
7328
7333
/// [`Offer`]: crate::offers::offer::Offer
7329
7334
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
7330
7335
pub fn create_offer_builder(
@@ -7365,13 +7370,19 @@ where
7365
7370
/// node must be announced. Otherwise, there is no way to find a path to the introduction node
7366
7371
/// in order to send the [`Bolt12Invoice`].
7367
7372
///
7373
+ /// # Limitations
7374
+ ///
7375
+ /// Requires a direct connection to an introduction node in the responding
7376
+ /// [`Bolt12Invoice::payment_paths`].
7377
+ ///
7368
7378
/// # Errors
7369
7379
///
7370
7380
/// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
7371
7381
/// or if `amount_msats` is invalid.
7372
7382
///
7373
7383
/// [`Refund`]: crate::offers::refund::Refund
7374
7384
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7385
+ /// [`Bolt12Invoice::payment_paths`]: crate::offers::invoice::Bolt12Invoice::payment_paths
7375
7386
pub fn create_refund_builder(
7376
7387
&self, description: String, amount_msats: u64, absolute_expiry: Duration,
7377
7388
payment_id: PaymentId, retry_strategy: Retry, max_total_routing_fee_msat: Option<u64>
@@ -7428,6 +7439,12 @@ where
7428
7439
/// node must be announced. Otherwise, there is no way to find a path to the introduction node
7429
7440
/// in order to send the [`Bolt12Invoice`].
7430
7441
///
7442
+ /// # Limitations
7443
+ ///
7444
+ /// Requires a direct connection to an introduction node in [`Offer::paths`] or to
7445
+ /// [`Offer::signing_pubkey`], if empty. A similar restriction applies to the responding
7446
+ /// [`Bolt12Invoice::payment_paths`].
7447
+ ///
7431
7448
/// # Errors
7432
7449
///
7433
7450
/// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link
@@ -7438,6 +7455,7 @@ where
7438
7455
/// [`InvoiceRequest::payer_note`]: crate::offers::invoice_request::InvoiceRequest::payer_note
7439
7456
/// [`InvoiceRequestBuilder`]: crate::offers::invoice_request::InvoiceRequestBuilder
7440
7457
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7458
+ /// [`Bolt12Invoice::payment_paths`]: crate::offers::invoice::Bolt12Invoice::payment_paths
7441
7459
/// [Avoiding Duplicate Payments]: #avoiding-duplicate-payments
7442
7460
pub fn pay_for_offer(
7443
7461
&self, offer: &Offer, quantity: Option<u64>, amount_msats: Option<u64>,
@@ -7507,6 +7525,11 @@ where
7507
7525
/// [`BlindedPath`] containing the [`PaymentSecret`] needed to reconstruct the corresponding
7508
7526
/// [`PaymentPreimage`].
7509
7527
///
7528
+ /// # Limitations
7529
+ ///
7530
+ /// Requires a direct connection to an introduction node in [`Refund::paths`] or to
7531
+ /// [`Refund::payer_id`], if empty.
7532
+ ///
7510
7533
/// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
7511
7534
pub fn request_refund_payment(&self, refund: &Refund) -> Result<(), Bolt12SemanticError> {
7512
7535
let expanded_key = &self.inbound_payment_key;
0 commit comments