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
|
@@ -28,7 +28,7 @@ module SmoochApi
|
|
28
28
|
attr_accessor :email
|
29
29
|
|
30
30
|
# The URL of the desired message avatar image.
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :avatarUrl
|
32
32
|
|
33
33
|
# Flat JSON object containing any custom properties associated with the message.
|
34
34
|
attr_accessor :metadata
|
@@ -40,10 +40,10 @@ module SmoochApi
|
|
40
40
|
attr_accessor :text
|
41
41
|
|
42
42
|
# The mediaUrl for the message. Required for image/file messages.
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :mediaUrl
|
44
44
|
|
45
45
|
# The mediaType for the message. Required for image/file messages.
|
46
|
-
attr_accessor :
|
46
|
+
attr_accessor :mediaType
|
47
47
|
|
48
48
|
# The items in the message list. Required for carousel and list messages.
|
49
49
|
attr_accessor :items
|
@@ -54,6 +54,9 @@ module SmoochApi
|
|
54
54
|
# Specifies which channel to deliver a message to. See [list integrations](https://docs.smooch.io/rest/#list-integrations) to get integration ID and type.
|
55
55
|
attr_accessor :destination
|
56
56
|
|
57
|
+
# Specifies channel-specific overrides to use in order to bypass Smooch's message translation logic.
|
58
|
+
attr_accessor :override
|
59
|
+
|
57
60
|
|
58
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
62
|
def self.attribute_map
|
@@ -62,15 +65,16 @@ module SmoochApi
|
|
62
65
|
:'type' => :'type',
|
63
66
|
:'name' => :'name',
|
64
67
|
:'email' => :'email',
|
65
|
-
:'
|
68
|
+
:'avatarUrl' => :'avatarUrl',
|
66
69
|
:'metadata' => :'metadata',
|
67
70
|
:'payload' => :'payload',
|
68
71
|
:'text' => :'text',
|
69
|
-
:'
|
70
|
-
:'
|
72
|
+
:'mediaUrl' => :'mediaUrl',
|
73
|
+
:'mediaType' => :'mediaType',
|
71
74
|
:'items' => :'items',
|
72
75
|
:'actions' => :'actions',
|
73
|
-
:'destination' => :'destination'
|
76
|
+
:'destination' => :'destination',
|
77
|
+
:'override' => :'override'
|
74
78
|
}
|
75
79
|
end
|
76
80
|
|
@@ -81,15 +85,16 @@ module SmoochApi
|
|
81
85
|
:'type' => :'String',
|
82
86
|
:'name' => :'String',
|
83
87
|
:'email' => :'String',
|
84
|
-
:'
|
88
|
+
:'avatarUrl' => :'String',
|
85
89
|
:'metadata' => :'Object',
|
86
90
|
:'payload' => :'String',
|
87
91
|
:'text' => :'String',
|
88
|
-
:'
|
89
|
-
:'
|
92
|
+
:'mediaUrl' => :'String',
|
93
|
+
:'mediaType' => :'String',
|
90
94
|
:'items' => :'Array<MessageItem>',
|
91
95
|
:'actions' => :'Array<Action>',
|
92
|
-
:'destination' => :'Destination'
|
96
|
+
:'destination' => :'Destination',
|
97
|
+
:'override' => :'MessageOverride'
|
93
98
|
}
|
94
99
|
end
|
95
100
|
|
@@ -118,7 +123,7 @@ module SmoochApi
|
|
118
123
|
end
|
119
124
|
|
120
125
|
if attributes.has_key?(:'avatarUrl')
|
121
|
-
self.
|
126
|
+
self.avatarUrl = attributes[:'avatarUrl']
|
122
127
|
end
|
123
128
|
|
124
129
|
if attributes.has_key?(:'metadata')
|
@@ -134,11 +139,11 @@ module SmoochApi
|
|
134
139
|
end
|
135
140
|
|
136
141
|
if attributes.has_key?(:'mediaUrl')
|
137
|
-
self.
|
142
|
+
self.mediaUrl = attributes[:'mediaUrl']
|
138
143
|
end
|
139
144
|
|
140
145
|
if attributes.has_key?(:'mediaType')
|
141
|
-
self.
|
146
|
+
self.mediaType = attributes[:'mediaType']
|
142
147
|
end
|
143
148
|
|
144
149
|
if attributes.has_key?(:'items')
|
@@ -157,6 +162,10 @@ module SmoochApi
|
|
157
162
|
self.destination = attributes[:'destination']
|
158
163
|
end
|
159
164
|
|
165
|
+
if attributes.has_key?(:'override')
|
166
|
+
self.override = attributes[:'override']
|
167
|
+
end
|
168
|
+
|
160
169
|
end
|
161
170
|
|
162
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -191,15 +200,16 @@ module SmoochApi
|
|
191
200
|
type == o.type &&
|
192
201
|
name == o.name &&
|
193
202
|
email == o.email &&
|
194
|
-
|
203
|
+
avatarUrl == o.avatarUrl &&
|
195
204
|
metadata == o.metadata &&
|
196
205
|
payload == o.payload &&
|
197
206
|
text == o.text &&
|
198
|
-
|
199
|
-
|
207
|
+
mediaUrl == o.mediaUrl &&
|
208
|
+
mediaType == o.mediaType &&
|
200
209
|
items == o.items &&
|
201
210
|
actions == o.actions &&
|
202
|
-
destination == o.destination
|
211
|
+
destination == o.destination &&
|
212
|
+
override == o.override
|
203
213
|
end
|
204
214
|
|
205
215
|
# @see the `==` method
|
@@ -211,7 +221,7 @@ module SmoochApi
|
|
211
221
|
# Calculates hash code according to all attributes.
|
212
222
|
# @return [Fixnum] Hash code
|
213
223
|
def hash
|
214
|
-
[role, type, name, email,
|
224
|
+
[role, type, name, email, avatarUrl, metadata, payload, text, mediaUrl, mediaType, items, actions, destination, override].hash
|
215
225
|
end
|
216
226
|
|
217
227
|
# 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
|
@@ -19,7 +19,7 @@ module SmoochApi
|
|
19
19
|
attr_accessor :message
|
20
20
|
|
21
21
|
# List of extra messages created.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :extraMessages
|
23
23
|
|
24
24
|
# The conversation.
|
25
25
|
attr_accessor :conversation
|
@@ -29,7 +29,7 @@ module SmoochApi
|
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'message' => :'message',
|
32
|
-
:'
|
32
|
+
:'extraMessages' => :'extraMessages',
|
33
33
|
:'conversation' => :'conversation'
|
34
34
|
}
|
35
35
|
end
|
@@ -38,7 +38,7 @@ module SmoochApi
|
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
40
|
:'message' => :'Message',
|
41
|
-
:'
|
41
|
+
:'extraMessages' => :'Array<Message>',
|
42
42
|
:'conversation' => :'Conversation'
|
43
43
|
}
|
44
44
|
end
|
@@ -57,7 +57,7 @@ module SmoochApi
|
|
57
57
|
|
58
58
|
if attributes.has_key?(:'extraMessages')
|
59
59
|
if (value = attributes[:'extraMessages']).is_a?(Array)
|
60
|
-
self.
|
60
|
+
self.extraMessages = value
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
@@ -96,7 +96,7 @@ module SmoochApi
|
|
96
96
|
return true if self.equal?(o)
|
97
97
|
self.class == o.class &&
|
98
98
|
message == o.message &&
|
99
|
-
|
99
|
+
extraMessages == o.extraMessages &&
|
100
100
|
conversation == o.conversation
|
101
101
|
end
|
102
102
|
|
@@ -109,7 +109,7 @@ module SmoochApi
|
|
109
109
|
# Calculates hash code according to all attributes.
|
110
110
|
# @return [Fixnum] Hash code
|
111
111
|
def hash
|
112
|
-
[message,
|
112
|
+
[message, extraMessages, conversation].hash
|
113
113
|
end
|
114
114
|
|
115
115
|
# 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,7 +16,7 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class SecretKey
|
18
18
|
# The secret key ID, generated automatically.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
21
|
# The secret itself.
|
22
22
|
attr_accessor :secret
|
@@ -28,7 +28,7 @@ module SmoochApi
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'
|
31
|
+
:'id' => :'_id',
|
32
32
|
:'secret' => :'secret',
|
33
33
|
:'name' => :'name'
|
34
34
|
}
|
@@ -37,7 +37,7 @@ module SmoochApi
|
|
37
37
|
# Attribute type mapping.
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
|
-
:'
|
40
|
+
:'id' => :'String',
|
41
41
|
:'secret' => :'String',
|
42
42
|
:'name' => :'String'
|
43
43
|
}
|
@@ -52,7 +52,7 @@ module SmoochApi
|
|
52
52
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
53
53
|
|
54
54
|
if attributes.has_key?(:'_id')
|
55
|
-
self.
|
55
|
+
self.id = attributes[:'_id']
|
56
56
|
end
|
57
57
|
|
58
58
|
if attributes.has_key?(:'secret')
|
@@ -69,8 +69,8 @@ module SmoochApi
|
|
69
69
|
# @return Array for valid properies with the reasons
|
70
70
|
def list_invalid_properties
|
71
71
|
invalid_properties = Array.new
|
72
|
-
if @
|
73
|
-
invalid_properties.push("invalid value for '
|
72
|
+
if @id.nil?
|
73
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
74
74
|
end
|
75
75
|
|
76
76
|
if @secret.nil?
|
@@ -87,7 +87,7 @@ module SmoochApi
|
|
87
87
|
# Check to see if the all the properties in the model are valid
|
88
88
|
# @return true if the model is valid
|
89
89
|
def valid?
|
90
|
-
return false if @
|
90
|
+
return false if @id.nil?
|
91
91
|
return false if @secret.nil?
|
92
92
|
return false if @name.nil?
|
93
93
|
return true
|
@@ -98,7 +98,7 @@ module SmoochApi
|
|
98
98
|
def ==(o)
|
99
99
|
return true if self.equal?(o)
|
100
100
|
self.class == o.class &&
|
101
|
-
|
101
|
+
id == o.id &&
|
102
102
|
secret == o.secret &&
|
103
103
|
name == o.name
|
104
104
|
end
|
@@ -112,7 +112,7 @@ module SmoochApi
|
|
112
112
|
# Calculates hash code according to all attributes.
|
113
113
|
# @return [Fixnum] Hash code
|
114
114
|
def hash
|
115
|
-
[
|
115
|
+
[id, secret, name].hash
|
116
116
|
end
|
117
117
|
|
118
118
|
# 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
|
@@ -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,7 +16,7 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class ServiceAccount
|
18
18
|
# The service account's ID.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
21
|
# The service account's name.
|
22
22
|
attr_accessor :name
|
@@ -25,7 +25,7 @@ module SmoochApi
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
-
:'
|
28
|
+
:'id' => :'_id',
|
29
29
|
:'name' => :'name'
|
30
30
|
}
|
31
31
|
end
|
@@ -33,7 +33,7 @@ module SmoochApi
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'
|
36
|
+
:'id' => :'String',
|
37
37
|
:'name' => :'String'
|
38
38
|
}
|
39
39
|
end
|
@@ -47,7 +47,7 @@ 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?(:'name')
|
@@ -60,8 +60,8 @@ 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
67
|
if @name.nil?
|
@@ -74,7 +74,7 @@ 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 @
|
77
|
+
return false if @id.nil?
|
78
78
|
return false if @name.nil?
|
79
79
|
return true
|
80
80
|
end
|
@@ -84,7 +84,7 @@ module SmoochApi
|
|
84
84
|
def ==(o)
|
85
85
|
return true if self.equal?(o)
|
86
86
|
self.class == o.class &&
|
87
|
-
|
87
|
+
id == o.id &&
|
88
88
|
name == o.name
|
89
89
|
end
|
90
90
|
|
@@ -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, name].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
|
@@ -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,20 +16,20 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class ServiceAccountResponse
|
18
18
|
# The service account.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :serviceAccount
|
20
20
|
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
25
|
+
:'serviceAccount' => :'serviceAccount'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'serviceAccount' => :'ServiceAccount'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
@@ -42,7 +42,7 @@ module SmoochApi
|
|
42
42
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
43
|
|
44
44
|
if attributes.has_key?(:'serviceAccount')
|
45
|
-
self.
|
45
|
+
self.serviceAccount = attributes[:'serviceAccount']
|
46
46
|
end
|
47
47
|
|
48
48
|
end
|
@@ -65,7 +65,7 @@ module SmoochApi
|
|
65
65
|
def ==(o)
|
66
66
|
return true if self.equal?(o)
|
67
67
|
self.class == o.class &&
|
68
|
-
|
68
|
+
serviceAccount == o.serviceAccount
|
69
69
|
end
|
70
70
|
|
71
71
|
# @see the `==` method
|
@@ -77,7 +77,7 @@ module SmoochApi
|
|
77
77
|
# Calculates hash code according to all attributes.
|
78
78
|
# @return [Fixnum] Hash code
|
79
79
|
def hash
|
80
|
-
[
|
80
|
+
[serviceAccount].hash
|
81
81
|
end
|
82
82
|
|
83
83
|
# Builds the object from hash
|