lib/budgea_client/models/connector.rb in budgea_client-5.3.8 vs lib/budgea_client/models/connector.rb in budgea_client-5.4.0
- old
+ new
@@ -59,10 +59,12 @@
attr_accessor :fields
attr_accessor :capabilities
+ attr_accessor :sources
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'name' => :'name',
@@ -78,11 +80,12 @@
:'auth_mechanism' => :'auth_mechanism',
:'siret' => :'siret',
:'uuid' => :'uuid',
:'restricted' => :'restricted',
:'fields' => :'fields',
- :'capabilities' => :'capabilities'
+ :'capabilities' => :'capabilities',
+ :'sources' => :'sources'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -101,11 +104,12 @@
:'auth_mechanism' => :'String',
:'siret' => :'String',
:'uuid' => :'String',
:'restricted' => :'BOOLEAN',
:'fields' => :'Array<Field>',
- :'capabilities' => :'Array<String>'
+ :'capabilities' => :'Array<String>',
+ :'sources' => :'Array<ConnectorSource>'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -194,10 +198,16 @@
if attributes.has_key?(:'capabilities')
if (value = attributes[:'capabilities']).is_a?(Array)
self.capabilities = value
end
end
+
+ if attributes.has_key?(:'sources')
+ if (value = attributes[:'sources']).is_a?(Array)
+ self.sources = 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
@@ -260,11 +270,12 @@
auth_mechanism == o.auth_mechanism &&
siret == o.siret &&
uuid == o.uuid &&
restricted == o.restricted &&
fields == o.fields &&
- capabilities == o.capabilities
+ capabilities == o.capabilities &&
+ sources == o.sources
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -272,10 +283,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, hidden, charged, code, beta, color, slug, sync_frequency, months_to_fetch, account_types, auth_mechanism, siret, uuid, restricted, 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, sources].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself