lib/budgea_client/models/client.rb in budgea_client-3.0.0 vs lib/budgea_client/models/client.rb in budgea_client-3.0.1
- old
+ new
@@ -24,50 +24,30 @@
attr_accessor :private_key
attr_accessor :redirect_uri
- # Primary color of client
- attr_accessor :primary_color
-
- # Secondary color of client
- attr_accessor :secondary_color
-
# Should the client display the company manager page.
attr_accessor :pro
- # Text to display as a default description.
- attr_accessor :description
-
- # Text to display as a description for banks.
- attr_accessor :description_banks
-
- # Text to display as a description for providers.
- attr_accessor :description_providers
-
attr_accessor :id_logo
- # customizable information
- attr_accessor :information
+ # customizable config
+ attr_accessor :config
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'name' => :'name',
:'secret' => :'secret',
:'public_key' => :'public_key',
:'private_key' => :'private_key',
:'redirect_uri' => :'redirect_uri',
- :'primary_color' => :'primary_color',
- :'secondary_color' => :'secondary_color',
:'pro' => :'pro',
- :'description' => :'description',
- :'description_banks' => :'description_banks',
- :'description_providers' => :'description_providers',
:'id_logo' => :'id_logo',
- :'information' => :'information'
+ :'config' => :'config'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -76,18 +56,13 @@
:'name' => :'String',
:'secret' => :'String',
:'public_key' => :'String',
:'private_key' => :'String',
:'redirect_uri' => :'String',
- :'primary_color' => :'String',
- :'secondary_color' => :'String',
:'pro' => :'BOOLEAN',
- :'description' => :'String',
- :'description_banks' => :'String',
- :'description_providers' => :'String',
:'id_logo' => :'Integer',
- :'information' => :'String'
+ :'config' => :'String'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -123,42 +98,22 @@
self.redirect_uri = attributes[:'redirect_uri']
else
self.redirect_uri = ''
end
- if attributes.has_key?(:'primary_color')
- self.primary_color = attributes[:'primary_color']
- end
-
- if attributes.has_key?(:'secondary_color')
- self.secondary_color = attributes[:'secondary_color']
- end
-
if attributes.has_key?(:'pro')
self.pro = attributes[:'pro']
else
self.pro = false
end
- if attributes.has_key?(:'description')
- self.description = attributes[:'description']
- end
-
- if attributes.has_key?(:'description_banks')
- self.description_banks = attributes[:'description_banks']
- end
-
- if attributes.has_key?(:'description_providers')
- self.description_providers = attributes[:'description_providers']
- end
-
if attributes.has_key?(:'id_logo')
self.id_logo = attributes[:'id_logo']
end
- if attributes.has_key?(:'information')
- self.information = attributes[:'information']
+ if attributes.has_key?(:'config')
+ self.config = attributes[:'config']
end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
@@ -207,18 +162,13 @@
name == o.name &&
secret == o.secret &&
public_key == o.public_key &&
private_key == o.private_key &&
redirect_uri == o.redirect_uri &&
- primary_color == o.primary_color &&
- secondary_color == o.secondary_color &&
pro == o.pro &&
- description == o.description &&
- description_banks == o.description_banks &&
- description_providers == o.description_providers &&
id_logo == o.id_logo &&
- information == o.information
+ config == o.config
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -226,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, primary_color, secondary_color, pro, description, description_banks, description_providers, id_logo, information].hash
+ [id, name, secret, public_key, private_key, redirect_uri, 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