class

Plaid::TransactionOverride

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

Data to populate as test transaction data. If not specified, random transactions will be generated instead.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, date_transacted : Time | Nil = nil, date_posted : Time | Nil = nil, amount : Float64 | Nil = nil, description : String | Nil = nil, currency : 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

amount

The transaction amount. Can be negative.

Source
amount=(new_value : Float64 | Nil)

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

Source
currency

The ISO-4217 format currency code for the transaction.

Source
currency=(new_value : String | Nil)

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

Source
date_posted

The date the transaction posted, in ISO 8601 (YYYY-MM-DD) format. Posted dates in the past or present will result in posted transactions; posted dates in the future will result in pending transactions.

Source
date_posted=(new_value : Time | Nil)

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

Source
date_transacted

The date of the transaction, in ISO 8601 (YYYY-MM-DD) format. Transactions in Sandbox will move from pending to posted once their transaction date has been reached. If a date_transacted is not provided by the institution, a transaction date may be available in the authorized_date field.

Source
date_transacted=(new_value : Time | Nil)

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

Source
description

The transaction description.

Source
description=(new_value : String | Nil)

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

list_invalid_properties

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

Source
valid?

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

Source