Adding
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Models.AutoIms
|
||||
{
|
||||
public class FtpConfiguration
|
||||
{
|
||||
public string HostName { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public int Port { get; set; }
|
||||
public string ExecutablePath { get; set; }
|
||||
public string SshHostKeyFingerprint { get; set; }
|
||||
public string SshPrivateKeyPath { get; set; }
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore.Internal;
|
||||
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Models.AutoIms
|
||||
{
|
||||
public class ImportResultRow
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public List<string> Messages { get; set; }
|
||||
public string Description { get; set; }
|
||||
public ImsAutoFileData Data { get; set; }
|
||||
public RepoAccount RepoAccount { get; set; }
|
||||
|
||||
public string BuildStatusReport(string repoManagerUrl)
|
||||
{
|
||||
var report = new List<string>();
|
||||
var success = Success ? "Success" : "Failure";
|
||||
if (RepoAccount != null)
|
||||
{
|
||||
report.Add(CreateRepoLink(RepoAccount, repoManagerUrl));
|
||||
}
|
||||
if(RepoAccount == null && Data != null)
|
||||
{
|
||||
report.Add($"Auto IMS Update for {Data.VIN}, no Repo Account.");
|
||||
}
|
||||
report.Add($"{success} : {Description}");
|
||||
if (Messages != null && Messages.Any())
|
||||
{
|
||||
report.AddRange(Messages);
|
||||
}
|
||||
|
||||
return report.ToString();
|
||||
}
|
||||
|
||||
public static string CreateRepoLink(RepoAccount account, string repoManagerUrl)
|
||||
{
|
||||
var url = repoManagerUrl + account.RepoId;
|
||||
var link = string.Format("<a href={0}>{1}</a>", url, $"Account {account.RepoId} ({account.AccountNo})") ;
|
||||
return link;
|
||||
}
|
||||
}
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
namespace LCU.API.Internal.RepoApi.Repos.Models.AutoIms
|
||||
{
|
||||
/**
|
||||
* This models the rows in the CSV File so that they can be different from the rows in SQL
|
||||
*/
|
||||
public class ImsAutoFileImportData
|
||||
{
|
||||
public string AnnouncedConditions { get; set; }
|
||||
public string ArbitrationReason { get; set; }
|
||||
public string AsIs100KMiles { get; set; }
|
||||
public string AssignmentAccepted { get; set; }
|
||||
public string AuctionAge { get; set; }
|
||||
public string AuctionGuideBookPrice { get; set; }
|
||||
public string BuyerID { get; set; }
|
||||
public string BuyerName { get; set; }
|
||||
public string ChargeAmount { get; set; }
|
||||
public string CheckAmount { get; set; }
|
||||
public string ClientAge { get; set; }
|
||||
public string ClientCancelled { get; set; }
|
||||
public string CollisionDamage { get; set; }
|
||||
public string InspectedDate { get; set; }
|
||||
public string DateofLoss { get; set; }
|
||||
public string DatePickedUp { get; set; }
|
||||
public string DateEnteredAutoIMS { get; set; }
|
||||
public string DaysRun { get; set; }
|
||||
public string DaysRunHighestBidRecordedbyAuction { get; set; }
|
||||
public string DaystoDelivery { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Drivable { get; set; }
|
||||
public string FloorPriceAccepted { get; set; }
|
||||
public string FundsSent { get; set; }
|
||||
public string GrossPercentFloor { get; set; }
|
||||
public string HighestBid { get; set; }
|
||||
public string StatedMileage { get; set; }
|
||||
public string NetPercentFloor { get; set; }
|
||||
public string OtherAdvanceFees { get; set; }
|
||||
public string OTHERTotal { get; set; }
|
||||
public string OTHERAdvancedOther { get; set; }
|
||||
public string OTHERAdvancedStorage { get; set; }
|
||||
public string OTHERAdvancedTow { get; set; }
|
||||
public string OTHERMiscellaneous { get; set; }
|
||||
public string SalePrice { get; set; }
|
||||
public string ScheduledSaleDate { get; set; }
|
||||
public string SoldDate { get; set; }
|
||||
public string TitleNumber { get; set; }
|
||||
public string TitleReceived { get; set; }
|
||||
public string TitleReturned { get; set; }
|
||||
public string TitleState { get; set; }
|
||||
public string TitleStatus { get; set; }
|
||||
public string TitleStatusfromAuction { get; set; }
|
||||
public string TotalCharges { get; set; }
|
||||
public string Operable { get; set; }
|
||||
public string ShipmentDate { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string VIN { get; set; }
|
||||
public string StorageCost { get; set; }
|
||||
public string StorageRatePerDay { get; set; }
|
||||
public string TowCost { get; set; }
|
||||
public string CustomerAccountNumber { get; set; }
|
||||
public string DateReceivedFromAutoIMS { get; set; }
|
||||
public string VehicleDecimalGradeCode { get; set; }
|
||||
public string VehicleGrade { get; set; }
|
||||
public string VehicleGradeApprovedCR { get; set; }
|
||||
public string MMRNationalAdjustedPrice { get; set; }
|
||||
public string MMRRegionalAdjustedPrice { get; set; }
|
||||
public string MMR { get; set; }
|
||||
public string ConditionReportLink { get; set; }
|
||||
public string CollateralImagePath { get; set; }
|
||||
public string AuctionAssignmentID { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user