feat(core): add support for payment links localization (#5530)

Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
chikke srujan
2024-08-07 17:41:43 +05:30
committed by GitHub
parent 253f1be3e1
commit 3604b4ffac
28 changed files with 702 additions and 70 deletions

View File

@ -750,6 +750,7 @@ pub struct HeaderPayload {
pub browser_name: Option<api_enums::BrowserName>,
pub x_client_platform: Option<api_enums::ClientPlatform>,
pub x_merchant_domain: Option<String>,
pub locale: Option<String>,
}
impl HeaderPayload {
@ -5406,6 +5407,7 @@ pub struct PaymentLinkDetails {
pub merchant_description: Option<String>,
pub sdk_layout: String,
pub display_sdk_only: bool,
pub locale: Option<String>,
}
#[derive(Debug, serde::Serialize, Clone)]
@ -5430,6 +5432,7 @@ pub struct PaymentLinkStatusDetails {
pub redirect: bool,
pub theme: String,
pub return_url: String,
pub locale: Option<String>,
}
#[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)]