@@ -259,6 +259,70 @@ pub struct Bolt11FailForHashRequest {
259259#[ allow( clippy:: derive_partial_eq_without_eq) ]
260260#[ derive( Clone , PartialEq , :: prost:: Message ) ]
261261pub struct Bolt11FailForHashResponse { }
262+ /// Return a BOLT11 payable invoice that can be used to request and receive a payment via an
263+ /// LSPS2 just-in-time channel.
264+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_via_jit_channel>
265+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
266+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
267+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
268+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
269+ pub struct Bolt11ReceiveViaJitChannelRequest {
270+ /// The amount in millisatoshi to request.
271+ #[ prost( uint64, tag = "1" ) ]
272+ pub amount_msat : u64 ,
273+ /// An optional description to attach along with the invoice.
274+ /// Will be set in the description field of the encoded payment request.
275+ #[ prost( message, optional, tag = "2" ) ]
276+ pub description : :: core:: option:: Option < super :: types:: Bolt11InvoiceDescription > ,
277+ /// Invoice expiry time in seconds.
278+ #[ prost( uint32, tag = "3" ) ]
279+ pub expiry_secs : u32 ,
280+ /// Optional upper bound for the total fee an LSP may deduct when opening the JIT channel.
281+ #[ prost( uint64, optional, tag = "4" ) ]
282+ pub max_total_lsp_fee_limit_msat : :: core:: option:: Option < u64 > ,
283+ }
284+ /// The response `content` for the `Bolt11ReceiveViaJitChannel` API, when HttpStatusCode is OK (200).
285+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
286+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
287+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
288+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
289+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
290+ pub struct Bolt11ReceiveViaJitChannelResponse {
291+ /// An invoice for a payment within the Lightning Network.
292+ #[ prost( string, tag = "1" ) ]
293+ pub invoice : :: prost:: alloc:: string:: String ,
294+ }
295+ /// Return a variable-amount BOLT11 invoice that can be used to receive a payment via an LSPS2
296+ /// just-in-time channel.
297+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_variable_amount_via_jit_channel>
298+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
299+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
300+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
301+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
302+ pub struct Bolt11ReceiveVariableAmountViaJitChannelRequest {
303+ /// An optional description to attach along with the invoice.
304+ /// Will be set in the description field of the encoded payment request.
305+ #[ prost( message, optional, tag = "1" ) ]
306+ pub description : :: core:: option:: Option < super :: types:: Bolt11InvoiceDescription > ,
307+ /// Invoice expiry time in seconds.
308+ #[ prost( uint32, tag = "2" ) ]
309+ pub expiry_secs : u32 ,
310+ /// Optional upper bound for the proportional fee, in parts-per-million millisatoshis, that an
311+ /// LSP may deduct when opening the JIT channel.
312+ #[ prost( uint64, optional, tag = "3" ) ]
313+ pub max_proportional_lsp_fee_limit_ppm_msat : :: core:: option:: Option < u64 > ,
314+ }
315+ /// The response `content` for the `Bolt11ReceiveVariableAmountViaJitChannel` API, when HttpStatusCode is OK (200).
316+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
317+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
318+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
319+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
320+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
321+ pub struct Bolt11ReceiveVariableAmountViaJitChannelResponse {
322+ /// An invoice for a payment within the Lightning Network.
323+ #[ prost( string, tag = "1" ) ]
324+ pub invoice : :: prost:: alloc:: string:: String ,
325+ }
262326/// Send a payment for a BOLT11 invoice.
263327/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.send>
264328#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
0 commit comments