mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
fix(openapi_v2): add missing struct in openapi v2 (#7383)
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Anurag Thakur <anurag.thakur@juspay.in> Co-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com> Co-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Co-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com> Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: Debarati Ghatak <88573135+cookieg13@users.noreply.github.com> Co-authored-by: awasthi21 <107559116+awasthi21@users.noreply.github.com> Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Arindam Sahoo <88739246+arindam-sahoo@users.noreply.github.com> Co-authored-by: Arindam Sahoo <arindam.sahoo@Arindam-Sahoo-F565040VFJ.local> Co-authored-by: Sakil Mostak <73734619+Sakilmostak@users.noreply.github.com> Co-authored-by: AkshayaFoiger <131388445+AkshayaFoiger@users.noreply.github.com> Co-authored-by: Riddhiagrawal001 <50551695+Riddhiagrawal001@users.noreply.github.com> Co-authored-by: Suman Maji <77887221+sumanmaji4@users.noreply.github.com> Co-authored-by: Sandeep Kumar <83278309+tsdk02@users.noreply.github.com> Co-authored-by: Debarshi Gupta <debarshigupta47@gmail.com> Co-authored-by: Debarshi Gupta <debarshi.gupta@Debarshi-Gupta-CM92YWDXFD.local> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com> Co-authored-by: Swangi Kumari <85639103+swangi-kumari@users.noreply.github.com> Co-authored-by: pranav-arjunan <pranav.arjunan@juspay.in> Co-authored-by: Kashif <kashif.dev@protonmail.com> Co-authored-by: Sagnik Mitra <83326850+ImSagnik007@users.noreply.github.com> Co-authored-by: sweta-kumari-sharma <77436883+Sweta-Kumari-Sharma@users.noreply.github.com> Co-authored-by: shivansh.mathur <shivansh.mathur@juspay.in>
This commit is contained in:
@ -4450,9 +4450,25 @@
|
|||||||
"netcetera",
|
"netcetera",
|
||||||
"gpayments",
|
"gpayments",
|
||||||
"ctp_mastercard",
|
"ctp_mastercard",
|
||||||
"unified_authentication_service"
|
"unified_authentication_service",
|
||||||
|
"juspaythreedsserver"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"AuthenticationDetails": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"status",
|
||||||
|
"error"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"status": {
|
||||||
|
"$ref": "#/components/schemas/IntentStatus"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"$ref": "#/components/schemas/ErrorDetails"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"AuthenticationStatus": {
|
"AuthenticationStatus": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
@ -7622,6 +7638,7 @@
|
|||||||
"iatapay",
|
"iatapay",
|
||||||
"itaubank",
|
"itaubank",
|
||||||
"jpmorgan",
|
"jpmorgan",
|
||||||
|
"juspaythreedsserver",
|
||||||
"klarna",
|
"klarna",
|
||||||
"mifinity",
|
"mifinity",
|
||||||
"mollie",
|
"mollie",
|
||||||
@ -15502,7 +15519,7 @@
|
|||||||
"associated_payment_methods": {
|
"associated_payment_methods": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/id_type.GlobalPaymentMethodId"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": "The payment method that was created using this payment method session",
|
"description": "The payment method that was created using this payment method session",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
|
|||||||
@ -6605,7 +6605,8 @@
|
|||||||
"netcetera",
|
"netcetera",
|
||||||
"gpayments",
|
"gpayments",
|
||||||
"ctp_mastercard",
|
"ctp_mastercard",
|
||||||
"unified_authentication_service"
|
"unified_authentication_service",
|
||||||
|
"juspaythreedsserver"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"AuthenticationStatus": {
|
"AuthenticationStatus": {
|
||||||
@ -9736,6 +9737,7 @@
|
|||||||
"iatapay",
|
"iatapay",
|
||||||
"itaubank",
|
"itaubank",
|
||||||
"jpmorgan",
|
"jpmorgan",
|
||||||
|
"juspaythreedsserver",
|
||||||
"klarna",
|
"klarna",
|
||||||
"mifinity",
|
"mifinity",
|
||||||
"mollie",
|
"mollie",
|
||||||
@ -23352,6 +23354,11 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Indicates if clear pan retries is enabled or not.",
|
"description": "Indicates if clear pan retries is enabled or not.",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
|
},
|
||||||
|
"force_3ds_challenge": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Indicates if 3ds challenge is forced",
|
||||||
|
"nullable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
@ -23386,7 +23393,8 @@
|
|||||||
"is_network_tokenization_enabled",
|
"is_network_tokenization_enabled",
|
||||||
"is_auto_retries_enabled",
|
"is_auto_retries_enabled",
|
||||||
"is_click_to_pay_enabled",
|
"is_click_to_pay_enabled",
|
||||||
"is_clear_pan_retries_enabled"
|
"is_clear_pan_retries_enabled",
|
||||||
|
"force_3ds_challenge"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"merchant_id": {
|
"merchant_id": {
|
||||||
@ -23611,6 +23619,10 @@
|
|||||||
"is_clear_pan_retries_enabled": {
|
"is_clear_pan_retries_enabled": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Indicates if clear pan retries is enabled or not."
|
"description": "Indicates if clear pan retries is enabled or not."
|
||||||
|
},
|
||||||
|
"force_3ds_challenge": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Indicates if 3ds challenge is forced"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2798,12 +2798,18 @@ pub struct PaymentMethodSessionResponse {
|
|||||||
pub authentication_details: Option<AuthenticationDetails>,
|
pub authentication_details: Option<AuthenticationDetails>,
|
||||||
|
|
||||||
/// The payment method that was created using this payment method session
|
/// The payment method that was created using this payment method session
|
||||||
|
#[schema(value_type = Option<Vec<String>>)]
|
||||||
pub associated_payment_methods: Option<Vec<id_type::GlobalPaymentMethodId>>,
|
pub associated_payment_methods: Option<Vec<id_type::GlobalPaymentMethodId>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "v2")]
|
#[cfg(feature = "v2")]
|
||||||
#[derive(Debug, serde::Serialize, ToSchema, Clone)]
|
#[derive(Debug, serde::Serialize, ToSchema, Clone)]
|
||||||
pub struct AuthenticationDetails {
|
pub struct AuthenticationDetails {
|
||||||
|
/// The status of authentication for the payment method
|
||||||
|
#[schema(value_type = IntentStatus)]
|
||||||
pub status: common_enums::IntentStatus,
|
pub status: common_enums::IntentStatus,
|
||||||
|
|
||||||
|
/// Error details of the authentication
|
||||||
|
#[schema(value_type = ErrorDetails)]
|
||||||
pub error: Option<payments::ErrorDetails>,
|
pub error: Option<payments::ErrorDetails>,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,10 +16,10 @@ where
|
|||||||
{
|
{
|
||||||
fn serialize<'b>(
|
fn serialize<'b>(
|
||||||
&self,
|
&self,
|
||||||
typ: &ColumnType<'_>,
|
column_type: &ColumnType<'_>,
|
||||||
writer: CellWriter<'b>,
|
writer: CellWriter<'b>,
|
||||||
) -> Result<WrittenCellProof<'b>, SerializationError> {
|
) -> Result<WrittenCellProof<'b>, SerializationError> {
|
||||||
self.peek().serialize(typ, writer)
|
self.peek().serialize(column_type, writer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,14 +27,14 @@ impl<'frame, 'metadata, T> DeserializeValue<'frame, 'metadata> for StrongSecret<
|
|||||||
where
|
where
|
||||||
T: DeserializeValue<'frame, 'metadata> + zeroize::Zeroize + Clone,
|
T: DeserializeValue<'frame, 'metadata> + zeroize::Zeroize + Clone,
|
||||||
{
|
{
|
||||||
fn type_check(typ: &ColumnType<'_>) -> Result<(), scylla::deserialize::TypeCheckError> {
|
fn type_check(column_type: &ColumnType<'_>) -> Result<(), scylla::deserialize::TypeCheckError> {
|
||||||
T::type_check(typ)
|
T::type_check(column_type)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn deserialize(
|
fn deserialize(
|
||||||
typ: &'metadata ColumnType<'metadata>,
|
column_type: &'metadata ColumnType<'metadata>,
|
||||||
v: Option<scylla::deserialize::FrameSlice<'frame>>,
|
v: Option<scylla::deserialize::FrameSlice<'frame>>,
|
||||||
) -> Result<Self, scylla::deserialize::DeserializationError> {
|
) -> Result<Self, scylla::deserialize::DeserializationError> {
|
||||||
Ok(Self::new(T::deserialize(typ, v)?))
|
Ok(Self::new(T::deserialize(column_type, v)?))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -699,6 +699,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
|||||||
api_models::payments::PaymentAmountDetailsResponse,
|
api_models::payments::PaymentAmountDetailsResponse,
|
||||||
api_models::payment_methods::PaymentMethodSessionConfirmRequest,
|
api_models::payment_methods::PaymentMethodSessionConfirmRequest,
|
||||||
api_models::payment_methods::PaymentMethodSessionResponse,
|
api_models::payment_methods::PaymentMethodSessionResponse,
|
||||||
|
api_models::payment_methods::AuthenticationDetails,
|
||||||
routes::payments::ForceSync,
|
routes::payments::ForceSync,
|
||||||
)),
|
)),
|
||||||
modifiers(&SecurityAddon)
|
modifiers(&SecurityAddon)
|
||||||
|
|||||||
Reference in New Issue
Block a user