feat: enhance CreateManualPayment command with image document ID and update protobuf definitions
Build and Deploy / build (push) Successful in 1m50s
Build and Deploy / build (push) Successful in 1m50s
This commit is contained in:
+12
-3
@@ -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))
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<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="Grpc.Net.ClientFactory" Version="2.54.0" />
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.0.11</Version>
|
||||
<Version>0.0.12</Version>
|
||||
<DebugType>None</DebugType>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||
|
||||
@@ -56,6 +56,7 @@ message ManualPaymentModel
|
||||
google.protobuf.Int64Value transaction_id = 18;
|
||||
google.protobuf.Timestamp created = 19;
|
||||
google.protobuf.StringValue image_path = 20;
|
||||
google.protobuf.Int64Value image_document_id = 21;
|
||||
}
|
||||
|
||||
message CreateManualPaymentRequest
|
||||
|
||||
Reference in New Issue
Block a user