@@ -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 message_paths ( & $self) -> & [ BlindedPath ] {
694- $contents. message_paths ( )
693+ pub fn request_paths ( & $self) -> & [ BlindedPath ] {
694+ $contents. 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 [`message_paths `].
729+ /// refund in case there are no [`request_paths `].
730730 ///
731- /// [`message_paths `]: Self::message_paths
731+ /// [`request_paths `]: Self::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 message_paths ( & self ) -> & [ BlindedPath ] {
894+ fn request_paths ( & self ) -> & [ BlindedPath ] {
895895 match self {
896896 InvoiceContents :: ForOffer { invoice_request, .. } => {
897897 invoice_request. inner . offer . paths ( )
@@ -1468,7 +1468,7 @@ mod tests {
14681468 assert_eq ! ( unsigned_invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
14691469 assert_eq ! ( unsigned_invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
14701470 assert_eq ! ( unsigned_invoice. absolute_expiry( ) , None ) ;
1471- assert_eq ! ( unsigned_invoice. message_paths ( ) , & [ ] ) ;
1471+ assert_eq ! ( unsigned_invoice. request_paths ( ) , & [ ] ) ;
14721472 assert_eq ! ( unsigned_invoice. issuer( ) , None ) ;
14731473 assert_eq ! ( unsigned_invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
14741474 assert_eq ! ( unsigned_invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1510,7 +1510,7 @@ mod tests {
15101510 assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
15111511 assert_eq ! ( invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
15121512 assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1513- assert_eq ! ( invoice. message_paths ( ) , & [ ] ) ;
1513+ assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
15141514 assert_eq ! ( invoice. issuer( ) , None ) ;
15151515 assert_eq ! ( invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
15161516 assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1607,7 +1607,7 @@ mod tests {
16071607 assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
16081608 assert_eq ! ( invoice. offer_features( ) , None ) ;
16091609 assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1610- assert_eq ! ( invoice. message_paths ( ) , & [ ] ) ;
1610+ assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
16111611 assert_eq ! ( invoice. issuer( ) , None ) ;
16121612 assert_eq ! ( invoice. supported_quantity( ) , None ) ;
16131613 assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
0 commit comments