lib/smooch-api/models/integration_create.rb in smooch-api-5.4.0 vs lib/smooch-api/models/integration_create.rb in smooch-api-5.5.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.4 +OpenAPI spec version: 5.5 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -16,10 +16,13 @@ class IntegrationCreate # The integration type. See Enums.md for available values. 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. attr_accessor :pageAccessToken # Facebook App ID OR WeChat App ID. Required for *messenger* and *wechat* integrations. attr_accessor :appId @@ -153,10 +156,11 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', + :'displayName' => :'displayName', :'pageAccessToken' => :'pageAccessToken', :'appId' => :'appId', :'appSecret' => :'appSecret', :'accountSid' => :'accountSid', :'authToken' => :'authToken', @@ -204,10 +208,11 @@ # Attribute type mapping. def self.swagger_types { :'type' => :'String', + :'displayName' => :'String', :'pageAccessToken' => :'String', :'appId' => :'String', :'appSecret' => :'String', :'accountSid' => :'String', :'authToken' => :'String', @@ -263,10 +268,14 @@ if attributes.has_key?(:'type') self.type = attributes[:'type'] end + if attributes.has_key?(:'displayName') + self.displayName = attributes[:'displayName'] + end + if attributes.has_key?(:'pageAccessToken') self.pageAccessToken = attributes[:'pageAccessToken'] end if attributes.has_key?(:'appId') @@ -469,10 +478,11 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && + displayName == o.displayName && pageAccessToken == o.pageAccessToken && appId == o.appId && appSecret == o.appSecret && accountSid == o.accountSid && authToken == o.authToken && @@ -524,10 +534,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, 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 + [type, displayName, 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