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/SummaryApi.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# OpenapiClient::SummaryApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_basic_summary**](SummaryApi.md#get_basic_summary) | **GET** /api/v1/summary/basic | Returns basic sums of the users data. |
|
8
|
+
|
9
|
+
|
10
|
+
## get_basic_summary
|
11
|
+
|
12
|
+
> <Array<BasicSummaryEntry>> get_basic_summary(start, _end, opts)
|
13
|
+
|
14
|
+
Returns basic sums of the users data.
|
15
|
+
|
16
|
+
Returns basic sums of the users data, like the net worth, spent and earned amounts. It is multi-currency, and is in Firefly III to populate the dashboard.
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'firefly_iii_client'
|
23
|
+
# setup authorization
|
24
|
+
FireflyIIIClient.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = FireflyIIIClient::SummaryApi.new
|
30
|
+
start = Date.parse('2013-10-20') # Date | A date formatted YYYY-MM-DD.
|
31
|
+
_end = Date.parse('2013-10-20') # Date | A date formatted YYYY-MM-DD.
|
32
|
+
opts = {
|
33
|
+
currency_code: 'currency_code_example' # String | A currency code like EUR or USD, to filter the result.
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
# Returns basic sums of the users data.
|
38
|
+
result = api_instance.get_basic_summary(start, _end, opts)
|
39
|
+
p result
|
40
|
+
rescue FireflyIIIClient::ApiError => e
|
41
|
+
puts "Error when calling SummaryApi->get_basic_summary: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Using the get_basic_summary_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
48
|
+
|
49
|
+
> <Array(<Array<BasicSummaryEntry>>, Integer, Hash)> get_basic_summary_with_http_info(start, _end, opts)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
|
53
|
+
begin
|
54
|
+
# Returns basic sums of the users data.
|
55
|
+
data, status_code, headers = api_instance.get_basic_summary_with_http_info(start, _end, opts)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <Array<BasicSummaryEntry>>
|
59
|
+
rescue FireflyIIIClient::ApiError => e
|
60
|
+
puts "Error when calling SummaryApi->get_basic_summary_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. | |
|
69
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. | |
|
70
|
+
| **currency_code** | **String** | A currency code like EUR or USD, to filter the result. | [optional] |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**Array<BasicSummaryEntry>**](BasicSummaryEntry.md)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: Not defined
|
83
|
+
- **Accept**: application/json
|
84
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::SystemConfiguration
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**SystemConfigurationData**](SystemConfigurationData.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::SystemConfiguration.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::SystemConfigurationData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **is_demo_site** | **Boolean** | | [optional] |
|
8
|
+
| **permission_update_check** | **Integer** | If the user has given permission to check for updates. - null = never asked. - -1 = never asked. - 0 = no permission. - 1 = permission | [optional] |
|
9
|
+
| **last_update_check** | **Time** | | [optional] |
|
10
|
+
| **single_user_mode** | **Boolean** | Whether other users can register. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::SystemConfigurationData.new(
|
18
|
+
is_demo_site: true,
|
19
|
+
permission_update_check: -1,
|
20
|
+
last_update_check: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
21
|
+
single_user_mode : true
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/SystemInfo.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::SystemInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**SystemInfoData**](SystemInfoData.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::SystemInfo.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# OpenapiClient::SystemInfoData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **version** | **String** | | |
|
8
|
+
| **api_version** | **String** | | |
|
9
|
+
| **php_version** | **String** | | |
|
10
|
+
| **os** | **String** | | |
|
11
|
+
| **driver** | **String** | | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'firefly_iii_client'
|
17
|
+
|
18
|
+
instance = FireflyIIIClient::SystemInfoData.new(
|
19
|
+
version: 4.8.0,
|
20
|
+
api_version: 0.10. 0,
|
21
|
+
php_version : 7.2,
|
22
|
+
os : Linux vagrant - ubuntu - trusty - 64,
|
23
|
+
driver: mysql
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/TagArray.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::TagArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<TagRead>**](TagRead.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::TagArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/TagCloud.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::TagCloud
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tags** | [**Array<TagCloudTag>**](TagCloudTag.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::TagCloud.new(
|
15
|
+
tags: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/TagCloudTag.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::TagCloudTag
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tag** | **String** | The tag | [optional] |
|
8
|
+
| **id** | **Integer** | ID of the tag | [optional] |
|
9
|
+
| **size** | **Float** | The total amount of money related to this tag. There is no currency information available, and this is a basic sum of all amounts added together. | [optional] |
|
10
|
+
| **relative** | **Float** | A number between 0 and 1. 1 is given to the largest tag in the tag cloud, and 0 to the smallest. The rest are given a number between 0 and 1, related to their size in comparison to the largest tag. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::TagCloudTag.new(
|
18
|
+
tag: expensive,
|
19
|
+
id: 2,
|
20
|
+
size: 24.56,
|
21
|
+
relative: 0.345
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/TagModel.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# OpenapiClient::TagModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional][readonly] |
|
8
|
+
| **updated_at** | **Time** | | [optional][readonly] |
|
9
|
+
| **tag** | **String** | The tag | |
|
10
|
+
| **date** | **Date** | The date to which the tag is applicable. | [optional] |
|
11
|
+
| **description** | **String** | | [optional] |
|
12
|
+
| **latitude** | **Float** | Latitude of the tag's location, if applicable. Can be used to draw a map. | [optional] |
|
13
|
+
| **longitude** | **Float** | Latitude of the tag's location, if applicable. Can be used to draw a map. | [optional] |
|
14
|
+
| **zoom_level** | **Integer** | Zoom level for the map, if drawn. This to set the box right. Unfortunately this is a proprietary value because each map provider has different zoom levels. | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'firefly_iii_client'
|
20
|
+
|
21
|
+
instance = FireflyIIIClient::TagModel.new(
|
22
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
23
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
24
|
+
tag : expensive,
|
25
|
+
date : Mon Sep 17 00 : 00 : 00 GMT 2018,
|
26
|
+
description: Tag
|
27
|
+
for expensive stuff
|
28
|
+
,
|
29
|
+
latitude : 51.983333,
|
30
|
+
longitude : 5.916667,
|
31
|
+
zoom_level : 6
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
data/docs/TagRead.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::TagRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**TagModel**](TagModel.md) | | [optional] |
|
10
|
+
| **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::TagRead.new(
|
18
|
+
type: tags,
|
19
|
+
id: 2,
|
20
|
+
attributes: null,
|
21
|
+
links: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/TagSingle.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::TagSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**TagRead**](TagRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::TagSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/TagsApi.md
ADDED
@@ -0,0 +1,523 @@
|
|
1
|
+
# OpenapiClient::TagsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_tag**](TagsApi.md#delete_tag) | **DELETE** /api/v1/tags/{tag} | Delete an tag. |
|
8
|
+
| [**get_tag**](TagsApi.md#get_tag) | **GET** /api/v1/tags/{tag} | Get a single tag. |
|
9
|
+
| [**get_tag_cloud**](TagsApi.md#get_tag_cloud) | **GET** /api/v1/tag-cloud | Returns a basic tag cloud. |
|
10
|
+
| [**list_tag**](TagsApi.md#list_tag) | **GET** /api/v1/tags | List all tags. |
|
11
|
+
| [**list_transaction_by_tag**](TagsApi.md#list_transaction_by_tag) | **GET** /api/v1/tags/{tag}/transactions | List all transactions with this tag. |
|
12
|
+
| [**store_tag**](TagsApi.md#store_tag) | **POST** /api/v1/tags | Store a new tag |
|
13
|
+
| [**update_tag**](TagsApi.md#update_tag) | **PUT** /api/v1/tags/{tag} | Update existing tag. |
|
14
|
+
|
15
|
+
|
16
|
+
## delete_tag
|
17
|
+
|
18
|
+
> delete_tag(tag)
|
19
|
+
|
20
|
+
Delete an tag.
|
21
|
+
|
22
|
+
Delete an tag.
|
23
|
+
|
24
|
+
### Examples
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'time'
|
28
|
+
require 'firefly_iii_client'
|
29
|
+
# setup authorization
|
30
|
+
FireflyIIIClient.configure do |config|
|
31
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
32
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
36
|
+
tag = 'groceries' # String | Either the tag itself or the tag ID.
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Delete an tag.
|
40
|
+
api_instance.delete_tag(tag)
|
41
|
+
rescue FireflyIIIClient::ApiError => e
|
42
|
+
puts "Error when calling TagsApi->delete_tag: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the delete_tag_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
49
|
+
|
50
|
+
> <Array(nil, Integer, Hash)> delete_tag_with_http_info(tag)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
|
54
|
+
begin
|
55
|
+
# Delete an tag.
|
56
|
+
data, status_code, headers = api_instance.delete_tag_with_http_info(tag)
|
57
|
+
p status_code # => 2xx
|
58
|
+
p headers # => { ... }
|
59
|
+
p data # => nil
|
60
|
+
rescue FireflyIIIClient::ApiError => e
|
61
|
+
puts "Error when calling TagsApi->delete_tag_with_http_info: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
| Name | Type | Description | Notes |
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
69
|
+
| **tag** | **String** | Either the tag itself or the tag ID. | |
|
70
|
+
|
71
|
+
### Return type
|
72
|
+
|
73
|
+
nil (empty response body)
|
74
|
+
|
75
|
+
### Authorization
|
76
|
+
|
77
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
78
|
+
|
79
|
+
### HTTP request headers
|
80
|
+
|
81
|
+
- **Content-Type**: Not defined
|
82
|
+
- **Accept**: Not defined
|
83
|
+
|
84
|
+
|
85
|
+
## get_tag
|
86
|
+
|
87
|
+
> <TagSingle> get_tag(tag, opts)
|
88
|
+
|
89
|
+
Get a single tag.
|
90
|
+
|
91
|
+
Get a single tag.
|
92
|
+
|
93
|
+
### Examples
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
require 'time'
|
97
|
+
require 'firefly_iii_client'
|
98
|
+
# setup authorization
|
99
|
+
FireflyIIIClient.configure do |config|
|
100
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
101
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
102
|
+
end
|
103
|
+
|
104
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
105
|
+
tag = 'groceries' # String | Either the tag itself or the tag ID.
|
106
|
+
opts = {
|
107
|
+
page: 56 # Integer | Page number
|
108
|
+
}
|
109
|
+
|
110
|
+
begin
|
111
|
+
# Get a single tag.
|
112
|
+
result = api_instance.get_tag(tag, opts)
|
113
|
+
p result
|
114
|
+
rescue FireflyIIIClient::ApiError => e
|
115
|
+
puts "Error when calling TagsApi->get_tag: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
#### Using the get_tag_with_http_info variant
|
120
|
+
|
121
|
+
This returns an Array which contains the response data, status code and headers.
|
122
|
+
|
123
|
+
> <Array(<TagSingle>, Integer, Hash)> get_tag_with_http_info(tag, opts)
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
|
127
|
+
begin
|
128
|
+
# Get a single tag.
|
129
|
+
data, status_code, headers = api_instance.get_tag_with_http_info(tag, opts)
|
130
|
+
p status_code # => 2xx
|
131
|
+
p headers # => { ... }
|
132
|
+
p data # => <TagSingle>
|
133
|
+
rescue FireflyIIIClient::ApiError => e
|
134
|
+
puts "Error when calling TagsApi->get_tag_with_http_info: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description | Notes |
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
142
|
+
| **tag** | **String** | Either the tag itself or the tag ID. | |
|
143
|
+
| **page** | **Integer** | Page number | [optional] |
|
144
|
+
|
145
|
+
### Return type
|
146
|
+
|
147
|
+
[**TagSingle**](TagSingle.md)
|
148
|
+
|
149
|
+
### Authorization
|
150
|
+
|
151
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
152
|
+
|
153
|
+
### HTTP request headers
|
154
|
+
|
155
|
+
- **Content-Type**: Not defined
|
156
|
+
- **Accept**: application/json
|
157
|
+
|
158
|
+
|
159
|
+
## get_tag_cloud
|
160
|
+
|
161
|
+
> <TagCloud> get_tag_cloud(start, _end)
|
162
|
+
|
163
|
+
Returns a basic tag cloud.
|
164
|
+
|
165
|
+
Returns a list of tags, which can be used to draw a basic tag cloud.
|
166
|
+
|
167
|
+
### Examples
|
168
|
+
|
169
|
+
```ruby
|
170
|
+
require 'time'
|
171
|
+
require 'firefly_iii_client'
|
172
|
+
# setup authorization
|
173
|
+
FireflyIIIClient.configure do |config|
|
174
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
175
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
176
|
+
end
|
177
|
+
|
178
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
179
|
+
start = Date.parse('2013-10-20') # Date | A date formatted YYYY-MM-DD.
|
180
|
+
_end = Date.parse('2013-10-20') # Date | A date formatted YYYY-MM-DD.
|
181
|
+
|
182
|
+
begin
|
183
|
+
# Returns a basic tag cloud.
|
184
|
+
result = api_instance.get_tag_cloud(start, _end)
|
185
|
+
p result
|
186
|
+
rescue FireflyIIIClient::ApiError => e
|
187
|
+
puts "Error when calling TagsApi->get_tag_cloud: #{e}"
|
188
|
+
end
|
189
|
+
```
|
190
|
+
|
191
|
+
#### Using the get_tag_cloud_with_http_info variant
|
192
|
+
|
193
|
+
This returns an Array which contains the response data, status code and headers.
|
194
|
+
|
195
|
+
> <Array(<TagCloud>, Integer, Hash)> get_tag_cloud_with_http_info(start, _end)
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
|
199
|
+
begin
|
200
|
+
# Returns a basic tag cloud.
|
201
|
+
data, status_code, headers = api_instance.get_tag_cloud_with_http_info(start, _end)
|
202
|
+
p status_code # => 2xx
|
203
|
+
p headers # => { ... }
|
204
|
+
p data # => <TagCloud>
|
205
|
+
rescue FireflyIIIClient::ApiError => e
|
206
|
+
puts "Error when calling TagsApi->get_tag_cloud_with_http_info: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
| Name | Type | Description | Notes |
|
213
|
+
| ---- | ---- | ----------- | ----- |
|
214
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. | |
|
215
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. | |
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
[**TagCloud**](TagCloud.md)
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: Not defined
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
## list_tag
|
232
|
+
|
233
|
+
> <TagArray> list_tag(opts)
|
234
|
+
|
235
|
+
List all tags.
|
236
|
+
|
237
|
+
List all of the user's tags.
|
238
|
+
|
239
|
+
### Examples
|
240
|
+
|
241
|
+
```ruby
|
242
|
+
require 'time'
|
243
|
+
require 'firefly_iii_client'
|
244
|
+
# setup authorization
|
245
|
+
FireflyIIIClient.configure do |config|
|
246
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
247
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
248
|
+
end
|
249
|
+
|
250
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
251
|
+
opts = {
|
252
|
+
page: 56 # Integer | Page number
|
253
|
+
}
|
254
|
+
|
255
|
+
begin
|
256
|
+
# List all tags.
|
257
|
+
result = api_instance.list_tag(opts)
|
258
|
+
p result
|
259
|
+
rescue FireflyIIIClient::ApiError => e
|
260
|
+
puts "Error when calling TagsApi->list_tag: #{e}"
|
261
|
+
end
|
262
|
+
```
|
263
|
+
|
264
|
+
#### Using the list_tag_with_http_info variant
|
265
|
+
|
266
|
+
This returns an Array which contains the response data, status code and headers.
|
267
|
+
|
268
|
+
> <Array(<TagArray>, Integer, Hash)> list_tag_with_http_info(opts)
|
269
|
+
|
270
|
+
```ruby
|
271
|
+
|
272
|
+
begin
|
273
|
+
# List all tags.
|
274
|
+
data, status_code, headers = api_instance.list_tag_with_http_info(opts)
|
275
|
+
p status_code # => 2xx
|
276
|
+
p headers # => { ... }
|
277
|
+
p data # => <TagArray>
|
278
|
+
rescue FireflyIIIClient::ApiError => e
|
279
|
+
puts "Error when calling TagsApi->list_tag_with_http_info: #{e}"
|
280
|
+
end
|
281
|
+
```
|
282
|
+
|
283
|
+
### Parameters
|
284
|
+
|
285
|
+
| Name | Type | Description | Notes |
|
286
|
+
| ---- | ---- | ----------- | ----- |
|
287
|
+
| **page** | **Integer** | Page number | [optional] |
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**TagArray**](TagArray.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: Not defined
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
## list_transaction_by_tag
|
304
|
+
|
305
|
+
> <TransactionArray> list_transaction_by_tag(tag, opts)
|
306
|
+
|
307
|
+
List all transactions with this tag.
|
308
|
+
|
309
|
+
List all transactions with this tag.
|
310
|
+
|
311
|
+
### Examples
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
require 'time'
|
315
|
+
require 'firefly_iii_client'
|
316
|
+
# setup authorization
|
317
|
+
FireflyIIIClient.configure do |config|
|
318
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
319
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
323
|
+
tag = 'groceries' # String | Either the tag itself or the tag ID.
|
324
|
+
opts = {
|
325
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
326
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive).
|
327
|
+
_end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive).
|
328
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned.
|
329
|
+
}
|
330
|
+
|
331
|
+
begin
|
332
|
+
# List all transactions with this tag.
|
333
|
+
result = api_instance.list_transaction_by_tag(tag, opts)
|
334
|
+
p result
|
335
|
+
rescue FireflyIIIClient::ApiError => e
|
336
|
+
puts "Error when calling TagsApi->list_transaction_by_tag: #{e}"
|
337
|
+
end
|
338
|
+
```
|
339
|
+
|
340
|
+
#### Using the list_transaction_by_tag_with_http_info variant
|
341
|
+
|
342
|
+
This returns an Array which contains the response data, status code and headers.
|
343
|
+
|
344
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_tag_with_http_info(tag, opts)
|
345
|
+
|
346
|
+
```ruby
|
347
|
+
|
348
|
+
begin
|
349
|
+
# List all transactions with this tag.
|
350
|
+
data, status_code, headers = api_instance.list_transaction_by_tag_with_http_info(tag, opts)
|
351
|
+
p status_code # => 2xx
|
352
|
+
p headers # => { ... }
|
353
|
+
p data # => <TransactionArray>
|
354
|
+
rescue FireflyIIIClient::ApiError => e
|
355
|
+
puts "Error when calling TagsApi->list_transaction_by_tag_with_http_info: #{e}"
|
356
|
+
end
|
357
|
+
```
|
358
|
+
|
359
|
+
### Parameters
|
360
|
+
|
361
|
+
| Name | Type | Description | Notes |
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
363
|
+
| **tag** | **String** | Either the tag itself or the tag ID. | |
|
364
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
365
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. This is the start date of the selected range (inclusive). | [optional] |
|
366
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. This is the end date of the selected range (inclusive). | [optional] |
|
367
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned. | [optional] |
|
368
|
+
|
369
|
+
### Return type
|
370
|
+
|
371
|
+
[**TransactionArray**](TransactionArray.md)
|
372
|
+
|
373
|
+
### Authorization
|
374
|
+
|
375
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
376
|
+
|
377
|
+
### HTTP request headers
|
378
|
+
|
379
|
+
- **Content-Type**: Not defined
|
380
|
+
- **Accept**: application/json
|
381
|
+
|
382
|
+
|
383
|
+
## store_tag
|
384
|
+
|
385
|
+
> <TagSingle> store_tag(tag_model)
|
386
|
+
|
387
|
+
Store a new tag
|
388
|
+
|
389
|
+
Creates a new tag. The data required can be submitted as a JSON body or as a list of parameters.
|
390
|
+
|
391
|
+
### Examples
|
392
|
+
|
393
|
+
```ruby
|
394
|
+
require 'time'
|
395
|
+
require 'firefly_iii_client'
|
396
|
+
# setup authorization
|
397
|
+
FireflyIIIClient.configure do |config|
|
398
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
399
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
400
|
+
end
|
401
|
+
|
402
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
403
|
+
tag_model = FireflyIIIClient::TagModel.new({ tag: 'expensive' }) # TagModel | JSON array or key=value pairs with the necessary tag information. See the model for the exact specifications.
|
404
|
+
|
405
|
+
begin
|
406
|
+
# Store a new tag
|
407
|
+
result = api_instance.store_tag(tag_model)
|
408
|
+
p result
|
409
|
+
rescue FireflyIIIClient::ApiError => e
|
410
|
+
puts "Error when calling TagsApi->store_tag: #{e}"
|
411
|
+
end
|
412
|
+
```
|
413
|
+
|
414
|
+
#### Using the store_tag_with_http_info variant
|
415
|
+
|
416
|
+
This returns an Array which contains the response data, status code and headers.
|
417
|
+
|
418
|
+
> <Array(<TagSingle>, Integer, Hash)> store_tag_with_http_info(tag_model)
|
419
|
+
|
420
|
+
```ruby
|
421
|
+
|
422
|
+
begin
|
423
|
+
# Store a new tag
|
424
|
+
data, status_code, headers = api_instance.store_tag_with_http_info(tag_model)
|
425
|
+
p status_code # => 2xx
|
426
|
+
p headers # => { ... }
|
427
|
+
p data # => <TagSingle>
|
428
|
+
rescue FireflyIIIClient::ApiError => e
|
429
|
+
puts "Error when calling TagsApi->store_tag_with_http_info: #{e}"
|
430
|
+
end
|
431
|
+
```
|
432
|
+
|
433
|
+
### Parameters
|
434
|
+
|
435
|
+
| Name | Type | Description | Notes |
|
436
|
+
| ---- | ---- | ----------- | ----- |
|
437
|
+
| **tag_model** | [**TagModel**](TagModel.md) | JSON array or key=value pairs with the necessary tag information. See the model for the exact specifications. | |
|
438
|
+
|
439
|
+
### Return type
|
440
|
+
|
441
|
+
[**TagSingle**](TagSingle.md)
|
442
|
+
|
443
|
+
### Authorization
|
444
|
+
|
445
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
446
|
+
|
447
|
+
### HTTP request headers
|
448
|
+
|
449
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
450
|
+
- **Accept**: application/json
|
451
|
+
|
452
|
+
|
453
|
+
## update_tag
|
454
|
+
|
455
|
+
> <TagSingle> update_tag(tag, tag_model)
|
456
|
+
|
457
|
+
Update existing tag.
|
458
|
+
|
459
|
+
Update existing tag.
|
460
|
+
|
461
|
+
### Examples
|
462
|
+
|
463
|
+
```ruby
|
464
|
+
require 'time'
|
465
|
+
require 'firefly_iii_client'
|
466
|
+
# setup authorization
|
467
|
+
FireflyIIIClient.configure do |config|
|
468
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
469
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
470
|
+
end
|
471
|
+
|
472
|
+
api_instance = FireflyIIIClient::TagsApi.new
|
473
|
+
tag = 'groceries' # String | Either the tag itself or the tag ID.
|
474
|
+
tag_model = FireflyIIIClient::TagModel.new({ tag: 'expensive' }) # TagModel | JSON array with updated tag information. See the model for the exact specifications.
|
475
|
+
|
476
|
+
begin
|
477
|
+
# Update existing tag.
|
478
|
+
result = api_instance.update_tag(tag, tag_model)
|
479
|
+
p result
|
480
|
+
rescue FireflyIIIClient::ApiError => e
|
481
|
+
puts "Error when calling TagsApi->update_tag: #{e}"
|
482
|
+
end
|
483
|
+
```
|
484
|
+
|
485
|
+
#### Using the update_tag_with_http_info variant
|
486
|
+
|
487
|
+
This returns an Array which contains the response data, status code and headers.
|
488
|
+
|
489
|
+
> <Array(<TagSingle>, Integer, Hash)> update_tag_with_http_info(tag, tag_model)
|
490
|
+
|
491
|
+
```ruby
|
492
|
+
|
493
|
+
begin
|
494
|
+
# Update existing tag.
|
495
|
+
data, status_code, headers = api_instance.update_tag_with_http_info(tag, tag_model)
|
496
|
+
p status_code # => 2xx
|
497
|
+
p headers # => { ... }
|
498
|
+
p data # => <TagSingle>
|
499
|
+
rescue FireflyIIIClient::ApiError => e
|
500
|
+
puts "Error when calling TagsApi->update_tag_with_http_info: #{e}"
|
501
|
+
end
|
502
|
+
```
|
503
|
+
|
504
|
+
### Parameters
|
505
|
+
|
506
|
+
| Name | Type | Description | Notes |
|
507
|
+
| ---- | ---- | ----------- | ----- |
|
508
|
+
| **tag** | **String** | Either the tag itself or the tag ID. | |
|
509
|
+
| **tag_model** | [**TagModel**](TagModel.md) | JSON array with updated tag information. See the model for the exact specifications. | |
|
510
|
+
|
511
|
+
### Return type
|
512
|
+
|
513
|
+
[**TagSingle**](TagSingle.md)
|
514
|
+
|
515
|
+
### Authorization
|
516
|
+
|
517
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
518
|
+
|
519
|
+
### HTTP request headers
|
520
|
+
|
521
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
522
|
+
- **Accept**: application/json
|
523
|
+
|