This commit is contained in:
Zeeshaun
2026-04-20 14:47:24 -05:00
parent 89057eceea
commit 8b3ea92501
485 changed files with 71042 additions and 0 deletions
@@ -0,0 +1,29 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LCU.API.Collections.RepoApi.Models.Requests
{
public class AccountQueueRequest : IValidatableObject
{
[Required]
[StringLength(16, MinimumLength = 7,
ErrorMessage = "The AccountNo field must have a length between 7 and 16 characters")]
public string AccountNo { get; set; }
[StringLength(20, MinimumLength = 1)] public string CaseId { get; set; }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
var results = new List<ValidationResult>();
if (string.IsNullOrWhiteSpace(AccountNo))
{
results.Add(new ValidationResult(
"AccountNo (AccountIdentifier) is not valid",
new[] { nameof(AccountNo) }));
}
return results;
}
}
}
@@ -0,0 +1,41 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using LCU.Shared.Collections.RepoApiLib.Models;
using LCU.Shared.Collections.RepoApiLib.WebServices.AutoIMS;
namespace LCU.API.Collections.RepoApi.Models.Requests
{
public class AuctionAssignmentPostRequest : IValidatableObject
{
[Required]
public Shared.Collections.RepoApiLib.Models.AuctionAssignment AuctionAssignment { get; set; }
[Required]
public IReadOnlyCollection<Collateral> Collaterals { get; set; }
[Required]
public VehicleLocation VehicleLocation { get; set; }
[Required]
public int? PrimaryCollateralId { get; set; }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
var failedValidations = new List<ValidationResult>();
if (this.Collaterals.Count == 0)
{
failedValidations.Add(new ValidationResult("There must be at least one collateral when creating an auction assignment."));
}
var primaryCollateral = Collaterals.Where(collateral => collateral.CollateralId == PrimaryCollateralId).FirstOrDefault();
if (primaryCollateral == null)
{
failedValidations.Add(new ValidationResult("Collaterals must contain a piece of Collateral with a CollateralID that matches the PrimaryCollateralId."));
}
return failedValidations;
}
}
}
@@ -0,0 +1,17 @@
using System.Collections.Generic;
namespace LCU.API.Collections.RepoApi.Models.Requests
{
public class RepoAccountPostFilter
{
public List<int?> RepoIdList { get; set; }
public string Status { get; set; }
public string AuctionHouseId { get; set; }
public int? RepoCompanyId { get; set; }
public bool? OnlyOpenAccounts { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
namespace LCU.API.Collections.RepoApi.Models.Requests
{
public class ReportingRequest
{
public DateTime LowDate { get; set; }
public DateTime HighDate { get; set; }
public ReportingRequest()
{
HighDate = DateTime.Today;
LowDate = HighDate.Subtract(TimeSpan.FromDays(365));
}
}
}
@@ -0,0 +1,9 @@
using LCU.Shared.Collections.RepoApiLib.Models;
namespace LCU.API.Collections.RepoApi.Models.Requests
{
public class VehicleFloorPricingParametersPutRequest
{
public VehicleFloorPricingParameters[] vehicleFloorPricingParameters;
}
}