btcpay_client/models/
generic_payment_method_data_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/// GenericPaymentMethodDataData : Associated dynamic data based on payment method type.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct GenericPaymentMethodDataData {
17    /// The derivation scheme
18    #[serde(rename = "derivationScheme", skip_serializing_if = "Option::is_none")]
19    pub derivation_scheme: Option<String>,
20    /// A label that will be shown in the UI
21    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
22    pub label: Option<String>,
23    /// The wallet fingerprint followed by the keypath to derive the account key used for signing operation or creating PSBTs
24    #[serde(rename = "accountKeyPath", skip_serializing_if = "Option::is_none")]
25    pub account_key_path: Option<String>,
26    /// 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)
27    #[serde(rename = "connectionString", skip_serializing_if = "Option::is_none")]
28    pub connection_string: Option<String>,
29    /// Whether to disable generation of bolt11 invoices. Useful when wanting to only use LNURL Pay exclusively.
30    #[serde(rename = "disableBOLT11PaymentOption", skip_serializing_if = "Option::is_none")]
31    pub disable_bolt11_payment_option: Option<bool>,
32}
33
34impl GenericPaymentMethodDataData {
35    /// Associated dynamic data based on payment method type.
36    pub fn new() -> GenericPaymentMethodDataData {
37        GenericPaymentMethodDataData {
38            derivation_scheme: None,
39            label: None,
40            account_key_path: None,
41            connection_string: None,
42            disable_bolt11_payment_option: None,
43        }
44    }
45}
46
47