mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
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:
committed by
GitHub
parent
cbf7cf4fcf
commit
c3a1db16f3
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user