Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(openapi_v2): add missing struct in openapi v2 (#7383)

Narayan Bhat3cf529c4dc9e
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json
index 71f9d37c7e..d93208fb66 100644
--- a/api-reference-v2/openapi_spec.json
+++ b/api-reference-v2/openapi_spec.json
@@ -4450,9 +4450,25 @@
"netcetera",
"gpayments",
"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": {
"type": "string",
"enum": [
@@ -7622,6 +7638,7 @@
"iatapay",
"itaubank",
"jpmorgan",
+ "juspaythreedsserver",
"klarna",
"mifinity",
"mollie",
@@ -15502,7 +15519,7 @@
"associated_payment_methods": {
"type": "array",
"items": {
- "$ref": "#/components/schemas/id_type.GlobalPaymentMethodId"
+ "type": "string"
},
"description": "The payment method that was created using this payment method session",
"nullable": true
diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json
index c7dad8c519..c2fe52010f 100644
--- a/api-reference/openapi_spec.json
+++ b/api-reference/openapi_spec.json
@@ -6605,7 +6605,8 @@
"netcetera",
"gpayments",
"ctp_mastercard",
- "unified_authentication_service"
+ "unified_authentication_service",
+ "juspaythreedsserver"
]
},
"AuthenticationStatus": {
@@ -9736,6 +9737,7 @@
"iatapay",
"itaubank",
"jpmorgan",
+ "juspaythreedsserver",
"klarna",
"mifinity",
"mollie",
@@ -23352,6 +23354,11 @@
"type": "boolean",
"description": "Indicates if clear pan retries is enabled or not.",
"nullable": true
+ },
+ "force_3ds_challenge": {
+ "type": "boolean",
+ "description": "Indicates if 3ds challenge is forced",
+ "nullable": true
}
},
"additionalProperties": false
@@ -23386,7 +23393,8 @@
"is_network_tokenization_enabled",
"is_auto_retries_enabled",
"is_click_to_pay_enabled",
- "is_clear_pan_retries_enabled"
+ "is_clear_pan_retries_enabled",
+ "force_3ds_challenge"
],
"properties": {
"merchant_id": {
@@ -23611,6 +23619,10 @@
"is_clear_pan_retries_enabled": {
"type": "boolean",
"description": "Indicates if clear pan retries is enabled or not."
+ },
+ "force_3ds_challenge": {
+ "type": "boolean",
+ "description": "Indicates if 3ds challenge is forced"
}
}
},
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs
index 0d02762095..ac44f65ee0 100644
--- a/crates/api_models/src/payment_methods.rs
+++ b/crates/api_models/src/payment_methods.rs
@@ -2798,12 +2798,18 @@ pub struct PaymentMethodSessionResponse {
pub authentication_details: Option<AuthenticationDetails>,
/// 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>>,
}
#[cfg(feature = "v2")]
#[derive(Debug, serde::Serialize, ToSchema, Clone)]
pub struct AuthenticationDetails {
+ /// The status of authentication for the payment method
+ #[schema(value_type = IntentStatus)]
pub status: common_enums::IntentStatus,
+
+ /// Error details of the authentication
+ #[schema(value_type = ErrorDetails)]
pub error: Option<payments::ErrorDetails>,
}
diff --git a/crates/masking/src/cassandra.rs b/crates/masking/src/cassandra.rs
index 2544ab18a7..ec44f1fb52 100644
--- a/crates/masking/src/cassandra.rs
+++ b/crates/masking/src/cassandra.rs
@@ -16,10 +16,10 @@ where
{
fn serialize<'b>(
&self,
- typ: &ColumnType<'_>,
+ column_type: &ColumnType<'_>,
writer: CellWriter<'b>,
) -> 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
T: DeserializeValue<'frame, 'metadata> + zeroize::Zeroize + Clone,
{
- fn type_check(typ: &ColumnType<'_>) -> Result<(), scylla::deserialize::TypeCheckError> {
- T::type_check(typ)
+ fn type_check(column_type: &ColumnType<'_>) -> Result<(), scylla::deserialize::TypeCheckError> {
+ T::type_check(column_type)
}
fn deserialize(
- typ: &'metadata ColumnType<'metadata>,
+ column_type: &'metadata ColumnType<'metadata>,
v: Option<scylla::deserialize::FrameSlice<'frame>>,
) -> Result<Self, scylla::deserialize::DeserializationError> {
- Ok(Self::new(T::deserialize(typ, v)?))
+ Ok(Self::new(T::deserialize(column_type, v)?))
}
}
diff --git a/crates/openapi/src/openapi_v2.rs b/crates/openapi/src/openapi_v2.rs
index d52d13f710..8a122b5fe8 100644
--- a/crates/openapi/src/openapi_v2.rs
+++ b/crates/openapi/src/openapi_v2.rs
@@ -699,6 +699,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::payments::PaymentAmountDetailsResponse,
api_models::payment_methods::PaymentMethodSessionConfirmRequest,
api_models::payment_methods::PaymentMethodSessionResponse,
+ api_models::payment_methods::AuthenticationDetails,
routes::payments::ForceSync,
)),
modifiers(&SecurityAddon)