firefly-iii-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +349 -0
  4. data/Rakefile +10 -0
  5. data/docs/AboutApi.md +143 -0
  6. data/docs/Account.md +70 -0
  7. data/docs/AccountArray.md +20 -0
  8. data/docs/AccountRead.md +22 -0
  9. data/docs/AccountSingle.md +18 -0
  10. data/docs/AccountTypeFilter.md +15 -0
  11. data/docs/AccountTypeProperty.md +15 -0
  12. data/docs/AccountsApi.md +531 -0
  13. data/docs/Attachment.md +44 -0
  14. data/docs/AttachmentArray.md +20 -0
  15. data/docs/AttachmentRead.md +24 -0
  16. data/docs/AttachmentSingle.md +18 -0
  17. data/docs/AttachmentsApi.md +510 -0
  18. data/docs/AvailableBudget.md +38 -0
  19. data/docs/AvailableBudgetArray.md +20 -0
  20. data/docs/AvailableBudgetRead.md +22 -0
  21. data/docs/AvailableBudgetSingle.md +18 -0
  22. data/docs/AvailableBudgetsApi.md +369 -0
  23. data/docs/BasicSummaryEntry.md +36 -0
  24. data/docs/Bill.md +50 -0
  25. data/docs/BillArray.md +20 -0
  26. data/docs/BillPaidDates.md +22 -0
  27. data/docs/BillRead.md +22 -0
  28. data/docs/BillSingle.md +18 -0
  29. data/docs/BillsApi.md +600 -0
  30. data/docs/Budget.md +28 -0
  31. data/docs/BudgetArray.md +20 -0
  32. data/docs/BudgetLimit.md +38 -0
  33. data/docs/BudgetLimitArray.md +20 -0
  34. data/docs/BudgetLimitRead.md +22 -0
  35. data/docs/BudgetLimitSingle.md +18 -0
  36. data/docs/BudgetRead.md +22 -0
  37. data/docs/BudgetSingle.md +18 -0
  38. data/docs/BudgetSpent.md +26 -0
  39. data/docs/BudgetsApi.md +897 -0
  40. data/docs/CategoriesApi.md +446 -0
  41. data/docs/Category.md +26 -0
  42. data/docs/CategoryArray.md +20 -0
  43. data/docs/CategoryEarned.md +30 -0
  44. data/docs/CategoryRead.md +22 -0
  45. data/docs/CategorySingle.md +18 -0
  46. data/docs/CategorySpent.md +30 -0
  47. data/docs/ChartDataPoint.md +18 -0
  48. data/docs/ChartDataSet.md +32 -0
  49. data/docs/ChartsApi.md +374 -0
  50. data/docs/ConfigurationApi.md +148 -0
  51. data/docs/ConfigurationUpdate.md +18 -0
  52. data/docs/CurrenciesApi.md +1198 -0
  53. data/docs/Currency.md +32 -0
  54. data/docs/CurrencyArray.md +22 -0
  55. data/docs/CurrencyExchangeRatesApi.md +86 -0
  56. data/docs/CurrencyRead.md +22 -0
  57. data/docs/CurrencySingle.md +18 -0
  58. data/docs/ExchangeRate.md +22 -0
  59. data/docs/ExchangeRateArray.md +22 -0
  60. data/docs/ExchangeRateAttributes.md +44 -0
  61. data/docs/ImportApi.md +232 -0
  62. data/docs/ImportJob.md +22 -0
  63. data/docs/ImportJobArray.md +22 -0
  64. data/docs/ImportJobAttributes.md +42 -0
  65. data/docs/ImportJobSingle.md +18 -0
  66. data/docs/LinkType.md +26 -0
  67. data/docs/LinkTypeArray.md +22 -0
  68. data/docs/LinkTypeRead.md +24 -0
  69. data/docs/LinkTypeSingle.md +18 -0
  70. data/docs/LinksApi.md +804 -0
  71. data/docs/Meta.md +18 -0
  72. data/docs/MetaPagination.md +26 -0
  73. data/docs/ObjectLink.md +20 -0
  74. data/docs/ObjectLink0.md +20 -0
  75. data/docs/PageLink.md +22 -0
  76. data/docs/PiggyBank.md +54 -0
  77. data/docs/PiggyBankArray.md +22 -0
  78. data/docs/PiggyBankEvent.md +24 -0
  79. data/docs/PiggyBankEventArray.md +22 -0
  80. data/docs/PiggyBankEventAttributes.md +34 -0
  81. data/docs/PiggyBankRead.md +24 -0
  82. data/docs/PiggyBankSingle.md +18 -0
  83. data/docs/PiggyBanksApi.md +440 -0
  84. data/docs/Preference.md +24 -0
  85. data/docs/PreferenceArray.md +22 -0
  86. data/docs/PreferenceRead.md +22 -0
  87. data/docs/PreferenceSingle.md +18 -0
  88. data/docs/PreferencesApi.md +224 -0
  89. data/docs/Recurrence.md +45 -0
  90. data/docs/RecurrenceArray.md +22 -0
  91. data/docs/RecurrenceRead.md +24 -0
  92. data/docs/RecurrenceRepetition.md +34 -0
  93. data/docs/RecurrenceSingle.md +18 -0
  94. data/docs/RecurrenceTransaction.md +68 -0
  95. data/docs/RecurrencesApi.md +513 -0
  96. data/docs/Rule.md +42 -0
  97. data/docs/RuleAction.md +32 -0
  98. data/docs/RuleArray.md +22 -0
  99. data/docs/RuleGroup.md +28 -0
  100. data/docs/RuleGroupArray.md +22 -0
  101. data/docs/RuleGroupRead.md +24 -0
  102. data/docs/RuleGroupSingle.md +18 -0
  103. data/docs/RuleGroupsApi.md +603 -0
  104. data/docs/RuleRead.md +24 -0
  105. data/docs/RuleSingle.md +18 -0
  106. data/docs/RuleTrigger.md +32 -0
  107. data/docs/RulesApi.md +528 -0
  108. data/docs/SummaryApi.md +84 -0
  109. data/docs/SystemConfiguration.md +18 -0
  110. data/docs/SystemConfigurationData.md +24 -0
  111. data/docs/SystemInfo.md +18 -0
  112. data/docs/SystemInfoData.md +26 -0
  113. data/docs/TagArray.md +22 -0
  114. data/docs/TagCloud.md +18 -0
  115. data/docs/TagCloudTag.md +24 -0
  116. data/docs/TagModel.md +34 -0
  117. data/docs/TagRead.md +24 -0
  118. data/docs/TagSingle.md +18 -0
  119. data/docs/TagsApi.md +523 -0
  120. data/docs/Transaction.md +26 -0
  121. data/docs/TransactionArray.md +22 -0
  122. data/docs/TransactionLink.md +30 -0
  123. data/docs/TransactionLinkArray.md +22 -0
  124. data/docs/TransactionLinkRead.md +24 -0
  125. data/docs/TransactionLinkSingle.md +18 -0
  126. data/docs/TransactionRead.md +24 -0
  127. data/docs/TransactionSingle.md +18 -0
  128. data/docs/TransactionSplit.md +128 -0
  129. data/docs/TransactionTypeFilter.md +15 -0
  130. data/docs/TransactionsApi.md +592 -0
  131. data/docs/User.md +28 -0
  132. data/docs/UserArray.md +22 -0
  133. data/docs/UserRead.md +24 -0
  134. data/docs/UserSingle.md +18 -0
  135. data/docs/UsersApi.md +365 -0
  136. data/docs/ValidationError.md +20 -0
  137. data/docs/ValidationErrorErrors.md +20 -0
  138. data/firefly-iii-client.gemspec +39 -0
  139. data/git_push.sh +58 -0
  140. data/lib/firefly_iii_client.rb +172 -0
  141. data/lib/firefly_iii_client/api/about_api.rb +136 -0
  142. data/lib/firefly_iii_client/api/accounts_api.rb +495 -0
  143. data/lib/firefly_iii_client/api/attachments_api.rb +470 -0
  144. data/lib/firefly_iii_client/api/available_budgets_api.rb +348 -0
  145. data/lib/firefly_iii_client/api/bills_api.rb +555 -0
  146. data/lib/firefly_iii_client/api/budgets_api.rb +866 -0
  147. data/lib/firefly_iii_client/api/categories_api.rb +417 -0
  148. data/lib/firefly_iii_client/api/charts_api.rb +383 -0
  149. data/lib/firefly_iii_client/api/configuration_api.rb +156 -0
  150. data/lib/firefly_iii_client/api/currencies_api.rb +1089 -0
  151. data/lib/firefly_iii_client/api/currency_exchange_rates_api.rb +91 -0
  152. data/lib/firefly_iii_client/api/import_api.rb +220 -0
  153. data/lib/firefly_iii_client/api/links_api.rb +737 -0
  154. data/lib/firefly_iii_client/api/piggy_banks_api.rb +408 -0
  155. data/lib/firefly_iii_client/api/preferences_api.rb +216 -0
  156. data/lib/firefly_iii_client/api/recurrences_api.rb +472 -0
  157. data/lib/firefly_iii_client/api/rule_groups_api.rb +559 -0
  158. data/lib/firefly_iii_client/api/rules_api.rb +493 -0
  159. data/lib/firefly_iii_client/api/summary_api.rb +96 -0
  160. data/lib/firefly_iii_client/api/tags_api.rb +491 -0
  161. data/lib/firefly_iii_client/api/transactions_api.rb +546 -0
  162. data/lib/firefly_iii_client/api/users_api.rb +342 -0
  163. data/lib/firefly_iii_client/api_client.rb +390 -0
  164. data/lib/firefly_iii_client/api_error.rb +57 -0
  165. data/lib/firefly_iii_client/configuration.rb +277 -0
  166. data/lib/firefly_iii_client/models/account.rb +564 -0
  167. data/lib/firefly_iii_client/models/account_array.rb +229 -0
  168. data/lib/firefly_iii_client/models/account_read.rb +237 -0
  169. data/lib/firefly_iii_client/models/account_single.rb +218 -0
  170. data/lib/firefly_iii_client/models/account_type_filter.rb +56 -0
  171. data/lib/firefly_iii_client/models/account_type_property.rb +47 -0
  172. data/lib/firefly_iii_client/models/attachment.rb +401 -0
  173. data/lib/firefly_iii_client/models/attachment_array.rb +229 -0
  174. data/lib/firefly_iii_client/models/attachment_read.rb +246 -0
  175. data/lib/firefly_iii_client/models/attachment_single.rb +218 -0
  176. data/lib/firefly_iii_client/models/available_budget.rb +331 -0
  177. data/lib/firefly_iii_client/models/available_budget_array.rb +229 -0
  178. data/lib/firefly_iii_client/models/available_budget_read.rb +237 -0
  179. data/lib/firefly_iii_client/models/available_budget_single.rb +218 -0
  180. data/lib/firefly_iii_client/models/basic_summary_entry.rb +307 -0
  181. data/lib/firefly_iii_client/models/bill.rb +433 -0
  182. data/lib/firefly_iii_client/models/bill_array.rb +229 -0
  183. data/lib/firefly_iii_client/models/bill_paid_dates.rb +239 -0
  184. data/lib/firefly_iii_client/models/bill_read.rb +237 -0
  185. data/lib/firefly_iii_client/models/bill_single.rb +218 -0
  186. data/lib/firefly_iii_client/models/budget.rb +271 -0
  187. data/lib/firefly_iii_client/models/budget_array.rb +229 -0
  188. data/lib/firefly_iii_client/models/budget_limit.rb +335 -0
  189. data/lib/firefly_iii_client/models/budget_limit_array.rb +229 -0
  190. data/lib/firefly_iii_client/models/budget_limit_read.rb +237 -0
  191. data/lib/firefly_iii_client/models/budget_limit_single.rb +218 -0
  192. data/lib/firefly_iii_client/models/budget_read.rb +237 -0
  193. data/lib/firefly_iii_client/models/budget_single.rb +218 -0
  194. data/lib/firefly_iii_client/models/budget_spent.rb +256 -0
  195. data/lib/firefly_iii_client/models/category.rb +263 -0
  196. data/lib/firefly_iii_client/models/category_array.rb +229 -0
  197. data/lib/firefly_iii_client/models/category_earned.rb +274 -0
  198. data/lib/firefly_iii_client/models/category_read.rb +237 -0
  199. data/lib/firefly_iii_client/models/category_single.rb +218 -0
  200. data/lib/firefly_iii_client/models/category_spent.rb +274 -0
  201. data/lib/firefly_iii_client/models/chart_data_point.rb +219 -0
  202. data/lib/firefly_iii_client/models/chart_data_set.rb +289 -0
  203. data/lib/firefly_iii_client/models/configuration_update.rb +224 -0
  204. data/lib/firefly_iii_client/models/currency.rb +299 -0
  205. data/lib/firefly_iii_client/models/currency_array.rb +238 -0
  206. data/lib/firefly_iii_client/models/currency_read.rb +237 -0
  207. data/lib/firefly_iii_client/models/currency_single.rb +218 -0
  208. data/lib/firefly_iii_client/models/exchange_rate.rb +237 -0
  209. data/lib/firefly_iii_client/models/exchange_rate_array.rb +238 -0
  210. data/lib/firefly_iii_client/models/exchange_rate_attributes.rb +336 -0
  211. data/lib/firefly_iii_client/models/import_job.rb +237 -0
  212. data/lib/firefly_iii_client/models/import_job_array.rb +238 -0
  213. data/lib/firefly_iii_client/models/import_job_attributes.rb +337 -0
  214. data/lib/firefly_iii_client/models/import_job_single.rb +218 -0
  215. data/lib/firefly_iii_client/models/link_type.rb +260 -0
  216. data/lib/firefly_iii_client/models/link_type_array.rb +238 -0
  217. data/lib/firefly_iii_client/models/link_type_read.rb +246 -0
  218. data/lib/firefly_iii_client/models/link_type_single.rb +218 -0
  219. data/lib/firefly_iii_client/models/meta.rb +218 -0
  220. data/lib/firefly_iii_client/models/meta_pagination.rb +254 -0
  221. data/lib/firefly_iii_client/models/object_link.rb +227 -0
  222. data/lib/firefly_iii_client/models/object_link0.rb +227 -0
  223. data/lib/firefly_iii_client/models/page_link.rb +236 -0
  224. data/lib/firefly_iii_client/models/piggy_bank.rb +400 -0
  225. data/lib/firefly_iii_client/models/piggy_bank_array.rb +238 -0
  226. data/lib/firefly_iii_client/models/piggy_bank_event.rb +246 -0
  227. data/lib/firefly_iii_client/models/piggy_bank_event_array.rb +238 -0
  228. data/lib/firefly_iii_client/models/piggy_bank_event_attributes.rb +291 -0
  229. data/lib/firefly_iii_client/models/piggy_bank_read.rb +246 -0
  230. data/lib/firefly_iii_client/models/piggy_bank_single.rb +218 -0
  231. data/lib/firefly_iii_client/models/preference.rb +251 -0
  232. data/lib/firefly_iii_client/models/preference_array.rb +238 -0
  233. data/lib/firefly_iii_client/models/preference_read.rb +237 -0
  234. data/lib/firefly_iii_client/models/preference_single.rb +218 -0
  235. data/lib/firefly_iii_client/models/recurrence.rb +395 -0
  236. data/lib/firefly_iii_client/models/recurrence_array.rb +238 -0
  237. data/lib/firefly_iii_client/models/recurrence_read.rb +246 -0
  238. data/lib/firefly_iii_client/models/recurrence_repetition.rb +342 -0
  239. data/lib/firefly_iii_client/models/recurrence_single.rb +218 -0
  240. data/lib/firefly_iii_client/models/recurrence_transaction.rb +483 -0
  241. data/lib/firefly_iii_client/models/rule.rb +395 -0
  242. data/lib/firefly_iii_client/models/rule_action.rb +326 -0
  243. data/lib/firefly_iii_client/models/rule_array.rb +238 -0
  244. data/lib/firefly_iii_client/models/rule_group.rb +268 -0
  245. data/lib/firefly_iii_client/models/rule_group_array.rb +238 -0
  246. data/lib/firefly_iii_client/models/rule_group_read.rb +246 -0
  247. data/lib/firefly_iii_client/models/rule_group_single.rb +218 -0
  248. data/lib/firefly_iii_client/models/rule_read.rb +246 -0
  249. data/lib/firefly_iii_client/models/rule_single.rb +218 -0
  250. data/lib/firefly_iii_client/models/rule_trigger.rb +330 -0
  251. data/lib/firefly_iii_client/models/system_configuration.rb +218 -0
  252. data/lib/firefly_iii_client/models/system_configuration_data.rb +248 -0
  253. data/lib/firefly_iii_client/models/system_info.rb +223 -0
  254. data/lib/firefly_iii_client/models/system_info_data.rb +279 -0
  255. data/lib/firefly_iii_client/models/tag_array.rb +238 -0
  256. data/lib/firefly_iii_client/models/tag_cloud.rb +220 -0
  257. data/lib/firefly_iii_client/models/tag_cloud_tag.rb +249 -0
  258. data/lib/firefly_iii_client/models/tag_model.rb +295 -0
  259. data/lib/firefly_iii_client/models/tag_read.rb +246 -0
  260. data/lib/firefly_iii_client/models/tag_single.rb +218 -0
  261. data/lib/firefly_iii_client/models/transaction.rb +263 -0
  262. data/lib/firefly_iii_client/models/transaction_array.rb +238 -0
  263. data/lib/firefly_iii_client/models/transaction_link.rb +292 -0
  264. data/lib/firefly_iii_client/models/transaction_link_array.rb +238 -0
  265. data/lib/firefly_iii_client/models/transaction_link_read.rb +246 -0
  266. data/lib/firefly_iii_client/models/transaction_link_single.rb +218 -0
  267. data/lib/firefly_iii_client/models/transaction_read.rb +246 -0
  268. data/lib/firefly_iii_client/models/transaction_single.rb +218 -0
  269. data/lib/firefly_iii_client/models/transaction_split.rb +850 -0
  270. data/lib/firefly_iii_client/models/transaction_type_filter.rb +49 -0
  271. data/lib/firefly_iii_client/models/user.rb +320 -0
  272. data/lib/firefly_iii_client/models/user_array.rb +238 -0
  273. data/lib/firefly_iii_client/models/user_read.rb +246 -0
  274. data/lib/firefly_iii_client/models/user_single.rb +218 -0
  275. data/lib/firefly_iii_client/models/validation_error.rb +227 -0
  276. data/lib/firefly_iii_client/models/validation_error_errors.rb +231 -0
  277. data/lib/firefly_iii_client/version.rb +15 -0
  278. data/spec/api/about_api_spec.rb +57 -0
  279. data/spec/api/accounts_api_spec.rb +129 -0
  280. data/spec/api/attachments_api_spec.rb +121 -0
  281. data/spec/api/available_budgets_api_spec.rb +98 -0
  282. data/spec/api/bills_api_spec.rb +140 -0
  283. data/spec/api/budgets_api_spec.rb +194 -0
  284. data/spec/api/categories_api_spec.rb +112 -0
  285. data/spec/api/charts_api_spec.rb +101 -0
  286. data/spec/api/configuration_api_spec.rb +59 -0
  287. data/spec/api/currencies_api_spec.rb +246 -0
  288. data/spec/api/currency_exchange_rates_api_spec.rb +50 -0
  289. data/spec/api/import_api_spec.rb +75 -0
  290. data/spec/api/links_api_spec.rb +173 -0
  291. data/spec/api/piggy_banks_api_spec.rb +109 -0
  292. data/spec/api/preferences_api_spec.rb +72 -0
  293. data/spec/api/recurrences_api_spec.rb +123 -0
  294. data/spec/api/rule_groups_api_spec.rb +142 -0
  295. data/spec/api/rules_api_spec.rb +129 -0
  296. data/spec/api/summary_api_spec.rb +49 -0
  297. data/spec/api/tags_api_spec.rb +126 -0
  298. data/spec/api/transactions_api_spec.rb +137 -0
  299. data/spec/api/users_api_spec.rb +96 -0
  300. data/spec/api_client_spec.rb +226 -0
  301. data/spec/configuration_spec.rb +42 -0
  302. data/spec/models/account_array_spec.rb +40 -0
  303. data/spec/models/account_read_spec.rb +46 -0
  304. data/spec/models/account_single_spec.rb +34 -0
  305. data/spec/models/account_spec.rb +210 -0
  306. data/spec/models/account_type_filter_spec.rb +28 -0
  307. data/spec/models/account_type_property_spec.rb +28 -0
  308. data/spec/models/attachment_array_spec.rb +40 -0
  309. data/spec/models/attachment_read_spec.rb +52 -0
  310. data/spec/models/attachment_single_spec.rb +34 -0
  311. data/spec/models/attachment_spec.rb +120 -0
  312. data/spec/models/available_budget_array_spec.rb +40 -0
  313. data/spec/models/available_budget_read_spec.rb +46 -0
  314. data/spec/models/available_budget_single_spec.rb +34 -0
  315. data/spec/models/available_budget_spec.rb +94 -0
  316. data/spec/models/basic_summary_entry_spec.rb +88 -0
  317. data/spec/models/bill_array_spec.rb +40 -0
  318. data/spec/models/bill_paid_dates_spec.rb +46 -0
  319. data/spec/models/bill_read_spec.rb +46 -0
  320. data/spec/models/bill_single_spec.rb +34 -0
  321. data/spec/models/bill_spec.rb +134 -0
  322. data/spec/models/budget_array_spec.rb +40 -0
  323. data/spec/models/budget_limit_array_spec.rb +40 -0
  324. data/spec/models/budget_limit_read_spec.rb +46 -0
  325. data/spec/models/budget_limit_single_spec.rb +34 -0
  326. data/spec/models/budget_limit_spec.rb +94 -0
  327. data/spec/models/budget_read_spec.rb +46 -0
  328. data/spec/models/budget_single_spec.rb +34 -0
  329. data/spec/models/budget_spec.rb +64 -0
  330. data/spec/models/budget_spent_spec.rb +58 -0
  331. data/spec/models/category_array_spec.rb +40 -0
  332. data/spec/models/category_earned_spec.rb +70 -0
  333. data/spec/models/category_read_spec.rb +46 -0
  334. data/spec/models/category_single_spec.rb +34 -0
  335. data/spec/models/category_spec.rb +58 -0
  336. data/spec/models/category_spent_spec.rb +70 -0
  337. data/spec/models/chart_data_point_spec.rb +34 -0
  338. data/spec/models/chart_data_set_spec.rb +76 -0
  339. data/spec/models/configuration_update_spec.rb +34 -0
  340. data/spec/models/currency_array_spec.rb +46 -0
  341. data/spec/models/currency_read_spec.rb +46 -0
  342. data/spec/models/currency_single_spec.rb +34 -0
  343. data/spec/models/currency_spec.rb +76 -0
  344. data/spec/models/exchange_rate_array_spec.rb +46 -0
  345. data/spec/models/exchange_rate_attributes_spec.rb +112 -0
  346. data/spec/models/exchange_rate_spec.rb +46 -0
  347. data/spec/models/import_job_array_spec.rb +46 -0
  348. data/spec/models/import_job_attributes_spec.rb +106 -0
  349. data/spec/models/import_job_single_spec.rb +34 -0
  350. data/spec/models/import_job_spec.rb +46 -0
  351. data/spec/models/link_type_array_spec.rb +46 -0
  352. data/spec/models/link_type_read_spec.rb +52 -0
  353. data/spec/models/link_type_single_spec.rb +34 -0
  354. data/spec/models/link_type_spec.rb +52 -0
  355. data/spec/models/meta_pagination_spec.rb +58 -0
  356. data/spec/models/meta_spec.rb +34 -0
  357. data/spec/models/object_link0_spec.rb +40 -0
  358. data/spec/models/object_link_spec.rb +40 -0
  359. data/spec/models/page_link_spec.rb +46 -0
  360. data/spec/models/piggy_bank_array_spec.rb +46 -0
  361. data/spec/models/piggy_bank_event_array_spec.rb +46 -0
  362. data/spec/models/piggy_bank_event_attributes_spec.rb +82 -0
  363. data/spec/models/piggy_bank_event_spec.rb +52 -0
  364. data/spec/models/piggy_bank_read_spec.rb +52 -0
  365. data/spec/models/piggy_bank_single_spec.rb +34 -0
  366. data/spec/models/piggy_bank_spec.rb +142 -0
  367. data/spec/models/preference_array_spec.rb +46 -0
  368. data/spec/models/preference_read_spec.rb +46 -0
  369. data/spec/models/preference_single_spec.rb +34 -0
  370. data/spec/models/preference_spec.rb +52 -0
  371. data/spec/models/recurrence_array_spec.rb +46 -0
  372. data/spec/models/recurrence_read_spec.rb +52 -0
  373. data/spec/models/recurrence_repetition_spec.rb +86 -0
  374. data/spec/models/recurrence_single_spec.rb +34 -0
  375. data/spec/models/recurrence_spec.rb +116 -0
  376. data/spec/models/recurrence_transaction_spec.rb +184 -0
  377. data/spec/models/rule_action_spec.rb +80 -0
  378. data/spec/models/rule_array_spec.rb +46 -0
  379. data/spec/models/rule_group_array_spec.rb +46 -0
  380. data/spec/models/rule_group_read_spec.rb +52 -0
  381. data/spec/models/rule_group_single_spec.rb +34 -0
  382. data/spec/models/rule_group_spec.rb +64 -0
  383. data/spec/models/rule_read_spec.rb +52 -0
  384. data/spec/models/rule_single_spec.rb +34 -0
  385. data/spec/models/rule_spec.rb +110 -0
  386. data/spec/models/rule_trigger_spec.rb +80 -0
  387. data/spec/models/system_configuration_data_spec.rb +52 -0
  388. data/spec/models/system_configuration_spec.rb +34 -0
  389. data/spec/models/system_info_data_spec.rb +58 -0
  390. data/spec/models/system_info_spec.rb +34 -0
  391. data/spec/models/tag_array_spec.rb +46 -0
  392. data/spec/models/tag_cloud_spec.rb +34 -0
  393. data/spec/models/tag_cloud_tag_spec.rb +52 -0
  394. data/spec/models/tag_model_spec.rb +76 -0
  395. data/spec/models/tag_read_spec.rb +52 -0
  396. data/spec/models/tag_single_spec.rb +34 -0
  397. data/spec/models/transaction_array_spec.rb +46 -0
  398. data/spec/models/transaction_link_array_spec.rb +46 -0
  399. data/spec/models/transaction_link_read_spec.rb +52 -0
  400. data/spec/models/transaction_link_single_spec.rb +34 -0
  401. data/spec/models/transaction_link_spec.rb +70 -0
  402. data/spec/models/transaction_read_spec.rb +52 -0
  403. data/spec/models/transaction_single_spec.rb +34 -0
  404. data/spec/models/transaction_spec.rb +58 -0
  405. data/spec/models/transaction_split_spec.rb +368 -0
  406. data/spec/models/transaction_type_filter_spec.rb +28 -0
  407. data/spec/models/user_array_spec.rb +46 -0
  408. data/spec/models/user_read_spec.rb +52 -0
  409. data/spec/models/user_single_spec.rb +34 -0
  410. data/spec/models/user_spec.rb +72 -0
  411. data/spec/models/validation_error_errors_spec.rb +40 -0
  412. data/spec/models/validation_error_spec.rb +40 -0
  413. data/spec/spec_helper.rb +111 -0
  414. metadata +495 -0
@@ -0,0 +1,26 @@
1
+ # OpenapiClient::Transaction
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | | [optional][readonly] |
8
+ | **updated_at** | **Time** | | [optional][readonly] |
9
+ | **user** | **Integer** | User ID | [optional][readonly] |
10
+ | **group_title** | **String** | Title of the transaction if it has been split in more than one piece. Empty otherwise. | [optional][readonly] |
11
+ | **transactions** | [**Array<TransactionSplit>**](TransactionSplit.md) | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'firefly_iii_client'
17
+
18
+ instance = FireflyIIIClient::Transaction.new(
19
+ created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
20
+ updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
21
+ user : 3,
22
+ group_title : Split transaction title.,
23
+ transactions: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,22 @@
1
+ # OpenapiClient::TransactionArray
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<TransactionRead>**](TransactionRead.md) | | [optional] |
8
+ | **meta** | [**Meta**](Meta.md) | | [optional] |
9
+ | **links** | [**PageLink**](PageLink.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'firefly_iii_client'
15
+
16
+ instance = FireflyIIIClient::TransactionArray.new(
17
+ data: null,
18
+ meta: null,
19
+ links: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,30 @@
1
+ # OpenapiClient::TransactionLink
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | | [optional][readonly] |
8
+ | **updated_at** | **Time** | | [optional][readonly] |
9
+ | **link_type_id** | **Integer** | The link type ID to use. You can also use the link_type_name field. | |
10
+ | **link_type_name** | **String** | The link type name to use. You can also use the link_type_id field. | [optional] |
11
+ | **inward_id** | **Integer** | The inward transaction transaction_journal_id for the link. This becomes the 'is paid by' transaction of the set. | |
12
+ | **outward_id** | **Integer** | The outward transaction transaction_journal_id for the link. This becomes the 'pays for' transaction of the set. | |
13
+ | **notes** | **String** | Optional. Some notes. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'firefly_iii_client'
19
+
20
+ instance = FireflyIIIClient::TransactionLink.new(
21
+ created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
22
+ updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
23
+ link_type_id : 5,
24
+ link_type_name : Is paid by,
25
+ inward_id: 131,
26
+ outward_id: 131,
27
+ notes: Some example notes
28
+ )
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ # OpenapiClient::TransactionLinkArray
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<TransactionLinkRead>**](TransactionLinkRead.md) | | [optional] |
8
+ | **meta** | [**Meta**](Meta.md) | | [optional] |
9
+ | **links** | [**PageLink**](PageLink.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'firefly_iii_client'
15
+
16
+ instance = FireflyIIIClient::TransactionLinkArray.new(
17
+ data: null,
18
+ meta: null,
19
+ links: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # OpenapiClient::TransactionLinkRead
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | Immutable value | [optional] |
8
+ | **id** | **Integer** | | [optional] |
9
+ | **attributes** | [**TransactionLink**](TransactionLink.md) | | [optional] |
10
+ | **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'firefly_iii_client'
16
+
17
+ instance = FireflyIIIClient::TransactionLinkRead.new(
18
+ type: transactionLinks,
19
+ id: 2,
20
+ attributes: null,
21
+ links: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # OpenapiClient::TransactionLinkSingle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**TransactionLinkRead**](TransactionLinkRead.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'firefly_iii_client'
13
+
14
+ instance = FireflyIIIClient::TransactionLinkSingle.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # OpenapiClient::TransactionRead
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | Immutable value | [optional] |
8
+ | **id** | **Integer** | | [optional] |
9
+ | **attributes** | [**Transaction**](Transaction.md) | | [optional] |
10
+ | **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'firefly_iii_client'
16
+
17
+ instance = FireflyIIIClient::TransactionRead.new(
18
+ type: transactions,
19
+ id: 2,
20
+ attributes: null,
21
+ links: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # OpenapiClient::TransactionSingle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**TransactionRead**](TransactionRead.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'firefly_iii_client'
13
+
14
+ instance = FireflyIIIClient::TransactionSingle.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,128 @@
1
+ # OpenapiClient::TransactionSplit
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **user** | **Integer** | User ID | [optional][readonly] |
8
+ | **transaction_journal_id** | **Integer** | ID of the underlying transaction journal. Each transaction consists of a transaction group (see the top ID) and one or more journals making up the splits of the transaction. | [optional][readonly] |
9
+ | **type** | **String** | Type of transaction. expense cannot be written. | [optional] |
10
+ | **date** | **Date** | Date of the transaction | |
11
+ | **amount** | **Float** | Amount of the transaction. | |
12
+ | **description** | **String** | Description of the transaction. Will only be used if more than one split is submitted. | |
13
+ | **order** | **Integer** | Order of this entry in the list of transactions. | [optional] |
14
+ | **currency_id** | **Integer** | Currency ID. Default is the source account's currency, or the user's default currency. Can be used instead of currency_code. | [optional] |
15
+ | **currency_code** | **String** | Currency code. Default is the source account's currency, or the user's default currency. Can be used instead of currency_id. | [optional] |
16
+ | **currency_symbol** | **String** | | [optional][readonly] |
17
+ | **currency_name** | **String** | | [optional][readonly] |
18
+ | **currency_decimal_places** | **Integer** | Number of decimals used in this currency. | [optional][readonly] |
19
+ | **foreign_amount** | **Float** | The amount in a foreign currency. | [optional] |
20
+ | **foreign_currency_id** | **Integer** | Currency ID. Default is null. Is required when you submit a foreign amount. | [optional] |
21
+ | **foreign_currency_code** | **String** | Currency code. Default is NULL. Can be used instead of the foreign_currency_id, but either is required when submitting a foreign amount. | [optional] |
22
+ | **foreign_currency_symbol** | **String** | | [optional][readonly] |
23
+ | **foreign_currency_decimal_places** | **Integer** | Number of decimals in the currency | [optional][readonly] |
24
+ | **budget_id** | **Integer** | The budget ID for this transaction. | [optional] |
25
+ | **budget_name** | **String** | The name of the budget to be used. If the budget name is unknown, the ID will be used or the value will be ignored. | [optional][readonly] |
26
+ | **category_id** | **Integer** | The category ID for this transaction. | [optional] |
27
+ | **category_name** | **String** | The name of the category to be used. If the category is unknown, it will be created. If the ID and the name point to different categories, the ID overrules the name. | [optional] |
28
+ | **source_id** | **Integer** | ID of the source account. For a withdrawal or a transfer, this must always be an asset account. For deposits, this must be a revenue account. | [optional] |
29
+ | **source_name** | **String** | Name of the source account. For a withdrawal or a transfer, this must always be an asset account. For deposits, this must be a revenue account. Can be used instead of the source_id. If the transaction is a deposit, the source_name can be filled in freely: the account will be created based on the name. | [optional] |
30
+ | **source_iban** | **String** | | [optional][readonly] |
31
+ | **source_type** | [**AccountTypeProperty**](AccountTypeProperty.md) | | [optional] |
32
+ | **destination_id** | **Integer** | ID of the destination account. For a deposit or a transfer, this must always be an asset account. For withdrawals this must be an expense account. | [optional] |
33
+ | **destination_name** | **String** | Name of the destination account. You can submit the name instead of the ID. For everything except transfers, the account will be auto-generated if unknown, so submitting a name is enough. | [optional] |
34
+ | **destination_iban** | **String** | | [optional][readonly] |
35
+ | **destination_type** | [**AccountTypeProperty**](AccountTypeProperty.md) | | [optional] |
36
+ | **reconciled** | **Boolean** | If the transaction has been reconciled already. When you set this, the amount can no longer be edited by the user. | [optional] |
37
+ | **piggy_bank_id** | **Integer** | Optional. Use either this or the piggy_bank_name | [optional] |
38
+ | **piggy_bank_name** | **String** | Optional. Use either this or the piggy_bank_id | [optional] |
39
+ | **bill_id** | **Integer** | Optional. Use either this or the bill_name | [optional] |
40
+ | **bill_name** | **String** | Optional. Use either this or the bill_id | [optional] |
41
+ | **tags** | **Array<String>** | Array of tags. | [optional] |
42
+ | **notes** | **String** | | [optional] |
43
+ | **internal_reference** | **String** | Reference to internal reference of other systems. | [optional] |
44
+ | **external_id** | **String** | Reference to external ID in other systems. | [optional] |
45
+ | **original_source** | **String** | System generated identifier for original creator of transaction. | [optional][readonly] |
46
+ | **recurrence_id** | **Integer** | Reference to recurrence that made the transaction. | [optional][readonly] |
47
+ | **bunq_payment_id** | **String** | Internal ID of bunq transaction. | [optional] |
48
+ | **import_hash_v2** | **String** | Hash value of original import transaction (for duplicate detection). | [optional][readonly] |
49
+ | **sepa_cc** | **String** | SEPA Clearing Code | [optional] |
50
+ | **sepa_ct_op** | **String** | SEPA Opposing Account Identifier | [optional] |
51
+ | **sepa_ct_id** | **String** | SEPA end-to-end Identifier | [optional] |
52
+ | **sepa_db** | **String** | SEPA mandate identifier | [optional] |
53
+ | **sepa_country** | **String** | SEPA Country | [optional] |
54
+ | **sepa_ep** | **String** | SEPA External Purpose indicator | [optional] |
55
+ | **sepa_ci** | **String** | SEPA Creditor Identifier | [optional] |
56
+ | **sepa_batch_id** | **String** | SEPA Batch ID | [optional] |
57
+ | **interest_date** | **Date** | | [optional] |
58
+ | **book_date** | **Date** | | [optional] |
59
+ | **process_date** | **Date** | | [optional] |
60
+ | **due_date** | **Date** | | [optional] |
61
+ | **payment_date** | **Date** | | [optional] |
62
+ | **invoice_date** | **Date** | | [optional] |
63
+
64
+ ## Example
65
+
66
+ ```ruby
67
+ require 'firefly_iii_client'
68
+
69
+ instance = FireflyIIIClient::TransactionSplit.new(
70
+ user: 3,
71
+ transaction_journal_id: 10421,
72
+ type: withdrawal,
73
+ date: Mon Sep 17 00 : 00 : 00 GMT 2018,
74
+ amount: 12.95,
75
+ description: Vegetables,
76
+ order: 0,
77
+ currency_id: 12,
78
+ currency_code: EUR,
79
+ currency_symbol: $,
80
+ currency_name : Euro,
81
+ currency_decimal_places : 2,
82
+ foreign_amount : 16.95,
83
+ foreign_currency_id : 17,
84
+ foreign_currency_code : USD,
85
+ foreign_currency_symbol : $,
86
+ foreign_currency_decimal_places : 2,
87
+ budget_id : 4,
88
+ budget_name : Groceries,
89
+ category_id : 43,
90
+ category_name : Groceries,
91
+ source_id : 2,
92
+ source_name : Checking account,
93
+ source_iban: NL02ABNA0123456789,
94
+ source_type: null,
95
+ destination_id: 2,
96
+ destination_name: Buy and Large,
97
+ destination_iban : NL02ABNA0123456789,
98
+ destination_type : null,
99
+ reconciled : false,
100
+ piggy_bank_id : null,
101
+ piggy_bank_name : null,
102
+ bill_id : 111,
103
+ bill_name : Monthly rent,
104
+ tags: null,
105
+ notes: Some example notes,
106
+ internal_reference: null,
107
+ external_id: null,
108
+ original_source: null,
109
+ recurrence_id: null,
110
+ bunq_payment_id: null,
111
+ import_hash_v2: null,
112
+ sepa_cc: null,
113
+ sepa_ct_op: null,
114
+ sepa_ct_id: null,
115
+ sepa_db: null,
116
+ sepa_country: null,
117
+ sepa_ep: null,
118
+ sepa_ci: null,
119
+ sepa_batch_id: null,
120
+ interest_date: null,
121
+ book_date: null,
122
+ process_date: null,
123
+ due_date: null,
124
+ payment_date: null,
125
+ invoice_date: null
126
+ )
127
+ ```
128
+
@@ -0,0 +1,15 @@
1
+ # OpenapiClient::TransactionTypeFilter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'firefly_iii_client'
12
+
13
+ instance = FireflyIIIClient::TransactionTypeFilter.new()
14
+ ```
15
+
@@ -0,0 +1,592 @@
1
+ # OpenapiClient::TransactionsApi
2
+
3
+ All URIs are relative to *https://demo.firefly-iii.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**delete_transaction**](TransactionsApi.md#delete_transaction) | **DELETE** /api/v1/transactions/{id} | Delete a transaction. |
8
+ | [**get_transaction**](TransactionsApi.md#get_transaction) | **GET** /api/v1/transactions/{id} | Get a single transaction. |
9
+ | [**get_transaction_by_journal**](TransactionsApi.md#get_transaction_by_journal) | **GET** /api/v1/transaction-journals/{id} | Get a single transaction, based on one of the underlying transaction journals. |
10
+ | [**list_attachment_by_transaction**](TransactionsApi.md#list_attachment_by_transaction) | **GET** /api/v1/transactions/{id}/attachments | Lists all attachments. |
11
+ | [**list_event_by_transaction**](TransactionsApi.md#list_event_by_transaction) | **GET** /api/v1/transactions/{id}/piggy_bank_events | Lists all piggy bank events. |
12
+ | [**list_transaction**](TransactionsApi.md#list_transaction) | **GET** /api/v1/transactions | List all the user's transactions. |
13
+ | [**store_transaction**](TransactionsApi.md#store_transaction) | **POST** /api/v1/transactions | Store a new transaction |
14
+ | [**update_transaction**](TransactionsApi.md#update_transaction) | **PUT** /api/v1/transactions/{id} | Update existing transaction. |
15
+
16
+
17
+ ## delete_transaction
18
+
19
+ > delete_transaction(id)
20
+
21
+ Delete a transaction.
22
+
23
+ Delete a transaction.
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'firefly_iii_client'
30
+ # setup authorization
31
+ FireflyIIIClient.configure do |config|
32
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
33
+ config.access_token = 'YOUR ACCESS TOKEN'
34
+ end
35
+
36
+ api_instance = FireflyIIIClient::TransactionsApi.new
37
+ id = 1 # Integer | The ID of the transaction.
38
+
39
+ begin
40
+ # Delete a transaction.
41
+ api_instance.delete_transaction(id)
42
+ rescue FireflyIIIClient::ApiError => e
43
+ puts "Error when calling TransactionsApi->delete_transaction: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the delete_transaction_with_http_info variant
48
+
49
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
50
+
51
+ > <Array(nil, Integer, Hash)> delete_transaction_with_http_info(id)
52
+
53
+ ```ruby
54
+
55
+ begin
56
+ # Delete a transaction.
57
+ data, status_code, headers = api_instance.delete_transaction_with_http_info(id)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => nil
61
+ rescue FireflyIIIClient::ApiError => e
62
+ puts "Error when calling TransactionsApi->delete_transaction_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **id** | **Integer** | The ID of the transaction. | |
71
+
72
+ ### Return type
73
+
74
+ nil (empty response body)
75
+
76
+ ### Authorization
77
+
78
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: Not defined
83
+ - **Accept**: Not defined
84
+
85
+
86
+ ## get_transaction
87
+
88
+ > <TransactionSingle> get_transaction(id)
89
+
90
+ Get a single transaction.
91
+
92
+ Get a single transaction.
93
+
94
+ ### Examples
95
+
96
+ ```ruby
97
+ require 'time'
98
+ require 'firefly_iii_client'
99
+ # setup authorization
100
+ FireflyIIIClient.configure do |config|
101
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
102
+ config.access_token = 'YOUR ACCESS TOKEN'
103
+ end
104
+
105
+ api_instance = FireflyIIIClient::TransactionsApi.new
106
+ id = 1 # Integer | The ID of the transaction.
107
+
108
+ begin
109
+ # Get a single transaction.
110
+ result = api_instance.get_transaction(id)
111
+ p result
112
+ rescue FireflyIIIClient::ApiError => e
113
+ puts "Error when calling TransactionsApi->get_transaction: #{e}"
114
+ end
115
+ ```
116
+
117
+ #### Using the get_transaction_with_http_info variant
118
+
119
+ This returns an Array which contains the response data, status code and headers.
120
+
121
+ > <Array(<TransactionSingle>, Integer, Hash)> get_transaction_with_http_info(id)
122
+
123
+ ```ruby
124
+
125
+ begin
126
+ # Get a single transaction.
127
+ data, status_code, headers = api_instance.get_transaction_with_http_info(id)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <TransactionSingle>
131
+ rescue FireflyIIIClient::ApiError => e
132
+ puts "Error when calling TransactionsApi->get_transaction_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **id** | **Integer** | The ID of the transaction. | |
141
+
142
+ ### Return type
143
+
144
+ [**TransactionSingle**](TransactionSingle.md)
145
+
146
+ ### Authorization
147
+
148
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: Not defined
153
+ - **Accept**: application/json
154
+
155
+
156
+ ## get_transaction_by_journal
157
+
158
+ > <TransactionSingle> get_transaction_by_journal(id)
159
+
160
+ Get a single transaction, based on one of the underlying transaction journals.
161
+
162
+ Get a single transaction by underlying journal.
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'firefly_iii_client'
169
+ # setup authorization
170
+ FireflyIIIClient.configure do |config|
171
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
172
+ config.access_token = 'YOUR ACCESS TOKEN'
173
+ end
174
+
175
+ api_instance = FireflyIIIClient::TransactionsApi.new
176
+ id = 1 # Integer | The ID of the transaction journal.
177
+
178
+ begin
179
+ # Get a single transaction, based on one of the underlying transaction journals.
180
+ result = api_instance.get_transaction_by_journal(id)
181
+ p result
182
+ rescue FireflyIIIClient::ApiError => e
183
+ puts "Error when calling TransactionsApi->get_transaction_by_journal: #{e}"
184
+ end
185
+ ```
186
+
187
+ #### Using the get_transaction_by_journal_with_http_info variant
188
+
189
+ This returns an Array which contains the response data, status code and headers.
190
+
191
+ > <Array(<TransactionSingle>, Integer, Hash)> get_transaction_by_journal_with_http_info(id)
192
+
193
+ ```ruby
194
+
195
+ begin
196
+ # Get a single transaction, based on one of the underlying transaction journals.
197
+ data, status_code, headers = api_instance.get_transaction_by_journal_with_http_info(id)
198
+ p status_code # => 2xx
199
+ p headers # => { ... }
200
+ p data # => <TransactionSingle>
201
+ rescue FireflyIIIClient::ApiError => e
202
+ puts "Error when calling TransactionsApi->get_transaction_by_journal_with_http_info: #{e}"
203
+ end
204
+ ```
205
+
206
+ ### Parameters
207
+
208
+ | Name | Type | Description | Notes |
209
+ | ---- | ---- | ----------- | ----- |
210
+ | **id** | **Integer** | The ID of the transaction journal. | |
211
+
212
+ ### Return type
213
+
214
+ [**TransactionSingle**](TransactionSingle.md)
215
+
216
+ ### Authorization
217
+
218
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
219
+
220
+ ### HTTP request headers
221
+
222
+ - **Content-Type**: Not defined
223
+ - **Accept**: application/json
224
+
225
+
226
+ ## list_attachment_by_transaction
227
+
228
+ > <AttachmentArray> list_attachment_by_transaction(id, opts)
229
+
230
+ Lists all attachments.
231
+
232
+ Lists all attachments.
233
+
234
+ ### Examples
235
+
236
+ ```ruby
237
+ require 'time'
238
+ require 'firefly_iii_client'
239
+ # setup authorization
240
+ FireflyIIIClient.configure do |config|
241
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
242
+ config.access_token = 'YOUR ACCESS TOKEN'
243
+ end
244
+
245
+ api_instance = FireflyIIIClient::TransactionsApi.new
246
+ id = 1 # Integer | The ID of the transaction.
247
+ opts = {
248
+ page: 1 # Integer | Page number. The default pagination is 50.
249
+ }
250
+
251
+ begin
252
+ # Lists all attachments.
253
+ result = api_instance.list_attachment_by_transaction(id, opts)
254
+ p result
255
+ rescue FireflyIIIClient::ApiError => e
256
+ puts "Error when calling TransactionsApi->list_attachment_by_transaction: #{e}"
257
+ end
258
+ ```
259
+
260
+ #### Using the list_attachment_by_transaction_with_http_info variant
261
+
262
+ This returns an Array which contains the response data, status code and headers.
263
+
264
+ > <Array(<AttachmentArray>, Integer, Hash)> list_attachment_by_transaction_with_http_info(id, opts)
265
+
266
+ ```ruby
267
+
268
+ begin
269
+ # Lists all attachments.
270
+ data, status_code, headers = api_instance.list_attachment_by_transaction_with_http_info(id, opts)
271
+ p status_code # => 2xx
272
+ p headers # => { ... }
273
+ p data # => <AttachmentArray>
274
+ rescue FireflyIIIClient::ApiError => e
275
+ puts "Error when calling TransactionsApi->list_attachment_by_transaction_with_http_info: #{e}"
276
+ end
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+ | Name | Type | Description | Notes |
282
+ | ---- | ---- | ----------- | ----- |
283
+ | **id** | **Integer** | The ID of the transaction. | |
284
+ | **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
285
+
286
+ ### Return type
287
+
288
+ [**AttachmentArray**](AttachmentArray.md)
289
+
290
+ ### Authorization
291
+
292
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
293
+
294
+ ### HTTP request headers
295
+
296
+ - **Content-Type**: Not defined
297
+ - **Accept**: application/json
298
+
299
+
300
+ ## list_event_by_transaction
301
+
302
+ > <PiggyBankEventArray> list_event_by_transaction(id, opts)
303
+
304
+ Lists all piggy bank events.
305
+
306
+ Lists all piggy bank events.
307
+
308
+ ### Examples
309
+
310
+ ```ruby
311
+ require 'time'
312
+ require 'firefly_iii_client'
313
+ # setup authorization
314
+ FireflyIIIClient.configure do |config|
315
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
316
+ config.access_token = 'YOUR ACCESS TOKEN'
317
+ end
318
+
319
+ api_instance = FireflyIIIClient::TransactionsApi.new
320
+ id = 1 # Integer | The ID of the transaction.
321
+ opts = {
322
+ page: 1 # Integer | Page number. The default pagination is 50.
323
+ }
324
+
325
+ begin
326
+ # Lists all piggy bank events.
327
+ result = api_instance.list_event_by_transaction(id, opts)
328
+ p result
329
+ rescue FireflyIIIClient::ApiError => e
330
+ puts "Error when calling TransactionsApi->list_event_by_transaction: #{e}"
331
+ end
332
+ ```
333
+
334
+ #### Using the list_event_by_transaction_with_http_info variant
335
+
336
+ This returns an Array which contains the response data, status code and headers.
337
+
338
+ > <Array(<PiggyBankEventArray>, Integer, Hash)> list_event_by_transaction_with_http_info(id, opts)
339
+
340
+ ```ruby
341
+
342
+ begin
343
+ # Lists all piggy bank events.
344
+ data, status_code, headers = api_instance.list_event_by_transaction_with_http_info(id, opts)
345
+ p status_code # => 2xx
346
+ p headers # => { ... }
347
+ p data # => <PiggyBankEventArray>
348
+ rescue FireflyIIIClient::ApiError => e
349
+ puts "Error when calling TransactionsApi->list_event_by_transaction_with_http_info: #{e}"
350
+ end
351
+ ```
352
+
353
+ ### Parameters
354
+
355
+ | Name | Type | Description | Notes |
356
+ | ---- | ---- | ----------- | ----- |
357
+ | **id** | **Integer** | The ID of the transaction. | |
358
+ | **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
359
+
360
+ ### Return type
361
+
362
+ [**PiggyBankEventArray**](PiggyBankEventArray.md)
363
+
364
+ ### Authorization
365
+
366
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
367
+
368
+ ### HTTP request headers
369
+
370
+ - **Content-Type**: Not defined
371
+ - **Accept**: application/json
372
+
373
+
374
+ ## list_transaction
375
+
376
+ > <TransactionArray> list_transaction(opts)
377
+
378
+ List all the user's transactions.
379
+
380
+ List all the user's transactions.
381
+
382
+ ### Examples
383
+
384
+ ```ruby
385
+ require 'time'
386
+ require 'firefly_iii_client'
387
+ # setup authorization
388
+ FireflyIIIClient.configure do |config|
389
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
390
+ config.access_token = 'YOUR ACCESS TOKEN'
391
+ end
392
+
393
+ api_instance = FireflyIIIClient::TransactionsApi.new
394
+ opts = {
395
+ page: 1, # Integer | Page number. The default pagination is 50.
396
+ start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive).
397
+ _end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive).
398
+ type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned.
399
+ }
400
+
401
+ begin
402
+ # List all the user's transactions.
403
+ result = api_instance.list_transaction(opts)
404
+ p result
405
+ rescue FireflyIIIClient::ApiError => e
406
+ puts "Error when calling TransactionsApi->list_transaction: #{e}"
407
+ end
408
+ ```
409
+
410
+ #### Using the list_transaction_with_http_info variant
411
+
412
+ This returns an Array which contains the response data, status code and headers.
413
+
414
+ > <Array(<TransactionArray>, Integer, Hash)> list_transaction_with_http_info(opts)
415
+
416
+ ```ruby
417
+
418
+ begin
419
+ # List all the user's transactions.
420
+ data, status_code, headers = api_instance.list_transaction_with_http_info(opts)
421
+ p status_code # => 2xx
422
+ p headers # => { ... }
423
+ p data # => <TransactionArray>
424
+ rescue FireflyIIIClient::ApiError => e
425
+ puts "Error when calling TransactionsApi->list_transaction_with_http_info: #{e}"
426
+ end
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+ | Name | Type | Description | Notes |
432
+ | ---- | ---- | ----------- | ----- |
433
+ | **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
434
+ | **start** | **Date** | A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive). | [optional] |
435
+ | **_end** | **Date** | A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive). | [optional] |
436
+ | **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned. | [optional] |
437
+
438
+ ### Return type
439
+
440
+ [**TransactionArray**](TransactionArray.md)
441
+
442
+ ### Authorization
443
+
444
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
445
+
446
+ ### HTTP request headers
447
+
448
+ - **Content-Type**: Not defined
449
+ - **Accept**: application/json
450
+
451
+
452
+ ## store_transaction
453
+
454
+ > <TransactionSingle> store_transaction(transaction)
455
+
456
+ Store a new transaction
457
+
458
+ Creates a new transaction. The data required can be submitted as a JSON body or as a list of parameters.
459
+
460
+ ### Examples
461
+
462
+ ```ruby
463
+ require 'time'
464
+ require 'firefly_iii_client'
465
+ # setup authorization
466
+ FireflyIIIClient.configure do |config|
467
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
468
+ config.access_token = 'YOUR ACCESS TOKEN'
469
+ end
470
+
471
+ api_instance = FireflyIIIClient::TransactionsApi.new
472
+ transaction = FireflyIIIClient::Transaction.new({ transactions: [FireflyIIIClient::TransactionSplit.new({ date: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), amount: 12.95, description: 'Vegetables' })] }) # Transaction | JSON array or key=value pairs with the necessary transaction information. See the model for the exact specifications.
473
+
474
+ begin
475
+ # Store a new transaction
476
+ result = api_instance.store_transaction(transaction)
477
+ p result
478
+ rescue FireflyIIIClient::ApiError => e
479
+ puts "Error when calling TransactionsApi->store_transaction: #{e}"
480
+ end
481
+ ```
482
+
483
+ #### Using the store_transaction_with_http_info variant
484
+
485
+ This returns an Array which contains the response data, status code and headers.
486
+
487
+ > <Array(<TransactionSingle>, Integer, Hash)> store_transaction_with_http_info(transaction)
488
+
489
+ ```ruby
490
+
491
+ begin
492
+ # Store a new transaction
493
+ data, status_code, headers = api_instance.store_transaction_with_http_info(transaction)
494
+ p status_code # => 2xx
495
+ p headers # => { ... }
496
+ p data # => <TransactionSingle>
497
+ rescue FireflyIIIClient::ApiError => e
498
+ puts "Error when calling TransactionsApi->store_transaction_with_http_info: #{e}"
499
+ end
500
+ ```
501
+
502
+ ### Parameters
503
+
504
+ | Name | Type | Description | Notes |
505
+ | ---- | ---- | ----------- | ----- |
506
+ | **transaction** | [**Transaction**](Transaction.md) | JSON array or key&#x3D;value pairs with the necessary transaction information. See the model for the exact specifications. | |
507
+
508
+ ### Return type
509
+
510
+ [**TransactionSingle**](TransactionSingle.md)
511
+
512
+ ### Authorization
513
+
514
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
515
+
516
+ ### HTTP request headers
517
+
518
+ - **Content-Type**: application/json, application/x-www-form-urlencoded
519
+ - **Accept**: application/json
520
+
521
+
522
+ ## update_transaction
523
+
524
+ > <TransactionSingle> update_transaction(id, transaction)
525
+
526
+ Update existing transaction.
527
+
528
+ Update an existing transaction.
529
+
530
+ ### Examples
531
+
532
+ ```ruby
533
+ require 'time'
534
+ require 'firefly_iii_client'
535
+ # setup authorization
536
+ FireflyIIIClient.configure do |config|
537
+ # Configure OAuth2 access token for authorization: firefly_iii_auth
538
+ config.access_token = 'YOUR ACCESS TOKEN'
539
+ end
540
+
541
+ api_instance = FireflyIIIClient::TransactionsApi.new
542
+ id = 1 # Integer | The ID of the transaction.
543
+ transaction = FireflyIIIClient::Transaction.new({ transactions: [FireflyIIIClient::TransactionSplit.new({ date: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), amount: 12.95, description: 'Vegetables' })] }) # Transaction | JSON array with updated transaction information. See the model for the exact specifications.
544
+
545
+ begin
546
+ # Update existing transaction.
547
+ result = api_instance.update_transaction(id, transaction)
548
+ p result
549
+ rescue FireflyIIIClient::ApiError => e
550
+ puts "Error when calling TransactionsApi->update_transaction: #{e}"
551
+ end
552
+ ```
553
+
554
+ #### Using the update_transaction_with_http_info variant
555
+
556
+ This returns an Array which contains the response data, status code and headers.
557
+
558
+ > <Array(<TransactionSingle>, Integer, Hash)> update_transaction_with_http_info(id, transaction)
559
+
560
+ ```ruby
561
+
562
+ begin
563
+ # Update existing transaction.
564
+ data, status_code, headers = api_instance.update_transaction_with_http_info(id, transaction)
565
+ p status_code # => 2xx
566
+ p headers # => { ... }
567
+ p data # => <TransactionSingle>
568
+ rescue FireflyIIIClient::ApiError => e
569
+ puts "Error when calling TransactionsApi->update_transaction_with_http_info: #{e}"
570
+ end
571
+ ```
572
+
573
+ ### Parameters
574
+
575
+ | Name | Type | Description | Notes |
576
+ | ---- | ---- | ----------- | ----- |
577
+ | **id** | **Integer** | The ID of the transaction. | |
578
+ | **transaction** | [**Transaction**](Transaction.md) | JSON array with updated transaction information. See the model for the exact specifications. | |
579
+
580
+ ### Return type
581
+
582
+ [**TransactionSingle**](TransactionSingle.md)
583
+
584
+ ### Authorization
585
+
586
+ [firefly_iii_auth](../README.md#firefly_iii_auth)
587
+
588
+ ### HTTP request headers
589
+
590
+ - **Content-Type**: application/json, application/x-www-form-urlencoded
591
+ - **Accept**: application/json
592
+