38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using CsvHelper.Configuration.Attributes;
|
|
using LCU.Library.Internal.CoreApiWrapperModel.CoreModels.Accounts;
|
|
using LCU.Library.Internal.DataCleanUpModel.Models;
|
|
|
|
namespace LCU.Api.Internal.DataCleanUp.Models
|
|
{
|
|
public class UpdatePmiCancelSummary
|
|
{
|
|
[Index(0)]
|
|
public long LoanId { get; set; }
|
|
[Index(1)]
|
|
public string MemberName { get; set; }
|
|
[Index(2)]
|
|
public long PropertyNumber { get; set; }
|
|
[Index(3)]
|
|
public string UpdatedDate { get; set; }
|
|
[Index(4)]
|
|
public string CurrentAccountStatus { get; set; }
|
|
[Index(5)]
|
|
public string SuccessOrFailMessage { get; set; }
|
|
|
|
public UpdatePmiCancelSummary TransformNewSummary(PmiCancel pmiCancel, string message)
|
|
{
|
|
var result = new UpdatePmiCancelSummary()
|
|
{
|
|
LoanId = pmiCancel.LoanId,
|
|
MemberName = pmiCancel.MemberName,
|
|
PropertyNumber = pmiCancel.PropertyNumber,
|
|
UpdatedDate = pmiCancel.LTVCancelDate,
|
|
CurrentAccountStatus = pmiCancel.CurrentStatus,
|
|
SuccessOrFailMessage = message
|
|
};
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|