2018-11-01 00:19:25 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
|
|
|
{
|
|
|
|
|
public class WalletSendModel
|
|
|
|
|
{
|
|
|
|
|
[Required]
|
|
|
|
|
public string Destination { get; set; }
|
|
|
|
|
|
|
|
|
|
[Range(0.0, double.MaxValue)]
|
|
|
|
|
[Required]
|
|
|
|
|
public decimal? Amount { get; set; }
|
|
|
|
|
|
|
|
|
|
public decimal CurrentBalance { get; set; }
|
|
|
|
|
|
|
|
|
|
public string CryptoCode { get; set; }
|
|
|
|
|
|
|
|
|
|
public int RecommendedSatoshiPerByte { get; set; }
|
|
|
|
|
|
|
|
|
|
[Display(Name = "Subtract fees from amount")]
|
|
|
|
|
public bool SubstractFees { get; set; }
|
|
|
|
|
|
|
|
|
|
[Range(1, int.MaxValue)]
|
|
|
|
|
[Display(Name = "Fee rate (satoshi per byte)")]
|
|
|
|
|
[Required]
|
|
|
|
|
public int FeeSatoshiPerByte { get; set; }
|
2019-01-15 23:50:45 +09:00
|
|
|
|
|
|
|
|
|
[Display(Name = "Make sure no change UTXO is created")]
|
|
|
|
|
public bool NoChange { get; set; }
|
2018-11-01 00:19:25 +09:00
|
|
|
|
public decimal? Rate { get; set; }
|
|
|
|
|
public int Divisibility { get; set; }
|
|
|
|
|
public string Fiat { get; set; }
|
|
|
|
|
public string RateError { get; set; }
|
2019-05-08 15:24:20 +09:00
|
|
|
|
public bool SupportRBF { get; set; }
|
|
|
|
|
[Display(Name = "Disable RBF")]
|
|
|
|
|
public bool DisableRBF { get; set; }
|
2018-11-01 00:19:25 +09:00
|
|
|
|
}
|
|
|
|
|
}
|