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/Rule.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# OpenapiClient::Rule
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional][readonly] |
|
8
|
+
| **updated_at** | **Time** | | [optional][readonly] |
|
9
|
+
| **title** | **String** | | |
|
10
|
+
| **description** | **String** | | [optional] |
|
11
|
+
| **rule_group_id** | **Integer** | ID of the rule group under which the rule must be stored. Either this field or rule_group_title is mandatory. | |
|
12
|
+
| **rule_group_title** | **String** | Title of the rule group under which the rule must be stored. Either this field or rule_group_id is mandatory. | [optional] |
|
13
|
+
| **order** | **Integer** | | [optional][readonly] |
|
14
|
+
| **trigger** | **String** | Which action is necessary for the rule to fire? Use either store-journal or update-journal. | |
|
15
|
+
| **active** | **Boolean** | Whether or not the rule is even active. Default is true. | [optional] |
|
16
|
+
| **strict** | **Boolean** | If the rule is set to be strict, ALL triggers must hit in order for the rule to fire. Otherwise, just one is enough. Default value is true. | [optional] |
|
17
|
+
| **stop_processing** | **Boolean** | If this value is true and the rule is triggered, other rules after this one in the group will be skipped. Default value is false. | [optional] |
|
18
|
+
| **triggers** | [**Array<RuleTrigger>**](RuleTrigger.md) | | |
|
19
|
+
| **actions** | [**Array<RuleAction>**](RuleAction.md) | | |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'firefly_iii_client'
|
25
|
+
|
26
|
+
instance = FireflyIIIClient::Rule.new(
|
27
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
28
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
29
|
+
title : First rule title.,
|
30
|
+
description: First rule description,
|
31
|
+
rule_group_id: 81,
|
32
|
+
rule_group_title: New rule group,
|
33
|
+
order: 5,
|
34
|
+
trigger: store - journal,
|
35
|
+
active: true,
|
36
|
+
strict: true,
|
37
|
+
stop_processing: false,
|
38
|
+
triggers: null,
|
39
|
+
actions: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
data/docs/RuleAction.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# OpenapiClient::RuleAction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional][readonly] |
|
8
|
+
| **created_at** | **Time** | | [optional][readonly] |
|
9
|
+
| **updated_at** | **Time** | | [optional][readonly] |
|
10
|
+
| **type** | **String** | The type of thing this action will do. A limited set is possible. | |
|
11
|
+
| **value** | **String** | The accompanying value the action will set, change or update. Can be empty, but for some types this value is mandatory. | |
|
12
|
+
| **order** | **Integer** | Order of the action | [optional] |
|
13
|
+
| **active** | **Boolean** | If the action is active. | [optional] |
|
14
|
+
| **stop_processing** | **Boolean** | When true, other actions will not be fired after this action has fired. | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'firefly_iii_client'
|
20
|
+
|
21
|
+
instance = FireflyIIIClient::RuleAction.new(
|
22
|
+
id: 2,
|
23
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
24
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
25
|
+
type : set_category,
|
26
|
+
value : Daily groceries,
|
27
|
+
order: 5,
|
28
|
+
active: true,
|
29
|
+
stop_processing: false
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/RuleArray.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::RuleArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<RuleRead>**](RuleRead.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::RuleArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/RuleGroup.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# OpenapiClient::RuleGroup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional][readonly] |
|
8
|
+
| **updated_at** | **Time** | | [optional][readonly] |
|
9
|
+
| **title** | **String** | | |
|
10
|
+
| **description** | **String** | | [optional] |
|
11
|
+
| **order** | **Integer** | | [optional][readonly] |
|
12
|
+
| **active** | **Boolean** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'firefly_iii_client'
|
18
|
+
|
19
|
+
instance = FireflyIIIClient::RuleGroup.new(
|
20
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
21
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
22
|
+
title : Default rule group,
|
23
|
+
description: Description of this rule group,
|
24
|
+
order: 4,
|
25
|
+
active: true
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::RuleGroupArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<RuleGroupRead>**](RuleGroupRead.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::RuleGroupArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::RuleGroupRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**RuleGroup**](RuleGroup.md) | | [optional] |
|
10
|
+
| **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::RuleGroupRead.new(
|
18
|
+
type: rules_group,
|
19
|
+
id: 2,
|
20
|
+
attributes: null,
|
21
|
+
links: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::RuleGroupSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**RuleGroupRead**](RuleGroupRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::RuleGroupSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,603 @@
|
|
1
|
+
# OpenapiClient::RuleGroupsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_rule_group**](RuleGroupsApi.md#delete_rule_group) | **DELETE** /api/v1/rule_groups/{id} | Delete a rule group. |
|
8
|
+
| [**fire_rule_group**](RuleGroupsApi.md#fire_rule_group) | **POST** /api/v1/rule_groups/{id}/trigger | Fire the rule group on your transactions. |
|
9
|
+
| [**get_rule_group**](RuleGroupsApi.md#get_rule_group) | **GET** /api/v1/rule_groups/{id} | Get a single rule group. |
|
10
|
+
| [**list_rule_by_group**](RuleGroupsApi.md#list_rule_by_group) | **GET** /api/v1/rule_groups/{id}/rules | List rules in this rule group. |
|
11
|
+
| [**list_rule_group**](RuleGroupsApi.md#list_rule_group) | **GET** /api/v1/rule_groups | List all rule groups. |
|
12
|
+
| [**store_rule_group**](RuleGroupsApi.md#store_rule_group) | **POST** /api/v1/rule_groups | Store a new rule group. |
|
13
|
+
| [**test_rule_group**](RuleGroupsApi.md#test_rule_group) | **GET** /api/v1/rule_groups/{id}/test | Test which transactions would be hit by the rule group. No changes will be made. |
|
14
|
+
| [**update_rule_group**](RuleGroupsApi.md#update_rule_group) | **PUT** /api/v1/rule_groups/{id} | Update existing rule group. |
|
15
|
+
|
16
|
+
|
17
|
+
## delete_rule_group
|
18
|
+
|
19
|
+
> delete_rule_group(id)
|
20
|
+
|
21
|
+
Delete a rule group.
|
22
|
+
|
23
|
+
Delete a rule group.
|
24
|
+
|
25
|
+
### Examples
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'time'
|
29
|
+
require 'firefly_iii_client'
|
30
|
+
# setup authorization
|
31
|
+
FireflyIIIClient.configure do |config|
|
32
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
33
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
37
|
+
id = 1 # Integer | The ID of the rule group.
|
38
|
+
|
39
|
+
begin
|
40
|
+
# Delete a rule group.
|
41
|
+
api_instance.delete_rule_group(id)
|
42
|
+
rescue FireflyIIIClient::ApiError => e
|
43
|
+
puts "Error when calling RuleGroupsApi->delete_rule_group: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
#### Using the delete_rule_group_with_http_info variant
|
48
|
+
|
49
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
50
|
+
|
51
|
+
> <Array(nil, Integer, Hash)> delete_rule_group_with_http_info(id)
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
|
55
|
+
begin
|
56
|
+
# Delete a rule group.
|
57
|
+
data, status_code, headers = api_instance.delete_rule_group_with_http_info(id)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => nil
|
61
|
+
rescue FireflyIIIClient::ApiError => e
|
62
|
+
puts "Error when calling RuleGroupsApi->delete_rule_group_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **id** | **Integer** | The ID of the rule group. | |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
nil (empty response body)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: Not defined
|
83
|
+
- **Accept**: Not defined
|
84
|
+
|
85
|
+
|
86
|
+
## fire_rule_group
|
87
|
+
|
88
|
+
> fire_rule_group(id, opts)
|
89
|
+
|
90
|
+
Fire the rule group on your transactions.
|
91
|
+
|
92
|
+
Fire the rule group on your transactions. Changes will be made by the rules in the rule group! Limit the result if you want to.
|
93
|
+
|
94
|
+
### Examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
require 'time'
|
98
|
+
require 'firefly_iii_client'
|
99
|
+
# setup authorization
|
100
|
+
FireflyIIIClient.configure do |config|
|
101
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
102
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
106
|
+
id = 1 # Integer | The ID of the rule group.
|
107
|
+
opts = {
|
108
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. Both the start date and the end date must be present.
|
109
|
+
_end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. Both the start date and the end date must be present.
|
110
|
+
accounts: '1,2,3' # String | Limit the testing of the rule group to these asset accounts. Only asset accounts will be accepted. Other types will be silently dropped.
|
111
|
+
}
|
112
|
+
|
113
|
+
begin
|
114
|
+
# Fire the rule group on your transactions.
|
115
|
+
api_instance.fire_rule_group(id, opts)
|
116
|
+
rescue FireflyIIIClient::ApiError => e
|
117
|
+
puts "Error when calling RuleGroupsApi->fire_rule_group: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
#### Using the fire_rule_group_with_http_info variant
|
122
|
+
|
123
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
124
|
+
|
125
|
+
> <Array(nil, Integer, Hash)> fire_rule_group_with_http_info(id, opts)
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
|
129
|
+
begin
|
130
|
+
# Fire the rule group on your transactions.
|
131
|
+
data, status_code, headers = api_instance.fire_rule_group_with_http_info(id, opts)
|
132
|
+
p status_code # => 2xx
|
133
|
+
p headers # => { ... }
|
134
|
+
p data # => nil
|
135
|
+
rescue FireflyIIIClient::ApiError => e
|
136
|
+
puts "Error when calling RuleGroupsApi->fire_rule_group_with_http_info: #{e}"
|
137
|
+
end
|
138
|
+
```
|
139
|
+
|
140
|
+
### Parameters
|
141
|
+
|
142
|
+
| Name | Type | Description | Notes |
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
144
|
+
| **id** | **Integer** | The ID of the rule group. | |
|
145
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. Both the start date and the end date must be present. | [optional] |
|
146
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD, to limit the transactions the actions will be applied to. Both the start date and the end date must be present. | [optional] |
|
147
|
+
| **accounts** | **String** | Limit the testing of the rule group to these asset accounts. Only asset accounts will be accepted. Other types will be silently dropped. | [optional] |
|
148
|
+
|
149
|
+
### Return type
|
150
|
+
|
151
|
+
nil (empty response body)
|
152
|
+
|
153
|
+
### Authorization
|
154
|
+
|
155
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
156
|
+
|
157
|
+
### HTTP request headers
|
158
|
+
|
159
|
+
- **Content-Type**: Not defined
|
160
|
+
- **Accept**: Not defined
|
161
|
+
|
162
|
+
|
163
|
+
## get_rule_group
|
164
|
+
|
165
|
+
> <RuleGroupSingle> get_rule_group(id)
|
166
|
+
|
167
|
+
Get a single rule group.
|
168
|
+
|
169
|
+
Get a single rule group. This does not include the rules. For that, see below.
|
170
|
+
|
171
|
+
### Examples
|
172
|
+
|
173
|
+
```ruby
|
174
|
+
require 'time'
|
175
|
+
require 'firefly_iii_client'
|
176
|
+
# setup authorization
|
177
|
+
FireflyIIIClient.configure do |config|
|
178
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
179
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
180
|
+
end
|
181
|
+
|
182
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
183
|
+
id = 1 # Integer | The ID of the rule group.
|
184
|
+
|
185
|
+
begin
|
186
|
+
# Get a single rule group.
|
187
|
+
result = api_instance.get_rule_group(id)
|
188
|
+
p result
|
189
|
+
rescue FireflyIIIClient::ApiError => e
|
190
|
+
puts "Error when calling RuleGroupsApi->get_rule_group: #{e}"
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
#### Using the get_rule_group_with_http_info variant
|
195
|
+
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
197
|
+
|
198
|
+
> <Array(<RuleGroupSingle>, Integer, Hash)> get_rule_group_with_http_info(id)
|
199
|
+
|
200
|
+
```ruby
|
201
|
+
|
202
|
+
begin
|
203
|
+
# Get a single rule group.
|
204
|
+
data, status_code, headers = api_instance.get_rule_group_with_http_info(id)
|
205
|
+
p status_code # => 2xx
|
206
|
+
p headers # => { ... }
|
207
|
+
p data # => <RuleGroupSingle>
|
208
|
+
rescue FireflyIIIClient::ApiError => e
|
209
|
+
puts "Error when calling RuleGroupsApi->get_rule_group_with_http_info: #{e}"
|
210
|
+
end
|
211
|
+
```
|
212
|
+
|
213
|
+
### Parameters
|
214
|
+
|
215
|
+
| Name | Type | Description | Notes |
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
217
|
+
| **id** | **Integer** | The ID of the rule group. | |
|
218
|
+
|
219
|
+
### Return type
|
220
|
+
|
221
|
+
[**RuleGroupSingle**](RuleGroupSingle.md)
|
222
|
+
|
223
|
+
### Authorization
|
224
|
+
|
225
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
226
|
+
|
227
|
+
### HTTP request headers
|
228
|
+
|
229
|
+
- **Content-Type**: Not defined
|
230
|
+
- **Accept**: application/json
|
231
|
+
|
232
|
+
|
233
|
+
## list_rule_by_group
|
234
|
+
|
235
|
+
> <RuleArray> list_rule_by_group(id, opts)
|
236
|
+
|
237
|
+
List rules in this rule group.
|
238
|
+
|
239
|
+
List rules in this rule group.
|
240
|
+
|
241
|
+
### Examples
|
242
|
+
|
243
|
+
```ruby
|
244
|
+
require 'time'
|
245
|
+
require 'firefly_iii_client'
|
246
|
+
# setup authorization
|
247
|
+
FireflyIIIClient.configure do |config|
|
248
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
249
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
250
|
+
end
|
251
|
+
|
252
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
253
|
+
id = 1 # Integer | The ID of the rule group.
|
254
|
+
opts = {
|
255
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
256
|
+
}
|
257
|
+
|
258
|
+
begin
|
259
|
+
# List rules in this rule group.
|
260
|
+
result = api_instance.list_rule_by_group(id, opts)
|
261
|
+
p result
|
262
|
+
rescue FireflyIIIClient::ApiError => e
|
263
|
+
puts "Error when calling RuleGroupsApi->list_rule_by_group: #{e}"
|
264
|
+
end
|
265
|
+
```
|
266
|
+
|
267
|
+
#### Using the list_rule_by_group_with_http_info variant
|
268
|
+
|
269
|
+
This returns an Array which contains the response data, status code and headers.
|
270
|
+
|
271
|
+
> <Array(<RuleArray>, Integer, Hash)> list_rule_by_group_with_http_info(id, opts)
|
272
|
+
|
273
|
+
```ruby
|
274
|
+
|
275
|
+
begin
|
276
|
+
# List rules in this rule group.
|
277
|
+
data, status_code, headers = api_instance.list_rule_by_group_with_http_info(id, opts)
|
278
|
+
p status_code # => 2xx
|
279
|
+
p headers # => { ... }
|
280
|
+
p data # => <RuleArray>
|
281
|
+
rescue FireflyIIIClient::ApiError => e
|
282
|
+
puts "Error when calling RuleGroupsApi->list_rule_by_group_with_http_info: #{e}"
|
283
|
+
end
|
284
|
+
```
|
285
|
+
|
286
|
+
### Parameters
|
287
|
+
|
288
|
+
| Name | Type | Description | Notes |
|
289
|
+
| ---- | ---- | ----------- | ----- |
|
290
|
+
| **id** | **Integer** | The ID of the rule group. | |
|
291
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
292
|
+
|
293
|
+
### Return type
|
294
|
+
|
295
|
+
[**RuleArray**](RuleArray.md)
|
296
|
+
|
297
|
+
### Authorization
|
298
|
+
|
299
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
300
|
+
|
301
|
+
### HTTP request headers
|
302
|
+
|
303
|
+
- **Content-Type**: Not defined
|
304
|
+
- **Accept**: application/json
|
305
|
+
|
306
|
+
|
307
|
+
## list_rule_group
|
308
|
+
|
309
|
+
> <RuleGroupArray> list_rule_group(opts)
|
310
|
+
|
311
|
+
List all rule groups.
|
312
|
+
|
313
|
+
List all rule groups.
|
314
|
+
|
315
|
+
### Examples
|
316
|
+
|
317
|
+
```ruby
|
318
|
+
require 'time'
|
319
|
+
require 'firefly_iii_client'
|
320
|
+
# setup authorization
|
321
|
+
FireflyIIIClient.configure do |config|
|
322
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
323
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
324
|
+
end
|
325
|
+
|
326
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
327
|
+
opts = {
|
328
|
+
page: 1 # Integer | Page number. The default pagination is 50
|
329
|
+
}
|
330
|
+
|
331
|
+
begin
|
332
|
+
# List all rule groups.
|
333
|
+
result = api_instance.list_rule_group(opts)
|
334
|
+
p result
|
335
|
+
rescue FireflyIIIClient::ApiError => e
|
336
|
+
puts "Error when calling RuleGroupsApi->list_rule_group: #{e}"
|
337
|
+
end
|
338
|
+
```
|
339
|
+
|
340
|
+
#### Using the list_rule_group_with_http_info variant
|
341
|
+
|
342
|
+
This returns an Array which contains the response data, status code and headers.
|
343
|
+
|
344
|
+
> <Array(<RuleGroupArray>, Integer, Hash)> list_rule_group_with_http_info(opts)
|
345
|
+
|
346
|
+
```ruby
|
347
|
+
|
348
|
+
begin
|
349
|
+
# List all rule groups.
|
350
|
+
data, status_code, headers = api_instance.list_rule_group_with_http_info(opts)
|
351
|
+
p status_code # => 2xx
|
352
|
+
p headers # => { ... }
|
353
|
+
p data # => <RuleGroupArray>
|
354
|
+
rescue FireflyIIIClient::ApiError => e
|
355
|
+
puts "Error when calling RuleGroupsApi->list_rule_group_with_http_info: #{e}"
|
356
|
+
end
|
357
|
+
```
|
358
|
+
|
359
|
+
### Parameters
|
360
|
+
|
361
|
+
| Name | Type | Description | Notes |
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
363
|
+
| **page** | **Integer** | Page number. The default pagination is 50 | [optional] |
|
364
|
+
|
365
|
+
### Return type
|
366
|
+
|
367
|
+
[**RuleGroupArray**](RuleGroupArray.md)
|
368
|
+
|
369
|
+
### Authorization
|
370
|
+
|
371
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
372
|
+
|
373
|
+
### HTTP request headers
|
374
|
+
|
375
|
+
- **Content-Type**: Not defined
|
376
|
+
- **Accept**: application/json
|
377
|
+
|
378
|
+
|
379
|
+
## store_rule_group
|
380
|
+
|
381
|
+
> <RuleGroupSingle> store_rule_group(rule_group)
|
382
|
+
|
383
|
+
Store a new rule group.
|
384
|
+
|
385
|
+
Creates a new rule group. The data required can be submitted as a JSON body or as a list of parameters.
|
386
|
+
|
387
|
+
### Examples
|
388
|
+
|
389
|
+
```ruby
|
390
|
+
require 'time'
|
391
|
+
require 'firefly_iii_client'
|
392
|
+
# setup authorization
|
393
|
+
FireflyIIIClient.configure do |config|
|
394
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
395
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
396
|
+
end
|
397
|
+
|
398
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
399
|
+
rule_group = FireflyIIIClient::RuleGroup.new({ title: 'Default rule group' }) # RuleGroup | JSON array or key=value pairs with the necessary rule group information. See the model for the exact specifications.
|
400
|
+
|
401
|
+
begin
|
402
|
+
# Store a new rule group.
|
403
|
+
result = api_instance.store_rule_group(rule_group)
|
404
|
+
p result
|
405
|
+
rescue FireflyIIIClient::ApiError => e
|
406
|
+
puts "Error when calling RuleGroupsApi->store_rule_group: #{e}"
|
407
|
+
end
|
408
|
+
```
|
409
|
+
|
410
|
+
#### Using the store_rule_group_with_http_info variant
|
411
|
+
|
412
|
+
This returns an Array which contains the response data, status code and headers.
|
413
|
+
|
414
|
+
> <Array(<RuleGroupSingle>, Integer, Hash)> store_rule_group_with_http_info(rule_group)
|
415
|
+
|
416
|
+
```ruby
|
417
|
+
|
418
|
+
begin
|
419
|
+
# Store a new rule group.
|
420
|
+
data, status_code, headers = api_instance.store_rule_group_with_http_info(rule_group)
|
421
|
+
p status_code # => 2xx
|
422
|
+
p headers # => { ... }
|
423
|
+
p data # => <RuleGroupSingle>
|
424
|
+
rescue FireflyIIIClient::ApiError => e
|
425
|
+
puts "Error when calling RuleGroupsApi->store_rule_group_with_http_info: #{e}"
|
426
|
+
end
|
427
|
+
```
|
428
|
+
|
429
|
+
### Parameters
|
430
|
+
|
431
|
+
| Name | Type | Description | Notes |
|
432
|
+
| ---- | ---- | ----------- | ----- |
|
433
|
+
| **rule_group** | [**RuleGroup**](RuleGroup.md) | JSON array or key=value pairs with the necessary rule group information. See the model for the exact specifications. | |
|
434
|
+
|
435
|
+
### Return type
|
436
|
+
|
437
|
+
[**RuleGroupSingle**](RuleGroupSingle.md)
|
438
|
+
|
439
|
+
### Authorization
|
440
|
+
|
441
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
442
|
+
|
443
|
+
### HTTP request headers
|
444
|
+
|
445
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
446
|
+
- **Accept**: application/json
|
447
|
+
|
448
|
+
|
449
|
+
## test_rule_group
|
450
|
+
|
451
|
+
> <TransactionArray> test_rule_group(id, opts)
|
452
|
+
|
453
|
+
Test which transactions would be hit by the rule group. No changes will be made.
|
454
|
+
|
455
|
+
Test which transactions would be hit by the rule group. No changes will be made. Limit the result if you want to.
|
456
|
+
|
457
|
+
### Examples
|
458
|
+
|
459
|
+
```ruby
|
460
|
+
require 'time'
|
461
|
+
require 'firefly_iii_client'
|
462
|
+
# setup authorization
|
463
|
+
FireflyIIIClient.configure do |config|
|
464
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
465
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
466
|
+
end
|
467
|
+
|
468
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
469
|
+
id = 1 # Integer | The ID of the rule group.
|
470
|
+
opts = {
|
471
|
+
page: 1, # Integer | Page number. The default pagination is 50 items.
|
472
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present.
|
473
|
+
_end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present.
|
474
|
+
search_limit: 56, # Integer | Maximum number of transactions Firefly III will try. Don't set this too high, or it will take Firefly III very long to run the test. I suggest a max of 200.
|
475
|
+
triggered_limit: 56, # Integer | Maximum number of transactions the rule group can actually trigger on, before Firefly III stops. I would suggest setting this to 10 or 15. Don't go above the user's page size, because browsing to page 2 or 3 of a test result would fire the test again, making any navigation efforts very slow.
|
476
|
+
accounts: '1,2,3' # String | Limit the testing of the rule group to these asset accounts. Only asset accounts will be accepted. Other types will be silently dropped.
|
477
|
+
}
|
478
|
+
|
479
|
+
begin
|
480
|
+
# Test which transactions would be hit by the rule group. No changes will be made.
|
481
|
+
result = api_instance.test_rule_group(id, opts)
|
482
|
+
p result
|
483
|
+
rescue FireflyIIIClient::ApiError => e
|
484
|
+
puts "Error when calling RuleGroupsApi->test_rule_group: #{e}"
|
485
|
+
end
|
486
|
+
```
|
487
|
+
|
488
|
+
#### Using the test_rule_group_with_http_info variant
|
489
|
+
|
490
|
+
This returns an Array which contains the response data, status code and headers.
|
491
|
+
|
492
|
+
> <Array(<TransactionArray>, Integer, Hash)> test_rule_group_with_http_info(id, opts)
|
493
|
+
|
494
|
+
```ruby
|
495
|
+
|
496
|
+
begin
|
497
|
+
# Test which transactions would be hit by the rule group. No changes will be made.
|
498
|
+
data, status_code, headers = api_instance.test_rule_group_with_http_info(id, opts)
|
499
|
+
p status_code # => 2xx
|
500
|
+
p headers # => { ... }
|
501
|
+
p data # => <TransactionArray>
|
502
|
+
rescue FireflyIIIClient::ApiError => e
|
503
|
+
puts "Error when calling RuleGroupsApi->test_rule_group_with_http_info: #{e}"
|
504
|
+
end
|
505
|
+
```
|
506
|
+
|
507
|
+
### Parameters
|
508
|
+
|
509
|
+
| Name | Type | Description | Notes |
|
510
|
+
| ---- | ---- | ----------- | ----- |
|
511
|
+
| **id** | **Integer** | The ID of the rule group. | |
|
512
|
+
| **page** | **Integer** | Page number. The default pagination is 50 items. | [optional] |
|
513
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present. | [optional] |
|
514
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD, to limit the transactions the test will be applied to. Both the start date and the end date must be present. | [optional] |
|
515
|
+
| **search_limit** | **Integer** | Maximum number of transactions Firefly III will try. Don't set this too high, or it will take Firefly III very long to run the test. I suggest a max of 200. | [optional] |
|
516
|
+
| **triggered_limit** | **Integer** | Maximum number of transactions the rule group can actually trigger on, before Firefly III stops. I would suggest setting this to 10 or 15. Don't go above the user's page size, because browsing to page 2 or 3 of a test result would fire the test again, making any navigation efforts very slow. | [optional] |
|
517
|
+
| **accounts** | **String** | Limit the testing of the rule group to these asset accounts. Only asset accounts will be accepted. Other types will be silently dropped. | [optional] |
|
518
|
+
|
519
|
+
### Return type
|
520
|
+
|
521
|
+
[**TransactionArray**](TransactionArray.md)
|
522
|
+
|
523
|
+
### Authorization
|
524
|
+
|
525
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
526
|
+
|
527
|
+
### HTTP request headers
|
528
|
+
|
529
|
+
- **Content-Type**: Not defined
|
530
|
+
- **Accept**: application/json
|
531
|
+
|
532
|
+
|
533
|
+
## update_rule_group
|
534
|
+
|
535
|
+
> <RuleGroupSingle> update_rule_group(id, rule_group)
|
536
|
+
|
537
|
+
Update existing rule group.
|
538
|
+
|
539
|
+
Update existing rule group.
|
540
|
+
|
541
|
+
### Examples
|
542
|
+
|
543
|
+
```ruby
|
544
|
+
require 'time'
|
545
|
+
require 'firefly_iii_client'
|
546
|
+
# setup authorization
|
547
|
+
FireflyIIIClient.configure do |config|
|
548
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
549
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
550
|
+
end
|
551
|
+
|
552
|
+
api_instance = FireflyIIIClient::RuleGroupsApi.new
|
553
|
+
id = 1 # Integer | The ID of the rule group.
|
554
|
+
rule_group = FireflyIIIClient::RuleGroup.new({ title: 'Default rule group' }) # RuleGroup | JSON array with updated rule group information. See the model for the exact specifications.
|
555
|
+
|
556
|
+
begin
|
557
|
+
# Update existing rule group.
|
558
|
+
result = api_instance.update_rule_group(id, rule_group)
|
559
|
+
p result
|
560
|
+
rescue FireflyIIIClient::ApiError => e
|
561
|
+
puts "Error when calling RuleGroupsApi->update_rule_group: #{e}"
|
562
|
+
end
|
563
|
+
```
|
564
|
+
|
565
|
+
#### Using the update_rule_group_with_http_info variant
|
566
|
+
|
567
|
+
This returns an Array which contains the response data, status code and headers.
|
568
|
+
|
569
|
+
> <Array(<RuleGroupSingle>, Integer, Hash)> update_rule_group_with_http_info(id, rule_group)
|
570
|
+
|
571
|
+
```ruby
|
572
|
+
|
573
|
+
begin
|
574
|
+
# Update existing rule group.
|
575
|
+
data, status_code, headers = api_instance.update_rule_group_with_http_info(id, rule_group)
|
576
|
+
p status_code # => 2xx
|
577
|
+
p headers # => { ... }
|
578
|
+
p data # => <RuleGroupSingle>
|
579
|
+
rescue FireflyIIIClient::ApiError => e
|
580
|
+
puts "Error when calling RuleGroupsApi->update_rule_group_with_http_info: #{e}"
|
581
|
+
end
|
582
|
+
```
|
583
|
+
|
584
|
+
### Parameters
|
585
|
+
|
586
|
+
| Name | Type | Description | Notes |
|
587
|
+
| ---- | ---- | ----------- | ----- |
|
588
|
+
| **id** | **Integer** | The ID of the rule group. | |
|
589
|
+
| **rule_group** | [**RuleGroup**](RuleGroup.md) | JSON array with updated rule group information. See the model for the exact specifications. | |
|
590
|
+
|
591
|
+
### Return type
|
592
|
+
|
593
|
+
[**RuleGroupSingle**](RuleGroupSingle.md)
|
594
|
+
|
595
|
+
### Authorization
|
596
|
+
|
597
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
598
|
+
|
599
|
+
### HTTP request headers
|
600
|
+
|
601
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
602
|
+
- **Accept**: application/json
|
603
|
+
|