2018-12-18 19:01:58 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
2018-12-11 12:47:38 +01:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
|
|
{
|
|
|
|
public class UpdateCoinSwitchSettingsViewModel
|
|
|
|
{
|
|
|
|
public string MerchantId { get; set; }
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
|
2018-12-18 20:14:59 +01:00
|
|
|
[Display(Name = "Integration Mode")]
|
2019-01-08 11:27:37 +01:00
|
|
|
public string Mode { get; set; } = "inline";
|
2020-06-28 17:55:27 +09:00
|
|
|
|
2019-03-31 18:55:14 +02:00
|
|
|
[Required]
|
|
|
|
[Range(0, 100)]
|
|
|
|
[Display(Name =
|
|
|
|
"Percentage to multiply amount requested at Coinswitch to avoid underpaid situations due to Coinswitch not guaranteeing rates. ")]
|
|
|
|
public decimal AmountMarkupPercentage { get; set; } = new decimal(2);
|
2018-12-18 19:01:58 +01:00
|
|
|
|
|
|
|
public List<SelectListItem> Modes { get; } = new List<SelectListItem>
|
|
|
|
{
|
|
|
|
new SelectListItem { Value = "popup", Text = "Open in a popup" },
|
|
|
|
new SelectListItem { Value = "inline", Text = "Embed inside Checkout UI " },
|
|
|
|
};
|
2018-12-11 12:47:38 +01:00
|
|
|
}
|
|
|
|
}
|