feat: add ImagePath and ImageDocumentId to ManualPaymentModel and update related query handler
Build and Deploy / build (push) Successful in 1m47s

This commit is contained in:
masoodafar-web
2026-01-02 02:37:10 +03:30
parent 36b30e37b8
commit 0c63b3c83c
3 changed files with 16 additions and 13 deletions
@@ -1,4 +1,3 @@
using BackOffice.BFF.ManualPayment.Protobuf;
using CMSMicroservice.Protobuf.Protos.ManualPayment;
using Microsoft.Extensions.Logging;
@@ -44,23 +43,25 @@ public class GetManualPaymentsQueryHandler : IRequestHandler<GetManualPaymentsQu
{
Id = m.Id,
UserId = m.UserId,
UserFullName = m.UserFullName,
UserMobile = m.UserMobile,
UserFullName = m.UserFullName ?? string.Empty,
UserMobile = m.UserMobile ?? string.Empty,
Amount = m.Amount,
Type = m.Type.GetHashCode(),
TypeDisplay = m.TypeDisplay,
Description = m.Description,
ReferenceNumber = m.ReferenceNumber,
TypeDisplay = m.TypeDisplay ?? string.Empty,
Description = m.Description ?? string.Empty,
ReferenceNumber = m.ReferenceNumber ?? string.Empty,
Status = m.Status.GetHashCode(),
StatusDisplay = m.StatusDisplay,
StatusDisplay = m.StatusDisplay ?? string.Empty,
RequestedBy = m.RequestedBy,
RequestedByName = m.RequestedByName,
RequestedByName = m.RequestedByName ?? string.Empty,
ApprovedBy = m.ApprovedBy,
ApprovedByName = m.ApprovedByName,
ApprovedByName = m.ApprovedByName ?? string.Empty,
ApprovedAt = m.ApprovedAt?.ToDateTime(),
RejectionReason = m.RejectionReason,
RejectionReason = m.RejectionReason ?? string.Empty,
TransactionId = m.TransactionId,
Created = m.Created?.ToDateTime() ?? DateTime.UtcNow
Created = m.Created?.ToDateTime() ?? DateTime.UtcNow,
ImagePath = m.ImagePath,
ImageDocumentId = m.ImageDocumentId
})
.ToList()
?? new List<ManualPaymentModel>();
@@ -27,5 +27,7 @@ public class ManualPaymentModel
public string? RejectionReason { get; set; }
public long? TransactionId { get; set; }
public DateTime Created { get; set; }
public string? ImagePath { get; set; }
public long? ImageDocumentId { get; set; }
}
@@ -4,7 +4,7 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.12</Version>
<Version>0.0.14</Version>
<DebugType>None</DebugType>
<DebugSymbols>False</DebugSymbols>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>