chore: name variables appropriately

This commit is contained in:
hrithikesh026
2025-10-22 18:30:14 +05:30
parent c12ab06ac5
commit a99fb92d9f
2 changed files with 8 additions and 4 deletions

View File

@ -138,16 +138,16 @@ impl UnifiedConnectorServiceClient {
}
}
/// Performs Payment Authorize
/// Performs Payment Pre Authenticate
pub async fn payment_pre_authenticate(
&self,
payment_authorize_request: payments_grpc::PaymentServicePreAuthenticateRequest,
payment_pre_authenticate_request: payments_grpc::PaymentServicePreAuthenticateRequest,
connector_auth_metadata: ConnectorAuthMetadata,
grpc_headers: GrpcHeadersUcs,
) -> UnifiedConnectorServiceResult<
tonic::Response<payments_grpc::PaymentServicePreAuthenticateResponse>,
> {
let mut request = tonic::Request::new(payment_authorize_request);
let mut request = tonic::Request::new(payment_pre_authenticate_request);
let connector_name = connector_auth_metadata.connector_name.clone();
let metadata =
@ -159,7 +159,7 @@ impl UnifiedConnectorServiceClient {
.clone()
.pre_authenticate(request)
.await
.change_context(UnifiedConnectorServiceError::PaymentAuthorizeFailure)
.change_context(UnifiedConnectorServiceError::PaymentPreAuthenticateFailure)
.inspect_err(|error| {
logger::error!(
grpc_error=?error,

View File

@ -73,6 +73,10 @@ pub enum UnifiedConnectorServiceError {
#[error("Failed to perform Payment Authorize from gRPC Server")]
PaymentAuthorizeFailure,
/// Failed to perform Payment Authenticate from gRPC Server
#[error("Failed to perform Payment Pre Authenticate from gRPC Server")]
PaymentPreAuthenticateFailure,
/// Failed to perform Payment Get from gRPC Server
#[error("Failed to perform Payment Get from gRPC Server")]
PaymentGetFailure,