mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 03:16:46 +01:00
* HTML lang setting and Head tags for POS and Crowdfund public pages * updates #6229 * updates 6229 * resolve conflict * updated according to Nicolas' recommendations * updates #6229 * Add RawMeta method in safe.cs * ... * resolve conflicts * resolve conflict * resolve conflicts * Updates as Nicolas request * updates --------- Co-authored-by: d11n <mail@dennisreimann.de>
110 lines
5.4 KiB
C#
110 lines
5.4 KiB
C#
using BTCPayServer.Client.Models;
|
|
using PosViewType = BTCPayServer.Plugins.PointOfSale.PosViewType;
|
|
|
|
namespace BTCPayServer.Services.Apps
|
|
{
|
|
public class PointOfSaleSettings
|
|
{
|
|
public PointOfSaleSettings()
|
|
{
|
|
Title = "Tea shop";
|
|
Language = "en";
|
|
Template = AppService.SerializeTemplate([
|
|
new AppItem
|
|
{
|
|
Id = "green-tea",
|
|
Title = "Green Tea",
|
|
Description =
|
|
"Lovely, fresh and tender, Meng Ding Gan Lu ('sweet dew') is grown in the lush Meng Ding Mountains of the southwestern province of Sichuan where it has been cultivated for over a thousand years.",
|
|
Image = "~/img/pos-sample/green-tea.jpg",
|
|
PriceType = AppItemPriceType.Fixed,
|
|
Price = 1
|
|
},
|
|
new AppItem
|
|
{
|
|
Id = "black-tea",
|
|
Title = "Black Tea",
|
|
Description =
|
|
"Tian Jian Tian Jian means 'heavenly tippy tea' in Chinese, and it describes the finest grade of dark tea. Our Tian Jian dark tea is from Hunan province which is famous for making some of the best dark teas available.",
|
|
Image = "~/img/pos-sample/black-tea.jpg",
|
|
PriceType = AppItemPriceType.Fixed,
|
|
Price = 1
|
|
},
|
|
new AppItem
|
|
{
|
|
Id = "rooibos",
|
|
Title = "Rooibos (limited)",
|
|
Description =
|
|
"Rooibos is a dramatic red tea made from a South African herb that contains polyphenols and flavonoids. Often called 'African redbush tea', Rooibos herbal tea delights the senses and delivers potential health benefits with each caffeine-free sip.",
|
|
Image = "~/img/pos-sample/rooibos.jpg",
|
|
PriceType = AppItemPriceType.Fixed,
|
|
Price = 1.2m,
|
|
Inventory = 5,
|
|
},
|
|
new AppItem
|
|
{
|
|
Id = "pu-erh",
|
|
Title = "Pu Erh (free)",
|
|
Description =
|
|
"This loose pur-erh tea is produced in Yunnan Province, China. The process in a relatively high humidity environment has mellowed the elemental character of the tea when compared to young Pu-erh.",
|
|
Image = "~/img/pos-sample/pu-erh.jpg",
|
|
PriceType = AppItemPriceType.Fixed,
|
|
Price = 0
|
|
},
|
|
new AppItem
|
|
{
|
|
Id = "herbal-tea",
|
|
Title = "Herbal Tea (minimum)",
|
|
Description =
|
|
"Chamomile tea is made from the flower heads of the chamomile plant. The medicinal use of chamomile dates back to the ancient Egyptians, Romans and Greeks. Pay us what you want!",
|
|
Image = "~/img/pos-sample/herbal-tea.jpg",
|
|
PriceType = AppItemPriceType.Minimum,
|
|
Price = 1.8m,
|
|
Disabled = false
|
|
},
|
|
new AppItem
|
|
{
|
|
Id = "fruit-tea",
|
|
Title = "Fruit Tea (any amount)",
|
|
Description =
|
|
"The Tibetan Himalayas, the land is majestic and beautiful—a spiritual place where, despite the perilous environment, many journey seeking enlightenment. Pay us what you want!",
|
|
Image = "~/img/pos-sample/fruit-tea.jpg",
|
|
PriceType = AppItemPriceType.Topup,
|
|
Disabled = false
|
|
}
|
|
]);
|
|
DefaultView = PosViewType.Static;
|
|
ShowCustomAmount = false;
|
|
ShowDiscount = false;
|
|
ShowSearch = true;
|
|
ShowCategories = true;
|
|
EnableTips = false;
|
|
}
|
|
public string Title { get; set; }
|
|
public string Currency { get; set; }
|
|
public string Template { get; set; }
|
|
public bool EnableShoppingCart { get; set; }
|
|
public PosViewType DefaultView { get; set; }
|
|
public bool ShowItems { get; set; }
|
|
public bool ShowCustomAmount { get; set; }
|
|
public bool ShowDiscount { get; set; }
|
|
public bool ShowSearch { get; set; }
|
|
public bool ShowCategories { get; set; }
|
|
public bool EnableTips { get; set; }
|
|
public string FormId { get; set; }
|
|
public const string BUTTON_TEXT_DEF = "Buy for {0}";
|
|
public string ButtonText { get; set; } = BUTTON_TEXT_DEF;
|
|
public const string CUSTOM_BUTTON_TEXT_DEF = "Pay";
|
|
public string CustomButtonText { get; set; } = CUSTOM_BUTTON_TEXT_DEF;
|
|
public const string CUSTOM_TIP_TEXT_DEF = "Do you want to leave a tip?";
|
|
public string CustomTipText { get; set; } = CUSTOM_TIP_TEXT_DEF;
|
|
public static readonly int[] CUSTOM_TIP_PERCENTAGES_DEF = { 15, 18, 20 };
|
|
public int[] CustomTipPercentages { get; set; } = CUSTOM_TIP_PERCENTAGES_DEF;
|
|
public string Language { get; set; }
|
|
public string HtmlMetaTags{ get; set; }
|
|
public string Description { get; set; }
|
|
public string NotificationUrl { get; set; }
|
|
public string RedirectUrl { get; set; }
|
|
public bool? RedirectAutomatically { get; set; }
|
|
}
|
|
}
|