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;
|
2022-11-02 10:21:33 +01:00
|
|
|
using System.Linq;
|
2023-04-05 08:35:50 +09:00
|
|
|
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
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
public class CreateInvoiceModel
|
|
|
|
{
|
2018-05-11 22:38:31 +09:00
|
|
|
public decimal? Amount
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
2017-12-03 22:36:04 +09:00
|
|
|
public string Currency
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
[Required]
|
2020-01-24 17:29:52 +10:00
|
|
|
[DisplayName("Store Id")]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string StoreId
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2020-01-24 17:29:52 +10:00
|
|
|
[DisplayName("Order Id")]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string OrderId
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2019-08-25 00:06:34 +10:00
|
|
|
[DisplayName("Item Description")]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string ItemDesc
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2021-11-21 20:54:42 -08:00
|
|
|
[DisplayName("Default payment method on checkout")]
|
2021-08-22 21:55:06 -07:00
|
|
|
public string DefaultPaymentMethod
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
2023-11-02 08:13:48 +01:00
|
|
|
[DisplayName("Metadata")]
|
|
|
|
public string Metadata
|
2017-10-27 17:53:04 +09:00
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2022-06-23 13:41:52 +09:00
|
|
|
[MailboxAddress]
|
2020-01-24 17:29:52 +10:00
|
|
|
[DisplayName("Buyer Email")]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string BuyerEmail
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2018-05-14 09:32:04 +02:00
|
|
|
[Uri]
|
2021-11-21 20:54:42 -08:00
|
|
|
[DisplayName("Notification URL")]
|
2017-10-27 17:53:04 +09:00
|
|
|
public string NotificationUrl
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
|
|
|
|
2019-08-25 00:06:34 +10:00
|
|
|
[DisplayName("Supported Transaction Currencies")]
|
2019-05-02 14:29:51 +02:00
|
|
|
public List<string> SupportedTransactionCurrencies
|
|
|
|
{
|
2020-01-24 17:29:52 +10:00
|
|
|
get; set;
|
2019-05-02 14:29:51 +02:00
|
|
|
}
|
2019-08-25 00:06:34 +10:00
|
|
|
|
|
|
|
[DisplayName("Available Payment Methods")]
|
2019-05-02 14:29:51 +02:00
|
|
|
public SelectList AvailablePaymentMethods
|
|
|
|
{
|
2020-01-24 17:29:52 +10:00
|
|
|
get; set;
|
2019-05-02 14:29:51 +02:00
|
|
|
}
|
2021-10-10 07:54:25 +01:00
|
|
|
|
2022-06-23 13:41:52 +09:00
|
|
|
[MailboxAddress]
|
2021-10-10 07:54:25 +01:00
|
|
|
[DisplayName("Notification Email")]
|
|
|
|
public string NotificationEmail
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|