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 a template for the specified app.
25
- # @param app_id Identifies the app.
26
- # @param template_create_body Body for a createTemplate request.
25
+ # @param appId Identifies the app.
26
+ # @param templateCreateBody Body for a createTemplate request.
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [TemplateResponse]
29
- def create_template(app_id, template_create_body, opts = {})
30
- data, _status_code, _headers = create_template_with_http_info(app_id, template_create_body, opts)
29
+ def create_template(appId, templateCreateBody, opts = {})
30
+ data, _status_code, _headers = create_template_with_http_info(appId, templateCreateBody, opts)
31
31
  return data
32
32
  end
33
33
 
34
34
  #
35
35
  # Create a template for the specified app.
36
- # @param app_id Identifies the app.
37
- # @param template_create_body Body for a createTemplate request.
36
+ # @param appId Identifies the app.
37
+ # @param templateCreateBody Body for a createTemplate request.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(TemplateResponse, Fixnum, Hash)>] TemplateResponse data, response status code and response headers
40
- def create_template_with_http_info(app_id, template_create_body, opts = {})
40
+ def create_template_with_http_info(appId, templateCreateBody, opts = {})
41
41
  if @api_client.config.debugging
42
42
  @api_client.config.logger.debug "Calling API: TemplateApi.create_template ..."
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 TemplateApi.create_template"
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 TemplateApi.create_template"
47
47
  end
48
- # verify the required parameter 'template_create_body' is set
49
- if @api_client.config.client_side_validation && template_create_body.nil?
50
- fail ArgumentError, "Missing the required parameter 'template_create_body' when calling TemplateApi.create_template"
48
+ # verify the required parameter 'templateCreateBody' is set
49
+ if @api_client.config.client_side_validation && templateCreateBody.nil?
50
+ fail ArgumentError, "Missing the required parameter 'templateCreateBody' when calling TemplateApi.create_template"
51
51
  end
52
52
  # resource path
53
- local_var_path = "/v1.1/apps/{appId}/templates".sub('{' + 'appId' + '}', app_id.to_s)
53
+ local_var_path = "/v1.1/apps/{appId}/templates".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(template_create_body)
69
+ post_body = @api_client.object_to_http_body(templateCreateBody)
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,35 +83,35 @@ module SmoochApi
83
83
 
84
84
  #
85
85
  # Delete the specified template.
86
- # @param app_id Identifies the app.
87
- # @param template_id Identifies the template.
86
+ # @param appId Identifies the app.
87
+ # @param templateId Identifies the template.
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @return [nil]
90
- def delete_template(app_id, template_id, opts = {})
91
- delete_template_with_http_info(app_id, template_id, opts)
90
+ def delete_template(appId, templateId, opts = {})
91
+ delete_template_with_http_info(appId, templateId, opts)
92
92
  return nil
93
93
  end
94
94
 
95
95
  #
96
96
  # Delete the specified template.
97
- # @param app_id Identifies the app.
98
- # @param template_id Identifies the template.
97
+ # @param appId Identifies the app.
98
+ # @param templateId Identifies the template.
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
101
- def delete_template_with_http_info(app_id, template_id, opts = {})
101
+ def delete_template_with_http_info(appId, templateId, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug "Calling API: TemplateApi.delete_template ..."
104
104
  end
105
- # verify the required parameter 'app_id' is set
106
- if @api_client.config.client_side_validation && app_id.nil?
107
- fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.delete_template"
105
+ # verify the required parameter 'appId' is set
106
+ if @api_client.config.client_side_validation && appId.nil?
107
+ fail ArgumentError, "Missing the required parameter 'appId' when calling TemplateApi.delete_template"
108
108
  end
109
- # verify the required parameter 'template_id' is set
110
- if @api_client.config.client_side_validation && template_id.nil?
111
- fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.delete_template"
109
+ # verify the required parameter 'templateId' is set
110
+ if @api_client.config.client_side_validation && templateId.nil?
111
+ fail ArgumentError, "Missing the required parameter 'templateId' when calling TemplateApi.delete_template"
112
112
  end
113
113
  # resource path
114
- local_var_path = "/v1.1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
114
+ local_var_path = "/v1.1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'templateId' + '}', templateId.to_s)
115
115
 
116
116
  # query parameters
117
117
  query_params = {}
@@ -143,35 +143,35 @@ module SmoochApi
143
143
 
144
144
  #
145
145
  # Get the specified template.
146
- # @param app_id Identifies the app.
147
- # @param template_id Identifies the template.
146
+ # @param appId Identifies the app.
147
+ # @param templateId Identifies the template.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @return [TemplateResponse]
150
- def get_template(app_id, template_id, opts = {})
151
- data, _status_code, _headers = get_template_with_http_info(app_id, template_id, opts)
150
+ def get_template(appId, templateId, opts = {})
151
+ data, _status_code, _headers = get_template_with_http_info(appId, templateId, opts)
152
152
  return data
153
153
  end
154
154
 
155
155
  #
156
156
  # Get the specified template.
157
- # @param app_id Identifies the app.
158
- # @param template_id Identifies the template.
157
+ # @param appId Identifies the app.
158
+ # @param templateId Identifies the template.
159
159
  # @param [Hash] opts the optional parameters
160
160
  # @return [Array<(TemplateResponse, Fixnum, Hash)>] TemplateResponse data, response status code and response headers
161
- def get_template_with_http_info(app_id, template_id, opts = {})
161
+ def get_template_with_http_info(appId, templateId, opts = {})
162
162
  if @api_client.config.debugging
163
163
  @api_client.config.logger.debug "Calling API: TemplateApi.get_template ..."
164
164
  end
165
- # verify the required parameter 'app_id' is set
166
- if @api_client.config.client_side_validation && app_id.nil?
167
- fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.get_template"
165
+ # verify the required parameter 'appId' is set
166
+ if @api_client.config.client_side_validation && appId.nil?
167
+ fail ArgumentError, "Missing the required parameter 'appId' when calling TemplateApi.get_template"
168
168
  end
169
- # verify the required parameter 'template_id' is set
170
- if @api_client.config.client_side_validation && template_id.nil?
171
- fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.get_template"
169
+ # verify the required parameter 'templateId' is set
170
+ if @api_client.config.client_side_validation && templateId.nil?
171
+ fail ArgumentError, "Missing the required parameter 'templateId' when calling TemplateApi.get_template"
172
172
  end
173
173
  # resource path
174
- local_var_path = "/v1.1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
174
+ local_var_path = "/v1.1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'templateId' + '}', templateId.to_s)
175
175
 
176
176
  # query parameters
177
177
  query_params = {}
@@ -204,33 +204,33 @@ module SmoochApi
204
204
 
205
205
  #
206
206
  # List templates for the specified app.
207
- # @param app_id Identifies the app.
207
+ # @param appId Identifies the app.
208
208
  # @param [Hash] opts the optional parameters
209
209
  # @option opts [Integer] :limit The number of records to return. (default to 25)
210
210
  # @option opts [Integer] :offset The number of initial records to skip before picking records to return. (default to 0)
211
211
  # @return [ListTemplatesResponse]
212
- def list_templates(app_id, opts = {})
213
- data, _status_code, _headers = list_templates_with_http_info(app_id, opts)
212
+ def list_templates(appId, opts = {})
213
+ data, _status_code, _headers = list_templates_with_http_info(appId, opts)
214
214
  return data
215
215
  end
216
216
 
217
217
  #
218
218
  # List templates for the specified app.
219
- # @param app_id Identifies the app.
219
+ # @param appId Identifies the app.
220
220
  # @param [Hash] opts the optional parameters
221
221
  # @option opts [Integer] :limit The number of records to return.
222
222
  # @option opts [Integer] :offset The number of initial records to skip before picking records to return.
223
223
  # @return [Array<(ListTemplatesResponse, Fixnum, Hash)>] ListTemplatesResponse data, response status code and response headers
224
- def list_templates_with_http_info(app_id, opts = {})
224
+ def list_templates_with_http_info(appId, opts = {})
225
225
  if @api_client.config.debugging
226
226
  @api_client.config.logger.debug "Calling API: TemplateApi.list_templates ..."
227
227
  end
228
- # verify the required parameter 'app_id' is set
229
- if @api_client.config.client_side_validation && app_id.nil?
230
- fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.list_templates"
228
+ # verify the required parameter 'appId' is set
229
+ if @api_client.config.client_side_validation && appId.nil?
230
+ fail ArgumentError, "Missing the required parameter 'appId' when calling TemplateApi.list_templates"
231
231
  end
232
232
  # resource path
233
- local_var_path = "/v1.1/apps/{appId}/templates".sub('{' + 'appId' + '}', app_id.to_s)
233
+ local_var_path = "/v1.1/apps/{appId}/templates".sub('{' + 'appId' + '}', appId.to_s)
234
234
 
235
235
  # query parameters
236
236
  query_params = {}
@@ -265,41 +265,41 @@ module SmoochApi
265
265
 
266
266
  #
267
267
  # Update the specified template.
268
- # @param app_id Identifies the app.
269
- # @param template_id Identifies the template.
270
- # @param template_update_body Body for an updateTemplate request.
268
+ # @param appId Identifies the app.
269
+ # @param templateId Identifies the template.
270
+ # @param templateUpdateBody Body for an updateTemplate request.
271
271
  # @param [Hash] opts the optional parameters
272
272
  # @return [TemplateResponse]
273
- def update_template(app_id, template_id, template_update_body, opts = {})
274
- data, _status_code, _headers = update_template_with_http_info(app_id, template_id, template_update_body, opts)
273
+ def update_template(appId, templateId, templateUpdateBody, opts = {})
274
+ data, _status_code, _headers = update_template_with_http_info(appId, templateId, templateUpdateBody, opts)
275
275
  return data
276
276
  end
277
277
 
278
278
  #
279
279
  # Update the specified template.
280
- # @param app_id Identifies the app.
281
- # @param template_id Identifies the template.
282
- # @param template_update_body Body for an updateTemplate request.
280
+ # @param appId Identifies the app.
281
+ # @param templateId Identifies the template.
282
+ # @param templateUpdateBody Body for an updateTemplate request.
283
283
  # @param [Hash] opts the optional parameters
284
284
  # @return [Array<(TemplateResponse, Fixnum, Hash)>] TemplateResponse data, response status code and response headers
285
- def update_template_with_http_info(app_id, template_id, template_update_body, opts = {})
285
+ def update_template_with_http_info(appId, templateId, templateUpdateBody, opts = {})
286
286
  if @api_client.config.debugging
287
287
  @api_client.config.logger.debug "Calling API: TemplateApi.update_template ..."
288
288
  end
289
- # verify the required parameter 'app_id' is set
290
- if @api_client.config.client_side_validation && app_id.nil?
291
- fail ArgumentError, "Missing the required parameter 'app_id' when calling TemplateApi.update_template"
289
+ # verify the required parameter 'appId' is set
290
+ if @api_client.config.client_side_validation && appId.nil?
291
+ fail ArgumentError, "Missing the required parameter 'appId' when calling TemplateApi.update_template"
292
292
  end
293
- # verify the required parameter 'template_id' is set
294
- if @api_client.config.client_side_validation && template_id.nil?
295
- fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateApi.update_template"
293
+ # verify the required parameter 'templateId' is set
294
+ if @api_client.config.client_side_validation && templateId.nil?
295
+ fail ArgumentError, "Missing the required parameter 'templateId' when calling TemplateApi.update_template"
296
296
  end
297
- # verify the required parameter 'template_update_body' is set
298
- if @api_client.config.client_side_validation && template_update_body.nil?
299
- fail ArgumentError, "Missing the required parameter 'template_update_body' when calling TemplateApi.update_template"
297
+ # verify the required parameter 'templateUpdateBody' is set
298
+ if @api_client.config.client_side_validation && templateUpdateBody.nil?
299
+ fail ArgumentError, "Missing the required parameter 'templateUpdateBody' when calling TemplateApi.update_template"
300
300
  end
301
301
  # resource path
302
- local_var_path = "/v1.1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'templateId' + '}', template_id.to_s)
302
+ local_var_path = "/v1.1/apps/{appId}/templates/{templateId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'templateId' + '}', templateId.to_s)
303
303
 
304
304
  # query parameters
305
305
  query_params = {}
@@ -315,7 +315,7 @@ module SmoochApi
315
315
  form_params = {}
316
316
 
317
317
  # http body (model)
318
- post_body = @api_client.object_to_http_body(template_update_body)
318
+ post_body = @api_client.object_to_http_body(templateUpdateBody)
319
319
  auth_names = ['jwt']
320
320
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
321
321
  :header_params => header_params,
@@ -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 a webhook for the specified app.
25
- # @param app_id Identifies the app.
26
- # @param webhook_create_body Body for a createWebhook request.
25
+ # @param appId Identifies the app.
26
+ # @param webhookCreateBody Body for a createWebhook request.
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [WebhookResponse]
29
- def create_webhook(app_id, webhook_create_body, opts = {})
30
- data, _status_code, _headers = create_webhook_with_http_info(app_id, webhook_create_body, opts)
29
+ def create_webhook(appId, webhookCreateBody, opts = {})
30
+ data, _status_code, _headers = create_webhook_with_http_info(appId, webhookCreateBody, opts)
31
31
  return data
32
32
  end
33
33
 
34
34
  #
35
35
  # Create a webhook for the specified app.
36
- # @param app_id Identifies the app.
37
- # @param webhook_create_body Body for a createWebhook request.
36
+ # @param appId Identifies the app.
37
+ # @param webhookCreateBody Body for a createWebhook request.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(WebhookResponse, Fixnum, Hash)>] WebhookResponse data, response status code and response headers
40
- def create_webhook_with_http_info(app_id, webhook_create_body, opts = {})
40
+ def create_webhook_with_http_info(appId, webhookCreateBody, opts = {})
41
41
  if @api_client.config.debugging
42
42
  @api_client.config.logger.debug "Calling API: WebhookApi.create_webhook ..."
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 WebhookApi.create_webhook"
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 WebhookApi.create_webhook"
47
47
  end
48
- # verify the required parameter 'webhook_create_body' is set
49
- if @api_client.config.client_side_validation && webhook_create_body.nil?
50
- fail ArgumentError, "Missing the required parameter 'webhook_create_body' when calling WebhookApi.create_webhook"
48
+ # verify the required parameter 'webhookCreateBody' is set
49
+ if @api_client.config.client_side_validation && webhookCreateBody.nil?
50
+ fail ArgumentError, "Missing the required parameter 'webhookCreateBody' when calling WebhookApi.create_webhook"
51
51
  end
52
52
  # resource path
53
- local_var_path = "/v1.1/apps/{appId}/webhooks".sub('{' + 'appId' + '}', app_id.to_s)
53
+ local_var_path = "/v1.1/apps/{appId}/webhooks".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(webhook_create_body)
69
+ post_body = @api_client.object_to_http_body(webhookCreateBody)
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,35 +83,35 @@ module SmoochApi
83
83
 
84
84
  #
85
85
  # Delete the specified webhook.
86
- # @param app_id Identifies the app.
87
- # @param webhook_id Identifies the webhook.
86
+ # @param appId Identifies the app.
87
+ # @param webhookId Identifies the webhook.
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @return [nil]
90
- def delete_webhook(app_id, webhook_id, opts = {})
91
- delete_webhook_with_http_info(app_id, webhook_id, opts)
90
+ def delete_webhook(appId, webhookId, opts = {})
91
+ delete_webhook_with_http_info(appId, webhookId, opts)
92
92
  return nil
93
93
  end
94
94
 
95
95
  #
96
96
  # Delete the specified webhook.
97
- # @param app_id Identifies the app.
98
- # @param webhook_id Identifies the webhook.
97
+ # @param appId Identifies the app.
98
+ # @param webhookId Identifies the webhook.
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
101
- def delete_webhook_with_http_info(app_id, webhook_id, opts = {})
101
+ def delete_webhook_with_http_info(appId, webhookId, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug "Calling API: WebhookApi.delete_webhook ..."
104
104
  end
105
- # verify the required parameter 'app_id' is set
106
- if @api_client.config.client_side_validation && app_id.nil?
107
- fail ArgumentError, "Missing the required parameter 'app_id' when calling WebhookApi.delete_webhook"
105
+ # verify the required parameter 'appId' is set
106
+ if @api_client.config.client_side_validation && appId.nil?
107
+ fail ArgumentError, "Missing the required parameter 'appId' when calling WebhookApi.delete_webhook"
108
108
  end
109
- # verify the required parameter 'webhook_id' is set
110
- if @api_client.config.client_side_validation && webhook_id.nil?
111
- fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookApi.delete_webhook"
109
+ # verify the required parameter 'webhookId' is set
110
+ if @api_client.config.client_side_validation && webhookId.nil?
111
+ fail ArgumentError, "Missing the required parameter 'webhookId' when calling WebhookApi.delete_webhook"
112
112
  end
113
113
  # resource path
114
- local_var_path = "/v1.1/apps/{appId}/webhooks/{webhookId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'webhookId' + '}', webhook_id.to_s)
114
+ local_var_path = "/v1.1/apps/{appId}/webhooks/{webhookId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'webhookId' + '}', webhookId.to_s)
115
115
 
116
116
  # query parameters
117
117
  query_params = {}
@@ -143,35 +143,35 @@ module SmoochApi
143
143
 
144
144
  #
145
145
  # Get the specified webhook.
146
- # @param app_id Identifies the app.
147
- # @param webhook_id Identifies the webhook.
146
+ # @param appId Identifies the app.
147
+ # @param webhookId Identifies the webhook.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @return [WebhookResponse]
150
- def get_webhook(app_id, webhook_id, opts = {})
151
- data, _status_code, _headers = get_webhook_with_http_info(app_id, webhook_id, opts)
150
+ def get_webhook(appId, webhookId, opts = {})
151
+ data, _status_code, _headers = get_webhook_with_http_info(appId, webhookId, opts)
152
152
  return data
153
153
  end
154
154
 
155
155
  #
156
156
  # Get the specified webhook.
157
- # @param app_id Identifies the app.
158
- # @param webhook_id Identifies the webhook.
157
+ # @param appId Identifies the app.
158
+ # @param webhookId Identifies the webhook.
159
159
  # @param [Hash] opts the optional parameters
160
160
  # @return [Array<(WebhookResponse, Fixnum, Hash)>] WebhookResponse data, response status code and response headers
161
- def get_webhook_with_http_info(app_id, webhook_id, opts = {})
161
+ def get_webhook_with_http_info(appId, webhookId, opts = {})
162
162
  if @api_client.config.debugging
163
163
  @api_client.config.logger.debug "Calling API: WebhookApi.get_webhook ..."
164
164
  end
165
- # verify the required parameter 'app_id' is set
166
- if @api_client.config.client_side_validation && app_id.nil?
167
- fail ArgumentError, "Missing the required parameter 'app_id' when calling WebhookApi.get_webhook"
165
+ # verify the required parameter 'appId' is set
166
+ if @api_client.config.client_side_validation && appId.nil?
167
+ fail ArgumentError, "Missing the required parameter 'appId' when calling WebhookApi.get_webhook"
168
168
  end
169
- # verify the required parameter 'webhook_id' is set
170
- if @api_client.config.client_side_validation && webhook_id.nil?
171
- fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookApi.get_webhook"
169
+ # verify the required parameter 'webhookId' is set
170
+ if @api_client.config.client_side_validation && webhookId.nil?
171
+ fail ArgumentError, "Missing the required parameter 'webhookId' when calling WebhookApi.get_webhook"
172
172
  end
173
173
  # resource path
174
- local_var_path = "/v1.1/apps/{appId}/webhooks/{webhookId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'webhookId' + '}', webhook_id.to_s)
174
+ local_var_path = "/v1.1/apps/{appId}/webhooks/{webhookId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'webhookId' + '}', webhookId.to_s)
175
175
 
176
176
  # query parameters
177
177
  query_params = {}
@@ -204,29 +204,29 @@ module SmoochApi
204
204
 
205
205
  #
206
206
  # List webhooks for the specified app.
207
- # @param app_id Identifies the app.
207
+ # @param appId Identifies the app.
208
208
  # @param [Hash] opts the optional parameters
209
209
  # @return [ListWebhooksResponse]
210
- def list_webhooks(app_id, opts = {})
211
- data, _status_code, _headers = list_webhooks_with_http_info(app_id, opts)
210
+ def list_webhooks(appId, opts = {})
211
+ data, _status_code, _headers = list_webhooks_with_http_info(appId, opts)
212
212
  return data
213
213
  end
214
214
 
215
215
  #
216
216
  # List webhooks for the specified app.
217
- # @param app_id Identifies the app.
217
+ # @param appId Identifies the app.
218
218
  # @param [Hash] opts the optional parameters
219
219
  # @return [Array<(ListWebhooksResponse, Fixnum, Hash)>] ListWebhooksResponse data, response status code and response headers
220
- def list_webhooks_with_http_info(app_id, opts = {})
220
+ def list_webhooks_with_http_info(appId, opts = {})
221
221
  if @api_client.config.debugging
222
222
  @api_client.config.logger.debug "Calling API: WebhookApi.list_webhooks ..."
223
223
  end
224
- # verify the required parameter 'app_id' is set
225
- if @api_client.config.client_side_validation && app_id.nil?
226
- fail ArgumentError, "Missing the required parameter 'app_id' when calling WebhookApi.list_webhooks"
224
+ # verify the required parameter 'appId' is set
225
+ if @api_client.config.client_side_validation && appId.nil?
226
+ fail ArgumentError, "Missing the required parameter 'appId' when calling WebhookApi.list_webhooks"
227
227
  end
228
228
  # resource path
229
- local_var_path = "/v1.1/apps/{appId}/webhooks".sub('{' + 'appId' + '}', app_id.to_s)
229
+ local_var_path = "/v1.1/apps/{appId}/webhooks".sub('{' + 'appId' + '}', appId.to_s)
230
230
 
231
231
  # query parameters
232
232
  query_params = {}
@@ -259,41 +259,41 @@ module SmoochApi
259
259
 
260
260
  #
261
261
  # Update the specified webhook.
262
- # @param app_id Identifies the app.
263
- # @param webhook_id Identifies the webhook.
264
- # @param webhook_update_body Body for an updateWebhook request.
262
+ # @param appId Identifies the app.
263
+ # @param webhookId Identifies the webhook.
264
+ # @param webhookUpdateBody Body for an updateWebhook request.
265
265
  # @param [Hash] opts the optional parameters
266
266
  # @return [WebhookResponse]
267
- def update_webhook(app_id, webhook_id, webhook_update_body, opts = {})
268
- data, _status_code, _headers = update_webhook_with_http_info(app_id, webhook_id, webhook_update_body, opts)
267
+ def update_webhook(appId, webhookId, webhookUpdateBody, opts = {})
268
+ data, _status_code, _headers = update_webhook_with_http_info(appId, webhookId, webhookUpdateBody, opts)
269
269
  return data
270
270
  end
271
271
 
272
272
  #
273
273
  # Update the specified webhook.
274
- # @param app_id Identifies the app.
275
- # @param webhook_id Identifies the webhook.
276
- # @param webhook_update_body Body for an updateWebhook request.
274
+ # @param appId Identifies the app.
275
+ # @param webhookId Identifies the webhook.
276
+ # @param webhookUpdateBody Body for an updateWebhook request.
277
277
  # @param [Hash] opts the optional parameters
278
278
  # @return [Array<(WebhookResponse, Fixnum, Hash)>] WebhookResponse data, response status code and response headers
279
- def update_webhook_with_http_info(app_id, webhook_id, webhook_update_body, opts = {})
279
+ def update_webhook_with_http_info(appId, webhookId, webhookUpdateBody, opts = {})
280
280
  if @api_client.config.debugging
281
281
  @api_client.config.logger.debug "Calling API: WebhookApi.update_webhook ..."
282
282
  end
283
- # verify the required parameter 'app_id' is set
284
- if @api_client.config.client_side_validation && app_id.nil?
285
- fail ArgumentError, "Missing the required parameter 'app_id' when calling WebhookApi.update_webhook"
283
+ # verify the required parameter 'appId' is set
284
+ if @api_client.config.client_side_validation && appId.nil?
285
+ fail ArgumentError, "Missing the required parameter 'appId' when calling WebhookApi.update_webhook"
286
286
  end
287
- # verify the required parameter 'webhook_id' is set
288
- if @api_client.config.client_side_validation && webhook_id.nil?
289
- fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookApi.update_webhook"
287
+ # verify the required parameter 'webhookId' is set
288
+ if @api_client.config.client_side_validation && webhookId.nil?
289
+ fail ArgumentError, "Missing the required parameter 'webhookId' when calling WebhookApi.update_webhook"
290
290
  end
291
- # verify the required parameter 'webhook_update_body' is set
292
- if @api_client.config.client_side_validation && webhook_update_body.nil?
293
- fail ArgumentError, "Missing the required parameter 'webhook_update_body' when calling WebhookApi.update_webhook"
291
+ # verify the required parameter 'webhookUpdateBody' is set
292
+ if @api_client.config.client_side_validation && webhookUpdateBody.nil?
293
+ fail ArgumentError, "Missing the required parameter 'webhookUpdateBody' when calling WebhookApi.update_webhook"
294
294
  end
295
295
  # resource path
296
- local_var_path = "/v1.1/apps/{appId}/webhooks/{webhookId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'webhookId' + '}', webhook_id.to_s)
296
+ local_var_path = "/v1.1/apps/{appId}/webhooks/{webhookId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'webhookId' + '}', webhookId.to_s)
297
297
 
298
298
  # query parameters
299
299
  query_params = {}
@@ -309,7 +309,7 @@ module SmoochApi
309
309
  form_params = {}
310
310
 
311
311
  # http body (model)
312
- post_body = @api_client.object_to_http_body(webhook_update_body)
312
+ post_body = @api_client.object_to_http_body(webhookUpdateBody)
313
313
  auth_names = ['jwt']
314
314
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
315
315
  :header_params => header_params,