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
  # Remove an attachment uploaded to Smooch.
25
- # @param app_id Identifies the app.
26
- # @param attachment_remove_body Body for a removeAttachment request.
25
+ # @param appId Identifies the app.
26
+ # @param attachmentRemoveBody Body for a removeAttachment request.
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [nil]
29
- def remove_attachment(app_id, attachment_remove_body, opts = {})
30
- remove_attachment_with_http_info(app_id, attachment_remove_body, opts)
29
+ def remove_attachment(appId, attachmentRemoveBody, opts = {})
30
+ remove_attachment_with_http_info(appId, attachmentRemoveBody, opts)
31
31
  return nil
32
32
  end
33
33
 
34
34
  #
35
35
  # Remove an attachment uploaded to Smooch.
36
- # @param app_id Identifies the app.
37
- # @param attachment_remove_body Body for a removeAttachment request.
36
+ # @param appId Identifies the app.
37
+ # @param attachmentRemoveBody Body for a removeAttachment request.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
- def remove_attachment_with_http_info(app_id, attachment_remove_body, opts = {})
40
+ def remove_attachment_with_http_info(appId, attachmentRemoveBody, opts = {})
41
41
  if @api_client.config.debugging
42
42
  @api_client.config.logger.debug "Calling API: AttachmentsApi.remove_attachment ..."
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 AttachmentsApi.remove_attachment"
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 AttachmentsApi.remove_attachment"
47
47
  end
48
- # verify the required parameter 'attachment_remove_body' is set
49
- if @api_client.config.client_side_validation && attachment_remove_body.nil?
50
- fail ArgumentError, "Missing the required parameter 'attachment_remove_body' when calling AttachmentsApi.remove_attachment"
48
+ # verify the required parameter 'attachmentRemoveBody' is set
49
+ if @api_client.config.client_side_validation && attachmentRemoveBody.nil?
50
+ fail ArgumentError, "Missing the required parameter 'attachmentRemoveBody' when calling AttachmentsApi.remove_attachment"
51
51
  end
52
52
  # resource path
53
- local_var_path = "/v1.1/apps/{appId}/attachments/remove".sub('{' + 'appId' + '}', app_id.to_s)
53
+ local_var_path = "/v1.1/apps/{appId}/attachments/remove".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(attachment_remove_body)
69
+ post_body = @api_client.object_to_http_body(attachmentRemoveBody)
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,
@@ -82,36 +82,36 @@ module SmoochApi
82
82
 
83
83
  #
84
84
  # Upload an attachment to Smooch to use in future messages.
85
- # @param app_id Identifies the app.
85
+ # @param appId Identifies the app.
86
86
  # @param source File to be uploaded
87
87
  # @param access Access level for the resulting file
88
88
  # @param [Hash] opts the optional parameters
89
- # @option opts [String] :_for The intended container for the attachment
90
- # @option opts [String] :app_user_id The appUserId of the user that will receive the attachment Used in attachments for messages
91
- # @option opts [String] :user_id The userId of the user that will receive the attachment Used in attachments for messages
89
+ # @option opts [String] :for The intended container for the attachment
90
+ # @option opts [String] :appUserId The appUserId of the user that will receive the attachment Used in attachments for messages
91
+ # @option opts [String] :userId The userId of the user that will receive the attachment Used in attachments for messages
92
92
  # @return [AttachmentResponse]
93
- def upload_attachment(app_id, source, access, opts = {})
94
- data, _status_code, _headers = upload_attachment_with_http_info(app_id, source, access, opts)
93
+ def upload_attachment(appId, source, access, opts = {})
94
+ data, _status_code, _headers = upload_attachment_with_http_info(appId, source, access, opts)
95
95
  return data
96
96
  end
97
97
 
98
98
  #
99
99
  # Upload an attachment to Smooch to use in future messages.
100
- # @param app_id Identifies the app.
100
+ # @param appId Identifies the app.
101
101
  # @param source File to be uploaded
102
102
  # @param access Access level for the resulting file
103
103
  # @param [Hash] opts the optional parameters
104
- # @option opts [String] :_for The intended container for the attachment
105
- # @option opts [String] :app_user_id The appUserId of the user that will receive the attachment Used in attachments for messages
106
- # @option opts [String] :user_id The userId of the user that will receive the attachment Used in attachments for messages
104
+ # @option opts [String] :for The intended container for the attachment
105
+ # @option opts [String] :appUserId The appUserId of the user that will receive the attachment Used in attachments for messages
106
+ # @option opts [String] :userId The userId of the user that will receive the attachment Used in attachments for messages
107
107
  # @return [Array<(AttachmentResponse, Fixnum, Hash)>] AttachmentResponse data, response status code and response headers
108
- def upload_attachment_with_http_info(app_id, source, access, opts = {})
108
+ def upload_attachment_with_http_info(appId, source, access, opts = {})
109
109
  if @api_client.config.debugging
110
110
  @api_client.config.logger.debug "Calling API: AttachmentsApi.upload_attachment ..."
111
111
  end
112
- # verify the required parameter 'app_id' is set
113
- if @api_client.config.client_side_validation && app_id.nil?
114
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AttachmentsApi.upload_attachment"
112
+ # verify the required parameter 'appId' is set
113
+ if @api_client.config.client_side_validation && appId.nil?
114
+ fail ArgumentError, "Missing the required parameter 'appId' when calling AttachmentsApi.upload_attachment"
115
115
  end
116
116
  # verify the required parameter 'source' is set
117
117
  if @api_client.config.client_side_validation && source.nil?
@@ -122,14 +122,14 @@ module SmoochApi
122
122
  fail ArgumentError, "Missing the required parameter 'access' when calling AttachmentsApi.upload_attachment"
123
123
  end
124
124
  # resource path
125
- local_var_path = "/v1.1/apps/{appId}/attachments".sub('{' + 'appId' + '}', app_id.to_s)
125
+ local_var_path = "/v1.1/apps/{appId}/attachments".sub('{' + 'appId' + '}', appId.to_s)
126
126
 
127
127
  # query parameters
128
128
  query_params = {}
129
129
  query_params[:'access'] = access
130
- query_params[:'for'] = opts[:'_for'] if !opts[:'_for'].nil?
131
- query_params[:'appUserId'] = opts[:'app_user_id'] if !opts[:'app_user_id'].nil?
132
- query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
130
+ query_params[:'for'] = opts[:'for'] if !opts[:'for'].nil?
131
+ query_params[:'appUserId'] = opts[:'appUserId'] if !opts[:'appUserId'].nil?
132
+ query_params[:'userId'] = opts[:'userId'] if !opts[:'userId'].nil?
133
133
 
134
134
  # header parameters
135
135
  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,41 +22,41 @@ module SmoochApi
22
22
 
23
23
  #
24
24
  # Deletes a single message.
25
- # @param app_id Identifies the app.
26
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
27
- # @param message_id Identifies the message.
25
+ # @param appId Identifies the app.
26
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
27
+ # @param messageId Identifies the message.
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @return [nil]
30
- def delete_message(app_id, user_id, message_id, opts = {})
31
- delete_message_with_http_info(app_id, user_id, message_id, opts)
30
+ def delete_message(appId, userId, messageId, opts = {})
31
+ delete_message_with_http_info(appId, userId, messageId, opts)
32
32
  return nil
33
33
  end
34
34
 
35
35
  #
36
36
  # Deletes a single message.
37
- # @param app_id Identifies the app.
38
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
39
- # @param message_id Identifies the message.
37
+ # @param appId Identifies the app.
38
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
39
+ # @param messageId Identifies the message.
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
- def delete_message_with_http_info(app_id, user_id, message_id, opts = {})
42
+ def delete_message_with_http_info(appId, userId, messageId, opts = {})
43
43
  if @api_client.config.debugging
44
44
  @api_client.config.logger.debug "Calling API: ConversationApi.delete_message ..."
45
45
  end
46
- # verify the required parameter 'app_id' is set
47
- if @api_client.config.client_side_validation && app_id.nil?
48
- fail ArgumentError, "Missing the required parameter 'app_id' when calling ConversationApi.delete_message"
46
+ # verify the required parameter 'appId' is set
47
+ if @api_client.config.client_side_validation && appId.nil?
48
+ fail ArgumentError, "Missing the required parameter 'appId' when calling ConversationApi.delete_message"
49
49
  end
50
- # verify the required parameter 'user_id' is set
51
- if @api_client.config.client_side_validation && user_id.nil?
52
- fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.delete_message"
50
+ # verify the required parameter 'userId' is set
51
+ if @api_client.config.client_side_validation && userId.nil?
52
+ fail ArgumentError, "Missing the required parameter 'userId' when calling ConversationApi.delete_message"
53
53
  end
54
- # verify the required parameter 'message_id' is set
55
- if @api_client.config.client_side_validation && message_id.nil?
56
- fail ArgumentError, "Missing the required parameter 'message_id' when calling ConversationApi.delete_message"
54
+ # verify the required parameter 'messageId' is set
55
+ if @api_client.config.client_side_validation && messageId.nil?
56
+ fail ArgumentError, "Missing the required parameter 'messageId' when calling ConversationApi.delete_message"
57
57
  end
58
58
  # resource path
59
- local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages/{messageId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s)
59
+ local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages/{messageId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'userId' + '}', userId.to_s).sub('{' + 'messageId' + '}', messageId.to_s)
60
60
 
61
61
  # query parameters
62
62
  query_params = {}
@@ -88,35 +88,35 @@ module SmoochApi
88
88
 
89
89
  #
90
90
  # Clears the message history for a user, permanently deleting all messages, but leaving any connections to Messaging Channels and Business Systems intact. These connections allow for the conversation to continue in the future, while still being associated to the same appUser.
91
- # @param app_id Identifies the app.
92
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
91
+ # @param appId Identifies the app.
92
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [nil]
95
- def delete_messages(app_id, user_id, opts = {})
96
- delete_messages_with_http_info(app_id, user_id, opts)
95
+ def delete_messages(appId, userId, opts = {})
96
+ delete_messages_with_http_info(appId, userId, opts)
97
97
  return nil
98
98
  end
99
99
 
100
100
  #
101
101
  # Clears the message history for a user, permanently deleting all messages, but leaving any connections to Messaging Channels and Business Systems intact. These connections allow for the conversation to continue in the future, while still being associated to the same appUser.
102
- # @param app_id Identifies the app.
103
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
102
+ # @param appId Identifies the app.
103
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
104
104
  # @param [Hash] opts the optional parameters
105
105
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
106
- def delete_messages_with_http_info(app_id, user_id, opts = {})
106
+ def delete_messages_with_http_info(appId, userId, opts = {})
107
107
  if @api_client.config.debugging
108
108
  @api_client.config.logger.debug "Calling API: ConversationApi.delete_messages ..."
109
109
  end
110
- # verify the required parameter 'app_id' is set
111
- if @api_client.config.client_side_validation && app_id.nil?
112
- fail ArgumentError, "Missing the required parameter 'app_id' when calling ConversationApi.delete_messages"
110
+ # verify the required parameter 'appId' is set
111
+ if @api_client.config.client_side_validation && appId.nil?
112
+ fail ArgumentError, "Missing the required parameter 'appId' when calling ConversationApi.delete_messages"
113
113
  end
114
- # verify the required parameter 'user_id' is set
115
- if @api_client.config.client_side_validation && user_id.nil?
116
- fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.delete_messages"
114
+ # verify the required parameter 'userId' is set
115
+ if @api_client.config.client_side_validation && userId.nil?
116
+ fail ArgumentError, "Missing the required parameter 'userId' when calling ConversationApi.delete_messages"
117
117
  end
118
118
  # resource path
119
- local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
119
+ local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'userId' + '}', userId.to_s)
120
120
 
121
121
  # query parameters
122
122
  query_params = {}
@@ -148,39 +148,39 @@ module SmoochApi
148
148
 
149
149
  #
150
150
  # Get the specified app user's messages.
151
- # @param app_id Identifies the app.
152
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
151
+ # @param appId Identifies the app.
152
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
153
153
  # @param [Hash] opts the optional parameters
154
154
  # @option opts [String] :before Timestamp of message. The API will return 100 messages before the specified timestamp (excluding any messages with the provided timestamp).
155
155
  # @option opts [String] :after Timestamp of message. The API will return 100 messages after the specified timestamp (excluding any messages with the provided timestamp).
156
156
  # @return [GetMessagesResponse]
157
- def get_messages(app_id, user_id, opts = {})
158
- data, _status_code, _headers = get_messages_with_http_info(app_id, user_id, opts)
157
+ def get_messages(appId, userId, opts = {})
158
+ data, _status_code, _headers = get_messages_with_http_info(appId, userId, opts)
159
159
  return data
160
160
  end
161
161
 
162
162
  #
163
163
  # Get the specified app user&#39;s messages.
164
- # @param app_id Identifies the app.
165
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
164
+ # @param appId Identifies the app.
165
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
166
166
  # @param [Hash] opts the optional parameters
167
167
  # @option opts [String] :before Timestamp of message. The API will return 100 messages before the specified timestamp (excluding any messages with the provided timestamp).
168
168
  # @option opts [String] :after Timestamp of message. The API will return 100 messages after the specified timestamp (excluding any messages with the provided timestamp).
169
169
  # @return [Array<(GetMessagesResponse, Fixnum, Hash)>] GetMessagesResponse data, response status code and response headers
170
- def get_messages_with_http_info(app_id, user_id, opts = {})
170
+ def get_messages_with_http_info(appId, userId, opts = {})
171
171
  if @api_client.config.debugging
172
172
  @api_client.config.logger.debug "Calling API: ConversationApi.get_messages ..."
173
173
  end
174
- # verify the required parameter 'app_id' is set
175
- if @api_client.config.client_side_validation && app_id.nil?
176
- fail ArgumentError, "Missing the required parameter 'app_id' when calling ConversationApi.get_messages"
174
+ # verify the required parameter 'appId' is set
175
+ if @api_client.config.client_side_validation && appId.nil?
176
+ fail ArgumentError, "Missing the required parameter 'appId' when calling ConversationApi.get_messages"
177
177
  end
178
- # verify the required parameter 'user_id' is set
179
- if @api_client.config.client_side_validation && user_id.nil?
180
- fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.get_messages"
178
+ # verify the required parameter 'userId' is set
179
+ if @api_client.config.client_side_validation && userId.nil?
180
+ fail ArgumentError, "Missing the required parameter 'userId' when calling ConversationApi.get_messages"
181
181
  end
182
182
  # resource path
183
- local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
183
+ local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'userId' + '}', userId.to_s)
184
184
 
185
185
  # query parameters
186
186
  query_params = {}
@@ -215,41 +215,41 @@ module SmoochApi
215
215
 
216
216
  #
217
217
  # Post a message to or from the app user.
218
- # @param app_id Identifies the app.
219
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
220
- # @param message_post_body Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message))
218
+ # @param appId Identifies the app.
219
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
220
+ # @param messagePostBody Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message))
221
221
  # @param [Hash] opts the optional parameters
222
222
  # @return [MessageResponse]
223
- def post_message(app_id, user_id, message_post_body, opts = {})
224
- data, _status_code, _headers = post_message_with_http_info(app_id, user_id, message_post_body, opts)
223
+ def post_message(appId, userId, messagePostBody, opts = {})
224
+ data, _status_code, _headers = post_message_with_http_info(appId, userId, messagePostBody, opts)
225
225
  return data
226
226
  end
227
227
 
228
228
  #
229
229
  # Post a message to or from the app user.
230
- # @param app_id Identifies the app.
231
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
232
- # @param message_post_body Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message))
230
+ # @param appId Identifies the app.
231
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
232
+ # @param messagePostBody Body for a postMessage request. Additional arguments are necessary based on message type ([text](https://docs.smooch.io/rest#text-message), [image](https://docs.smooch.io/rest#image-message), [carousel](https://docs.smooch.io/rest#carousel-message), [list](https://docs.smooch.io/rest#list-message))
233
233
  # @param [Hash] opts the optional parameters
234
234
  # @return [Array<(MessageResponse, Fixnum, Hash)>] MessageResponse data, response status code and response headers
235
- def post_message_with_http_info(app_id, user_id, message_post_body, opts = {})
235
+ def post_message_with_http_info(appId, userId, messagePostBody, opts = {})
236
236
  if @api_client.config.debugging
237
237
  @api_client.config.logger.debug "Calling API: ConversationApi.post_message ..."
238
238
  end
239
- # verify the required parameter 'app_id' is set
240
- if @api_client.config.client_side_validation && app_id.nil?
241
- fail ArgumentError, "Missing the required parameter 'app_id' when calling ConversationApi.post_message"
239
+ # verify the required parameter 'appId' is set
240
+ if @api_client.config.client_side_validation && appId.nil?
241
+ fail ArgumentError, "Missing the required parameter 'appId' when calling ConversationApi.post_message"
242
242
  end
243
- # verify the required parameter 'user_id' is set
244
- if @api_client.config.client_side_validation && user_id.nil?
245
- fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.post_message"
243
+ # verify the required parameter 'userId' is set
244
+ if @api_client.config.client_side_validation && userId.nil?
245
+ fail ArgumentError, "Missing the required parameter 'userId' when calling ConversationApi.post_message"
246
246
  end
247
- # verify the required parameter 'message_post_body' is set
248
- if @api_client.config.client_side_validation && message_post_body.nil?
249
- fail ArgumentError, "Missing the required parameter 'message_post_body' when calling ConversationApi.post_message"
247
+ # verify the required parameter 'messagePostBody' is set
248
+ if @api_client.config.client_side_validation && messagePostBody.nil?
249
+ fail ArgumentError, "Missing the required parameter 'messagePostBody' when calling ConversationApi.post_message"
250
250
  end
251
251
  # resource path
252
- local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
252
+ local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/messages".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'userId' + '}', userId.to_s)
253
253
 
254
254
  # query parameters
255
255
  query_params = {}
@@ -265,7 +265,7 @@ module SmoochApi
265
265
  form_params = {}
266
266
 
267
267
  # http body (model)
268
- post_body = @api_client.object_to_http_body(message_post_body)
268
+ post_body = @api_client.object_to_http_body(messagePostBody)
269
269
  auth_names = ['jwt']
270
270
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
271
271
  :header_params => header_params,
@@ -282,35 +282,35 @@ module SmoochApi
282
282
 
283
283
  #
284
284
  # Reset the unread count of the conversation to 0.
285
- # @param app_id Identifies the app.
286
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
285
+ # @param appId Identifies the app.
286
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
287
287
  # @param [Hash] opts the optional parameters
288
288
  # @return [nil]
289
- def reset_unread_count(app_id, user_id, opts = {})
290
- reset_unread_count_with_http_info(app_id, user_id, opts)
289
+ def reset_unread_count(appId, userId, opts = {})
290
+ reset_unread_count_with_http_info(appId, userId, opts)
291
291
  return nil
292
292
  end
293
293
 
294
294
  #
295
295
  # Reset the unread count of the conversation to 0.
296
- # @param app_id Identifies the app.
297
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
296
+ # @param appId Identifies the app.
297
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
298
298
  # @param [Hash] opts the optional parameters
299
299
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
300
- def reset_unread_count_with_http_info(app_id, user_id, opts = {})
300
+ def reset_unread_count_with_http_info(appId, userId, opts = {})
301
301
  if @api_client.config.debugging
302
302
  @api_client.config.logger.debug "Calling API: ConversationApi.reset_unread_count ..."
303
303
  end
304
- # verify the required parameter 'app_id' is set
305
- if @api_client.config.client_side_validation && app_id.nil?
306
- fail ArgumentError, "Missing the required parameter 'app_id' when calling ConversationApi.reset_unread_count"
304
+ # verify the required parameter 'appId' is set
305
+ if @api_client.config.client_side_validation && appId.nil?
306
+ fail ArgumentError, "Missing the required parameter 'appId' when calling ConversationApi.reset_unread_count"
307
307
  end
308
- # verify the required parameter 'user_id' is set
309
- if @api_client.config.client_side_validation && user_id.nil?
310
- fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.reset_unread_count"
308
+ # verify the required parameter 'userId' is set
309
+ if @api_client.config.client_side_validation && userId.nil?
310
+ fail ArgumentError, "Missing the required parameter 'userId' when calling ConversationApi.reset_unread_count"
311
311
  end
312
312
  # resource path
313
- local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/conversation/read".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
313
+ local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/conversation/read".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'userId' + '}', userId.to_s)
314
314
 
315
315
  # query parameters
316
316
  query_params = {}
@@ -342,41 +342,41 @@ module SmoochApi
342
342
 
343
343
  #
344
344
  # Notify Smooch when an app maker starts or stops typing a response.
345
- # @param app_id Identifies the app.
346
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
347
- # @param typing_activity_trigger_body Body for a triggerTypingActivity request.
345
+ # @param appId Identifies the app.
346
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
347
+ # @param typingActivityTriggerBody Body for a triggerTypingActivity request.
348
348
  # @param [Hash] opts the optional parameters
349
349
  # @return [nil]
350
- def trigger_typing_activity(app_id, user_id, typing_activity_trigger_body, opts = {})
351
- trigger_typing_activity_with_http_info(app_id, user_id, typing_activity_trigger_body, opts)
350
+ def trigger_typing_activity(appId, userId, typingActivityTriggerBody, opts = {})
351
+ trigger_typing_activity_with_http_info(appId, userId, typingActivityTriggerBody, opts)
352
352
  return nil
353
353
  end
354
354
 
355
355
  #
356
356
  # Notify Smooch when an app maker starts or stops typing a response.
357
- # @param app_id Identifies the app.
358
- # @param user_id Identifies the user. Can be either the smoochId or the userId.
359
- # @param typing_activity_trigger_body Body for a triggerTypingActivity request.
357
+ # @param appId Identifies the app.
358
+ # @param userId Identifies the user. Can be either the smoochId or the userId.
359
+ # @param typingActivityTriggerBody Body for a triggerTypingActivity request.
360
360
  # @param [Hash] opts the optional parameters
361
361
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
362
- def trigger_typing_activity_with_http_info(app_id, user_id, typing_activity_trigger_body, opts = {})
362
+ def trigger_typing_activity_with_http_info(appId, userId, typingActivityTriggerBody, opts = {})
363
363
  if @api_client.config.debugging
364
364
  @api_client.config.logger.debug "Calling API: ConversationApi.trigger_typing_activity ..."
365
365
  end
366
- # verify the required parameter 'app_id' is set
367
- if @api_client.config.client_side_validation && app_id.nil?
368
- fail ArgumentError, "Missing the required parameter 'app_id' when calling ConversationApi.trigger_typing_activity"
366
+ # verify the required parameter 'appId' is set
367
+ if @api_client.config.client_side_validation && appId.nil?
368
+ fail ArgumentError, "Missing the required parameter 'appId' when calling ConversationApi.trigger_typing_activity"
369
369
  end
370
- # verify the required parameter 'user_id' is set
371
- if @api_client.config.client_side_validation && user_id.nil?
372
- fail ArgumentError, "Missing the required parameter 'user_id' when calling ConversationApi.trigger_typing_activity"
370
+ # verify the required parameter 'userId' is set
371
+ if @api_client.config.client_side_validation && userId.nil?
372
+ fail ArgumentError, "Missing the required parameter 'userId' when calling ConversationApi.trigger_typing_activity"
373
373
  end
374
- # verify the required parameter 'typing_activity_trigger_body' is set
375
- if @api_client.config.client_side_validation && typing_activity_trigger_body.nil?
376
- fail ArgumentError, "Missing the required parameter 'typing_activity_trigger_body' when calling ConversationApi.trigger_typing_activity"
374
+ # verify the required parameter 'typingActivityTriggerBody' is set
375
+ if @api_client.config.client_side_validation && typingActivityTriggerBody.nil?
376
+ fail ArgumentError, "Missing the required parameter 'typingActivityTriggerBody' when calling ConversationApi.trigger_typing_activity"
377
377
  end
378
378
  # resource path
379
- local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/conversation/activity".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
379
+ local_var_path = "/v1.1/apps/{appId}/appusers/{userId}/conversation/activity".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'userId' + '}', userId.to_s)
380
380
 
381
381
  # query parameters
382
382
  query_params = {}
@@ -392,7 +392,7 @@ module SmoochApi
392
392
  form_params = {}
393
393
 
394
394
  # http body (model)
395
- post_body = @api_client.object_to_http_body(typing_activity_trigger_body)
395
+ post_body = @api_client.object_to_http_body(typingActivityTriggerBody)
396
396
  auth_names = ['jwt']
397
397
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
398
398
  :header_params => header_params,