add base url to feature matrix

This commit is contained in:
AkshayaFoiger
2025-10-24 18:07:55 +05:30
parent 7b70d2454e
commit 83761b9d74
3 changed files with 9 additions and 1 deletions

View File

@ -13157,6 +13157,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"
},

View File

@ -68,6 +68,8 @@ pub struct ConnectorFeatureMatrixResponse {
pub display_name: String,
/// The description of the connector
pub 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,

View File

@ -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::{ConnectorSpecifications, ConnectorCommon};
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,