feat: enhance CreateManualPayment command with image document ID and update protobuf definitions
Build and Deploy / build (push) Successful in 1m50s

This commit is contained in:
masoodafar-web
2026-01-02 02:13:51 +03:30
parent 31df6d843a
commit 36b30e37b8
4 changed files with 15 additions and 5 deletions
@@ -50,10 +50,19 @@ public class CreateManualPaymentCommandHandler : IRequestHandler<CreateManualPay
File = ByteString.CopyFrom(request.ImageFile.File)
}, cancellationToken: cancellationToken);
if (fileInfo != null && !string.IsNullOrWhiteSpace(fileInfo.File))
if (fileInfo != null)
{
grpcRequest.ImagePath = fileInfo.File;
_logger.LogInformation("Image uploaded to FMS: {ImagePath}", fileInfo.File);
if (!string.IsNullOrWhiteSpace(fileInfo.File))
{
grpcRequest.ImagePath = fileInfo.File;
_logger.LogInformation("Image uploaded to FMS: {ImagePath}", fileInfo.File);
}
if (fileInfo.Id > 0)
{
grpcRequest.ImageDocumentId = fileInfo.Id;
_logger.LogInformation("Image document ID from FMS: {ImageDocumentId}", fileInfo.Id);
}
}
}
else if (!string.IsNullOrWhiteSpace(request.ImagePath))