mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
{
|
|
public class PullPaymentsModel
|
|
{
|
|
public class PullPaymentModel
|
|
{
|
|
public class ProgressModel
|
|
{
|
|
public int CompletedPercent { get; set; }
|
|
public int AwaitingPercent { get; set; }
|
|
public string Completed { get; set; }
|
|
public string Awaiting { get; set; }
|
|
public string Limit { get; set; }
|
|
public string ResetIn { get; set; }
|
|
public string EndIn { get; set; }
|
|
}
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string ProgressText { get; set; }
|
|
public ProgressModel Progress { get; set; }
|
|
public DateTimeOffset StartDate { get; set; }
|
|
public DateTimeOffset? EndDate { get; set; }
|
|
}
|
|
|
|
public List<PullPaymentModel> PullPayments { get; set; } = new List<PullPaymentModel>();
|
|
|
|
public bool HasDerivationSchemeSettings { get; set; }
|
|
}
|
|
|
|
public class NewPullPaymentModel
|
|
{
|
|
[MaxLength(30)]
|
|
public string Name { get; set; }
|
|
[Required]
|
|
public decimal Amount
|
|
{
|
|
get; set;
|
|
}
|
|
[Required]
|
|
[ReadOnly(true)]
|
|
public string Currency { get; set; }
|
|
[MaxLength(500)]
|
|
[Display(Name = "Custom bootstrap CSS file")]
|
|
public string CustomCSSLink { get; set; }
|
|
[Display(Name = "Custom CSS Code")]
|
|
public string EmbeddedCSS { get; set; }
|
|
}
|
|
}
|