mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
add base url to feature matrix
This commit is contained in:
@ -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"
|
||||
},
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user