Adding
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user