@@ -191,8 +191,8 @@ pub struct Bolt11ReceiveResponse {
191191}
192192/// Return a BOLT11 payable invoice for a given payment hash.
193193/// The inbound payment will NOT be automatically claimed upon arrival.
194- /// Instead, the payment will need to be manually claimed by calling `Bolt11ClaimForHash `
195- /// or manually failed by calling `Bolt11FailForHash `.
194+ /// Instead, the payment will need to be manually claimed by calling `Bolt11ClaimForId `
195+ /// or manually failed by calling `Bolt11FailForId `.
196196/// See more:
197197/// - <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_for_hash>
198198/// - <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_variable_amount_for_hash>
@@ -229,19 +229,18 @@ pub struct Bolt11ReceiveForHashResponse {
229229 #[ prost( string, tag = "1" ) ]
230230 pub invoice : :: prost:: alloc:: string:: String ,
231231}
232- /// Manually claim a payment for a given payment hash with the corresponding preimage.
232+ /// Manually claim a payment for a given payment ID with the corresponding preimage.
233233/// This should be used to claim payments created via `Bolt11ReceiveForHash`.
234- /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.claim_for_hash >
234+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.claim_for_id >
235235#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
236236#[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
237237#[ cfg_attr( feature = "serde" , serde( default ) ) ]
238238#[ allow( clippy:: derive_partial_eq_without_eq) ]
239239#[ derive( Clone , PartialEq , :: prost:: Message ) ]
240- pub struct Bolt11ClaimForHashRequest {
241- /// The hex-encoded 32-byte payment hash.
242- /// If provided, it will be used to verify that the preimage matches.
243- #[ prost( string, optional, tag = "1" ) ]
244- pub payment_hash : :: core:: option:: Option < :: prost:: alloc:: string:: String > ,
240+ pub struct Bolt11ClaimForIdRequest {
241+ /// The hex-encoded 32-byte payment ID from `PaymentClaimable`.
242+ #[ prost( string, tag = "1" ) ]
243+ pub payment_id : :: prost:: alloc:: string:: String ,
245244 /// The amount in millisatoshi that is claimable.
246245 /// If not provided, skips amount verification.
247246 #[ prost( uint64, optional, tag = "2" ) ]
@@ -250,33 +249,33 @@ pub struct Bolt11ClaimForHashRequest {
250249 #[ prost( string, tag = "3" ) ]
251250 pub preimage : :: prost:: alloc:: string:: String ,
252251}
253- /// The response for the `Bolt11ClaimForHash ` RPC. On failure, a gRPC error status is returned.
252+ /// The response for the `Bolt11ClaimForId ` RPC. On failure, a gRPC error status is returned.
254253#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
255254#[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
256255#[ cfg_attr( feature = "serde" , serde( default ) ) ]
257256#[ allow( clippy:: derive_partial_eq_without_eq) ]
258257#[ derive( Clone , PartialEq , :: prost:: Message ) ]
259- pub struct Bolt11ClaimForHashResponse { }
260- /// Manually fail a payment for a given payment hash .
258+ pub struct Bolt11ClaimForIdResponse { }
259+ /// Manually fail a payment for a given payment ID .
261260/// This should be used to reject payments created via `Bolt11ReceiveForHash`.
262- /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.fail_for_hash >
261+ /// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.fail_for_id >
263262#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
264263#[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
265264#[ cfg_attr( feature = "serde" , serde( default ) ) ]
266265#[ allow( clippy:: derive_partial_eq_without_eq) ]
267266#[ derive( Clone , PartialEq , :: prost:: Message ) ]
268- pub struct Bolt11FailForHashRequest {
269- /// The hex-encoded 32-byte payment hash .
267+ pub struct Bolt11FailForIdRequest {
268+ /// The hex-encoded 32-byte payment ID from `PaymentClaimable` .
270269 #[ prost( string, tag = "1" ) ]
271- pub payment_hash : :: prost:: alloc:: string:: String ,
270+ pub payment_id : :: prost:: alloc:: string:: String ,
272271}
273- /// The response for the `Bolt11FailForHash ` RPC. On failure, a gRPC error status is returned.
272+ /// The response for the `Bolt11FailForId ` RPC. On failure, a gRPC error status is returned.
274273#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
275274#[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
276275#[ cfg_attr( feature = "serde" , serde( default ) ) ]
277276#[ allow( clippy:: derive_partial_eq_without_eq) ]
278277#[ derive( Clone , PartialEq , :: prost:: Message ) ]
279- pub struct Bolt11FailForHashResponse { }
278+ pub struct Bolt11FailForIdResponse { }
280279/// Return a BOLT11 payable invoice that can be used to request and receive a payment via an
281280/// LSPS2 just-in-time channel.
282281/// See more: <https://docs.rs/ldk-node/latest/ldk_node/payment/struct.Bolt11Payment.html#method.receive_via_jit_channel>
0 commit comments