feat: add ImagePath property to CreateManualPayment command and update related protobuf definitions
Build and Deploy / build (push) Successful in 2m22s
Build and Deploy / build (push) Successful in 2m22s
This commit is contained in:
+1
@@ -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
|
||||
|
||||
+5
@@ -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
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Afrino.FMSMicroservice.Protobuf" Version="0.0.122" />
|
||||
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.164" />
|
||||
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.165" />
|
||||
|
||||
<PackageReference Include="Google.Protobuf" Version="3.23.3" />
|
||||
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.54.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- <ItemGroup>-->
|
||||
<!-- <ProjectReference Include="..\..\..\..\FourSat\CMS\src\CMSMicroservice.Protobuf\CMSMicroservice.Protobuf.csproj" />-->
|
||||
<!-- <ProjectReference Include="..\..\..\..\CMS\src\CMSMicroservice.Protobuf\CMSMicroservice.Protobuf.csproj" />-->
|
||||
<!-- </ItemGroup>-->
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.0.5</Version>
|
||||
<Version>0.0.6</Version>
|
||||
<DebugType>None</DebugType>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||
|
||||
@@ -55,6 +55,7 @@ message ManualPaymentModel
|
||||
string rejection_reason = 17;
|
||||
google.protobuf.Int64Value transaction_id = 18;
|
||||
google.protobuf.Timestamp created = 19;
|
||||
google.protobuf.StringValue image_path = 20;
|
||||
}
|
||||
|
||||
message CreateManualPaymentRequest
|
||||
@@ -64,6 +65,7 @@ message CreateManualPaymentRequest
|
||||
int32 type = 3;
|
||||
string description = 4;
|
||||
google.protobuf.StringValue reference_number = 5;
|
||||
google.protobuf.StringValue image_path = 6;
|
||||
}
|
||||
|
||||
message CreateManualPaymentResponse
|
||||
|
||||
Reference in New Issue
Block a user