btcpay_client/models/
update_lightning_network_payment_method_request.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 UpdateLightningNetworkPaymentMethodRequest {
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}
26
27impl UpdateLightningNetworkPaymentMethodRequest {
28    pub fn new() -> UpdateLightningNetworkPaymentMethodRequest {
29        UpdateLightningNetworkPaymentMethodRequest {
30            connection_string: None,
31            disable_bolt11_payment_option: None,
32            enabled: None,
33        }
34    }
35}
36
37