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) File = ByteString.CopyFrom(request.ImageFile.File)
}, cancellationToken: cancellationToken); }, cancellationToken: cancellationToken);
if (fileInfo != null && !string.IsNullOrWhiteSpace(fileInfo.File)) if (fileInfo != null)
{ {
grpcRequest.ImagePath = fileInfo.File; if (!string.IsNullOrWhiteSpace(fileInfo.File))
_logger.LogInformation("Image uploaded to FMS: {ImagePath}", 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)) else if (!string.IsNullOrWhiteSpace(request.ImagePath))
@@ -7,7 +7,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Afrino.FMSMicroservice.Protobuf" Version="0.0.122" /> <PackageReference Include="Afrino.FMSMicroservice.Protobuf" Version="0.0.122" />
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.165" /> <PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.167" />
<PackageReference Include="Google.Protobuf" Version="3.23.3" /> <PackageReference Include="Google.Protobuf" Version="3.23.3" />
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.54.0" /> <PackageReference Include="Grpc.Net.ClientFactory" Version="2.54.0" />
@@ -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.11</Version> <Version>0.0.12</Version>
<DebugType>None</DebugType> <DebugType>None</DebugType>
<DebugSymbols>False</DebugSymbols> <DebugSymbols>False</DebugSymbols>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> <GeneratePackageOnBuild>False</GeneratePackageOnBuild>
@@ -56,6 +56,7 @@ message ManualPaymentModel
google.protobuf.Int64Value transaction_id = 18; google.protobuf.Int64Value transaction_id = 18;
google.protobuf.Timestamp created = 19; google.protobuf.Timestamp created = 19;
google.protobuf.StringValue image_path = 20; google.protobuf.StringValue image_path = 20;
google.protobuf.Int64Value image_document_id = 21;
} }
message CreateManualPaymentRequest message CreateManualPaymentRequest