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
|
# URL where the business' profile photo is hosted. WhatsApp recommends an image with dimensions of 640x640 and max size of 63KB.
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :photoUrl
|
32
32
|
|
33
33
|
# Industry of the business. Maximum of 128 characters.
|
34
34
|
attr_accessor :vertical
|
@@ -44,7 +44,7 @@ module SmoochApi
|
|
44
44
|
:'address' => :'address',
|
45
45
|
:'description' => :'description',
|
46
46
|
:'email' => :'email',
|
47
|
-
:'
|
47
|
+
:'photoUrl' => :'photoUrl',
|
48
48
|
:'vertical' => :'vertical',
|
49
49
|
:'websites' => :'websites'
|
50
50
|
}
|
@@ -57,7 +57,7 @@ module SmoochApi
|
|
57
57
|
:'address' => :'String',
|
58
58
|
:'description' => :'String',
|
59
59
|
:'email' => :'String',
|
60
|
-
:'
|
60
|
+
:'photoUrl' => :'String',
|
61
61
|
:'vertical' => :'String',
|
62
62
|
:'websites' => :'Array<String>'
|
63
63
|
}
|
@@ -88,7 +88,7 @@ module SmoochApi
|
|
88
88
|
end
|
89
89
|
|
90
90
|
if attributes.has_key?(:'photoUrl')
|
91
|
-
self.
|
91
|
+
self.photoUrl = attributes[:'photoUrl']
|
92
92
|
end
|
93
93
|
|
94
94
|
if attributes.has_key?(:'vertical')
|
@@ -125,7 +125,7 @@ module SmoochApi
|
|
125
125
|
address == o.address &&
|
126
126
|
description == o.description &&
|
127
127
|
email == o.email &&
|
128
|
-
|
128
|
+
photoUrl == o.photoUrl &&
|
129
129
|
vertical == o.vertical &&
|
130
130
|
websites == o.websites
|
131
131
|
end
|
@@ -139,7 +139,7 @@ module SmoochApi
|
|
139
139
|
# Calculates hash code according to all attributes.
|
140
140
|
# @return [Fixnum] Hash code
|
141
141
|
def hash
|
142
|
-
[about, address, description, email,
|
142
|
+
[about, address, description, email, photoUrl, vertical, websites].hash
|
143
143
|
end
|
144
144
|
|
145
145
|
# 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,95 +16,95 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class IntegrationUpdate
|
18
18
|
# This color will be used in the messenger header and the button or tab in idle state. (Optional) Used for *Web Messenger* integrations.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :brandColor
|
20
20
|
|
21
21
|
# 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.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :fixedIntroPane
|
23
23
|
|
24
24
|
# This color will be used for customer messages, quick replies and actions in the footer. (Optional) Used for *Web Messenger* integrations.
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :conversationColor
|
26
26
|
|
27
27
|
# This color will be used for call-to-actions inside your messages. (Optional) Used for *Web Messenger* integrations.
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :actionColor
|
29
29
|
|
30
30
|
# Choose how the messenger will appear on your website. Must be either button or tab. (Optional) Used for *Web Messenger* integrations.
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :displayStyle
|
32
32
|
|
33
33
|
# With the button style Web Messenger, you have the option of selecting your own button icon. (Optional) Used for *Web Messenger* integrations.
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :buttonIconUrl
|
35
35
|
|
36
36
|
# With the button style Web Messenger, you have the option of specifying its width. (Optional) Used for *Web Messenger* integrations.
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :buttonWidth
|
38
38
|
|
39
39
|
# With the button style Web Messenger, you have the option of specifying its height. (Optional) Used for *Web Messenger* integrations.
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :buttonHeight
|
41
41
|
|
42
42
|
# 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.
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :integrationOrder
|
44
44
|
|
45
45
|
# A custom business name for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
|
46
|
-
attr_accessor :
|
46
|
+
attr_accessor :businessName
|
47
47
|
|
48
48
|
# A custom business icon url for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
|
49
|
-
attr_accessor :
|
49
|
+
attr_accessor :businessIconUrl
|
50
50
|
|
51
51
|
# A custom background url for the Web Messenger. (Optional) Used for *Web Messenger* integrations.
|
52
|
-
attr_accessor :
|
52
|
+
attr_accessor :backgroundImageUrl
|
53
53
|
|
54
54
|
# 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.
|
55
|
-
attr_accessor :
|
55
|
+
attr_accessor :originWhitelist
|
56
56
|
|
57
57
|
# LINE Channel ID. Required for *line* integrations.
|
58
|
-
attr_accessor :
|
58
|
+
attr_accessor :channelId
|
59
59
|
|
60
60
|
# LINE Channel Secret. Required for *line* integrations.
|
61
|
-
attr_accessor :
|
61
|
+
attr_accessor :channelSecret
|
62
62
|
|
63
63
|
# Specification of a fallback language. (Optional) Used for *WhatsApp* integrations.
|
64
|
-
attr_accessor :
|
64
|
+
attr_accessor :hsmFallbackLanguage
|
65
65
|
|
66
66
|
|
67
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
68
68
|
def self.attribute_map
|
69
69
|
{
|
70
|
-
:'
|
71
|
-
:'
|
72
|
-
:'
|
73
|
-
:'
|
74
|
-
:'
|
75
|
-
:'
|
76
|
-
:'
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'
|
70
|
+
:'brandColor' => :'brandColor',
|
71
|
+
:'fixedIntroPane' => :'fixedIntroPane',
|
72
|
+
:'conversationColor' => :'conversationColor',
|
73
|
+
:'actionColor' => :'actionColor',
|
74
|
+
:'displayStyle' => :'displayStyle',
|
75
|
+
:'buttonIconUrl' => :'buttonIconUrl',
|
76
|
+
:'buttonWidth' => :'buttonWidth',
|
77
|
+
:'buttonHeight' => :'buttonHeight',
|
78
|
+
:'integrationOrder' => :'integrationOrder',
|
79
|
+
:'businessName' => :'businessName',
|
80
|
+
:'businessIconUrl' => :'businessIconUrl',
|
81
|
+
:'backgroundImageUrl' => :'backgroundImageUrl',
|
82
|
+
:'originWhitelist' => :'originWhitelist',
|
83
|
+
:'channelId' => :'channelId',
|
84
|
+
:'channelSecret' => :'channelSecret',
|
85
|
+
:'hsmFallbackLanguage' => :'hsmFallbackLanguage'
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
89
89
|
# Attribute type mapping.
|
90
90
|
def self.swagger_types
|
91
91
|
{
|
92
|
-
:'
|
93
|
-
:'
|
94
|
-
:'
|
95
|
-
:'
|
96
|
-
:'
|
97
|
-
:'
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'
|
102
|
-
:'
|
103
|
-
:'
|
104
|
-
:'
|
105
|
-
:'
|
106
|
-
:'
|
107
|
-
:'
|
92
|
+
:'brandColor' => :'String',
|
93
|
+
:'fixedIntroPane' => :'BOOLEAN',
|
94
|
+
:'conversationColor' => :'String',
|
95
|
+
:'actionColor' => :'String',
|
96
|
+
:'displayStyle' => :'String',
|
97
|
+
:'buttonIconUrl' => :'String',
|
98
|
+
:'buttonWidth' => :'String',
|
99
|
+
:'buttonHeight' => :'String',
|
100
|
+
:'integrationOrder' => :'Array<String>',
|
101
|
+
:'businessName' => :'String',
|
102
|
+
:'businessIconUrl' => :'String',
|
103
|
+
:'backgroundImageUrl' => :'String',
|
104
|
+
:'originWhitelist' => :'Array<String>',
|
105
|
+
:'channelId' => :'String',
|
106
|
+
:'channelSecret' => :'String',
|
107
|
+
:'hsmFallbackLanguage' => :'String'
|
108
108
|
}
|
109
109
|
end
|
110
110
|
|
@@ -117,71 +117,71 @@ module SmoochApi
|
|
117
117
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
118
118
|
|
119
119
|
if attributes.has_key?(:'brandColor')
|
120
|
-
self.
|
120
|
+
self.brandColor = attributes[:'brandColor']
|
121
121
|
end
|
122
122
|
|
123
123
|
if attributes.has_key?(:'fixedIntroPane')
|
124
|
-
self.
|
124
|
+
self.fixedIntroPane = attributes[:'fixedIntroPane']
|
125
125
|
end
|
126
126
|
|
127
127
|
if attributes.has_key?(:'conversationColor')
|
128
|
-
self.
|
128
|
+
self.conversationColor = attributes[:'conversationColor']
|
129
129
|
end
|
130
130
|
|
131
131
|
if attributes.has_key?(:'actionColor')
|
132
|
-
self.
|
132
|
+
self.actionColor = attributes[:'actionColor']
|
133
133
|
end
|
134
134
|
|
135
135
|
if attributes.has_key?(:'displayStyle')
|
136
|
-
self.
|
136
|
+
self.displayStyle = attributes[:'displayStyle']
|
137
137
|
end
|
138
138
|
|
139
139
|
if attributes.has_key?(:'buttonIconUrl')
|
140
|
-
self.
|
140
|
+
self.buttonIconUrl = attributes[:'buttonIconUrl']
|
141
141
|
end
|
142
142
|
|
143
143
|
if attributes.has_key?(:'buttonWidth')
|
144
|
-
self.
|
144
|
+
self.buttonWidth = attributes[:'buttonWidth']
|
145
145
|
end
|
146
146
|
|
147
147
|
if attributes.has_key?(:'buttonHeight')
|
148
|
-
self.
|
148
|
+
self.buttonHeight = attributes[:'buttonHeight']
|
149
149
|
end
|
150
150
|
|
151
151
|
if attributes.has_key?(:'integrationOrder')
|
152
152
|
if (value = attributes[:'integrationOrder']).is_a?(Array)
|
153
|
-
self.
|
153
|
+
self.integrationOrder = value
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
157
|
if attributes.has_key?(:'businessName')
|
158
|
-
self.
|
158
|
+
self.businessName = attributes[:'businessName']
|
159
159
|
end
|
160
160
|
|
161
161
|
if attributes.has_key?(:'businessIconUrl')
|
162
|
-
self.
|
162
|
+
self.businessIconUrl = attributes[:'businessIconUrl']
|
163
163
|
end
|
164
164
|
|
165
165
|
if attributes.has_key?(:'backgroundImageUrl')
|
166
|
-
self.
|
166
|
+
self.backgroundImageUrl = attributes[:'backgroundImageUrl']
|
167
167
|
end
|
168
168
|
|
169
169
|
if attributes.has_key?(:'originWhitelist')
|
170
170
|
if (value = attributes[:'originWhitelist']).is_a?(Array)
|
171
|
-
self.
|
171
|
+
self.originWhitelist = value
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
175
175
|
if attributes.has_key?(:'channelId')
|
176
|
-
self.
|
176
|
+
self.channelId = attributes[:'channelId']
|
177
177
|
end
|
178
178
|
|
179
179
|
if attributes.has_key?(:'channelSecret')
|
180
|
-
self.
|
180
|
+
self.channelSecret = attributes[:'channelSecret']
|
181
181
|
end
|
182
182
|
|
183
183
|
if attributes.has_key?(:'hsmFallbackLanguage')
|
184
|
-
self.
|
184
|
+
self.hsmFallbackLanguage = attributes[:'hsmFallbackLanguage']
|
185
185
|
end
|
186
186
|
|
187
187
|
end
|
@@ -204,22 +204,22 @@ module SmoochApi
|
|
204
204
|
def ==(o)
|
205
205
|
return true if self.equal?(o)
|
206
206
|
self.class == o.class &&
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
207
|
+
brandColor == o.brandColor &&
|
208
|
+
fixedIntroPane == o.fixedIntroPane &&
|
209
|
+
conversationColor == o.conversationColor &&
|
210
|
+
actionColor == o.actionColor &&
|
211
|
+
displayStyle == o.displayStyle &&
|
212
|
+
buttonIconUrl == o.buttonIconUrl &&
|
213
|
+
buttonWidth == o.buttonWidth &&
|
214
|
+
buttonHeight == o.buttonHeight &&
|
215
|
+
integrationOrder == o.integrationOrder &&
|
216
|
+
businessName == o.businessName &&
|
217
|
+
businessIconUrl == o.businessIconUrl &&
|
218
|
+
backgroundImageUrl == o.backgroundImageUrl &&
|
219
|
+
originWhitelist == o.originWhitelist &&
|
220
|
+
channelId == o.channelId &&
|
221
|
+
channelSecret == o.channelSecret &&
|
222
|
+
hsmFallbackLanguage == o.hsmFallbackLanguage
|
223
223
|
end
|
224
224
|
|
225
225
|
# @see the `==` method
|
@@ -231,7 +231,7 @@ module SmoochApi
|
|
231
231
|
# Calculates hash code according to all attributes.
|
232
232
|
# @return [Fixnum] Hash code
|
233
233
|
def hash
|
234
|
-
[
|
234
|
+
[brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, channelId, channelSecret, hsmFallbackLanguage].hash
|
235
235
|
end
|
236
236
|
|
237
237
|
# 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 LinkRequestResponse
|
18
18
|
# The list of link requests.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :linkRequests
|
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
|
+
:'linkRequests' => :'linkRequests'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'linkRequests' => :'Array<LinkRequestResponseLinkRequests>'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
@@ -43,7 +43,7 @@ module SmoochApi
|
|
43
43
|
|
44
44
|
if attributes.has_key?(:'linkRequests')
|
45
45
|
if (value = attributes[:'linkRequests']).is_a?(Array)
|
46
|
-
self.
|
46
|
+
self.linkRequests = value
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -67,7 +67,7 @@ module SmoochApi
|
|
67
67
|
def ==(o)
|
68
68
|
return true if self.equal?(o)
|
69
69
|
self.class == o.class &&
|
70
|
-
|
70
|
+
linkRequests == o.linkRequests
|
71
71
|
end
|
72
72
|
|
73
73
|
# @see the `==` method
|
@@ -79,7 +79,7 @@ module SmoochApi
|
|
79
79
|
# Calculates hash code according to all attributes.
|
80
80
|
# @return [Fixnum] Hash code
|
81
81
|
def hash
|
82
|
-
[
|
82
|
+
[linkRequests].hash
|
83
83
|
end
|
84
84
|
|
85
85
|
# 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 LinkRequestResponseLinkRequests
|
18
18
|
# The integration ID.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :integrationId
|
20
20
|
|
21
21
|
# The integration type.
|
22
22
|
attr_accessor :type
|
@@ -31,7 +31,7 @@ module SmoochApi
|
|
31
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
32
|
def self.attribute_map
|
33
33
|
{
|
34
|
-
:'
|
34
|
+
:'integrationId' => :'integrationId',
|
35
35
|
:'type' => :'type',
|
36
36
|
:'code' => :'code',
|
37
37
|
:'url' => :'url'
|
@@ -41,7 +41,7 @@ module SmoochApi
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.swagger_types
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'integrationId' => :'String',
|
45
45
|
:'type' => :'String',
|
46
46
|
:'code' => :'String',
|
47
47
|
:'url' => :'String'
|
@@ -57,7 +57,7 @@ module SmoochApi
|
|
57
57
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
58
58
|
|
59
59
|
if attributes.has_key?(:'integrationId')
|
60
|
-
self.
|
60
|
+
self.integrationId = attributes[:'integrationId']
|
61
61
|
end
|
62
62
|
|
63
63
|
if attributes.has_key?(:'type')
|
@@ -78,8 +78,8 @@ module SmoochApi
|
|
78
78
|
# @return Array for valid properies with the reasons
|
79
79
|
def list_invalid_properties
|
80
80
|
invalid_properties = Array.new
|
81
|
-
if @
|
82
|
-
invalid_properties.push("invalid value for '
|
81
|
+
if @integrationId.nil?
|
82
|
+
invalid_properties.push("invalid value for 'integrationId', integrationId cannot be nil.")
|
83
83
|
end
|
84
84
|
|
85
85
|
if @type.nil?
|
@@ -100,7 +100,7 @@ module SmoochApi
|
|
100
100
|
# Check to see if the all the properties in the model are valid
|
101
101
|
# @return true if the model is valid
|
102
102
|
def valid?
|
103
|
-
return false if @
|
103
|
+
return false if @integrationId.nil?
|
104
104
|
return false if @type.nil?
|
105
105
|
return false if @code.nil?
|
106
106
|
return false if @url.nil?
|
@@ -112,7 +112,7 @@ module SmoochApi
|
|
112
112
|
def ==(o)
|
113
113
|
return true if self.equal?(o)
|
114
114
|
self.class == o.class &&
|
115
|
-
|
115
|
+
integrationId == o.integrationId &&
|
116
116
|
type == o.type &&
|
117
117
|
code == o.code &&
|
118
118
|
url == o.url
|
@@ -127,7 +127,7 @@ module SmoochApi
|
|
127
127
|
# Calculates hash code according to all attributes.
|
128
128
|
# @return [Fixnum] Hash code
|
129
129
|
def hash
|
130
|
-
[
|
130
|
+
[integrationId, type, code, url].hash
|
131
131
|
end
|
132
132
|
|
133
133
|
# Builds the object from hash
|