lib/smooch-api/models/integration.rb in smooch-api-3.13.0 vs lib/smooch-api/models/integration.rb in smooch-api-3.14.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Smooch
#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).
-OpenAPI spec version: 3.13
+OpenAPI spec version: 3.14
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -28,10 +28,13 @@
attr_accessor :app_id
# Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations.
attr_accessor :app_secret
+ # Optional endpoint to generate access tokens for WeChat. Used to coordinate API access with third party systems.
+ attr_accessor :access_token_url
+
# Secret to verify webhooks. Returned on successful *wechat* and *messagebird* integrations.
attr_accessor :webhook_secret
# Facebook Page App ID. Returned on successful *messenger* integrations.
attr_accessor :page_id
@@ -184,10 +187,11 @@
:'_id' => :'_id',
:'type' => :'type',
:'page_access_token' => :'pageAccessToken',
:'app_id' => :'appId',
:'app_secret' => :'appSecret',
+ :'access_token_url' => :'accessTokenUrl',
:'webhook_secret' => :'webhookSecret',
:'page_id' => :'pageId',
:'account_sid' => :'accountSid',
:'auth_token' => :'authToken',
:'phone_number_sid' => :'phoneNumberSid',
@@ -244,10 +248,11 @@
:'_id' => :'String',
:'type' => :'String',
:'page_access_token' => :'String',
:'app_id' => :'String',
:'app_secret' => :'String',
+ :'access_token_url' => :'String',
:'webhook_secret' => :'String',
:'page_id' => :'String',
:'account_sid' => :'String',
:'auth_token' => :'String',
:'phone_number_sid' => :'String',
@@ -324,10 +329,14 @@
if attributes.has_key?(:'appSecret')
self.app_secret = attributes[:'appSecret']
end
+ if attributes.has_key?(:'accessTokenUrl')
+ self.access_token_url = attributes[:'accessTokenUrl']
+ end
+
if attributes.has_key?(:'webhookSecret')
self.webhook_secret = attributes[:'webhookSecret']
end
if attributes.has_key?(:'pageId')
@@ -559,10 +568,11 @@
_id == o._id &&
type == o.type &&
page_access_token == o.page_access_token &&
app_id == o.app_id &&
app_secret == o.app_secret &&
+ access_token_url == o.access_token_url &&
webhook_secret == o.webhook_secret &&
page_id == o.page_id &&
account_sid == o.account_sid &&
auth_token == o.auth_token &&
phone_number_sid == o.phone_number_sid &&
@@ -619,10 +629,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [_id, type, page_access_token, app_id, app_secret, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_id, channel_secret, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, 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, status, error].hash
+ [_id, type, page_access_token, app_id, app_secret, access_token_url, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_id, channel_secret, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, 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, status, error].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself