@@ -41,7 +41,7 @@ use crate::offers::invoice::{
41
41
} ;
42
42
use crate :: offers:: invoice_error:: InvoiceError ;
43
43
use crate :: offers:: invoice_request:: {
44
- InvoiceRequest , InvoiceRequestBuilder , VerifiedInvoiceRequest ,
44
+ InvoiceRequest , InvoiceRequestBuilder , VerifiedInvoiceRequestLegacy ,
45
45
} ;
46
46
use crate :: offers:: nonce:: Nonce ;
47
47
use crate :: offers:: offer:: { Amount , DerivedMetadata , Offer , OfferBuilder } ;
@@ -393,7 +393,7 @@ fn enqueue_onion_message_with_reply_paths<T: OnionMessageContents + Clone>(
393
393
pub enum InvreqResponseInstructions {
394
394
/// We are the recipient of this payment, and a [`Bolt12Invoice`] should be sent in response to
395
395
/// the invoice request since it is now verified.
396
- SendInvoice ( VerifiedInvoiceRequest ) ,
396
+ SendInvoice ( VerifiedInvoiceRequestLegacy ) ,
397
397
/// We are a static invoice server and should respond to this invoice request by retrieving the
398
398
/// [`StaticInvoice`] corresponding to the `recipient_id` and `invoice_id` and calling
399
399
/// `OffersMessageFlow::enqueue_static_invoice`.
@@ -902,7 +902,7 @@ where
902
902
Ok ( builder. into ( ) )
903
903
}
904
904
905
- /// Creates a response for the provided [`VerifiedInvoiceRequest `].
905
+ /// Creates a response for the provided [`VerifiedInvoiceRequestLegacy `].
906
906
///
907
907
/// A response can be either an [`OffersMessage::Invoice`] with additional [`MessageContext`],
908
908
/// or an [`OffersMessage::InvoiceError`], depending on the [`InvoiceRequest`].
@@ -912,8 +912,9 @@ where
912
912
/// - We fail to generate a valid signed [`Bolt12Invoice`] for the [`InvoiceRequest`].
913
913
pub fn create_response_for_invoice_request < ES : Deref , NS : Deref , R : Deref > (
914
914
& self , signer : & NS , router : & R , entropy_source : ES ,
915
- invoice_request : VerifiedInvoiceRequest , amount_msats : u64 , payment_hash : PaymentHash ,
916
- payment_secret : PaymentSecret , usable_channels : Vec < ChannelDetails > ,
915
+ invoice_request : VerifiedInvoiceRequestLegacy , amount_msats : u64 ,
916
+ payment_hash : PaymentHash , payment_secret : PaymentSecret ,
917
+ usable_channels : Vec < ChannelDetails > ,
917
918
) -> ( OffersMessage , Option < MessageContext > )
918
919
where
919
920
ES :: Target : EntropySource ,
0 commit comments