@@ -174,6 +174,70 @@ pub struct Bolt11ReceiveResponse {
174174 #[ prost( string, tag = "1" ) ]
175175 pub invoice : :: prost:: alloc:: string:: String ,
176176}
177+ /// Return a BOLT11 payable invoice that can be used to request and receive a payment via an
178+ /// LSPS2 just-in-time channel.
179+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_via_jit_channel>
180+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
181+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
182+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
183+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
184+ pub struct Bolt11ReceiveViaJitChannelRequest {
185+ /// The amount in millisatoshi to request.
186+ #[ prost( uint64, tag = "1" ) ]
187+ pub amount_msat : u64 ,
188+ /// An optional description to attach along with the invoice.
189+ /// Will be set in the description field of the encoded payment request.
190+ #[ prost( message, optional, tag = "2" ) ]
191+ pub description : :: core:: option:: Option < super :: types:: Bolt11InvoiceDescription > ,
192+ /// Invoice expiry time in seconds.
193+ #[ prost( uint32, tag = "3" ) ]
194+ pub expiry_secs : u32 ,
195+ /// Optional upper bound for the total fee an LSP may deduct when opening the JIT channel.
196+ #[ prost( uint64, optional, tag = "4" ) ]
197+ pub max_total_lsp_fee_limit_msat : :: core:: option:: Option < u64 > ,
198+ }
199+ /// The response `content` for the `Bolt11ReceiveViaJitChannel` API, when HttpStatusCode is OK (200).
200+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
201+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
202+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
203+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
204+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
205+ pub struct Bolt11ReceiveViaJitChannelResponse {
206+ /// An invoice for a payment within the Lightning Network.
207+ #[ prost( string, tag = "1" ) ]
208+ pub invoice : :: prost:: alloc:: string:: String ,
209+ }
210+ /// Return a variable-amount BOLT11 invoice that can be used to receive a payment via an LSPS2
211+ /// just-in-time channel.
212+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_variable_amount_via_jit_channel>
213+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
214+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
215+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
216+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
217+ pub struct Bolt11ReceiveVariableAmountViaJitChannelRequest {
218+ /// An optional description to attach along with the invoice.
219+ /// Will be set in the description field of the encoded payment request.
220+ #[ prost( message, optional, tag = "1" ) ]
221+ pub description : :: core:: option:: Option < super :: types:: Bolt11InvoiceDescription > ,
222+ /// Invoice expiry time in seconds.
223+ #[ prost( uint32, tag = "2" ) ]
224+ pub expiry_secs : u32 ,
225+ /// Optional upper bound for the proportional fee, in parts-per-million millisatoshis, that an
226+ /// LSP may deduct when opening the JIT channel.
227+ #[ prost( uint64, optional, tag = "3" ) ]
228+ pub max_proportional_lsp_fee_limit_ppm_msat : :: core:: option:: Option < u64 > ,
229+ }
230+ /// The response `content` for the `Bolt11ReceiveVariableAmountViaJitChannel` API, when HttpStatusCode is OK (200).
231+ /// When HttpStatusCode is not OK (non-200), the response `content` contains a serialized `ErrorResponse`.
232+ #[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
233+ #[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
234+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
235+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
236+ pub struct Bolt11ReceiveVariableAmountViaJitChannelResponse {
237+ /// An invoice for a payment within the Lightning Network.
238+ #[ prost( string, tag = "1" ) ]
239+ pub invoice : :: prost:: alloc:: string:: String ,
240+ }
177241/// Send a payment for a BOLT11 invoice.
178242/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.send>
179243#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
0 commit comments