mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(router): add merchant_business_country field in apple pay session_token_data (#4236)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -3857,11 +3857,15 @@ pub struct SessionTokenInfo {
|
||||
pub display_name: String,
|
||||
pub initiative: String,
|
||||
pub initiative_context: String,
|
||||
#[schema(value_type = Option<CountryAlpha2>)]
|
||||
pub merchant_business_country: Option<api_enums::CountryAlpha2>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct SessionTokenForSimplifiedApplePay {
|
||||
pub initiative_context: String,
|
||||
#[schema(value_type = Option<CountryAlpha2>)]
|
||||
pub merchant_business_country: Option<api_enums::CountryAlpha2>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, ToSchema)]
|
||||
@ -4029,7 +4033,7 @@ pub struct SecretInfoToInitiateSdk {
|
||||
pub struct ApplePayPaymentRequest {
|
||||
/// The code for country
|
||||
#[schema(value_type = CountryAlpha2, example = "US")]
|
||||
pub country_code: Option<api_enums::CountryAlpha2>,
|
||||
pub country_code: api_enums::CountryAlpha2,
|
||||
/// The code for currency
|
||||
#[schema(value_type = Currency, example = "USD")]
|
||||
pub currency_code: api_enums::Currency,
|
||||
|
||||
Reference in New Issue
Block a user