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
|
@@ -19,7 +19,7 @@ module SmoochApi
|
|
19
19
|
attr_accessor :apps
|
20
20
|
|
21
21
|
# Flag indicating if there are more apps that are not present in the response.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :hasMore
|
23
23
|
|
24
24
|
# The number of app records skipped in the returned list.
|
25
25
|
attr_accessor :offset
|
@@ -29,7 +29,7 @@ module SmoochApi
|
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'apps' => :'apps',
|
32
|
-
:'
|
32
|
+
:'hasMore' => :'hasMore',
|
33
33
|
:'offset' => :'offset'
|
34
34
|
}
|
35
35
|
end
|
@@ -38,7 +38,7 @@ module SmoochApi
|
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
40
|
:'apps' => :'Array<App>',
|
41
|
-
:'
|
41
|
+
:'hasMore' => :'BOOLEAN',
|
42
42
|
:'offset' => :'Integer'
|
43
43
|
}
|
44
44
|
end
|
@@ -58,7 +58,7 @@ module SmoochApi
|
|
58
58
|
end
|
59
59
|
|
60
60
|
if attributes.has_key?(:'hasMore')
|
61
|
-
self.
|
61
|
+
self.hasMore = attributes[:'hasMore']
|
62
62
|
end
|
63
63
|
|
64
64
|
if attributes.has_key?(:'offset')
|
@@ -86,7 +86,7 @@ module SmoochApi
|
|
86
86
|
return true if self.equal?(o)
|
87
87
|
self.class == o.class &&
|
88
88
|
apps == o.apps &&
|
89
|
-
|
89
|
+
hasMore == o.hasMore &&
|
90
90
|
offset == o.offset
|
91
91
|
end
|
92
92
|
|
@@ -99,7 +99,7 @@ module SmoochApi
|
|
99
99
|
# Calculates hash code according to all attributes.
|
100
100
|
# @return [Fixnum] Hash code
|
101
101
|
def hash
|
102
|
-
[apps,
|
102
|
+
[apps, hasMore, offset].hash
|
103
103
|
end
|
104
104
|
|
105
105
|
# 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,10 +16,10 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class ListServiceAccountsResponse
|
18
18
|
# The list of service accounts.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :serviceAccounts
|
20
20
|
|
21
21
|
# Flag indicating if there are more service accounts that are not present in the response.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :hasMore
|
23
23
|
|
24
24
|
# The number of service account records skipped in the returned list.
|
25
25
|
attr_accessor :offset
|
@@ -28,8 +28,8 @@ module SmoochApi
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'
|
32
|
-
:'
|
31
|
+
:'serviceAccounts' => :'serviceAccounts',
|
32
|
+
:'hasMore' => :'hasMore',
|
33
33
|
:'offset' => :'offset'
|
34
34
|
}
|
35
35
|
end
|
@@ -37,8 +37,8 @@ module SmoochApi
|
|
37
37
|
# Attribute type mapping.
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
|
-
:'
|
41
|
-
:'
|
40
|
+
:'serviceAccounts' => :'Array<ServiceAccount>',
|
41
|
+
:'hasMore' => :'BOOLEAN',
|
42
42
|
:'offset' => :'Integer'
|
43
43
|
}
|
44
44
|
end
|
@@ -53,12 +53,12 @@ module SmoochApi
|
|
53
53
|
|
54
54
|
if attributes.has_key?(:'serviceAccounts')
|
55
55
|
if (value = attributes[:'serviceAccounts']).is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.serviceAccounts = value
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
if attributes.has_key?(:'hasMore')
|
61
|
-
self.
|
61
|
+
self.hasMore = attributes[:'hasMore']
|
62
62
|
end
|
63
63
|
|
64
64
|
if attributes.has_key?(:'offset')
|
@@ -85,8 +85,8 @@ module SmoochApi
|
|
85
85
|
def ==(o)
|
86
86
|
return true if self.equal?(o)
|
87
87
|
self.class == o.class &&
|
88
|
-
|
89
|
-
|
88
|
+
serviceAccounts == o.serviceAccounts &&
|
89
|
+
hasMore == o.hasMore &&
|
90
90
|
offset == o.offset
|
91
91
|
end
|
92
92
|
|
@@ -99,7 +99,7 @@ module SmoochApi
|
|
99
99
|
# Calculates hash code according to all attributes.
|
100
100
|
# @return [Fixnum] Hash code
|
101
101
|
def hash
|
102
|
-
[
|
102
|
+
[serviceAccounts, hasMore, offset].hash
|
103
103
|
end
|
104
104
|
|
105
105
|
# 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 :templates
|
20
20
|
|
21
21
|
# Flag indicating if there are more templates that are not present in the response.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :hasMore
|
23
23
|
|
24
24
|
# The number of template records skipped in the returned list.
|
25
25
|
attr_accessor :offset
|
@@ -29,7 +29,7 @@ module SmoochApi
|
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'templates' => :'templates',
|
32
|
-
:'
|
32
|
+
:'hasMore' => :'hasMore',
|
33
33
|
:'offset' => :'offset'
|
34
34
|
}
|
35
35
|
end
|
@@ -38,7 +38,7 @@ module SmoochApi
|
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
40
|
:'templates' => :'Array<Template>',
|
41
|
-
:'
|
41
|
+
:'hasMore' => :'BOOLEAN',
|
42
42
|
:'offset' => :'Integer'
|
43
43
|
}
|
44
44
|
end
|
@@ -58,7 +58,7 @@ module SmoochApi
|
|
58
58
|
end
|
59
59
|
|
60
60
|
if attributes.has_key?(:'hasMore')
|
61
|
-
self.
|
61
|
+
self.hasMore = attributes[:'hasMore']
|
62
62
|
end
|
63
63
|
|
64
64
|
if attributes.has_key?(:'offset')
|
@@ -91,7 +91,7 @@ module SmoochApi
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
templates == o.templates &&
|
94
|
-
|
94
|
+
hasMore == o.hasMore &&
|
95
95
|
offset == o.offset
|
96
96
|
end
|
97
97
|
|
@@ -104,7 +104,7 @@ module SmoochApi
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Fixnum] Hash code
|
106
106
|
def hash
|
107
|
-
[templates,
|
107
|
+
[templates, hasMore, offset].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# 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
|
@@ -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,10 +16,10 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class Message
|
18
18
|
# The message ID, generated automatically.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
21
|
# The ID of the message's author.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :authorId
|
23
23
|
|
24
24
|
# The role of the individual posting the message. Can be either *appUser* or *appMaker*.
|
25
25
|
attr_accessor :role
|
@@ -40,16 +40,16 @@ module SmoochApi
|
|
40
40
|
attr_accessor :email
|
41
41
|
|
42
42
|
# The URL of the desired message avatar image.
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :avatarUrl
|
44
44
|
|
45
45
|
# The unix timestamp of the moment the message was received.
|
46
46
|
attr_accessor :received
|
47
47
|
|
48
48
|
# The mediaUrl for the message. Required for image/file messages.
|
49
|
-
attr_accessor :
|
49
|
+
attr_accessor :mediaUrl
|
50
50
|
|
51
51
|
# The mediaType for the message. Required for image/file messages.
|
52
|
-
attr_accessor :
|
52
|
+
attr_accessor :mediaType
|
53
53
|
|
54
54
|
# Flat JSON object containing any custom properties associated with the message.
|
55
55
|
attr_accessor :metadata
|
@@ -64,52 +64,52 @@ module SmoochApi
|
|
64
64
|
attr_accessor :payload
|
65
65
|
|
66
66
|
# Settings to adjust the carousel layout. See [Display Settings](https://docs.smooch.io/rest/#display-settings).
|
67
|
-
attr_accessor :
|
67
|
+
attr_accessor :displaySettings
|
68
68
|
|
69
69
|
|
70
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
71
|
def self.attribute_map
|
72
72
|
{
|
73
|
-
:'
|
74
|
-
:'
|
73
|
+
:'id' => :'_id',
|
74
|
+
:'authorId' => :'authorId',
|
75
75
|
:'role' => :'role',
|
76
76
|
:'type' => :'type',
|
77
77
|
:'source' => :'source',
|
78
78
|
:'name' => :'name',
|
79
79
|
:'text' => :'text',
|
80
80
|
:'email' => :'email',
|
81
|
-
:'
|
81
|
+
:'avatarUrl' => :'avatarUrl',
|
82
82
|
:'received' => :'received',
|
83
|
-
:'
|
84
|
-
:'
|
83
|
+
:'mediaUrl' => :'mediaUrl',
|
84
|
+
:'mediaType' => :'mediaType',
|
85
85
|
:'metadata' => :'metadata',
|
86
86
|
:'items' => :'items',
|
87
87
|
:'actions' => :'actions',
|
88
88
|
:'payload' => :'payload',
|
89
|
-
:'
|
89
|
+
:'displaySettings' => :'displaySettings'
|
90
90
|
}
|
91
91
|
end
|
92
92
|
|
93
93
|
# Attribute type mapping.
|
94
94
|
def self.swagger_types
|
95
95
|
{
|
96
|
-
:'
|
97
|
-
:'
|
96
|
+
:'id' => :'String',
|
97
|
+
:'authorId' => :'String',
|
98
98
|
:'role' => :'String',
|
99
99
|
:'type' => :'String',
|
100
100
|
:'source' => :'Source',
|
101
101
|
:'name' => :'String',
|
102
102
|
:'text' => :'String',
|
103
103
|
:'email' => :'String',
|
104
|
-
:'
|
104
|
+
:'avatarUrl' => :'String',
|
105
105
|
:'received' => :'Float',
|
106
|
-
:'
|
107
|
-
:'
|
106
|
+
:'mediaUrl' => :'String',
|
107
|
+
:'mediaType' => :'String',
|
108
108
|
:'metadata' => :'Object',
|
109
109
|
:'items' => :'Array<MessageItem>',
|
110
110
|
:'actions' => :'Array<Action>',
|
111
111
|
:'payload' => :'String',
|
112
|
-
:'
|
112
|
+
:'displaySettings' => :'DisplaySettings'
|
113
113
|
}
|
114
114
|
end
|
115
115
|
|
@@ -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?(:'_id')
|
125
|
-
self.
|
125
|
+
self.id = attributes[:'_id']
|
126
126
|
end
|
127
127
|
|
128
128
|
if attributes.has_key?(:'authorId')
|
129
|
-
self.
|
129
|
+
self.authorId = attributes[:'authorId']
|
130
130
|
end
|
131
131
|
|
132
132
|
if attributes.has_key?(:'role')
|
@@ -154,7 +154,7 @@ module SmoochApi
|
|
154
154
|
end
|
155
155
|
|
156
156
|
if attributes.has_key?(:'avatarUrl')
|
157
|
-
self.
|
157
|
+
self.avatarUrl = attributes[:'avatarUrl']
|
158
158
|
end
|
159
159
|
|
160
160
|
if attributes.has_key?(:'received')
|
@@ -162,11 +162,11 @@ module SmoochApi
|
|
162
162
|
end
|
163
163
|
|
164
164
|
if attributes.has_key?(:'mediaUrl')
|
165
|
-
self.
|
165
|
+
self.mediaUrl = attributes[:'mediaUrl']
|
166
166
|
end
|
167
167
|
|
168
168
|
if attributes.has_key?(:'mediaType')
|
169
|
-
self.
|
169
|
+
self.mediaType = attributes[:'mediaType']
|
170
170
|
end
|
171
171
|
|
172
172
|
if attributes.has_key?(:'metadata')
|
@@ -190,7 +190,7 @@ module SmoochApi
|
|
190
190
|
end
|
191
191
|
|
192
192
|
if attributes.has_key?(:'displaySettings')
|
193
|
-
self.
|
193
|
+
self.displaySettings = attributes[:'displaySettings']
|
194
194
|
end
|
195
195
|
|
196
196
|
end
|
@@ -199,12 +199,12 @@ module SmoochApi
|
|
199
199
|
# @return Array for valid properies with the reasons
|
200
200
|
def list_invalid_properties
|
201
201
|
invalid_properties = Array.new
|
202
|
-
if @
|
203
|
-
invalid_properties.push("invalid value for '
|
202
|
+
if @id.nil?
|
203
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
204
204
|
end
|
205
205
|
|
206
|
-
if @
|
207
|
-
invalid_properties.push("invalid value for '
|
206
|
+
if @authorId.nil?
|
207
|
+
invalid_properties.push("invalid value for 'authorId', authorId cannot be nil.")
|
208
208
|
end
|
209
209
|
|
210
210
|
if @role.nil?
|
@@ -223,8 +223,8 @@ module SmoochApi
|
|
223
223
|
invalid_properties.push("invalid value for 'text', text cannot be nil.")
|
224
224
|
end
|
225
225
|
|
226
|
-
if @
|
227
|
-
invalid_properties.push("invalid value for '
|
226
|
+
if @avatarUrl.nil?
|
227
|
+
invalid_properties.push("invalid value for 'avatarUrl', avatarUrl cannot be nil.")
|
228
228
|
end
|
229
229
|
|
230
230
|
if @received.nil?
|
@@ -237,13 +237,13 @@ module SmoochApi
|
|
237
237
|
# Check to see if the all the properties in the model are valid
|
238
238
|
# @return true if the model is valid
|
239
239
|
def valid?
|
240
|
-
return false if @
|
241
|
-
return false if @
|
240
|
+
return false if @id.nil?
|
241
|
+
return false if @authorId.nil?
|
242
242
|
return false if @role.nil?
|
243
243
|
return false if @type.nil?
|
244
244
|
return false if @name.nil?
|
245
245
|
return false if @text.nil?
|
246
|
-
return false if @
|
246
|
+
return false if @avatarUrl.nil?
|
247
247
|
return false if @received.nil?
|
248
248
|
return true
|
249
249
|
end
|
@@ -253,23 +253,23 @@ module SmoochApi
|
|
253
253
|
def ==(o)
|
254
254
|
return true if self.equal?(o)
|
255
255
|
self.class == o.class &&
|
256
|
-
|
257
|
-
|
256
|
+
id == o.id &&
|
257
|
+
authorId == o.authorId &&
|
258
258
|
role == o.role &&
|
259
259
|
type == o.type &&
|
260
260
|
source == o.source &&
|
261
261
|
name == o.name &&
|
262
262
|
text == o.text &&
|
263
263
|
email == o.email &&
|
264
|
-
|
264
|
+
avatarUrl == o.avatarUrl &&
|
265
265
|
received == o.received &&
|
266
|
-
|
267
|
-
|
266
|
+
mediaUrl == o.mediaUrl &&
|
267
|
+
mediaType == o.mediaType &&
|
268
268
|
metadata == o.metadata &&
|
269
269
|
items == o.items &&
|
270
270
|
actions == o.actions &&
|
271
271
|
payload == o.payload &&
|
272
|
-
|
272
|
+
displaySettings == o.displaySettings
|
273
273
|
end
|
274
274
|
|
275
275
|
# @see the `==` method
|
@@ -281,7 +281,7 @@ module SmoochApi
|
|
281
281
|
# Calculates hash code according to all attributes.
|
282
282
|
# @return [Fixnum] Hash code
|
283
283
|
def hash
|
284
|
-
[
|
284
|
+
[id, authorId, role, type, source, name, text, email, avatarUrl, received, mediaUrl, mediaType, metadata, items, actions, payload, displaySettings].hash
|
285
285
|
end
|
286
286
|
|
287
287
|
# Builds the object from hash
|