37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using LCU.API.Internal.RepoApi.Repos.Models.Producer;
|
|
|
|
namespace LCU.API.Internal.RepoApi.Repos.Models
|
|
{
|
|
public class ProcessingReceipt
|
|
{
|
|
public ProcessingReceipt(string accountNo)
|
|
{
|
|
AccountNo = accountNo;
|
|
AccountId = "";
|
|
QueuedBy = "Unknown";
|
|
Message = "";
|
|
Outcome = RepoProcessingResult.Error;
|
|
Processed = DateTime.Now;
|
|
}
|
|
|
|
public string AccountNo { get; protected set; }
|
|
|
|
[Required]
|
|
public string AccountId { get; set; }
|
|
[Required]
|
|
public string CaseId { get; set; }
|
|
[Required]
|
|
[MaxLength(40)]
|
|
public string QueuedBy { get; set; }
|
|
public RepoProcessingResult Outcome { get; set; }
|
|
public string Message { get; set; }
|
|
public DateTime Processed { get; set; }
|
|
|
|
public string Pretty()
|
|
{
|
|
return $"Key: {AccountNo}|{AccountId}|{CaseId}|{QueuedBy} -> {Outcome} : {Message}";
|
|
}
|
|
}
|
|
} |