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
|
||||
|
||||
Reference in New Issue
Block a user