@@ -222,8 +222,8 @@ pub struct CustomIncomingPaymentOptions {
222222 pub method : String ,
223223 /// Optional description for the payment request
224224 pub description : Option < String > ,
225- /// Amount for the payment request
226- pub amount : Amount < CurrencyUnit > ,
225+ /// Optional amount for the payment request
226+ pub amount : Option < Amount < CurrencyUnit > > ,
227227 /// Optional expiry time as Unix timestamp in seconds
228228 pub unix_expiry : Option < u64 > ,
229229 /// Extra payment-method-specific fields as JSON string
@@ -293,6 +293,8 @@ pub struct CustomOutgoingPaymentOptions {
293293 pub method : String ,
294294 /// Payment request string (method-specific format)
295295 pub request : String ,
296+ /// Optional amount the wallet would like to pay (from the melt quote request)
297+ pub amount : Option < Amount < CurrencyUnit > > ,
296298 /// Maximum fee amount allowed for the payment
297299 pub max_fee_amount : Option < Amount < CurrencyUnit > > ,
298300 /// Optional timeout in seconds
@@ -391,6 +393,8 @@ impl OutgoingPaymentOptions {
391393 Box :: new ( CustomOutgoingPaymentOptions {
392394 method : method. to_string ( ) ,
393395 request : request. to_string ( ) ,
396+ // Payment is already quoted; correlation is via quote_id.
397+ amount : None ,
394398 max_fee_amount : Some ( fee_reserve) ,
395399 timeout_secs : None ,
396400 melt_options : melt_quote. options ,
0 commit comments