lightspark 0.10.2

Lightspark Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct SetInvoicePaymentHashInput {
    /// The invoice that needs to be updated.
    pub invoice_id: String,

    /// The 32-byte hash of the payment preimage.
    pub payment_hash: String,

    /// The 32-byte nonce used to generate the invoice preimage if applicable. It will later be included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage.
    pub preimage_nonce: Option<String>,
}