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/Account.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# OpenapiClient::Account
|
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
|
+
| **type** | **String** | Can only be one one these account types. import, initial-balance and reconciliation cannot be set manually. | |
|
11
|
+
| **iban** | **String** | | [optional] |
|
12
|
+
| **bic** | **String** | | [optional] |
|
13
|
+
| **account_number** | **String** | | [optional] |
|
14
|
+
| **opening_balance** | **Float** | | [optional] |
|
15
|
+
| **opening_balance_date** | **Date** | | [optional] |
|
16
|
+
| **virtual_balance** | **Float** | | [optional] |
|
17
|
+
| **current_balance** | **Float** | | [optional][readonly] |
|
18
|
+
| **current_balance_date** | **Date** | | [optional][readonly] |
|
19
|
+
| **currency_id** | **Integer** | Use either currency_id or currency_code. Defaults to the user's default currency. | [optional] |
|
20
|
+
| **currency_code** | **String** | Use either currency_id or currency_code. Defaults to the user's default currency. | [optional] |
|
21
|
+
| **currency_symbol** | **String** | | [optional][readonly] |
|
22
|
+
| **currency_decimal_places** | **Integer** | | [optional][readonly] |
|
23
|
+
| **active** | **Boolean** | If omitted, defaults to true. | [optional] |
|
24
|
+
| **include_net_worth** | **Boolean** | If omitted, defaults to true. | [optional] |
|
25
|
+
| **account_role** | **String** | Is only mandatory when the type is asset. | |
|
26
|
+
| **credit_card_type** | **String** | Mandatory when the account_role is ccAsset. Can only be monthlyFull. | [optional] |
|
27
|
+
| **monthly_payment_date** | **Date** | Mandatory when the account_role is ccAsset. Moment at which CC payment installments are asked for by the bank. | [optional] |
|
28
|
+
| **liability_type** | **String** | Mandatory when type is liability. Specifies the exact type. | [optional] |
|
29
|
+
| **liability_amount** | **Float** | Mandatory when type is liability. Amount of money in the liability. Must be positive. | [optional] |
|
30
|
+
| **liability_start_date** | **Date** | Mandatory when type is liability. Start date for the liability. | [optional] |
|
31
|
+
| **interest** | **Float** | Mandatory when type is liability. Interest percentage. | [optional] |
|
32
|
+
| **interest_period** | **String** | Mandatory when type is liability. Period over which the interest is calculated. | [optional] |
|
33
|
+
| **notes** | **String** | | [optional] |
|
34
|
+
|
35
|
+
## Example
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
require 'firefly_iii_client'
|
39
|
+
|
40
|
+
instance = FireflyIIIClient::Account.new(
|
41
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
42
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
43
|
+
name : My checking account,
|
44
|
+
type: asset,
|
45
|
+
iban: GB98MIDL07009312345678,
|
46
|
+
bic: BOFAUS3N,
|
47
|
+
account_number: 7009312345678,
|
48
|
+
opening_balance: -1012.12,
|
49
|
+
opening_balance_date: Mon Sep 17 00 : 00 : 00 GMT 2018,
|
50
|
+
virtual_balance: 1000,
|
51
|
+
current_balance: 152.34,
|
52
|
+
current_balance_date: Mon Sep 17 00 : 00 : 00 GMT 2018,
|
53
|
+
currency_id: 12,
|
54
|
+
currency_code: EUR,
|
55
|
+
currency_symbol: $,
|
56
|
+
currency_decimal_places : 2,
|
57
|
+
active : true,
|
58
|
+
include_net_worth : true,
|
59
|
+
account_role : defaultAsset,
|
60
|
+
credit_card_type : monthlyFull,
|
61
|
+
monthly_payment_date : Mon Sep 17 00 : 00 : 00 GMT 2018,
|
62
|
+
liability_type: loan,
|
63
|
+
liability_amount: 12000,
|
64
|
+
liability_start_date: Sun Sep 17 00 : 00 : 00 GMT 2017,
|
65
|
+
interest: 3,
|
66
|
+
interest_period: monthly,
|
67
|
+
notes: Some example notes
|
68
|
+
)
|
69
|
+
```
|
70
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# OpenapiClient::AccountArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<AccountRead>**](AccountRead.md) | | [optional] |
|
8
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'firefly_iii_client'
|
14
|
+
|
15
|
+
instance = FireflyIIIClient::AccountArray.new(
|
16
|
+
data: null,
|
17
|
+
meta: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/AccountRead.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::AccountRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**Account**](Account.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::AccountRead.new(
|
17
|
+
type: accounts,
|
18
|
+
id: 2,
|
19
|
+
attributes: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::AccountSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**AccountRead**](AccountRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::AccountSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# OpenapiClient::AccountTypeFilter
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'firefly_iii_client'
|
12
|
+
|
13
|
+
instance = FireflyIIIClient::AccountTypeFilter.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# OpenapiClient::AccountTypeProperty
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'firefly_iii_client'
|
12
|
+
|
13
|
+
instance = FireflyIIIClient::AccountTypeProperty.new()
|
14
|
+
```
|
15
|
+
|
data/docs/AccountsApi.md
ADDED
@@ -0,0 +1,531 @@
|
|
1
|
+
# OpenapiClient::AccountsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_account**](AccountsApi.md#delete_account) | **DELETE** /api/v1/accounts/{id} | Permanently delete account. |
|
8
|
+
| [**get_account**](AccountsApi.md#get_account) | **GET** /api/v1/accounts/{id} | Get single account. |
|
9
|
+
| [**list_account**](AccountsApi.md#list_account) | **GET** /api/v1/accounts | List all accounts. |
|
10
|
+
| [**list_piggy_bank_by_account**](AccountsApi.md#list_piggy_bank_by_account) | **GET** /api/v1/accounts/{id}/piggy_banks | List all piggy banks related to the account. |
|
11
|
+
| [**list_transaction_by_account**](AccountsApi.md#list_transaction_by_account) | **GET** /api/v1/accounts/{id}/transactions | List all transactions related to the account. |
|
12
|
+
| [**store_account**](AccountsApi.md#store_account) | **POST** /api/v1/accounts | Create new account. |
|
13
|
+
| [**update_account**](AccountsApi.md#update_account) | **PUT** /api/v1/accounts/{id} | Update existing account. |
|
14
|
+
|
15
|
+
|
16
|
+
## delete_account
|
17
|
+
|
18
|
+
> delete_account(id)
|
19
|
+
|
20
|
+
Permanently delete account.
|
21
|
+
|
22
|
+
Will permanently delete an account. Any associated transactions and piggy banks are ALSO deleted. Cannot be recovered from.
|
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::AccountsApi.new
|
36
|
+
id = 1 # Integer | The ID of the account.
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Permanently delete account.
|
40
|
+
api_instance.delete_account(id)
|
41
|
+
rescue FireflyIIIClient::ApiError => e
|
42
|
+
puts "Error when calling AccountsApi->delete_account: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the delete_account_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_account_with_http_info(id)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
|
54
|
+
begin
|
55
|
+
# Permanently delete account.
|
56
|
+
data, status_code, headers = api_instance.delete_account_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 AccountsApi->delete_account_with_http_info: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
| Name | Type | Description | Notes |
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
69
|
+
| **id** | **Integer** | The ID of the account. | |
|
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_account
|
86
|
+
|
87
|
+
> <AccountSingle> get_account(id, opts)
|
88
|
+
|
89
|
+
Get single account.
|
90
|
+
|
91
|
+
Returns a single account by its ID.
|
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::AccountsApi.new
|
105
|
+
id = 1 # Integer | The ID of the account.
|
106
|
+
opts = {
|
107
|
+
date: Date.parse('2013-10-20') # Date | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day.
|
108
|
+
}
|
109
|
+
|
110
|
+
begin
|
111
|
+
# Get single account.
|
112
|
+
result = api_instance.get_account(id, opts)
|
113
|
+
p result
|
114
|
+
rescue FireflyIIIClient::ApiError => e
|
115
|
+
puts "Error when calling AccountsApi->get_account: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
#### Using the get_account_with_http_info variant
|
120
|
+
|
121
|
+
This returns an Array which contains the response data, status code and headers.
|
122
|
+
|
123
|
+
> <Array(<AccountSingle>, Integer, Hash)> get_account_with_http_info(id, opts)
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
|
127
|
+
begin
|
128
|
+
# Get single account.
|
129
|
+
data, status_code, headers = api_instance.get_account_with_http_info(id, opts)
|
130
|
+
p status_code # => 2xx
|
131
|
+
p headers # => { ... }
|
132
|
+
p data # => <AccountSingle>
|
133
|
+
rescue FireflyIIIClient::ApiError => e
|
134
|
+
puts "Error when calling AccountsApi->get_account_with_http_info: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description | Notes |
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
142
|
+
| **id** | **Integer** | The ID of the account. | |
|
143
|
+
| **date** | **Date** | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. | [optional] |
|
144
|
+
|
145
|
+
### Return type
|
146
|
+
|
147
|
+
[**AccountSingle**](AccountSingle.md)
|
148
|
+
|
149
|
+
### Authorization
|
150
|
+
|
151
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
152
|
+
|
153
|
+
### HTTP request headers
|
154
|
+
|
155
|
+
- **Content-Type**: Not defined
|
156
|
+
- **Accept**: application/json
|
157
|
+
|
158
|
+
|
159
|
+
## list_account
|
160
|
+
|
161
|
+
> <AccountArray> list_account(opts)
|
162
|
+
|
163
|
+
List all accounts.
|
164
|
+
|
165
|
+
This endpoint returns a list of all the accounts owned by the authenticated user.
|
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::AccountsApi.new
|
179
|
+
opts = {
|
180
|
+
page: 1, # Integer | Page number. The default pagination is per 50 items.
|
181
|
+
date: Date.parse('2013-10-20'), # Date | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day.
|
182
|
+
type: FireflyIIIClient::AccountTypeFilter::ALL # AccountTypeFilter | Optional filter on the account type(s) returned
|
183
|
+
}
|
184
|
+
|
185
|
+
begin
|
186
|
+
# List all accounts.
|
187
|
+
result = api_instance.list_account(opts)
|
188
|
+
p result
|
189
|
+
rescue FireflyIIIClient::ApiError => e
|
190
|
+
puts "Error when calling AccountsApi->list_account: #{e}"
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
#### Using the list_account_with_http_info variant
|
195
|
+
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
197
|
+
|
198
|
+
> <Array(<AccountArray>, Integer, Hash)> list_account_with_http_info(opts)
|
199
|
+
|
200
|
+
```ruby
|
201
|
+
|
202
|
+
begin
|
203
|
+
# List all accounts.
|
204
|
+
data, status_code, headers = api_instance.list_account_with_http_info(opts)
|
205
|
+
p status_code # => 2xx
|
206
|
+
p headers # => { ... }
|
207
|
+
p data # => <AccountArray>
|
208
|
+
rescue FireflyIIIClient::ApiError => e
|
209
|
+
puts "Error when calling AccountsApi->list_account_with_http_info: #{e}"
|
210
|
+
end
|
211
|
+
```
|
212
|
+
|
213
|
+
### Parameters
|
214
|
+
|
215
|
+
| Name | Type | Description | Notes |
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
217
|
+
| **page** | **Integer** | Page number. The default pagination is per 50 items. | [optional] |
|
218
|
+
| **date** | **Date** | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. | [optional] |
|
219
|
+
| **type** | [**AccountTypeFilter**](.md) | Optional filter on the account type(s) returned | [optional] |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
[**AccountArray**](AccountArray.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
|
+
## list_piggy_bank_by_account
|
236
|
+
|
237
|
+
> <PiggyBankArray> list_piggy_bank_by_account(id, opts)
|
238
|
+
|
239
|
+
List all piggy banks related to the account.
|
240
|
+
|
241
|
+
This endpoint returns a list of all the piggy banks connected to the account.
|
242
|
+
|
243
|
+
### Examples
|
244
|
+
|
245
|
+
```ruby
|
246
|
+
require 'time'
|
247
|
+
require 'firefly_iii_client'
|
248
|
+
# setup authorization
|
249
|
+
FireflyIIIClient.configure do |config|
|
250
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
251
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
252
|
+
end
|
253
|
+
|
254
|
+
api_instance = FireflyIIIClient::AccountsApi.new
|
255
|
+
id = 1 # Integer | The ID of the account.
|
256
|
+
opts = {
|
257
|
+
page: 56 # Integer | Page number. The default pagination is per 50 items.
|
258
|
+
}
|
259
|
+
|
260
|
+
begin
|
261
|
+
# List all piggy banks related to the account.
|
262
|
+
result = api_instance.list_piggy_bank_by_account(id, opts)
|
263
|
+
p result
|
264
|
+
rescue FireflyIIIClient::ApiError => e
|
265
|
+
puts "Error when calling AccountsApi->list_piggy_bank_by_account: #{e}"
|
266
|
+
end
|
267
|
+
```
|
268
|
+
|
269
|
+
#### Using the list_piggy_bank_by_account_with_http_info variant
|
270
|
+
|
271
|
+
This returns an Array which contains the response data, status code and headers.
|
272
|
+
|
273
|
+
> <Array(<PiggyBankArray>, Integer, Hash)> list_piggy_bank_by_account_with_http_info(id, opts)
|
274
|
+
|
275
|
+
```ruby
|
276
|
+
|
277
|
+
begin
|
278
|
+
# List all piggy banks related to the account.
|
279
|
+
data, status_code, headers = api_instance.list_piggy_bank_by_account_with_http_info(id, opts)
|
280
|
+
p status_code # => 2xx
|
281
|
+
p headers # => { ... }
|
282
|
+
p data # => <PiggyBankArray>
|
283
|
+
rescue FireflyIIIClient::ApiError => e
|
284
|
+
puts "Error when calling AccountsApi->list_piggy_bank_by_account_with_http_info: #{e}"
|
285
|
+
end
|
286
|
+
```
|
287
|
+
|
288
|
+
### Parameters
|
289
|
+
|
290
|
+
| Name | Type | Description | Notes |
|
291
|
+
| ---- | ---- | ----------- | ----- |
|
292
|
+
| **id** | **Integer** | The ID of the account. | |
|
293
|
+
| **page** | **Integer** | Page number. The default pagination is per 50 items. | [optional] |
|
294
|
+
|
295
|
+
### Return type
|
296
|
+
|
297
|
+
[**PiggyBankArray**](PiggyBankArray.md)
|
298
|
+
|
299
|
+
### Authorization
|
300
|
+
|
301
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
302
|
+
|
303
|
+
### HTTP request headers
|
304
|
+
|
305
|
+
- **Content-Type**: Not defined
|
306
|
+
- **Accept**: application/json
|
307
|
+
|
308
|
+
|
309
|
+
## list_transaction_by_account
|
310
|
+
|
311
|
+
> <TransactionArray> list_transaction_by_account(id, opts)
|
312
|
+
|
313
|
+
List all transactions related to the account.
|
314
|
+
|
315
|
+
This endpoint returns a list of all the transactions connected to the account.
|
316
|
+
|
317
|
+
### Examples
|
318
|
+
|
319
|
+
```ruby
|
320
|
+
require 'time'
|
321
|
+
require 'firefly_iii_client'
|
322
|
+
# setup authorization
|
323
|
+
FireflyIIIClient.configure do |config|
|
324
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
325
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
326
|
+
end
|
327
|
+
|
328
|
+
api_instance = FireflyIIIClient::AccountsApi.new
|
329
|
+
id = 1 # Integer | The ID of the account.
|
330
|
+
opts = {
|
331
|
+
page: 1, # Integer | Page number. The default pagination is per 50 items.
|
332
|
+
limit: 5, # Integer | Limits the number of results on one page.
|
333
|
+
start: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD.
|
334
|
+
_end: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD.
|
335
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned.
|
336
|
+
}
|
337
|
+
|
338
|
+
begin
|
339
|
+
# List all transactions related to the account.
|
340
|
+
result = api_instance.list_transaction_by_account(id, opts)
|
341
|
+
p result
|
342
|
+
rescue FireflyIIIClient::ApiError => e
|
343
|
+
puts "Error when calling AccountsApi->list_transaction_by_account: #{e}"
|
344
|
+
end
|
345
|
+
```
|
346
|
+
|
347
|
+
#### Using the list_transaction_by_account_with_http_info variant
|
348
|
+
|
349
|
+
This returns an Array which contains the response data, status code and headers.
|
350
|
+
|
351
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_account_with_http_info(id, opts)
|
352
|
+
|
353
|
+
```ruby
|
354
|
+
|
355
|
+
begin
|
356
|
+
# List all transactions related to the account.
|
357
|
+
data, status_code, headers = api_instance.list_transaction_by_account_with_http_info(id, opts)
|
358
|
+
p status_code # => 2xx
|
359
|
+
p headers # => { ... }
|
360
|
+
p data # => <TransactionArray>
|
361
|
+
rescue FireflyIIIClient::ApiError => e
|
362
|
+
puts "Error when calling AccountsApi->list_transaction_by_account_with_http_info: #{e}"
|
363
|
+
end
|
364
|
+
```
|
365
|
+
|
366
|
+
### Parameters
|
367
|
+
|
368
|
+
| Name | Type | Description | Notes |
|
369
|
+
| ---- | ---- | ----------- | ----- |
|
370
|
+
| **id** | **Integer** | The ID of the account. | |
|
371
|
+
| **page** | **Integer** | Page number. The default pagination is per 50 items. | [optional] |
|
372
|
+
| **limit** | **Integer** | Limits the number of results on one page. | [optional] |
|
373
|
+
| **start** | **Date** | A date formatted YYYY-MM-DD. | [optional] |
|
374
|
+
| **_end** | **Date** | A date formatted YYYY-MM-DD. | [optional] |
|
375
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned. | [optional] |
|
376
|
+
|
377
|
+
### Return type
|
378
|
+
|
379
|
+
[**TransactionArray**](TransactionArray.md)
|
380
|
+
|
381
|
+
### Authorization
|
382
|
+
|
383
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
384
|
+
|
385
|
+
### HTTP request headers
|
386
|
+
|
387
|
+
- **Content-Type**: Not defined
|
388
|
+
- **Accept**: application/json
|
389
|
+
|
390
|
+
|
391
|
+
## store_account
|
392
|
+
|
393
|
+
> <AccountSingle> store_account(account)
|
394
|
+
|
395
|
+
Create new account.
|
396
|
+
|
397
|
+
Creates a new account. The data required can be submitted as a JSON body or as a list of parameters (in key=value pairs, like a webform).
|
398
|
+
|
399
|
+
### Examples
|
400
|
+
|
401
|
+
```ruby
|
402
|
+
require 'time'
|
403
|
+
require 'firefly_iii_client'
|
404
|
+
# setup authorization
|
405
|
+
FireflyIIIClient.configure do |config|
|
406
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
407
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
408
|
+
end
|
409
|
+
|
410
|
+
api_instance = FireflyIIIClient::AccountsApi.new
|
411
|
+
account = FireflyIIIClient::Account.new({ name: 'My checking account', type: 'asset', account_role: 'defaultAsset' }) # Account | JSON array with the necessary account information or key=value pairs. See the model for the exact specifications.
|
412
|
+
|
413
|
+
begin
|
414
|
+
# Create new account.
|
415
|
+
result = api_instance.store_account(account)
|
416
|
+
p result
|
417
|
+
rescue FireflyIIIClient::ApiError => e
|
418
|
+
puts "Error when calling AccountsApi->store_account: #{e}"
|
419
|
+
end
|
420
|
+
```
|
421
|
+
|
422
|
+
#### Using the store_account_with_http_info variant
|
423
|
+
|
424
|
+
This returns an Array which contains the response data, status code and headers.
|
425
|
+
|
426
|
+
> <Array(<AccountSingle>, Integer, Hash)> store_account_with_http_info(account)
|
427
|
+
|
428
|
+
```ruby
|
429
|
+
|
430
|
+
begin
|
431
|
+
# Create new account.
|
432
|
+
data, status_code, headers = api_instance.store_account_with_http_info(account)
|
433
|
+
p status_code # => 2xx
|
434
|
+
p headers # => { ... }
|
435
|
+
p data # => <AccountSingle>
|
436
|
+
rescue FireflyIIIClient::ApiError => e
|
437
|
+
puts "Error when calling AccountsApi->store_account_with_http_info: #{e}"
|
438
|
+
end
|
439
|
+
```
|
440
|
+
|
441
|
+
### Parameters
|
442
|
+
|
443
|
+
| Name | Type | Description | Notes |
|
444
|
+
| ---- | ---- | ----------- | ----- |
|
445
|
+
| **account** | [**Account**](Account.md) | JSON array with the necessary account information or key=value pairs. See the model for the exact specifications. | |
|
446
|
+
|
447
|
+
### Return type
|
448
|
+
|
449
|
+
[**AccountSingle**](AccountSingle.md)
|
450
|
+
|
451
|
+
### Authorization
|
452
|
+
|
453
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
454
|
+
|
455
|
+
### HTTP request headers
|
456
|
+
|
457
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
458
|
+
- **Accept**: application/json
|
459
|
+
|
460
|
+
|
461
|
+
## update_account
|
462
|
+
|
463
|
+
> <AccountSingle> update_account(id, account)
|
464
|
+
|
465
|
+
Update existing account.
|
466
|
+
|
467
|
+
Used to update a single account. All fields that are not submitted will be cleared (set to NULL). The model will tell you which fields are mandatory.
|
468
|
+
|
469
|
+
### Examples
|
470
|
+
|
471
|
+
```ruby
|
472
|
+
require 'time'
|
473
|
+
require 'firefly_iii_client'
|
474
|
+
# setup authorization
|
475
|
+
FireflyIIIClient.configure do |config|
|
476
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
477
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
478
|
+
end
|
479
|
+
|
480
|
+
api_instance = FireflyIIIClient::AccountsApi.new
|
481
|
+
id = 1 # Integer | The ID of the account.
|
482
|
+
account = FireflyIIIClient::Account.new({ name: 'My checking account', type: 'asset', account_role: 'defaultAsset' }) # Account | JSON array or formdata with updated account information. See the model for the exact specifications.
|
483
|
+
|
484
|
+
begin
|
485
|
+
# Update existing account.
|
486
|
+
result = api_instance.update_account(id, account)
|
487
|
+
p result
|
488
|
+
rescue FireflyIIIClient::ApiError => e
|
489
|
+
puts "Error when calling AccountsApi->update_account: #{e}"
|
490
|
+
end
|
491
|
+
```
|
492
|
+
|
493
|
+
#### Using the update_account_with_http_info variant
|
494
|
+
|
495
|
+
This returns an Array which contains the response data, status code and headers.
|
496
|
+
|
497
|
+
> <Array(<AccountSingle>, Integer, Hash)> update_account_with_http_info(id, account)
|
498
|
+
|
499
|
+
```ruby
|
500
|
+
|
501
|
+
begin
|
502
|
+
# Update existing account.
|
503
|
+
data, status_code, headers = api_instance.update_account_with_http_info(id, account)
|
504
|
+
p status_code # => 2xx
|
505
|
+
p headers # => { ... }
|
506
|
+
p data # => <AccountSingle>
|
507
|
+
rescue FireflyIIIClient::ApiError => e
|
508
|
+
puts "Error when calling AccountsApi->update_account_with_http_info: #{e}"
|
509
|
+
end
|
510
|
+
```
|
511
|
+
|
512
|
+
### Parameters
|
513
|
+
|
514
|
+
| Name | Type | Description | Notes |
|
515
|
+
| ---- | ---- | ----------- | ----- |
|
516
|
+
| **id** | **Integer** | The ID of the account. | |
|
517
|
+
| **account** | [**Account**](Account.md) | JSON array or formdata with updated account information. See the model for the exact specifications. | |
|
518
|
+
|
519
|
+
### Return type
|
520
|
+
|
521
|
+
[**AccountSingle**](AccountSingle.md)
|
522
|
+
|
523
|
+
### Authorization
|
524
|
+
|
525
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
526
|
+
|
527
|
+
### HTTP request headers
|
528
|
+
|
529
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
530
|
+
- **Accept**: application/json
|
531
|
+
|