lib/smooch-api/models/app_user.rb in smooch-api-3.19.0 vs lib/smooch-api/models/app_user.rb in smooch-api-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: 3.19
+OpenAPI spec version: 4.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -37,13 +37,10 @@
attr_accessor :properties
# Flag indicating if the conversation has started for the app user.
attr_accessor :conversation_started
- # Flag indicating if the appUser is secured by a JSON Web Token or not.
- attr_accessor :credential_required
-
# List of clients associated with the app user.
attr_accessor :clients
# As clients, but containing linked clients which have not been confirmed yet (i.e. Twilio SMS).
attr_accessor :pending_clients
@@ -58,11 +55,10 @@
:'surname' => :'surname',
:'email' => :'email',
:'signed_up_at' => :'signedUpAt',
:'properties' => :'properties',
:'conversation_started' => :'conversationStarted',
- :'credential_required' => :'credentialRequired',
:'clients' => :'clients',
:'pending_clients' => :'pendingClients'
}
end
@@ -75,11 +71,10 @@
:'surname' => :'String',
:'email' => :'String',
:'signed_up_at' => :'String',
:'properties' => :'Object',
:'conversation_started' => :'BOOLEAN',
- :'credential_required' => :'BOOLEAN',
:'clients' => :'Array<Client>',
:'pending_clients' => :'Array<Client>'
}
end
@@ -121,14 +116,10 @@
if attributes.has_key?(:'conversationStarted')
self.conversation_started = attributes[:'conversationStarted']
end
- if attributes.has_key?(:'credentialRequired')
- self.credential_required = attributes[:'credentialRequired']
- end
-
if attributes.has_key?(:'clients')
if (value = attributes[:'clients']).is_a?(Array)
self.clients = value
end
end
@@ -180,11 +171,10 @@
surname == o.surname &&
email == o.email &&
signed_up_at == o.signed_up_at &&
properties == o.properties &&
conversation_started == o.conversation_started &&
- credential_required == o.credential_required &&
clients == o.clients &&
pending_clients == o.pending_clients
end
# @see the `==` method
@@ -194,10 +184,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [_id, user_id, given_name, surname, email, signed_up_at, properties, conversation_started, credential_required, clients, pending_clients].hash
+ [_id, user_id, given_name, surname, email, signed_up_at, properties, conversation_started, clients, pending_clients].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself