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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +349 -0
- data/Rakefile +10 -0
- data/docs/AboutApi.md +143 -0
- data/docs/Account.md +70 -0
- data/docs/AccountArray.md +20 -0
- data/docs/AccountRead.md +22 -0
- data/docs/AccountSingle.md +18 -0
- data/docs/AccountTypeFilter.md +15 -0
- data/docs/AccountTypeProperty.md +15 -0
- data/docs/AccountsApi.md +531 -0
- data/docs/Attachment.md +44 -0
- data/docs/AttachmentArray.md +20 -0
- data/docs/AttachmentRead.md +24 -0
- data/docs/AttachmentSingle.md +18 -0
- data/docs/AttachmentsApi.md +510 -0
- data/docs/AvailableBudget.md +38 -0
- data/docs/AvailableBudgetArray.md +20 -0
- data/docs/AvailableBudgetRead.md +22 -0
- data/docs/AvailableBudgetSingle.md +18 -0
- data/docs/AvailableBudgetsApi.md +369 -0
- data/docs/BasicSummaryEntry.md +36 -0
- data/docs/Bill.md +50 -0
- data/docs/BillArray.md +20 -0
- data/docs/BillPaidDates.md +22 -0
- data/docs/BillRead.md +22 -0
- data/docs/BillSingle.md +18 -0
- data/docs/BillsApi.md +600 -0
- data/docs/Budget.md +28 -0
- data/docs/BudgetArray.md +20 -0
- data/docs/BudgetLimit.md +38 -0
- data/docs/BudgetLimitArray.md +20 -0
- data/docs/BudgetLimitRead.md +22 -0
- data/docs/BudgetLimitSingle.md +18 -0
- data/docs/BudgetRead.md +22 -0
- data/docs/BudgetSingle.md +18 -0
- data/docs/BudgetSpent.md +26 -0
- data/docs/BudgetsApi.md +897 -0
- data/docs/CategoriesApi.md +446 -0
- data/docs/Category.md +26 -0
- data/docs/CategoryArray.md +20 -0
- data/docs/CategoryEarned.md +30 -0
- data/docs/CategoryRead.md +22 -0
- data/docs/CategorySingle.md +18 -0
- data/docs/CategorySpent.md +30 -0
- data/docs/ChartDataPoint.md +18 -0
- data/docs/ChartDataSet.md +32 -0
- data/docs/ChartsApi.md +374 -0
- data/docs/ConfigurationApi.md +148 -0
- data/docs/ConfigurationUpdate.md +18 -0
- data/docs/CurrenciesApi.md +1198 -0
- data/docs/Currency.md +32 -0
- data/docs/CurrencyArray.md +22 -0
- data/docs/CurrencyExchangeRatesApi.md +86 -0
- data/docs/CurrencyRead.md +22 -0
- data/docs/CurrencySingle.md +18 -0
- data/docs/ExchangeRate.md +22 -0
- data/docs/ExchangeRateArray.md +22 -0
- data/docs/ExchangeRateAttributes.md +44 -0
- data/docs/ImportApi.md +232 -0
- data/docs/ImportJob.md +22 -0
- data/docs/ImportJobArray.md +22 -0
- data/docs/ImportJobAttributes.md +42 -0
- data/docs/ImportJobSingle.md +18 -0
- data/docs/LinkType.md +26 -0
- data/docs/LinkTypeArray.md +22 -0
- data/docs/LinkTypeRead.md +24 -0
- data/docs/LinkTypeSingle.md +18 -0
- data/docs/LinksApi.md +804 -0
- data/docs/Meta.md +18 -0
- data/docs/MetaPagination.md +26 -0
- data/docs/ObjectLink.md +20 -0
- data/docs/ObjectLink0.md +20 -0
- data/docs/PageLink.md +22 -0
- data/docs/PiggyBank.md +54 -0
- data/docs/PiggyBankArray.md +22 -0
- data/docs/PiggyBankEvent.md +24 -0
- data/docs/PiggyBankEventArray.md +22 -0
- data/docs/PiggyBankEventAttributes.md +34 -0
- data/docs/PiggyBankRead.md +24 -0
- data/docs/PiggyBankSingle.md +18 -0
- data/docs/PiggyBanksApi.md +440 -0
- data/docs/Preference.md +24 -0
- data/docs/PreferenceArray.md +22 -0
- data/docs/PreferenceRead.md +22 -0
- data/docs/PreferenceSingle.md +18 -0
- data/docs/PreferencesApi.md +224 -0
- data/docs/Recurrence.md +45 -0
- data/docs/RecurrenceArray.md +22 -0
- data/docs/RecurrenceRead.md +24 -0
- data/docs/RecurrenceRepetition.md +34 -0
- data/docs/RecurrenceSingle.md +18 -0
- data/docs/RecurrenceTransaction.md +68 -0
- data/docs/RecurrencesApi.md +513 -0
- data/docs/Rule.md +42 -0
- data/docs/RuleAction.md +32 -0
- data/docs/RuleArray.md +22 -0
- data/docs/RuleGroup.md +28 -0
- data/docs/RuleGroupArray.md +22 -0
- data/docs/RuleGroupRead.md +24 -0
- data/docs/RuleGroupSingle.md +18 -0
- data/docs/RuleGroupsApi.md +603 -0
- data/docs/RuleRead.md +24 -0
- data/docs/RuleSingle.md +18 -0
- data/docs/RuleTrigger.md +32 -0
- data/docs/RulesApi.md +528 -0
- data/docs/SummaryApi.md +84 -0
- data/docs/SystemConfiguration.md +18 -0
- data/docs/SystemConfigurationData.md +24 -0
- data/docs/SystemInfo.md +18 -0
- data/docs/SystemInfoData.md +26 -0
- data/docs/TagArray.md +22 -0
- data/docs/TagCloud.md +18 -0
- data/docs/TagCloudTag.md +24 -0
- data/docs/TagModel.md +34 -0
- data/docs/TagRead.md +24 -0
- data/docs/TagSingle.md +18 -0
- data/docs/TagsApi.md +523 -0
- data/docs/Transaction.md +26 -0
- data/docs/TransactionArray.md +22 -0
- data/docs/TransactionLink.md +30 -0
- data/docs/TransactionLinkArray.md +22 -0
- data/docs/TransactionLinkRead.md +24 -0
- data/docs/TransactionLinkSingle.md +18 -0
- data/docs/TransactionRead.md +24 -0
- data/docs/TransactionSingle.md +18 -0
- data/docs/TransactionSplit.md +128 -0
- data/docs/TransactionTypeFilter.md +15 -0
- data/docs/TransactionsApi.md +592 -0
- data/docs/User.md +28 -0
- data/docs/UserArray.md +22 -0
- data/docs/UserRead.md +24 -0
- data/docs/UserSingle.md +18 -0
- data/docs/UsersApi.md +365 -0
- data/docs/ValidationError.md +20 -0
- data/docs/ValidationErrorErrors.md +20 -0
- data/firefly-iii-client.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/firefly_iii_client.rb +172 -0
- data/lib/firefly_iii_client/api/about_api.rb +136 -0
- data/lib/firefly_iii_client/api/accounts_api.rb +495 -0
- data/lib/firefly_iii_client/api/attachments_api.rb +470 -0
- data/lib/firefly_iii_client/api/available_budgets_api.rb +348 -0
- data/lib/firefly_iii_client/api/bills_api.rb +555 -0
- data/lib/firefly_iii_client/api/budgets_api.rb +866 -0
- data/lib/firefly_iii_client/api/categories_api.rb +417 -0
- data/lib/firefly_iii_client/api/charts_api.rb +383 -0
- data/lib/firefly_iii_client/api/configuration_api.rb +156 -0
- data/lib/firefly_iii_client/api/currencies_api.rb +1089 -0
- data/lib/firefly_iii_client/api/currency_exchange_rates_api.rb +91 -0
- data/lib/firefly_iii_client/api/import_api.rb +220 -0
- data/lib/firefly_iii_client/api/links_api.rb +737 -0
- data/lib/firefly_iii_client/api/piggy_banks_api.rb +408 -0
- data/lib/firefly_iii_client/api/preferences_api.rb +216 -0
- data/lib/firefly_iii_client/api/recurrences_api.rb +472 -0
- data/lib/firefly_iii_client/api/rule_groups_api.rb +559 -0
- data/lib/firefly_iii_client/api/rules_api.rb +493 -0
- data/lib/firefly_iii_client/api/summary_api.rb +96 -0
- data/lib/firefly_iii_client/api/tags_api.rb +491 -0
- data/lib/firefly_iii_client/api/transactions_api.rb +546 -0
- data/lib/firefly_iii_client/api/users_api.rb +342 -0
- data/lib/firefly_iii_client/api_client.rb +390 -0
- data/lib/firefly_iii_client/api_error.rb +57 -0
- data/lib/firefly_iii_client/configuration.rb +277 -0
- data/lib/firefly_iii_client/models/account.rb +564 -0
- data/lib/firefly_iii_client/models/account_array.rb +229 -0
- data/lib/firefly_iii_client/models/account_read.rb +237 -0
- data/lib/firefly_iii_client/models/account_single.rb +218 -0
- data/lib/firefly_iii_client/models/account_type_filter.rb +56 -0
- data/lib/firefly_iii_client/models/account_type_property.rb +47 -0
- data/lib/firefly_iii_client/models/attachment.rb +401 -0
- data/lib/firefly_iii_client/models/attachment_array.rb +229 -0
- data/lib/firefly_iii_client/models/attachment_read.rb +246 -0
- data/lib/firefly_iii_client/models/attachment_single.rb +218 -0
- data/lib/firefly_iii_client/models/available_budget.rb +331 -0
- data/lib/firefly_iii_client/models/available_budget_array.rb +229 -0
- data/lib/firefly_iii_client/models/available_budget_read.rb +237 -0
- data/lib/firefly_iii_client/models/available_budget_single.rb +218 -0
- data/lib/firefly_iii_client/models/basic_summary_entry.rb +307 -0
- data/lib/firefly_iii_client/models/bill.rb +433 -0
- data/lib/firefly_iii_client/models/bill_array.rb +229 -0
- data/lib/firefly_iii_client/models/bill_paid_dates.rb +239 -0
- data/lib/firefly_iii_client/models/bill_read.rb +237 -0
- data/lib/firefly_iii_client/models/bill_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget.rb +271 -0
- data/lib/firefly_iii_client/models/budget_array.rb +229 -0
- data/lib/firefly_iii_client/models/budget_limit.rb +335 -0
- data/lib/firefly_iii_client/models/budget_limit_array.rb +229 -0
- data/lib/firefly_iii_client/models/budget_limit_read.rb +237 -0
- data/lib/firefly_iii_client/models/budget_limit_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget_read.rb +237 -0
- data/lib/firefly_iii_client/models/budget_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget_spent.rb +256 -0
- data/lib/firefly_iii_client/models/category.rb +263 -0
- data/lib/firefly_iii_client/models/category_array.rb +229 -0
- data/lib/firefly_iii_client/models/category_earned.rb +274 -0
- data/lib/firefly_iii_client/models/category_read.rb +237 -0
- data/lib/firefly_iii_client/models/category_single.rb +218 -0
- data/lib/firefly_iii_client/models/category_spent.rb +274 -0
- data/lib/firefly_iii_client/models/chart_data_point.rb +219 -0
- data/lib/firefly_iii_client/models/chart_data_set.rb +289 -0
- data/lib/firefly_iii_client/models/configuration_update.rb +224 -0
- data/lib/firefly_iii_client/models/currency.rb +299 -0
- data/lib/firefly_iii_client/models/currency_array.rb +238 -0
- data/lib/firefly_iii_client/models/currency_read.rb +237 -0
- data/lib/firefly_iii_client/models/currency_single.rb +218 -0
- data/lib/firefly_iii_client/models/exchange_rate.rb +237 -0
- data/lib/firefly_iii_client/models/exchange_rate_array.rb +238 -0
- data/lib/firefly_iii_client/models/exchange_rate_attributes.rb +336 -0
- data/lib/firefly_iii_client/models/import_job.rb +237 -0
- data/lib/firefly_iii_client/models/import_job_array.rb +238 -0
- data/lib/firefly_iii_client/models/import_job_attributes.rb +337 -0
- data/lib/firefly_iii_client/models/import_job_single.rb +218 -0
- data/lib/firefly_iii_client/models/link_type.rb +260 -0
- data/lib/firefly_iii_client/models/link_type_array.rb +238 -0
- data/lib/firefly_iii_client/models/link_type_read.rb +246 -0
- data/lib/firefly_iii_client/models/link_type_single.rb +218 -0
- data/lib/firefly_iii_client/models/meta.rb +218 -0
- data/lib/firefly_iii_client/models/meta_pagination.rb +254 -0
- data/lib/firefly_iii_client/models/object_link.rb +227 -0
- data/lib/firefly_iii_client/models/object_link0.rb +227 -0
- data/lib/firefly_iii_client/models/page_link.rb +236 -0
- data/lib/firefly_iii_client/models/piggy_bank.rb +400 -0
- data/lib/firefly_iii_client/models/piggy_bank_array.rb +238 -0
- data/lib/firefly_iii_client/models/piggy_bank_event.rb +246 -0
- data/lib/firefly_iii_client/models/piggy_bank_event_array.rb +238 -0
- data/lib/firefly_iii_client/models/piggy_bank_event_attributes.rb +291 -0
- data/lib/firefly_iii_client/models/piggy_bank_read.rb +246 -0
- data/lib/firefly_iii_client/models/piggy_bank_single.rb +218 -0
- data/lib/firefly_iii_client/models/preference.rb +251 -0
- data/lib/firefly_iii_client/models/preference_array.rb +238 -0
- data/lib/firefly_iii_client/models/preference_read.rb +237 -0
- data/lib/firefly_iii_client/models/preference_single.rb +218 -0
- data/lib/firefly_iii_client/models/recurrence.rb +395 -0
- data/lib/firefly_iii_client/models/recurrence_array.rb +238 -0
- data/lib/firefly_iii_client/models/recurrence_read.rb +246 -0
- data/lib/firefly_iii_client/models/recurrence_repetition.rb +342 -0
- data/lib/firefly_iii_client/models/recurrence_single.rb +218 -0
- data/lib/firefly_iii_client/models/recurrence_transaction.rb +483 -0
- data/lib/firefly_iii_client/models/rule.rb +395 -0
- data/lib/firefly_iii_client/models/rule_action.rb +326 -0
- data/lib/firefly_iii_client/models/rule_array.rb +238 -0
- data/lib/firefly_iii_client/models/rule_group.rb +268 -0
- data/lib/firefly_iii_client/models/rule_group_array.rb +238 -0
- data/lib/firefly_iii_client/models/rule_group_read.rb +246 -0
- data/lib/firefly_iii_client/models/rule_group_single.rb +218 -0
- data/lib/firefly_iii_client/models/rule_read.rb +246 -0
- data/lib/firefly_iii_client/models/rule_single.rb +218 -0
- data/lib/firefly_iii_client/models/rule_trigger.rb +330 -0
- data/lib/firefly_iii_client/models/system_configuration.rb +218 -0
- data/lib/firefly_iii_client/models/system_configuration_data.rb +248 -0
- data/lib/firefly_iii_client/models/system_info.rb +223 -0
- data/lib/firefly_iii_client/models/system_info_data.rb +279 -0
- data/lib/firefly_iii_client/models/tag_array.rb +238 -0
- data/lib/firefly_iii_client/models/tag_cloud.rb +220 -0
- data/lib/firefly_iii_client/models/tag_cloud_tag.rb +249 -0
- data/lib/firefly_iii_client/models/tag_model.rb +295 -0
- data/lib/firefly_iii_client/models/tag_read.rb +246 -0
- data/lib/firefly_iii_client/models/tag_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction.rb +263 -0
- data/lib/firefly_iii_client/models/transaction_array.rb +238 -0
- data/lib/firefly_iii_client/models/transaction_link.rb +292 -0
- data/lib/firefly_iii_client/models/transaction_link_array.rb +238 -0
- data/lib/firefly_iii_client/models/transaction_link_read.rb +246 -0
- data/lib/firefly_iii_client/models/transaction_link_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction_read.rb +246 -0
- data/lib/firefly_iii_client/models/transaction_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction_split.rb +850 -0
- data/lib/firefly_iii_client/models/transaction_type_filter.rb +49 -0
- data/lib/firefly_iii_client/models/user.rb +320 -0
- data/lib/firefly_iii_client/models/user_array.rb +238 -0
- data/lib/firefly_iii_client/models/user_read.rb +246 -0
- data/lib/firefly_iii_client/models/user_single.rb +218 -0
- data/lib/firefly_iii_client/models/validation_error.rb +227 -0
- data/lib/firefly_iii_client/models/validation_error_errors.rb +231 -0
- data/lib/firefly_iii_client/version.rb +15 -0
- data/spec/api/about_api_spec.rb +57 -0
- data/spec/api/accounts_api_spec.rb +129 -0
- data/spec/api/attachments_api_spec.rb +121 -0
- data/spec/api/available_budgets_api_spec.rb +98 -0
- data/spec/api/bills_api_spec.rb +140 -0
- data/spec/api/budgets_api_spec.rb +194 -0
- data/spec/api/categories_api_spec.rb +112 -0
- data/spec/api/charts_api_spec.rb +101 -0
- data/spec/api/configuration_api_spec.rb +59 -0
- data/spec/api/currencies_api_spec.rb +246 -0
- data/spec/api/currency_exchange_rates_api_spec.rb +50 -0
- data/spec/api/import_api_spec.rb +75 -0
- data/spec/api/links_api_spec.rb +173 -0
- data/spec/api/piggy_banks_api_spec.rb +109 -0
- data/spec/api/preferences_api_spec.rb +72 -0
- data/spec/api/recurrences_api_spec.rb +123 -0
- data/spec/api/rule_groups_api_spec.rb +142 -0
- data/spec/api/rules_api_spec.rb +129 -0
- data/spec/api/summary_api_spec.rb +49 -0
- data/spec/api/tags_api_spec.rb +126 -0
- data/spec/api/transactions_api_spec.rb +137 -0
- data/spec/api/users_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_array_spec.rb +40 -0
- data/spec/models/account_read_spec.rb +46 -0
- data/spec/models/account_single_spec.rb +34 -0
- data/spec/models/account_spec.rb +210 -0
- data/spec/models/account_type_filter_spec.rb +28 -0
- data/spec/models/account_type_property_spec.rb +28 -0
- data/spec/models/attachment_array_spec.rb +40 -0
- data/spec/models/attachment_read_spec.rb +52 -0
- data/spec/models/attachment_single_spec.rb +34 -0
- data/spec/models/attachment_spec.rb +120 -0
- data/spec/models/available_budget_array_spec.rb +40 -0
- data/spec/models/available_budget_read_spec.rb +46 -0
- data/spec/models/available_budget_single_spec.rb +34 -0
- data/spec/models/available_budget_spec.rb +94 -0
- data/spec/models/basic_summary_entry_spec.rb +88 -0
- data/spec/models/bill_array_spec.rb +40 -0
- data/spec/models/bill_paid_dates_spec.rb +46 -0
- data/spec/models/bill_read_spec.rb +46 -0
- data/spec/models/bill_single_spec.rb +34 -0
- data/spec/models/bill_spec.rb +134 -0
- data/spec/models/budget_array_spec.rb +40 -0
- data/spec/models/budget_limit_array_spec.rb +40 -0
- data/spec/models/budget_limit_read_spec.rb +46 -0
- data/spec/models/budget_limit_single_spec.rb +34 -0
- data/spec/models/budget_limit_spec.rb +94 -0
- data/spec/models/budget_read_spec.rb +46 -0
- data/spec/models/budget_single_spec.rb +34 -0
- data/spec/models/budget_spec.rb +64 -0
- data/spec/models/budget_spent_spec.rb +58 -0
- data/spec/models/category_array_spec.rb +40 -0
- data/spec/models/category_earned_spec.rb +70 -0
- data/spec/models/category_read_spec.rb +46 -0
- data/spec/models/category_single_spec.rb +34 -0
- data/spec/models/category_spec.rb +58 -0
- data/spec/models/category_spent_spec.rb +70 -0
- data/spec/models/chart_data_point_spec.rb +34 -0
- data/spec/models/chart_data_set_spec.rb +76 -0
- data/spec/models/configuration_update_spec.rb +34 -0
- data/spec/models/currency_array_spec.rb +46 -0
- data/spec/models/currency_read_spec.rb +46 -0
- data/spec/models/currency_single_spec.rb +34 -0
- data/spec/models/currency_spec.rb +76 -0
- data/spec/models/exchange_rate_array_spec.rb +46 -0
- data/spec/models/exchange_rate_attributes_spec.rb +112 -0
- data/spec/models/exchange_rate_spec.rb +46 -0
- data/spec/models/import_job_array_spec.rb +46 -0
- data/spec/models/import_job_attributes_spec.rb +106 -0
- data/spec/models/import_job_single_spec.rb +34 -0
- data/spec/models/import_job_spec.rb +46 -0
- data/spec/models/link_type_array_spec.rb +46 -0
- data/spec/models/link_type_read_spec.rb +52 -0
- data/spec/models/link_type_single_spec.rb +34 -0
- data/spec/models/link_type_spec.rb +52 -0
- data/spec/models/meta_pagination_spec.rb +58 -0
- data/spec/models/meta_spec.rb +34 -0
- data/spec/models/object_link0_spec.rb +40 -0
- data/spec/models/object_link_spec.rb +40 -0
- data/spec/models/page_link_spec.rb +46 -0
- data/spec/models/piggy_bank_array_spec.rb +46 -0
- data/spec/models/piggy_bank_event_array_spec.rb +46 -0
- data/spec/models/piggy_bank_event_attributes_spec.rb +82 -0
- data/spec/models/piggy_bank_event_spec.rb +52 -0
- data/spec/models/piggy_bank_read_spec.rb +52 -0
- data/spec/models/piggy_bank_single_spec.rb +34 -0
- data/spec/models/piggy_bank_spec.rb +142 -0
- data/spec/models/preference_array_spec.rb +46 -0
- data/spec/models/preference_read_spec.rb +46 -0
- data/spec/models/preference_single_spec.rb +34 -0
- data/spec/models/preference_spec.rb +52 -0
- data/spec/models/recurrence_array_spec.rb +46 -0
- data/spec/models/recurrence_read_spec.rb +52 -0
- data/spec/models/recurrence_repetition_spec.rb +86 -0
- data/spec/models/recurrence_single_spec.rb +34 -0
- data/spec/models/recurrence_spec.rb +116 -0
- data/spec/models/recurrence_transaction_spec.rb +184 -0
- data/spec/models/rule_action_spec.rb +80 -0
- data/spec/models/rule_array_spec.rb +46 -0
- data/spec/models/rule_group_array_spec.rb +46 -0
- data/spec/models/rule_group_read_spec.rb +52 -0
- data/spec/models/rule_group_single_spec.rb +34 -0
- data/spec/models/rule_group_spec.rb +64 -0
- data/spec/models/rule_read_spec.rb +52 -0
- data/spec/models/rule_single_spec.rb +34 -0
- data/spec/models/rule_spec.rb +110 -0
- data/spec/models/rule_trigger_spec.rb +80 -0
- data/spec/models/system_configuration_data_spec.rb +52 -0
- data/spec/models/system_configuration_spec.rb +34 -0
- data/spec/models/system_info_data_spec.rb +58 -0
- data/spec/models/system_info_spec.rb +34 -0
- data/spec/models/tag_array_spec.rb +46 -0
- data/spec/models/tag_cloud_spec.rb +34 -0
- data/spec/models/tag_cloud_tag_spec.rb +52 -0
- data/spec/models/tag_model_spec.rb +76 -0
- data/spec/models/tag_read_spec.rb +52 -0
- data/spec/models/tag_single_spec.rb +34 -0
- data/spec/models/transaction_array_spec.rb +46 -0
- data/spec/models/transaction_link_array_spec.rb +46 -0
- data/spec/models/transaction_link_read_spec.rb +52 -0
- data/spec/models/transaction_link_single_spec.rb +34 -0
- data/spec/models/transaction_link_spec.rb +70 -0
- data/spec/models/transaction_read_spec.rb +52 -0
- data/spec/models/transaction_single_spec.rb +34 -0
- data/spec/models/transaction_spec.rb +58 -0
- data/spec/models/transaction_split_spec.rb +368 -0
- data/spec/models/transaction_type_filter_spec.rb +28 -0
- data/spec/models/user_array_spec.rb +46 -0
- data/spec/models/user_read_spec.rb +52 -0
- data/spec/models/user_single_spec.rb +34 -0
- data/spec/models/user_spec.rb +72 -0
- data/spec/models/validation_error_errors_spec.rb +40 -0
- data/spec/models/validation_error_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +495 -0
data/docs/ImportJob.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::ImportJob
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**ImportJobAttributes**](ImportJobAttributes.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::ImportJob.new(
|
17
|
+
type: import_jobs,
|
18
|
+
id: 2,
|
19
|
+
attributes: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::ImportJobArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<ImportJob>**](ImportJob.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::ImportJobArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# OpenapiClient::ImportJobAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional] |
|
8
|
+
| **updated_at** | **Time** | | [optional] |
|
9
|
+
| **tag_id** | **Integer** | ID of the tag related to the import job, if present. | [optional] |
|
10
|
+
| **tag_tag** | **String** | Tag related to the import job, if present. | [optional] |
|
11
|
+
| **key** | **String** | Import job unique identifier. | [optional] |
|
12
|
+
| **file_type** | **String** | File type, if relevant. | [optional] |
|
13
|
+
| **provider** | **String** | Import provider that did the import. | [optional] |
|
14
|
+
| **status** | **String** | Status of import job. | [optional] |
|
15
|
+
| **stage** | **String** | Current stage. | [optional] |
|
16
|
+
| **configuration** | **String** | JSON string with job-specific configuration. | [optional] |
|
17
|
+
| **extended_status** | **String** | JSON string with job-specific status. | [optional] |
|
18
|
+
| **transactions** | **String** | JSON string with a count of transactions in the job. | [optional] |
|
19
|
+
| **errors** | **String** | JSON string with a list of errors. | [optional] |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'firefly_iii_client'
|
25
|
+
|
26
|
+
instance = FireflyIIIClient::ImportJobAttributes.new(
|
27
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
28
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
29
|
+
tag_id : 121,
|
30
|
+
tag_tag : Import with key 'abcdef',
|
31
|
+
key : abcdef,
|
32
|
+
file_type : csv,
|
33
|
+
provider : bunq,
|
34
|
+
status : import_finished,
|
35
|
+
stage : apply_rules,
|
36
|
+
configuration : null,
|
37
|
+
extended_status : null,
|
38
|
+
transactions : null,
|
39
|
+
errors : null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::ImportJobSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**ImportJob**](ImportJob.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::ImportJobSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/LinkType.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# OpenapiClient::LinkType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **inward** | **String** | | |
|
9
|
+
| **outward** | **String** | | |
|
10
|
+
| **editable** | **Boolean** | | [optional][readonly] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::LinkType.new(
|
18
|
+
name: Paid,
|
19
|
+
inward: is (partially) paid for by,
|
20
|
+
outward :
|
21
|
+
(partially) pays for
|
22
|
+
,
|
23
|
+
editable : false
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::LinkTypeArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<LinkTypeRead>**](LinkTypeRead.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::LinkTypeArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::LinkTypeRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**LinkType**](LinkType.md) | | [optional] |
|
10
|
+
| **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::LinkTypeRead.new(
|
18
|
+
type: link_types,
|
19
|
+
id: 2,
|
20
|
+
attributes: null,
|
21
|
+
links: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::LinkTypeSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**LinkTypeRead**](LinkTypeRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::LinkTypeSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/LinksApi.md
ADDED
@@ -0,0 +1,804 @@
|
|
1
|
+
# OpenapiClient::LinksApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_link_type**](LinksApi.md#delete_link_type) | **DELETE** /api/v1/link_types/{id} | Permanently delete link type. |
|
8
|
+
| [**delete_transaction_link**](LinksApi.md#delete_transaction_link) | **DELETE** /api/v1/transaction_links/{id} | Permanently delete link between transactions. |
|
9
|
+
| [**get_link_type**](LinksApi.md#get_link_type) | **GET** /api/v1/link_types/{id} | Get single a link type. |
|
10
|
+
| [**get_transaction_link**](LinksApi.md#get_transaction_link) | **GET** /api/v1/transaction_links/{id} | Get a single link. |
|
11
|
+
| [**list_link_type**](LinksApi.md#list_link_type) | **GET** /api/v1/link_types | List all types of links. |
|
12
|
+
| [**list_transaction_by_link_type**](LinksApi.md#list_transaction_by_link_type) | **GET** /api/v1/link_types/{id}/transactions | List all transactions under this link type. |
|
13
|
+
| [**list_transaction_link**](LinksApi.md#list_transaction_link) | **GET** /api/v1/transaction_links | List all transaction links. |
|
14
|
+
| [**store_link_type**](LinksApi.md#store_link_type) | **POST** /api/v1/link_types | Create a new link type |
|
15
|
+
| [**store_transaction_link**](LinksApi.md#store_transaction_link) | **POST** /api/v1/transaction_links | Create a new link between transactions |
|
16
|
+
| [**update_link_type**](LinksApi.md#update_link_type) | **PUT** /api/v1/link_types/{id} | Update existing link type. |
|
17
|
+
| [**update_transaction_link**](LinksApi.md#update_transaction_link) | **PUT** /api/v1/transaction_links/{id} | Update an existing link between transactions. |
|
18
|
+
|
19
|
+
|
20
|
+
## delete_link_type
|
21
|
+
|
22
|
+
> delete_link_type(id)
|
23
|
+
|
24
|
+
Permanently delete link type.
|
25
|
+
|
26
|
+
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.
|
27
|
+
|
28
|
+
### Examples
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
require 'time'
|
32
|
+
require 'firefly_iii_client'
|
33
|
+
# setup authorization
|
34
|
+
FireflyIIIClient.configure do |config|
|
35
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
36
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
40
|
+
id = 1 # Integer | The ID of the link type.
|
41
|
+
|
42
|
+
begin
|
43
|
+
# Permanently delete link type.
|
44
|
+
api_instance.delete_link_type(id)
|
45
|
+
rescue FireflyIIIClient::ApiError => e
|
46
|
+
puts "Error when calling LinksApi->delete_link_type: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the delete_link_type_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
53
|
+
|
54
|
+
> <Array(nil, Integer, Hash)> delete_link_type_with_http_info(id)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
|
58
|
+
begin
|
59
|
+
# Permanently delete link type.
|
60
|
+
data, status_code, headers = api_instance.delete_link_type_with_http_info(id)
|
61
|
+
p status_code # => 2xx
|
62
|
+
p headers # => { ... }
|
63
|
+
p data # => nil
|
64
|
+
rescue FireflyIIIClient::ApiError => e
|
65
|
+
puts "Error when calling LinksApi->delete_link_type_with_http_info: #{e}"
|
66
|
+
end
|
67
|
+
```
|
68
|
+
|
69
|
+
### Parameters
|
70
|
+
|
71
|
+
| Name | Type | Description | Notes |
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
73
|
+
| **id** | **Integer** | The ID of the link type. | |
|
74
|
+
|
75
|
+
### Return type
|
76
|
+
|
77
|
+
nil (empty response body)
|
78
|
+
|
79
|
+
### Authorization
|
80
|
+
|
81
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
82
|
+
|
83
|
+
### HTTP request headers
|
84
|
+
|
85
|
+
- **Content-Type**: Not defined
|
86
|
+
- **Accept**: Not defined
|
87
|
+
|
88
|
+
|
89
|
+
## delete_transaction_link
|
90
|
+
|
91
|
+
> delete_transaction_link(id)
|
92
|
+
|
93
|
+
Permanently delete link between transactions.
|
94
|
+
|
95
|
+
Will permanently delete link. Transactions remain.
|
96
|
+
|
97
|
+
### Examples
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
require 'time'
|
101
|
+
require 'firefly_iii_client'
|
102
|
+
# setup authorization
|
103
|
+
FireflyIIIClient.configure do |config|
|
104
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
105
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
106
|
+
end
|
107
|
+
|
108
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
109
|
+
id = 1 # Integer | The ID of the transaction link.
|
110
|
+
|
111
|
+
begin
|
112
|
+
# Permanently delete link between transactions.
|
113
|
+
api_instance.delete_transaction_link(id)
|
114
|
+
rescue FireflyIIIClient::ApiError => e
|
115
|
+
puts "Error when calling LinksApi->delete_transaction_link: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
#### Using the delete_transaction_link_with_http_info variant
|
120
|
+
|
121
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
122
|
+
|
123
|
+
> <Array(nil, Integer, Hash)> delete_transaction_link_with_http_info(id)
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
|
127
|
+
begin
|
128
|
+
# Permanently delete link between transactions.
|
129
|
+
data, status_code, headers = api_instance.delete_transaction_link_with_http_info(id)
|
130
|
+
p status_code # => 2xx
|
131
|
+
p headers # => { ... }
|
132
|
+
p data # => nil
|
133
|
+
rescue FireflyIIIClient::ApiError => e
|
134
|
+
puts "Error when calling LinksApi->delete_transaction_link_with_http_info: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description | Notes |
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
142
|
+
| **id** | **Integer** | The ID of the transaction link. | |
|
143
|
+
|
144
|
+
### Return type
|
145
|
+
|
146
|
+
nil (empty response body)
|
147
|
+
|
148
|
+
### Authorization
|
149
|
+
|
150
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
151
|
+
|
152
|
+
### HTTP request headers
|
153
|
+
|
154
|
+
- **Content-Type**: Not defined
|
155
|
+
- **Accept**: Not defined
|
156
|
+
|
157
|
+
|
158
|
+
## get_link_type
|
159
|
+
|
160
|
+
> <LinkTypeSingle> get_link_type(id)
|
161
|
+
|
162
|
+
Get single a link type.
|
163
|
+
|
164
|
+
Returns a single link type by its ID.
|
165
|
+
|
166
|
+
### Examples
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
require 'time'
|
170
|
+
require 'firefly_iii_client'
|
171
|
+
# setup authorization
|
172
|
+
FireflyIIIClient.configure do |config|
|
173
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
174
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
175
|
+
end
|
176
|
+
|
177
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
178
|
+
id = 1 # Integer | The ID of the link type.
|
179
|
+
|
180
|
+
begin
|
181
|
+
# Get single a link type.
|
182
|
+
result = api_instance.get_link_type(id)
|
183
|
+
p result
|
184
|
+
rescue FireflyIIIClient::ApiError => e
|
185
|
+
puts "Error when calling LinksApi->get_link_type: #{e}"
|
186
|
+
end
|
187
|
+
```
|
188
|
+
|
189
|
+
#### Using the get_link_type_with_http_info variant
|
190
|
+
|
191
|
+
This returns an Array which contains the response data, status code and headers.
|
192
|
+
|
193
|
+
> <Array(<LinkTypeSingle>, Integer, Hash)> get_link_type_with_http_info(id)
|
194
|
+
|
195
|
+
```ruby
|
196
|
+
|
197
|
+
begin
|
198
|
+
# Get single a link type.
|
199
|
+
data, status_code, headers = api_instance.get_link_type_with_http_info(id)
|
200
|
+
p status_code # => 2xx
|
201
|
+
p headers # => { ... }
|
202
|
+
p data # => <LinkTypeSingle>
|
203
|
+
rescue FireflyIIIClient::ApiError => e
|
204
|
+
puts "Error when calling LinksApi->get_link_type_with_http_info: #{e}"
|
205
|
+
end
|
206
|
+
```
|
207
|
+
|
208
|
+
### Parameters
|
209
|
+
|
210
|
+
| Name | Type | Description | Notes |
|
211
|
+
| ---- | ---- | ----------- | ----- |
|
212
|
+
| **id** | **Integer** | The ID of the link type. | |
|
213
|
+
|
214
|
+
### Return type
|
215
|
+
|
216
|
+
[**LinkTypeSingle**](LinkTypeSingle.md)
|
217
|
+
|
218
|
+
### Authorization
|
219
|
+
|
220
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
221
|
+
|
222
|
+
### HTTP request headers
|
223
|
+
|
224
|
+
- **Content-Type**: Not defined
|
225
|
+
- **Accept**: application/json
|
226
|
+
|
227
|
+
|
228
|
+
## get_transaction_link
|
229
|
+
|
230
|
+
> <TransactionLinkSingle> get_transaction_link(id)
|
231
|
+
|
232
|
+
Get a single link.
|
233
|
+
|
234
|
+
Returns a single link by its ID.
|
235
|
+
|
236
|
+
### Examples
|
237
|
+
|
238
|
+
```ruby
|
239
|
+
require 'time'
|
240
|
+
require 'firefly_iii_client'
|
241
|
+
# setup authorization
|
242
|
+
FireflyIIIClient.configure do |config|
|
243
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
244
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
245
|
+
end
|
246
|
+
|
247
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
248
|
+
id = 1 # Integer | The ID of the transaction link.
|
249
|
+
|
250
|
+
begin
|
251
|
+
# Get a single link.
|
252
|
+
result = api_instance.get_transaction_link(id)
|
253
|
+
p result
|
254
|
+
rescue FireflyIIIClient::ApiError => e
|
255
|
+
puts "Error when calling LinksApi->get_transaction_link: #{e}"
|
256
|
+
end
|
257
|
+
```
|
258
|
+
|
259
|
+
#### Using the get_transaction_link_with_http_info variant
|
260
|
+
|
261
|
+
This returns an Array which contains the response data, status code and headers.
|
262
|
+
|
263
|
+
> <Array(<TransactionLinkSingle>, Integer, Hash)> get_transaction_link_with_http_info(id)
|
264
|
+
|
265
|
+
```ruby
|
266
|
+
|
267
|
+
begin
|
268
|
+
# Get a single link.
|
269
|
+
data, status_code, headers = api_instance.get_transaction_link_with_http_info(id)
|
270
|
+
p status_code # => 2xx
|
271
|
+
p headers # => { ... }
|
272
|
+
p data # => <TransactionLinkSingle>
|
273
|
+
rescue FireflyIIIClient::ApiError => e
|
274
|
+
puts "Error when calling LinksApi->get_transaction_link_with_http_info: #{e}"
|
275
|
+
end
|
276
|
+
```
|
277
|
+
|
278
|
+
### Parameters
|
279
|
+
|
280
|
+
| Name | Type | Description | Notes |
|
281
|
+
| ---- | ---- | ----------- | ----- |
|
282
|
+
| **id** | **Integer** | The ID of the transaction link. | |
|
283
|
+
|
284
|
+
### Return type
|
285
|
+
|
286
|
+
[**TransactionLinkSingle**](TransactionLinkSingle.md)
|
287
|
+
|
288
|
+
### Authorization
|
289
|
+
|
290
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
291
|
+
|
292
|
+
### HTTP request headers
|
293
|
+
|
294
|
+
- **Content-Type**: Not defined
|
295
|
+
- **Accept**: application/json
|
296
|
+
|
297
|
+
|
298
|
+
## list_link_type
|
299
|
+
|
300
|
+
> <LinkTypeArray> list_link_type(opts)
|
301
|
+
|
302
|
+
List all types of links.
|
303
|
+
|
304
|
+
List all the link types the system has. These include the default ones as well as any new ones.
|
305
|
+
|
306
|
+
### Examples
|
307
|
+
|
308
|
+
```ruby
|
309
|
+
require 'time'
|
310
|
+
require 'firefly_iii_client'
|
311
|
+
# setup authorization
|
312
|
+
FireflyIIIClient.configure do |config|
|
313
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
314
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
315
|
+
end
|
316
|
+
|
317
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
318
|
+
opts = {
|
319
|
+
page: 1 # Integer | Page number. The default pagination is 50 items.
|
320
|
+
}
|
321
|
+
|
322
|
+
begin
|
323
|
+
# List all types of links.
|
324
|
+
result = api_instance.list_link_type(opts)
|
325
|
+
p result
|
326
|
+
rescue FireflyIIIClient::ApiError => e
|
327
|
+
puts "Error when calling LinksApi->list_link_type: #{e}"
|
328
|
+
end
|
329
|
+
```
|
330
|
+
|
331
|
+
#### Using the list_link_type_with_http_info variant
|
332
|
+
|
333
|
+
This returns an Array which contains the response data, status code and headers.
|
334
|
+
|
335
|
+
> <Array(<LinkTypeArray>, Integer, Hash)> list_link_type_with_http_info(opts)
|
336
|
+
|
337
|
+
```ruby
|
338
|
+
|
339
|
+
begin
|
340
|
+
# List all types of links.
|
341
|
+
data, status_code, headers = api_instance.list_link_type_with_http_info(opts)
|
342
|
+
p status_code # => 2xx
|
343
|
+
p headers # => { ... }
|
344
|
+
p data # => <LinkTypeArray>
|
345
|
+
rescue FireflyIIIClient::ApiError => e
|
346
|
+
puts "Error when calling LinksApi->list_link_type_with_http_info: #{e}"
|
347
|
+
end
|
348
|
+
```
|
349
|
+
|
350
|
+
### Parameters
|
351
|
+
|
352
|
+
| Name | Type | Description | Notes |
|
353
|
+
| ---- | ---- | ----------- | ----- |
|
354
|
+
| **page** | **Integer** | Page number. The default pagination is 50 items. | [optional] |
|
355
|
+
|
356
|
+
### Return type
|
357
|
+
|
358
|
+
[**LinkTypeArray**](LinkTypeArray.md)
|
359
|
+
|
360
|
+
### Authorization
|
361
|
+
|
362
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
363
|
+
|
364
|
+
### HTTP request headers
|
365
|
+
|
366
|
+
- **Content-Type**: Not defined
|
367
|
+
- **Accept**: application/json
|
368
|
+
|
369
|
+
|
370
|
+
## list_transaction_by_link_type
|
371
|
+
|
372
|
+
> <TransactionArray> list_transaction_by_link_type(id, opts)
|
373
|
+
|
374
|
+
List all transactions under this link type.
|
375
|
+
|
376
|
+
List all transactions under this link type, both the inward and outward transactions.
|
377
|
+
|
378
|
+
### Examples
|
379
|
+
|
380
|
+
```ruby
|
381
|
+
require 'time'
|
382
|
+
require 'firefly_iii_client'
|
383
|
+
# setup authorization
|
384
|
+
FireflyIIIClient.configure do |config|
|
385
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
386
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
390
|
+
id = 1 # Integer | The ID of the link type.
|
391
|
+
opts = {
|
392
|
+
page: 1, # Integer | Page number. The default pagination is per 50 items.
|
393
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the results.
|
394
|
+
_end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the results.
|
395
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned.
|
396
|
+
}
|
397
|
+
|
398
|
+
begin
|
399
|
+
# List all transactions under this link type.
|
400
|
+
result = api_instance.list_transaction_by_link_type(id, opts)
|
401
|
+
p result
|
402
|
+
rescue FireflyIIIClient::ApiError => e
|
403
|
+
puts "Error when calling LinksApi->list_transaction_by_link_type: #{e}"
|
404
|
+
end
|
405
|
+
```
|
406
|
+
|
407
|
+
#### Using the list_transaction_by_link_type_with_http_info variant
|
408
|
+
|
409
|
+
This returns an Array which contains the response data, status code and headers.
|
410
|
+
|
411
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_link_type_with_http_info(id, opts)
|
412
|
+
|
413
|
+
```ruby
|
414
|
+
|
415
|
+
begin
|
416
|
+
# List all transactions under this link type.
|
417
|
+
data, status_code, headers = api_instance.list_transaction_by_link_type_with_http_info(id, opts)
|
418
|
+
p status_code # => 2xx
|
419
|
+
p headers # => { ... }
|
420
|
+
p data # => <TransactionArray>
|
421
|
+
rescue FireflyIIIClient::ApiError => e
|
422
|
+
puts "Error when calling LinksApi->list_transaction_by_link_type_with_http_info: #{e}"
|
423
|
+
end
|
424
|
+
```
|
425
|
+
|
426
|
+
### Parameters
|
427
|
+
|
428
|
+
| Name | Type | Description | Notes |
|
429
|
+
| ---- | ---- | ----------- | ----- |
|
430
|
+
| **id** | **Integer** | The ID of the link type. | |
|
431
|
+
| **page** | **Integer** | Page number. The default pagination is per 50 items. | [optional] |
|
432
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD, to limit the results. | [optional] |
|
433
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD, to limit the results. | [optional] |
|
434
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned. | [optional] |
|
435
|
+
|
436
|
+
### Return type
|
437
|
+
|
438
|
+
[**TransactionArray**](TransactionArray.md)
|
439
|
+
|
440
|
+
### Authorization
|
441
|
+
|
442
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
443
|
+
|
444
|
+
### HTTP request headers
|
445
|
+
|
446
|
+
- **Content-Type**: Not defined
|
447
|
+
- **Accept**: application/json
|
448
|
+
|
449
|
+
|
450
|
+
## list_transaction_link
|
451
|
+
|
452
|
+
> <TransactionLinkArray> list_transaction_link(opts)
|
453
|
+
|
454
|
+
List all transaction links.
|
455
|
+
|
456
|
+
List all the transaction links.
|
457
|
+
|
458
|
+
### Examples
|
459
|
+
|
460
|
+
```ruby
|
461
|
+
require 'time'
|
462
|
+
require 'firefly_iii_client'
|
463
|
+
# setup authorization
|
464
|
+
FireflyIIIClient.configure do |config|
|
465
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
466
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
467
|
+
end
|
468
|
+
|
469
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
470
|
+
opts = {
|
471
|
+
page: 1 # Integer | Page number. The default pagination is per 50 items.
|
472
|
+
}
|
473
|
+
|
474
|
+
begin
|
475
|
+
# List all transaction links.
|
476
|
+
result = api_instance.list_transaction_link(opts)
|
477
|
+
p result
|
478
|
+
rescue FireflyIIIClient::ApiError => e
|
479
|
+
puts "Error when calling LinksApi->list_transaction_link: #{e}"
|
480
|
+
end
|
481
|
+
```
|
482
|
+
|
483
|
+
#### Using the list_transaction_link_with_http_info variant
|
484
|
+
|
485
|
+
This returns an Array which contains the response data, status code and headers.
|
486
|
+
|
487
|
+
> <Array(<TransactionLinkArray>, Integer, Hash)> list_transaction_link_with_http_info(opts)
|
488
|
+
|
489
|
+
```ruby
|
490
|
+
|
491
|
+
begin
|
492
|
+
# List all transaction links.
|
493
|
+
data, status_code, headers = api_instance.list_transaction_link_with_http_info(opts)
|
494
|
+
p status_code # => 2xx
|
495
|
+
p headers # => { ... }
|
496
|
+
p data # => <TransactionLinkArray>
|
497
|
+
rescue FireflyIIIClient::ApiError => e
|
498
|
+
puts "Error when calling LinksApi->list_transaction_link_with_http_info: #{e}"
|
499
|
+
end
|
500
|
+
```
|
501
|
+
|
502
|
+
### Parameters
|
503
|
+
|
504
|
+
| Name | Type | Description | Notes |
|
505
|
+
| ---- | ---- | ----------- | ----- |
|
506
|
+
| **page** | **Integer** | Page number. The default pagination is per 50 items. | [optional] |
|
507
|
+
|
508
|
+
### Return type
|
509
|
+
|
510
|
+
[**TransactionLinkArray**](TransactionLinkArray.md)
|
511
|
+
|
512
|
+
### Authorization
|
513
|
+
|
514
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
515
|
+
|
516
|
+
### HTTP request headers
|
517
|
+
|
518
|
+
- **Content-Type**: Not defined
|
519
|
+
- **Accept**: application/json
|
520
|
+
|
521
|
+
|
522
|
+
## store_link_type
|
523
|
+
|
524
|
+
> <LinkTypeSingle> store_link_type(link_type)
|
525
|
+
|
526
|
+
Create a new link type
|
527
|
+
|
528
|
+
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).
|
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::LinksApi.new
|
542
|
+
link_type = FireflyIIIClient::LinkType.new({ name: 'Paid', inward: 'is (partially) paid for by', outward: '(partially) pays for' }) # LinkType | JSON array with the necessary link type information or key=value pairs. See the model for the exact specifications.
|
543
|
+
|
544
|
+
begin
|
545
|
+
# Create a new link type
|
546
|
+
result = api_instance.store_link_type(link_type)
|
547
|
+
p result
|
548
|
+
rescue FireflyIIIClient::ApiError => e
|
549
|
+
puts "Error when calling LinksApi->store_link_type: #{e}"
|
550
|
+
end
|
551
|
+
```
|
552
|
+
|
553
|
+
#### Using the store_link_type_with_http_info variant
|
554
|
+
|
555
|
+
This returns an Array which contains the response data, status code and headers.
|
556
|
+
|
557
|
+
> <Array(<LinkTypeSingle>, Integer, Hash)> store_link_type_with_http_info(link_type)
|
558
|
+
|
559
|
+
```ruby
|
560
|
+
|
561
|
+
begin
|
562
|
+
# Create a new link type
|
563
|
+
data, status_code, headers = api_instance.store_link_type_with_http_info(link_type)
|
564
|
+
p status_code # => 2xx
|
565
|
+
p headers # => { ... }
|
566
|
+
p data # => <LinkTypeSingle>
|
567
|
+
rescue FireflyIIIClient::ApiError => e
|
568
|
+
puts "Error when calling LinksApi->store_link_type_with_http_info: #{e}"
|
569
|
+
end
|
570
|
+
```
|
571
|
+
|
572
|
+
### Parameters
|
573
|
+
|
574
|
+
| Name | Type | Description | Notes |
|
575
|
+
| ---- | ---- | ----------- | ----- |
|
576
|
+
| **link_type** | [**LinkType**](LinkType.md) | JSON array with the necessary link type information or key=value pairs. See the model for the exact specifications. | |
|
577
|
+
|
578
|
+
### Return type
|
579
|
+
|
580
|
+
[**LinkTypeSingle**](LinkTypeSingle.md)
|
581
|
+
|
582
|
+
### Authorization
|
583
|
+
|
584
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
585
|
+
|
586
|
+
### HTTP request headers
|
587
|
+
|
588
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
589
|
+
- **Accept**: application/json
|
590
|
+
|
591
|
+
|
592
|
+
## store_transaction_link
|
593
|
+
|
594
|
+
> <TransactionLinkSingle> store_transaction_link(transaction_link)
|
595
|
+
|
596
|
+
Create a new link between transactions
|
597
|
+
|
598
|
+
Store a new link between two transactions. For this end point you need the journal_id from a transaction.
|
599
|
+
|
600
|
+
### Examples
|
601
|
+
|
602
|
+
```ruby
|
603
|
+
require 'time'
|
604
|
+
require 'firefly_iii_client'
|
605
|
+
# setup authorization
|
606
|
+
FireflyIIIClient.configure do |config|
|
607
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
608
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
609
|
+
end
|
610
|
+
|
611
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
612
|
+
transaction_link = FireflyIIIClient::TransactionLink.new({ link_type_id: 5, inward_id: 131, outward_id: 131 }) # TransactionLink | JSON array with the necessary link type information or key=value pairs. See the model for the exact specifications.
|
613
|
+
|
614
|
+
begin
|
615
|
+
# Create a new link between transactions
|
616
|
+
result = api_instance.store_transaction_link(transaction_link)
|
617
|
+
p result
|
618
|
+
rescue FireflyIIIClient::ApiError => e
|
619
|
+
puts "Error when calling LinksApi->store_transaction_link: #{e}"
|
620
|
+
end
|
621
|
+
```
|
622
|
+
|
623
|
+
#### Using the store_transaction_link_with_http_info variant
|
624
|
+
|
625
|
+
This returns an Array which contains the response data, status code and headers.
|
626
|
+
|
627
|
+
> <Array(<TransactionLinkSingle>, Integer, Hash)> store_transaction_link_with_http_info(transaction_link)
|
628
|
+
|
629
|
+
```ruby
|
630
|
+
|
631
|
+
begin
|
632
|
+
# Create a new link between transactions
|
633
|
+
data, status_code, headers = api_instance.store_transaction_link_with_http_info(transaction_link)
|
634
|
+
p status_code # => 2xx
|
635
|
+
p headers # => { ... }
|
636
|
+
p data # => <TransactionLinkSingle>
|
637
|
+
rescue FireflyIIIClient::ApiError => e
|
638
|
+
puts "Error when calling LinksApi->store_transaction_link_with_http_info: #{e}"
|
639
|
+
end
|
640
|
+
```
|
641
|
+
|
642
|
+
### Parameters
|
643
|
+
|
644
|
+
| Name | Type | Description | Notes |
|
645
|
+
| ---- | ---- | ----------- | ----- |
|
646
|
+
| **transaction_link** | [**TransactionLink**](TransactionLink.md) | JSON array with the necessary link type information or key=value pairs. See the model for the exact specifications. | |
|
647
|
+
|
648
|
+
### Return type
|
649
|
+
|
650
|
+
[**TransactionLinkSingle**](TransactionLinkSingle.md)
|
651
|
+
|
652
|
+
### Authorization
|
653
|
+
|
654
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
655
|
+
|
656
|
+
### HTTP request headers
|
657
|
+
|
658
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
659
|
+
- **Accept**: application/json
|
660
|
+
|
661
|
+
|
662
|
+
## update_link_type
|
663
|
+
|
664
|
+
> <LinkTypeSingle> update_link_type(id, link_type)
|
665
|
+
|
666
|
+
Update existing link type.
|
667
|
+
|
668
|
+
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.
|
669
|
+
|
670
|
+
### Examples
|
671
|
+
|
672
|
+
```ruby
|
673
|
+
require 'time'
|
674
|
+
require 'firefly_iii_client'
|
675
|
+
# setup authorization
|
676
|
+
FireflyIIIClient.configure do |config|
|
677
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
678
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
679
|
+
end
|
680
|
+
|
681
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
682
|
+
id = 1 # Integer | The ID of the link type.
|
683
|
+
link_type = FireflyIIIClient::LinkType.new({ name: 'Paid', inward: 'is (partially) paid for by', outward: '(partially) pays for' }) # LinkType | JSON array or formdata with updated link type information. See the model for the exact specifications.
|
684
|
+
|
685
|
+
begin
|
686
|
+
# Update existing link type.
|
687
|
+
result = api_instance.update_link_type(id, link_type)
|
688
|
+
p result
|
689
|
+
rescue FireflyIIIClient::ApiError => e
|
690
|
+
puts "Error when calling LinksApi->update_link_type: #{e}"
|
691
|
+
end
|
692
|
+
```
|
693
|
+
|
694
|
+
#### Using the update_link_type_with_http_info variant
|
695
|
+
|
696
|
+
This returns an Array which contains the response data, status code and headers.
|
697
|
+
|
698
|
+
> <Array(<LinkTypeSingle>, Integer, Hash)> update_link_type_with_http_info(id, link_type)
|
699
|
+
|
700
|
+
```ruby
|
701
|
+
|
702
|
+
begin
|
703
|
+
# Update existing link type.
|
704
|
+
data, status_code, headers = api_instance.update_link_type_with_http_info(id, link_type)
|
705
|
+
p status_code # => 2xx
|
706
|
+
p headers # => { ... }
|
707
|
+
p data # => <LinkTypeSingle>
|
708
|
+
rescue FireflyIIIClient::ApiError => e
|
709
|
+
puts "Error when calling LinksApi->update_link_type_with_http_info: #{e}"
|
710
|
+
end
|
711
|
+
```
|
712
|
+
|
713
|
+
### Parameters
|
714
|
+
|
715
|
+
| Name | Type | Description | Notes |
|
716
|
+
| ---- | ---- | ----------- | ----- |
|
717
|
+
| **id** | **Integer** | The ID of the link type. | |
|
718
|
+
| **link_type** | [**LinkType**](LinkType.md) | JSON array or formdata with updated link type information. See the model for the exact specifications. | |
|
719
|
+
|
720
|
+
### Return type
|
721
|
+
|
722
|
+
[**LinkTypeSingle**](LinkTypeSingle.md)
|
723
|
+
|
724
|
+
### Authorization
|
725
|
+
|
726
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
727
|
+
|
728
|
+
### HTTP request headers
|
729
|
+
|
730
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
731
|
+
- **Accept**: application/json
|
732
|
+
|
733
|
+
|
734
|
+
## update_transaction_link
|
735
|
+
|
736
|
+
> <TransactionLinkSingle> update_transaction_link(id, transaction_link)
|
737
|
+
|
738
|
+
Update an existing link between transactions.
|
739
|
+
|
740
|
+
Used to update a single existing link.
|
741
|
+
|
742
|
+
### Examples
|
743
|
+
|
744
|
+
```ruby
|
745
|
+
require 'time'
|
746
|
+
require 'firefly_iii_client'
|
747
|
+
# setup authorization
|
748
|
+
FireflyIIIClient.configure do |config|
|
749
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
750
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
751
|
+
end
|
752
|
+
|
753
|
+
api_instance = FireflyIIIClient::LinksApi.new
|
754
|
+
id = 1 # Integer | The ID of the transaction link.
|
755
|
+
transaction_link = FireflyIIIClient::TransactionLink.new({ link_type_id: 5, inward_id: 131, outward_id: 131 }) # TransactionLink | JSON array or formdata with updated link type information. See the model for the exact specifications.
|
756
|
+
|
757
|
+
begin
|
758
|
+
# Update an existing link between transactions.
|
759
|
+
result = api_instance.update_transaction_link(id, transaction_link)
|
760
|
+
p result
|
761
|
+
rescue FireflyIIIClient::ApiError => e
|
762
|
+
puts "Error when calling LinksApi->update_transaction_link: #{e}"
|
763
|
+
end
|
764
|
+
```
|
765
|
+
|
766
|
+
#### Using the update_transaction_link_with_http_info variant
|
767
|
+
|
768
|
+
This returns an Array which contains the response data, status code and headers.
|
769
|
+
|
770
|
+
> <Array(<TransactionLinkSingle>, Integer, Hash)> update_transaction_link_with_http_info(id, transaction_link)
|
771
|
+
|
772
|
+
```ruby
|
773
|
+
|
774
|
+
begin
|
775
|
+
# Update an existing link between transactions.
|
776
|
+
data, status_code, headers = api_instance.update_transaction_link_with_http_info(id, transaction_link)
|
777
|
+
p status_code # => 2xx
|
778
|
+
p headers # => { ... }
|
779
|
+
p data # => <TransactionLinkSingle>
|
780
|
+
rescue FireflyIIIClient::ApiError => e
|
781
|
+
puts "Error when calling LinksApi->update_transaction_link_with_http_info: #{e}"
|
782
|
+
end
|
783
|
+
```
|
784
|
+
|
785
|
+
### Parameters
|
786
|
+
|
787
|
+
| Name | Type | Description | Notes |
|
788
|
+
| ---- | ---- | ----------- | ----- |
|
789
|
+
| **id** | **Integer** | The ID of the transaction link. | |
|
790
|
+
| **transaction_link** | [**TransactionLink**](TransactionLink.md) | JSON array or formdata with updated link type information. See the model for the exact specifications. | |
|
791
|
+
|
792
|
+
### Return type
|
793
|
+
|
794
|
+
[**TransactionLinkSingle**](TransactionLinkSingle.md)
|
795
|
+
|
796
|
+
### Authorization
|
797
|
+
|
798
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
799
|
+
|
800
|
+
### HTTP request headers
|
801
|
+
|
802
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
803
|
+
- **Accept**: application/json
|
804
|
+
|