lib/budgea_client/models/client.rb in budgea_client-4.0.3 vs lib/budgea_client/models/client.rb in budgea_client-5.0.0

- old
+ new

@@ -22,11 +22,11 @@ attr_accessor :public_key attr_accessor :private_key - attr_accessor :redirect_uri + attr_accessor :redirect_uris # Should the client display the company manager page. attr_accessor :pro attr_accessor :id_logo @@ -40,11 +40,11 @@ :'id' => :'id', :'name' => :'name', :'secret' => :'secret', :'public_key' => :'public_key', :'private_key' => :'private_key', - :'redirect_uri' => :'redirect_uri', + :'redirect_uris' => :'redirect_uris', :'pro' => :'pro', :'id_logo' => :'id_logo', :'config' => :'config' } end @@ -55,11 +55,11 @@ :'id' => :'Integer', :'name' => :'String', :'secret' => :'String', :'public_key' => :'String', :'private_key' => :'String', - :'redirect_uri' => :'String', + :'redirect_uris' => :'String', :'pro' => :'BOOLEAN', :'id_logo' => :'Integer', :'config' => :'String' } end @@ -92,14 +92,14 @@ if attributes.has_key?(:'private_key') self.private_key = attributes[:'private_key'] end - if attributes.has_key?(:'redirect_uri') - self.redirect_uri = attributes[:'redirect_uri'] + if attributes.has_key?(:'redirect_uris') + self.redirect_uris = attributes[:'redirect_uris'] else - self.redirect_uri = '' + self.redirect_uris = '' end if attributes.has_key?(:'pro') self.pro = attributes[:'pro'] else @@ -129,12 +129,12 @@ if @secret.nil? invalid_properties.push('invalid value for "secret", secret cannot be nil.') end - if @redirect_uri.nil? - invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.') + if @redirect_uris.nil? + invalid_properties.push('invalid value for "redirect_uris", redirect_uris cannot be nil.') end if @pro.nil? invalid_properties.push('invalid value for "pro", pro cannot be nil.') end @@ -146,11 +146,11 @@ # @return true if the model is valid def valid? return false if @id.nil? return false if @name.nil? return false if @secret.nil? - return false if @redirect_uri.nil? + return false if @redirect_uris.nil? return false if @pro.nil? true end # Checks equality by comparing each attribute. @@ -161,11 +161,11 @@ id == o.id && name == o.name && secret == o.secret && public_key == o.public_key && private_key == o.private_key && - redirect_uri == o.redirect_uri && + redirect_uris == o.redirect_uris && pro == o.pro && id_logo == o.id_logo && config == o.config end @@ -176,10 +176,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, secret, public_key, private_key, redirect_uri, pro, id_logo, config].hash + [id, name, secret, public_key, private_key, redirect_uris, pro, id_logo, config].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself