btcpayserver/BTCPayServer/Models/AppViewModels/ViewCrowdfundViewModel.cs

55 lines
1.8 KiB
C#
Raw Normal View History

using System;
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Models.AppViewModels
2018-12-11 16:36:25 +01:00
{
public class ViewCrowdfundViewModel
{
public string StatusMessage{ get; set; }
public string StoreId { get; set; }
public string AppId { get; set; }
2018-12-11 16:36:25 +01:00
public string Title { get; set; }
public string Description { get; set; }
2018-12-22 15:02:16 +01:00
public string MainImageUrl { get; set; }
2018-12-22 15:43:40 +01:00
public string EmbeddedCSS { get; set; }
2018-12-11 16:36:25 +01:00
public string CustomCSSLink { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string TargetCurrency { get; set; }
public decimal? TargetAmount { get; set; }
public bool EnforceTargetAmount { get; set; }
public CrowdfundInfo Info { get; set; }
2018-12-22 15:02:16 +01:00
public string Tagline { get; set; }
2018-12-29 11:52:07 +01:00
public ViewPointOfSaleViewModel.Item[] Perks { get; set; }
public class CrowdfundInfo
{
public int TotalContributors { get; set; }
public decimal CurrentAmount { get; set; }
public bool Active { get; set; }
2018-12-22 15:02:16 +01:00
public bool ShowProgress { get; set; }
public decimal? ProgressPercentage { get; set; }
public int? DaysLeft{ get; set; }
public int? DaysLeftToStart{ get; set; }
2018-12-28 17:38:20 +01:00
public decimal CurrentPendingAmount { get; set; }
public decimal? PendingProgressPercentage { get; set; }
}
2018-12-22 15:02:16 +01:00
}
public class ContributeToCrowdfund
{
2018-12-22 15:02:16 +01:00
public ViewCrowdfundViewModel ViewCrowdfundViewModel { get; set; }
[Required] public decimal Amount { get; set; }
public string Email { get; set; }
2018-12-29 11:52:07 +01:00
public string ChoiceKey { get; set; }
public bool RedirectToCheckout { get; set; }
public string RedirectUrl { get; set; }
2018-12-11 16:36:25 +01:00
}
}