lib/budgea_client/models/connector.rb in budgea_client-3.0.1 vs lib/budgea_client/models/connector.rb in budgea_client-4.0.0
- old
+ new
@@ -56,10 +56,12 @@
# Unique connector identifier
attr_accessor :uuid
attr_accessor :fields
+ attr_accessor :capabilities
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'name' => :'name',
@@ -74,11 +76,12 @@
:'months_to_fetch' => :'months_to_fetch',
:'account_types' => :'account_types',
:'auth_mechanism' => :'auth_mechanism',
:'siret' => :'siret',
:'uuid' => :'uuid',
- :'fields' => :'fields'
+ :'fields' => :'fields',
+ :'capabilities' => :'capabilities'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -96,11 +99,12 @@
:'months_to_fetch' => :'Integer',
:'account_types' => :'Array<String>',
:'auth_mechanism' => :'String',
:'siret' => :'String',
:'uuid' => :'String',
- :'fields' => :'Array<Field>'
+ :'fields' => :'Array<Field>',
+ :'capabilities' => :'Array<String>'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -181,10 +185,16 @@
if attributes.has_key?(:'fields')
if (value = attributes[:'fields']).is_a?(Array)
self.fields = value
end
end
+
+ if attributes.has_key?(:'capabilities')
+ if (value = attributes[:'capabilities']).is_a?(Array)
+ self.capabilities = value
+ end
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -246,11 +256,12 @@
months_to_fetch == o.months_to_fetch &&
account_types == o.account_types &&
auth_mechanism == o.auth_mechanism &&
siret == o.siret &&
uuid == o.uuid &&
- fields == o.fields
+ fields == o.fields &&
+ capabilities == o.capabilities
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -258,10 +269,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].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
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself