btcpay-client 0.1.0

A client library for BTCPay Server.
Documentation
/*
 * BTCPay Greenfield API
 *
 * A full API to use your BTCPay Server
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct LightningNetworkPaymentMethodData {
    /// 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)
    #[serde(rename = "connectionString", skip_serializing_if = "Option::is_none")]
    pub connection_string: Option<String>,
    /// Whether to disable generation of bolt11 invoices. Useful when wanting to only use LNURL Pay exclusively.
    #[serde(rename = "disableBOLT11PaymentOption", skip_serializing_if = "Option::is_none")]
    pub disable_bolt11_payment_option: Option<bool>,
    /// Whether the payment method is enabled
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Crypto code of the payment method
    #[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
    pub crypto_code: Option<String>,
    /// The payment method
    #[serde(rename = "paymentMethod", skip_serializing_if = "Option::is_none")]
    pub payment_method: Option<String>,
}

impl LightningNetworkPaymentMethodData {
    pub fn new() -> LightningNetworkPaymentMethodData {
        LightningNetworkPaymentMethodData {
            connection_string: None,
            disable_bolt11_payment_option: None,
            enabled: None,
            crypto_code: None,
            payment_method: None,
        }
    }
}