class

Plaid::AssetReportInvestments

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

A transaction within an investment account.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, investment_transaction_id : String | Nil = nil, account_id : String | Nil = nil, security_id : String | Nil = nil, date : Time | Nil = nil, name : String | Nil = nil, quantity : Float64 | Nil = nil, amount : Float64 | Nil = nil, price : Float64 | Nil = nil, fees : Float64 | Nil = nil, _type : Plaid::InvestmentTransactionType | Nil = nil, subtype : Plaid::InvestmentTransactionSubtype | Nil = nil, iso_currency_code : String | Nil = nil, unofficial_currency_code : String | 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

_type
Source
_type=(new_value : Plaid::InvestmentTransactionType | Nil)

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

Source
account_id

The account_id of the account against which this transaction posted.

Source
account_id=(new_value : String | Nil)

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

Source
amount

The complete value of the transaction. Positive values when cash is debited, e.g. purchases of stock; negative values when cash is credited, e.g. sales of stock. Treatment remains the same for cash-only movements unassociated with securities.

Source
amount=(new_value : Float64 | Nil)

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

Source
date

The ISO 8601 posting date for the transaction.

Source
date=(new_value : Time | Nil)

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

Source
fees

The combined value of all fees applied to this transaction

Source
fees=(new_value : Float64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] fees 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

investment_transaction_id

The ID of the Investment transaction, unique across all Plaid transactions. Like all Plaid identifiers, the investment_transaction_id is case sensitive.

Source
investment_transaction_id=(new_value : String | Nil)

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

Source
iso_currency_code

The ISO-4217 currency code of the transaction. 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
list_invalid_properties

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

Source
name

The institution’s description of the transaction.

Source
name=(new_value : String | Nil)

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

Source
price

The price of the security at which this transaction occurred.

Source
price=(new_value : Float64 | Nil)

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

Source
quantity

The number of units of the security involved in this transaction. Positive for buy transactions; negative for sell transactions.

Source
quantity=(new_value : Float64 | Nil)

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

Source
security_id

The security_id to which this transaction is related.

Source
security_id=(new_value : String | Nil)

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

Source
subtype
Source
subtype=(new_value : Plaid::InvestmentTransactionSubtype | Nil)

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

Source
unofficial_currency_code

The unofficial currency code associated with the holding. 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 iso_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