mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(business_profile): add tax_connector_id column in business_profile table (#5576)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: swangi-kumari <swangi.12015941@lpu.in> Co-authored-by: Swangi Kumari <85639103+swangi-kumari@users.noreply.github.com>
This commit is contained in:
		| @ -1953,6 +1953,14 @@ pub struct BusinessProfileCreate { | ||||
|     /// These key-value pairs are sent as additional custom headers in the outgoing webhook request. It is recommended not to use more than four key-value pairs. | ||||
|     #[schema(value_type = Option<Object>, example = r#"{ "key1": "value-1", "key2": "value-2" }"#)] | ||||
|     pub outgoing_webhook_custom_http_headers: Option<HashMap<String, String>>, | ||||
|  | ||||
|     /// Merchant Connector id to be stored for tax_calculator connector | ||||
|     pub tax_connector_id: Option<String>, | ||||
|  | ||||
|     /// Indicates if tax_calculator connector is enabled or not. | ||||
|     /// If set to `true` tax_connector_id will be checked. | ||||
|     #[serde(default)] | ||||
|     pub is_tax_connector_enabled: bool, | ||||
| } | ||||
|  | ||||
| #[nutype::nutype( | ||||
| @ -2048,6 +2056,14 @@ pub struct BusinessProfileCreate { | ||||
|     /// These key-value pairs are sent as additional custom headers in the outgoing webhook request. It is recommended not to use more than four key-value pairs. | ||||
|     #[schema(value_type = Option<Object>, example = r#"{ "key1": "value-1", "key2": "value-2" }"#)] | ||||
|     pub outgoing_webhook_custom_http_headers: Option<HashMap<String, String>>, | ||||
|  | ||||
|     /// Merchant Connector id to be stored for tax_calculator connector | ||||
|     pub tax_connector_id: Option<String>, | ||||
|  | ||||
|     /// Indicates if tax_calculator connector is enabled or not. | ||||
|     /// If set to `true` tax_connector_id will be checked. | ||||
|     #[serde(default)] | ||||
|     pub is_tax_connector_enabled: bool, | ||||
| } | ||||
|  | ||||
| #[cfg(all( | ||||
| @ -2160,6 +2176,13 @@ pub struct BusinessProfileResponse { | ||||
|     /// These key-value pairs are sent as additional custom headers in the outgoing webhook request. | ||||
|     #[schema(value_type = Option<Object>, example = r#"{ "key1": "value-1", "key2": "value-2" }"#)] | ||||
|     pub outgoing_webhook_custom_http_headers: Option<HashMap<String, Secret<String>>>, | ||||
|  | ||||
|     /// Merchant Connector id to be stored for tax_calculator connector | ||||
|     pub tax_connector_id: Option<String>, | ||||
|  | ||||
|     /// Indicates if tax_calculator connector is enabled or not. | ||||
|     /// If set to `true` tax_connector_id will be checked. | ||||
|     pub is_tax_connector_enabled: bool, | ||||
| } | ||||
|  | ||||
| #[cfg(all(feature = "v2", feature = "business_profile_v2"))] | ||||
| @ -2260,6 +2283,13 @@ pub struct BusinessProfileResponse { | ||||
|     /// Whether the order fulfillment time is calculated from the origin or the time of creating the payment, or confirming the payment | ||||
|     #[schema(value_type = Option<OrderFulfillmentTimeOrigin>, example = "create")] | ||||
|     pub order_fulfillment_time_origin: Option<api_enums::OrderFulfillmentTimeOrigin>, | ||||
|  | ||||
|     /// Merchant Connector id to be stored for tax_calculator connector | ||||
|     pub tax_connector_id: Option<String>, | ||||
|  | ||||
|     /// Indicates if tax_calculator connector is enabled or not. | ||||
|     /// If set to `true` tax_connector_id will be checked. | ||||
|     pub is_tax_connector_enabled: bool, | ||||
| } | ||||
|  | ||||
| #[cfg(all( | ||||
| @ -2364,6 +2394,13 @@ pub struct BusinessProfileUpdate { | ||||
|     /// These key-value pairs are sent as additional custom headers in the outgoing webhook request. It is recommended not to use more than four key-value pairs. | ||||
|     #[schema(value_type = Option<Object>, example = r#"{ "key1": "value-1", "key2": "value-2" }"#)] | ||||
|     pub outgoing_webhook_custom_http_headers: Option<HashMap<String, String>>, | ||||
|  | ||||
|     /// Merchant Connector id to be stored for tax_calculator connector | ||||
|     pub tax_connector_id: Option<String>, | ||||
|  | ||||
|     /// Indicates if tax_calculator connector is enabled or not. | ||||
|     /// If set to `true` tax_connector_id will be checked. | ||||
|     pub is_tax_connector_enabled: Option<bool>, | ||||
| } | ||||
|  | ||||
| #[cfg(all(feature = "v2", feature = "business_profile_v2"))] | ||||
| @ -2456,6 +2493,13 @@ pub struct BusinessProfileUpdate { | ||||
|     /// These key-value pairs are sent as additional custom headers in the outgoing webhook request. It is recommended not to use more than four key-value pairs. | ||||
|     #[schema(value_type = Option<Object>, example = r#"{ "key1": "value-1", "key2": "value-2" }"#)] | ||||
|     pub outgoing_webhook_custom_http_headers: Option<HashMap<String, String>>, | ||||
|  | ||||
|     /// Merchant Connector id to be stored for tax_calculator connector | ||||
|     pub tax_connector_id: Option<String>, | ||||
|  | ||||
|     /// Indicates if tax_calculator connector is enabled or not. | ||||
|     /// If set to `true` tax_connector_id will be checked. | ||||
|     pub is_tax_connector_enabled: Option<bool>, | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sagnik Mitra
					Sagnik Mitra