class Plaid::Transaction
- Plaid::Transaction
- Reference
- Object
Overview
A representation of a transaction
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
plaid/models/transaction.crConstant Summary
-
ERROR_MESSAGE_FOR_PAYMENT_CHANNEL =
"invalid value for \"payment_channel\", must be one of [online, in store, other]."
-
ERROR_MESSAGE_FOR_TRANSACTION_TYPE =
"invalid value for \"transaction_type\", must be one of [digital, place, special, unresolved]."
-
VALID_VALUES_FOR_PAYMENT_CHANNEL =
String.static_array("online", "in store", "other")
-
VALID_VALUES_FOR_TRANSACTION_TYPE =
String.static_array("digital", "place", "special", "unresolved")
Constructors
- .new(pull : JSON::PullParser)
-
.new(*, account_id : String | Nil = nil, amount : Float64 | Nil = nil, iso_currency_code : String | Nil = nil, unofficial_currency_code : String | Nil = nil, category : Array(String) | Nil = nil, category_id : String | Nil = nil, date : Time | Nil = nil, location : Location | Nil = nil, name : String | Nil = nil, payment_meta : PaymentMeta | Nil = nil, pending : Bool | Nil = nil, pending_transaction_id : String | Nil = nil, account_owner : String | Nil = nil, transaction_id : String | Nil = nil, authorized_date : Time | Nil = nil, authorized_datetime : Time | Nil = nil, datetime : Time | Nil = nil, payment_channel : String | Nil = nil, transaction_code : Plaid::TransactionCode | Nil = nil, check_number : String | Nil = nil, merchant_name : String | Nil = nil, original_description : String | Nil = nil, transaction_type : String | Nil = nil, logo_url : String | Nil = nil, website : String | Nil = nil, personal_finance_category : PersonalFinanceCategory | Nil = nil, personal_finance_category_icon_url : String | Nil = nil, counterparties : Array(TransactionCounterparty) | Nil = nil, merchant_entity_id : String | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #account_id : String | Nil
-
#account_id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #account_owner : String | Nil
-
#account_owner=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #amount : Float64 | Nil
-
#amount=(new_value : Float64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #authorized_date : Time | Nil
-
#authorized_date=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #authorized_datetime : Time | Nil
-
#authorized_datetime=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #category : Array(String) | Nil
-
#category=(new_value : Array(String) | Nil)
Custom attribute writer method checking allowed values (enum).
- #category_id : String | Nil
-
#category_id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #check_number : String | Nil
-
#check_number=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #check_number_present=(check_number_present : Bool)
- #check_number_present? : Bool
- #counterparties : Array(TransactionCounterparty) | Nil
-
#counterparties=(new_value : Array(TransactionCounterparty) | Nil)
Custom attribute writer method checking allowed values (enum).
- #date : Time | Nil
-
#date=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #datetime : Time | Nil
-
#datetime=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #iso_currency_code : String | Nil
-
#iso_currency_code=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #location : Location | Nil
-
#location=(new_value : Location | Nil)
Custom attribute writer method checking allowed values (enum).
- #logo_url : String | Nil
-
#logo_url=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #logo_url_present=(logo_url_present : Bool)
- #logo_url_present? : Bool
- #merchant_entity_id : String | Nil
-
#merchant_entity_id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #merchant_entity_id_present=(merchant_entity_id_present : Bool)
- #merchant_entity_id_present? : Bool
- #merchant_name : String | Nil
-
#merchant_name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #merchant_name_present=(merchant_name_present : Bool)
- #merchant_name_present? : Bool
- #name : String | Nil
-
#name=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #original_description : String | Nil
-
#original_description=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #original_description_present=(original_description_present : Bool)
- #original_description_present? : Bool
- #payment_channel : String | Nil
-
#payment_channel=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #payment_meta : PaymentMeta | Nil
-
#payment_meta=(new_value : PaymentMeta | Nil)
Custom attribute writer method checking allowed values (enum).
- #pending : Bool | Nil
-
#pending=(new_value : Bool | Nil)
Custom attribute writer method checking allowed values (enum).
- #pending_transaction_id : String | Nil
-
#pending_transaction_id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #personal_finance_category : PersonalFinanceCategory | Nil
-
#personal_finance_category=(new_value : PersonalFinanceCategory | Nil)
Custom attribute writer method checking allowed values (enum).
- #personal_finance_category_icon_url : String | Nil
-
#personal_finance_category_icon_url=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #personal_finance_category_present=(personal_finance_category_present : Bool)
- #personal_finance_category_present? : Bool
- #transaction_code : Plaid::TransactionCode | Nil
-
#transaction_code=(new_value : Plaid::TransactionCode | Nil)
Custom attribute writer method checking allowed values (enum).
- #transaction_id : String | Nil
-
#transaction_id=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #transaction_type : String | Nil
-
#transaction_type=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #unofficial_currency_code : String | Nil
-
#unofficial_currency_code=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
- #website : String | Nil
-
#website=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #website_present=(website_present : Bool)
- #website_present? : Bool
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] account_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] account_owner Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] authorized_date Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] authorized_datetime Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] category Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] category_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] check_number Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] counterparties Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] date Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] datetime Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] iso_currency_code Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] location Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] logo_url Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] merchant_entity_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] merchant_name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] original_description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_channel Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_meta Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] pending Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] pending_transaction_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] personal_finance_category Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] personal_finance_category_icon_url Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] transaction_code Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] transaction_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] transaction_type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] unofficial_currency_code Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid
Custom attribute writer method checking allowed values (enum). @param [Object] website Object to be assigned