Add endpoint for creating POS app

This commit is contained in:
Umar Bolatov
2022-05-01 22:28:27 -07:00
parent aa3c0346c8
commit fca066fe52
6 changed files with 347 additions and 32 deletions

View File

@@ -2,8 +2,28 @@ namespace BTCPayServer.Client.Models
{
public class CreateAppRequest
{
public string StoreId { get; set; }
public string AppName { get; set; }
public string AppType { get; set; }
}
public class CreatePointOfSaleAppRequest : CreateAppRequest
{
public string Currency { get; set; } = null;
public string Title { get; set; } = null;
public string Description { get; set; } = null;
public string Template { get; set; } = null;
public string DefaultView { get; set; } = null;
public bool ShowCustomAmount { get; set; } = true;
public bool ShowDiscount { get; set; } = true;
public bool EnableTips { get; set; } = true;
public string CustomAmountPayButtonText { get; set; } = null;
public string FixedAmountPayButtonText { get; set; } = null;
public string TipText { get; set; } = null;
public string CustomCSSLink { get; set; } = null;
public string NotificationUrl { get; set; } = null;
public string RedirectUrl { get; set; } = null;
public bool? RedirectAutomatically { get; set; } = null;
public bool? RequiresRefundEmail { get; set; } = null;
public string EmbeddedCSS { get; set; } = null;
}
}