feat(router): send poll_config in next_action of confirm response for external 3ds flow (#4443)

Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2024-04-29 11:33:15 +05:30
committed by GitHub
parent cbf7cf4fcf
commit c3a1db16f3
19 changed files with 106 additions and 12 deletions

View File

@ -2825,6 +2825,8 @@ pub struct ThreeDsData {
pub three_ds_authorize_url: String,
/// ThreeDS method details
pub three_ds_method_details: ThreeDsMethodData,
/// Poll config for a connector
pub poll_config: PollConfigResponse,
}
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]
@ -2841,6 +2843,16 @@ pub enum ThreeDsMethodData {
},
}
#[derive(Clone, Debug, Eq, PartialEq, serde::Serialize, ToSchema)]
pub struct PollConfigResponse {
/// Poll Id
pub poll_id: String,
/// Interval of the poll
pub delay_in_secs: i8,
/// Frequency of the poll
pub frequency: i8,
}
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[serde(untagged)]