btcpay_client/models/
on_chain_payment_method_data_with_sensitive_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 OnChainPaymentMethodDataWithSensitiveData {
16    /// Whether the payment method is enabled
17    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
18    pub enabled: Option<bool>,
19    /// The payment method
20    #[serde(rename = "paymentMethod", skip_serializing_if = "Option::is_none")]
21    pub payment_method: Option<String>,
22    /// The derivation scheme
23    #[serde(rename = "derivationScheme", skip_serializing_if = "Option::is_none")]
24    pub derivation_scheme: Option<String>,
25    /// A label that will be shown in the UI
26    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
27    pub label: Option<String>,
28    /// The wallet fingerprint followed by the keypath to derive the account key used for signing operation or creating PSBTs
29    #[serde(rename = "accountKeyPath", skip_serializing_if = "Option::is_none")]
30    pub account_key_path: Option<String>,
31    /// Crypto code of the payment method
32    #[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
33    pub crypto_code: Option<String>,
34    /// The mnemonic used to generate the wallet
35    #[serde(rename = "mnemonic", skip_serializing_if = "Option::is_none")]
36    pub mnemonic: Option<String>,
37}
38
39impl OnChainPaymentMethodDataWithSensitiveData {
40    pub fn new() -> OnChainPaymentMethodDataWithSensitiveData {
41        OnChainPaymentMethodDataWithSensitiveData {
42            enabled: None,
43            payment_method: None,
44            derivation_scheme: None,
45            label: None,
46            account_key_path: None,
47            crypto_code: None,
48            mnemonic: None,
49        }
50    }
51}
52
53