mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* Public Invoice receipt * implement payment,s qr, better ui, and fix invoice bug * General view updates * Update admin details link * Update view * add missing check * Refactor * make payments and qr shown by default * move cusotmization options to own ReceiptOptions * Make sure to sanitize values inside PosData partial * Refactor * Make sure that ReceiptOptions for the StoreData is never null, and that values are always set in API * add receipt link to checkout and add tests * add receipt link to lnurl * Use ReceiptOptions.Merge * fix lnurl * fix chrome * remove i18n parameterization * Fix swagger * Update translations * Fix warning Co-authored-by: Dennis Reimann <mail@dennisreimann.de> Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
73 lines
3 KiB
C#
73 lines
3 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
{
|
|
public class CheckoutUIPaymentMethodSettings
|
|
{
|
|
public string ExtensionPartial { get; set; }
|
|
public string CheckoutBodyVueComponentName { get; set; }
|
|
public string CheckoutHeaderVueComponentName { get; set; }
|
|
public string NoScriptPartialName { get; set; }
|
|
}
|
|
public class PaymentModel
|
|
{
|
|
public CheckoutUIPaymentMethodSettings UISettings;
|
|
public class AvailableCrypto
|
|
{
|
|
public string PaymentMethodId { get; set; }
|
|
public string CryptoImage { get; set; }
|
|
public string Link { get; set; }
|
|
public string PaymentMethodName { get; set; }
|
|
public bool IsLightning { get; set; }
|
|
public string CryptoCode { get; set; }
|
|
}
|
|
public string CustomCSSLink { get; set; }
|
|
public string CustomLogoLink { get; set; }
|
|
public string HtmlTitle { get; set; }
|
|
public string DefaultLang { get; set; }
|
|
public List<AvailableCrypto> AvailableCryptos { get; set; } = new List<AvailableCrypto>();
|
|
public bool IsModal { get; set; }
|
|
public bool IsUnsetTopUp { get; set; }
|
|
public string CryptoCode { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
public string BtcAddress { get; set; }
|
|
public string BtcDue { get; set; }
|
|
public string CustomerEmail { get; set; }
|
|
public bool RequiresRefundEmail { get; set; }
|
|
public bool ShowRecommendedFee { get; set; }
|
|
public decimal FeeRate { get; set; }
|
|
public int ExpirationSeconds { get; set; }
|
|
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; }
|
|
public string OrderAmount { get; set; }
|
|
public string OrderAmountFiat { get; set; }
|
|
public string InvoiceBitcoinUrl { get; set; }
|
|
public string InvoiceBitcoinUrlQR { get; set; }
|
|
public int TxCount { get; set; }
|
|
public int TxCountForFee { get; set; }
|
|
public string BtcPaid { get; set; }
|
|
public string StoreEmail { get; set; }
|
|
|
|
public string OrderId { get; set; }
|
|
public decimal NetworkFee { get; set; }
|
|
public bool IsMultiCurrency { get; set; }
|
|
public int MaxTimeMinutes { get; set; }
|
|
public string PaymentType { get; set; }
|
|
public string PaymentMethodId { get; set; }
|
|
public string PaymentMethodName { get; set; }
|
|
public string CryptoImage { get; set; }
|
|
public string StoreId { get; set; }
|
|
public string PeerInfo { get; set; }
|
|
public string RootPath { get; set; }
|
|
public bool RedirectAutomatically { get; set; }
|
|
public bool Activated { get; set; }
|
|
public string InvoiceCurrency { get; set; }
|
|
public string? ReceiptLink { get; set; }
|
|
}
|
|
}
|