lib/smooch-api/models/integration.rb in smooch-api-5.29.1 vs lib/smooch-api/models/integration.rb in smooch-api-5.34.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: 5.29 +OpenAPI spec version: 5.34 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -22,26 +22,26 @@ attr_accessor :type # The integration display name. Used to map a human-friendly name to an integration. attr_accessor :displayName - # Facebook Page Access Token. Required for *messenger* integrations. + # Facebook Page Access Token. Required for *messenger* and *instagram* integrations. attr_accessor :pageAccessToken - # Facebook App ID OR WeChat App ID. Required for *messenger* and *wechat* integrations. + # Facebook App ID OR WeChat App ID. Required for *messenger*, *instagram* and *wechat* integrations. attr_accessor :appId - # Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations. + # Facebook Page App Secret OR WeChat App Secret. Required for *messenger*, *instagram* and *wechat* integrations. attr_accessor :appSecret # Optional endpoint to generate access tokens for WeChat. Used to coordinate API access with third party systems. attr_accessor :accessTokenUrl # Secret to verify webhooks. Returned on successful *wechat* and *messagebird* integrations. attr_accessor :webhookSecret - # Facebook Page App ID. Returned on successful *messenger* integrations. + # Facebook Page App ID. Returned on successful *messenger* and *instagram* integrations. attr_accessor :pageId # Twilio Account SID. Required for *twilio* integrations. attr_accessor :accountSid @@ -136,14 +136,14 @@ attr_accessor :accessTokenKey # The access token secret obtained from your user via oauth. Required for *twitter* integrations. attr_accessor :accessTokenSecret - # The twitter userId. Returned on successful *twitter* integrations. + # The twitter userId or Facebook userId. Returned on successful *twitter* and *instagram* integrations. attr_accessor :userId - # The username for the account. Returned on successful *twitter* and *telegram* integrations. Required for *WhatsApp* integrations. (this usage is deprecated) + # A twitter, telegram and facebook account username Returned on successful *twitter*, *telegram* and *instagram* integrations. Required for *WhatsApp* integrations. (this usage is deprecated) attr_accessor :username # The public API key of your Mailgun account. Required for *mailgun* integrations. attr_accessor :apiKey @@ -187,13 +187,16 @@ attr_accessor :buttonHeight # 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. attr_accessor :integrationOrder - # A custom business name for the Web Messenger. (Optional) Used for *Web Messenger* integrations. + # A custom business name for the Web Messenger or Instagram Business account name. (Optional) Used for *Web Messenger* integrations. attr_accessor :businessName + # Instagram Business account username. + attr_accessor :businessUsername + # A custom business icon url for the Web Messenger. (Optional) Used for *Web Messenger* integrations. attr_accessor :businessIconUrl # A custom background url for the Web Messenger. (Optional) Used for *Web Messenger* integrations. attr_accessor :backgroundImageUrl @@ -211,11 +214,11 @@ attr_accessor :error # A key tied to Apple Business Chat Messaging Service Provider attr_accessor :apiSecret - # A unique ID tied to the brand using Apple Business Chat + # A unique ID tied to the brand using Apple Business Chat or the Instagram Business ID attr_accessor :businessId # A unique identifier for an Apple Business Chat partner registered as a Messaging Service Provider through Apple Business Register attr_accessor :mspId @@ -280,10 +283,11 @@ :'buttonIconUrl' => :'buttonIconUrl', :'buttonWidth' => :'buttonWidth', :'buttonHeight' => :'buttonHeight', :'integrationOrder' => :'integrationOrder', :'businessName' => :'businessName', + :'businessUsername' => :'businessUsername', :'businessIconUrl' => :'businessIconUrl', :'backgroundImageUrl' => :'backgroundImageUrl', :'originWhitelist' => :'originWhitelist', :'hideUnsubscribeLink' => :'hideUnsubscribeLink', :'status' => :'status', @@ -354,10 +358,11 @@ :'buttonIconUrl' => :'String', :'buttonWidth' => :'String', :'buttonHeight' => :'String', :'integrationOrder' => :'Array<String>', :'businessName' => :'String', + :'businessUsername' => :'String', :'businessIconUrl' => :'String', :'backgroundImageUrl' => :'String', :'originWhitelist' => :'Array<String>', :'hideUnsubscribeLink' => :'BOOLEAN', :'status' => :'String', @@ -612,10 +617,14 @@ if attributes.has_key?(:'businessName') self.businessName = attributes[:'businessName'] end + if attributes.has_key?(:'businessUsername') + self.businessUsername = attributes[:'businessUsername'] + end + if attributes.has_key?(:'businessIconUrl') self.businessIconUrl = attributes[:'businessIconUrl'] end if attributes.has_key?(:'backgroundImageUrl') @@ -739,10 +748,11 @@ buttonIconUrl == o.buttonIconUrl && buttonWidth == o.buttonWidth && buttonHeight == o.buttonHeight && integrationOrder == o.integrationOrder && businessName == o.businessName && + businessUsername == o.businessUsername && businessIconUrl == o.businessIconUrl && backgroundImageUrl == o.backgroundImageUrl && originWhitelist == o.originWhitelist && hideUnsubscribeLink == o.hideUnsubscribeLink && status == o.status && @@ -759,10 +769,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, type, displayName, pageAccessToken, appId, appSecret, accessTokenUrl, webhookSecret, pageId, accountSid, authToken, phoneNumberSid, phoneNumber, name, token, uri, channelId, channelSecret, channelAccessToken, serviceCode, switcherSecret, qrCodeUrl, lineId, botName, encodingAesKey, fromAddress, certificate, deploymentId, baseUrl, hsmFallbackLanguage, password, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, userId, username, apiKey, domain, incomingAddress, accessKey, originator, signingKey, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, hideUnsubscribeLink, status, error, apiSecret, businessId, mspId].hash + [id, type, displayName, pageAccessToken, appId, appSecret, accessTokenUrl, webhookSecret, pageId, accountSid, authToken, phoneNumberSid, phoneNumber, name, token, uri, channelId, channelSecret, channelAccessToken, serviceCode, switcherSecret, qrCodeUrl, lineId, botName, encodingAesKey, fromAddress, certificate, deploymentId, baseUrl, hsmFallbackLanguage, password, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, userId, username, apiKey, domain, incomingAddress, accessKey, originator, signingKey, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessUsername, businessIconUrl, backgroundImageUrl, originWhitelist, hideUnsubscribeLink, status, error, apiSecret, businessId, mspId].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself