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

- old
+ new

@@ -18,12 +18,10 @@ attr_accessor :id # Name of the bank or provider attr_accessor :name - attr_accessor :id_weboob - # This connector is hidden from your users attr_accessor :hidden # Usage of this connector is charged attr_accessor :charged @@ -54,20 +52,22 @@ attr_accessor :siret # Unique connector identifier attr_accessor :uuid + # If true, new connections cannot be added with this connector + attr_accessor :restricted + attr_accessor :fields attr_accessor :capabilities # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', :'name' => :'name', - :'id_weboob' => :'id_weboob', :'hidden' => :'hidden', :'charged' => :'charged', :'code' => :'code', :'beta' => :'beta', :'color' => :'color', @@ -76,21 +76,21 @@ :'months_to_fetch' => :'months_to_fetch', :'account_types' => :'account_types', :'auth_mechanism' => :'auth_mechanism', :'siret' => :'siret', :'uuid' => :'uuid', + :'restricted' => :'restricted', :'fields' => :'fields', :'capabilities' => :'capabilities' } end # Attribute type mapping. def self.swagger_types { :'id' => :'Integer', :'name' => :'String', - :'id_weboob' => :'String', :'hidden' => :'BOOLEAN', :'charged' => :'BOOLEAN', :'code' => :'String', :'beta' => :'BOOLEAN', :'color' => :'String', @@ -99,10 +99,11 @@ :'months_to_fetch' => :'Integer', :'account_types' => :'Array<String>', :'auth_mechanism' => :'String', :'siret' => :'String', :'uuid' => :'String', + :'restricted' => :'BOOLEAN', :'fields' => :'Array<Field>', :'capabilities' => :'Array<String>' } end @@ -120,14 +121,10 @@ if attributes.has_key?(:'name') self.name = attributes[:'name'] end - if attributes.has_key?(:'id_weboob') - self.id_weboob = attributes[:'id_weboob'] - end - if attributes.has_key?(:'hidden') self.hidden = attributes[:'hidden'] else self.hidden = false end @@ -180,10 +177,16 @@ if attributes.has_key?(:'uuid') self.uuid = attributes[:'uuid'] end + if attributes.has_key?(:'restricted') + self.restricted = attributes[:'restricted'] + else + self.restricted = false + end + if attributes.has_key?(:'fields') if (value = attributes[:'fields']).is_a?(Array) self.fields = value end end @@ -205,14 +208,10 @@ if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end - if @id_weboob.nil? - invalid_properties.push('invalid value for "id_weboob", id_weboob cannot be nil.') - end - if @charged.nil? invalid_properties.push('invalid value for "charged", charged cannot be nil.') end if @beta.nil? @@ -221,33 +220,36 @@ if @uuid.nil? invalid_properties.push('invalid value for "uuid", uuid cannot be nil.') end + if @restricted.nil? + invalid_properties.push('invalid value for "restricted", restricted cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? return false if @name.nil? - return false if @id_weboob.nil? return false if @charged.nil? return false if @beta.nil? return false if @uuid.nil? + return false if @restricted.nil? true end # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && - id_weboob == o.id_weboob && hidden == o.hidden && charged == o.charged && code == o.code && beta == o.beta && color == o.color && @@ -256,10 +258,11 @@ months_to_fetch == o.months_to_fetch && account_types == o.account_types && auth_mechanism == o.auth_mechanism && siret == o.siret && uuid == o.uuid && + restricted == o.restricted && fields == o.fields && capabilities == o.capabilities end # @see the `==` method @@ -269,10 +272,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, id_weboob, hidden, charged, code, beta, color, slug, sync_frequency, months_to_fetch, account_types, auth_mechanism, siret, uuid, fields, capabilities].hash + [id, name, hidden, charged, code, beta, color, slug, sync_frequency, months_to_fetch, account_types, auth_mechanism, siret, uuid, restricted, fields, capabilities].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself