lib/smooch-api/api/integration_api.rb in smooch-api-1.1.0 vs lib/smooch-api/api/integration_api.rb in smooch-api-1.2.0

- old
+ new

@@ -1,13 +1,14 @@ =begin #Smooch #The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io). -OpenAPI spec version: 1.1 +OpenAPI spec version: 1.2 Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.2.3-SNAPSHOT =end require "uri" @@ -39,13 +40,17 @@ def create_integration_with_http_info(app_id, integration_create_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.create_integration ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration" + end # verify the required parameter 'integration_create_body' is set - fail ArgumentError, "Missing the required parameter 'integration_create_body' when calling IntegrationApi.create_integration" if integration_create_body.nil? + if @api_client.config.client_side_validation && integration_create_body.nil? + fail ArgumentError, "Missing the required parameter 'integration_create_body' when calling IntegrationApi.create_integration" + end # resource path local_var_path = "/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = {} @@ -98,15 +103,21 @@ def create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.create_integration_menu ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration_menu" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration_menu" + end # verify the required parameter 'integration_id' is set - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.create_integration_menu" if integration_id.nil? + if @api_client.config.client_side_validation && integration_id.nil? + fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.create_integration_menu" + end # verify the required parameter 'menu_create_body' is set - fail ArgumentError, "Missing the required parameter 'menu_create_body' when calling IntegrationApi.create_integration_menu" if menu_create_body.nil? + if @api_client.config.client_side_validation && menu_create_body.nil? + fail ArgumentError, "Missing the required parameter 'menu_create_body' when calling IntegrationApi.create_integration_menu" + end # resource path local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s) # query parameters query_params = {} @@ -157,13 +168,17 @@ def delete_integration_with_http_info(app_id, integration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration" + end # verify the required parameter 'integration_id' is set - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration" if integration_id.nil? + if @api_client.config.client_side_validation && integration_id.nil? + fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration" + end # resource path local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s) # query parameters query_params = {} @@ -213,13 +228,17 @@ def delete_integration_menu_with_http_info(app_id, integration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration_menu ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration_menu" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration_menu" + end # verify the required parameter 'integration_id' is set - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration_menu" if integration_id.nil? + if @api_client.config.client_side_validation && integration_id.nil? + fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration_menu" + end # resource path local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s) # query parameters query_params = {} @@ -269,13 +288,17 @@ def get_integration_with_http_info(app_id, integration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration" + end # verify the required parameter 'integration_id' is set - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration" if integration_id.nil? + if @api_client.config.client_side_validation && integration_id.nil? + fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration" + end # resource path local_var_path = "/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s) # query parameters query_params = {} @@ -326,13 +349,17 @@ def get_integration_menu_with_http_info(app_id, integration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_menu ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration_menu" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration_menu" + end # verify the required parameter 'integration_id' is set - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration_menu" if integration_id.nil? + if @api_client.config.client_side_validation && integration_id.nil? + fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration_menu" + end # resource path local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s) # query parameters query_params = {} @@ -383,11 +410,13 @@ def list_integrations_with_http_info(app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.list_integrations ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.list_integrations" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.list_integrations" + end # resource path local_var_path = "/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = {} @@ -441,14 +470,20 @@ def update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_menu ..." end # verify the required parameter 'app_id' is set - fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_menu" if app_id.nil? + if @api_client.config.client_side_validation && app_id.nil? + fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_menu" + end # verify the required parameter 'integration_id' is set - fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_menu" if integration_id.nil? + if @api_client.config.client_side_validation && integration_id.nil? + fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_menu" + end # verify the required parameter 'menu_update_body' is set - fail ArgumentError, "Missing the required parameter 'menu_update_body' when calling IntegrationApi.update_integration_menu" if menu_update_body.nil? + if @api_client.config.client_side_validation && menu_update_body.nil? + fail ArgumentError, "Missing the required parameter 'menu_update_body' when calling IntegrationApi.update_integration_menu" + end # resource path local_var_path = "/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s) # query parameters query_params = {}