Added status to application, response models of application for applicant and authority

This commit is contained in:
2024-08-22 11:06:45 +03:00
parent 843d64487c
commit 99625c957e
10 changed files with 185 additions and 40 deletions

View File

@@ -0,0 +1,12 @@
namespace Domains.VisaApplicationDomain
{
public enum ApplicationStatus
{
/// Waits for approve
Pending,
Approved,
Rejected,
/// Closed by applicant
Closed
}
}

View File

@@ -11,6 +11,9 @@ public class VisaApplication : IEntity
/// Identifier of the <see cref="Applicant"/>
public Guid ApplicantId { get; set; }
/// Status of application
public ApplicationStatus Status { get; set; }
/// <inheritdoc cref="Domains.VisaApplicationDomain.ReentryPermit"/>
/// <remarks>always null if <see cref="Applicant"/> is not a non-resident</remarks>
public ReentryPermit? ReentryPermit { get; set; }
@@ -18,9 +21,7 @@ public class VisaApplication : IEntity
/// Country that <see cref="Applicant"/> wants to visit
public string DestinationCountry { get; set; } = null!;
/// <summary>
/// List of <see cref="PastVisa"/> that applicant had before
/// </summary>
public List<PastVisa> PastVisas { get; set; } = null!;
/// Permission to enter the destination country of <see cref="Applicant"/>