lib/smooch-api/models/integration_create.rb in smooch-api-5.3.0 vs lib/smooch-api/models/integration_create.rb in smooch-api-5.4.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.3 +OpenAPI spec version: 5.4 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -52,10 +52,16 @@ attr_accessor :channelSecret # LINE Channel Access Token. Required for *line* integrations. attr_accessor :channelAccessToken + # LINE Service Code. + attr_accessor :serviceCode + + # LINE Switcher Secret. + attr_accessor :switcherSecret + # AES Encoding Key. (Optional) Used for *wechat* integrations. attr_accessor :encodingAesKey # Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations. attr_accessor :fromAddress @@ -159,10 +165,12 @@ :'phoneNumberSid' => :'phoneNumberSid', :'token' => :'token', :'channelId' => :'channelId', :'channelSecret' => :'channelSecret', :'channelAccessToken' => :'channelAccessToken', + :'serviceCode' => :'serviceCode', + :'switcherSecret' => :'switcherSecret', :'encodingAesKey' => :'encodingAesKey', :'fromAddress' => :'fromAddress', :'certificate' => :'certificate', :'password' => :'password', :'username' => :'username', @@ -208,10 +216,12 @@ :'phoneNumberSid' => :'String', :'token' => :'String', :'channelId' => :'String', :'channelSecret' => :'String', :'channelAccessToken' => :'String', + :'serviceCode' => :'String', + :'switcherSecret' => :'String', :'encodingAesKey' => :'String', :'fromAddress' => :'String', :'certificate' => :'String', :'password' => :'String', :'username' => :'String', @@ -301,10 +311,18 @@ if attributes.has_key?(:'channelAccessToken') self.channelAccessToken = attributes[:'channelAccessToken'] end + if attributes.has_key?(:'serviceCode') + self.serviceCode = attributes[:'serviceCode'] + end + + if attributes.has_key?(:'switcherSecret') + self.switcherSecret = attributes[:'switcherSecret'] + end + if attributes.has_key?(:'encodingAesKey') self.encodingAesKey = attributes[:'encodingAesKey'] end if attributes.has_key?(:'fromAddress') @@ -463,10 +481,12 @@ phoneNumberSid == o.phoneNumberSid && token == o.token && channelId == o.channelId && channelSecret == o.channelSecret && channelAccessToken == o.channelAccessToken && + serviceCode == o.serviceCode && + switcherSecret == o.switcherSecret && encodingAesKey == o.encodingAesKey && fromAddress == o.fromAddress && certificate == o.certificate && password == o.password && username == o.username && @@ -504,10 +524,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [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 + [type, pageAccessToken, appId, appSecret, accountSid, authToken, baseUrl, hsmFallbackLanguage, phoneNumberSid, token, channelId, channelSecret, channelAccessToken, serviceCode, switcherSecret, 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 end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself