2024-04-04 16:31:04 +09:00
|
|
|
using System;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Linq;
|
|
|
|
using BTCPayServer.Client.Models;
|
|
|
|
using NBitcoin;
|
|
|
|
using NBXplorer.DerivationStrategy;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Payments.Bitcoin
|
|
|
|
{
|
|
|
|
public class BitcoinPaymentPromptDetails
|
|
|
|
{
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
|
|
public NetworkFeeMode FeeMode { get; set; }
|
|
|
|
|
2024-09-27 15:27:04 +09:00
|
|
|
/// <summary>
|
|
|
|
/// The fee rate charged to the user as `PaymentMethodFee`.
|
|
|
|
/// </summary>
|
2024-04-04 16:31:04 +09:00
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.FeeRateJsonConverter))]
|
|
|
|
public FeeRate PaymentMethodFeeRate
|
|
|
|
{
|
|
|
|
get;
|
|
|
|
set;
|
|
|
|
}
|
|
|
|
public bool PayjoinEnabled { get; set; }
|
2024-09-27 15:27:04 +09:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The recommended fee rate for this payment method.
|
|
|
|
/// </summary>
|
2024-04-04 16:31:04 +09:00
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.FeeRateJsonConverter))]
|
|
|
|
public FeeRate RecommendedFeeRate { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.KeyPathJsonConverter))]
|
|
|
|
public KeyPath KeyPath { get; set; }
|
|
|
|
public DerivationStrategyBase AccountDerivation { get; set; }
|
|
|
|
}
|
|
|
|
}
|