first commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using Landmark.OLA.Models.Loan.Enums;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace Landmark.OLA.Models.Loan
|
||||
{
|
||||
[BsonIgnoreExtraElements]
|
||||
public class LoanContainer : OlaModel
|
||||
{
|
||||
public LoanApplication LoanApplication { get; set; }
|
||||
public LoanType LoanType { get; set; }
|
||||
public LoanPage Page { get; set; }
|
||||
public LoanStatus Status { get; set; }
|
||||
public LoanError Error { get; set; }
|
||||
public DateTime Date { get; private set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Branch { get; set; }
|
||||
public string LoanId { get; set; }
|
||||
public string MemberId { get; set; }
|
||||
public string IndividualId { get; set; }
|
||||
|
||||
public LoanContainer()
|
||||
{
|
||||
Date = DateTime.UtcNow; //allows us to have control over date format
|
||||
}
|
||||
|
||||
public LoanContainer(LoanApplication loanApplication, DateTime? loanDate = null, LoanStatus status = LoanStatus.In_Progress)
|
||||
{
|
||||
LoanApplication = loanApplication ?? null;
|
||||
Date = loanDate ?? DateTime.UtcNow;
|
||||
Status = status;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user