File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,11 @@ macro_rules! invoice_request_builder_methods { (
270270 /// Sets the [`InvoiceRequest::amount_msats`] for paying an invoice. Errors if `amount_msats` is
271271 /// not at least the expected invoice amount (i.e., [`Offer::amount`] times [`quantity`]).
272272 ///
273+ /// When the [`Offer`] specifies a currency, this method allows setting the `amount_msats` in the
274+ /// `InvoiceRequest`. The issuer of the Offer will validate this amount and must set a matching
275+ /// amount in the final invoice. If the issuer disagrees with the specfified amount, the invoice
276+ /// request will be rejected. This is also useful if the Offer doesn't specify an amount.
277+ ///
273278 /// Successive calls to this method will override the previous setting.
274279 ///
275280 /// [`quantity`]: Self::quantity
You can’t perform that action at this time.
0 commit comments