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,46 +19,46 @@ module SmoochApi
|
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
21
|
# Facebook Page Access Token. Required for *messenger* integrations.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :pageAccessToken
|
23
23
|
|
24
24
|
# Facebook App ID OR WeChat App ID. Required for *messenger* and *wechat* integrations.
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :appId
|
26
26
|
|
27
27
|
# Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations.
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :appSecret
|
29
29
|
|
30
30
|
# Twilio Account SID. Required for *twilio* integrations.
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :accountSid
|
32
32
|
|
33
33
|
# Twilio Auth Token. Required for *twilio* integrations.
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :authToken
|
35
35
|
|
36
36
|
# Your WhatsApp API client's URL. Required for *WhatsApp* integrations.
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :baseUrl
|
38
38
|
|
39
39
|
# Specification of a fallback language. (Optional) Used for *WhatsApp* integrations.
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :hsmFallbackLanguage
|
41
41
|
|
42
42
|
# SID for specific phone number. Required for *twilio* integrations.
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :phoneNumberSid
|
44
44
|
|
45
45
|
# Telegram Bot Token OR Viber Public Account token. Required for *twilio* and *viber* integrations.
|
46
46
|
attr_accessor :token
|
47
47
|
|
48
48
|
# LINE Channel ID. Required for *line* integrations.
|
49
|
-
attr_accessor :
|
49
|
+
attr_accessor :channelId
|
50
50
|
|
51
51
|
# LINE Channel Secret. Required for *line* integrations.
|
52
|
-
attr_accessor :
|
52
|
+
attr_accessor :channelSecret
|
53
53
|
|
54
54
|
# LINE Channel Access Token. Required for *line* integrations.
|
55
|
-
attr_accessor :
|
55
|
+
attr_accessor :channelAccessToken
|
56
56
|
|
57
57
|
# AES Encoding Key. (Optional) Used for *wechat* integrations.
|
58
|
-
attr_accessor :
|
58
|
+
attr_accessor :encodingAesKey
|
59
59
|
|
60
60
|
# Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations.
|
61
|
-
attr_accessor :
|
61
|
+
attr_accessor :fromAddress
|
62
62
|
|
63
63
|
# The binary of your APN certificate base64 encoded. Required for *apn* integrations.
|
64
64
|
attr_accessor :certificate
|
@@ -70,127 +70,127 @@ module SmoochApi
|
|
70
70
|
attr_accessor :username
|
71
71
|
|
72
72
|
# Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations.
|
73
|
-
attr_accessor :
|
73
|
+
attr_accessor :autoUpdateBadge
|
74
74
|
|
75
75
|
# Your server key from the fcm console. Required for *fcm* integrations.
|
76
|
-
attr_accessor :
|
76
|
+
attr_accessor :serverKey
|
77
77
|
|
78
78
|
# Your sender id from the fcm console. Required for *fcm* integrations.
|
79
|
-
attr_accessor :
|
79
|
+
attr_accessor :senderId
|
80
80
|
|
81
81
|
# Your Twitter app’s tier. Accepted values are enterprise or premium.
|
82
82
|
attr_accessor :tier
|
83
83
|
|
84
84
|
# The Twitter environment name, e.g.: env-beta. Required for *twitter* integrations with *premium* tier.
|
85
|
-
attr_accessor :
|
85
|
+
attr_accessor :envName
|
86
86
|
|
87
87
|
# The consumer key for your Twitter app. Required for *twitter* integrations.
|
88
|
-
attr_accessor :
|
88
|
+
attr_accessor :consumerKey
|
89
89
|
|
90
90
|
# The consumer secret for your Twitter app. Required for *twitter* integrations.
|
91
|
-
attr_accessor :
|
91
|
+
attr_accessor :consumerSecret
|
92
92
|
|
93
93
|
# The access token key obtained from your user via oauth. Required for *twitter* integrations.
|
94
|
-
attr_accessor :
|
94
|
+
attr_accessor :accessTokenKey
|
95
95
|
|
96
96
|
# The access token secret obtained from your user via oauth. Required for *twitter* integrations.
|
97
|
-
attr_accessor :
|
97
|
+
attr_accessor :accessTokenSecret
|
98
98
|
|
99
99
|
# Optional endpoint to generate access tokens for WeChat. Used to coordinate API access with third party systems.
|
100
|
-
attr_accessor :
|
100
|
+
attr_accessor :accessTokenUrl
|
101
101
|
|
102
102
|
# The public API key of your MessageBird account. Required for *messagebird* integrations.
|
103
|
-
attr_accessor :
|
103
|
+
attr_accessor :accessKey
|
104
104
|
|
105
105
|
# Smooch will receive all messages sent to this phone number. Required for *messagebird* integrations.
|
106
106
|
attr_accessor :originator
|
107
107
|
|
108
108
|
# This color will be used in the messenger header and the button or tab in idle state. (Optional) Used for *Web Messenger* integrations.
|
109
|
-
attr_accessor :
|
109
|
+
attr_accessor :brandColor
|
110
110
|
|
111
111
|
# When `true`, the introduction pane will be pinned at the top of the conversation instead of scrolling with it. The default value is `false`. (Optional) Used for *Web Messenger* integrations.
|
112
|
-
attr_accessor :
|
112
|
+
attr_accessor :fixedIntroPane
|
113
113
|
|
114
114
|
# This color will be used for customer messages, quick replies and actions in the footer. (Optional) Used for *Web Messenger* integrations.
|
115
|
-
attr_accessor :
|
115
|
+
attr_accessor :conversationColor
|
116
116
|
|
117
117
|
# This color will be used for call-to-actions inside your messages. (Optional) Used for *Web Messenger* integrations.
|
118
|
-
attr_accessor :
|
118
|
+
attr_accessor :actionColor
|
119
119
|
|
120
120
|
# Choose how the messenger will appear on your website. Must be either button or tab. (Optional) Used for *Web Messenger* integrations.
|
121
|
-
attr_accessor :
|
121
|
+
attr_accessor :displayStyle
|
122
122
|
|
123
123
|
# With the button style Web Messenger, you have the option of selecting your own button icon. (Optional) Used for *Web Messenger* integrations.
|
124
|
-
attr_accessor :
|
124
|
+
attr_accessor :buttonIconUrl
|
125
125
|
|
126
126
|
# With the button style Web Messenger, you have the option of specifying its width. (Optional) Used for *Web Messenger* integrations.
|
127
|
-
attr_accessor :
|
127
|
+
attr_accessor :buttonWidth
|
128
128
|
|
129
129
|
# With the button style Web Messenger, you have the option of specifying its height. (Optional) Used for *Web Messenger* integrations.
|
130
|
-
attr_accessor :
|
130
|
+
attr_accessor :buttonHeight
|
131
131
|
|
132
132
|
# Array of integration IDs, order will be reflected in the Web Messenger. When set, only integrations from this list will be displayed in the Web Messenger. If unset, all integrations will be displayed (Optional) Used for *Web Messenger* integrations.
|
133
|
-
attr_accessor :
|
133
|
+
attr_accessor :integrationOrder
|
134
134
|
|
135
135
|
# A custom business name for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
|
136
|
-
attr_accessor :
|
136
|
+
attr_accessor :businessName
|
137
137
|
|
138
138
|
# A custom business icon url for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
|
139
|
-
attr_accessor :
|
139
|
+
attr_accessor :businessIconUrl
|
140
140
|
|
141
141
|
# A custom background url for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
|
142
|
-
attr_accessor :
|
142
|
+
attr_accessor :backgroundImageUrl
|
143
143
|
|
144
144
|
# A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454 `scheme \"://\" host [ \":\" port ]`, where scheme is `http` or `https`. (Optional) Used for *Web Messenger* integrations.
|
145
|
-
attr_accessor :
|
145
|
+
attr_accessor :originWhitelist
|
146
146
|
|
147
147
|
|
148
148
|
# Attribute mapping from ruby-style variable name to JSON key.
|
149
149
|
def self.attribute_map
|
150
150
|
{
|
151
151
|
:'type' => :'type',
|
152
|
-
:'
|
153
|
-
:'
|
154
|
-
:'
|
155
|
-
:'
|
156
|
-
:'
|
157
|
-
:'
|
158
|
-
:'
|
159
|
-
:'
|
152
|
+
:'pageAccessToken' => :'pageAccessToken',
|
153
|
+
:'appId' => :'appId',
|
154
|
+
:'appSecret' => :'appSecret',
|
155
|
+
:'accountSid' => :'accountSid',
|
156
|
+
:'authToken' => :'authToken',
|
157
|
+
:'baseUrl' => :'baseUrl',
|
158
|
+
:'hsmFallbackLanguage' => :'hsmFallbackLanguage',
|
159
|
+
:'phoneNumberSid' => :'phoneNumberSid',
|
160
160
|
:'token' => :'token',
|
161
|
-
:'
|
162
|
-
:'
|
163
|
-
:'
|
164
|
-
:'
|
165
|
-
:'
|
161
|
+
:'channelId' => :'channelId',
|
162
|
+
:'channelSecret' => :'channelSecret',
|
163
|
+
:'channelAccessToken' => :'channelAccessToken',
|
164
|
+
:'encodingAesKey' => :'encodingAesKey',
|
165
|
+
:'fromAddress' => :'fromAddress',
|
166
166
|
:'certificate' => :'certificate',
|
167
167
|
:'password' => :'password',
|
168
168
|
:'username' => :'username',
|
169
|
-
:'
|
170
|
-
:'
|
171
|
-
:'
|
169
|
+
:'autoUpdateBadge' => :'autoUpdateBadge',
|
170
|
+
:'serverKey' => :'serverKey',
|
171
|
+
:'senderId' => :'senderId',
|
172
172
|
:'tier' => :'tier',
|
173
|
-
:'
|
174
|
-
:'
|
175
|
-
:'
|
176
|
-
:'
|
177
|
-
:'
|
178
|
-
:'
|
179
|
-
:'
|
173
|
+
:'envName' => :'envName',
|
174
|
+
:'consumerKey' => :'consumerKey',
|
175
|
+
:'consumerSecret' => :'consumerSecret',
|
176
|
+
:'accessTokenKey' => :'accessTokenKey',
|
177
|
+
:'accessTokenSecret' => :'accessTokenSecret',
|
178
|
+
:'accessTokenUrl' => :'accessTokenUrl',
|
179
|
+
:'accessKey' => :'accessKey',
|
180
180
|
:'originator' => :'originator',
|
181
|
-
:'
|
182
|
-
:'
|
183
|
-
:'
|
184
|
-
:'
|
185
|
-
:'
|
186
|
-
:'
|
187
|
-
:'
|
188
|
-
:'
|
189
|
-
:'
|
190
|
-
:'
|
191
|
-
:'
|
192
|
-
:'
|
193
|
-
:'
|
181
|
+
:'brandColor' => :'brandColor',
|
182
|
+
:'fixedIntroPane' => :'fixedIntroPane',
|
183
|
+
:'conversationColor' => :'conversationColor',
|
184
|
+
:'actionColor' => :'actionColor',
|
185
|
+
:'displayStyle' => :'displayStyle',
|
186
|
+
:'buttonIconUrl' => :'buttonIconUrl',
|
187
|
+
:'buttonWidth' => :'buttonWidth',
|
188
|
+
:'buttonHeight' => :'buttonHeight',
|
189
|
+
:'integrationOrder' => :'integrationOrder',
|
190
|
+
:'businessName' => :'businessName',
|
191
|
+
:'businessIconUrl' => :'businessIconUrl',
|
192
|
+
:'backgroundImageUrl' => :'backgroundImageUrl',
|
193
|
+
:'originWhitelist' => :'originWhitelist'
|
194
194
|
}
|
195
195
|
end
|
196
196
|
|
@@ -198,48 +198,48 @@ module SmoochApi
|
|
198
198
|
def self.swagger_types
|
199
199
|
{
|
200
200
|
:'type' => :'String',
|
201
|
-
:'
|
202
|
-
:'
|
203
|
-
:'
|
204
|
-
:'
|
205
|
-
:'
|
206
|
-
:'
|
207
|
-
:'
|
208
|
-
:'
|
201
|
+
:'pageAccessToken' => :'String',
|
202
|
+
:'appId' => :'String',
|
203
|
+
:'appSecret' => :'String',
|
204
|
+
:'accountSid' => :'String',
|
205
|
+
:'authToken' => :'String',
|
206
|
+
:'baseUrl' => :'String',
|
207
|
+
:'hsmFallbackLanguage' => :'String',
|
208
|
+
:'phoneNumberSid' => :'String',
|
209
209
|
:'token' => :'String',
|
210
|
-
:'
|
211
|
-
:'
|
212
|
-
:'
|
213
|
-
:'
|
214
|
-
:'
|
210
|
+
:'channelId' => :'String',
|
211
|
+
:'channelSecret' => :'String',
|
212
|
+
:'channelAccessToken' => :'String',
|
213
|
+
:'encodingAesKey' => :'String',
|
214
|
+
:'fromAddress' => :'String',
|
215
215
|
:'certificate' => :'String',
|
216
216
|
:'password' => :'String',
|
217
217
|
:'username' => :'String',
|
218
|
-
:'
|
219
|
-
:'
|
220
|
-
:'
|
218
|
+
:'autoUpdateBadge' => :'BOOLEAN',
|
219
|
+
:'serverKey' => :'String',
|
220
|
+
:'senderId' => :'String',
|
221
221
|
:'tier' => :'String',
|
222
|
-
:'
|
223
|
-
:'
|
224
|
-
:'
|
225
|
-
:'
|
226
|
-
:'
|
227
|
-
:'
|
228
|
-
:'
|
222
|
+
:'envName' => :'String',
|
223
|
+
:'consumerKey' => :'String',
|
224
|
+
:'consumerSecret' => :'String',
|
225
|
+
:'accessTokenKey' => :'String',
|
226
|
+
:'accessTokenSecret' => :'String',
|
227
|
+
:'accessTokenUrl' => :'String',
|
228
|
+
:'accessKey' => :'String',
|
229
229
|
:'originator' => :'String',
|
230
|
-
:'
|
231
|
-
:'
|
232
|
-
:'
|
233
|
-
:'
|
234
|
-
:'
|
235
|
-
:'
|
236
|
-
:'
|
237
|
-
:'
|
238
|
-
:'
|
239
|
-
:'
|
240
|
-
:'
|
241
|
-
:'
|
242
|
-
:'
|
230
|
+
:'brandColor' => :'String',
|
231
|
+
:'fixedIntroPane' => :'BOOLEAN',
|
232
|
+
:'conversationColor' => :'String',
|
233
|
+
:'actionColor' => :'String',
|
234
|
+
:'displayStyle' => :'String',
|
235
|
+
:'buttonIconUrl' => :'String',
|
236
|
+
:'buttonWidth' => :'String',
|
237
|
+
:'buttonHeight' => :'String',
|
238
|
+
:'integrationOrder' => :'Array<String>',
|
239
|
+
:'businessName' => :'String',
|
240
|
+
:'businessIconUrl' => :'String',
|
241
|
+
:'backgroundImageUrl' => :'String',
|
242
|
+
:'originWhitelist' => :'Array<String>'
|
243
243
|
}
|
244
244
|
end
|
245
245
|
|
@@ -256,35 +256,35 @@ module SmoochApi
|
|
256
256
|
end
|
257
257
|
|
258
258
|
if attributes.has_key?(:'pageAccessToken')
|
259
|
-
self.
|
259
|
+
self.pageAccessToken = attributes[:'pageAccessToken']
|
260
260
|
end
|
261
261
|
|
262
262
|
if attributes.has_key?(:'appId')
|
263
|
-
self.
|
263
|
+
self.appId = attributes[:'appId']
|
264
264
|
end
|
265
265
|
|
266
266
|
if attributes.has_key?(:'appSecret')
|
267
|
-
self.
|
267
|
+
self.appSecret = attributes[:'appSecret']
|
268
268
|
end
|
269
269
|
|
270
270
|
if attributes.has_key?(:'accountSid')
|
271
|
-
self.
|
271
|
+
self.accountSid = attributes[:'accountSid']
|
272
272
|
end
|
273
273
|
|
274
274
|
if attributes.has_key?(:'authToken')
|
275
|
-
self.
|
275
|
+
self.authToken = attributes[:'authToken']
|
276
276
|
end
|
277
277
|
|
278
278
|
if attributes.has_key?(:'baseUrl')
|
279
|
-
self.
|
279
|
+
self.baseUrl = attributes[:'baseUrl']
|
280
280
|
end
|
281
281
|
|
282
282
|
if attributes.has_key?(:'hsmFallbackLanguage')
|
283
|
-
self.
|
283
|
+
self.hsmFallbackLanguage = attributes[:'hsmFallbackLanguage']
|
284
284
|
end
|
285
285
|
|
286
286
|
if attributes.has_key?(:'phoneNumberSid')
|
287
|
-
self.
|
287
|
+
self.phoneNumberSid = attributes[:'phoneNumberSid']
|
288
288
|
end
|
289
289
|
|
290
290
|
if attributes.has_key?(:'token')
|
@@ -292,23 +292,23 @@ module SmoochApi
|
|
292
292
|
end
|
293
293
|
|
294
294
|
if attributes.has_key?(:'channelId')
|
295
|
-
self.
|
295
|
+
self.channelId = attributes[:'channelId']
|
296
296
|
end
|
297
297
|
|
298
298
|
if attributes.has_key?(:'channelSecret')
|
299
|
-
self.
|
299
|
+
self.channelSecret = attributes[:'channelSecret']
|
300
300
|
end
|
301
301
|
|
302
302
|
if attributes.has_key?(:'channelAccessToken')
|
303
|
-
self.
|
303
|
+
self.channelAccessToken = attributes[:'channelAccessToken']
|
304
304
|
end
|
305
305
|
|
306
306
|
if attributes.has_key?(:'encodingAesKey')
|
307
|
-
self.
|
307
|
+
self.encodingAesKey = attributes[:'encodingAesKey']
|
308
308
|
end
|
309
309
|
|
310
310
|
if attributes.has_key?(:'fromAddress')
|
311
|
-
self.
|
311
|
+
self.fromAddress = attributes[:'fromAddress']
|
312
312
|
end
|
313
313
|
|
314
314
|
if attributes.has_key?(:'certificate')
|
@@ -324,15 +324,15 @@ module SmoochApi
|
|
324
324
|
end
|
325
325
|
|
326
326
|
if attributes.has_key?(:'autoUpdateBadge')
|
327
|
-
self.
|
327
|
+
self.autoUpdateBadge = attributes[:'autoUpdateBadge']
|
328
328
|
end
|
329
329
|
|
330
330
|
if attributes.has_key?(:'serverKey')
|
331
|
-
self.
|
331
|
+
self.serverKey = attributes[:'serverKey']
|
332
332
|
end
|
333
333
|
|
334
334
|
if attributes.has_key?(:'senderId')
|
335
|
-
self.
|
335
|
+
self.senderId = attributes[:'senderId']
|
336
336
|
end
|
337
337
|
|
338
338
|
if attributes.has_key?(:'tier')
|
@@ -340,31 +340,31 @@ module SmoochApi
|
|
340
340
|
end
|
341
341
|
|
342
342
|
if attributes.has_key?(:'envName')
|
343
|
-
self.
|
343
|
+
self.envName = attributes[:'envName']
|
344
344
|
end
|
345
345
|
|
346
346
|
if attributes.has_key?(:'consumerKey')
|
347
|
-
self.
|
347
|
+
self.consumerKey = attributes[:'consumerKey']
|
348
348
|
end
|
349
349
|
|
350
350
|
if attributes.has_key?(:'consumerSecret')
|
351
|
-
self.
|
351
|
+
self.consumerSecret = attributes[:'consumerSecret']
|
352
352
|
end
|
353
353
|
|
354
354
|
if attributes.has_key?(:'accessTokenKey')
|
355
|
-
self.
|
355
|
+
self.accessTokenKey = attributes[:'accessTokenKey']
|
356
356
|
end
|
357
357
|
|
358
358
|
if attributes.has_key?(:'accessTokenSecret')
|
359
|
-
self.
|
359
|
+
self.accessTokenSecret = attributes[:'accessTokenSecret']
|
360
360
|
end
|
361
361
|
|
362
362
|
if attributes.has_key?(:'accessTokenUrl')
|
363
|
-
self.
|
363
|
+
self.accessTokenUrl = attributes[:'accessTokenUrl']
|
364
364
|
end
|
365
365
|
|
366
366
|
if attributes.has_key?(:'accessKey')
|
367
|
-
self.
|
367
|
+
self.accessKey = attributes[:'accessKey']
|
368
368
|
end
|
369
369
|
|
370
370
|
if attributes.has_key?(:'originator')
|
@@ -372,58 +372,58 @@ module SmoochApi
|
|
372
372
|
end
|
373
373
|
|
374
374
|
if attributes.has_key?(:'brandColor')
|
375
|
-
self.
|
375
|
+
self.brandColor = attributes[:'brandColor']
|
376
376
|
end
|
377
377
|
|
378
378
|
if attributes.has_key?(:'fixedIntroPane')
|
379
|
-
self.
|
379
|
+
self.fixedIntroPane = attributes[:'fixedIntroPane']
|
380
380
|
end
|
381
381
|
|
382
382
|
if attributes.has_key?(:'conversationColor')
|
383
|
-
self.
|
383
|
+
self.conversationColor = attributes[:'conversationColor']
|
384
384
|
end
|
385
385
|
|
386
386
|
if attributes.has_key?(:'actionColor')
|
387
|
-
self.
|
387
|
+
self.actionColor = attributes[:'actionColor']
|
388
388
|
end
|
389
389
|
|
390
390
|
if attributes.has_key?(:'displayStyle')
|
391
|
-
self.
|
391
|
+
self.displayStyle = attributes[:'displayStyle']
|
392
392
|
end
|
393
393
|
|
394
394
|
if attributes.has_key?(:'buttonIconUrl')
|
395
|
-
self.
|
395
|
+
self.buttonIconUrl = attributes[:'buttonIconUrl']
|
396
396
|
end
|
397
397
|
|
398
398
|
if attributes.has_key?(:'buttonWidth')
|
399
|
-
self.
|
399
|
+
self.buttonWidth = attributes[:'buttonWidth']
|
400
400
|
end
|
401
401
|
|
402
402
|
if attributes.has_key?(:'buttonHeight')
|
403
|
-
self.
|
403
|
+
self.buttonHeight = attributes[:'buttonHeight']
|
404
404
|
end
|
405
405
|
|
406
406
|
if attributes.has_key?(:'integrationOrder')
|
407
407
|
if (value = attributes[:'integrationOrder']).is_a?(Array)
|
408
|
-
self.
|
408
|
+
self.integrationOrder = value
|
409
409
|
end
|
410
410
|
end
|
411
411
|
|
412
412
|
if attributes.has_key?(:'businessName')
|
413
|
-
self.
|
413
|
+
self.businessName = attributes[:'businessName']
|
414
414
|
end
|
415
415
|
|
416
416
|
if attributes.has_key?(:'businessIconUrl')
|
417
|
-
self.
|
417
|
+
self.businessIconUrl = attributes[:'businessIconUrl']
|
418
418
|
end
|
419
419
|
|
420
420
|
if attributes.has_key?(:'backgroundImageUrl')
|
421
|
-
self.
|
421
|
+
self.backgroundImageUrl = attributes[:'backgroundImageUrl']
|
422
422
|
end
|
423
423
|
|
424
424
|
if attributes.has_key?(:'originWhitelist')
|
425
425
|
if (value = attributes[:'originWhitelist']).is_a?(Array)
|
426
|
-
self.
|
426
|
+
self.originWhitelist = value
|
427
427
|
end
|
428
428
|
end
|
429
429
|
|
@@ -453,48 +453,48 @@ module SmoochApi
|
|
453
453
|
return true if self.equal?(o)
|
454
454
|
self.class == o.class &&
|
455
455
|
type == o.type &&
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
456
|
+
pageAccessToken == o.pageAccessToken &&
|
457
|
+
appId == o.appId &&
|
458
|
+
appSecret == o.appSecret &&
|
459
|
+
accountSid == o.accountSid &&
|
460
|
+
authToken == o.authToken &&
|
461
|
+
baseUrl == o.baseUrl &&
|
462
|
+
hsmFallbackLanguage == o.hsmFallbackLanguage &&
|
463
|
+
phoneNumberSid == o.phoneNumberSid &&
|
464
464
|
token == o.token &&
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
465
|
+
channelId == o.channelId &&
|
466
|
+
channelSecret == o.channelSecret &&
|
467
|
+
channelAccessToken == o.channelAccessToken &&
|
468
|
+
encodingAesKey == o.encodingAesKey &&
|
469
|
+
fromAddress == o.fromAddress &&
|
470
470
|
certificate == o.certificate &&
|
471
471
|
password == o.password &&
|
472
472
|
username == o.username &&
|
473
|
-
|
474
|
-
|
475
|
-
|
473
|
+
autoUpdateBadge == o.autoUpdateBadge &&
|
474
|
+
serverKey == o.serverKey &&
|
475
|
+
senderId == o.senderId &&
|
476
476
|
tier == o.tier &&
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
477
|
+
envName == o.envName &&
|
478
|
+
consumerKey == o.consumerKey &&
|
479
|
+
consumerSecret == o.consumerSecret &&
|
480
|
+
accessTokenKey == o.accessTokenKey &&
|
481
|
+
accessTokenSecret == o.accessTokenSecret &&
|
482
|
+
accessTokenUrl == o.accessTokenUrl &&
|
483
|
+
accessKey == o.accessKey &&
|
484
484
|
originator == o.originator &&
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
485
|
+
brandColor == o.brandColor &&
|
486
|
+
fixedIntroPane == o.fixedIntroPane &&
|
487
|
+
conversationColor == o.conversationColor &&
|
488
|
+
actionColor == o.actionColor &&
|
489
|
+
displayStyle == o.displayStyle &&
|
490
|
+
buttonIconUrl == o.buttonIconUrl &&
|
491
|
+
buttonWidth == o.buttonWidth &&
|
492
|
+
buttonHeight == o.buttonHeight &&
|
493
|
+
integrationOrder == o.integrationOrder &&
|
494
|
+
businessName == o.businessName &&
|
495
|
+
businessIconUrl == o.businessIconUrl &&
|
496
|
+
backgroundImageUrl == o.backgroundImageUrl &&
|
497
|
+
originWhitelist == o.originWhitelist
|
498
498
|
end
|
499
499
|
|
500
500
|
# @see the `==` method
|
@@ -506,7 +506,7 @@ module SmoochApi
|
|
506
506
|
# Calculates hash code according to all attributes.
|
507
507
|
# @return [Fixnum] Hash code
|
508
508
|
def hash
|
509
|
-
[type,
|
509
|
+
[type, pageAccessToken, appId, appSecret, accountSid, authToken, baseUrl, hsmFallbackLanguage, phoneNumberSid, token, channelId, channelSecret, channelAccessToken, encodingAesKey, fromAddress, certificate, password, username, autoUpdateBadge, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, accessTokenUrl, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist].hash
|
510
510
|
end
|
511
511
|
|
512
512
|
# Builds the object from hash
|