mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
enhance(core): replace string with enum for country (#735)
This commit is contained in:
@ -39,7 +39,7 @@ impl AdyenTest {
|
||||
address: Some(PaymentAddress {
|
||||
billing: Some(Address {
|
||||
address: Some(AddressDetails {
|
||||
country: Some("US".to_string()),
|
||||
country: Some(api_models::enums::CountryCode::US),
|
||||
..Default::default()
|
||||
}),
|
||||
phone: None,
|
||||
|
||||
@ -42,7 +42,7 @@ fn get_default_payment_info() -> Option<utils::PaymentInfo> {
|
||||
line2: Some(Secret::new("line2".to_string())),
|
||||
city: Some("city".to_string()),
|
||||
zip: Some(Secret::new("zip".to_string())),
|
||||
country: Some("IN".to_string()),
|
||||
country: Some(api_models::enums::CountryCode::IN),
|
||||
..Default::default()
|
||||
}),
|
||||
phone: Some(api::PhoneDetails {
|
||||
|
||||
@ -443,7 +443,7 @@ pub fn get_payment_info() -> PaymentInfo {
|
||||
phone: None,
|
||||
address: Some(api::AddressDetails {
|
||||
city: None,
|
||||
country: Some("PA".to_string()),
|
||||
country: Some(api_models::enums::CountryCode::PA),
|
||||
line1: None,
|
||||
line2: None,
|
||||
line3: None,
|
||||
|
||||
@ -41,7 +41,7 @@ fn get_default_payment_info() -> Option<PaymentInfo> {
|
||||
address: Some(types::PaymentAddress {
|
||||
billing: Some(api::Address {
|
||||
address: Some(api::AddressDetails {
|
||||
country: Some("US".to_string()),
|
||||
country: Some(api_models::enums::CountryCode::US),
|
||||
..Default::default()
|
||||
}),
|
||||
phone: None,
|
||||
|
||||
@ -71,7 +71,7 @@ fn get_default_payment_info() -> Option<utils::PaymentInfo> {
|
||||
line2: Some(Secret::new("line2".to_string())),
|
||||
city: Some("city".to_string()),
|
||||
zip: Some(Secret::new("zip".to_string())),
|
||||
country: Some("IN".to_string()),
|
||||
country: Some(api_models::enums::CountryCode::IN),
|
||||
..Default::default()
|
||||
}),
|
||||
phone: None,
|
||||
|
||||
@ -42,7 +42,7 @@ impl WorldlineTest {
|
||||
address: Some(PaymentAddress {
|
||||
billing: Some(Address {
|
||||
address: Some(AddressDetails {
|
||||
country: Some("US".to_string()),
|
||||
country: Some(api_models::enums::CountryCode::US),
|
||||
..Default::default()
|
||||
}),
|
||||
phone: None,
|
||||
|
||||
Reference in New Issue
Block a user