feat: add ImagePath and ImageDocumentId to ManualPaymentModel and update related query handler
Build and Deploy / build (push) Successful in 1m47s
Build and Deploy / build (push) Successful in 1m47s
This commit is contained in:
+12
-11
@@ -1,4 +1,3 @@
|
|||||||
using BackOffice.BFF.ManualPayment.Protobuf;
|
|
||||||
using CMSMicroservice.Protobuf.Protos.ManualPayment;
|
using CMSMicroservice.Protobuf.Protos.ManualPayment;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
@@ -44,23 +43,25 @@ public class GetManualPaymentsQueryHandler : IRequestHandler<GetManualPaymentsQu
|
|||||||
{
|
{
|
||||||
Id = m.Id,
|
Id = m.Id,
|
||||||
UserId = m.UserId,
|
UserId = m.UserId,
|
||||||
UserFullName = m.UserFullName,
|
UserFullName = m.UserFullName ?? string.Empty,
|
||||||
UserMobile = m.UserMobile,
|
UserMobile = m.UserMobile ?? string.Empty,
|
||||||
Amount = m.Amount,
|
Amount = m.Amount,
|
||||||
Type = m.Type.GetHashCode(),
|
Type = m.Type.GetHashCode(),
|
||||||
TypeDisplay = m.TypeDisplay,
|
TypeDisplay = m.TypeDisplay ?? string.Empty,
|
||||||
Description = m.Description,
|
Description = m.Description ?? string.Empty,
|
||||||
ReferenceNumber = m.ReferenceNumber,
|
ReferenceNumber = m.ReferenceNumber ?? string.Empty,
|
||||||
Status = m.Status.GetHashCode(),
|
Status = m.Status.GetHashCode(),
|
||||||
StatusDisplay = m.StatusDisplay,
|
StatusDisplay = m.StatusDisplay ?? string.Empty,
|
||||||
RequestedBy = m.RequestedBy,
|
RequestedBy = m.RequestedBy,
|
||||||
RequestedByName = m.RequestedByName,
|
RequestedByName = m.RequestedByName ?? string.Empty,
|
||||||
ApprovedBy = m.ApprovedBy,
|
ApprovedBy = m.ApprovedBy,
|
||||||
ApprovedByName = m.ApprovedByName,
|
ApprovedByName = m.ApprovedByName ?? string.Empty,
|
||||||
ApprovedAt = m.ApprovedAt?.ToDateTime(),
|
ApprovedAt = m.ApprovedAt?.ToDateTime(),
|
||||||
RejectionReason = m.RejectionReason,
|
RejectionReason = m.RejectionReason ?? string.Empty,
|
||||||
TransactionId = m.TransactionId,
|
TransactionId = m.TransactionId,
|
||||||
Created = m.Created?.ToDateTime() ?? DateTime.UtcNow
|
Created = m.Created?.ToDateTime() ?? DateTime.UtcNow,
|
||||||
|
ImagePath = m.ImagePath,
|
||||||
|
ImageDocumentId = m.ImageDocumentId
|
||||||
})
|
})
|
||||||
.ToList()
|
.ToList()
|
||||||
?? new List<ManualPaymentModel>();
|
?? new List<ManualPaymentModel>();
|
||||||
|
|||||||
+2
@@ -27,5 +27,7 @@ public class ManualPaymentModel
|
|||||||
public string? RejectionReason { get; set; }
|
public string? RejectionReason { get; set; }
|
||||||
public long? TransactionId { get; set; }
|
public long? TransactionId { get; set; }
|
||||||
public DateTime Created { get; set; }
|
public DateTime Created { get; set; }
|
||||||
|
public string? ImagePath { get; set; }
|
||||||
|
public long? ImageDocumentId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<Version>0.0.12</Version>
|
<Version>0.0.14</Version>
|
||||||
<DebugType>None</DebugType>
|
<DebugType>None</DebugType>
|
||||||
<DebugSymbols>False</DebugSymbols>
|
<DebugSymbols>False</DebugSymbols>
|
||||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||||
|
|||||||
Reference in New Issue
Block a user