Files
Backend-Api/0_Framework/Domain/CustomizeCheckoutValueObjects/FamilyAllowance.cs
2024-10-06 20:20:21 +03:30

72 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace _0_Framework.Domain.CustomizeCheckoutValueObjects;
public class FamilyAllowance
{
public FamilyAllowance(FamilyAllowanceType familyAllowanceType, double value)
{
FamilyAllowanceType = familyAllowanceType;
//NumberOfChildren = numberOfChildren;
Value = value;
}
private FamilyAllowance()
{
}
/// <summary>
/// نوع حق اولاد را مشخص میکند که آیا پرداخت نمیکند یا به صورت درصدی پرداخت میکند یا به صورت مبلغ اختصاصی
/// </summary>
public FamilyAllowanceType FamilyAllowanceType { get; private set; }
/// <summary>
/// تعداد فرزند هایی حق اولاد به آنها تعلق میگیرد.
/// </summary>
// ReSharper disable once GrammarMistakeInComment
//public NumberOfChildren NumberOfChildren { get; private set; }
public double Value { get; private set; }
}
public enum FamilyAllowanceType
{
/// <summary>
///محاسبه نمیشود
/// </summary>
None,
/// <summary>
/// به ازای هر فرزند درصدی از مزد روزانه پرمسل
/// </summary>
Percentage,
/// <summary>
/// به ازای هر فرزند به صورت مبلغ اختصاصی پرداخت میشود
/// </summary>
Money
}
//public enum NumberOfChildren
//{
// /// <summary>
// /// محاسبه نمیشود
// /// </summary>
// None,
// /// <summary>
// /// یک فرزند
// /// </summary>
// One,
// /// <summary>
// /// دو فرزند
// /// </summary>
// Two,
// /// <summary>
// /// سه فرزند
// /// </summary>
// Three,
// /// <summary>
// /// چهار فرزند
// /// </summary>
// Four,
// /// <summary>
// /// تمامی فرزند ها
// /// </summary>
// All
//}