btcpayserver/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs

87 lines
1.8 KiB
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
using System.Collections.Generic;
2020-06-28 17:55:27 +09:00
using System.ComponentModel;
2017-09-13 15:47:34 +09:00
using System.ComponentModel.DataAnnotations;
using System.Linq;
using BTCPayServer.Client.Models;
2021-12-31 16:59:02 +09:00
using BTCPayServer.Services.Apps;
2018-05-14 09:32:04 +02:00
using BTCPayServer.Validation;
2020-06-28 17:55:27 +09:00
using Microsoft.AspNetCore.Mvc.Rendering;
2017-09-13 15:47:34 +09:00
namespace BTCPayServer.Models.InvoicingModels
{
public class CreateInvoiceModel
{
2018-05-11 22:38:31 +09:00
public decimal? Amount
{
get; set;
}
public string Currency
{
get; set;
}
[Required]
2020-01-24 17:29:52 +10:00
[DisplayName("Store Id")]
public string StoreId
{
get; set;
}
2020-01-24 17:29:52 +10:00
[DisplayName("Order Id")]
public string OrderId
{
get; set;
}
2019-08-25 00:06:34 +10:00
[DisplayName("Item Description")]
public string ItemDesc
{
get; set;
}
[DisplayName("Default payment method on checkout")]
public string DefaultPaymentMethod
{
get; set;
}
[DisplayName("Metadata")]
public string Metadata
{
get; set;
}
[MailboxAddress]
2020-01-24 17:29:52 +10:00
[DisplayName("Buyer Email")]
public string BuyerEmail
{
get; set;
}
2018-05-14 09:32:04 +02:00
[Uri]
[DisplayName("Notification URL")]
public string NotificationUrl
{
get; set;
}
2019-08-25 00:06:34 +10:00
[DisplayName("Supported Transaction Currencies")]
public List<string> SupportedTransactionCurrencies
{
2020-01-24 17:29:52 +10:00
get; set;
}
2019-08-25 00:06:34 +10:00
[DisplayName("Available Payment Methods")]
public SelectList AvailablePaymentMethods
{
2020-01-24 17:29:52 +10:00
get; set;
}
[MailboxAddress]
[DisplayName("Notification Email")]
public string NotificationEmail
{
get; set;
}
}
2017-09-13 15:47:34 +09:00
}