mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
* Opt-in for new checkout * Update wording * Create invoice view update * Remove jQuery from checkout testing code * Checkout v2 basics * WIP * WIP 2 * Updates and fixes * Updates * Design updates * More design updates * Cheating and JS fixes * Use checkout form id whenever invoices get created * Improve email form handling * Cleanups * Payment method exclusion cases for Lightning and LNURL TODO: Cases and implementation need to be discussed * Introduce CheckoutType in API and replace UseNewCheckout in backend Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public enum PosViewType
|
|
{
|
|
Static,
|
|
Cart,
|
|
Light,
|
|
Print
|
|
}
|
|
|
|
public class CreateAppRequest
|
|
{
|
|
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;
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public PosViewType DefaultView { get; set; }
|
|
public bool ShowCustomAmount { get; set; } = false;
|
|
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 CheckoutFormId { get; set; } = null;
|
|
public string EmbeddedCSS { get; set; } = null;
|
|
public CheckoutType? CheckoutType { get; set; } = null;
|
|
}
|
|
}
|