mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
refactor(core): use profile id to find connector (#2020)
This commit is contained in:
@ -488,7 +488,7 @@ impl From<StraightThroughAlgorithm> for StraightThroughAlgorithmSerde {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize, ToSchema, Serialize)]
|
||||
#[derive(Clone, Debug, Deserialize, ToSchema, Serialize, PartialEq)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct PrimaryBusinessDetails {
|
||||
#[schema(value_type = CountryAlpha2)]
|
||||
@ -615,10 +615,10 @@ pub struct MerchantConnectorCreate {
|
||||
#[schema(example = json!(common_utils::consts::FRM_CONFIGS_EG))]
|
||||
pub frm_configs: Option<Vec<FrmConfigs>>,
|
||||
|
||||
#[schema(value_type = CountryAlpha2, example = "US")]
|
||||
pub business_country: api_enums::CountryAlpha2,
|
||||
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
|
||||
pub business_country: Option<api_enums::CountryAlpha2>,
|
||||
|
||||
pub business_label: String,
|
||||
pub business_label: Option<String>,
|
||||
|
||||
/// Business Sub label of the merchant
|
||||
#[schema(example = "chase")]
|
||||
@ -658,7 +658,7 @@ pub struct MerchantConnectorResponse {
|
||||
// /// Connector label for specific country and Business
|
||||
#[serde(skip_deserializing)]
|
||||
#[schema(example = "stripe_US_travel")]
|
||||
pub connector_label: String,
|
||||
pub connector_label: Option<String>,
|
||||
|
||||
/// Unique ID of the connector
|
||||
#[schema(example = "mca_5apGeP94tMts6rg3U3kR")]
|
||||
@ -708,12 +708,12 @@ pub struct MerchantConnectorResponse {
|
||||
pub metadata: Option<pii::SecretSerdeValue>,
|
||||
|
||||
/// Business Country of the connector
|
||||
#[schema(value_type = CountryAlpha2, example = "US")]
|
||||
pub business_country: api_enums::CountryAlpha2,
|
||||
#[schema(value_type = Option<CountryAlpha2>, example = "US")]
|
||||
pub business_country: Option<api_enums::CountryAlpha2>,
|
||||
|
||||
///Business Type of the merchant
|
||||
#[schema(example = "travel")]
|
||||
pub business_label: String,
|
||||
pub business_label: Option<String>,
|
||||
|
||||
/// Business Sub label of the merchant
|
||||
#[schema(example = "chase")]
|
||||
|
||||
Reference in New Issue
Block a user