mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
* view improvements * improves label, adds section headers, re-orders * Available payment methods as checkboxes * adds required label * Update default payment method label Thanks @woutersamaey for the suggestion. * Move POS data and notifications to additional options * Update display names * adds checkbox to pull payments * updates label * Revert "updates label" This reverts commit9ed320e863
. * Revert "adds checkbox to pull payments" This reverts commit28ea6bfb6e
. * removes required label * Select all supported tx currencies by default Slight modification to the checkbox list. Co-authored-by: Dennis Reimann <mail@dennisreimann.de> Co-authored-by: Samuel Adams <samuel.atwood@gmail.com>
98 lines
2 KiB
C#
98 lines
2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using BTCPayServer.Validation;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using BTCPayServer.Services.Apps;
|
|
|
|
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("Store")]
|
|
public SelectList Stores
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|