Adding
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
|
||||
public class InitiateRatesEvaluationsRequest
|
||||
{
|
||||
[Required]
|
||||
public string SheetName { get; set; }
|
||||
[Required]
|
||||
public int EvaluationDetailId { get; set; }
|
||||
public List<string> RowsOrColumns { get; set; }
|
||||
public bool IsRowsRule { get; set; }
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using LCU.Library.Internal.LoanRateModels.Enums;
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests.LoadTestRequest;
|
||||
|
||||
public class LoadTestInitiateRequest
|
||||
{
|
||||
[Required]
|
||||
public RateTypes? RateType { get; set; }
|
||||
[PropertyListValidation]
|
||||
public Dictionary<string, List<string>> PropertyList { get; set; }
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
|
||||
public class PropertyListValidation : ValidationAttribute
|
||||
{
|
||||
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
||||
{
|
||||
if (!(value is Dictionary<string, List<string>> dictionary))
|
||||
return new ValidationResult("Object is not of proper type");
|
||||
|
||||
if (dictionary.ContainsKey(nameof(RateRequest.RateType)))
|
||||
{
|
||||
return new ValidationResult($"{nameof(RateRequest.RateType)} cannot be declared in the PropertyList.");
|
||||
}
|
||||
|
||||
return ValidationResult.Success;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
using LCU.Library.Internal.LoanRateModels.Entities.LoadTestingEntities;
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests.LoadTestRequest;
|
||||
|
||||
public class LoadTestProcessRateRequest
|
||||
{
|
||||
public RateProcessingInfo RateProcessingInfo { get; set; }
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
using LCU.Library.Internal.LoanRateModels.Entities.LoadTestingEntities;
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests.LoadTestRequest;
|
||||
|
||||
public class LoadTestRateCompletionRequest
|
||||
{
|
||||
public RateProcessingInfo RateProcessingInfo { get; set; }
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System.ComponentModel;
|
||||
using LCU.Library.Internal.LcuEvaluationModels.Requests;
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
|
||||
public class RateCalculationRequest : EvaluationRequest
|
||||
{
|
||||
[DisplayName("RateCalculationRequest.CurrentRate")]
|
||||
public decimal CurrentRate { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using LCU.Library.Internal.LcuEvaluationModels.Requests;
|
||||
using LCU.Library.Internal.LoanRateModels.Enums;
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
|
||||
public class RateRequest : EvaluationRequest
|
||||
{
|
||||
[DisplayName("RateRequest.QualityFactor")]
|
||||
public string QualityFactor { get; set; }
|
||||
|
||||
[DisplayName("RateRequest.Term")]
|
||||
public int Term { get; set; }
|
||||
|
||||
[DisplayName("RateRequest.LoanToValue")]
|
||||
public decimal LoanToValue { get; set; }
|
||||
|
||||
[DisplayName("RateRequest.Year")]
|
||||
public string Year { get; set; }
|
||||
|
||||
[DisplayName("RateRequest.RateType")]
|
||||
public RateTypes RateType { get; set; }
|
||||
|
||||
[DisplayName("RateRequest.ApplicationDate")]
|
||||
public DateTime ApplicationDate { get; set; }
|
||||
|
||||
[DisplayName("RateRequest.TotalCollateralValue")]
|
||||
public decimal TotalCollateralValue { get; set; }
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using LCU.Library.Internal.LoanRateModels.Enums;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
public class RateSheetCellUpload
|
||||
{
|
||||
public RateTypes RateType { get; set; }
|
||||
public List<string> HeaderTopColumns { get; set; }
|
||||
public List<int> HeaderTopRows { get; set; }
|
||||
public List<string> HeaderLeftColumns { get; set; }
|
||||
public List<int> HeaderLeftRows { get; set; }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
public class RateSheetCellUploadRequest
|
||||
{
|
||||
public string FileContent { get; set; }
|
||||
public List<RateSheetCellUpload> Requests { get; set; }
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using LCU.Library.Internal.LoanRateModels.Enums;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
public class RateSheetRequest
|
||||
{
|
||||
public RateTypes RateType { get; set; }
|
||||
public DateTime EffectiveDate { get; set; }
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using LCU.Api.Internal.FileOperationsLib.Models.ExcelModels.Requests;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
public class RateUploadExcelDataRequest
|
||||
{
|
||||
public string FileName { get; set; }
|
||||
public DateTime EffectiveDate { get; set; }
|
||||
public ExcelDataRequest ExcelDataRequest { get; set; }
|
||||
public string CreatedBy { get; set; } = "System";
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using LCU.Library.Internal.LoanRateModels.Entities;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
public class RateUploadInfoRequest
|
||||
{
|
||||
public List<Rate> Rates { get; set; } = new();
|
||||
public string FileName { get; set; }
|
||||
public DateTime EffectiveDate { get; set; }
|
||||
public string CreatedBy { get; set; } = "System";
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace LCU.Library.Internal.LoanRateModels.Requests;
|
||||
public class RateUploadRequest
|
||||
{
|
||||
public string FileContent { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public DateTime EffectiveDate { get; set; }
|
||||
public string CreatedBy { get; set; } = "System";
|
||||
}
|
||||
Reference in New Issue
Block a user