btcpayserver/BTCPayServer/Models/InvoicingModels/RefundModel.cs
d11n d5d0be5824
Code formatting updates (#4502)
* Editorconfig: Add space_before_self_closing setting

This was a difference between the way dotnet-format and Rider format code. See https://www.jetbrains.com/help/rider/EditorConfig_Index.html

* Editorconfig: Keep 4 spaces indentation for Swagger JSON files

They are all formatted that way, let's keep it like that.

* Apply dotnet-format, mostly white-space related changes
2023-01-06 22:18:07 +09:00

32 lines
1.1 KiB
C#

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace BTCPayServer.Models.InvoicingModels
{
public enum RefundSteps
{
SelectPaymentMethod,
SelectRate
}
public class RefundModel
{
public string Title { get; set; }
public SelectList AvailablePaymentMethods { get; set; }
[Display(Name = "Select the payment method used for refund")]
public string SelectedPaymentMethod { get; set; }
public RefundSteps RefundStep { get; set; }
public string SelectedRefundOption { get; set; }
public decimal CryptoAmountNow { get; set; }
public string CurrentRateText { get; set; }
public decimal CryptoAmountThen { get; set; }
public string RateThenText { get; set; }
public string FiatText { get; set; }
public decimal FiatAmount { get; set; }
[Display(Name = "Specify the amount and currency for the refund")]
public decimal CustomAmount { get; set; }
public string CustomCurrency { get; set; }
}
}