smooch-api 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -3
  3. data/docs/Action.md +2 -2
  4. data/docs/App.md +2 -2
  5. data/docs/AppApi.md +48 -48
  6. data/docs/AppSettings.md +2 -2
  7. data/docs/AppUser.md +6 -6
  8. data/docs/AppUserApi.md +78 -78
  9. data/docs/AppUserBusinessSystemsResponse.md +1 -1
  10. data/docs/AppUserLink.md +2 -2
  11. data/docs/AppUserPreCreate.md +3 -3
  12. data/docs/AppUserResponse.md +1 -1
  13. data/docs/AppUserUpdate.md +2 -2
  14. data/docs/AttachmentRemove.md +1 -1
  15. data/docs/AttachmentResponse.md +2 -2
  16. data/docs/AttachmentsApi.md +16 -16
  17. data/docs/AuthCodeResponse.md +1 -1
  18. data/docs/BusinessSystemItem.md +4 -4
  19. data/docs/ChannelEntityItem.md +3 -3
  20. data/docs/Client.md +4 -4
  21. data/docs/ClientInfo.md +8 -8
  22. data/docs/Conversation.md +2 -2
  23. data/docs/ConversationApi.md +42 -42
  24. data/docs/Destination.md +2 -2
  25. data/docs/DisplaySettings.md +1 -1
  26. data/docs/GetMessagesResponse.md +1 -1
  27. data/docs/Integration.md +44 -44
  28. data/docs/IntegrationApi.md +66 -66
  29. data/docs/IntegrationCreate.md +36 -36
  30. data/docs/IntegrationProfileUpdate.md +1 -1
  31. data/docs/IntegrationUpdate.md +16 -16
  32. data/docs/LinkRequestResponse.md +1 -1
  33. data/docs/LinkRequestResponseLinkRequests.md +1 -1
  34. data/docs/ListAppsResponse.md +1 -1
  35. data/docs/ListServiceAccountsResponse.md +2 -2
  36. data/docs/ListTemplatesResponse.md +1 -1
  37. data/docs/MenuApi.md +14 -14
  38. data/docs/Message.md +6 -6
  39. data/docs/MessageItem.md +2 -2
  40. data/docs/MessageOverride.md +8 -0
  41. data/docs/MessageOverrideWhatsapp.md +8 -0
  42. data/docs/MessagePost.md +4 -3
  43. data/docs/MessageResponse.md +1 -1
  44. data/docs/SecretKey.md +1 -1
  45. data/docs/ServiceAccount.md +1 -1
  46. data/docs/ServiceAccountApi.md +46 -46
  47. data/docs/ServiceAccountResponse.md +1 -1
  48. data/docs/Template.md +1 -1
  49. data/docs/TemplateApi.md +30 -30
  50. data/docs/TypingActivityTrigger.md +1 -1
  51. data/docs/Webhook.md +1 -1
  52. data/docs/WebhookApi.md +30 -30
  53. data/lib/smooch-api.rb +3 -1
  54. data/lib/smooch-api/api/app_api.rb +112 -112
  55. data/lib/smooch-api/api/app_user_api.rb +190 -190
  56. data/lib/smooch-api/api/attachments_api.rb +34 -34
  57. data/lib/smooch-api/api/conversation_api.rb +102 -102
  58. data/lib/smooch-api/api/integration_api.rb +161 -161
  59. data/lib/smooch-api/api/menu_api.rb +34 -34
  60. data/lib/smooch-api/api/service_account_api.rb +109 -109
  61. data/lib/smooch-api/api/template_api.rb +73 -73
  62. data/lib/smooch-api/api/webhook_api.rb +73 -73
  63. data/lib/smooch-api/api_client.rb +1 -1
  64. data/lib/smooch-api/api_error.rb +1 -1
  65. data/lib/smooch-api/configuration.rb +1 -1
  66. data/lib/smooch-api/models/action.rb +12 -12
  67. data/lib/smooch-api/models/app.rb +18 -18
  68. data/lib/smooch-api/models/app_create.rb +1 -1
  69. data/lib/smooch-api/models/app_response.rb +1 -1
  70. data/lib/smooch-api/models/app_settings.rb +12 -12
  71. data/lib/smooch-api/models/app_update.rb +1 -1
  72. data/lib/smooch-api/models/app_user.rb +38 -38
  73. data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
  74. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  75. data/lib/smooch-api/models/app_user_link.rb +12 -12
  76. data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
  77. data/lib/smooch-api/models/app_user_response.rb +10 -10
  78. data/lib/smooch-api/models/app_user_update.rb +12 -12
  79. data/lib/smooch-api/models/attachment_remove.rb +10 -10
  80. data/lib/smooch-api/models/attachment_response.rb +18 -18
  81. data/lib/smooch-api/models/auth_code_response.rb +10 -10
  82. data/lib/smooch-api/models/business_system_item.rb +22 -22
  83. data/lib/smooch-api/models/channel_entity_item.rb +17 -17
  84. data/lib/smooch-api/models/client.rb +22 -22
  85. data/lib/smooch-api/models/client_info.rb +42 -42
  86. data/lib/smooch-api/models/confirmation.rb +1 -1
  87. data/lib/smooch-api/models/conversation.rb +18 -18
  88. data/lib/smooch-api/models/destination.rb +18 -18
  89. data/lib/smooch-api/models/display_settings.rb +7 -7
  90. data/lib/smooch-api/models/get_messages_response.rb +7 -7
  91. data/lib/smooch-api/models/integration.rb +225 -225
  92. data/lib/smooch-api/models/integration_create.rb +182 -182
  93. data/lib/smooch-api/models/integration_profile_update.rb +7 -7
  94. data/lib/smooch-api/models/integration_response.rb +1 -1
  95. data/lib/smooch-api/models/integration_update.rb +82 -82
  96. data/lib/smooch-api/models/jwt_response.rb +1 -1
  97. data/lib/smooch-api/models/link_request_response.rb +7 -7
  98. data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
  99. data/lib/smooch-api/models/list_apps_response.rb +7 -7
  100. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  101. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  102. data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
  103. data/lib/smooch-api/models/list_templates_response.rb +7 -7
  104. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  105. data/lib/smooch-api/models/menu.rb +1 -1
  106. data/lib/smooch-api/models/menu_item.rb +1 -1
  107. data/lib/smooch-api/models/menu_response.rb +1 -1
  108. data/lib/smooch-api/models/message.rb +41 -41
  109. data/lib/smooch-api/models/message_item.rb +12 -12
  110. data/lib/smooch-api/models/message_override.rb +188 -0
  111. data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
  112. data/lib/smooch-api/models/message_post.rb +30 -20
  113. data/lib/smooch-api/models/message_response.rb +7 -7
  114. data/lib/smooch-api/models/secret_key.rb +10 -10
  115. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  116. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  117. data/lib/smooch-api/models/service_account.rb +10 -10
  118. data/lib/smooch-api/models/service_account_create.rb +1 -1
  119. data/lib/smooch-api/models/service_account_response.rb +7 -7
  120. data/lib/smooch-api/models/service_account_update.rb +1 -1
  121. data/lib/smooch-api/models/source.rb +1 -1
  122. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  123. data/lib/smooch-api/models/template.rb +10 -10
  124. data/lib/smooch-api/models/template_create.rb +1 -1
  125. data/lib/smooch-api/models/template_response.rb +1 -1
  126. data/lib/smooch-api/models/template_update.rb +1 -1
  127. data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
  128. data/lib/smooch-api/models/webhook.rb +10 -10
  129. data/lib/smooch-api/models/webhook_create.rb +1 -1
  130. data/lib/smooch-api/models/webhook_response.rb +1 -1
  131. data/lib/smooch-api/models/webhook_update.rb +1 -1
  132. data/lib/smooch-api/version.rb +2 -2
  133. data/smooch-api.gemspec +1 -1
  134. data/spec/api_client_spec.rb +1 -1
  135. data/spec/configuration_spec.rb +1 -1
  136. data/spec/spec_helper.rb +1 -1
  137. metadata +6 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #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).
5
5
 
6
- OpenAPI spec version: 4.1
6
+ OpenAPI spec version: 4.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -22,35 +22,35 @@ module SmoochApi
22
22
 
23
23
  #
24
24
  # Create an integration for the specified app.
25
- # @param app_id Identifies the app.
26
- # @param integration_create_body Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
25
+ # @param appId Identifies the app.
26
+ # @param integrationCreateBody Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [IntegrationResponse]
29
- def create_integration(app_id, integration_create_body, opts = {})
30
- data, _status_code, _headers = create_integration_with_http_info(app_id, integration_create_body, opts)
29
+ def create_integration(appId, integrationCreateBody, opts = {})
30
+ data, _status_code, _headers = create_integration_with_http_info(appId, integrationCreateBody, opts)
31
31
  return data
32
32
  end
33
33
 
34
34
  #
35
35
  # Create an integration for the specified app.
36
- # @param app_id Identifies the app.
37
- # @param integration_create_body Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
36
+ # @param appId Identifies the app.
37
+ # @param integrationCreateBody Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
40
- def create_integration_with_http_info(app_id, integration_create_body, opts = {})
40
+ def create_integration_with_http_info(appId, integrationCreateBody, opts = {})
41
41
  if @api_client.config.debugging
42
42
  @api_client.config.logger.debug "Calling API: IntegrationApi.create_integration ..."
43
43
  end
44
- # verify the required parameter 'app_id' is set
45
- if @api_client.config.client_side_validation && app_id.nil?
46
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration"
44
+ # verify the required parameter 'appId' is set
45
+ if @api_client.config.client_side_validation && appId.nil?
46
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.create_integration"
47
47
  end
48
- # verify the required parameter 'integration_create_body' is set
49
- if @api_client.config.client_side_validation && integration_create_body.nil?
50
- fail ArgumentError, "Missing the required parameter 'integration_create_body' when calling IntegrationApi.create_integration"
48
+ # verify the required parameter 'integrationCreateBody' is set
49
+ if @api_client.config.client_side_validation && integrationCreateBody.nil?
50
+ fail ArgumentError, "Missing the required parameter 'integrationCreateBody' when calling IntegrationApi.create_integration"
51
51
  end
52
52
  # resource path
53
- local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s)
53
+ local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
54
54
 
55
55
  # query parameters
56
56
  query_params = {}
@@ -66,7 +66,7 @@ module SmoochApi
66
66
  form_params = {}
67
67
 
68
68
  # http body (model)
69
- post_body = @api_client.object_to_http_body(integration_create_body)
69
+ post_body = @api_client.object_to_http_body(integrationCreateBody)
70
70
  auth_names = ['jwt']
71
71
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
72
  :header_params => header_params,
@@ -83,41 +83,41 @@ module SmoochApi
83
83
 
84
84
  #
85
85
  # Create the specified integration’s menu, overriding the app menu if configured.
86
- # @param app_id Identifies the app.
87
- # @param integration_id Identifies the integration.
88
- # @param menu_create_body Body for a createMenu request.
86
+ # @param appId Identifies the app.
87
+ # @param integrationId Identifies the integration.
88
+ # @param menuCreateBody Body for a createMenu request.
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [MenuResponse]
91
- def create_integration_menu(app_id, integration_id, menu_create_body, opts = {})
92
- data, _status_code, _headers = create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts)
91
+ def create_integration_menu(appId, integrationId, menuCreateBody, opts = {})
92
+ data, _status_code, _headers = create_integration_menu_with_http_info(appId, integrationId, menuCreateBody, opts)
93
93
  return data
94
94
  end
95
95
 
96
96
  #
97
97
  # Create the specified integration’s menu, overriding the app menu if configured.
98
- # @param app_id Identifies the app.
99
- # @param integration_id Identifies the integration.
100
- # @param menu_create_body Body for a createMenu request.
98
+ # @param appId Identifies the app.
99
+ # @param integrationId Identifies the integration.
100
+ # @param menuCreateBody Body for a createMenu request.
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
103
- def create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts = {})
103
+ def create_integration_menu_with_http_info(appId, integrationId, menuCreateBody, opts = {})
104
104
  if @api_client.config.debugging
105
105
  @api_client.config.logger.debug "Calling API: IntegrationApi.create_integration_menu ..."
106
106
  end
107
- # verify the required parameter 'app_id' is set
108
- if @api_client.config.client_side_validation && app_id.nil?
109
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration_menu"
107
+ # verify the required parameter 'appId' is set
108
+ if @api_client.config.client_side_validation && appId.nil?
109
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.create_integration_menu"
110
110
  end
111
- # verify the required parameter 'integration_id' is set
112
- if @api_client.config.client_side_validation && integration_id.nil?
113
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.create_integration_menu"
111
+ # verify the required parameter 'integrationId' is set
112
+ if @api_client.config.client_side_validation && integrationId.nil?
113
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.create_integration_menu"
114
114
  end
115
- # verify the required parameter 'menu_create_body' is set
116
- if @api_client.config.client_side_validation && menu_create_body.nil?
117
- fail ArgumentError, "Missing the required parameter 'menu_create_body' when calling IntegrationApi.create_integration_menu"
115
+ # verify the required parameter 'menuCreateBody' is set
116
+ if @api_client.config.client_side_validation && menuCreateBody.nil?
117
+ fail ArgumentError, "Missing the required parameter 'menuCreateBody' when calling IntegrationApi.create_integration_menu"
118
118
  end
119
119
  # resource path
120
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
120
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
121
121
 
122
122
  # query parameters
123
123
  query_params = {}
@@ -133,7 +133,7 @@ module SmoochApi
133
133
  form_params = {}
134
134
 
135
135
  # http body (model)
136
- post_body = @api_client.object_to_http_body(menu_create_body)
136
+ post_body = @api_client.object_to_http_body(menuCreateBody)
137
137
  auth_names = ['jwt']
138
138
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
139
139
  :header_params => header_params,
@@ -150,35 +150,35 @@ module SmoochApi
150
150
 
151
151
  #
152
152
  # Delete the specified integration.
153
- # @param app_id Identifies the app.
154
- # @param integration_id Identifies the integration.
153
+ # @param appId Identifies the app.
154
+ # @param integrationId Identifies the integration.
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @return [nil]
157
- def delete_integration(app_id, integration_id, opts = {})
158
- delete_integration_with_http_info(app_id, integration_id, opts)
157
+ def delete_integration(appId, integrationId, opts = {})
158
+ delete_integration_with_http_info(appId, integrationId, opts)
159
159
  return nil
160
160
  end
161
161
 
162
162
  #
163
163
  # Delete the specified integration.
164
- # @param app_id Identifies the app.
165
- # @param integration_id Identifies the integration.
164
+ # @param appId Identifies the app.
165
+ # @param integrationId Identifies the integration.
166
166
  # @param [Hash] opts the optional parameters
167
167
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
168
- def delete_integration_with_http_info(app_id, integration_id, opts = {})
168
+ def delete_integration_with_http_info(appId, integrationId, opts = {})
169
169
  if @api_client.config.debugging
170
170
  @api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration ..."
171
171
  end
172
- # verify the required parameter 'app_id' is set
173
- if @api_client.config.client_side_validation && app_id.nil?
174
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration"
172
+ # verify the required parameter 'appId' is set
173
+ if @api_client.config.client_side_validation && appId.nil?
174
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.delete_integration"
175
175
  end
176
- # verify the required parameter 'integration_id' is set
177
- if @api_client.config.client_side_validation && integration_id.nil?
178
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration"
176
+ # verify the required parameter 'integrationId' is set
177
+ if @api_client.config.client_side_validation && integrationId.nil?
178
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.delete_integration"
179
179
  end
180
180
  # resource path
181
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
181
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
182
182
 
183
183
  # query parameters
184
184
  query_params = {}
@@ -210,35 +210,35 @@ module SmoochApi
210
210
 
211
211
  #
212
212
  # Delete the specified integration’s menu.
213
- # @param app_id Identifies the app.
214
- # @param integration_id Identifies the integration.
213
+ # @param appId Identifies the app.
214
+ # @param integrationId Identifies the integration.
215
215
  # @param [Hash] opts the optional parameters
216
216
  # @return [nil]
217
- def delete_integration_menu(app_id, integration_id, opts = {})
218
- delete_integration_menu_with_http_info(app_id, integration_id, opts)
217
+ def delete_integration_menu(appId, integrationId, opts = {})
218
+ delete_integration_menu_with_http_info(appId, integrationId, opts)
219
219
  return nil
220
220
  end
221
221
 
222
222
  #
223
223
  # Delete the specified integration’s menu.
224
- # @param app_id Identifies the app.
225
- # @param integration_id Identifies the integration.
224
+ # @param appId Identifies the app.
225
+ # @param integrationId Identifies the integration.
226
226
  # @param [Hash] opts the optional parameters
227
227
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
228
- def delete_integration_menu_with_http_info(app_id, integration_id, opts = {})
228
+ def delete_integration_menu_with_http_info(appId, integrationId, opts = {})
229
229
  if @api_client.config.debugging
230
230
  @api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration_menu ..."
231
231
  end
232
- # verify the required parameter 'app_id' is set
233
- if @api_client.config.client_side_validation && app_id.nil?
234
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration_menu"
232
+ # verify the required parameter 'appId' is set
233
+ if @api_client.config.client_side_validation && appId.nil?
234
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.delete_integration_menu"
235
235
  end
236
- # verify the required parameter 'integration_id' is set
237
- if @api_client.config.client_side_validation && integration_id.nil?
238
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration_menu"
236
+ # verify the required parameter 'integrationId' is set
237
+ if @api_client.config.client_side_validation && integrationId.nil?
238
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.delete_integration_menu"
239
239
  end
240
240
  # resource path
241
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
241
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
242
242
 
243
243
  # query parameters
244
244
  query_params = {}
@@ -270,35 +270,35 @@ module SmoochApi
270
270
 
271
271
  #
272
272
  # Get the specified integration.
273
- # @param app_id Identifies the app.
274
- # @param integration_id Identifies the integration.
273
+ # @param appId Identifies the app.
274
+ # @param integrationId Identifies the integration.
275
275
  # @param [Hash] opts the optional parameters
276
276
  # @return [IntegrationResponse]
277
- def get_integration(app_id, integration_id, opts = {})
278
- data, _status_code, _headers = get_integration_with_http_info(app_id, integration_id, opts)
277
+ def get_integration(appId, integrationId, opts = {})
278
+ data, _status_code, _headers = get_integration_with_http_info(appId, integrationId, opts)
279
279
  return data
280
280
  end
281
281
 
282
282
  #
283
283
  # Get the specified integration.
284
- # @param app_id Identifies the app.
285
- # @param integration_id Identifies the integration.
284
+ # @param appId Identifies the app.
285
+ # @param integrationId Identifies the integration.
286
286
  # @param [Hash] opts the optional parameters
287
287
  # @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
288
- def get_integration_with_http_info(app_id, integration_id, opts = {})
288
+ def get_integration_with_http_info(appId, integrationId, opts = {})
289
289
  if @api_client.config.debugging
290
290
  @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration ..."
291
291
  end
292
- # verify the required parameter 'app_id' is set
293
- if @api_client.config.client_side_validation && app_id.nil?
294
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration"
292
+ # verify the required parameter 'appId' is set
293
+ if @api_client.config.client_side_validation && appId.nil?
294
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration"
295
295
  end
296
- # verify the required parameter 'integration_id' is set
297
- if @api_client.config.client_side_validation && integration_id.nil?
298
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration"
296
+ # verify the required parameter 'integrationId' is set
297
+ if @api_client.config.client_side_validation && integrationId.nil?
298
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration"
299
299
  end
300
300
  # resource path
301
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
301
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
302
302
 
303
303
  # query parameters
304
304
  query_params = {}
@@ -331,35 +331,35 @@ module SmoochApi
331
331
 
332
332
  #
333
333
  # Get the specified integration's menu.
334
- # @param app_id Identifies the app.
335
- # @param integration_id Identifies the integration.
334
+ # @param appId Identifies the app.
335
+ # @param integrationId Identifies the integration.
336
336
  # @param [Hash] opts the optional parameters
337
337
  # @return [MenuResponse]
338
- def get_integration_menu(app_id, integration_id, opts = {})
339
- data, _status_code, _headers = get_integration_menu_with_http_info(app_id, integration_id, opts)
338
+ def get_integration_menu(appId, integrationId, opts = {})
339
+ data, _status_code, _headers = get_integration_menu_with_http_info(appId, integrationId, opts)
340
340
  return data
341
341
  end
342
342
 
343
343
  #
344
344
  # Get the specified integration&#39;s menu.
345
- # @param app_id Identifies the app.
346
- # @param integration_id Identifies the integration.
345
+ # @param appId Identifies the app.
346
+ # @param integrationId Identifies the integration.
347
347
  # @param [Hash] opts the optional parameters
348
348
  # @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
349
- def get_integration_menu_with_http_info(app_id, integration_id, opts = {})
349
+ def get_integration_menu_with_http_info(appId, integrationId, opts = {})
350
350
  if @api_client.config.debugging
351
351
  @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_menu ..."
352
352
  end
353
- # verify the required parameter 'app_id' is set
354
- if @api_client.config.client_side_validation && app_id.nil?
355
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration_menu"
353
+ # verify the required parameter 'appId' is set
354
+ if @api_client.config.client_side_validation && appId.nil?
355
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration_menu"
356
356
  end
357
- # verify the required parameter 'integration_id' is set
358
- if @api_client.config.client_side_validation && integration_id.nil?
359
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration_menu"
357
+ # verify the required parameter 'integrationId' is set
358
+ if @api_client.config.client_side_validation && integrationId.nil?
359
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration_menu"
360
360
  end
361
361
  # resource path
362
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
362
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
363
363
 
364
364
  # query parameters
365
365
  query_params = {}
@@ -392,31 +392,31 @@ module SmoochApi
392
392
 
393
393
  #
394
394
  # List integrations for the specified app.
395
- # @param app_id Identifies the app.
395
+ # @param appId Identifies the app.
396
396
  # @param [Hash] opts the optional parameters
397
397
  # @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*.
398
398
  # @return [ListIntegrationsResponse]
399
- def list_integrations(app_id, opts = {})
400
- data, _status_code, _headers = list_integrations_with_http_info(app_id, opts)
399
+ def list_integrations(appId, opts = {})
400
+ data, _status_code, _headers = list_integrations_with_http_info(appId, opts)
401
401
  return data
402
402
  end
403
403
 
404
404
  #
405
405
  # List integrations for the specified app.
406
- # @param app_id Identifies the app.
406
+ # @param appId Identifies the app.
407
407
  # @param [Hash] opts the optional parameters
408
408
  # @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types&#x3D;*twilio*,*line*.
409
409
  # @return [Array<(ListIntegrationsResponse, Fixnum, Hash)>] ListIntegrationsResponse data, response status code and response headers
410
- def list_integrations_with_http_info(app_id, opts = {})
410
+ def list_integrations_with_http_info(appId, opts = {})
411
411
  if @api_client.config.debugging
412
412
  @api_client.config.logger.debug "Calling API: IntegrationApi.list_integrations ..."
413
413
  end
414
- # verify the required parameter 'app_id' is set
415
- if @api_client.config.client_side_validation && app_id.nil?
416
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.list_integrations"
414
+ # verify the required parameter 'appId' is set
415
+ if @api_client.config.client_side_validation && appId.nil?
416
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.list_integrations"
417
417
  end
418
418
  # resource path
419
- local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s)
419
+ local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
420
420
 
421
421
  # query parameters
422
422
  query_params = {}
@@ -450,41 +450,41 @@ module SmoochApi
450
450
 
451
451
  #
452
452
  # Update the specified integration.
453
- # @param app_id Identifies the app.
454
- # @param integration_id Identifies the integration.
455
- # @param integration_update_body Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
453
+ # @param appId Identifies the app.
454
+ # @param integrationId Identifies the integration.
455
+ # @param integrationUpdateBody Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
456
456
  # @param [Hash] opts the optional parameters
457
457
  # @return [IntegrationResponse]
458
- def update_integration(app_id, integration_id, integration_update_body, opts = {})
459
- data, _status_code, _headers = update_integration_with_http_info(app_id, integration_id, integration_update_body, opts)
458
+ def update_integration(appId, integrationId, integrationUpdateBody, opts = {})
459
+ data, _status_code, _headers = update_integration_with_http_info(appId, integrationId, integrationUpdateBody, opts)
460
460
  return data
461
461
  end
462
462
 
463
463
  #
464
464
  # Update the specified integration.
465
- # @param app_id Identifies the app.
466
- # @param integration_id Identifies the integration.
467
- # @param integration_update_body Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
465
+ # @param appId Identifies the app.
466
+ # @param integrationId Identifies the integration.
467
+ # @param integrationUpdateBody Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
468
468
  # @param [Hash] opts the optional parameters
469
469
  # @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
470
- def update_integration_with_http_info(app_id, integration_id, integration_update_body, opts = {})
470
+ def update_integration_with_http_info(appId, integrationId, integrationUpdateBody, opts = {})
471
471
  if @api_client.config.debugging
472
472
  @api_client.config.logger.debug "Calling API: IntegrationApi.update_integration ..."
473
473
  end
474
- # verify the required parameter 'app_id' is set
475
- if @api_client.config.client_side_validation && app_id.nil?
476
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration"
474
+ # verify the required parameter 'appId' is set
475
+ if @api_client.config.client_side_validation && appId.nil?
476
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration"
477
477
  end
478
- # verify the required parameter 'integration_id' is set
479
- if @api_client.config.client_side_validation && integration_id.nil?
480
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration"
478
+ # verify the required parameter 'integrationId' is set
479
+ if @api_client.config.client_side_validation && integrationId.nil?
480
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration"
481
481
  end
482
- # verify the required parameter 'integration_update_body' is set
483
- if @api_client.config.client_side_validation && integration_update_body.nil?
484
- fail ArgumentError, "Missing the required parameter 'integration_update_body' when calling IntegrationApi.update_integration"
482
+ # verify the required parameter 'integrationUpdateBody' is set
483
+ if @api_client.config.client_side_validation && integrationUpdateBody.nil?
484
+ fail ArgumentError, "Missing the required parameter 'integrationUpdateBody' when calling IntegrationApi.update_integration"
485
485
  end
486
486
  # resource path
487
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
487
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
488
488
 
489
489
  # query parameters
490
490
  query_params = {}
@@ -500,7 +500,7 @@ module SmoochApi
500
500
  form_params = {}
501
501
 
502
502
  # http body (model)
503
- post_body = @api_client.object_to_http_body(integration_update_body)
503
+ post_body = @api_client.object_to_http_body(integrationUpdateBody)
504
504
  auth_names = ['jwt']
505
505
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
506
506
  :header_params => header_params,
@@ -517,41 +517,41 @@ module SmoochApi
517
517
 
518
518
  #
519
519
  # Update the specified integration’s menu.
520
- # @param app_id Identifies the app.
521
- # @param integration_id Identifies the integration.
522
- # @param menu_update_body Body for a updateMenu request.
520
+ # @param appId Identifies the app.
521
+ # @param integrationId Identifies the integration.
522
+ # @param menuUpdateBody Body for a updateMenu request.
523
523
  # @param [Hash] opts the optional parameters
524
524
  # @return [MenuResponse]
525
- def update_integration_menu(app_id, integration_id, menu_update_body, opts = {})
526
- data, _status_code, _headers = update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts)
525
+ def update_integration_menu(appId, integrationId, menuUpdateBody, opts = {})
526
+ data, _status_code, _headers = update_integration_menu_with_http_info(appId, integrationId, menuUpdateBody, opts)
527
527
  return data
528
528
  end
529
529
 
530
530
  #
531
531
  # Update the specified integration’s menu.
532
- # @param app_id Identifies the app.
533
- # @param integration_id Identifies the integration.
534
- # @param menu_update_body Body for a updateMenu request.
532
+ # @param appId Identifies the app.
533
+ # @param integrationId Identifies the integration.
534
+ # @param menuUpdateBody Body for a updateMenu request.
535
535
  # @param [Hash] opts the optional parameters
536
536
  # @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
537
- def update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts = {})
537
+ def update_integration_menu_with_http_info(appId, integrationId, menuUpdateBody, opts = {})
538
538
  if @api_client.config.debugging
539
539
  @api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_menu ..."
540
540
  end
541
- # verify the required parameter 'app_id' is set
542
- if @api_client.config.client_side_validation && app_id.nil?
543
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_menu"
541
+ # verify the required parameter 'appId' is set
542
+ if @api_client.config.client_side_validation && appId.nil?
543
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration_menu"
544
544
  end
545
- # verify the required parameter 'integration_id' is set
546
- if @api_client.config.client_side_validation && integration_id.nil?
547
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_menu"
545
+ # verify the required parameter 'integrationId' is set
546
+ if @api_client.config.client_side_validation && integrationId.nil?
547
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration_menu"
548
548
  end
549
- # verify the required parameter 'menu_update_body' is set
550
- if @api_client.config.client_side_validation && menu_update_body.nil?
551
- fail ArgumentError, "Missing the required parameter 'menu_update_body' when calling IntegrationApi.update_integration_menu"
549
+ # verify the required parameter 'menuUpdateBody' is set
550
+ if @api_client.config.client_side_validation && menuUpdateBody.nil?
551
+ fail ArgumentError, "Missing the required parameter 'menuUpdateBody' when calling IntegrationApi.update_integration_menu"
552
552
  end
553
553
  # resource path
554
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
554
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
555
555
 
556
556
  # query parameters
557
557
  query_params = {}
@@ -567,7 +567,7 @@ module SmoochApi
567
567
  form_params = {}
568
568
 
569
569
  # http body (model)
570
- post_body = @api_client.object_to_http_body(menu_update_body)
570
+ post_body = @api_client.object_to_http_body(menuUpdateBody)
571
571
  auth_names = ['jwt']
572
572
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
573
573
  :header_params => header_params,
@@ -584,41 +584,41 @@ module SmoochApi
584
584
 
585
585
  #
586
586
  # Update the specified integration’s profile.
587
- # @param app_id Identifies the app.
588
- # @param integration_id Identifies the integration.
589
- # @param integration_profile_body Body for a profileUpdate request.
587
+ # @param appId Identifies the app.
588
+ # @param integrationId Identifies the integration.
589
+ # @param integrationProfileBody Body for a profileUpdate request.
590
590
  # @param [Hash] opts the optional parameters
591
591
  # @return [nil]
592
- def update_integration_profile(app_id, integration_id, integration_profile_body, opts = {})
593
- update_integration_profile_with_http_info(app_id, integration_id, integration_profile_body, opts)
592
+ def update_integration_profile(appId, integrationId, integrationProfileBody, opts = {})
593
+ update_integration_profile_with_http_info(appId, integrationId, integrationProfileBody, opts)
594
594
  return nil
595
595
  end
596
596
 
597
597
  #
598
598
  # Update the specified integration’s profile.
599
- # @param app_id Identifies the app.
600
- # @param integration_id Identifies the integration.
601
- # @param integration_profile_body Body for a profileUpdate request.
599
+ # @param appId Identifies the app.
600
+ # @param integrationId Identifies the integration.
601
+ # @param integrationProfileBody Body for a profileUpdate request.
602
602
  # @param [Hash] opts the optional parameters
603
603
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
604
- def update_integration_profile_with_http_info(app_id, integration_id, integration_profile_body, opts = {})
604
+ def update_integration_profile_with_http_info(appId, integrationId, integrationProfileBody, opts = {})
605
605
  if @api_client.config.debugging
606
606
  @api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_profile ..."
607
607
  end
608
- # verify the required parameter 'app_id' is set
609
- if @api_client.config.client_side_validation && app_id.nil?
610
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_profile"
608
+ # verify the required parameter 'appId' is set
609
+ if @api_client.config.client_side_validation && appId.nil?
610
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration_profile"
611
611
  end
612
- # verify the required parameter 'integration_id' is set
613
- if @api_client.config.client_side_validation && integration_id.nil?
614
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_profile"
612
+ # verify the required parameter 'integrationId' is set
613
+ if @api_client.config.client_side_validation && integrationId.nil?
614
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration_profile"
615
615
  end
616
- # verify the required parameter 'integration_profile_body' is set
617
- if @api_client.config.client_side_validation && integration_profile_body.nil?
618
- fail ArgumentError, "Missing the required parameter 'integration_profile_body' when calling IntegrationApi.update_integration_profile"
616
+ # verify the required parameter 'integrationProfileBody' is set
617
+ if @api_client.config.client_side_validation && integrationProfileBody.nil?
618
+ fail ArgumentError, "Missing the required parameter 'integrationProfileBody' when calling IntegrationApi.update_integration_profile"
619
619
  end
620
620
  # resource path
621
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
621
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
622
622
 
623
623
  # query parameters
624
624
  query_params = {}
@@ -634,7 +634,7 @@ module SmoochApi
634
634
  form_params = {}
635
635
 
636
636
  # http body (model)
637
- post_body = @api_client.object_to_http_body(integration_profile_body)
637
+ post_body = @api_client.object_to_http_body(integrationProfileBody)
638
638
  auth_names = ['jwt']
639
639
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
640
640
  :header_params => header_params,