feat: add ImagePath property to CreateManualPayment command and update related protobuf definitions
Build and Deploy / build (push) Successful in 2m22s

This commit is contained in:
masoodafar-web
2026-01-02 00:45:53 +03:30
parent d0224d41b2
commit 441098a80b
5 changed files with 11 additions and 3 deletions
@@ -7,6 +7,7 @@ public class CreateManualPaymentCommand : IRequest<CreateManualPaymentResponseDt
public int Type { get; set; }
public string Description { get; set; } = string.Empty;
public string? ReferenceNumber { get; set; }
public string? ImagePath { get; set; }
}
public class CreateManualPaymentResponseDto
@@ -37,6 +37,11 @@ public class CreateManualPaymentCommandHandler : IRequestHandler<CreateManualPay
grpcRequest.ReferenceNumber = request.ReferenceNumber;
}
if (!string.IsNullOrWhiteSpace(request.ImagePath))
{
grpcRequest.ImagePath = request.ImagePath;
}
var response = await _context.ManualPayments.CreateManualPaymentAsync(grpcRequest, cancellationToken: cancellationToken);
return new CreateManualPaymentResponseDto