SettlementPlan.cs
870 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using App.Domain.Identity; |
| 3 | using Base.Domain; |
| 4 | |
| 5 | namespace App.Domain; |
| 6 | |
| 7 | public class SettlementPlan : BaseEntity |
| 8 | { |
| 9 | public Guid TripId { get; set; } |
| 10 | public Trip? Trip { get; set; } |
| 11 | |
| 12 | public Guid CreatedByUserId { get; set; } |
| 13 | public AppUser? CreatedByUser { get; set; } |
| 14 | |
| 15 | [Display(Name = nameof(TotalAmount), ResourceType = typeof(App.Resources.Domain.SettlementPlan))] |
| 16 | public decimal TotalAmount { get; set; } |
| 17 | |
| 18 | [Display(Name = nameof(Status), ResourceType = typeof(App.Resources.Domain.SettlementPlan))] |
| 19 | public ESettlementStatus Status { get; set; } = ESettlementStatus.Pending; |
| 20 | |
| 21 | [Display(Name = nameof(CompletedAt), ResourceType = typeof(App.Resources.Domain.SettlementPlan))] |
| 22 | public DateTime? CompletedAt { get; set; } |
| 23 | |
| 24 | public ICollection<SettlementPayment>? Payments { get; set; } |
| 25 | } |
| 26 | |