@@ -690,8 +690,8 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
690690 /// From [`Offer::paths`] or [`Refund::paths`].
691691 ///
692692 /// [`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 ( )
695695 }
696696
697697 /// The quantity of items supported.
@@ -726,9 +726,9 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
726726 }
727727
728728 /// 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 `].
730730 ///
731- /// [`request_paths `]: Self::request_paths
731+ /// [`offer_request_paths `]: Self::offer_request_paths
732732 pub fn payer_id( & $self) -> PublicKey {
733733 $contents. payer_id( )
734734 }
@@ -891,7 +891,7 @@ impl InvoiceContents {
891891 }
892892 }
893893
894- fn request_paths ( & self ) -> & [ BlindedPath ] {
894+ fn offer_request_paths ( & self ) -> & [ BlindedPath ] {
895895 match self {
896896 InvoiceContents :: ForOffer { invoice_request, .. } => {
897897 invoice_request. inner . offer . paths ( )
@@ -1475,7 +1475,7 @@ mod tests {
14751475 assert_eq ! ( unsigned_invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
14761476 assert_eq ! ( unsigned_invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
14771477 assert_eq ! ( unsigned_invoice. absolute_expiry( ) , None ) ;
1478- assert_eq ! ( unsigned_invoice. request_paths ( ) , & [ ] ) ;
1478+ assert_eq ! ( unsigned_invoice. offer_request_paths ( ) , & [ ] ) ;
14791479 assert_eq ! ( unsigned_invoice. issuer( ) , None ) ;
14801480 assert_eq ! ( unsigned_invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
14811481 assert_eq ! ( unsigned_invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1517,7 +1517,7 @@ mod tests {
15171517 assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
15181518 assert_eq ! ( invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
15191519 assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1520- assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
1520+ assert_eq ! ( invoice. offer_request_paths ( ) , & [ ] ) ;
15211521 assert_eq ! ( invoice. issuer( ) , None ) ;
15221522 assert_eq ! ( invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
15231523 assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1614,7 +1614,7 @@ mod tests {
16141614 assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
16151615 assert_eq ! ( invoice. offer_features( ) , None ) ;
16161616 assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1617- assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
1617+ assert_eq ! ( invoice. offer_request_paths ( ) , & [ ] ) ;
16181618 assert_eq ! ( invoice. issuer( ) , None ) ;
16191619 assert_eq ! ( invoice. supported_quantity( ) , None ) ;
16201620 assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
0 commit comments