mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(core): add all_keys_required in confirm and psync payload (#7998)
Co-authored-by: Anurag Singh <anurag.singh.001@Anurag-Singh-WPMHJ5619X.local> Co-authored-by: Anurag Singh <anurag.singh.001@MacBookPro.lan> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1164,6 +1164,9 @@ pub struct PaymentsRequest {
|
||||
|
||||
/// Indicates if the redirection has to open in the iframe
|
||||
pub is_iframe_redirection_enabled: Option<bool>,
|
||||
|
||||
/// If enabled, provides whole connector response
|
||||
pub all_keys_required: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
@ -5141,6 +5144,9 @@ pub struct PaymentsResponse {
|
||||
|
||||
/// Indicates if the redirection has to open in the iframe
|
||||
pub is_iframe_redirection_enabled: Option<bool>,
|
||||
|
||||
/// Contains whole connector response
|
||||
pub whole_connector_response: Option<String>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -5558,6 +5564,8 @@ pub struct PaymentsRetrieveRequest {
|
||||
/// These are the query params that are sent in case of redirect response.
|
||||
/// These can be ingested by the connector to take necessary actions.
|
||||
pub param: Option<String>,
|
||||
/// If enabled, provides whole connector response
|
||||
pub all_keys_required: Option<bool>,
|
||||
}
|
||||
|
||||
/// Error details for the payment
|
||||
@ -6405,6 +6413,8 @@ pub struct PaymentsRetrieveRequest {
|
||||
pub expand_captures: Option<bool>,
|
||||
/// If enabled provides list of attempts linked to payment intent
|
||||
pub expand_attempts: Option<bool>,
|
||||
/// If enabled, provides whole connector response
|
||||
pub all_keys_required: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, PartialEq, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
@ -7389,6 +7399,8 @@ pub struct PaymentRetrieveBody {
|
||||
pub expand_captures: Option<bool>,
|
||||
/// If enabled provides list of attempts linked to payment intent
|
||||
pub expand_attempts: Option<bool>,
|
||||
/// If enabled, provides whole connector response
|
||||
pub all_keys_required: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user