2020-06-24 17:51:00 +09:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
|
|
{
|
|
|
|
public enum RefundSteps
|
|
|
|
{
|
|
|
|
SelectPaymentMethod,
|
2022-06-02 10:08:55 +02:00
|
|
|
SelectRate
|
2020-06-24 17:51:00 +09:00
|
|
|
}
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2020-06-24 17:51:00 +09:00
|
|
|
public class RefundModel
|
|
|
|
{
|
|
|
|
public string Title { get; set; }
|
|
|
|
public SelectList AvailablePaymentMethods { get; set; }
|
2023-01-06 14:18:07 +01:00
|
|
|
|
2024-05-01 10:22:07 +09:00
|
|
|
[Display(Name = "Select the payout method used for refund")]
|
|
|
|
public string SelectedPayoutMethod { get; set; }
|
2020-06-24 17:51:00 +09:00
|
|
|
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; }
|
2023-05-11 10:33:33 +02:00
|
|
|
public decimal? OverpaidAmount { get; set; }
|
|
|
|
public string OverpaidAmountText { get; set; }
|
|
|
|
public decimal SubtractPercentage { get; set; }
|
2021-12-31 16:59:02 +09:00
|
|
|
|
2020-09-02 11:24:18 +02:00
|
|
|
[Display(Name = "Specify the amount and currency for the refund")]
|
|
|
|
public decimal CustomAmount { get; set; }
|
|
|
|
public string CustomCurrency { get; set; }
|
2023-05-11 10:33:33 +02:00
|
|
|
public string InvoiceCurrency { get; set; }
|
|
|
|
public string CryptoCode { get; set; }
|
|
|
|
public int CryptoDivisibility { get; set; }
|
|
|
|
public int InvoiceDivisibility { get; set; }
|
2020-06-24 17:51:00 +09:00
|
|
|
}
|
|
|
|
}
|