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:
+10
-1
@@ -50,11 +50,20 @@ 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)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(fileInfo.File))
|
||||||
{
|
{
|
||||||
grpcRequest.ImagePath = fileInfo.File;
|
grpcRequest.ImagePath = fileInfo.File;
|
||||||
_logger.LogInformation("Image uploaded to FMS: {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" />
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user