For BOLT11 we allow to set RouteParameters as an argument to send_payment. However, pay_for_offer only allows to set max_total_routing_fee_msat, but not other routing-related fields such as max_total_cltv_expiry_delta, max_path_count, max_channel_saturation_power_of_half.
I'm a bit dubious if pay_for_offer and paying for refunds should be parametrized by RouteParameters, PaymentParameters, or the relevant fields independently, but we should provide a way to set them for BOLT12 payments, too.
For BOLT11 we allow to set
RouteParametersas an argument tosend_payment. However,pay_for_offeronly allows to setmax_total_routing_fee_msat, but not other routing-related fields such asmax_total_cltv_expiry_delta,max_path_count,max_channel_saturation_power_of_half.I'm a bit dubious if
pay_for_offerand paying for refunds should be parametrized byRouteParameters,PaymentParameters, or the relevant fields independently, but we should provide a way to set them for BOLT12 payments, too.