mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	chore: code refinement
This commit is contained in:
		| @ -1,4 +1,5 @@ | |||||||
| use common_enums::AttemptStatus; | use common_enums::AttemptStatus; | ||||||
|  | use common_types::primitive_wrappers::{ExtendedAuthorizationAppliedBool, OvercaptureEnabledBool}; | ||||||
| use hyperswitch_domain_models::{ | use hyperswitch_domain_models::{ | ||||||
|     router_data::{ |     router_data::{ | ||||||
|         AdditionalPaymentMethodConnectorResponse, ConnectorResponseData, ErrorResponse, |         AdditionalPaymentMethodConnectorResponse, ConnectorResponseData, ErrorResponse, | ||||||
| @ -8,7 +9,6 @@ use hyperswitch_domain_models::{ | |||||||
| }; | }; | ||||||
|  |  | ||||||
| use crate::{helpers::ForeignTryFrom, unified_connector_service::payments_grpc}; | use crate::{helpers::ForeignTryFrom, unified_connector_service::payments_grpc}; | ||||||
| use common_types::primitive_wrappers::{ExtendedAuthorizationAppliedBool, OvercaptureEnabledBool}; |  | ||||||
|  |  | ||||||
| /// Unified Connector Service error variants | /// Unified Connector Service error variants | ||||||
| #[derive(Debug, Clone, thiserror::Error)] | #[derive(Debug, Clone, thiserror::Error)] | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| use std::{borrow::Cow, collections::HashSet, net::IpAddr, ops::Deref, str::FromStr}; | use std::{borrow::Cow, collections::HashSet, net::IpAddr, ops::Deref, str::FromStr}; | ||||||
|  |  | ||||||
| pub use hyperswitch_domain_models::customer; |  | ||||||
|  |  | ||||||
| pub use ::payment_methods::helpers::{ | pub use ::payment_methods::helpers::{ | ||||||
|     populate_bin_details_for_payment_method_create, |     populate_bin_details_for_payment_method_create, | ||||||
|     validate_payment_method_type_against_payment_method, |     validate_payment_method_type_against_payment_method, | ||||||
| @ -36,6 +34,7 @@ use error_stack::{report, ResultExt}; | |||||||
| #[cfg(feature = "v1")] | #[cfg(feature = "v1")] | ||||||
| use external_services::grpc_client; | use external_services::grpc_client; | ||||||
| use futures::future::Either; | use futures::future::Either; | ||||||
|  | pub use hyperswitch_domain_models::customer; | ||||||
| #[cfg(feature = "v1")] | #[cfg(feature = "v1")] | ||||||
| use hyperswitch_domain_models::payments::payment_intent::CustomerData; | use hyperswitch_domain_models::payments::payment_intent::CustomerData; | ||||||
| use hyperswitch_domain_models::{ | use hyperswitch_domain_models::{ | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Amitsingh Tanwar
					Amitsingh Tanwar