mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	refactor(core): Refactor customer payment method list for v2 (#4856)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		@ -1,12 +1,19 @@
 | 
			
		||||
use common_utils::events::{ApiEventMetric, ApiEventsType};
 | 
			
		||||
 | 
			
		||||
#[cfg(all(
 | 
			
		||||
    any(feature = "v2", feature = "v1"),
 | 
			
		||||
    not(feature = "payment_methods_v2")
 | 
			
		||||
))]
 | 
			
		||||
use crate::payment_methods::CustomerPaymentMethodsListResponse;
 | 
			
		||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
 | 
			
		||||
use crate::payment_methods::CustomerPaymentMethodsListResponse;
 | 
			
		||||
use crate::{
 | 
			
		||||
    payment_methods::{
 | 
			
		||||
        CustomerDefaultPaymentMethodResponse, CustomerPaymentMethodsListResponse,
 | 
			
		||||
        DefaultPaymentMethod, ListCountriesCurrenciesRequest, ListCountriesCurrenciesResponse,
 | 
			
		||||
        PaymentMethodCollectLinkRenderRequest, PaymentMethodCollectLinkRequest,
 | 
			
		||||
        PaymentMethodCollectLinkResponse, PaymentMethodDeleteResponse, PaymentMethodListRequest,
 | 
			
		||||
        PaymentMethodListResponse, PaymentMethodResponse, PaymentMethodUpdate,
 | 
			
		||||
        CustomerDefaultPaymentMethodResponse, DefaultPaymentMethod, ListCountriesCurrenciesRequest,
 | 
			
		||||
        ListCountriesCurrenciesResponse, PaymentMethodCollectLinkRenderRequest,
 | 
			
		||||
        PaymentMethodCollectLinkRequest, PaymentMethodCollectLinkResponse,
 | 
			
		||||
        PaymentMethodDeleteResponse, PaymentMethodListRequest, PaymentMethodListResponse,
 | 
			
		||||
        PaymentMethodResponse, PaymentMethodUpdate,
 | 
			
		||||
    },
 | 
			
		||||
    payments::{
 | 
			
		||||
        ExtendedCardInfoResponse, PaymentIdType, PaymentListConstraints,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user