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:
Sahkal Poddar
2024-12-12 17:31:41 +05:30
committed by GitHub
parent 573fc2ce0f
commit e9a5615f2b
30 changed files with 136 additions and 4 deletions

View File

@ -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")]