btcpayserver/BTCPayServer/Models/InvoicingModels/CreateInvoiceModel.cs
Rockstar Developer c2bbc04c4c Various bugfixes (#308)
* NotifyEmail field on Invoice, sending email when triggered

* Styling invoices page

* Exporting Invoices in JSON

* Recoding based on feedback

* Fixing image breaking responsive layout on mobile

* Reducing amount of data sent in email notification

* Turning bundling on by default
2018-10-12 10:09:13 +09:00

74 lines
1.3 KiB
C#

using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using BTCPayServer.Validation;
namespace BTCPayServer.Models.InvoicingModels
{
public class CreateInvoiceModel
{
public CreateInvoiceModel()
{
Currency = "USD";
}
[Required]
public decimal? Amount
{
get; set;
}
[Required]
public string Currency
{
get; set;
}
[Required]
public string StoreId
{
get; set;
}
public string OrderId
{
get; set;
}
public string ItemDesc
{
get; set;
}
public string PosData
{
get; set;
}
[EmailAddress]
public string BuyerEmail
{
get; set;
}
[EmailAddress]
public string NotificationEmail
{
get; set;
}
[Uri]
public string NotificationUrl
{
get; set;
}
public SelectList Stores
{
get;
set;
}
}
}