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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(feature_matrix): add connector base url to feature matrix response (#9989)
AkshayaFoiger072633eb3153
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.jsonindex 0d207a5a51..ae55315094 100644--- a/api-reference/v1/openapi_spec_v1.json+++ b/api-reference/v1/openapi_spec_v1.json@@ -13576,6 +13576,11 @@"type": "string","description": "The description of the connector"},+ "base_url": {+ "type": "string",+ "description": "The base url of the connector",+ "nullable": true+ },"category": {"$ref": "#/components/schemas/HyperswitchConnectorCategory"},diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.jsonindex 7f1676c71f..32f67f6ded 100644--- a/api-reference/v2/openapi_spec_v2.json+++ b/api-reference/v2/openapi_spec_v2.json@@ -9152,6 +9152,11 @@"type": "string","description": "The description of the connector"},+ "base_url": {+ "type": "string",+ "description": "The base url of the connector",+ "nullable": true+ },"category": {"$ref": "#/components/schemas/HyperswitchConnectorCategory"},diff --git a/crates/api_models/src/feature_matrix.rs b/crates/api_models/src/feature_matrix.rsindex 0349e05f36..05f57793e6 100644--- a/crates/api_models/src/feature_matrix.rs+++ b/crates/api_models/src/feature_matrix.rs@@ -68,6 +68,8 @@ pub struct ConnectorFeatureMatrixResponse {pub display_name: String,/// The description of the connectorpub description: String,+ /// The base url of the connector+ pub base_url: Option<String>,/// The category of the connector#[schema(value_type = HyperswitchConnectorCategory, example = "payment_gateway")]pub category: common_enums::HyperswitchConnectorCategory,diff --git a/crates/router/src/routes/feature_matrix.rs b/crates/router/src/routes/feature_matrix.rsindex 9e23f95041..651273af99 100644--- a/crates/router/src/routes/feature_matrix.rs+++ b/crates/router/src/routes/feature_matrix.rs@@ -4,7 +4,7 @@ use common_enums::enums;use hyperswitch_domain_models::{api::ApplicationResponse, router_response_types::PaymentMethodTypeMetadata,};-use hyperswitch_interfaces::api::ConnectorSpecifications;+use hyperswitch_interfaces::api::{ConnectorCommon, ConnectorSpecifications};use router_env::{instrument, tracing, Flow};use strum::IntoEnumIterator;@@ -102,6 +102,7 @@ fn build_connector_feature_details(name: connector_name.to_uppercase(),display_name: connector_about.display_name.to_string(),description: connector_about.description.to_string(),+ base_url: Some(connector.base_url(&state.conf.connectors).to_string()),integration_status: connector_about.integration_status,category: connector_about.connector_type,supported_webhook_flows,