mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-30 20:24:26 +01:00
* Preserving title with custom amount * Custom button texts for complete localization * Update tests, now checking custom amount description and button text * Support for Custom CSS in POS
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Models.AppViewModels
|
|
{
|
|
public class UpdatePointOfSaleViewModel
|
|
{
|
|
[Required]
|
|
[MaxLength(30)]
|
|
public string Title { get; set; }
|
|
[Required]
|
|
[MaxLength(5)]
|
|
public string Currency { get; set; }
|
|
[MaxLength(5000)]
|
|
public string Template { get; set; }
|
|
|
|
[Display(Name = "User can input custom amount")]
|
|
public bool ShowCustomAmount { get; set; }
|
|
public string Example1 { get; internal set; }
|
|
public string Example2 { get; internal set; }
|
|
public string ExampleCallback { get; internal set; }
|
|
public string InvoiceUrl { get; internal set; }
|
|
|
|
[Required]
|
|
[MaxLength(30)]
|
|
public string ButtonText { get; set; }
|
|
[Required]
|
|
[MaxLength(30)]
|
|
public string CustomButtonText { get; set; }
|
|
|
|
[MaxLength(500)]
|
|
public string CustomCSSLink { get; set; }
|
|
}
|
|
}
|