LocalGovIMS_localgov-ims/src/BusinessLogic/Models/ProcessedTransactionModel.cs
using System;

namespace BusinessLogic.Models
{
    public class ProcessedTransactionModel
    {
        public string Reference { get; set; }
        public string InternalReference { get; set; }
        public string PspReference { get; set; }
        public string OfficeCode { get; set; }
        public DateTime? EntryDate { get; set; }
        public DateTime? TransactionDate { get; set; }
        public string AccountReference { get; set; }
        public int UserCode { get; set; }
        public string FundCode { get; set; }
        public string MopCode { get; set; }
        public decimal? Amount { get; set; }
        public string VatCode { get; set; }
        public float VatRate { get; set; }
        public decimal? VatAmount { get; set; }
        public string Narrative { get; set; }
        public int? ImportId { get; set; }

        public ProcessedTransactionModel() { }

        public Entities.ProcessedTransaction GetProcessedTransaction()
        {
            return new Entities.ProcessedTransaction()
            {
                TransactionReference = Reference,
                InternalReference = InternalReference,
                PspReference = PspReference,
                OfficeCode = OfficeCode,
                EntryDate = EntryDate,
                TransactionDate = TransactionDate,
                AccountReference = AccountReference,
                UserCode = UserCode,
                FundCode = FundCode,
                MopCode = MopCode,
                Amount = Amount,
                VatCode = VatCode,
                VatRate = VatRate,
                VatAmount = VatAmount,
                Narrative = Narrative,
                ImportId = ImportId
            };
        }
    }
}