Add pull payment feature (#1639)

This commit is contained in:
Nicolas Dorier
2020-06-24 10:34:09 +09:00
committed by GitHub
parent 7805e5cea4
commit 8230a408ac
50 changed files with 3886 additions and 163 deletions

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Html;
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 class NewPullPaymentModel
{
[MaxLength(30)]
public string Name { get; set; }
[Required]
public decimal Amount
{
get; set;
}
[Required]
[ReadOnly(true)]
public string Currency { get; set; }
}
}