btcpay_client/models/
on_chain_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 OnChainPaymentMethodData {
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}
35
36impl OnChainPaymentMethodData {
37    pub fn new() -> OnChainPaymentMethodData {
38        OnChainPaymentMethodData {
39            enabled: None,
40            payment_method: None,
41            derivation_scheme: None,
42            label: None,
43            account_key_path: None,
44            crypto_code: None,
45        }
46    }
47}
48
49