61 lines
1.6 KiB
C#
61 lines
1.6 KiB
C#
using gehGassi.Domain.Common;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace gehGassi.Web.Models
|
|
{
|
|
/// <summary>
|
|
/// Viewmodel für Transaktionsgebühren
|
|
/// </summary>
|
|
public class TransactionFeeVm : SyncEntityVm
|
|
{
|
|
/// <summary>
|
|
/// Zahlungsmethode
|
|
/// </summary>
|
|
[Required(ErrorMessage = "Err_Required")]
|
|
[Display(Name = "TransactionFee_PayInType")]
|
|
public PayInTypeVm PayInType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Prozent
|
|
/// </summary>
|
|
[Required(ErrorMessage = "Err_Required")]
|
|
[Range(0.0, 100.0, ErrorMessage = "Err_Range")]
|
|
[Display(Name = "TransactionFee_Percent")]
|
|
public decimal Percent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Fixer Betrag
|
|
/// </summary>
|
|
[Required(ErrorMessage = "Err_Required")]
|
|
[Range(0.0, 100000.0, ErrorMessage = "Err_Range")]
|
|
[Display(Name = "TransactionFee_Fixed")]
|
|
public decimal Fixed { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Viewmodel für die Liste der Transaktionsgebühren
|
|
/// </summary>
|
|
public class TransactionFeeListVm : SyncEntityLocalizableListVm
|
|
{
|
|
/// <summary>
|
|
/// Zahlungsmethode
|
|
/// </summary>
|
|
public PayInTypeVm PayInType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Zahlungsmethode - Text
|
|
/// </summary>
|
|
public string PayInTypeText { get; set; }
|
|
|
|
/// <summary>
|
|
/// Prozent
|
|
/// </summary>
|
|
public decimal Percent { get; set; }
|
|
|
|
/// <summary>
|
|
/// Fixer Betrag
|
|
/// </summary>
|
|
public decimal Fixed { get; set; }
|
|
}
|
|
}
|