mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
cd9a52706c
* Use default currency for new pull payments Closes #3582. * Pull payment: Improve create form * Use default currency for new invoices Closes #3581. * Clean up old invoice form code * Use default currency for new payment requests * Test fixes
93 lines
1.9 KiB
C#
93 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using BTCPayServer.Services.Apps;
|
|
using BTCPayServer.Validation;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
{
|
|
public class CreateInvoiceModel
|
|
{
|
|
public decimal? Amount
|
|
{
|
|
get; set;
|
|
}
|
|
public string Currency
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Required]
|
|
[DisplayName("Store Id")]
|
|
public string StoreId
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("Order Id")]
|
|
public string OrderId
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("Item Description")]
|
|
public string ItemDesc
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("Default payment method on checkout")]
|
|
public string DefaultPaymentMethod
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("POS Data")]
|
|
public string PosData
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[EmailAddress]
|
|
[DisplayName("Buyer Email")]
|
|
public string BuyerEmail
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Uri]
|
|
[DisplayName("Notification URL")]
|
|
public string NotificationUrl
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("Supported Transaction Currencies")]
|
|
public List<string> SupportedTransactionCurrencies
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("Available Payment Methods")]
|
|
public SelectList AvailablePaymentMethods
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[EmailAddress]
|
|
[DisplayName("Notification Email")]
|
|
public string NotificationEmail
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[DisplayName("Require Refund Email")]
|
|
public RequiresRefundEmail RequiresRefundEmail
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
}
|