Files
Backend-Api/0_Framework/Domain/CustomizeCheckoutValueObjects/BaseYearsPay.cs
2024-10-23 17:49:04 +03:30

55 lines
1.2 KiB
C#

namespace _0_Framework.Domain.CustomizeCheckoutValueObjects;
public class BaseYearsPay
{
public BaseYearsPay(BaseYearsPayType baseYearsPayType, double value, BaseYearsPaymentType paymentType)
{
BaseYearsPayType = baseYearsPayType;
Value = value;
PaymentType = paymentType;
}
private BaseYearsPay()
{
}
public BaseYearsPayType BaseYearsPayType { get; private set; }
public double Value { get; private set; }
public BaseYearsPaymentType PaymentType { get; private set; }
}
public enum BaseYearsPayType
{
/// <summary>
///محاسبه نمیشود
/// </summary>
None,
/// <summary>
/// به صورت درصدی از حقوق
/// </summary>
PercentageOfSalary,
/// <summary>
/// مبلغ اختصاصی برای سنوات
/// </summary>
Money
}
public enum BaseYearsPaymentType
{
/// <summary>
/// پرداخت نمیگردد
/// </summary>
None,
/// <summary>
/// پرداخت به صورت سالانه در آخر سال پرداخت میگردد
/// </summary>
YearlyPay,
/// <summary>
/// پرداخت به صورت ماهانه
/// </summary>
MonthlyPay
}