sunshine-conversations-client 9.1.1 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG_RB.md +7 -0
- data/README.md +8 -5
- data/docs/Instagram.md +35 -0
- data/docs/InstagramAllOf.md +35 -0
- data/docs/InstagramUpdate.md +19 -0
- data/docs/{MessengerUpdateAllOf.md → InstagramUpdateAllOf.md} +2 -2
- data/docs/IntegrationUpdate.md +2 -2
- data/lib/sunshine-conversations-client.rb +4 -1
- data/lib/sunshine-conversations-client/models/instagram.rb +323 -0
- data/lib/sunshine-conversations-client/models/instagram_all_of.rb +312 -0
- data/lib/sunshine-conversations-client/models/instagram_update.rb +247 -0
- data/lib/sunshine-conversations-client/models/{messenger_update_all_of.rb → instagram_update_all_of.rb} +3 -3
- data/lib/sunshine-conversations-client/models/integration_update.rb +12 -11
- data/lib/sunshine-conversations-client/models/messenger_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/messenger_update.rb +2 -2
- data/lib/sunshine-conversations-client/version.rb +1 -1
- metadata +10 -4
@@ -10,7 +10,7 @@ OpenAPI Generator version: 4.3.1
|
|
10
10
|
require 'date'
|
11
11
|
|
12
12
|
module SunshineConversationsClient
|
13
|
-
class
|
13
|
+
class InstagramUpdateAllOf
|
14
14
|
# A Facebook Page Access Token.
|
15
15
|
attr_accessor :page_access_token
|
16
16
|
|
@@ -38,13 +38,13 @@ module SunshineConversationsClient
|
|
38
38
|
# @param [Hash] attributes Model attributes in the form of hash
|
39
39
|
def initialize(attributes = {})
|
40
40
|
if (!attributes.is_a?(Hash))
|
41
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::
|
41
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::InstagramUpdateAllOf` initialize method"
|
42
42
|
end
|
43
43
|
|
44
44
|
# check to see if the attribute exists and convert string to symbol for hash key
|
45
45
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
46
46
|
if (!self.class.attribute_map.key?(k.to_sym))
|
47
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::
|
47
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::InstagramUpdateAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
48
48
|
end
|
49
49
|
h[k.to_sym] = v
|
50
50
|
}
|
@@ -23,6 +23,9 @@ module SunshineConversationsClient
|
|
23
23
|
# Allows users to create more than one conversation on the web messenger integration.
|
24
24
|
attr_accessor :can_user_create_more_conversations
|
25
25
|
|
26
|
+
# A Facebook Page Access Token.
|
27
|
+
attr_accessor :page_access_token
|
28
|
+
|
26
29
|
# The binary of your APN certificate base64 encoded.
|
27
30
|
attr_accessor :certificate
|
28
31
|
|
@@ -41,9 +44,6 @@ module SunshineConversationsClient
|
|
41
44
|
# Email address to use as the From and Reply-To address if it must be different from incomingAddress. Only use this option if the address that you supply is configured to forward emails to the incomingAddress, otherwise user replies will be lost. You must also make sure that the domain is properly configured as a mail provider so as to not be flagged as spam by the user’s email client. May be unset with null.
|
42
45
|
attr_accessor :from_address
|
43
46
|
|
44
|
-
# A Facebook Page Access Token.
|
45
|
-
attr_accessor :page_access_token
|
46
|
-
|
47
47
|
# This color will be used in the messenger header and the button or tab in idle state. Must be a 3 or 6-character hexadecimal color.
|
48
48
|
attr_accessor :brand_color
|
49
49
|
|
@@ -102,13 +102,13 @@ module SunshineConversationsClient
|
|
102
102
|
:'server_key' => :'serverKey',
|
103
103
|
:'sender_id' => :'senderId',
|
104
104
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
105
|
+
:'page_access_token' => :'pageAccessToken',
|
105
106
|
:'certificate' => :'certificate',
|
106
107
|
:'password' => :'password',
|
107
108
|
:'production' => :'production',
|
108
109
|
:'auto_update_badge' => :'autoUpdateBadge',
|
109
110
|
:'hide_unsubscribe_link' => :'hideUnsubscribeLink',
|
110
111
|
:'from_address' => :'fromAddress',
|
111
|
-
:'page_access_token' => :'pageAccessToken',
|
112
112
|
:'brand_color' => :'brandColor',
|
113
113
|
:'fixed_intro_pane' => :'fixedIntroPane',
|
114
114
|
:'conversation_color' => :'conversationColor',
|
@@ -136,13 +136,13 @@ module SunshineConversationsClient
|
|
136
136
|
:'server_key' => :'String',
|
137
137
|
:'sender_id' => :'String',
|
138
138
|
:'can_user_create_more_conversations' => :'Boolean',
|
139
|
+
:'page_access_token' => :'String',
|
139
140
|
:'certificate' => :'String',
|
140
141
|
:'password' => :'String',
|
141
142
|
:'production' => :'Boolean',
|
142
143
|
:'auto_update_badge' => :'Boolean',
|
143
144
|
:'hide_unsubscribe_link' => :'Boolean',
|
144
145
|
:'from_address' => :'String',
|
145
|
-
:'page_access_token' => :'String',
|
146
146
|
:'brand_color' => :'String',
|
147
147
|
:'fixed_intro_pane' => :'Boolean',
|
148
148
|
:'conversation_color' => :'String',
|
@@ -186,6 +186,7 @@ module SunshineConversationsClient
|
|
186
186
|
:'AndroidUpdate',
|
187
187
|
:'AppleUpdate',
|
188
188
|
:'CustomUpdate',
|
189
|
+
:'InstagramUpdate',
|
189
190
|
:'IosUpdate',
|
190
191
|
:'LineUpdate',
|
191
192
|
:'MailgunUpdate',
|
@@ -231,6 +232,10 @@ module SunshineConversationsClient
|
|
231
232
|
self.can_user_create_more_conversations = attributes[:'can_user_create_more_conversations']
|
232
233
|
end
|
233
234
|
|
235
|
+
if attributes.key?(:'page_access_token')
|
236
|
+
self.page_access_token = attributes[:'page_access_token']
|
237
|
+
end
|
238
|
+
|
234
239
|
if attributes.key?(:'certificate')
|
235
240
|
self.certificate = attributes[:'certificate']
|
236
241
|
end
|
@@ -255,10 +260,6 @@ module SunshineConversationsClient
|
|
255
260
|
self.from_address = attributes[:'from_address']
|
256
261
|
end
|
257
262
|
|
258
|
-
if attributes.key?(:'page_access_token')
|
259
|
-
self.page_access_token = attributes[:'page_access_token']
|
260
|
-
end
|
261
|
-
|
262
263
|
if attributes.key?(:'brand_color')
|
263
264
|
self.brand_color = attributes[:'brand_color']
|
264
265
|
else
|
@@ -464,13 +465,13 @@ module SunshineConversationsClient
|
|
464
465
|
server_key == o.server_key &&
|
465
466
|
sender_id == o.sender_id &&
|
466
467
|
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
468
|
+
page_access_token == o.page_access_token &&
|
467
469
|
certificate == o.certificate &&
|
468
470
|
password == o.password &&
|
469
471
|
production == o.production &&
|
470
472
|
auto_update_badge == o.auto_update_badge &&
|
471
473
|
hide_unsubscribe_link == o.hide_unsubscribe_link &&
|
472
474
|
from_address == o.from_address &&
|
473
|
-
page_access_token == o.page_access_token &&
|
474
475
|
brand_color == o.brand_color &&
|
475
476
|
fixed_intro_pane == o.fixed_intro_pane &&
|
476
477
|
conversation_color == o.conversation_color &&
|
@@ -499,7 +500,7 @@ module SunshineConversationsClient
|
|
499
500
|
# Calculates hash code according to all attributes.
|
500
501
|
# @return [Integer] Hash code
|
501
502
|
def hash
|
502
|
-
[display_name, server_key, sender_id, can_user_create_more_conversations, certificate, password, production, auto_update_badge, hide_unsubscribe_link, from_address,
|
503
|
+
[display_name, server_key, sender_id, can_user_create_more_conversations, page_access_token, certificate, password, production, auto_update_badge, hide_unsubscribe_link, from_address, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, prechat_capture, hsm_fallback_language, account_id, account_management_access_token].hash
|
503
504
|
end
|
504
505
|
|
505
506
|
# Builds the object from hash
|
@@ -10,7 +10,7 @@ OpenAPI Generator version: 4.3.1
|
|
10
10
|
require 'date'
|
11
11
|
|
12
12
|
module SunshineConversationsClient
|
13
|
-
# Facebook Messenger Setup steps: Take note of your Facebook app ID and secret (apps can be created at developer.facebook.com); The Facebook app must have been submitted to Facebook for
|
13
|
+
# Facebook Messenger Setup steps: Take note of your Facebook app ID and secret (apps can be created at developer.facebook.com); The Facebook app must have been submitted to Facebook for app review with the “manage_pages” (to retrieve Page Access Tokens for the Pages, apps that the app user administers and set a webhook) and “pages_messaging” (to send messages) permissions. In order to integrate a Facebook Messenger app you must acquire a Page Access Token from your user. Once you have acquired a page access token from your user, call the Create Integration endpoint with your app secret and ID and the user’s page access token.
|
14
14
|
class MessengerAllOf
|
15
15
|
# The type of integration.
|
16
16
|
attr_accessor :type
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunshine-conversations-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunshine Conversations
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -183,6 +183,10 @@ files:
|
|
183
183
|
- docs/FormResponseMessage.md
|
184
184
|
- docs/ImageMessage.md
|
185
185
|
- docs/InlineObject.md
|
186
|
+
- docs/Instagram.md
|
187
|
+
- docs/InstagramAllOf.md
|
188
|
+
- docs/InstagramUpdate.md
|
189
|
+
- docs/InstagramUpdateAllOf.md
|
186
190
|
- docs/Integration.md
|
187
191
|
- docs/IntegrationApiKey.md
|
188
192
|
- docs/IntegrationApiKeyListResponse.md
|
@@ -242,7 +246,6 @@ files:
|
|
242
246
|
- docs/Messenger.md
|
243
247
|
- docs/MessengerAllOf.md
|
244
248
|
- docs/MessengerUpdate.md
|
245
|
-
- docs/MessengerUpdateAllOf.md
|
246
249
|
- docs/Meta.md
|
247
250
|
- docs/OAuthEndpointsApi.md
|
248
251
|
- docs/OfferControlBody.md
|
@@ -456,6 +459,10 @@ files:
|
|
456
459
|
- lib/sunshine-conversations-client/models/form_response_message.rb
|
457
460
|
- lib/sunshine-conversations-client/models/image_message.rb
|
458
461
|
- lib/sunshine-conversations-client/models/inline_object.rb
|
462
|
+
- lib/sunshine-conversations-client/models/instagram.rb
|
463
|
+
- lib/sunshine-conversations-client/models/instagram_all_of.rb
|
464
|
+
- lib/sunshine-conversations-client/models/instagram_update.rb
|
465
|
+
- lib/sunshine-conversations-client/models/instagram_update_all_of.rb
|
459
466
|
- lib/sunshine-conversations-client/models/integration.rb
|
460
467
|
- lib/sunshine-conversations-client/models/integration_api_key.rb
|
461
468
|
- lib/sunshine-conversations-client/models/integration_api_key_list_response.rb
|
@@ -513,7 +520,6 @@ files:
|
|
513
520
|
- lib/sunshine-conversations-client/models/messenger.rb
|
514
521
|
- lib/sunshine-conversations-client/models/messenger_all_of.rb
|
515
522
|
- lib/sunshine-conversations-client/models/messenger_update.rb
|
516
|
-
- lib/sunshine-conversations-client/models/messenger_update_all_of.rb
|
517
523
|
- lib/sunshine-conversations-client/models/meta.rb
|
518
524
|
- lib/sunshine-conversations-client/models/offer_control_body.rb
|
519
525
|
- lib/sunshine-conversations-client/models/page.rb
|