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,19 +22,19 @@ module SmoochApi
22
22
  attr_accessor :active
23
23
 
24
24
  # The date time the client was last seen.
25
- attr_accessor :last_seen
25
+ attr_accessor :lastSeen
26
26
 
27
27
  # The client's platform.
28
28
  attr_accessor :platform
29
29
 
30
30
  # The GCM or APN token to be used for sending push notifications to the device. Applies to only *android* and *ios* clients.
31
- attr_accessor :push_notification_token
31
+ attr_accessor :pushNotificationToken
32
32
 
33
33
  # A reserved string field for reporting the app version running on the device.
34
- attr_accessor :app_version
34
+ attr_accessor :appVersion
35
35
 
36
36
  # The client's display name.
37
- attr_accessor :display_name
37
+ attr_accessor :displayName
38
38
 
39
39
  attr_accessor :info
40
40
 
@@ -47,11 +47,11 @@ module SmoochApi
47
47
  {
48
48
  :'id' => :'id',
49
49
  :'active' => :'active',
50
- :'last_seen' => :'lastSeen',
50
+ :'lastSeen' => :'lastSeen',
51
51
  :'platform' => :'platform',
52
- :'push_notification_token' => :'pushNotificationToken',
53
- :'app_version' => :'appVersion',
54
- :'display_name' => :'displayName',
52
+ :'pushNotificationToken' => :'pushNotificationToken',
53
+ :'appVersion' => :'appVersion',
54
+ :'displayName' => :'displayName',
55
55
  :'info' => :'info',
56
56
  :'raw' => :'raw'
57
57
  }
@@ -62,11 +62,11 @@ module SmoochApi
62
62
  {
63
63
  :'id' => :'String',
64
64
  :'active' => :'BOOLEAN',
65
- :'last_seen' => :'String',
65
+ :'lastSeen' => :'String',
66
66
  :'platform' => :'String',
67
- :'push_notification_token' => :'String',
68
- :'app_version' => :'String',
69
- :'display_name' => :'String',
67
+ :'pushNotificationToken' => :'String',
68
+ :'appVersion' => :'String',
69
+ :'displayName' => :'String',
70
70
  :'info' => :'ClientInfo',
71
71
  :'raw' => :'Object'
72
72
  }
@@ -89,7 +89,7 @@ module SmoochApi
89
89
  end
90
90
 
91
91
  if attributes.has_key?(:'lastSeen')
92
- self.last_seen = attributes[:'lastSeen']
92
+ self.lastSeen = attributes[:'lastSeen']
93
93
  end
94
94
 
95
95
  if attributes.has_key?(:'platform')
@@ -97,15 +97,15 @@ module SmoochApi
97
97
  end
98
98
 
99
99
  if attributes.has_key?(:'pushNotificationToken')
100
- self.push_notification_token = attributes[:'pushNotificationToken']
100
+ self.pushNotificationToken = attributes[:'pushNotificationToken']
101
101
  end
102
102
 
103
103
  if attributes.has_key?(:'appVersion')
104
- self.app_version = attributes[:'appVersion']
104
+ self.appVersion = attributes[:'appVersion']
105
105
  end
106
106
 
107
107
  if attributes.has_key?(:'displayName')
108
- self.display_name = attributes[:'displayName']
108
+ self.displayName = attributes[:'displayName']
109
109
  end
110
110
 
111
111
  if attributes.has_key?(:'info')
@@ -148,11 +148,11 @@ module SmoochApi
148
148
  self.class == o.class &&
149
149
  id == o.id &&
150
150
  active == o.active &&
151
- last_seen == o.last_seen &&
151
+ lastSeen == o.lastSeen &&
152
152
  platform == o.platform &&
153
- push_notification_token == o.push_notification_token &&
154
- app_version == o.app_version &&
155
- display_name == o.display_name &&
153
+ pushNotificationToken == o.pushNotificationToken &&
154
+ appVersion == o.appVersion &&
155
+ displayName == o.displayName &&
156
156
  info == o.info &&
157
157
  raw == o.raw
158
158
  end
@@ -166,7 +166,7 @@ module SmoochApi
166
166
  # Calculates hash code according to all attributes.
167
167
  # @return [Fixnum] Hash code
168
168
  def hash
169
- [id, active, last_seen, platform, push_notification_token, app_version, display_name, info, raw].hash
169
+ [id, active, lastSeen, platform, pushNotificationToken, appVersion, displayName, info, raw].hash
170
170
  end
171
171
 
172
172
  # Builds the object from hash
@@ -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
@@ -16,10 +16,10 @@ module SmoochApi
16
16
 
17
17
  class ClientInfo
18
18
  # Name of the app associated with the client.
19
- attr_accessor :app_name
19
+ attr_accessor :appName
20
20
 
21
21
  # The client's avatar URL.
22
- attr_accessor :avatar_url
22
+ attr_accessor :avatarUrl
23
23
 
24
24
  # The client's carrier.
25
25
  attr_accessor :carrier
@@ -31,16 +31,16 @@ module SmoochApi
31
31
  attr_accessor :country
32
32
 
33
33
  # The client's device model.
34
- attr_accessor :device_model
34
+ attr_accessor :deviceModel
35
35
 
36
36
  # The client's device platform.
37
- attr_accessor :device_platform
37
+ attr_accessor :devicePlatform
38
38
 
39
39
  # The client user's gender.
40
40
  attr_accessor :gender
41
41
 
42
42
  # Whether or not payment is enabled for client.
43
- attr_accessor :is_payment_enabled
43
+ attr_accessor :isPaymentEnabled
44
44
 
45
45
  # The client's locale.
46
46
  attr_accessor :locale
@@ -49,13 +49,13 @@ module SmoochApi
49
49
  attr_accessor :os
50
50
 
51
51
  # The client's OS version.
52
- attr_accessor :os_version
52
+ attr_accessor :osVersion
53
53
 
54
54
  # The client's phone number.
55
- attr_accessor :phone_number
55
+ attr_accessor :phoneNumber
56
56
 
57
57
  # The client's radioAccessTechnology (Ex. HSDPA).
58
- attr_accessor :radio_access_technology
58
+ attr_accessor :radioAccessTechnology
59
59
 
60
60
  # The client's state or province.
61
61
  attr_accessor :state
@@ -70,20 +70,20 @@ module SmoochApi
70
70
  # Attribute mapping from ruby-style variable name to JSON key.
71
71
  def self.attribute_map
72
72
  {
73
- :'app_name' => :'appName',
74
- :'avatar_url' => :'avatarUrl',
73
+ :'appName' => :'appName',
74
+ :'avatarUrl' => :'avatarUrl',
75
75
  :'carrier' => :'carrier',
76
76
  :'city' => :'city',
77
77
  :'country' => :'country',
78
- :'device_model' => :'deviceModel',
79
- :'device_platform' => :'devicePlatform',
78
+ :'deviceModel' => :'deviceModel',
79
+ :'devicePlatform' => :'devicePlatform',
80
80
  :'gender' => :'gender',
81
- :'is_payment_enabled' => :'isPaymentEnabled',
81
+ :'isPaymentEnabled' => :'isPaymentEnabled',
82
82
  :'locale' => :'locale',
83
83
  :'os' => :'os',
84
- :'os_version' => :'osVersion',
85
- :'phone_number' => :'phoneNumber',
86
- :'radio_access_technology' => :'radioAccessTechnology',
84
+ :'osVersion' => :'osVersion',
85
+ :'phoneNumber' => :'phoneNumber',
86
+ :'radioAccessTechnology' => :'radioAccessTechnology',
87
87
  :'state' => :'state',
88
88
  :'timezone' => :'timezone',
89
89
  :'wifi' => :'wifi'
@@ -93,20 +93,20 @@ module SmoochApi
93
93
  # Attribute type mapping.
94
94
  def self.swagger_types
95
95
  {
96
- :'app_name' => :'String',
97
- :'avatar_url' => :'String',
96
+ :'appName' => :'String',
97
+ :'avatarUrl' => :'String',
98
98
  :'carrier' => :'String',
99
99
  :'city' => :'String',
100
100
  :'country' => :'String',
101
- :'device_model' => :'String',
102
- :'device_platform' => :'String',
101
+ :'deviceModel' => :'String',
102
+ :'devicePlatform' => :'String',
103
103
  :'gender' => :'String',
104
- :'is_payment_enabled' => :'BOOLEAN',
104
+ :'isPaymentEnabled' => :'BOOLEAN',
105
105
  :'locale' => :'String',
106
106
  :'os' => :'String',
107
- :'os_version' => :'String',
108
- :'phone_number' => :'String',
109
- :'radio_access_technology' => :'String',
107
+ :'osVersion' => :'String',
108
+ :'phoneNumber' => :'String',
109
+ :'radioAccessTechnology' => :'String',
110
110
  :'state' => :'String',
111
111
  :'timezone' => :'Integer',
112
112
  :'wifi' => :'String'
@@ -122,11 +122,11 @@ module SmoochApi
122
122
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
123
123
 
124
124
  if attributes.has_key?(:'appName')
125
- self.app_name = attributes[:'appName']
125
+ self.appName = attributes[:'appName']
126
126
  end
127
127
 
128
128
  if attributes.has_key?(:'avatarUrl')
129
- self.avatar_url = attributes[:'avatarUrl']
129
+ self.avatarUrl = attributes[:'avatarUrl']
130
130
  end
131
131
 
132
132
  if attributes.has_key?(:'carrier')
@@ -142,11 +142,11 @@ module SmoochApi
142
142
  end
143
143
 
144
144
  if attributes.has_key?(:'deviceModel')
145
- self.device_model = attributes[:'deviceModel']
145
+ self.deviceModel = attributes[:'deviceModel']
146
146
  end
147
147
 
148
148
  if attributes.has_key?(:'devicePlatform')
149
- self.device_platform = attributes[:'devicePlatform']
149
+ self.devicePlatform = attributes[:'devicePlatform']
150
150
  end
151
151
 
152
152
  if attributes.has_key?(:'gender')
@@ -154,7 +154,7 @@ module SmoochApi
154
154
  end
155
155
 
156
156
  if attributes.has_key?(:'isPaymentEnabled')
157
- self.is_payment_enabled = attributes[:'isPaymentEnabled']
157
+ self.isPaymentEnabled = attributes[:'isPaymentEnabled']
158
158
  end
159
159
 
160
160
  if attributes.has_key?(:'locale')
@@ -166,15 +166,15 @@ module SmoochApi
166
166
  end
167
167
 
168
168
  if attributes.has_key?(:'osVersion')
169
- self.os_version = attributes[:'osVersion']
169
+ self.osVersion = attributes[:'osVersion']
170
170
  end
171
171
 
172
172
  if attributes.has_key?(:'phoneNumber')
173
- self.phone_number = attributes[:'phoneNumber']
173
+ self.phoneNumber = attributes[:'phoneNumber']
174
174
  end
175
175
 
176
176
  if attributes.has_key?(:'radioAccessTechnology')
177
- self.radio_access_technology = attributes[:'radioAccessTechnology']
177
+ self.radioAccessTechnology = attributes[:'radioAccessTechnology']
178
178
  end
179
179
 
180
180
  if attributes.has_key?(:'state')
@@ -209,20 +209,20 @@ module SmoochApi
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
- app_name == o.app_name &&
213
- avatar_url == o.avatar_url &&
212
+ appName == o.appName &&
213
+ avatarUrl == o.avatarUrl &&
214
214
  carrier == o.carrier &&
215
215
  city == o.city &&
216
216
  country == o.country &&
217
- device_model == o.device_model &&
218
- device_platform == o.device_platform &&
217
+ deviceModel == o.deviceModel &&
218
+ devicePlatform == o.devicePlatform &&
219
219
  gender == o.gender &&
220
- is_payment_enabled == o.is_payment_enabled &&
220
+ isPaymentEnabled == o.isPaymentEnabled &&
221
221
  locale == o.locale &&
222
222
  os == o.os &&
223
- os_version == o.os_version &&
224
- phone_number == o.phone_number &&
225
- radio_access_technology == o.radio_access_technology &&
223
+ osVersion == o.osVersion &&
224
+ phoneNumber == o.phoneNumber &&
225
+ radioAccessTechnology == o.radioAccessTechnology &&
226
226
  state == o.state &&
227
227
  timezone == o.timezone &&
228
228
  wifi == o.wifi
@@ -237,7 +237,7 @@ module SmoochApi
237
237
  # Calculates hash code according to all attributes.
238
238
  # @return [Fixnum] Hash code
239
239
  def hash
240
- [app_name, avatar_url, carrier, city, country, device_model, device_platform, gender, is_payment_enabled, locale, os, os_version, phone_number, radio_access_technology, state, timezone, wifi].hash
240
+ [appName, avatarUrl, carrier, city, country, deviceModel, devicePlatform, gender, isPaymentEnabled, locale, os, osVersion, phoneNumber, radioAccessTechnology, state, timezone, wifi].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash
@@ -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
@@ -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
@@ -16,25 +16,25 @@ module SmoochApi
16
16
 
17
17
  class Conversation
18
18
  # The conversation ID, generated automatically.
19
- attr_accessor :_id
19
+ attr_accessor :id
20
20
 
21
21
  # The number of unread messages in the conversation.
22
- attr_accessor :unread_count
22
+ attr_accessor :unreadCount
23
23
 
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'_id' => :'_id',
29
- :'unread_count' => :'unreadCount'
28
+ :'id' => :'_id',
29
+ :'unreadCount' => :'unreadCount'
30
30
  }
31
31
  end
32
32
 
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'_id' => :'String',
37
- :'unread_count' => :'Integer'
36
+ :'id' => :'String',
37
+ :'unreadCount' => :'Integer'
38
38
  }
39
39
  end
40
40
 
@@ -47,11 +47,11 @@ module SmoochApi
47
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
48
 
49
49
  if attributes.has_key?(:'_id')
50
- self._id = attributes[:'_id']
50
+ self.id = attributes[:'_id']
51
51
  end
52
52
 
53
53
  if attributes.has_key?(:'unreadCount')
54
- self.unread_count = attributes[:'unreadCount']
54
+ self.unreadCount = attributes[:'unreadCount']
55
55
  end
56
56
 
57
57
  end
@@ -60,12 +60,12 @@ module SmoochApi
60
60
  # @return Array for valid properies with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if @_id.nil?
64
- invalid_properties.push("invalid value for '_id', _id cannot be nil.")
63
+ if @id.nil?
64
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
65
65
  end
66
66
 
67
- if @unread_count.nil?
68
- invalid_properties.push("invalid value for 'unread_count', unread_count cannot be nil.")
67
+ if @unreadCount.nil?
68
+ invalid_properties.push("invalid value for 'unreadCount', unreadCount cannot be nil.")
69
69
  end
70
70
 
71
71
  return invalid_properties
@@ -74,8 +74,8 @@ module SmoochApi
74
74
  # Check to see if the all the properties in the model are valid
75
75
  # @return true if the model is valid
76
76
  def valid?
77
- return false if @_id.nil?
78
- return false if @unread_count.nil?
77
+ return false if @id.nil?
78
+ return false if @unreadCount.nil?
79
79
  return true
80
80
  end
81
81
 
@@ -84,8 +84,8 @@ module SmoochApi
84
84
  def ==(o)
85
85
  return true if self.equal?(o)
86
86
  self.class == o.class &&
87
- _id == o._id &&
88
- unread_count == o.unread_count
87
+ id == o.id &&
88
+ unreadCount == o.unreadCount
89
89
  end
90
90
 
91
91
  # @see the `==` method
@@ -97,7 +97,7 @@ module SmoochApi
97
97
  # Calculates hash code according to all attributes.
98
98
  # @return [Fixnum] Hash code
99
99
  def hash
100
- [_id, unread_count].hash
100
+ [id, unreadCount].hash
101
101
  end
102
102
 
103
103
  # Builds the object from hash
@@ -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
@@ -16,25 +16,25 @@ module SmoochApi
16
16
 
17
17
  class Destination
18
18
  # The ID of the target integration.
19
- attr_accessor :integration_id
19
+ attr_accessor :integrationId
20
20
 
21
21
  # The type of the target integration.
22
- attr_accessor :integration_type
22
+ attr_accessor :integrationType
23
23
 
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'integration_id' => :'integrationId',
29
- :'integration_type' => :'integrationType'
28
+ :'integrationId' => :'integrationId',
29
+ :'integrationType' => :'integrationType'
30
30
  }
31
31
  end
32
32
 
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'integration_id' => :'String',
37
- :'integration_type' => :'String'
36
+ :'integrationId' => :'String',
37
+ :'integrationType' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -47,11 +47,11 @@ module SmoochApi
47
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
48
 
49
49
  if attributes.has_key?(:'integrationId')
50
- self.integration_id = attributes[:'integrationId']
50
+ self.integrationId = attributes[:'integrationId']
51
51
  end
52
52
 
53
53
  if attributes.has_key?(:'integrationType')
54
- self.integration_type = attributes[:'integrationType']
54
+ self.integrationType = attributes[:'integrationType']
55
55
  end
56
56
 
57
57
  end
@@ -60,12 +60,12 @@ module SmoochApi
60
60
  # @return Array for valid properies with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if @integration_id.nil?
64
- invalid_properties.push("invalid value for 'integration_id', integration_id cannot be nil.")
63
+ if @integrationId.nil?
64
+ invalid_properties.push("invalid value for 'integrationId', integrationId cannot be nil.")
65
65
  end
66
66
 
67
- if @integration_type.nil?
68
- invalid_properties.push("invalid value for 'integration_type', integration_type cannot be nil.")
67
+ if @integrationType.nil?
68
+ invalid_properties.push("invalid value for 'integrationType', integrationType cannot be nil.")
69
69
  end
70
70
 
71
71
  return invalid_properties
@@ -74,8 +74,8 @@ module SmoochApi
74
74
  # Check to see if the all the properties in the model are valid
75
75
  # @return true if the model is valid
76
76
  def valid?
77
- return false if @integration_id.nil?
78
- return false if @integration_type.nil?
77
+ return false if @integrationId.nil?
78
+ return false if @integrationType.nil?
79
79
  return true
80
80
  end
81
81
 
@@ -84,8 +84,8 @@ module SmoochApi
84
84
  def ==(o)
85
85
  return true if self.equal?(o)
86
86
  self.class == o.class &&
87
- integration_id == o.integration_id &&
88
- integration_type == o.integration_type
87
+ integrationId == o.integrationId &&
88
+ integrationType == o.integrationType
89
89
  end
90
90
 
91
91
  # @see the `==` method
@@ -97,7 +97,7 @@ module SmoochApi
97
97
  # Calculates hash code according to all attributes.
98
98
  # @return [Fixnum] Hash code
99
99
  def hash
100
- [integration_id, integration_type].hash
100
+ [integrationId, integrationType].hash
101
101
  end
102
102
 
103
103
  # Builds the object from hash