lib/smooch-api/models/client.rb in smooch-api-5.0 vs lib/smooch-api/models/client.rb in smooch-api-5.2.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: 4.2 +OpenAPI spec version: 5.2 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.2.3-SNAPSHOT =end @@ -25,10 +25,13 @@ attr_accessor :lastSeen # The client's platform. See Enums.md for available values. attr_accessor :platform + # The ID of the integration that the client was created for. + attr_accessor :integrationId + # The GCM or APN token to be used for sending push notifications to the device. Applies to only *android* and *ios* clients. attr_accessor :pushNotificationToken # A reserved string field for reporting the app version running on the device. attr_accessor :appVersion @@ -47,10 +50,11 @@ { :'id' => :'id', :'active' => :'active', :'lastSeen' => :'lastSeen', :'platform' => :'platform', + :'integrationId' => :'integrationId', :'pushNotificationToken' => :'pushNotificationToken', :'appVersion' => :'appVersion', :'displayName' => :'displayName', :'info' => :'info', :'raw' => :'raw' @@ -62,10 +66,11 @@ { :'id' => :'String', :'active' => :'BOOLEAN', :'lastSeen' => :'String', :'platform' => :'String', + :'integrationId' => :'String', :'pushNotificationToken' => :'String', :'appVersion' => :'String', :'displayName' => :'String', :'info' => :'ClientInfo', :'raw' => :'Object' @@ -94,10 +99,14 @@ if attributes.has_key?(:'platform') self.platform = attributes[:'platform'] end + if attributes.has_key?(:'integrationId') + self.integrationId = attributes[:'integrationId'] + end + if attributes.has_key?(:'pushNotificationToken') self.pushNotificationToken = attributes[:'pushNotificationToken'] end if attributes.has_key?(:'appVersion') @@ -148,10 +157,11 @@ self.class == o.class && id == o.id && active == o.active && lastSeen == o.lastSeen && platform == o.platform && + integrationId == o.integrationId && pushNotificationToken == o.pushNotificationToken && appVersion == o.appVersion && displayName == o.displayName && info == o.info && raw == o.raw @@ -164,10 +174,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, active, lastSeen, platform, pushNotificationToken, appVersion, displayName, info, raw].hash + [id, active, lastSeen, platform, integrationId, pushNotificationToken, appVersion, displayName, info, raw].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself