Each transaction has the following fields. JFYI, type with following ? means, that it can contain null value
class Transaction(
id: Long,
money: Long,
category_id: Long?,
type_id: Long?,
subtype_id: Long?,
account_id: Long,
currency_code: String,
timestamp: String,
)
id— numeric identifier of this transaction. They do not represent the actual order of transactionsmoney— a non-zero number, that can take negative values for spendings and positive number for earning. This number represents “cents”. Some currencies do not require 100 pieces of coins to form a banknote of a smallest nominal. They instead can use 10 or 100 or any other amount of coins. The list of supported currencies and amount of digits after the comma is described here. For example,money = 1069andcurrency_code = "EUR"would represent10.69€category_id— an optional numeric identificator of a selected categorytype_id— an optional numeric identificator of a selected type. Null-category implies null-type, however null-type does not imply null-categorysubtype_id— an optional numeric identificator of a selected subtype. Null-type implies null-subtype, however null-subtype does not imply null-typeaccount_id— a numeric identificator of an account/wallet. Transactions in the same account always have the samecurrency_codecurrency_code— 3-letter uppersace string, that defines the currency, like “EUR”, “USD”, “UAH” etc. For the list of all supported currencies visit Currenciestimestamp— an ISO-8601 string with timezone. E.g. “2023-06-20T07:42:00+02:00”