2017-09-13 15:47:34 +09:00
|
|
|
using System.Collections.Generic;
|
2022-11-02 10:21:33 +01:00
|
|
|
using BTCPayServer.Client.Models;
|
2024-10-07 14:51:29 +09:00
|
|
|
using BTCPayServer.JsonConverters;
|
2024-04-04 16:31:04 +09:00
|
|
|
using BTCPayServer.Payments;
|
2024-10-07 14:51:29 +09:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Linq;
|
2017-09-13 15:47:34 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
|
|
{
|
2024-10-07 19:58:08 +09:00
|
|
|
public class CheckoutModel
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
2024-10-07 17:38:02 +09:00
|
|
|
public string CheckoutBodyComponentName { get; set; }
|
2024-10-07 21:14:37 +09:00
|
|
|
public class AvailablePaymentMethod
|
2018-01-09 23:55:08 +09:00
|
|
|
{
|
2024-10-07 14:51:29 +09:00
|
|
|
[JsonConverter(typeof(PaymentMethodIdJsonConverter))]
|
|
|
|
public PaymentMethodId PaymentMethodId { get; set; }
|
2023-04-24 19:26:56 +09:00
|
|
|
public bool Displayed { get; set; }
|
2024-10-07 19:29:05 +09:00
|
|
|
public string PaymentMethodName { get; set; }
|
|
|
|
public int Order { get; set; }
|
2024-10-07 14:51:29 +09:00
|
|
|
[JsonExtensionData]
|
|
|
|
public Dictionary<string, JToken> AdditionalData { get; set; } = new();
|
2018-01-09 23:55:08 +09:00
|
|
|
}
|
2023-12-01 16:13:44 +01:00
|
|
|
public StoreBrandingViewModel StoreBranding { get; set; }
|
2023-07-24 15:57:24 +02:00
|
|
|
public string PaymentSoundUrl { get; set; }
|
|
|
|
public string NfcReadSoundUrl { get; set; }
|
|
|
|
public string ErrorSoundUrl { get; set; }
|
2022-11-02 10:21:33 +01:00
|
|
|
public string BrandColor { get; set; }
|
2020-03-26 18:26:06 -05:00
|
|
|
public string HtmlTitle { get; set; }
|
2018-03-23 17:27:48 +09:00
|
|
|
public string DefaultLang { get; set; }
|
2023-04-04 10:45:40 +09:00
|
|
|
public bool ShowPayInWalletButton { get; set; }
|
|
|
|
public bool ShowStoreHeader { get; set; }
|
2024-10-07 21:14:37 +09:00
|
|
|
public List<AvailablePaymentMethod> AvailablePaymentMethods { get; set; } = new();
|
2018-11-09 01:09:09 -06:00
|
|
|
public bool IsModal { get; set; }
|
2021-08-03 17:03:00 +09:00
|
|
|
public bool IsUnsetTopUp { get; set; }
|
2023-02-22 07:53:14 +01:00
|
|
|
public bool OnChainWithLnInvoiceFallback { get; set; }
|
2023-03-13 02:09:56 +01:00
|
|
|
public bool CelebratePayment { get; set; }
|
2024-10-07 19:29:05 +09:00
|
|
|
public string PaymentMethodCurrency { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
public string InvoiceId { get; set; }
|
2024-10-07 19:29:05 +09:00
|
|
|
public string Address { get; set; }
|
|
|
|
public string Due { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
public string CustomerEmail { get; set; }
|
2019-10-07 21:06:12 -07:00
|
|
|
public bool ShowRecommendedFee { get; set; }
|
|
|
|
public decimal FeeRate { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
public int ExpirationSeconds { get; set; }
|
2023-01-16 12:45:19 +01:00
|
|
|
public int DisplayExpirationTimer { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
public string Status { get; set; }
|
|
|
|
public string MerchantRefLink { get; set; }
|
|
|
|
public int MaxTimeSeconds { get; set; }
|
|
|
|
public string StoreName { get; set; }
|
|
|
|
public string ItemDesc { get; set; }
|
|
|
|
public string TimeLeft { get; set; }
|
|
|
|
public string Rate { get; set; }
|
2018-01-09 17:27:26 +09:00
|
|
|
public string OrderAmount { get; set; }
|
2018-05-11 12:15:26 -05:00
|
|
|
public string OrderAmountFiat { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
public string InvoiceBitcoinUrl { get; set; }
|
2018-02-26 00:48:12 +09:00
|
|
|
public string InvoiceBitcoinUrlQR { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
public int TxCount { get; set; }
|
2021-07-06 00:43:49 +02:00
|
|
|
public int TxCountForFee { get; set; }
|
2024-10-07 19:29:05 +09:00
|
|
|
public string Paid { get; set; }
|
2023-05-11 10:38:40 +02:00
|
|
|
public string StoreSupportUrl { get; set; }
|
2017-09-13 15:47:34 +09:00
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
public string OrderId { get; set; }
|
2018-04-13 14:10:06 -05:00
|
|
|
public decimal NetworkFee { get; set; }
|
2018-07-13 15:58:59 -05:00
|
|
|
public int MaxTimeMinutes { get; set; }
|
|
|
|
public string PaymentMethodId { get; set; }
|
|
|
|
public string PaymentMethodName { get; set; }
|
|
|
|
public string CryptoImage { get; set; }
|
2018-10-24 07:52:19 +02:00
|
|
|
public string StoreId { get; set; }
|
2018-03-28 02:13:00 -05:00
|
|
|
public string PeerInfo { get; set; }
|
2019-03-09 00:48:33 +09:00
|
|
|
public string RootPath { get; set; }
|
2019-04-11 11:08:42 +02:00
|
|
|
public bool RedirectAutomatically { get; set; }
|
2021-04-07 06:08:42 +02:00
|
|
|
public bool Activated { get; set; }
|
2020-11-06 11:09:17 +01:00
|
|
|
public string InvoiceCurrency { get; set; }
|
2022-07-08 10:55:26 +09:00
|
|
|
public string ReceiptLink { get; set; }
|
2023-03-27 12:12:11 +02:00
|
|
|
public int? RequiredConfirmations { get; set; }
|
|
|
|
public long? ReceivedConfirmations { get; set; }
|
2024-10-07 14:51:29 +09:00
|
|
|
[JsonExtensionData]
|
|
|
|
public Dictionary<string, JToken> AdditionalData { get; set; } = new();
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|