mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
add minimal crowdfund system and UI
This commit is contained in:
@@ -10,6 +10,7 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public string AppId { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string MainImageUrl { get; set; }
|
||||
public string CustomCSSLink { get; set; }
|
||||
public DateTime? StartDate { get; set; }
|
||||
public DateTime? EndDate { get; set; }
|
||||
@@ -19,6 +20,7 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public bool EnforceTargetAmount { get; set; }
|
||||
|
||||
public CrowdfundInfo Info { get; set; }
|
||||
public string Tagline { get; set; }
|
||||
|
||||
|
||||
public class CrowdfundInfo
|
||||
@@ -26,14 +28,21 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public int TotalContributors { get; set; }
|
||||
public decimal CurrentAmount { get; set; }
|
||||
public bool Active { get; set; }
|
||||
public bool ShowProgress { get; set; }
|
||||
public decimal? ProgressPercentage { get; set; }
|
||||
public int? DaysLeft{ get; set; }
|
||||
public int? DaysLeftToStart{ get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class ContributeToCrowdfund
|
||||
{
|
||||
public ViewCrowdfundViewModel ViewCrowdfundViewModel { get; set; }
|
||||
[Required] public decimal Amount { get; set; }
|
||||
public string Email { get; set; }
|
||||
public bool RedirectToCheckout { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user