From 0dd4f3dca20455a4c42cde464459c340881e1a28 Mon Sep 17 00:00:00 2001 From: Sarthak Soni Date: Thu, 22 Aug 2024 19:38:39 +0530 Subject: [PATCH] fix(payment_methods_v2): Fixed errors --- crates/router/src/core/payment_methods/cards.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 77df20dde5cf..46e194903323 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -8,23 +8,19 @@ use std::{ any(feature = "v1", feature = "v2"), not(feature = "payment_methods_v2") ))] -use api_models::{ - admin::PaymentMethodsEnabled, - payment_methods::{ - CardNetworkTypes, PaymentExperienceTypes, RequiredFieldInfo, ResponsePaymentMethodTypes, - }, - pm_auth::PaymentMethodAuthConfig, -}; +use api_models::admin::PaymentMethodsEnabled; use api_models::{ enums as api_enums, payment_methods::{ - BankAccountTokenData, Card, CardDetailUpdate, CardDetailsPaymentMethod, + BankAccountTokenData, Card, CardDetailUpdate, CardDetailsPaymentMethod, CardNetworkTypes, CountryCodeWithName, CustomerDefaultPaymentMethodResponse, ListCountriesCurrenciesRequest, - ListCountriesCurrenciesResponse, MaskedBankDetails, PaymentMethodsData, - RequestPaymentMethodTypes, ResponsePaymentMethodIntermediate, + ListCountriesCurrenciesResponse, MaskedBankDetails, PaymentExperienceTypes, + PaymentMethodsData, RequestPaymentMethodTypes, RequiredFieldInfo, + ResponsePaymentMethodIntermediate, ResponsePaymentMethodTypes, ResponsePaymentMethodsEnabled, }, payments::BankCodeResponse, + pm_auth::PaymentMethodAuthConfig, surcharge_decision_configs as api_surcharge_decision_configs, }; use common_enums::{enums::MerchantStorageScheme, ConnectorType};