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
|
data/lib/smooch-api/api_error.rb
CHANGED
@@ -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
|
@@ -37,7 +37,7 @@ module SmoochApi
|
|
37
37
|
attr_accessor :default
|
38
38
|
|
39
39
|
# An icon to render next to the reply option (Facebook Messenger and Web Messenger only).
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :iconUrl
|
41
41
|
|
42
42
|
# The action URI. This is the link that will be used in the clients when clicking the button. Required for *link* and *webview* actions.
|
43
43
|
attr_accessor :uri
|
@@ -49,7 +49,7 @@ module SmoochApi
|
|
49
49
|
attr_accessor :size
|
50
50
|
|
51
51
|
# Extra options to pass directly to the channel API. See [Extra Channel Options](https://docs.smooch.io/rest#extra-channel-options-schema)
|
52
|
-
attr_accessor :
|
52
|
+
attr_accessor :extraChannelOptions
|
53
53
|
|
54
54
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -62,11 +62,11 @@ module SmoochApi
|
|
62
62
|
:'amount' => :'amount',
|
63
63
|
:'currency' => :'currency',
|
64
64
|
:'default' => :'default',
|
65
|
-
:'
|
65
|
+
:'iconUrl' => :'iconUrl',
|
66
66
|
:'uri' => :'uri',
|
67
67
|
:'fallback' => :'fallback',
|
68
68
|
:'size' => :'size',
|
69
|
-
:'
|
69
|
+
:'extraChannelOptions' => :'extraChannelOptions'
|
70
70
|
}
|
71
71
|
end
|
72
72
|
|
@@ -80,11 +80,11 @@ module SmoochApi
|
|
80
80
|
:'amount' => :'Integer',
|
81
81
|
:'currency' => :'String',
|
82
82
|
:'default' => :'BOOLEAN',
|
83
|
-
:'
|
83
|
+
:'iconUrl' => :'String',
|
84
84
|
:'uri' => :'String',
|
85
85
|
:'fallback' => :'String',
|
86
86
|
:'size' => :'String',
|
87
|
-
:'
|
87
|
+
:'extraChannelOptions' => :'Object'
|
88
88
|
}
|
89
89
|
end
|
90
90
|
|
@@ -125,7 +125,7 @@ module SmoochApi
|
|
125
125
|
end
|
126
126
|
|
127
127
|
if attributes.has_key?(:'iconUrl')
|
128
|
-
self.
|
128
|
+
self.iconUrl = attributes[:'iconUrl']
|
129
129
|
end
|
130
130
|
|
131
131
|
if attributes.has_key?(:'uri')
|
@@ -141,7 +141,7 @@ module SmoochApi
|
|
141
141
|
end
|
142
142
|
|
143
143
|
if attributes.has_key?(:'extraChannelOptions')
|
144
|
-
self.
|
144
|
+
self.extraChannelOptions = attributes[:'extraChannelOptions']
|
145
145
|
end
|
146
146
|
|
147
147
|
end
|
@@ -181,11 +181,11 @@ module SmoochApi
|
|
181
181
|
amount == o.amount &&
|
182
182
|
currency == o.currency &&
|
183
183
|
default == o.default &&
|
184
|
-
|
184
|
+
iconUrl == o.iconUrl &&
|
185
185
|
uri == o.uri &&
|
186
186
|
fallback == o.fallback &&
|
187
187
|
size == o.size &&
|
188
|
-
|
188
|
+
extraChannelOptions == o.extraChannelOptions
|
189
189
|
end
|
190
190
|
|
191
191
|
# @see the `==` method
|
@@ -197,7 +197,7 @@ module SmoochApi
|
|
197
197
|
# Calculates hash code according to all attributes.
|
198
198
|
# @return [Fixnum] Hash code
|
199
199
|
def hash
|
200
|
-
[type, text, payload, metadata, amount, currency, default,
|
200
|
+
[type, text, payload, metadata, amount, currency, default, iconUrl, uri, fallback, size, extraChannelOptions].hash
|
201
201
|
end
|
202
202
|
|
203
203
|
# 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 App
|
18
18
|
# The app's ID.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
21
|
# The appToken, used to initialize the Web, iOS and Android clients and to make calls to the app user facing API.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :appToken
|
23
23
|
|
24
24
|
# The app's name.
|
25
25
|
attr_accessor :name
|
@@ -33,8 +33,8 @@ module SmoochApi
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'id' => :'_id',
|
37
|
+
:'appToken' => :'appToken',
|
38
38
|
:'name' => :'name',
|
39
39
|
:'settings' => :'settings',
|
40
40
|
:'metadata' => :'metadata'
|
@@ -44,8 +44,8 @@ module SmoochApi
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.swagger_types
|
46
46
|
{
|
47
|
-
:'
|
48
|
-
:'
|
47
|
+
:'id' => :'String',
|
48
|
+
:'appToken' => :'String',
|
49
49
|
:'name' => :'String',
|
50
50
|
:'settings' => :'AppSettings',
|
51
51
|
:'metadata' => :'Object'
|
@@ -61,11 +61,11 @@ module SmoochApi
|
|
61
61
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
62
62
|
|
63
63
|
if attributes.has_key?(:'_id')
|
64
|
-
self.
|
64
|
+
self.id = attributes[:'_id']
|
65
65
|
end
|
66
66
|
|
67
67
|
if attributes.has_key?(:'appToken')
|
68
|
-
self.
|
68
|
+
self.appToken = attributes[:'appToken']
|
69
69
|
end
|
70
70
|
|
71
71
|
if attributes.has_key?(:'name')
|
@@ -86,12 +86,12 @@ module SmoochApi
|
|
86
86
|
# @return Array for valid properies with the reasons
|
87
87
|
def list_invalid_properties
|
88
88
|
invalid_properties = Array.new
|
89
|
-
if @
|
90
|
-
invalid_properties.push("invalid value for '
|
89
|
+
if @id.nil?
|
90
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
91
91
|
end
|
92
92
|
|
93
|
-
if @
|
94
|
-
invalid_properties.push("invalid value for '
|
93
|
+
if @appToken.nil?
|
94
|
+
invalid_properties.push("invalid value for 'appToken', appToken cannot be nil.")
|
95
95
|
end
|
96
96
|
|
97
97
|
if @name.nil?
|
@@ -104,8 +104,8 @@ module SmoochApi
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
-
return false if @
|
108
|
-
return false if @
|
107
|
+
return false if @id.nil?
|
108
|
+
return false if @appToken.nil?
|
109
109
|
return false if @name.nil?
|
110
110
|
return true
|
111
111
|
end
|
@@ -115,8 +115,8 @@ module SmoochApi
|
|
115
115
|
def ==(o)
|
116
116
|
return true if self.equal?(o)
|
117
117
|
self.class == o.class &&
|
118
|
-
|
119
|
-
|
118
|
+
id == o.id &&
|
119
|
+
appToken == o.appToken &&
|
120
120
|
name == o.name &&
|
121
121
|
settings == o.settings &&
|
122
122
|
metadata == o.metadata
|
@@ -131,7 +131,7 @@ module SmoochApi
|
|
131
131
|
# Calculates hash code according to all attributes.
|
132
132
|
# @return [Fixnum] Hash code
|
133
133
|
def hash
|
134
|
-
[
|
134
|
+
[id, appToken, name, settings, metadata].hash
|
135
135
|
end
|
136
136
|
|
137
137
|
# 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,25 +16,25 @@ module SmoochApi
|
|
16
16
|
# Customizable app settings.
|
17
17
|
class AppSettings
|
18
18
|
# Flag specifying whether credit card numbers will be automatically masked if sent through Smooch.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :maskCreditCardNumbers
|
20
20
|
|
21
21
|
# Flag specifying whether animal names should be used for anonymous users.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :useAnimalNames
|
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
|
+
:'maskCreditCardNumbers' => :'maskCreditCardNumbers',
|
29
|
+
:'useAnimalNames' => :'useAnimalNames'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'maskCreditCardNumbers' => :'BOOLEAN',
|
37
|
+
:'useAnimalNames' => :'BOOLEAN'
|
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?(:'maskCreditCardNumbers')
|
50
|
-
self.
|
50
|
+
self.maskCreditCardNumbers = attributes[:'maskCreditCardNumbers']
|
51
51
|
end
|
52
52
|
|
53
53
|
if attributes.has_key?(:'useAnimalNames')
|
54
|
-
self.
|
54
|
+
self.useAnimalNames = attributes[:'useAnimalNames']
|
55
55
|
end
|
56
56
|
|
57
57
|
end
|
@@ -74,8 +74,8 @@ module SmoochApi
|
|
74
74
|
def ==(o)
|
75
75
|
return true if self.equal?(o)
|
76
76
|
self.class == o.class &&
|
77
|
-
|
78
|
-
|
77
|
+
maskCreditCardNumbers == o.maskCreditCardNumbers &&
|
78
|
+
useAnimalNames == o.useAnimalNames
|
79
79
|
end
|
80
80
|
|
81
81
|
# @see the `==` method
|
@@ -87,7 +87,7 @@ module SmoochApi
|
|
87
87
|
# Calculates hash code according to all attributes.
|
88
88
|
# @return [Fixnum] Hash code
|
89
89
|
def hash
|
90
|
-
[
|
90
|
+
[maskCreditCardNumbers, useAnimalNames].hash
|
91
91
|
end
|
92
92
|
|
93
93
|
# 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,13 +16,13 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class AppUser
|
18
18
|
# The app user's ID, generated automatically.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
21
|
# The app user's userId. This ID is specified by the appMaker.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :userId
|
23
23
|
|
24
24
|
# The app user's given name.
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :givenName
|
26
26
|
|
27
27
|
# The app user's surname.
|
28
28
|
attr_accessor :surname
|
@@ -31,50 +31,50 @@ module SmoochApi
|
|
31
31
|
attr_accessor :email
|
32
32
|
|
33
33
|
# A datetime string with the format *yyyy-mm-ddThh:mm:ssZ* representing the moment an appUser was created.
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :signedUpAt
|
35
35
|
|
36
36
|
# Custom properties for the app user.
|
37
37
|
attr_accessor :properties
|
38
38
|
|
39
39
|
# Flag indicating if the conversation has started for the app user.
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :conversationStarted
|
41
41
|
|
42
42
|
# List of clients associated with the app user.
|
43
43
|
attr_accessor :clients
|
44
44
|
|
45
45
|
# As clients, but containing linked clients which have not been confirmed yet (i.e. Twilio SMS).
|
46
|
-
attr_accessor :
|
46
|
+
attr_accessor :pendingClients
|
47
47
|
|
48
48
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
50
|
def self.attribute_map
|
51
51
|
{
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'
|
52
|
+
:'id' => :'_id',
|
53
|
+
:'userId' => :'userId',
|
54
|
+
:'givenName' => :'givenName',
|
55
55
|
:'surname' => :'surname',
|
56
56
|
:'email' => :'email',
|
57
|
-
:'
|
57
|
+
:'signedUpAt' => :'signedUpAt',
|
58
58
|
:'properties' => :'properties',
|
59
|
-
:'
|
59
|
+
:'conversationStarted' => :'conversationStarted',
|
60
60
|
:'clients' => :'clients',
|
61
|
-
:'
|
61
|
+
:'pendingClients' => :'pendingClients'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
65
65
|
# Attribute type mapping.
|
66
66
|
def self.swagger_types
|
67
67
|
{
|
68
|
-
:'
|
69
|
-
:'
|
70
|
-
:'
|
68
|
+
:'id' => :'String',
|
69
|
+
:'userId' => :'String',
|
70
|
+
:'givenName' => :'String',
|
71
71
|
:'surname' => :'String',
|
72
72
|
:'email' => :'String',
|
73
|
-
:'
|
73
|
+
:'signedUpAt' => :'String',
|
74
74
|
:'properties' => :'Object',
|
75
|
-
:'
|
75
|
+
:'conversationStarted' => :'BOOLEAN',
|
76
76
|
:'clients' => :'Array<Client>',
|
77
|
-
:'
|
77
|
+
:'pendingClients' => :'Array<Client>'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -87,15 +87,15 @@ module SmoochApi
|
|
87
87
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
88
88
|
|
89
89
|
if attributes.has_key?(:'_id')
|
90
|
-
self.
|
90
|
+
self.id = attributes[:'_id']
|
91
91
|
end
|
92
92
|
|
93
93
|
if attributes.has_key?(:'userId')
|
94
|
-
self.
|
94
|
+
self.userId = attributes[:'userId']
|
95
95
|
end
|
96
96
|
|
97
97
|
if attributes.has_key?(:'givenName')
|
98
|
-
self.
|
98
|
+
self.givenName = attributes[:'givenName']
|
99
99
|
end
|
100
100
|
|
101
101
|
if attributes.has_key?(:'surname')
|
@@ -107,7 +107,7 @@ module SmoochApi
|
|
107
107
|
end
|
108
108
|
|
109
109
|
if attributes.has_key?(:'signedUpAt')
|
110
|
-
self.
|
110
|
+
self.signedUpAt = attributes[:'signedUpAt']
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.has_key?(:'properties')
|
@@ -115,7 +115,7 @@ module SmoochApi
|
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.has_key?(:'conversationStarted')
|
118
|
-
self.
|
118
|
+
self.conversationStarted = attributes[:'conversationStarted']
|
119
119
|
end
|
120
120
|
|
121
121
|
if attributes.has_key?(:'clients')
|
@@ -126,7 +126,7 @@ module SmoochApi
|
|
126
126
|
|
127
127
|
if attributes.has_key?(:'pendingClients')
|
128
128
|
if (value = attributes[:'pendingClients']).is_a?(Array)
|
129
|
-
self.
|
129
|
+
self.pendingClients = value
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
@@ -136,16 +136,16 @@ module SmoochApi
|
|
136
136
|
# @return Array for valid properies with the reasons
|
137
137
|
def list_invalid_properties
|
138
138
|
invalid_properties = Array.new
|
139
|
-
if @
|
140
|
-
invalid_properties.push("invalid value for '
|
139
|
+
if @id.nil?
|
140
|
+
invalid_properties.push("invalid value for 'id', id cannot be nil.")
|
141
141
|
end
|
142
142
|
|
143
143
|
if @properties.nil?
|
144
144
|
invalid_properties.push("invalid value for 'properties', properties cannot be nil.")
|
145
145
|
end
|
146
146
|
|
147
|
-
if @
|
148
|
-
invalid_properties.push("invalid value for '
|
147
|
+
if @conversationStarted.nil?
|
148
|
+
invalid_properties.push("invalid value for 'conversationStarted', conversationStarted cannot be nil.")
|
149
149
|
end
|
150
150
|
|
151
151
|
return invalid_properties
|
@@ -154,9 +154,9 @@ module SmoochApi
|
|
154
154
|
# Check to see if the all the properties in the model are valid
|
155
155
|
# @return true if the model is valid
|
156
156
|
def valid?
|
157
|
-
return false if @
|
157
|
+
return false if @id.nil?
|
158
158
|
return false if @properties.nil?
|
159
|
-
return false if @
|
159
|
+
return false if @conversationStarted.nil?
|
160
160
|
return true
|
161
161
|
end
|
162
162
|
|
@@ -165,16 +165,16 @@ module SmoochApi
|
|
165
165
|
def ==(o)
|
166
166
|
return true if self.equal?(o)
|
167
167
|
self.class == o.class &&
|
168
|
-
|
169
|
-
|
170
|
-
|
168
|
+
id == o.id &&
|
169
|
+
userId == o.userId &&
|
170
|
+
givenName == o.givenName &&
|
171
171
|
surname == o.surname &&
|
172
172
|
email == o.email &&
|
173
|
-
|
173
|
+
signedUpAt == o.signedUpAt &&
|
174
174
|
properties == o.properties &&
|
175
|
-
|
175
|
+
conversationStarted == o.conversationStarted &&
|
176
176
|
clients == o.clients &&
|
177
|
-
|
177
|
+
pendingClients == o.pendingClients
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module SmoochApi
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Fixnum] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[id, userId, givenName, surname, email, signedUpAt, properties, conversationStarted, clients, pendingClients].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|