btcpay_client/models/
lightning_network_payment_method_data.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct LightningNetworkPaymentMethodData {
16    /// The lightning connection string. Set to 'Internal Node' to use the internal node. (See [this doc](https://github.com/btcpayserver/BTCPayServer.Lightning/blob/master/README.md#examples) for some example)
17    #[serde(rename = "connectionString", skip_serializing_if = "Option::is_none")]
18    pub connection_string: Option<String>,
19    /// Whether to disable generation of bolt11 invoices. Useful when wanting to only use LNURL Pay exclusively.
20    #[serde(rename = "disableBOLT11PaymentOption", skip_serializing_if = "Option::is_none")]
21    pub disable_bolt11_payment_option: Option<bool>,
22    /// Whether the payment method is enabled
23    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
24    pub enabled: Option<bool>,
25    /// Crypto code of the payment method
26    #[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
27    pub crypto_code: Option<String>,
28    /// The payment method
29    #[serde(rename = "paymentMethod", skip_serializing_if = "Option::is_none")]
30    pub payment_method: Option<String>,
31}
32
33impl LightningNetworkPaymentMethodData {
34    pub fn new() -> LightningNetworkPaymentMethodData {
35        LightningNetworkPaymentMethodData {
36            connection_string: None,
37            disable_bolt11_payment_option: None,
38            enabled: None,
39            crypto_code: None,
40            payment_method: None,
41        }
42    }
43}
44
45