mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:50:53 +08:00 
			
		
		
		
	refactor(payment_connector): allow connector label to be updated (#2622)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -587,10 +587,9 @@ pub struct MerchantConnectorCreate { | ||||
|     /// Name of the Connector | ||||
|     #[schema(value_type = Connector, example = "stripe")] | ||||
|     pub connector_name: api_enums::Connector, | ||||
|     // /// Connector label for specific country and Business | ||||
|     #[serde(skip_deserializing)] | ||||
|     /// Connector label for a connector, this can serve as a field to identify the connector as per business details | ||||
|     #[schema(example = "stripe_US_travel")] | ||||
|     pub connector_label: String, | ||||
|     pub connector_label: Option<String>, | ||||
|  | ||||
|     /// Unique ID of the connector | ||||
|     #[schema(example = "mca_5apGeP94tMts6rg3U3kR")] | ||||
| @ -683,8 +682,8 @@ pub struct MerchantConnectorResponse { | ||||
|     /// Name of the Connector | ||||
|     #[schema(example = "stripe")] | ||||
|     pub connector_name: String, | ||||
|     // /// Connector label for specific country and Business | ||||
|     #[serde(skip_deserializing)] | ||||
|  | ||||
|     /// Connector label for a connector, this can serve as a field to identify the connector as per business details | ||||
|     #[schema(example = "stripe_US_travel")] | ||||
|     pub connector_label: Option<String>, | ||||
|  | ||||
| @ -777,6 +776,9 @@ pub struct MerchantConnectorUpdate { | ||||
|     #[schema(value_type = ConnectorType, example = "payment_processor")] | ||||
|     pub connector_type: api_enums::ConnectorType, | ||||
|  | ||||
|     /// Connector label for a connector, this can serve as a field to identify the connector as per business details | ||||
|     pub connector_label: Option<String>, | ||||
|  | ||||
|     /// Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object. | ||||
|     #[schema(value_type = Option<Object>,example = json!({ "auth_type": "HeaderKey","api_key": "Basic MyVerySecretApiKey" }))] | ||||
|     pub connector_account_details: Option<pii::SecretSerdeValue>, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat