This commit is contained in:
Zeeshaun
2026-03-17 09:53:09 -05:00
parent cdcba54aa4
commit 1a0702a79a
590 changed files with 62058 additions and 0 deletions
@@ -0,0 +1,28 @@
using LCU.Library.Internal.IncentiveApiModels.Common;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using LCU.Library.Internal.IncentiveApiModels.Enums;
namespace LCU.Library.Internal.IncentiveApiModels.Entities
{
public class Commission : Auditable
{
[Required]
public int Id { get; set; }
[Required]
[JsonConverter(typeof(RoleConverter))]
public Role Role { get; set; }
[Required]
public int RatePerProduct { get; set; }
[Required]
public Product Product { get; set; }
public bool HasSameRoleAndProduct(Commission commission)
{
return Role == commission.Role && Product == commission.Product;
}
}
}