2020-12-28 21:59:01 +09:00
|
|
|
using NBitcoin;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
2020-12-23 06:00:38 +01:00
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class OnChainPaymentMethodData
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Whether the payment method is enabled
|
|
|
|
/// </summary>
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Crypto code of the payment method
|
|
|
|
/// </summary>
|
|
|
|
public string CryptoCode { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The derivation scheme
|
|
|
|
/// </summary>
|
|
|
|
public string DerivationScheme { get; set; }
|
|
|
|
|
2020-12-28 21:59:01 +09:00
|
|
|
public string Label { get; set; }
|
|
|
|
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.KeyPathJsonConverter))]
|
|
|
|
public RootedKeyPath AccountKeyPath { get; set; }
|
|
|
|
|
2020-12-23 06:00:38 +01:00
|
|
|
public OnChainPaymentMethodData()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-12-29 09:38:31 +01:00
|
|
|
public OnChainPaymentMethodData(string cryptoCode, string derivationScheme, bool enabled)
|
2020-12-23 06:00:38 +01:00
|
|
|
{
|
|
|
|
Enabled = enabled;
|
|
|
|
CryptoCode = cryptoCode;
|
|
|
|
DerivationScheme = derivationScheme;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|