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
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::RecurrenceSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**RecurrenceRead**](RecurrenceRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::RecurrenceSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# OpenapiClient::RecurrenceTransaction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **description** | **String** | | |
|
8
|
+
| **amount** | **Float** | Amount of the transaction. | |
|
9
|
+
| **foreign_amount** | **Float** | Foreign amount of the transaction. | [optional] |
|
10
|
+
| **currency_id** | **Integer** | Submit either a currency_id or a currency_code. | [optional] |
|
11
|
+
| **currency_code** | **String** | Submit either a currency_id or a currency_code. | [optional] |
|
12
|
+
| **currency_symbol** | **String** | | [optional][readonly] |
|
13
|
+
| **currency_decimal_places** | **Integer** | Number of decimals in the currency | [optional][readonly] |
|
14
|
+
| **foreign_currency_id** | **Integer** | Submit either a foreign_currency_id or a foreign_currency_code, or neither. | [optional] |
|
15
|
+
| **foreign_currency_code** | **String** | Submit either a foreign_currency_id or a foreign_currency_code, or neither. | [optional] |
|
16
|
+
| **foreign_currency_symbol** | **String** | | [optional][readonly] |
|
17
|
+
| **foreign_currency_decimal_places** | **Integer** | Number of decimals in the currency | [optional][readonly] |
|
18
|
+
| **budget_id** | **Integer** | The budget ID for this transaction. | [optional] |
|
19
|
+
| **budget_name** | **String** | The name of the budget to be used. If the budget name is unknown, the ID will be used or the value will be ignored. | [optional][readonly] |
|
20
|
+
| **category_id** | **Integer** | Category ID for this transaction. | [optional] |
|
21
|
+
| **category_name** | **String** | Category name for this transaction. | [optional] |
|
22
|
+
| **source_id** | **Integer** | ID of the source account. Submit either this or source_name. | [optional] |
|
23
|
+
| **source_name** | **String** | Name of the source account. Submit either this or source_id. | [optional] |
|
24
|
+
| **source_iban** | **String** | | [optional][readonly] |
|
25
|
+
| **source_type** | [**AccountTypeProperty**](AccountTypeProperty.md) | | [optional] |
|
26
|
+
| **destination_id** | **Integer** | ID of the destination account. Submit either this or destination_name. | [optional] |
|
27
|
+
| **destination_name** | **String** | Name of the destination account. Submit either this or destination_id. | [optional] |
|
28
|
+
| **destination_iban** | **String** | | [optional][readonly] |
|
29
|
+
| **destination_type** | [**AccountTypeProperty**](AccountTypeProperty.md) | | [optional] |
|
30
|
+
| **tags** | **Array<String>** | Array of tags. | [optional] |
|
31
|
+
| **piggy_bank_id** | **Integer** | Optional. Use either this or the piggy_bank_name | [optional] |
|
32
|
+
| **piggy_bank_name** | **String** | Optional. Use either this or the piggy_bank_id | [optional] |
|
33
|
+
|
34
|
+
## Example
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
require 'firefly_iii_client'
|
38
|
+
|
39
|
+
instance = FireflyIIIClient::RecurrenceTransaction.new(
|
40
|
+
description: Rent for the current month,
|
41
|
+
amount: -810.12,
|
42
|
+
foreign_amount: -990,
|
43
|
+
currency_id: 3,
|
44
|
+
currency_code: EUR,
|
45
|
+
currency_symbol: €,
|
46
|
+
currency_decimal_places: 2,
|
47
|
+
foreign_currency_id: 17,
|
48
|
+
foreign_currency_code: GBP,
|
49
|
+
foreign_currency_symbol: $,
|
50
|
+
foreign_currency_decimal_places : 2,
|
51
|
+
budget_id : 4,
|
52
|
+
budget_name : Groceries,
|
53
|
+
category_id : 211,
|
54
|
+
category_name : Bills,
|
55
|
+
source_id : 913,
|
56
|
+
source_name : Checking account,
|
57
|
+
source_iban: NL02ABNA0123456789,
|
58
|
+
source_type: null,
|
59
|
+
destination_id: 258,
|
60
|
+
destination_name: Buy and Large,
|
61
|
+
destination_iban : NL02ABNA0123456789,
|
62
|
+
destination_type : null,
|
63
|
+
tags : null,
|
64
|
+
piggy_bank_id : null,
|
65
|
+
piggy_bank_name : null
|
66
|
+
)
|
67
|
+
```
|
68
|
+
|
@@ -0,0 +1,513 @@
|
|
1
|
+
# OpenapiClient::RecurrencesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_recurrence**](RecurrencesApi.md#delete_recurrence) | **DELETE** /api/v1/recurrences/{id} | Delete a recurring transaction. |
|
8
|
+
| [**get_recurrence**](RecurrencesApi.md#get_recurrence) | **GET** /api/v1/recurrences/{id} | Get a single recurring transaction. |
|
9
|
+
| [**list_recurrence**](RecurrencesApi.md#list_recurrence) | **GET** /api/v1/recurrences | List all recurring transactions. |
|
10
|
+
| [**list_transaction_by_recurrence**](RecurrencesApi.md#list_transaction_by_recurrence) | **GET** /api/v1/recurrences/{id}/transactions | List all transactions created by a recurring transaction. |
|
11
|
+
| [**store_recurrence**](RecurrencesApi.md#store_recurrence) | **POST** /api/v1/recurrences | Store a new recurring transaction |
|
12
|
+
| [**trigger_recurrence**](RecurrencesApi.md#trigger_recurrence) | **POST** /api/v1/recurrences/trigger | Trigger the creation of recurring transactions (like a cron job). |
|
13
|
+
| [**update_recurrence**](RecurrencesApi.md#update_recurrence) | **PUT** /api/v1/recurrences/{id} | Update existing recurring transaction. |
|
14
|
+
|
15
|
+
|
16
|
+
## delete_recurrence
|
17
|
+
|
18
|
+
> delete_recurrence(id)
|
19
|
+
|
20
|
+
Delete a recurring transaction.
|
21
|
+
|
22
|
+
Delete a recurring transaction. Transactions created will not be deleted.
|
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::RecurrencesApi.new
|
36
|
+
id = 1 # Integer | The ID of the recurring transaction.
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Delete a recurring transaction.
|
40
|
+
api_instance.delete_recurrence(id)
|
41
|
+
rescue FireflyIIIClient::ApiError => e
|
42
|
+
puts "Error when calling RecurrencesApi->delete_recurrence: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the delete_recurrence_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_recurrence_with_http_info(id)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
|
54
|
+
begin
|
55
|
+
# Delete a recurring transaction.
|
56
|
+
data, status_code, headers = api_instance.delete_recurrence_with_http_info(id)
|
57
|
+
p status_code # => 2xx
|
58
|
+
p headers # => { ... }
|
59
|
+
p data # => nil
|
60
|
+
rescue FireflyIIIClient::ApiError => e
|
61
|
+
puts "Error when calling RecurrencesApi->delete_recurrence_with_http_info: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
| Name | Type | Description | Notes |
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
69
|
+
| **id** | **Integer** | The ID of the recurring transaction. | |
|
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_recurrence
|
86
|
+
|
87
|
+
> <RecurrenceSingle> get_recurrence(id)
|
88
|
+
|
89
|
+
Get a single recurring transaction.
|
90
|
+
|
91
|
+
Get a single recurring transaction.
|
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::RecurrencesApi.new
|
105
|
+
id = 1 # Integer | The ID of the recurring transaction.
|
106
|
+
|
107
|
+
begin
|
108
|
+
# Get a single recurring transaction.
|
109
|
+
result = api_instance.get_recurrence(id)
|
110
|
+
p result
|
111
|
+
rescue FireflyIIIClient::ApiError => e
|
112
|
+
puts "Error when calling RecurrencesApi->get_recurrence: #{e}"
|
113
|
+
end
|
114
|
+
```
|
115
|
+
|
116
|
+
#### Using the get_recurrence_with_http_info variant
|
117
|
+
|
118
|
+
This returns an Array which contains the response data, status code and headers.
|
119
|
+
|
120
|
+
> <Array(<RecurrenceSingle>, Integer, Hash)> get_recurrence_with_http_info(id)
|
121
|
+
|
122
|
+
```ruby
|
123
|
+
|
124
|
+
begin
|
125
|
+
# Get a single recurring transaction.
|
126
|
+
data, status_code, headers = api_instance.get_recurrence_with_http_info(id)
|
127
|
+
p status_code # => 2xx
|
128
|
+
p headers # => { ... }
|
129
|
+
p data # => <RecurrenceSingle>
|
130
|
+
rescue FireflyIIIClient::ApiError => e
|
131
|
+
puts "Error when calling RecurrencesApi->get_recurrence_with_http_info: #{e}"
|
132
|
+
end
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
| Name | Type | Description | Notes |
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
139
|
+
| **id** | **Integer** | The ID of the recurring transaction. | |
|
140
|
+
|
141
|
+
### Return type
|
142
|
+
|
143
|
+
[**RecurrenceSingle**](RecurrenceSingle.md)
|
144
|
+
|
145
|
+
### Authorization
|
146
|
+
|
147
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
148
|
+
|
149
|
+
### HTTP request headers
|
150
|
+
|
151
|
+
- **Content-Type**: Not defined
|
152
|
+
- **Accept**: application/json
|
153
|
+
|
154
|
+
|
155
|
+
## list_recurrence
|
156
|
+
|
157
|
+
> <RecurrenceArray> list_recurrence(opts)
|
158
|
+
|
159
|
+
List all recurring transactions.
|
160
|
+
|
161
|
+
List all recurring transactions.
|
162
|
+
|
163
|
+
### Examples
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
require 'time'
|
167
|
+
require 'firefly_iii_client'
|
168
|
+
# setup authorization
|
169
|
+
FireflyIIIClient.configure do |config|
|
170
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
171
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
172
|
+
end
|
173
|
+
|
174
|
+
api_instance = FireflyIIIClient::RecurrencesApi.new
|
175
|
+
opts = {
|
176
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
177
|
+
}
|
178
|
+
|
179
|
+
begin
|
180
|
+
# List all recurring transactions.
|
181
|
+
result = api_instance.list_recurrence(opts)
|
182
|
+
p result
|
183
|
+
rescue FireflyIIIClient::ApiError => e
|
184
|
+
puts "Error when calling RecurrencesApi->list_recurrence: #{e}"
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
#### Using the list_recurrence_with_http_info variant
|
189
|
+
|
190
|
+
This returns an Array which contains the response data, status code and headers.
|
191
|
+
|
192
|
+
> <Array(<RecurrenceArray>, Integer, Hash)> list_recurrence_with_http_info(opts)
|
193
|
+
|
194
|
+
```ruby
|
195
|
+
|
196
|
+
begin
|
197
|
+
# List all recurring transactions.
|
198
|
+
data, status_code, headers = api_instance.list_recurrence_with_http_info(opts)
|
199
|
+
p status_code # => 2xx
|
200
|
+
p headers # => { ... }
|
201
|
+
p data # => <RecurrenceArray>
|
202
|
+
rescue FireflyIIIClient::ApiError => e
|
203
|
+
puts "Error when calling RecurrencesApi->list_recurrence_with_http_info: #{e}"
|
204
|
+
end
|
205
|
+
```
|
206
|
+
|
207
|
+
### Parameters
|
208
|
+
|
209
|
+
| Name | Type | Description | Notes |
|
210
|
+
| ---- | ---- | ----------- | ----- |
|
211
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
212
|
+
|
213
|
+
### Return type
|
214
|
+
|
215
|
+
[**RecurrenceArray**](RecurrenceArray.md)
|
216
|
+
|
217
|
+
### Authorization
|
218
|
+
|
219
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
220
|
+
|
221
|
+
### HTTP request headers
|
222
|
+
|
223
|
+
- **Content-Type**: Not defined
|
224
|
+
- **Accept**: application/json
|
225
|
+
|
226
|
+
|
227
|
+
## list_transaction_by_recurrence
|
228
|
+
|
229
|
+
> <TransactionArray> list_transaction_by_recurrence(id, opts)
|
230
|
+
|
231
|
+
List all transactions created by a recurring transaction.
|
232
|
+
|
233
|
+
List all transactions created by a recurring transaction, optionally limited to the date ranges specified.
|
234
|
+
|
235
|
+
### Examples
|
236
|
+
|
237
|
+
```ruby
|
238
|
+
require 'time'
|
239
|
+
require 'firefly_iii_client'
|
240
|
+
# setup authorization
|
241
|
+
FireflyIIIClient.configure do |config|
|
242
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
243
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
244
|
+
end
|
245
|
+
|
246
|
+
api_instance = FireflyIIIClient::RecurrencesApi.new
|
247
|
+
id = 1 # Integer | The ID of the recurring transaction.
|
248
|
+
opts = {
|
249
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
250
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD. Both the start and end date must be present.
|
251
|
+
_end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD. Both the start and end date must be present.
|
252
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned
|
253
|
+
}
|
254
|
+
|
255
|
+
begin
|
256
|
+
# List all transactions created by a recurring transaction.
|
257
|
+
result = api_instance.list_transaction_by_recurrence(id, opts)
|
258
|
+
p result
|
259
|
+
rescue FireflyIIIClient::ApiError => e
|
260
|
+
puts "Error when calling RecurrencesApi->list_transaction_by_recurrence: #{e}"
|
261
|
+
end
|
262
|
+
```
|
263
|
+
|
264
|
+
#### Using the list_transaction_by_recurrence_with_http_info variant
|
265
|
+
|
266
|
+
This returns an Array which contains the response data, status code and headers.
|
267
|
+
|
268
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_recurrence_with_http_info(id, opts)
|
269
|
+
|
270
|
+
```ruby
|
271
|
+
|
272
|
+
begin
|
273
|
+
# List all transactions created by a recurring transaction.
|
274
|
+
data, status_code, headers = api_instance.list_transaction_by_recurrence_with_http_info(id, opts)
|
275
|
+
p status_code # => 2xx
|
276
|
+
p headers # => { ... }
|
277
|
+
p data # => <TransactionArray>
|
278
|
+
rescue FireflyIIIClient::ApiError => e
|
279
|
+
puts "Error when calling RecurrencesApi->list_transaction_by_recurrence_with_http_info: #{e}"
|
280
|
+
end
|
281
|
+
```
|
282
|
+
|
283
|
+
### Parameters
|
284
|
+
|
285
|
+
| Name | Type | Description | Notes |
|
286
|
+
| ---- | ---- | ----------- | ----- |
|
287
|
+
| **id** | **Integer** | The ID of the recurring transaction. | |
|
288
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
289
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. Both the start and end date must be present. | [optional] |
|
290
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. Both the start and end date must be present. | [optional] |
|
291
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned | [optional] |
|
292
|
+
|
293
|
+
### Return type
|
294
|
+
|
295
|
+
[**TransactionArray**](TransactionArray.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
|
+
## store_recurrence
|
308
|
+
|
309
|
+
> <RecurrenceSingle> store_recurrence(recurrence)
|
310
|
+
|
311
|
+
Store a new recurring transaction
|
312
|
+
|
313
|
+
Creates a new recurring transaction. The data required can be submitted as a JSON body or as a list of parameters.
|
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::RecurrencesApi.new
|
327
|
+
recurrence = FireflyIIIClient::Recurrence.new({ type: 'withdrawal', title: 'Rent', first_date: Date.parse('Sun Sep 17 00:00:00 GMT 2017') }) # Recurrence | JSON array or key=value pairs with the necessary recurring transaction information. See the model for the exact specifications.
|
328
|
+
|
329
|
+
begin
|
330
|
+
# Store a new recurring transaction
|
331
|
+
result = api_instance.store_recurrence(recurrence)
|
332
|
+
p result
|
333
|
+
rescue FireflyIIIClient::ApiError => e
|
334
|
+
puts "Error when calling RecurrencesApi->store_recurrence: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
#### Using the store_recurrence_with_http_info variant
|
339
|
+
|
340
|
+
This returns an Array which contains the response data, status code and headers.
|
341
|
+
|
342
|
+
> <Array(<RecurrenceSingle>, Integer, Hash)> store_recurrence_with_http_info(recurrence)
|
343
|
+
|
344
|
+
```ruby
|
345
|
+
|
346
|
+
begin
|
347
|
+
# Store a new recurring transaction
|
348
|
+
data, status_code, headers = api_instance.store_recurrence_with_http_info(recurrence)
|
349
|
+
p status_code # => 2xx
|
350
|
+
p headers # => { ... }
|
351
|
+
p data # => <RecurrenceSingle>
|
352
|
+
rescue FireflyIIIClient::ApiError => e
|
353
|
+
puts "Error when calling RecurrencesApi->store_recurrence_with_http_info: #{e}"
|
354
|
+
end
|
355
|
+
```
|
356
|
+
|
357
|
+
### Parameters
|
358
|
+
|
359
|
+
| Name | Type | Description | Notes |
|
360
|
+
| ---- | ---- | ----------- | ----- |
|
361
|
+
| **recurrence** | [**Recurrence**](Recurrence.md) | JSON array or key=value pairs with the necessary recurring transaction information. See the model for the exact specifications. | |
|
362
|
+
|
363
|
+
### Return type
|
364
|
+
|
365
|
+
[**RecurrenceSingle**](RecurrenceSingle.md)
|
366
|
+
|
367
|
+
### Authorization
|
368
|
+
|
369
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
370
|
+
|
371
|
+
### HTTP request headers
|
372
|
+
|
373
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
374
|
+
- **Accept**: application/json
|
375
|
+
|
376
|
+
|
377
|
+
## trigger_recurrence
|
378
|
+
|
379
|
+
> trigger_recurrence
|
380
|
+
|
381
|
+
Trigger the creation of recurring transactions (like a cron job).
|
382
|
+
|
383
|
+
Triggers the recurring transactions, like a cron job would. If the schedule does not call for a new transaction to be created, nothing will happen.
|
384
|
+
|
385
|
+
### Examples
|
386
|
+
|
387
|
+
```ruby
|
388
|
+
require 'time'
|
389
|
+
require 'firefly_iii_client'
|
390
|
+
# setup authorization
|
391
|
+
FireflyIIIClient.configure do |config|
|
392
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
393
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
394
|
+
end
|
395
|
+
|
396
|
+
api_instance = FireflyIIIClient::RecurrencesApi.new
|
397
|
+
|
398
|
+
begin
|
399
|
+
# Trigger the creation of recurring transactions (like a cron job).
|
400
|
+
api_instance.trigger_recurrence
|
401
|
+
rescue FireflyIIIClient::ApiError => e
|
402
|
+
puts "Error when calling RecurrencesApi->trigger_recurrence: #{e}"
|
403
|
+
end
|
404
|
+
```
|
405
|
+
|
406
|
+
#### Using the trigger_recurrence_with_http_info variant
|
407
|
+
|
408
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
409
|
+
|
410
|
+
> <Array(nil, Integer, Hash)> trigger_recurrence_with_http_info
|
411
|
+
|
412
|
+
```ruby
|
413
|
+
|
414
|
+
begin
|
415
|
+
# Trigger the creation of recurring transactions (like a cron job).
|
416
|
+
data, status_code, headers = api_instance.trigger_recurrence_with_http_info
|
417
|
+
p status_code # => 2xx
|
418
|
+
p headers # => { ... }
|
419
|
+
p data # => nil
|
420
|
+
rescue FireflyIIIClient::ApiError => e
|
421
|
+
puts "Error when calling RecurrencesApi->trigger_recurrence_with_http_info: #{e}"
|
422
|
+
end
|
423
|
+
```
|
424
|
+
|
425
|
+
### Parameters
|
426
|
+
|
427
|
+
This endpoint does not need any parameter.
|
428
|
+
|
429
|
+
### Return type
|
430
|
+
|
431
|
+
nil (empty response body)
|
432
|
+
|
433
|
+
### Authorization
|
434
|
+
|
435
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
436
|
+
|
437
|
+
### HTTP request headers
|
438
|
+
|
439
|
+
- **Content-Type**: Not defined
|
440
|
+
- **Accept**: Not defined
|
441
|
+
|
442
|
+
|
443
|
+
## update_recurrence
|
444
|
+
|
445
|
+
> <RecurrenceSingle> update_recurrence(id, recurrence)
|
446
|
+
|
447
|
+
Update existing recurring transaction.
|
448
|
+
|
449
|
+
Update existing recurring transaction.
|
450
|
+
|
451
|
+
### Examples
|
452
|
+
|
453
|
+
```ruby
|
454
|
+
require 'time'
|
455
|
+
require 'firefly_iii_client'
|
456
|
+
# setup authorization
|
457
|
+
FireflyIIIClient.configure do |config|
|
458
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
459
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
460
|
+
end
|
461
|
+
|
462
|
+
api_instance = FireflyIIIClient::RecurrencesApi.new
|
463
|
+
id = 1 # Integer | The ID of the recurring transaction.
|
464
|
+
recurrence = FireflyIIIClient::Recurrence.new({ type: 'withdrawal', title: 'Rent', first_date: Date.parse('Sun Sep 17 00:00:00 GMT 2017') }) # Recurrence | JSON array with updated recurring transaction information. See the model for the exact specifications.
|
465
|
+
|
466
|
+
begin
|
467
|
+
# Update existing recurring transaction.
|
468
|
+
result = api_instance.update_recurrence(id, recurrence)
|
469
|
+
p result
|
470
|
+
rescue FireflyIIIClient::ApiError => e
|
471
|
+
puts "Error when calling RecurrencesApi->update_recurrence: #{e}"
|
472
|
+
end
|
473
|
+
```
|
474
|
+
|
475
|
+
#### Using the update_recurrence_with_http_info variant
|
476
|
+
|
477
|
+
This returns an Array which contains the response data, status code and headers.
|
478
|
+
|
479
|
+
> <Array(<RecurrenceSingle>, Integer, Hash)> update_recurrence_with_http_info(id, recurrence)
|
480
|
+
|
481
|
+
```ruby
|
482
|
+
|
483
|
+
begin
|
484
|
+
# Update existing recurring transaction.
|
485
|
+
data, status_code, headers = api_instance.update_recurrence_with_http_info(id, recurrence)
|
486
|
+
p status_code # => 2xx
|
487
|
+
p headers # => { ... }
|
488
|
+
p data # => <RecurrenceSingle>
|
489
|
+
rescue FireflyIIIClient::ApiError => e
|
490
|
+
puts "Error when calling RecurrencesApi->update_recurrence_with_http_info: #{e}"
|
491
|
+
end
|
492
|
+
```
|
493
|
+
|
494
|
+
### Parameters
|
495
|
+
|
496
|
+
| Name | Type | Description | Notes |
|
497
|
+
| ---- | ---- | ----------- | ----- |
|
498
|
+
| **id** | **Integer** | The ID of the recurring transaction. | |
|
499
|
+
| **recurrence** | [**Recurrence**](Recurrence.md) | JSON array with updated recurring transaction information. See the model for the exact specifications. | |
|
500
|
+
|
501
|
+
### Return type
|
502
|
+
|
503
|
+
[**RecurrenceSingle**](RecurrenceSingle.md)
|
504
|
+
|
505
|
+
### Authorization
|
506
|
+
|
507
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
508
|
+
|
509
|
+
### HTTP request headers
|
510
|
+
|
511
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
512
|
+
- **Accept**: application/json
|
513
|
+
|