@@ -690,8 +690,8 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
690
690
/// From [`Offer::paths`] or [`Refund::paths`].
691
691
///
692
692
/// [`Offer::paths`]: crate::offers::offer::Offer::paths
693
- pub fn request_paths ( & $self) -> & [ BlindedPath ] {
694
- $contents. request_paths ( )
693
+ pub fn offer_request_paths ( & $self) -> & [ BlindedPath ] {
694
+ $contents. offer_request_paths ( )
695
695
}
696
696
697
697
/// The quantity of items supported.
@@ -726,9 +726,9 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
726
726
}
727
727
728
728
/// A possibly transient pubkey used to sign the invoice request or to send an invoice for a
729
- /// refund in case there are no [`request_paths `].
729
+ /// refund in case there are no [`offer_request_paths `].
730
730
///
731
- /// [`request_paths `]: Self::request_paths
731
+ /// [`offer_request_paths `]: Self::offer_request_paths
732
732
pub fn payer_id( & $self) -> PublicKey {
733
733
$contents. payer_id( )
734
734
}
@@ -891,7 +891,7 @@ impl InvoiceContents {
891
891
}
892
892
}
893
893
894
- fn request_paths ( & self ) -> & [ BlindedPath ] {
894
+ fn offer_request_paths ( & self ) -> & [ BlindedPath ] {
895
895
match self {
896
896
InvoiceContents :: ForOffer { invoice_request, .. } => {
897
897
invoice_request. inner . offer . paths ( )
@@ -1475,7 +1475,7 @@ mod tests {
1475
1475
assert_eq ! ( unsigned_invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
1476
1476
assert_eq ! ( unsigned_invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
1477
1477
assert_eq ! ( unsigned_invoice. absolute_expiry( ) , None ) ;
1478
- assert_eq ! ( unsigned_invoice. request_paths ( ) , & [ ] ) ;
1478
+ assert_eq ! ( unsigned_invoice. offer_request_paths ( ) , & [ ] ) ;
1479
1479
assert_eq ! ( unsigned_invoice. issuer( ) , None ) ;
1480
1480
assert_eq ! ( unsigned_invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
1481
1481
assert_eq ! ( unsigned_invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1517,7 +1517,7 @@ mod tests {
1517
1517
assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
1518
1518
assert_eq ! ( invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
1519
1519
assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1520
- assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
1520
+ assert_eq ! ( invoice. offer_request_paths ( ) , & [ ] ) ;
1521
1521
assert_eq ! ( invoice. issuer( ) , None ) ;
1522
1522
assert_eq ! ( invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
1523
1523
assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1614,7 +1614,7 @@ mod tests {
1614
1614
assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
1615
1615
assert_eq ! ( invoice. offer_features( ) , None ) ;
1616
1616
assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1617
- assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
1617
+ assert_eq ! ( invoice. offer_request_paths ( ) , & [ ] ) ;
1618
1618
assert_eq ! ( invoice. issuer( ) , None ) ;
1619
1619
assert_eq ! ( invoice. supported_quantity( ) , None ) ;
1620
1620
assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
0 commit comments