class

Plaid::BaseReportAccountBalances

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Base Report information about an account's balances

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, available : Float64 | Nil = nil, current : Float64 | Nil = nil, limit : Float64 | Nil = nil, iso_currency_code : String | Nil = nil, unofficial_currency_code : String | Nil = nil, last_updated_datetime : Time | Nil = nil, average_balance : Float64 | Nil = nil, average_monthly_balances : Array(BaseReportAverageMonthlyBalances) | Nil = nil, most_recent_thirty_day_average_balance : Float64 | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

available

The amount of funds available to be withdrawn from the account, as determined by the financial institution. For credit-type accounts, the available balance typically equals the limit less the current balance, less any pending outflows plus any pending inflows. For depository-type accounts, the available balance typically equals the current balance less any pending outflows plus any pending inflows. For depository-type accounts, the available balance does not include the overdraft limit. For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the available balance is the total cash available to withdraw as presented by the institution. Note that not all institutions calculate the available balance. In the event that available balance is unavailable, Plaid will return an available balance value of null. Available balance may be cached and is not guaranteed to be up-to-date in realtime unless the value was returned by /accounts/balance/get. If current is null this field is guaranteed not to be null.

Source
available=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] available Object to be assigned

Source
average_balance

The average historical balance for the entire report

Source
average_balance=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] average_balance Object to be assigned

Source
average_balance_present=(average_balance_present : Bool)
Source
average_balance_present?
Source
average_monthly_balances

The average historical balance of each calendar month

Source
average_monthly_balances=(new_value : Array(BaseReportAverageMonthlyBalances) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] average_monthly_balances Object to be assigned

Source
current

The total amount of funds in or owed by the account. For credit-type accounts, a positive balance indicates the amount owed; a negative amount indicates the lender owing the account holder. For loan-type accounts, the current balance is the principal remaining on the loan, except in the case of student loan accounts at Sallie Mae (ins_116944). For Sallie Mae student loans, the account's balance includes both principal and any outstanding interest. For investment-type accounts (or brokerage-type accounts for API versions 2018-05-22 and earlier), the current balance is the total value of assets as presented by the institution. Note that balance information may be cached unless the value was returned by /accounts/balance/get; if the Item is enabled for Transactions, the balance will be at least as recent as the most recent Transaction update. If you require realtime balance information, use the available balance as provided by /accounts/balance/get. When returned by /accounts/balance/get, this field may be null. When this happens, available is guaranteed not to be null.

Source
current=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] current Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

iso_currency_code

The ISO-4217 currency code of the balance. Always null if unofficial_currency_code is non-null.

Source
iso_currency_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] iso_currency_code Object to be assigned

Source
last_updated_datetime

Timestamp in ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ) indicating the last time that the balance for the given account has been updated This is currently only provided when the min_last_updated_datetime is passed when calling /accounts/balance/get for ins_128026 (Capital One).

Source
last_updated_datetime=(new_value : Time | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] last_updated_datetime Object to be assigned

Source
last_updated_datetime_present=(last_updated_datetime_present : Bool)
Source
last_updated_datetime_present?
Source
limit

For credit-type accounts, this represents the credit limit. For depository-type accounts, this represents the pre-arranged overdraft limit, which is common for current (checking) accounts in Europe. In North America, this field is typically only available for credit-type accounts.

Source
limit=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] limit Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
most_recent_thirty_day_average_balance

The average historical balance from the most recent 30 days

Source
most_recent_thirty_day_average_balance=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] most_recent_thirty_day_average_balance Object to be assigned

Source
most_recent_thirty_day_average_balance_present=(most_recent_thirty_day_average_balance_present : Bool)
Source
most_recent_thirty_day_average_balance_present?
Source
unofficial_currency_code

The unofficial currency code associated with the balance. Always null if iso_currency_code is non-null. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries. See the currency code schema for a full listing of supported unofficial_currency_codes.

Source
unofficial_currency_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] unofficial_currency_code Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source