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/Budget.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# OpenapiClient::Budget
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional][readonly] |
|
8
|
+
| **updated_at** | **Time** | | [optional][readonly] |
|
9
|
+
| **name** | **String** | | |
|
10
|
+
| **active** | **Boolean** | | [optional] |
|
11
|
+
| **order** | **Integer** | | [optional][readonly] |
|
12
|
+
| **spent** | [**Array<BudgetSpent>**](BudgetSpent.md) | Information on how much was spent in this budget. Is only filled in when the start and end date are submitted. | [optional][readonly] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'firefly_iii_client'
|
18
|
+
|
19
|
+
instance = FireflyIIIClient::Budget.new(
|
20
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
21
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
22
|
+
name : Bills,
|
23
|
+
active : false,
|
24
|
+
order : 5,
|
25
|
+
spent : null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/BudgetArray.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# OpenapiClient::BudgetArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<BudgetRead>**](BudgetRead.md) | | [optional] |
|
8
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'firefly_iii_client'
|
14
|
+
|
15
|
+
instance = FireflyIIIClient::BudgetArray.new(
|
16
|
+
data: null,
|
17
|
+
meta: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/BudgetLimit.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# OpenapiClient::BudgetLimit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | | [optional][readonly] |
|
8
|
+
| **updated_at** | **Time** | | [optional][readonly] |
|
9
|
+
| **currency_id** | **Integer** | Use either currency_id or currency_code. Defaults to the user's default currency. | [optional] |
|
10
|
+
| **currency_code** | **String** | Use either currency_id or currency_code. Defaults to the user's default currency. | [optional] |
|
11
|
+
| **currency_symbol** | **String** | | [optional][readonly] |
|
12
|
+
| **currency_decimal_places** | **Integer** | | [optional][readonly] |
|
13
|
+
| **budget_id** | **Integer** | The budget ID of the associated budget. | |
|
14
|
+
| **start** | **Date** | Start date of the budget limit. | |
|
15
|
+
| **_end** | **Date** | End date of the budget limit. | |
|
16
|
+
| **amount** | **Float** | | |
|
17
|
+
| **spent** | [**Array<BudgetSpent>**](BudgetSpent.md) | | [optional][readonly] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'firefly_iii_client'
|
23
|
+
|
24
|
+
instance = FireflyIIIClient::BudgetLimit.new(
|
25
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
26
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
27
|
+
currency_id : 5,
|
28
|
+
currency_code : EUR,
|
29
|
+
currency_symbol : $,
|
30
|
+
currency_decimal_places : 2,
|
31
|
+
budget_id : 23,
|
32
|
+
start : Sun Sep 17 00 : 00 : 00 GMT 2017,
|
33
|
+
_end: Sun Sep 17 00 : 00 : 00 GMT 2017,
|
34
|
+
amount: 250,
|
35
|
+
spent: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# OpenapiClient::BudgetLimitArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<BudgetLimitRead>**](BudgetLimitRead.md) | | [optional] |
|
8
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'firefly_iii_client'
|
14
|
+
|
15
|
+
instance = FireflyIIIClient::BudgetLimitArray.new(
|
16
|
+
data: null,
|
17
|
+
meta: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::BudgetLimitRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**BudgetLimit**](BudgetLimit.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::BudgetLimitRead.new(
|
17
|
+
type: budget_limits,
|
18
|
+
id: 2,
|
19
|
+
attributes: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::BudgetLimitSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**BudgetLimitRead**](BudgetLimitRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::BudgetLimitSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/BudgetRead.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::BudgetRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**Budget**](Budget.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::BudgetRead.new(
|
17
|
+
type: budgets,
|
18
|
+
id: 2,
|
19
|
+
attributes: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::BudgetSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**BudgetRead**](BudgetRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::BudgetSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/BudgetSpent.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# OpenapiClient::BudgetSpent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **sum** | **Float** | The amount spent. | [optional] |
|
8
|
+
| **currency_id** | **Integer** | | [optional] |
|
9
|
+
| **currency_code** | **String** | | [optional] |
|
10
|
+
| **currency_symbol** | **String** | | [optional] |
|
11
|
+
| **currency_decimal_places** | **Integer** | Number of decimals supported by the currency | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'firefly_iii_client'
|
17
|
+
|
18
|
+
instance = FireflyIIIClient::BudgetSpent.new(
|
19
|
+
sum: -1929.11,
|
20
|
+
currency_id: 5,
|
21
|
+
currency_code: USD,
|
22
|
+
currency_symbol: $,
|
23
|
+
currency_decimal_places : 2
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/BudgetsApi.md
ADDED
@@ -0,0 +1,897 @@
|
|
1
|
+
# OpenapiClient::BudgetsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_budget**](BudgetsApi.md#delete_budget) | **DELETE** /api/v1/budgets/{id} | Delete a budget. |
|
8
|
+
| [**delete_budget_limit**](BudgetsApi.md#delete_budget_limit) | **DELETE** /api/v1/budgets/limits/{id} | Delete a budget limit. |
|
9
|
+
| [**get_budget**](BudgetsApi.md#get_budget) | **GET** /api/v1/budgets/{id} | Get a single budget. |
|
10
|
+
| [**get_budget_limit**](BudgetsApi.md#get_budget_limit) | **GET** /api/v1/budgets/limits/{id} | Get single budget limit. |
|
11
|
+
| [**list_budget**](BudgetsApi.md#list_budget) | **GET** /api/v1/budgets | List all budgets. |
|
12
|
+
| [**list_budget_limit_by_budget**](BudgetsApi.md#list_budget_limit_by_budget) | **GET** /api/v1/budgets/{id}/limits | Get all limits |
|
13
|
+
| [**list_transaction_by_budget**](BudgetsApi.md#list_transaction_by_budget) | **GET** /api/v1/budgets/{id}/transactions | All transactions to a budget. |
|
14
|
+
| [**list_transaction_by_budget_limit**](BudgetsApi.md#list_transaction_by_budget_limit) | **GET** /api/v1/budgets/limits/{id}/transactions | List all transactions by a budget limit ID. |
|
15
|
+
| [**store_budget**](BudgetsApi.md#store_budget) | **POST** /api/v1/budgets | Store a new budget |
|
16
|
+
| [**store_budget_limit**](BudgetsApi.md#store_budget_limit) | **POST** /api/v1/budgets/{id}/limits | Store new budget limit. |
|
17
|
+
| [**update_budget**](BudgetsApi.md#update_budget) | **PUT** /api/v1/budgets/{id} | Update existing budget. |
|
18
|
+
| [**update_budget_limit**](BudgetsApi.md#update_budget_limit) | **PUT** /api/v1/budgets/limits/{id} | Update existing budget limit. |
|
19
|
+
|
20
|
+
|
21
|
+
## delete_budget
|
22
|
+
|
23
|
+
> delete_budget(id)
|
24
|
+
|
25
|
+
Delete a budget.
|
26
|
+
|
27
|
+
Delete a budget. Transactions will not be deleted.
|
28
|
+
|
29
|
+
### Examples
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'time'
|
33
|
+
require 'firefly_iii_client'
|
34
|
+
# setup authorization
|
35
|
+
FireflyIIIClient.configure do |config|
|
36
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
37
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
41
|
+
id = 1 # Integer | The ID of the budget.
|
42
|
+
|
43
|
+
begin
|
44
|
+
# Delete a budget.
|
45
|
+
api_instance.delete_budget(id)
|
46
|
+
rescue FireflyIIIClient::ApiError => e
|
47
|
+
puts "Error when calling BudgetsApi->delete_budget: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
#### Using the delete_budget_with_http_info variant
|
52
|
+
|
53
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
54
|
+
|
55
|
+
> <Array(nil, Integer, Hash)> delete_budget_with_http_info(id)
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
|
59
|
+
begin
|
60
|
+
# Delete a budget.
|
61
|
+
data, status_code, headers = api_instance.delete_budget_with_http_info(id)
|
62
|
+
p status_code # => 2xx
|
63
|
+
p headers # => { ... }
|
64
|
+
p data # => nil
|
65
|
+
rescue FireflyIIIClient::ApiError => e
|
66
|
+
puts "Error when calling BudgetsApi->delete_budget_with_http_info: #{e}"
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
### Parameters
|
71
|
+
|
72
|
+
| Name | Type | Description | Notes |
|
73
|
+
| ---- | ---- | ----------- | ----- |
|
74
|
+
| **id** | **Integer** | The ID of the budget. | |
|
75
|
+
|
76
|
+
### Return type
|
77
|
+
|
78
|
+
nil (empty response body)
|
79
|
+
|
80
|
+
### Authorization
|
81
|
+
|
82
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
83
|
+
|
84
|
+
### HTTP request headers
|
85
|
+
|
86
|
+
- **Content-Type**: Not defined
|
87
|
+
- **Accept**: Not defined
|
88
|
+
|
89
|
+
|
90
|
+
## delete_budget_limit
|
91
|
+
|
92
|
+
> delete_budget_limit(id)
|
93
|
+
|
94
|
+
Delete a budget limit.
|
95
|
+
|
96
|
+
Delete a budget limit.
|
97
|
+
|
98
|
+
### Examples
|
99
|
+
|
100
|
+
```ruby
|
101
|
+
require 'time'
|
102
|
+
require 'firefly_iii_client'
|
103
|
+
# setup authorization
|
104
|
+
FireflyIIIClient.configure do |config|
|
105
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
106
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
107
|
+
end
|
108
|
+
|
109
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
110
|
+
id = 1 # Integer | The ID of the requested budget limit.
|
111
|
+
|
112
|
+
begin
|
113
|
+
# Delete a budget limit.
|
114
|
+
api_instance.delete_budget_limit(id)
|
115
|
+
rescue FireflyIIIClient::ApiError => e
|
116
|
+
puts "Error when calling BudgetsApi->delete_budget_limit: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
#### Using the delete_budget_limit_with_http_info variant
|
121
|
+
|
122
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
123
|
+
|
124
|
+
> <Array(nil, Integer, Hash)> delete_budget_limit_with_http_info(id)
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
|
128
|
+
begin
|
129
|
+
# Delete a budget limit.
|
130
|
+
data, status_code, headers = api_instance.delete_budget_limit_with_http_info(id)
|
131
|
+
p status_code # => 2xx
|
132
|
+
p headers # => { ... }
|
133
|
+
p data # => nil
|
134
|
+
rescue FireflyIIIClient::ApiError => e
|
135
|
+
puts "Error when calling BudgetsApi->delete_budget_limit_with_http_info: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
### Parameters
|
140
|
+
|
141
|
+
| Name | Type | Description | Notes |
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
143
|
+
| **id** | **Integer** | The ID of the requested budget limit. | |
|
144
|
+
|
145
|
+
### Return type
|
146
|
+
|
147
|
+
nil (empty response body)
|
148
|
+
|
149
|
+
### Authorization
|
150
|
+
|
151
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
152
|
+
|
153
|
+
### HTTP request headers
|
154
|
+
|
155
|
+
- **Content-Type**: Not defined
|
156
|
+
- **Accept**: Not defined
|
157
|
+
|
158
|
+
|
159
|
+
## get_budget
|
160
|
+
|
161
|
+
> <BudgetSingle> get_budget(id, opts)
|
162
|
+
|
163
|
+
Get a single budget.
|
164
|
+
|
165
|
+
Get a single budget. If the start date and end date are submitted as well, the \"spent\" array will be updated accordingly.
|
166
|
+
|
167
|
+
### Examples
|
168
|
+
|
169
|
+
```ruby
|
170
|
+
require 'time'
|
171
|
+
require 'firefly_iii_client'
|
172
|
+
# setup authorization
|
173
|
+
FireflyIIIClient.configure do |config|
|
174
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
175
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
176
|
+
end
|
177
|
+
|
178
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
179
|
+
id = 1 # Integer | The ID of the requested budget.
|
180
|
+
opts = {
|
181
|
+
start_date: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to get info on how much the user has spent.
|
182
|
+
end_date: Date.parse('Mon Dec 31 00:00:00 GMT 2018') # Date | A date formatted YYYY-MM-DD, to get info on how much the user has spent.
|
183
|
+
}
|
184
|
+
|
185
|
+
begin
|
186
|
+
# Get a single budget.
|
187
|
+
result = api_instance.get_budget(id, opts)
|
188
|
+
p result
|
189
|
+
rescue FireflyIIIClient::ApiError => e
|
190
|
+
puts "Error when calling BudgetsApi->get_budget: #{e}"
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
#### Using the get_budget_with_http_info variant
|
195
|
+
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
197
|
+
|
198
|
+
> <Array(<BudgetSingle>, Integer, Hash)> get_budget_with_http_info(id, opts)
|
199
|
+
|
200
|
+
```ruby
|
201
|
+
|
202
|
+
begin
|
203
|
+
# Get a single budget.
|
204
|
+
data, status_code, headers = api_instance.get_budget_with_http_info(id, opts)
|
205
|
+
p status_code # => 2xx
|
206
|
+
p headers # => { ... }
|
207
|
+
p data # => <BudgetSingle>
|
208
|
+
rescue FireflyIIIClient::ApiError => e
|
209
|
+
puts "Error when calling BudgetsApi->get_budget_with_http_info: #{e}"
|
210
|
+
end
|
211
|
+
```
|
212
|
+
|
213
|
+
### Parameters
|
214
|
+
|
215
|
+
| Name | Type | Description | Notes |
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
217
|
+
| **id** | **Integer** | The ID of the requested budget. | |
|
218
|
+
| **start_date** | **Date** | A date formatted YYYY-MM-DD, to get info on how much the user has spent. | [optional] |
|
219
|
+
| **end_date** | **Date** | A date formatted YYYY-MM-DD, to get info on how much the user has spent. | [optional] |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
[**BudgetSingle**](BudgetSingle.md)
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: Not defined
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
234
|
+
|
235
|
+
## get_budget_limit
|
236
|
+
|
237
|
+
> <BudgetLimitSingle> get_budget_limit(id)
|
238
|
+
|
239
|
+
Get single budget limit.
|
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::BudgetsApi.new
|
253
|
+
id = 1 # Integer | The ID of the requested budget limit.
|
254
|
+
|
255
|
+
begin
|
256
|
+
# Get single budget limit.
|
257
|
+
result = api_instance.get_budget_limit(id)
|
258
|
+
p result
|
259
|
+
rescue FireflyIIIClient::ApiError => e
|
260
|
+
puts "Error when calling BudgetsApi->get_budget_limit: #{e}"
|
261
|
+
end
|
262
|
+
```
|
263
|
+
|
264
|
+
#### Using the get_budget_limit_with_http_info variant
|
265
|
+
|
266
|
+
This returns an Array which contains the response data, status code and headers.
|
267
|
+
|
268
|
+
> <Array(<BudgetLimitSingle>, Integer, Hash)> get_budget_limit_with_http_info(id)
|
269
|
+
|
270
|
+
```ruby
|
271
|
+
|
272
|
+
begin
|
273
|
+
# Get single budget limit.
|
274
|
+
data, status_code, headers = api_instance.get_budget_limit_with_http_info(id)
|
275
|
+
p status_code # => 2xx
|
276
|
+
p headers # => { ... }
|
277
|
+
p data # => <BudgetLimitSingle>
|
278
|
+
rescue FireflyIIIClient::ApiError => e
|
279
|
+
puts "Error when calling BudgetsApi->get_budget_limit_with_http_info: #{e}"
|
280
|
+
end
|
281
|
+
```
|
282
|
+
|
283
|
+
### Parameters
|
284
|
+
|
285
|
+
| Name | Type | Description | Notes |
|
286
|
+
| ---- | ---- | ----------- | ----- |
|
287
|
+
| **id** | **Integer** | The ID of the requested budget limit. | |
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**BudgetLimitSingle**](BudgetLimitSingle.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: Not defined
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
## list_budget
|
304
|
+
|
305
|
+
> <BudgetArray> list_budget(opts)
|
306
|
+
|
307
|
+
List all budgets.
|
308
|
+
|
309
|
+
List all the budgets the user has made. If the start date and end date are submitted as well, the \"spent\" array will be updated accordingly.
|
310
|
+
|
311
|
+
### Examples
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
require 'time'
|
315
|
+
require 'firefly_iii_client'
|
316
|
+
# setup authorization
|
317
|
+
FireflyIIIClient.configure do |config|
|
318
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
319
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
323
|
+
opts = {
|
324
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
325
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to get info on how much the user has spent. You must submit both start and end.
|
326
|
+
_end: Date.parse('Mon Dec 31 00:00:00 GMT 2018') # Date | A date formatted YYYY-MM-DD, to get info on how much the user has spent. You must submit both start and end.
|
327
|
+
}
|
328
|
+
|
329
|
+
begin
|
330
|
+
# List all budgets.
|
331
|
+
result = api_instance.list_budget(opts)
|
332
|
+
p result
|
333
|
+
rescue FireflyIIIClient::ApiError => e
|
334
|
+
puts "Error when calling BudgetsApi->list_budget: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
#### Using the list_budget_with_http_info variant
|
339
|
+
|
340
|
+
This returns an Array which contains the response data, status code and headers.
|
341
|
+
|
342
|
+
> <Array(<BudgetArray>, Integer, Hash)> list_budget_with_http_info(opts)
|
343
|
+
|
344
|
+
```ruby
|
345
|
+
|
346
|
+
begin
|
347
|
+
# List all budgets.
|
348
|
+
data, status_code, headers = api_instance.list_budget_with_http_info(opts)
|
349
|
+
p status_code # => 2xx
|
350
|
+
p headers # => { ... }
|
351
|
+
p data # => <BudgetArray>
|
352
|
+
rescue FireflyIIIClient::ApiError => e
|
353
|
+
puts "Error when calling BudgetsApi->list_budget_with_http_info: #{e}"
|
354
|
+
end
|
355
|
+
```
|
356
|
+
|
357
|
+
### Parameters
|
358
|
+
|
359
|
+
| Name | Type | Description | Notes |
|
360
|
+
| ---- | ---- | ----------- | ----- |
|
361
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
362
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD, to get info on how much the user has spent. You must submit both start and end. | [optional] |
|
363
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD, to get info on how much the user has spent. You must submit both start and end. | [optional] |
|
364
|
+
|
365
|
+
### Return type
|
366
|
+
|
367
|
+
[**BudgetArray**](BudgetArray.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
|
+
## list_budget_limit_by_budget
|
380
|
+
|
381
|
+
> <BudgetLimitArray> list_budget_limit_by_budget(id, opts)
|
382
|
+
|
383
|
+
Get all limits
|
384
|
+
|
385
|
+
Get all budget limits for this budget and the money spent, and money left. You can limit the list by submitting a date range as well. The \"spent\" array for each budget limit is NOT influenced by the start and end date of your query, but by the start and end date of the budget limit itself.
|
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::BudgetsApi.new
|
399
|
+
id = 1 # Integer | The ID of the requested budget.
|
400
|
+
opts = {
|
401
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD.
|
402
|
+
_end: Date.parse('Mon Dec 31 00:00:00 GMT 2018') # Date | A date formatted YYYY-MM-DD.
|
403
|
+
}
|
404
|
+
|
405
|
+
begin
|
406
|
+
# Get all limits
|
407
|
+
result = api_instance.list_budget_limit_by_budget(id, opts)
|
408
|
+
p result
|
409
|
+
rescue FireflyIIIClient::ApiError => e
|
410
|
+
puts "Error when calling BudgetsApi->list_budget_limit_by_budget: #{e}"
|
411
|
+
end
|
412
|
+
```
|
413
|
+
|
414
|
+
#### Using the list_budget_limit_by_budget_with_http_info variant
|
415
|
+
|
416
|
+
This returns an Array which contains the response data, status code and headers.
|
417
|
+
|
418
|
+
> <Array(<BudgetLimitArray>, Integer, Hash)> list_budget_limit_by_budget_with_http_info(id, opts)
|
419
|
+
|
420
|
+
```ruby
|
421
|
+
|
422
|
+
begin
|
423
|
+
# Get all limits
|
424
|
+
data, status_code, headers = api_instance.list_budget_limit_by_budget_with_http_info(id, opts)
|
425
|
+
p status_code # => 2xx
|
426
|
+
p headers # => { ... }
|
427
|
+
p data # => <BudgetLimitArray>
|
428
|
+
rescue FireflyIIIClient::ApiError => e
|
429
|
+
puts "Error when calling BudgetsApi->list_budget_limit_by_budget_with_http_info: #{e}"
|
430
|
+
end
|
431
|
+
```
|
432
|
+
|
433
|
+
### Parameters
|
434
|
+
|
435
|
+
| Name | Type | Description | Notes |
|
436
|
+
| ---- | ---- | ----------- | ----- |
|
437
|
+
| **id** | **Integer** | The ID of the requested budget. | |
|
438
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. | [optional] |
|
439
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. | [optional] |
|
440
|
+
|
441
|
+
### Return type
|
442
|
+
|
443
|
+
[**BudgetLimitArray**](BudgetLimitArray.md)
|
444
|
+
|
445
|
+
### Authorization
|
446
|
+
|
447
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
448
|
+
|
449
|
+
### HTTP request headers
|
450
|
+
|
451
|
+
- **Content-Type**: Not defined
|
452
|
+
- **Accept**: application/json
|
453
|
+
|
454
|
+
|
455
|
+
## list_transaction_by_budget
|
456
|
+
|
457
|
+
> <TransactionArray> list_transaction_by_budget(id, opts)
|
458
|
+
|
459
|
+
All transactions to a budget.
|
460
|
+
|
461
|
+
Get all transactions linked to a budget, possibly limited by start and end
|
462
|
+
|
463
|
+
### Examples
|
464
|
+
|
465
|
+
```ruby
|
466
|
+
require 'time'
|
467
|
+
require 'firefly_iii_client'
|
468
|
+
# setup authorization
|
469
|
+
FireflyIIIClient.configure do |config|
|
470
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
471
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
472
|
+
end
|
473
|
+
|
474
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
475
|
+
id = 1 # Integer | The ID of the budget.
|
476
|
+
opts = {
|
477
|
+
limit: 5, # Integer | Limits the number of results on one page.
|
478
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
479
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD.
|
480
|
+
_end: Date.parse('Mon Dec 31 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD.
|
481
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned
|
482
|
+
}
|
483
|
+
|
484
|
+
begin
|
485
|
+
# All transactions to a budget.
|
486
|
+
result = api_instance.list_transaction_by_budget(id, opts)
|
487
|
+
p result
|
488
|
+
rescue FireflyIIIClient::ApiError => e
|
489
|
+
puts "Error when calling BudgetsApi->list_transaction_by_budget: #{e}"
|
490
|
+
end
|
491
|
+
```
|
492
|
+
|
493
|
+
#### Using the list_transaction_by_budget_with_http_info variant
|
494
|
+
|
495
|
+
This returns an Array which contains the response data, status code and headers.
|
496
|
+
|
497
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_budget_with_http_info(id, opts)
|
498
|
+
|
499
|
+
```ruby
|
500
|
+
|
501
|
+
begin
|
502
|
+
# All transactions to a budget.
|
503
|
+
data, status_code, headers = api_instance.list_transaction_by_budget_with_http_info(id, opts)
|
504
|
+
p status_code # => 2xx
|
505
|
+
p headers # => { ... }
|
506
|
+
p data # => <TransactionArray>
|
507
|
+
rescue FireflyIIIClient::ApiError => e
|
508
|
+
puts "Error when calling BudgetsApi->list_transaction_by_budget_with_http_info: #{e}"
|
509
|
+
end
|
510
|
+
```
|
511
|
+
|
512
|
+
### Parameters
|
513
|
+
|
514
|
+
| Name | Type | Description | Notes |
|
515
|
+
| ---- | ---- | ----------- | ----- |
|
516
|
+
| **id** | **Integer** | The ID of the budget. | |
|
517
|
+
| **limit** | **Integer** | Limits the number of results on one page. | [optional] |
|
518
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
519
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. | [optional] |
|
520
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. | [optional] |
|
521
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned | [optional] |
|
522
|
+
|
523
|
+
### Return type
|
524
|
+
|
525
|
+
[**TransactionArray**](TransactionArray.md)
|
526
|
+
|
527
|
+
### Authorization
|
528
|
+
|
529
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
530
|
+
|
531
|
+
### HTTP request headers
|
532
|
+
|
533
|
+
- **Content-Type**: Not defined
|
534
|
+
- **Accept**: application/json
|
535
|
+
|
536
|
+
|
537
|
+
## list_transaction_by_budget_limit
|
538
|
+
|
539
|
+
> <TransactionArray> list_transaction_by_budget_limit(id, opts)
|
540
|
+
|
541
|
+
List all transactions by a budget limit ID.
|
542
|
+
|
543
|
+
List all the transactions within one budget limit. The start and end date are dictated by the budget limit.
|
544
|
+
|
545
|
+
### Examples
|
546
|
+
|
547
|
+
```ruby
|
548
|
+
require 'time'
|
549
|
+
require 'firefly_iii_client'
|
550
|
+
# setup authorization
|
551
|
+
FireflyIIIClient.configure do |config|
|
552
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
553
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
554
|
+
end
|
555
|
+
|
556
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
557
|
+
id = 1 # Integer | The ID of the requested budget limit.
|
558
|
+
opts = {
|
559
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
560
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned
|
561
|
+
}
|
562
|
+
|
563
|
+
begin
|
564
|
+
# List all transactions by a budget limit ID.
|
565
|
+
result = api_instance.list_transaction_by_budget_limit(id, opts)
|
566
|
+
p result
|
567
|
+
rescue FireflyIIIClient::ApiError => e
|
568
|
+
puts "Error when calling BudgetsApi->list_transaction_by_budget_limit: #{e}"
|
569
|
+
end
|
570
|
+
```
|
571
|
+
|
572
|
+
#### Using the list_transaction_by_budget_limit_with_http_info variant
|
573
|
+
|
574
|
+
This returns an Array which contains the response data, status code and headers.
|
575
|
+
|
576
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_budget_limit_with_http_info(id, opts)
|
577
|
+
|
578
|
+
```ruby
|
579
|
+
|
580
|
+
begin
|
581
|
+
# List all transactions by a budget limit ID.
|
582
|
+
data, status_code, headers = api_instance.list_transaction_by_budget_limit_with_http_info(id, opts)
|
583
|
+
p status_code # => 2xx
|
584
|
+
p headers # => { ... }
|
585
|
+
p data # => <TransactionArray>
|
586
|
+
rescue FireflyIIIClient::ApiError => e
|
587
|
+
puts "Error when calling BudgetsApi->list_transaction_by_budget_limit_with_http_info: #{e}"
|
588
|
+
end
|
589
|
+
```
|
590
|
+
|
591
|
+
### Parameters
|
592
|
+
|
593
|
+
| Name | Type | Description | Notes |
|
594
|
+
| ---- | ---- | ----------- | ----- |
|
595
|
+
| **id** | **Integer** | The ID of the requested budget limit. | |
|
596
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
597
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned | [optional] |
|
598
|
+
|
599
|
+
### Return type
|
600
|
+
|
601
|
+
[**TransactionArray**](TransactionArray.md)
|
602
|
+
|
603
|
+
### Authorization
|
604
|
+
|
605
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
606
|
+
|
607
|
+
### HTTP request headers
|
608
|
+
|
609
|
+
- **Content-Type**: Not defined
|
610
|
+
- **Accept**: application/json
|
611
|
+
|
612
|
+
|
613
|
+
## store_budget
|
614
|
+
|
615
|
+
> <BudgetSingle> store_budget(budget)
|
616
|
+
|
617
|
+
Store a new budget
|
618
|
+
|
619
|
+
Creates a new budget. The data required can be submitted as a JSON body or as a list of parameters.
|
620
|
+
|
621
|
+
### Examples
|
622
|
+
|
623
|
+
```ruby
|
624
|
+
require 'time'
|
625
|
+
require 'firefly_iii_client'
|
626
|
+
# setup authorization
|
627
|
+
FireflyIIIClient.configure do |config|
|
628
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
629
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
630
|
+
end
|
631
|
+
|
632
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
633
|
+
budget = FireflyIIIClient::Budget.new({ name: 'Bills' }) # Budget | JSON array or key=value pairs with the necessary budget information. See the model for the exact specifications.
|
634
|
+
|
635
|
+
begin
|
636
|
+
# Store a new budget
|
637
|
+
result = api_instance.store_budget(budget)
|
638
|
+
p result
|
639
|
+
rescue FireflyIIIClient::ApiError => e
|
640
|
+
puts "Error when calling BudgetsApi->store_budget: #{e}"
|
641
|
+
end
|
642
|
+
```
|
643
|
+
|
644
|
+
#### Using the store_budget_with_http_info variant
|
645
|
+
|
646
|
+
This returns an Array which contains the response data, status code and headers.
|
647
|
+
|
648
|
+
> <Array(<BudgetSingle>, Integer, Hash)> store_budget_with_http_info(budget)
|
649
|
+
|
650
|
+
```ruby
|
651
|
+
|
652
|
+
begin
|
653
|
+
# Store a new budget
|
654
|
+
data, status_code, headers = api_instance.store_budget_with_http_info(budget)
|
655
|
+
p status_code # => 2xx
|
656
|
+
p headers # => { ... }
|
657
|
+
p data # => <BudgetSingle>
|
658
|
+
rescue FireflyIIIClient::ApiError => e
|
659
|
+
puts "Error when calling BudgetsApi->store_budget_with_http_info: #{e}"
|
660
|
+
end
|
661
|
+
```
|
662
|
+
|
663
|
+
### Parameters
|
664
|
+
|
665
|
+
| Name | Type | Description | Notes |
|
666
|
+
| ---- | ---- | ----------- | ----- |
|
667
|
+
| **budget** | [**Budget**](Budget.md) | JSON array or key=value pairs with the necessary budget information. See the model for the exact specifications. | |
|
668
|
+
|
669
|
+
### Return type
|
670
|
+
|
671
|
+
[**BudgetSingle**](BudgetSingle.md)
|
672
|
+
|
673
|
+
### Authorization
|
674
|
+
|
675
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
676
|
+
|
677
|
+
### HTTP request headers
|
678
|
+
|
679
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
680
|
+
- **Accept**: application/json
|
681
|
+
|
682
|
+
|
683
|
+
## store_budget_limit
|
684
|
+
|
685
|
+
> <BudgetLimitSingle> store_budget_limit(id, budget_limit)
|
686
|
+
|
687
|
+
Store new budget limit.
|
688
|
+
|
689
|
+
Store a new budget limit.
|
690
|
+
|
691
|
+
### Examples
|
692
|
+
|
693
|
+
```ruby
|
694
|
+
require 'time'
|
695
|
+
require 'firefly_iii_client'
|
696
|
+
# setup authorization
|
697
|
+
FireflyIIIClient.configure do |config|
|
698
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
699
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
700
|
+
end
|
701
|
+
|
702
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
703
|
+
id = 1 # Integer | The ID of the budget.
|
704
|
+
budget_limit = FireflyIIIClient::BudgetLimit.new({ budget_id: 23, start: Date.parse('Sun Sep 17 00:00:00 GMT 2017'), _end: Date.parse('Sun Sep 17 00:00:00 GMT 2017'), amount: 250 }) # BudgetLimit | JSON array or key=value pairs with the necessary budget information. See the model for the exact specifications.
|
705
|
+
|
706
|
+
begin
|
707
|
+
# Store new budget limit.
|
708
|
+
result = api_instance.store_budget_limit(id, budget_limit)
|
709
|
+
p result
|
710
|
+
rescue FireflyIIIClient::ApiError => e
|
711
|
+
puts "Error when calling BudgetsApi->store_budget_limit: #{e}"
|
712
|
+
end
|
713
|
+
```
|
714
|
+
|
715
|
+
#### Using the store_budget_limit_with_http_info variant
|
716
|
+
|
717
|
+
This returns an Array which contains the response data, status code and headers.
|
718
|
+
|
719
|
+
> <Array(<BudgetLimitSingle>, Integer, Hash)> store_budget_limit_with_http_info(id, budget_limit)
|
720
|
+
|
721
|
+
```ruby
|
722
|
+
|
723
|
+
begin
|
724
|
+
# Store new budget limit.
|
725
|
+
data, status_code, headers = api_instance.store_budget_limit_with_http_info(id, budget_limit)
|
726
|
+
p status_code # => 2xx
|
727
|
+
p headers # => { ... }
|
728
|
+
p data # => <BudgetLimitSingle>
|
729
|
+
rescue FireflyIIIClient::ApiError => e
|
730
|
+
puts "Error when calling BudgetsApi->store_budget_limit_with_http_info: #{e}"
|
731
|
+
end
|
732
|
+
```
|
733
|
+
|
734
|
+
### Parameters
|
735
|
+
|
736
|
+
| Name | Type | Description | Notes |
|
737
|
+
| ---- | ---- | ----------- | ----- |
|
738
|
+
| **id** | **Integer** | The ID of the budget. | |
|
739
|
+
| **budget_limit** | [**BudgetLimit**](BudgetLimit.md) | JSON array or key=value pairs with the necessary budget information. See the model for the exact specifications. | |
|
740
|
+
|
741
|
+
### Return type
|
742
|
+
|
743
|
+
[**BudgetLimitSingle**](BudgetLimitSingle.md)
|
744
|
+
|
745
|
+
### Authorization
|
746
|
+
|
747
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
748
|
+
|
749
|
+
### HTTP request headers
|
750
|
+
|
751
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
752
|
+
- **Accept**: application/json
|
753
|
+
|
754
|
+
|
755
|
+
## update_budget
|
756
|
+
|
757
|
+
> <BudgetSingle> update_budget(id, budget)
|
758
|
+
|
759
|
+
Update existing budget.
|
760
|
+
|
761
|
+
Update existing budget. This endpoint cannot be used to set budget amount limits.
|
762
|
+
|
763
|
+
### Examples
|
764
|
+
|
765
|
+
```ruby
|
766
|
+
require 'time'
|
767
|
+
require 'firefly_iii_client'
|
768
|
+
# setup authorization
|
769
|
+
FireflyIIIClient.configure do |config|
|
770
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
771
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
772
|
+
end
|
773
|
+
|
774
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
775
|
+
id = 1 # Integer | The ID of the budget.
|
776
|
+
budget = FireflyIIIClient::Budget.new({ name: 'Bills' }) # Budget | JSON array with updated budget information. See the model for the exact specifications.
|
777
|
+
|
778
|
+
begin
|
779
|
+
# Update existing budget.
|
780
|
+
result = api_instance.update_budget(id, budget)
|
781
|
+
p result
|
782
|
+
rescue FireflyIIIClient::ApiError => e
|
783
|
+
puts "Error when calling BudgetsApi->update_budget: #{e}"
|
784
|
+
end
|
785
|
+
```
|
786
|
+
|
787
|
+
#### Using the update_budget_with_http_info variant
|
788
|
+
|
789
|
+
This returns an Array which contains the response data, status code and headers.
|
790
|
+
|
791
|
+
> <Array(<BudgetSingle>, Integer, Hash)> update_budget_with_http_info(id, budget)
|
792
|
+
|
793
|
+
```ruby
|
794
|
+
|
795
|
+
begin
|
796
|
+
# Update existing budget.
|
797
|
+
data, status_code, headers = api_instance.update_budget_with_http_info(id, budget)
|
798
|
+
p status_code # => 2xx
|
799
|
+
p headers # => { ... }
|
800
|
+
p data # => <BudgetSingle>
|
801
|
+
rescue FireflyIIIClient::ApiError => e
|
802
|
+
puts "Error when calling BudgetsApi->update_budget_with_http_info: #{e}"
|
803
|
+
end
|
804
|
+
```
|
805
|
+
|
806
|
+
### Parameters
|
807
|
+
|
808
|
+
| Name | Type | Description | Notes |
|
809
|
+
| ---- | ---- | ----------- | ----- |
|
810
|
+
| **id** | **Integer** | The ID of the budget. | |
|
811
|
+
| **budget** | [**Budget**](Budget.md) | JSON array with updated budget information. See the model for the exact specifications. | |
|
812
|
+
|
813
|
+
### Return type
|
814
|
+
|
815
|
+
[**BudgetSingle**](BudgetSingle.md)
|
816
|
+
|
817
|
+
### Authorization
|
818
|
+
|
819
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
820
|
+
|
821
|
+
### HTTP request headers
|
822
|
+
|
823
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
824
|
+
- **Accept**: application/json
|
825
|
+
|
826
|
+
|
827
|
+
## update_budget_limit
|
828
|
+
|
829
|
+
> <BudgetLimitSingle> update_budget_limit(id, budget_limit)
|
830
|
+
|
831
|
+
Update existing budget limit.
|
832
|
+
|
833
|
+
Update existing budget limit.
|
834
|
+
|
835
|
+
### Examples
|
836
|
+
|
837
|
+
```ruby
|
838
|
+
require 'time'
|
839
|
+
require 'firefly_iii_client'
|
840
|
+
# setup authorization
|
841
|
+
FireflyIIIClient.configure do |config|
|
842
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
843
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
844
|
+
end
|
845
|
+
|
846
|
+
api_instance = FireflyIIIClient::BudgetsApi.new
|
847
|
+
id = 1 # Integer | The ID of the requested budget limit. The budget limit MUST be associated to the budget ID.
|
848
|
+
budget_limit = FireflyIIIClient::BudgetLimit.new({ budget_id: 23, start: Date.parse('Sun Sep 17 00:00:00 GMT 2017'), _end: Date.parse('Sun Sep 17 00:00:00 GMT 2017'), amount: 250 }) # BudgetLimit | JSON array with updated budget limit information. See the model for the exact specifications.
|
849
|
+
|
850
|
+
begin
|
851
|
+
# Update existing budget limit.
|
852
|
+
result = api_instance.update_budget_limit(id, budget_limit)
|
853
|
+
p result
|
854
|
+
rescue FireflyIIIClient::ApiError => e
|
855
|
+
puts "Error when calling BudgetsApi->update_budget_limit: #{e}"
|
856
|
+
end
|
857
|
+
```
|
858
|
+
|
859
|
+
#### Using the update_budget_limit_with_http_info variant
|
860
|
+
|
861
|
+
This returns an Array which contains the response data, status code and headers.
|
862
|
+
|
863
|
+
> <Array(<BudgetLimitSingle>, Integer, Hash)> update_budget_limit_with_http_info(id, budget_limit)
|
864
|
+
|
865
|
+
```ruby
|
866
|
+
|
867
|
+
begin
|
868
|
+
# Update existing budget limit.
|
869
|
+
data, status_code, headers = api_instance.update_budget_limit_with_http_info(id, budget_limit)
|
870
|
+
p status_code # => 2xx
|
871
|
+
p headers # => { ... }
|
872
|
+
p data # => <BudgetLimitSingle>
|
873
|
+
rescue FireflyIIIClient::ApiError => e
|
874
|
+
puts "Error when calling BudgetsApi->update_budget_limit_with_http_info: #{e}"
|
875
|
+
end
|
876
|
+
```
|
877
|
+
|
878
|
+
### Parameters
|
879
|
+
|
880
|
+
| Name | Type | Description | Notes |
|
881
|
+
| ---- | ---- | ----------- | ----- |
|
882
|
+
| **id** | **Integer** | The ID of the requested budget limit. The budget limit MUST be associated to the budget ID. | |
|
883
|
+
| **budget_limit** | [**BudgetLimit**](BudgetLimit.md) | JSON array with updated budget limit information. See the model for the exact specifications. | |
|
884
|
+
|
885
|
+
### Return type
|
886
|
+
|
887
|
+
[**BudgetLimitSingle**](BudgetLimitSingle.md)
|
888
|
+
|
889
|
+
### Authorization
|
890
|
+
|
891
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
892
|
+
|
893
|
+
### HTTP request headers
|
894
|
+
|
895
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
896
|
+
- **Accept**: application/json
|
897
|
+
|