mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 14:07:18 +08:00 
			
		
		
		
	refactor: use CountryAlpha2 instead of CountryCode for country codes (#904)
				
					
				
			This commit is contained in:
		@ -50,7 +50,7 @@ fn get_primary_business_details(
 | 
			
		||||
            .to_owned()
 | 
			
		||||
            .unwrap_or_else(|| {
 | 
			
		||||
                vec![PrimaryBusinessDetails {
 | 
			
		||||
                    country: enums::CountryCode::US,
 | 
			
		||||
                    country: enums::CountryAlpha2::US,
 | 
			
		||||
                    business: "default".to_string(),
 | 
			
		||||
                }]
 | 
			
		||||
            })
 | 
			
		||||
@ -328,7 +328,7 @@ async fn validate_merchant_id<S: Into<String>>(
 | 
			
		||||
fn get_business_details_wrapper(
 | 
			
		||||
    request: &api::MerchantConnectorCreate,
 | 
			
		||||
    _merchant_account: &MerchantAccount,
 | 
			
		||||
) -> RouterResult<(enums::CountryCode, String)> {
 | 
			
		||||
) -> RouterResult<(enums::CountryAlpha2, String)> {
 | 
			
		||||
    #[cfg(feature = "multiple_mca")]
 | 
			
		||||
    {
 | 
			
		||||
        // The fields are mandatory
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user