mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
refactor(open_banking): Refactored to consume and use headers from SDK (#5884)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -641,6 +641,8 @@ pub struct HeaderPayload {
|
||||
pub x_client_platform: Option<api_enums::ClientPlatform>,
|
||||
pub x_merchant_domain: Option<String>,
|
||||
pub locale: Option<String>,
|
||||
pub x_app_id: Option<String>,
|
||||
pub x_redirect_uri: Option<String>,
|
||||
}
|
||||
|
||||
impl HeaderPayload {
|
||||
|
||||
@ -4,6 +4,8 @@ use common_utils::{
|
||||
id_type, impl_api_event_type,
|
||||
};
|
||||
|
||||
use crate::enums as api_enums;
|
||||
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct LinkTokenCreateRequest {
|
||||
@ -12,6 +14,9 @@ pub struct LinkTokenCreateRequest {
|
||||
pub payment_id: id_type::PaymentId, // payment_id to be passed in req body for redis pm_auth connector name fetch
|
||||
pub payment_method: PaymentMethod, // payment_method to be used for filtering pm_auth connector
|
||||
pub payment_method_type: PaymentMethodType, // payment_method_type to be used for filtering pm_auth connector
|
||||
pub client_platform: api_enums::ClientPlatform, // Client Platform to perform platform based processing
|
||||
pub android_package_name: Option<String>, // Android Package name to be sent for Android platform
|
||||
pub redirect_uri: Option<String>, // Merchant redirect_uri to be sent in case of IOS platform
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user