mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
69 lines
1.1 KiB
C#
69 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
{
|
|
public class CreateInvoiceModel
|
|
{
|
|
public CreateInvoiceModel()
|
|
{
|
|
Currency = "USD";
|
|
}
|
|
[Required]
|
|
public double? 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;
|
|
}
|
|
|
|
|
|
[Url]
|
|
public string NotificationUrl
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public SelectList Stores
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|