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,91 @@
1
+ =begin
2
+ #Firefly III API
3
+
4
+ #This is the official documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. This version of the API is live from version v4.7.9 and onwards. You may use the \"Authorize\" button to try the API below.
5
+
6
+ The version of the OpenAPI document: 0.10.4-modified
7
+ Contact: thegrumpydictator@gmail.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FireflyIIIClient
16
+ class CurrencyExchangeRatesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get an exchange rate.
23
+ # Get an exchange rate. If Firefly III doesn't know the rate it will set the rate to 1.0.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :from The source currency code. If omitted, defaults to EUR.
26
+ # @option opts [String] :to The destination currency code. If omitted, defaults to USD.
27
+ # @option opts [Date] :date The date you want to know the exchange rate on.
28
+ # @option opts [Float] :amount The amount in the source currency. If added, Firefly III will calculate the amount in the destination currency.
29
+ # @return [ExchangeRate]
30
+ def get_exchange_rate(opts = {})
31
+ data, _status_code, _headers = get_exchange_rate_with_http_info(opts)
32
+ data
33
+ end
34
+
35
+ # Get an exchange rate.
36
+ # Get an exchange rate. If Firefly III doesn't know the rate it will set the rate to 1.0.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :from The source currency code. If omitted, defaults to EUR.
39
+ # @option opts [String] :to The destination currency code. If omitted, defaults to USD.
40
+ # @option opts [Date] :date The date you want to know the exchange rate on.
41
+ # @option opts [Float] :amount The amount in the source currency. If added, Firefly III will calculate the amount in the destination currency.
42
+ # @return [Array<(ExchangeRate, Integer, Hash)>] ExchangeRate data, response status code and response headers
43
+ def get_exchange_rate_with_http_info(opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: CurrencyExchangeRatesApi.get_exchange_rate ...'
46
+ end
47
+ # resource path
48
+ local_var_path = '/api/v1/cer'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
53
+ query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
54
+ query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
55
+ query_params[:'amount'] = opts[:'amount'] if !opts[:'amount'].nil?
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:debug_body]
67
+
68
+ # return_type
69
+ return_type = opts[:debug_return_type] || 'ExchangeRate'
70
+
71
+ # auth_names
72
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
73
+
74
+ new_options = opts.merge(
75
+ :operation => :"CurrencyExchangeRatesApi.get_exchange_rate",
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names,
81
+ :return_type => return_type
82
+ )
83
+
84
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: CurrencyExchangeRatesApi#get_exchange_rate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Firefly III API
3
+
4
+ #This is the official documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. This version of the API is live from version v4.7.9 and onwards. You may use the \"Authorize\" button to try the API below.
5
+
6
+ The version of the OpenAPI document: 0.10.4-modified
7
+ Contact: thegrumpydictator@gmail.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FireflyIIIClient
16
+ class ImportApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Show info on a single import
23
+ # Show info on single import.
24
+ # @param key [String] The job key of an import job.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [ImportJobSingle]
27
+ def get_import(key, opts = {})
28
+ data, _status_code, _headers = get_import_with_http_info(key, opts)
29
+ data
30
+ end
31
+
32
+ # Show info on a single import
33
+ # Show info on single import.
34
+ # @param key [String] The job key of an import job.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ImportJobSingle, Integer, Hash)>] ImportJobSingle data, response status code and response headers
37
+ def get_import_with_http_info(key, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ImportApi.get_import ...'
40
+ end
41
+ # verify the required parameter 'key' is set
42
+ if @api_client.config.client_side_validation && key.nil?
43
+ fail ArgumentError, "Missing the required parameter 'key' when calling ImportApi.get_import"
44
+ end
45
+ # resource path
46
+ local_var_path = '/api/v1/import/{key}'.sub('{' + 'key' + '}', CGI.escape(key.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:debug_body]
61
+
62
+ # return_type
63
+ return_type = opts[:debug_return_type] || 'ImportJobSingle'
64
+
65
+ # auth_names
66
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
67
+
68
+ new_options = opts.merge(
69
+ :operation => :"ImportApi.get_import",
70
+ :header_params => header_params,
71
+ :query_params => query_params,
72
+ :form_params => form_params,
73
+ :body => post_body,
74
+ :auth_names => auth_names,
75
+ :return_type => return_type
76
+ )
77
+
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: ImportApi#get_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+
85
+ # List al imports
86
+ # List all imports
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [Integer] :page Page number. The default pagination is per 50 items.
89
+ # @return [ImportJobArray]
90
+ def list_import(opts = {})
91
+ data, _status_code, _headers = list_import_with_http_info(opts)
92
+ data
93
+ end
94
+
95
+ # List al imports
96
+ # List all imports
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [Integer] :page Page number. The default pagination is per 50 items.
99
+ # @return [Array<(ImportJobArray, Integer, Hash)>] ImportJobArray data, response status code and response headers
100
+ def list_import_with_http_info(opts = {})
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug 'Calling API: ImportApi.list_import ...'
103
+ end
104
+ # resource path
105
+ local_var_path = '/api/v1/import/list'
106
+
107
+ # query parameters
108
+ query_params = opts[:query_params] || {}
109
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
110
+
111
+ # header parameters
112
+ header_params = opts[:header_params] || {}
113
+ # HTTP header 'Accept' (if needed)
114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
115
+
116
+ # form parameters
117
+ form_params = opts[:form_params] || {}
118
+
119
+ # http body (model)
120
+ post_body = opts[:debug_body]
121
+
122
+ # return_type
123
+ return_type = opts[:debug_return_type] || 'ImportJobArray'
124
+
125
+ # auth_names
126
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
127
+
128
+ new_options = opts.merge(
129
+ :operation => :"ImportApi.list_import",
130
+ :header_params => header_params,
131
+ :query_params => query_params,
132
+ :form_params => form_params,
133
+ :body => post_body,
134
+ :auth_names => auth_names,
135
+ :return_type => return_type
136
+ )
137
+
138
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug "API called: ImportApi#list_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ end
142
+ return data, status_code, headers
143
+ end
144
+
145
+ # List all transactions related to the import job. The correlation is made through the tag.
146
+ # See summary
147
+ # @param key [String] The key of the import job
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [Integer] :page Page number. The default pagination is 50.
150
+ # @option opts [Date] :start A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive).
151
+ # @option opts [Date] :_end A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive).
152
+ # @option opts [TransactionTypeFilter] :type Optional filter on the transaction type(s) returned.
153
+ # @return [TransactionArray]
154
+ def list_transaction_by_import(key, opts = {})
155
+ data, _status_code, _headers = list_transaction_by_import_with_http_info(key, opts)
156
+ data
157
+ end
158
+
159
+ # List all transactions related to the import job. The correlation is made through the tag.
160
+ # See summary
161
+ # @param key [String] The key of the import job
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [Integer] :page Page number. The default pagination is 50.
164
+ # @option opts [Date] :start A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive).
165
+ # @option opts [Date] :_end A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive).
166
+ # @option opts [TransactionTypeFilter] :type Optional filter on the transaction type(s) returned.
167
+ # @return [Array<(TransactionArray, Integer, Hash)>] TransactionArray data, response status code and response headers
168
+ def list_transaction_by_import_with_http_info(key, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: ImportApi.list_transaction_by_import ...'
171
+ end
172
+ # verify the required parameter 'key' is set
173
+ if @api_client.config.client_side_validation && key.nil?
174
+ fail ArgumentError, "Missing the required parameter 'key' when calling ImportApi.list_transaction_by_import"
175
+ end
176
+ # resource path
177
+ local_var_path = '/api/v1/import/{key}/transactions'.sub('{' + 'key' + '}', CGI.escape(key.to_s))
178
+
179
+ # query parameters
180
+ query_params = opts[:query_params] || {}
181
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
182
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
183
+ query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
184
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
185
+
186
+ # header parameters
187
+ header_params = opts[:header_params] || {}
188
+ # HTTP header 'Accept' (if needed)
189
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
190
+
191
+ # form parameters
192
+ form_params = opts[:form_params] || {}
193
+
194
+ # http body (model)
195
+ post_body = opts[:debug_body]
196
+
197
+ # return_type
198
+ return_type = opts[:debug_return_type] || 'TransactionArray'
199
+
200
+ # auth_names
201
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
202
+
203
+ new_options = opts.merge(
204
+ :operation => :"ImportApi.list_transaction_by_import",
205
+ :header_params => header_params,
206
+ :query_params => query_params,
207
+ :form_params => form_params,
208
+ :body => post_body,
209
+ :auth_names => auth_names,
210
+ :return_type => return_type
211
+ )
212
+
213
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug "API called: ImportApi#list_transaction_by_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
+ end
217
+ return data, status_code, headers
218
+ end
219
+ end
220
+ end
@@ -0,0 +1,737 @@
1
+ =begin
2
+ #Firefly III API
3
+
4
+ #This is the official documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. This version of the API is live from version v4.7.9 and onwards. You may use the \"Authorize\" button to try the API below.
5
+
6
+ The version of the OpenAPI document: 0.10.4-modified
7
+ Contact: thegrumpydictator@gmail.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module FireflyIIIClient
16
+ class LinksApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Permanently delete link type.
23
+ # Will permanently delete a link type. The links between transactions will be removed. The transactions themselves remain. You cannot delete some of the system provided link types, indicated by the editable=false flag when you list it.
24
+ # @param id [Integer] The ID of the link type.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [nil]
27
+ def delete_link_type(id, opts = {})
28
+ delete_link_type_with_http_info(id, opts)
29
+ nil
30
+ end
31
+
32
+ # Permanently delete link type.
33
+ # Will permanently delete a link type. The links between transactions will be removed. The transactions themselves remain. You cannot delete some of the system provided link types, indicated by the editable&#x3D;false flag when you list it.
34
+ # @param id [Integer] The ID of the link type.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def delete_link_type_with_http_info(id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: LinksApi.delete_link_type ...'
40
+ end
41
+ # verify the required parameter 'id' is set
42
+ if @api_client.config.client_side_validation && id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.delete_link_type"
44
+ end
45
+ # resource path
46
+ local_var_path = '/api/v1/link_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body]
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type]
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"LinksApi.delete_link_type",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: LinksApi#delete_link_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # Permanently delete link between transactions.
84
+ # Will permanently delete link. Transactions remain.
85
+ # @param id [Integer] The ID of the transaction link.
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [nil]
88
+ def delete_transaction_link(id, opts = {})
89
+ delete_transaction_link_with_http_info(id, opts)
90
+ nil
91
+ end
92
+
93
+ # Permanently delete link between transactions.
94
+ # Will permanently delete link. Transactions remain.
95
+ # @param id [Integer] The ID of the transaction link.
96
+ # @param [Hash] opts the optional parameters
97
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
98
+ def delete_transaction_link_with_http_info(id, opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug 'Calling API: LinksApi.delete_transaction_link ...'
101
+ end
102
+ # verify the required parameter 'id' is set
103
+ if @api_client.config.client_side_validation && id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.delete_transaction_link"
105
+ end
106
+ # resource path
107
+ local_var_path = '/api/v1/transaction_links/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
108
+
109
+ # query parameters
110
+ query_params = opts[:query_params] || {}
111
+
112
+ # header parameters
113
+ header_params = opts[:header_params] || {}
114
+
115
+ # form parameters
116
+ form_params = opts[:form_params] || {}
117
+
118
+ # http body (model)
119
+ post_body = opts[:debug_body]
120
+
121
+ # return_type
122
+ return_type = opts[:debug_return_type]
123
+
124
+ # auth_names
125
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
126
+
127
+ new_options = opts.merge(
128
+ :operation => :"LinksApi.delete_transaction_link",
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => return_type
135
+ )
136
+
137
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: LinksApi#delete_transaction_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+
144
+ # Get single a link type.
145
+ # Returns a single link type by its ID.
146
+ # @param id [Integer] The ID of the link type.
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [LinkTypeSingle]
149
+ def get_link_type(id, opts = {})
150
+ data, _status_code, _headers = get_link_type_with_http_info(id, opts)
151
+ data
152
+ end
153
+
154
+ # Get single a link type.
155
+ # Returns a single link type by its ID.
156
+ # @param id [Integer] The ID of the link type.
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [Array<(LinkTypeSingle, Integer, Hash)>] LinkTypeSingle data, response status code and response headers
159
+ def get_link_type_with_http_info(id, opts = {})
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug 'Calling API: LinksApi.get_link_type ...'
162
+ end
163
+ # verify the required parameter 'id' is set
164
+ if @api_client.config.client_side_validation && id.nil?
165
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.get_link_type"
166
+ end
167
+ # resource path
168
+ local_var_path = '/api/v1/link_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
169
+
170
+ # query parameters
171
+ query_params = opts[:query_params] || {}
172
+
173
+ # header parameters
174
+ header_params = opts[:header_params] || {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
+
178
+ # form parameters
179
+ form_params = opts[:form_params] || {}
180
+
181
+ # http body (model)
182
+ post_body = opts[:debug_body]
183
+
184
+ # return_type
185
+ return_type = opts[:debug_return_type] || 'LinkTypeSingle'
186
+
187
+ # auth_names
188
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
189
+
190
+ new_options = opts.merge(
191
+ :operation => :"LinksApi.get_link_type",
192
+ :header_params => header_params,
193
+ :query_params => query_params,
194
+ :form_params => form_params,
195
+ :body => post_body,
196
+ :auth_names => auth_names,
197
+ :return_type => return_type
198
+ )
199
+
200
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
201
+ if @api_client.config.debugging
202
+ @api_client.config.logger.debug "API called: LinksApi#get_link_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ end
204
+ return data, status_code, headers
205
+ end
206
+
207
+ # Get a single link.
208
+ # Returns a single link by its ID.
209
+ # @param id [Integer] The ID of the transaction link.
210
+ # @param [Hash] opts the optional parameters
211
+ # @return [TransactionLinkSingle]
212
+ def get_transaction_link(id, opts = {})
213
+ data, _status_code, _headers = get_transaction_link_with_http_info(id, opts)
214
+ data
215
+ end
216
+
217
+ # Get a single link.
218
+ # Returns a single link by its ID.
219
+ # @param id [Integer] The ID of the transaction link.
220
+ # @param [Hash] opts the optional parameters
221
+ # @return [Array<(TransactionLinkSingle, Integer, Hash)>] TransactionLinkSingle data, response status code and response headers
222
+ def get_transaction_link_with_http_info(id, opts = {})
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug 'Calling API: LinksApi.get_transaction_link ...'
225
+ end
226
+ # verify the required parameter 'id' is set
227
+ if @api_client.config.client_side_validation && id.nil?
228
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.get_transaction_link"
229
+ end
230
+ # resource path
231
+ local_var_path = '/api/v1/transaction_links/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
232
+
233
+ # query parameters
234
+ query_params = opts[:query_params] || {}
235
+
236
+ # header parameters
237
+ header_params = opts[:header_params] || {}
238
+ # HTTP header 'Accept' (if needed)
239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
240
+
241
+ # form parameters
242
+ form_params = opts[:form_params] || {}
243
+
244
+ # http body (model)
245
+ post_body = opts[:debug_body]
246
+
247
+ # return_type
248
+ return_type = opts[:debug_return_type] || 'TransactionLinkSingle'
249
+
250
+ # auth_names
251
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
252
+
253
+ new_options = opts.merge(
254
+ :operation => :"LinksApi.get_transaction_link",
255
+ :header_params => header_params,
256
+ :query_params => query_params,
257
+ :form_params => form_params,
258
+ :body => post_body,
259
+ :auth_names => auth_names,
260
+ :return_type => return_type
261
+ )
262
+
263
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug "API called: LinksApi#get_transaction_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ end
267
+ return data, status_code, headers
268
+ end
269
+
270
+ # List all types of links.
271
+ # List all the link types the system has. These include the default ones as well as any new ones.
272
+ # @param [Hash] opts the optional parameters
273
+ # @option opts [Integer] :page Page number. The default pagination is 50 items.
274
+ # @return [LinkTypeArray]
275
+ def list_link_type(opts = {})
276
+ data, _status_code, _headers = list_link_type_with_http_info(opts)
277
+ data
278
+ end
279
+
280
+ # List all types of links.
281
+ # List all the link types the system has. These include the default ones as well as any new ones.
282
+ # @param [Hash] opts the optional parameters
283
+ # @option opts [Integer] :page Page number. The default pagination is 50 items.
284
+ # @return [Array<(LinkTypeArray, Integer, Hash)>] LinkTypeArray data, response status code and response headers
285
+ def list_link_type_with_http_info(opts = {})
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug 'Calling API: LinksApi.list_link_type ...'
288
+ end
289
+ # resource path
290
+ local_var_path = '/api/v1/link_types'
291
+
292
+ # query parameters
293
+ query_params = opts[:query_params] || {}
294
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
295
+
296
+ # header parameters
297
+ header_params = opts[:header_params] || {}
298
+ # HTTP header 'Accept' (if needed)
299
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
300
+
301
+ # form parameters
302
+ form_params = opts[:form_params] || {}
303
+
304
+ # http body (model)
305
+ post_body = opts[:debug_body]
306
+
307
+ # return_type
308
+ return_type = opts[:debug_return_type] || 'LinkTypeArray'
309
+
310
+ # auth_names
311
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
312
+
313
+ new_options = opts.merge(
314
+ :operation => :"LinksApi.list_link_type",
315
+ :header_params => header_params,
316
+ :query_params => query_params,
317
+ :form_params => form_params,
318
+ :body => post_body,
319
+ :auth_names => auth_names,
320
+ :return_type => return_type
321
+ )
322
+
323
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
324
+ if @api_client.config.debugging
325
+ @api_client.config.logger.debug "API called: LinksApi#list_link_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
326
+ end
327
+ return data, status_code, headers
328
+ end
329
+
330
+ # List all transactions under this link type.
331
+ # List all transactions under this link type, both the inward and outward transactions.
332
+ # @param id [Integer] The ID of the link type.
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [Integer] :page Page number. The default pagination is per 50 items.
335
+ # @option opts [Date] :start A date formatted YYYY-MM-DD, to limit the results.
336
+ # @option opts [Date] :_end A date formatted YYYY-MM-DD, to limit the results.
337
+ # @option opts [TransactionTypeFilter] :type Optional filter on the transaction type(s) returned.
338
+ # @return [TransactionArray]
339
+ def list_transaction_by_link_type(id, opts = {})
340
+ data, _status_code, _headers = list_transaction_by_link_type_with_http_info(id, opts)
341
+ data
342
+ end
343
+
344
+ # List all transactions under this link type.
345
+ # List all transactions under this link type, both the inward and outward transactions.
346
+ # @param id [Integer] The ID of the link type.
347
+ # @param [Hash] opts the optional parameters
348
+ # @option opts [Integer] :page Page number. The default pagination is per 50 items.
349
+ # @option opts [Date] :start A date formatted YYYY-MM-DD, to limit the results.
350
+ # @option opts [Date] :_end A date formatted YYYY-MM-DD, to limit the results.
351
+ # @option opts [TransactionTypeFilter] :type Optional filter on the transaction type(s) returned.
352
+ # @return [Array<(TransactionArray, Integer, Hash)>] TransactionArray data, response status code and response headers
353
+ def list_transaction_by_link_type_with_http_info(id, opts = {})
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug 'Calling API: LinksApi.list_transaction_by_link_type ...'
356
+ end
357
+ # verify the required parameter 'id' is set
358
+ if @api_client.config.client_side_validation && id.nil?
359
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.list_transaction_by_link_type"
360
+ end
361
+ # resource path
362
+ local_var_path = '/api/v1/link_types/{id}/transactions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
363
+
364
+ # query parameters
365
+ query_params = opts[:query_params] || {}
366
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
367
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
368
+ query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
369
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
370
+
371
+ # header parameters
372
+ header_params = opts[:header_params] || {}
373
+ # HTTP header 'Accept' (if needed)
374
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
375
+
376
+ # form parameters
377
+ form_params = opts[:form_params] || {}
378
+
379
+ # http body (model)
380
+ post_body = opts[:debug_body]
381
+
382
+ # return_type
383
+ return_type = opts[:debug_return_type] || 'TransactionArray'
384
+
385
+ # auth_names
386
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
387
+
388
+ new_options = opts.merge(
389
+ :operation => :"LinksApi.list_transaction_by_link_type",
390
+ :header_params => header_params,
391
+ :query_params => query_params,
392
+ :form_params => form_params,
393
+ :body => post_body,
394
+ :auth_names => auth_names,
395
+ :return_type => return_type
396
+ )
397
+
398
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug "API called: LinksApi#list_transaction_by_link_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
+ end
402
+ return data, status_code, headers
403
+ end
404
+
405
+ # List all transaction links.
406
+ # List all the transaction links.
407
+ # @param [Hash] opts the optional parameters
408
+ # @option opts [Integer] :page Page number. The default pagination is per 50 items.
409
+ # @return [TransactionLinkArray]
410
+ def list_transaction_link(opts = {})
411
+ data, _status_code, _headers = list_transaction_link_with_http_info(opts)
412
+ data
413
+ end
414
+
415
+ # List all transaction links.
416
+ # List all the transaction links.
417
+ # @param [Hash] opts the optional parameters
418
+ # @option opts [Integer] :page Page number. The default pagination is per 50 items.
419
+ # @return [Array<(TransactionLinkArray, Integer, Hash)>] TransactionLinkArray data, response status code and response headers
420
+ def list_transaction_link_with_http_info(opts = {})
421
+ if @api_client.config.debugging
422
+ @api_client.config.logger.debug 'Calling API: LinksApi.list_transaction_link ...'
423
+ end
424
+ # resource path
425
+ local_var_path = '/api/v1/transaction_links'
426
+
427
+ # query parameters
428
+ query_params = opts[:query_params] || {}
429
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
430
+
431
+ # header parameters
432
+ header_params = opts[:header_params] || {}
433
+ # HTTP header 'Accept' (if needed)
434
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
435
+
436
+ # form parameters
437
+ form_params = opts[:form_params] || {}
438
+
439
+ # http body (model)
440
+ post_body = opts[:debug_body]
441
+
442
+ # return_type
443
+ return_type = opts[:debug_return_type] || 'TransactionLinkArray'
444
+
445
+ # auth_names
446
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
447
+
448
+ new_options = opts.merge(
449
+ :operation => :"LinksApi.list_transaction_link",
450
+ :header_params => header_params,
451
+ :query_params => query_params,
452
+ :form_params => form_params,
453
+ :body => post_body,
454
+ :auth_names => auth_names,
455
+ :return_type => return_type
456
+ )
457
+
458
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
459
+ if @api_client.config.debugging
460
+ @api_client.config.logger.debug "API called: LinksApi#list_transaction_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
461
+ end
462
+ return data, status_code, headers
463
+ end
464
+
465
+ # Create a new link type
466
+ # Creates a new link type. The data required can be submitted as a JSON body or as a list of parameters (in key=value pairs, like a webform).
467
+ # @param link_type [LinkType] JSON array with the necessary link type information or key&#x3D;value pairs. See the model for the exact specifications.
468
+ # @param [Hash] opts the optional parameters
469
+ # @return [LinkTypeSingle]
470
+ def store_link_type(link_type, opts = {})
471
+ data, _status_code, _headers = store_link_type_with_http_info(link_type, opts)
472
+ data
473
+ end
474
+
475
+ # Create a new link type
476
+ # Creates a new link type. The data required can be submitted as a JSON body or as a list of parameters (in key&#x3D;value pairs, like a webform).
477
+ # @param link_type [LinkType] JSON array with the necessary link type information or key&#x3D;value pairs. See the model for the exact specifications.
478
+ # @param [Hash] opts the optional parameters
479
+ # @return [Array<(LinkTypeSingle, Integer, Hash)>] LinkTypeSingle data, response status code and response headers
480
+ def store_link_type_with_http_info(link_type, opts = {})
481
+ if @api_client.config.debugging
482
+ @api_client.config.logger.debug 'Calling API: LinksApi.store_link_type ...'
483
+ end
484
+ # verify the required parameter 'link_type' is set
485
+ if @api_client.config.client_side_validation && link_type.nil?
486
+ fail ArgumentError, "Missing the required parameter 'link_type' when calling LinksApi.store_link_type"
487
+ end
488
+ # resource path
489
+ local_var_path = '/api/v1/link_types'
490
+
491
+ # query parameters
492
+ query_params = opts[:query_params] || {}
493
+
494
+ # header parameters
495
+ header_params = opts[:header_params] || {}
496
+ # HTTP header 'Accept' (if needed)
497
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
498
+ # HTTP header 'Content-Type'
499
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
500
+
501
+ # form parameters
502
+ form_params = opts[:form_params] || {}
503
+
504
+ # http body (model)
505
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(link_type)
506
+
507
+ # return_type
508
+ return_type = opts[:debug_return_type] || 'LinkTypeSingle'
509
+
510
+ # auth_names
511
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
512
+
513
+ new_options = opts.merge(
514
+ :operation => :"LinksApi.store_link_type",
515
+ :header_params => header_params,
516
+ :query_params => query_params,
517
+ :form_params => form_params,
518
+ :body => post_body,
519
+ :auth_names => auth_names,
520
+ :return_type => return_type
521
+ )
522
+
523
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
524
+ if @api_client.config.debugging
525
+ @api_client.config.logger.debug "API called: LinksApi#store_link_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
526
+ end
527
+ return data, status_code, headers
528
+ end
529
+
530
+ # Create a new link between transactions
531
+ # Store a new link between two transactions. For this end point you need the journal_id from a transaction.
532
+ # @param transaction_link [TransactionLink] JSON array with the necessary link type information or key&#x3D;value pairs. See the model for the exact specifications.
533
+ # @param [Hash] opts the optional parameters
534
+ # @return [TransactionLinkSingle]
535
+ def store_transaction_link(transaction_link, opts = {})
536
+ data, _status_code, _headers = store_transaction_link_with_http_info(transaction_link, opts)
537
+ data
538
+ end
539
+
540
+ # Create a new link between transactions
541
+ # Store a new link between two transactions. For this end point you need the journal_id from a transaction.
542
+ # @param transaction_link [TransactionLink] JSON array with the necessary link type information or key&#x3D;value pairs. See the model for the exact specifications.
543
+ # @param [Hash] opts the optional parameters
544
+ # @return [Array<(TransactionLinkSingle, Integer, Hash)>] TransactionLinkSingle data, response status code and response headers
545
+ def store_transaction_link_with_http_info(transaction_link, opts = {})
546
+ if @api_client.config.debugging
547
+ @api_client.config.logger.debug 'Calling API: LinksApi.store_transaction_link ...'
548
+ end
549
+ # verify the required parameter 'transaction_link' is set
550
+ if @api_client.config.client_side_validation && transaction_link.nil?
551
+ fail ArgumentError, "Missing the required parameter 'transaction_link' when calling LinksApi.store_transaction_link"
552
+ end
553
+ # resource path
554
+ local_var_path = '/api/v1/transaction_links'
555
+
556
+ # query parameters
557
+ query_params = opts[:query_params] || {}
558
+
559
+ # header parameters
560
+ header_params = opts[:header_params] || {}
561
+ # HTTP header 'Accept' (if needed)
562
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
563
+ # HTTP header 'Content-Type'
564
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
565
+
566
+ # form parameters
567
+ form_params = opts[:form_params] || {}
568
+
569
+ # http body (model)
570
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(transaction_link)
571
+
572
+ # return_type
573
+ return_type = opts[:debug_return_type] || 'TransactionLinkSingle'
574
+
575
+ # auth_names
576
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
577
+
578
+ new_options = opts.merge(
579
+ :operation => :"LinksApi.store_transaction_link",
580
+ :header_params => header_params,
581
+ :query_params => query_params,
582
+ :form_params => form_params,
583
+ :body => post_body,
584
+ :auth_names => auth_names,
585
+ :return_type => return_type
586
+ )
587
+
588
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
589
+ if @api_client.config.debugging
590
+ @api_client.config.logger.debug "API called: LinksApi#store_transaction_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
591
+ end
592
+ return data, status_code, headers
593
+ end
594
+
595
+ # Update existing link type.
596
+ # Used to update a single link type. All fields that are not submitted will be cleared (set to NULL). The model will tell you which fields are mandatory. You cannot update some of the system provided link types, indicated by the editable=false flag when you list it.
597
+ # @param id [Integer] The ID of the link type.
598
+ # @param link_type [LinkType] JSON array or formdata with updated link type information. See the model for the exact specifications.
599
+ # @param [Hash] opts the optional parameters
600
+ # @return [LinkTypeSingle]
601
+ def update_link_type(id, link_type, opts = {})
602
+ data, _status_code, _headers = update_link_type_with_http_info(id, link_type, opts)
603
+ data
604
+ end
605
+
606
+ # Update existing link type.
607
+ # Used to update a single link type. All fields that are not submitted will be cleared (set to NULL). The model will tell you which fields are mandatory. You cannot update some of the system provided link types, indicated by the editable&#x3D;false flag when you list it.
608
+ # @param id [Integer] The ID of the link type.
609
+ # @param link_type [LinkType] JSON array or formdata with updated link type information. See the model for the exact specifications.
610
+ # @param [Hash] opts the optional parameters
611
+ # @return [Array<(LinkTypeSingle, Integer, Hash)>] LinkTypeSingle data, response status code and response headers
612
+ def update_link_type_with_http_info(id, link_type, opts = {})
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug 'Calling API: LinksApi.update_link_type ...'
615
+ end
616
+ # verify the required parameter 'id' is set
617
+ if @api_client.config.client_side_validation && id.nil?
618
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.update_link_type"
619
+ end
620
+ # verify the required parameter 'link_type' is set
621
+ if @api_client.config.client_side_validation && link_type.nil?
622
+ fail ArgumentError, "Missing the required parameter 'link_type' when calling LinksApi.update_link_type"
623
+ end
624
+ # resource path
625
+ local_var_path = '/api/v1/link_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
626
+
627
+ # query parameters
628
+ query_params = opts[:query_params] || {}
629
+
630
+ # header parameters
631
+ header_params = opts[:header_params] || {}
632
+ # HTTP header 'Accept' (if needed)
633
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
634
+ # HTTP header 'Content-Type'
635
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
636
+
637
+ # form parameters
638
+ form_params = opts[:form_params] || {}
639
+
640
+ # http body (model)
641
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(link_type)
642
+
643
+ # return_type
644
+ return_type = opts[:debug_return_type] || 'LinkTypeSingle'
645
+
646
+ # auth_names
647
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
648
+
649
+ new_options = opts.merge(
650
+ :operation => :"LinksApi.update_link_type",
651
+ :header_params => header_params,
652
+ :query_params => query_params,
653
+ :form_params => form_params,
654
+ :body => post_body,
655
+ :auth_names => auth_names,
656
+ :return_type => return_type
657
+ )
658
+
659
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
660
+ if @api_client.config.debugging
661
+ @api_client.config.logger.debug "API called: LinksApi#update_link_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
662
+ end
663
+ return data, status_code, headers
664
+ end
665
+
666
+ # Update an existing link between transactions.
667
+ # Used to update a single existing link.
668
+ # @param id [Integer] The ID of the transaction link.
669
+ # @param transaction_link [TransactionLink] JSON array or formdata with updated link type information. See the model for the exact specifications.
670
+ # @param [Hash] opts the optional parameters
671
+ # @return [TransactionLinkSingle]
672
+ def update_transaction_link(id, transaction_link, opts = {})
673
+ data, _status_code, _headers = update_transaction_link_with_http_info(id, transaction_link, opts)
674
+ data
675
+ end
676
+
677
+ # Update an existing link between transactions.
678
+ # Used to update a single existing link.
679
+ # @param id [Integer] The ID of the transaction link.
680
+ # @param transaction_link [TransactionLink] JSON array or formdata with updated link type information. See the model for the exact specifications.
681
+ # @param [Hash] opts the optional parameters
682
+ # @return [Array<(TransactionLinkSingle, Integer, Hash)>] TransactionLinkSingle data, response status code and response headers
683
+ def update_transaction_link_with_http_info(id, transaction_link, opts = {})
684
+ if @api_client.config.debugging
685
+ @api_client.config.logger.debug 'Calling API: LinksApi.update_transaction_link ...'
686
+ end
687
+ # verify the required parameter 'id' is set
688
+ if @api_client.config.client_side_validation && id.nil?
689
+ fail ArgumentError, "Missing the required parameter 'id' when calling LinksApi.update_transaction_link"
690
+ end
691
+ # verify the required parameter 'transaction_link' is set
692
+ if @api_client.config.client_side_validation && transaction_link.nil?
693
+ fail ArgumentError, "Missing the required parameter 'transaction_link' when calling LinksApi.update_transaction_link"
694
+ end
695
+ # resource path
696
+ local_var_path = '/api/v1/transaction_links/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
697
+
698
+ # query parameters
699
+ query_params = opts[:query_params] || {}
700
+
701
+ # header parameters
702
+ header_params = opts[:header_params] || {}
703
+ # HTTP header 'Accept' (if needed)
704
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
705
+ # HTTP header 'Content-Type'
706
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
707
+
708
+ # form parameters
709
+ form_params = opts[:form_params] || {}
710
+
711
+ # http body (model)
712
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(transaction_link)
713
+
714
+ # return_type
715
+ return_type = opts[:debug_return_type] || 'TransactionLinkSingle'
716
+
717
+ # auth_names
718
+ auth_names = opts[:debug_auth_names] || ['firefly_iii_auth']
719
+
720
+ new_options = opts.merge(
721
+ :operation => :"LinksApi.update_transaction_link",
722
+ :header_params => header_params,
723
+ :query_params => query_params,
724
+ :form_params => form_params,
725
+ :body => post_body,
726
+ :auth_names => auth_names,
727
+ :return_type => return_type
728
+ )
729
+
730
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
731
+ if @api_client.config.debugging
732
+ @api_client.config.logger.debug "API called: LinksApi#update_transaction_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
733
+ end
734
+ return data, status_code, headers
735
+ end
736
+ end
737
+ end