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.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/docs/Action.md +2 -2
- data/docs/App.md +2 -2
- data/docs/AppApi.md +48 -48
- data/docs/AppSettings.md +2 -2
- data/docs/AppUser.md +6 -6
- data/docs/AppUserApi.md +78 -78
- data/docs/AppUserBusinessSystemsResponse.md +1 -1
- data/docs/AppUserLink.md +2 -2
- data/docs/AppUserPreCreate.md +3 -3
- data/docs/AppUserResponse.md +1 -1
- data/docs/AppUserUpdate.md +2 -2
- data/docs/AttachmentRemove.md +1 -1
- data/docs/AttachmentResponse.md +2 -2
- data/docs/AttachmentsApi.md +16 -16
- data/docs/AuthCodeResponse.md +1 -1
- data/docs/BusinessSystemItem.md +4 -4
- data/docs/ChannelEntityItem.md +3 -3
- data/docs/Client.md +4 -4
- data/docs/ClientInfo.md +8 -8
- data/docs/Conversation.md +2 -2
- data/docs/ConversationApi.md +42 -42
- data/docs/Destination.md +2 -2
- data/docs/DisplaySettings.md +1 -1
- data/docs/GetMessagesResponse.md +1 -1
- data/docs/Integration.md +44 -44
- data/docs/IntegrationApi.md +66 -66
- data/docs/IntegrationCreate.md +36 -36
- data/docs/IntegrationProfileUpdate.md +1 -1
- data/docs/IntegrationUpdate.md +16 -16
- data/docs/LinkRequestResponse.md +1 -1
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/ListAppsResponse.md +1 -1
- data/docs/ListServiceAccountsResponse.md +2 -2
- data/docs/ListTemplatesResponse.md +1 -1
- data/docs/MenuApi.md +14 -14
- data/docs/Message.md +6 -6
- data/docs/MessageItem.md +2 -2
- data/docs/MessageOverride.md +8 -0
- data/docs/MessageOverrideWhatsapp.md +8 -0
- data/docs/MessagePost.md +4 -3
- data/docs/MessageResponse.md +1 -1
- data/docs/SecretKey.md +1 -1
- data/docs/ServiceAccount.md +1 -1
- data/docs/ServiceAccountApi.md +46 -46
- data/docs/ServiceAccountResponse.md +1 -1
- data/docs/Template.md +1 -1
- data/docs/TemplateApi.md +30 -30
- data/docs/TypingActivityTrigger.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookApi.md +30 -30
- data/lib/smooch-api.rb +3 -1
- data/lib/smooch-api/api/app_api.rb +112 -112
- data/lib/smooch-api/api/app_user_api.rb +190 -190
- data/lib/smooch-api/api/attachments_api.rb +34 -34
- data/lib/smooch-api/api/conversation_api.rb +102 -102
- data/lib/smooch-api/api/integration_api.rb +161 -161
- data/lib/smooch-api/api/menu_api.rb +34 -34
- data/lib/smooch-api/api/service_account_api.rb +109 -109
- data/lib/smooch-api/api/template_api.rb +73 -73
- data/lib/smooch-api/api/webhook_api.rb +73 -73
- data/lib/smooch-api/api_client.rb +1 -1
- data/lib/smooch-api/api_error.rb +1 -1
- data/lib/smooch-api/configuration.rb +1 -1
- data/lib/smooch-api/models/action.rb +12 -12
- data/lib/smooch-api/models/app.rb +18 -18
- data/lib/smooch-api/models/app_create.rb +1 -1
- data/lib/smooch-api/models/app_response.rb +1 -1
- data/lib/smooch-api/models/app_settings.rb +12 -12
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +38 -38
- data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +12 -12
- data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
- data/lib/smooch-api/models/app_user_response.rb +10 -10
- data/lib/smooch-api/models/app_user_update.rb +12 -12
- data/lib/smooch-api/models/attachment_remove.rb +10 -10
- data/lib/smooch-api/models/attachment_response.rb +18 -18
- data/lib/smooch-api/models/auth_code_response.rb +10 -10
- data/lib/smooch-api/models/business_system_item.rb +22 -22
- data/lib/smooch-api/models/channel_entity_item.rb +17 -17
- data/lib/smooch-api/models/client.rb +22 -22
- data/lib/smooch-api/models/client_info.rb +42 -42
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +18 -18
- data/lib/smooch-api/models/destination.rb +18 -18
- data/lib/smooch-api/models/display_settings.rb +7 -7
- data/lib/smooch-api/models/get_messages_response.rb +7 -7
- data/lib/smooch-api/models/integration.rb +225 -225
- data/lib/smooch-api/models/integration_create.rb +182 -182
- data/lib/smooch-api/models/integration_profile_update.rb +7 -7
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +82 -82
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +7 -7
- data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
- data/lib/smooch-api/models/list_apps_response.rb +7 -7
- data/lib/smooch-api/models/list_integrations_response.rb +1 -1
- data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
- data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
- data/lib/smooch-api/models/list_templates_response.rb +7 -7
- data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
- data/lib/smooch-api/models/menu.rb +1 -1
- data/lib/smooch-api/models/menu_item.rb +1 -1
- data/lib/smooch-api/models/menu_response.rb +1 -1
- data/lib/smooch-api/models/message.rb +41 -41
- data/lib/smooch-api/models/message_item.rb +12 -12
- data/lib/smooch-api/models/message_override.rb +188 -0
- data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
- data/lib/smooch-api/models/message_post.rb +30 -20
- data/lib/smooch-api/models/message_response.rb +7 -7
- data/lib/smooch-api/models/secret_key.rb +10 -10
- data/lib/smooch-api/models/secret_key_create.rb +1 -1
- data/lib/smooch-api/models/secret_key_response.rb +1 -1
- data/lib/smooch-api/models/service_account.rb +10 -10
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +7 -7
- data/lib/smooch-api/models/service_account_update.rb +1 -1
- data/lib/smooch-api/models/source.rb +1 -1
- data/lib/smooch-api/models/sub_menu_item.rb +1 -1
- data/lib/smooch-api/models/template.rb +10 -10
- data/lib/smooch-api/models/template_create.rb +1 -1
- data/lib/smooch-api/models/template_response.rb +1 -1
- data/lib/smooch-api/models/template_update.rb +1 -1
- data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
- data/lib/smooch-api/models/webhook.rb +10 -10
- data/lib/smooch-api/models/webhook_create.rb +1 -1
- data/lib/smooch-api/models/webhook_response.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +1 -1
- data/lib/smooch-api/version.rb +2 -2
- data/smooch-api.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- 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.
|
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 :
|
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 :
|
31
|
+
attr_accessor :pushNotificationToken
|
32
32
|
|
33
33
|
# A reserved string field for reporting the app version running on the device.
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :appVersion
|
35
35
|
|
36
36
|
# The client's display name.
|
37
|
-
attr_accessor :
|
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
|
-
:'
|
50
|
+
:'lastSeen' => :'lastSeen',
|
51
51
|
:'platform' => :'platform',
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'
|
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
|
-
:'
|
65
|
+
:'lastSeen' => :'String',
|
66
66
|
:'platform' => :'String',
|
67
|
-
:'
|
68
|
-
:'
|
69
|
-
:'
|
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.
|
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.
|
100
|
+
self.pushNotificationToken = attributes[:'pushNotificationToken']
|
101
101
|
end
|
102
102
|
|
103
103
|
if attributes.has_key?(:'appVersion')
|
104
|
-
self.
|
104
|
+
self.appVersion = attributes[:'appVersion']
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.has_key?(:'displayName')
|
108
|
-
self.
|
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
|
-
|
151
|
+
lastSeen == o.lastSeen &&
|
152
152
|
platform == o.platform &&
|
153
|
-
|
154
|
-
|
155
|
-
|
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,
|
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.
|
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 :
|
19
|
+
attr_accessor :appName
|
20
20
|
|
21
21
|
# The client's avatar URL.
|
22
|
-
attr_accessor :
|
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 :
|
34
|
+
attr_accessor :deviceModel
|
35
35
|
|
36
36
|
# The client's device platform.
|
37
|
-
attr_accessor :
|
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 :
|
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 :
|
52
|
+
attr_accessor :osVersion
|
53
53
|
|
54
54
|
# The client's phone number.
|
55
|
-
attr_accessor :
|
55
|
+
attr_accessor :phoneNumber
|
56
56
|
|
57
57
|
# The client's radioAccessTechnology (Ex. HSDPA).
|
58
|
-
attr_accessor :
|
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
|
-
:'
|
74
|
-
:'
|
73
|
+
:'appName' => :'appName',
|
74
|
+
:'avatarUrl' => :'avatarUrl',
|
75
75
|
:'carrier' => :'carrier',
|
76
76
|
:'city' => :'city',
|
77
77
|
:'country' => :'country',
|
78
|
-
:'
|
79
|
-
:'
|
78
|
+
:'deviceModel' => :'deviceModel',
|
79
|
+
:'devicePlatform' => :'devicePlatform',
|
80
80
|
:'gender' => :'gender',
|
81
|
-
:'
|
81
|
+
:'isPaymentEnabled' => :'isPaymentEnabled',
|
82
82
|
:'locale' => :'locale',
|
83
83
|
:'os' => :'os',
|
84
|
-
:'
|
85
|
-
:'
|
86
|
-
:'
|
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
|
-
:'
|
97
|
-
:'
|
96
|
+
:'appName' => :'String',
|
97
|
+
:'avatarUrl' => :'String',
|
98
98
|
:'carrier' => :'String',
|
99
99
|
:'city' => :'String',
|
100
100
|
:'country' => :'String',
|
101
|
-
:'
|
102
|
-
:'
|
101
|
+
:'deviceModel' => :'String',
|
102
|
+
:'devicePlatform' => :'String',
|
103
103
|
:'gender' => :'String',
|
104
|
-
:'
|
104
|
+
:'isPaymentEnabled' => :'BOOLEAN',
|
105
105
|
:'locale' => :'String',
|
106
106
|
:'os' => :'String',
|
107
|
-
:'
|
108
|
-
:'
|
109
|
-
:'
|
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.
|
125
|
+
self.appName = attributes[:'appName']
|
126
126
|
end
|
127
127
|
|
128
128
|
if attributes.has_key?(:'avatarUrl')
|
129
|
-
self.
|
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.
|
145
|
+
self.deviceModel = attributes[:'deviceModel']
|
146
146
|
end
|
147
147
|
|
148
148
|
if attributes.has_key?(:'devicePlatform')
|
149
|
-
self.
|
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.
|
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.
|
169
|
+
self.osVersion = attributes[:'osVersion']
|
170
170
|
end
|
171
171
|
|
172
172
|
if attributes.has_key?(:'phoneNumber')
|
173
|
-
self.
|
173
|
+
self.phoneNumber = attributes[:'phoneNumber']
|
174
174
|
end
|
175
175
|
|
176
176
|
if attributes.has_key?(:'radioAccessTechnology')
|
177
|
-
self.
|
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
|
-
|
213
|
-
|
212
|
+
appName == o.appName &&
|
213
|
+
avatarUrl == o.avatarUrl &&
|
214
214
|
carrier == o.carrier &&
|
215
215
|
city == o.city &&
|
216
216
|
country == o.country &&
|
217
|
-
|
218
|
-
|
217
|
+
deviceModel == o.deviceModel &&
|
218
|
+
devicePlatform == o.devicePlatform &&
|
219
219
|
gender == o.gender &&
|
220
|
-
|
220
|
+
isPaymentEnabled == o.isPaymentEnabled &&
|
221
221
|
locale == o.locale &&
|
222
222
|
os == o.os &&
|
223
|
-
|
224
|
-
|
225
|
-
|
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
|
-
[
|
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.
|
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.
|
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 :
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
21
|
# The number of unread messages in the conversation.
|
22
|
-
attr_accessor :
|
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
|
-
:'
|
29
|
-
:'
|
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
|
-
:'
|
37
|
-
:'
|
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.
|
50
|
+
self.id = attributes[:'_id']
|
51
51
|
end
|
52
52
|
|
53
53
|
if attributes.has_key?(:'unreadCount')
|
54
|
-
self.
|
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 @
|
64
|
-
invalid_properties.push("invalid value for '
|
63
|
+
if @id.nil?
|
64
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
65
65
|
end
|
66
66
|
|
67
|
-
if @
|
68
|
-
invalid_properties.push("invalid value for '
|
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 @
|
78
|
-
return false if @
|
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
|
-
|
88
|
-
|
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
|
-
[
|
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.
|
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 :
|
19
|
+
attr_accessor :integrationId
|
20
20
|
|
21
21
|
# The type of the target integration.
|
22
|
-
attr_accessor :
|
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
|
-
:'
|
29
|
-
:'
|
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
|
-
:'
|
37
|
-
:'
|
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.
|
50
|
+
self.integrationId = attributes[:'integrationId']
|
51
51
|
end
|
52
52
|
|
53
53
|
if attributes.has_key?(:'integrationType')
|
54
|
-
self.
|
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 @
|
64
|
-
invalid_properties.push("invalid value for '
|
63
|
+
if @integrationId.nil?
|
64
|
+
invalid_properties.push("invalid value for 'integrationId', integrationId cannot be nil.")
|
65
65
|
end
|
66
66
|
|
67
|
-
if @
|
68
|
-
invalid_properties.push("invalid value for '
|
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 @
|
78
|
-
return false if @
|
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
|
-
|
88
|
-
|
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
|
-
[
|
100
|
+
[integrationId, integrationType].hash
|
101
101
|
end
|
102
102
|
|
103
103
|
# Builds the object from hash
|