mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(core): Add service details field in authentication table (#6757)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1013,6 +1013,22 @@ pub struct PaymentsRequest {
|
||||
/// Choose what kind of sca exemption is required for this payment
|
||||
#[schema(value_type = Option<ScaExemptionType>)]
|
||||
pub psd2_sca_exemption_type: Option<api_enums::ScaExemptionType>,
|
||||
|
||||
/// Service details for click to pay external authentication
|
||||
#[schema(value_type = Option<CtpServiceDetails>)]
|
||||
pub ctp_service_details: Option<CtpServiceDetails>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct CtpServiceDetails {
|
||||
/// merchant transaction id
|
||||
pub merchant_transaction_id: Option<String>,
|
||||
/// network transaction correlation id
|
||||
pub correlation_id: Option<String>,
|
||||
/// session transaction flow id
|
||||
pub x_src_flow_id: Option<String>,
|
||||
/// provider Eg: Visa, Mastercard
|
||||
pub provider: Option<String>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
|
||||
Reference in New Issue
Block a user