using NBitcoin; using Newtonsoft.Json; namespace BTCPayServer.Client.Models { public class OnChainPaymentMethodData { /// /// Whether the payment method is enabled /// public bool Enabled { get; set; } /// /// Whether the payment method is the default /// public bool Default { get; set; } /// /// Crypto code of the payment method /// public string CryptoCode { get; set; } /// /// The derivation scheme /// public string DerivationScheme { get; set; } public string Label { get; set; } [JsonConverter(typeof(NBitcoin.JsonConverters.KeyPathJsonConverter))] public RootedKeyPath AccountKeyPath { get; set; } public OnChainPaymentMethodData() { } public OnChainPaymentMethodData(string cryptoCode, string derivationScheme, bool enabled, bool defaultMethod) { Enabled = enabled; Default = defaultMethod; CryptoCode = cryptoCode; DerivationScheme = derivationScheme; } } }