mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor(core): Add 'redirect_response' field to CompleteAuthorizeData (#1222)
Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com>
This commit is contained in:
@ -1575,15 +1575,21 @@ pub struct Metadata {
|
||||
#[serde(flatten)]
|
||||
pub data: pii::SecretSerdeValue,
|
||||
|
||||
/// Payload coming in request as a metadata field
|
||||
#[schema(value_type = Option<Object>)]
|
||||
pub payload: Option<pii::SecretSerdeValue>,
|
||||
/// Redirection response coming in request as metadata field only for redirection scenarios
|
||||
pub redirect_response: Option<RedirectResponse>,
|
||||
|
||||
/// Allowed payment method types for a payment intent
|
||||
#[schema(value_type = Option<Vec<PaymentMethodType>>)]
|
||||
pub allowed_payment_method_types: Option<Vec<api_enums::PaymentMethodType>>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct RedirectResponse {
|
||||
pub param: Option<Secret<String>>,
|
||||
#[schema(value_type = Option<Object>)]
|
||||
pub json_payload: Option<pii::SecretSerdeValue>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct PaymentsSessionRequest {
|
||||
/// The identifier for the payment
|
||||
|
||||
Reference in New Issue
Block a user