mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(router): add flag to wait for post message in threeDSMethodData for three_ds_invoke next action in Payments Confirm (#9454)
This commit is contained in:
committed by
GitHub
parent
0513c2cd71
commit
0b263179af
@ -5002,9 +5002,8 @@ pub struct ThreeDsData {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]
|
||||
#[serde(tag = "three_ds_method_key")]
|
||||
#[serde(untagged)]
|
||||
pub enum ThreeDsMethodData {
|
||||
#[serde(rename = "threeDSMethodData")]
|
||||
AcsThreeDsMethodData {
|
||||
/// Whether ThreeDS method data submission is required
|
||||
three_ds_method_data_submission: bool,
|
||||
@ -5012,9 +5011,21 @@ pub enum ThreeDsMethodData {
|
||||
three_ds_method_data: Option<String>,
|
||||
/// ThreeDS method url
|
||||
three_ds_method_url: Option<String>,
|
||||
/// Three DS Method Key
|
||||
three_ds_method_key: Option<ThreeDsMethodKey>,
|
||||
/// Indicates whethere to wait for Post message after 3DS method data submission
|
||||
consume_post_message_for_three_ds_method_completion: bool,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]
|
||||
pub enum ThreeDsMethodKey {
|
||||
#[serde(rename = "threeDSMethodData")]
|
||||
ThreeDsMethodData,
|
||||
#[serde(rename = "JWT")]
|
||||
JWT,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]
|
||||
pub struct PollConfigResponse {
|
||||
/// Poll Id
|
||||
|
||||
Reference in New Issue
Block a user