From 6645d062942a9e415969d68c88ddf60fe5ceb47f Mon Sep 17 00:00:00 2001 From: hrithikesh026 Date: Tue, 5 Nov 2024 09:23:26 +0530 Subject: [PATCH] fix cargo check errors --- crates/hyperswitch_domain_models/src/payments.rs | 2 -- crates/router/src/routes/payments.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/hyperswitch_domain_models/src/payments.rs b/crates/hyperswitch_domain_models/src/payments.rs index 8afb5e5d8dc7..a21788e1bb0a 100644 --- a/crates/hyperswitch_domain_models/src/payments.rs +++ b/crates/hyperswitch_domain_models/src/payments.rs @@ -3,8 +3,6 @@ use std::marker::PhantomData; #[cfg(feature = "v2")] use api_models::payments::Address; -#[cfg(feature = "v2")] -use api_models::payments::OrderDetailsWithAmount; use common_utils::{ self, crypto::Encryptable, diff --git a/crates/router/src/routes/payments.rs b/crates/router/src/routes/payments.rs index 4b22e4837f8a..ba785fbee8e6 100644 --- a/crates/router/src/routes/payments.rs +++ b/crates/router/src/routes/payments.rs @@ -183,7 +183,7 @@ pub async fn payments_get_intent( state, &req, payload, - |state, auth: auth::AuthenticationDataV2, req, req_state| { + |state, auth: auth::AuthenticationData, req, req_state| { payments::payments_intent_core::< api_types::PaymentGetIntent, payment_types::PaymentsIntentResponse,