lib/snaptrade/models/account.rb in snaptrade-1.17.5 vs lib/snaptrade/models/account.rb in snaptrade-1.17.6
- old
+ new
@@ -32,10 +32,12 @@
attr_accessor :cash_restrictions
attr_accessor :sync_status
+ attr_accessor :balance
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
:'brokerage_authorization' => :'brokerage_authorization',
@@ -44,11 +46,12 @@
:'number' => :'number',
:'institution_name' => :'institution_name',
:'created_date' => :'created_date',
:'meta' => :'meta',
:'cash_restrictions' => :'cash_restrictions',
- :'sync_status' => :'sync_status'
+ :'sync_status' => :'sync_status',
+ :'balance' => :'balance'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -65,11 +68,12 @@
:'number' => :'String',
:'institution_name' => :'String',
:'created_date' => :'String',
:'meta' => :'Hash<String, Object>',
:'cash_restrictions' => :'Array<CashRestriction>',
- :'sync_status' => :'AccountSyncStatus'
+ :'sync_status' => :'AccountSyncStatus',
+ :'balance' => :'AccountBalance'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -133,10 +137,14 @@
end
if attributes.key?(:'sync_status')
self.sync_status = attributes[:'sync_status']
end
+
+ if attributes.key?(:'balance')
+ self.balance = attributes[:'balance']
+ 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
@@ -162,11 +170,12 @@
number == o.number &&
institution_name == o.institution_name &&
created_date == o.created_date &&
meta == o.meta &&
cash_restrictions == o.cash_restrictions &&
- sync_status == o.sync_status
+ sync_status == o.sync_status &&
+ balance == o.balance
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -174,10 +183,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, brokerage_authorization, portfolio_group, name, number, institution_name, created_date, meta, cash_restrictions, sync_status].hash
+ [id, brokerage_authorization, portfolio_group, name, number, institution_name, created_date, meta, cash_restrictions, sync_status, balance].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself