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:
Sai Harsha Vardhan
2025-09-20 12:33:02 +05:30
committed by GitHub
parent 0513c2cd71
commit 0b263179af
8 changed files with 102 additions and 21 deletions

View File

@ -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