firefly-iii-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +349 -0
- data/Rakefile +10 -0
- data/docs/AboutApi.md +143 -0
- data/docs/Account.md +70 -0
- data/docs/AccountArray.md +20 -0
- data/docs/AccountRead.md +22 -0
- data/docs/AccountSingle.md +18 -0
- data/docs/AccountTypeFilter.md +15 -0
- data/docs/AccountTypeProperty.md +15 -0
- data/docs/AccountsApi.md +531 -0
- data/docs/Attachment.md +44 -0
- data/docs/AttachmentArray.md +20 -0
- data/docs/AttachmentRead.md +24 -0
- data/docs/AttachmentSingle.md +18 -0
- data/docs/AttachmentsApi.md +510 -0
- data/docs/AvailableBudget.md +38 -0
- data/docs/AvailableBudgetArray.md +20 -0
- data/docs/AvailableBudgetRead.md +22 -0
- data/docs/AvailableBudgetSingle.md +18 -0
- data/docs/AvailableBudgetsApi.md +369 -0
- data/docs/BasicSummaryEntry.md +36 -0
- data/docs/Bill.md +50 -0
- data/docs/BillArray.md +20 -0
- data/docs/BillPaidDates.md +22 -0
- data/docs/BillRead.md +22 -0
- data/docs/BillSingle.md +18 -0
- data/docs/BillsApi.md +600 -0
- data/docs/Budget.md +28 -0
- data/docs/BudgetArray.md +20 -0
- data/docs/BudgetLimit.md +38 -0
- data/docs/BudgetLimitArray.md +20 -0
- data/docs/BudgetLimitRead.md +22 -0
- data/docs/BudgetLimitSingle.md +18 -0
- data/docs/BudgetRead.md +22 -0
- data/docs/BudgetSingle.md +18 -0
- data/docs/BudgetSpent.md +26 -0
- data/docs/BudgetsApi.md +897 -0
- data/docs/CategoriesApi.md +446 -0
- data/docs/Category.md +26 -0
- data/docs/CategoryArray.md +20 -0
- data/docs/CategoryEarned.md +30 -0
- data/docs/CategoryRead.md +22 -0
- data/docs/CategorySingle.md +18 -0
- data/docs/CategorySpent.md +30 -0
- data/docs/ChartDataPoint.md +18 -0
- data/docs/ChartDataSet.md +32 -0
- data/docs/ChartsApi.md +374 -0
- data/docs/ConfigurationApi.md +148 -0
- data/docs/ConfigurationUpdate.md +18 -0
- data/docs/CurrenciesApi.md +1198 -0
- data/docs/Currency.md +32 -0
- data/docs/CurrencyArray.md +22 -0
- data/docs/CurrencyExchangeRatesApi.md +86 -0
- data/docs/CurrencyRead.md +22 -0
- data/docs/CurrencySingle.md +18 -0
- data/docs/ExchangeRate.md +22 -0
- data/docs/ExchangeRateArray.md +22 -0
- data/docs/ExchangeRateAttributes.md +44 -0
- data/docs/ImportApi.md +232 -0
- data/docs/ImportJob.md +22 -0
- data/docs/ImportJobArray.md +22 -0
- data/docs/ImportJobAttributes.md +42 -0
- data/docs/ImportJobSingle.md +18 -0
- data/docs/LinkType.md +26 -0
- data/docs/LinkTypeArray.md +22 -0
- data/docs/LinkTypeRead.md +24 -0
- data/docs/LinkTypeSingle.md +18 -0
- data/docs/LinksApi.md +804 -0
- data/docs/Meta.md +18 -0
- data/docs/MetaPagination.md +26 -0
- data/docs/ObjectLink.md +20 -0
- data/docs/ObjectLink0.md +20 -0
- data/docs/PageLink.md +22 -0
- data/docs/PiggyBank.md +54 -0
- data/docs/PiggyBankArray.md +22 -0
- data/docs/PiggyBankEvent.md +24 -0
- data/docs/PiggyBankEventArray.md +22 -0
- data/docs/PiggyBankEventAttributes.md +34 -0
- data/docs/PiggyBankRead.md +24 -0
- data/docs/PiggyBankSingle.md +18 -0
- data/docs/PiggyBanksApi.md +440 -0
- data/docs/Preference.md +24 -0
- data/docs/PreferenceArray.md +22 -0
- data/docs/PreferenceRead.md +22 -0
- data/docs/PreferenceSingle.md +18 -0
- data/docs/PreferencesApi.md +224 -0
- data/docs/Recurrence.md +45 -0
- data/docs/RecurrenceArray.md +22 -0
- data/docs/RecurrenceRead.md +24 -0
- data/docs/RecurrenceRepetition.md +34 -0
- data/docs/RecurrenceSingle.md +18 -0
- data/docs/RecurrenceTransaction.md +68 -0
- data/docs/RecurrencesApi.md +513 -0
- data/docs/Rule.md +42 -0
- data/docs/RuleAction.md +32 -0
- data/docs/RuleArray.md +22 -0
- data/docs/RuleGroup.md +28 -0
- data/docs/RuleGroupArray.md +22 -0
- data/docs/RuleGroupRead.md +24 -0
- data/docs/RuleGroupSingle.md +18 -0
- data/docs/RuleGroupsApi.md +603 -0
- data/docs/RuleRead.md +24 -0
- data/docs/RuleSingle.md +18 -0
- data/docs/RuleTrigger.md +32 -0
- data/docs/RulesApi.md +528 -0
- data/docs/SummaryApi.md +84 -0
- data/docs/SystemConfiguration.md +18 -0
- data/docs/SystemConfigurationData.md +24 -0
- data/docs/SystemInfo.md +18 -0
- data/docs/SystemInfoData.md +26 -0
- data/docs/TagArray.md +22 -0
- data/docs/TagCloud.md +18 -0
- data/docs/TagCloudTag.md +24 -0
- data/docs/TagModel.md +34 -0
- data/docs/TagRead.md +24 -0
- data/docs/TagSingle.md +18 -0
- data/docs/TagsApi.md +523 -0
- data/docs/Transaction.md +26 -0
- data/docs/TransactionArray.md +22 -0
- data/docs/TransactionLink.md +30 -0
- data/docs/TransactionLinkArray.md +22 -0
- data/docs/TransactionLinkRead.md +24 -0
- data/docs/TransactionLinkSingle.md +18 -0
- data/docs/TransactionRead.md +24 -0
- data/docs/TransactionSingle.md +18 -0
- data/docs/TransactionSplit.md +128 -0
- data/docs/TransactionTypeFilter.md +15 -0
- data/docs/TransactionsApi.md +592 -0
- data/docs/User.md +28 -0
- data/docs/UserArray.md +22 -0
- data/docs/UserRead.md +24 -0
- data/docs/UserSingle.md +18 -0
- data/docs/UsersApi.md +365 -0
- data/docs/ValidationError.md +20 -0
- data/docs/ValidationErrorErrors.md +20 -0
- data/firefly-iii-client.gemspec +39 -0
- data/git_push.sh +58 -0
- data/lib/firefly_iii_client.rb +172 -0
- data/lib/firefly_iii_client/api/about_api.rb +136 -0
- data/lib/firefly_iii_client/api/accounts_api.rb +495 -0
- data/lib/firefly_iii_client/api/attachments_api.rb +470 -0
- data/lib/firefly_iii_client/api/available_budgets_api.rb +348 -0
- data/lib/firefly_iii_client/api/bills_api.rb +555 -0
- data/lib/firefly_iii_client/api/budgets_api.rb +866 -0
- data/lib/firefly_iii_client/api/categories_api.rb +417 -0
- data/lib/firefly_iii_client/api/charts_api.rb +383 -0
- data/lib/firefly_iii_client/api/configuration_api.rb +156 -0
- data/lib/firefly_iii_client/api/currencies_api.rb +1089 -0
- data/lib/firefly_iii_client/api/currency_exchange_rates_api.rb +91 -0
- data/lib/firefly_iii_client/api/import_api.rb +220 -0
- data/lib/firefly_iii_client/api/links_api.rb +737 -0
- data/lib/firefly_iii_client/api/piggy_banks_api.rb +408 -0
- data/lib/firefly_iii_client/api/preferences_api.rb +216 -0
- data/lib/firefly_iii_client/api/recurrences_api.rb +472 -0
- data/lib/firefly_iii_client/api/rule_groups_api.rb +559 -0
- data/lib/firefly_iii_client/api/rules_api.rb +493 -0
- data/lib/firefly_iii_client/api/summary_api.rb +96 -0
- data/lib/firefly_iii_client/api/tags_api.rb +491 -0
- data/lib/firefly_iii_client/api/transactions_api.rb +546 -0
- data/lib/firefly_iii_client/api/users_api.rb +342 -0
- data/lib/firefly_iii_client/api_client.rb +390 -0
- data/lib/firefly_iii_client/api_error.rb +57 -0
- data/lib/firefly_iii_client/configuration.rb +277 -0
- data/lib/firefly_iii_client/models/account.rb +564 -0
- data/lib/firefly_iii_client/models/account_array.rb +229 -0
- data/lib/firefly_iii_client/models/account_read.rb +237 -0
- data/lib/firefly_iii_client/models/account_single.rb +218 -0
- data/lib/firefly_iii_client/models/account_type_filter.rb +56 -0
- data/lib/firefly_iii_client/models/account_type_property.rb +47 -0
- data/lib/firefly_iii_client/models/attachment.rb +401 -0
- data/lib/firefly_iii_client/models/attachment_array.rb +229 -0
- data/lib/firefly_iii_client/models/attachment_read.rb +246 -0
- data/lib/firefly_iii_client/models/attachment_single.rb +218 -0
- data/lib/firefly_iii_client/models/available_budget.rb +331 -0
- data/lib/firefly_iii_client/models/available_budget_array.rb +229 -0
- data/lib/firefly_iii_client/models/available_budget_read.rb +237 -0
- data/lib/firefly_iii_client/models/available_budget_single.rb +218 -0
- data/lib/firefly_iii_client/models/basic_summary_entry.rb +307 -0
- data/lib/firefly_iii_client/models/bill.rb +433 -0
- data/lib/firefly_iii_client/models/bill_array.rb +229 -0
- data/lib/firefly_iii_client/models/bill_paid_dates.rb +239 -0
- data/lib/firefly_iii_client/models/bill_read.rb +237 -0
- data/lib/firefly_iii_client/models/bill_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget.rb +271 -0
- data/lib/firefly_iii_client/models/budget_array.rb +229 -0
- data/lib/firefly_iii_client/models/budget_limit.rb +335 -0
- data/lib/firefly_iii_client/models/budget_limit_array.rb +229 -0
- data/lib/firefly_iii_client/models/budget_limit_read.rb +237 -0
- data/lib/firefly_iii_client/models/budget_limit_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget_read.rb +237 -0
- data/lib/firefly_iii_client/models/budget_single.rb +218 -0
- data/lib/firefly_iii_client/models/budget_spent.rb +256 -0
- data/lib/firefly_iii_client/models/category.rb +263 -0
- data/lib/firefly_iii_client/models/category_array.rb +229 -0
- data/lib/firefly_iii_client/models/category_earned.rb +274 -0
- data/lib/firefly_iii_client/models/category_read.rb +237 -0
- data/lib/firefly_iii_client/models/category_single.rb +218 -0
- data/lib/firefly_iii_client/models/category_spent.rb +274 -0
- data/lib/firefly_iii_client/models/chart_data_point.rb +219 -0
- data/lib/firefly_iii_client/models/chart_data_set.rb +289 -0
- data/lib/firefly_iii_client/models/configuration_update.rb +224 -0
- data/lib/firefly_iii_client/models/currency.rb +299 -0
- data/lib/firefly_iii_client/models/currency_array.rb +238 -0
- data/lib/firefly_iii_client/models/currency_read.rb +237 -0
- data/lib/firefly_iii_client/models/currency_single.rb +218 -0
- data/lib/firefly_iii_client/models/exchange_rate.rb +237 -0
- data/lib/firefly_iii_client/models/exchange_rate_array.rb +238 -0
- data/lib/firefly_iii_client/models/exchange_rate_attributes.rb +336 -0
- data/lib/firefly_iii_client/models/import_job.rb +237 -0
- data/lib/firefly_iii_client/models/import_job_array.rb +238 -0
- data/lib/firefly_iii_client/models/import_job_attributes.rb +337 -0
- data/lib/firefly_iii_client/models/import_job_single.rb +218 -0
- data/lib/firefly_iii_client/models/link_type.rb +260 -0
- data/lib/firefly_iii_client/models/link_type_array.rb +238 -0
- data/lib/firefly_iii_client/models/link_type_read.rb +246 -0
- data/lib/firefly_iii_client/models/link_type_single.rb +218 -0
- data/lib/firefly_iii_client/models/meta.rb +218 -0
- data/lib/firefly_iii_client/models/meta_pagination.rb +254 -0
- data/lib/firefly_iii_client/models/object_link.rb +227 -0
- data/lib/firefly_iii_client/models/object_link0.rb +227 -0
- data/lib/firefly_iii_client/models/page_link.rb +236 -0
- data/lib/firefly_iii_client/models/piggy_bank.rb +400 -0
- data/lib/firefly_iii_client/models/piggy_bank_array.rb +238 -0
- data/lib/firefly_iii_client/models/piggy_bank_event.rb +246 -0
- data/lib/firefly_iii_client/models/piggy_bank_event_array.rb +238 -0
- data/lib/firefly_iii_client/models/piggy_bank_event_attributes.rb +291 -0
- data/lib/firefly_iii_client/models/piggy_bank_read.rb +246 -0
- data/lib/firefly_iii_client/models/piggy_bank_single.rb +218 -0
- data/lib/firefly_iii_client/models/preference.rb +251 -0
- data/lib/firefly_iii_client/models/preference_array.rb +238 -0
- data/lib/firefly_iii_client/models/preference_read.rb +237 -0
- data/lib/firefly_iii_client/models/preference_single.rb +218 -0
- data/lib/firefly_iii_client/models/recurrence.rb +395 -0
- data/lib/firefly_iii_client/models/recurrence_array.rb +238 -0
- data/lib/firefly_iii_client/models/recurrence_read.rb +246 -0
- data/lib/firefly_iii_client/models/recurrence_repetition.rb +342 -0
- data/lib/firefly_iii_client/models/recurrence_single.rb +218 -0
- data/lib/firefly_iii_client/models/recurrence_transaction.rb +483 -0
- data/lib/firefly_iii_client/models/rule.rb +395 -0
- data/lib/firefly_iii_client/models/rule_action.rb +326 -0
- data/lib/firefly_iii_client/models/rule_array.rb +238 -0
- data/lib/firefly_iii_client/models/rule_group.rb +268 -0
- data/lib/firefly_iii_client/models/rule_group_array.rb +238 -0
- data/lib/firefly_iii_client/models/rule_group_read.rb +246 -0
- data/lib/firefly_iii_client/models/rule_group_single.rb +218 -0
- data/lib/firefly_iii_client/models/rule_read.rb +246 -0
- data/lib/firefly_iii_client/models/rule_single.rb +218 -0
- data/lib/firefly_iii_client/models/rule_trigger.rb +330 -0
- data/lib/firefly_iii_client/models/system_configuration.rb +218 -0
- data/lib/firefly_iii_client/models/system_configuration_data.rb +248 -0
- data/lib/firefly_iii_client/models/system_info.rb +223 -0
- data/lib/firefly_iii_client/models/system_info_data.rb +279 -0
- data/lib/firefly_iii_client/models/tag_array.rb +238 -0
- data/lib/firefly_iii_client/models/tag_cloud.rb +220 -0
- data/lib/firefly_iii_client/models/tag_cloud_tag.rb +249 -0
- data/lib/firefly_iii_client/models/tag_model.rb +295 -0
- data/lib/firefly_iii_client/models/tag_read.rb +246 -0
- data/lib/firefly_iii_client/models/tag_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction.rb +263 -0
- data/lib/firefly_iii_client/models/transaction_array.rb +238 -0
- data/lib/firefly_iii_client/models/transaction_link.rb +292 -0
- data/lib/firefly_iii_client/models/transaction_link_array.rb +238 -0
- data/lib/firefly_iii_client/models/transaction_link_read.rb +246 -0
- data/lib/firefly_iii_client/models/transaction_link_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction_read.rb +246 -0
- data/lib/firefly_iii_client/models/transaction_single.rb +218 -0
- data/lib/firefly_iii_client/models/transaction_split.rb +850 -0
- data/lib/firefly_iii_client/models/transaction_type_filter.rb +49 -0
- data/lib/firefly_iii_client/models/user.rb +320 -0
- data/lib/firefly_iii_client/models/user_array.rb +238 -0
- data/lib/firefly_iii_client/models/user_read.rb +246 -0
- data/lib/firefly_iii_client/models/user_single.rb +218 -0
- data/lib/firefly_iii_client/models/validation_error.rb +227 -0
- data/lib/firefly_iii_client/models/validation_error_errors.rb +231 -0
- data/lib/firefly_iii_client/version.rb +15 -0
- data/spec/api/about_api_spec.rb +57 -0
- data/spec/api/accounts_api_spec.rb +129 -0
- data/spec/api/attachments_api_spec.rb +121 -0
- data/spec/api/available_budgets_api_spec.rb +98 -0
- data/spec/api/bills_api_spec.rb +140 -0
- data/spec/api/budgets_api_spec.rb +194 -0
- data/spec/api/categories_api_spec.rb +112 -0
- data/spec/api/charts_api_spec.rb +101 -0
- data/spec/api/configuration_api_spec.rb +59 -0
- data/spec/api/currencies_api_spec.rb +246 -0
- data/spec/api/currency_exchange_rates_api_spec.rb +50 -0
- data/spec/api/import_api_spec.rb +75 -0
- data/spec/api/links_api_spec.rb +173 -0
- data/spec/api/piggy_banks_api_spec.rb +109 -0
- data/spec/api/preferences_api_spec.rb +72 -0
- data/spec/api/recurrences_api_spec.rb +123 -0
- data/spec/api/rule_groups_api_spec.rb +142 -0
- data/spec/api/rules_api_spec.rb +129 -0
- data/spec/api/summary_api_spec.rb +49 -0
- data/spec/api/tags_api_spec.rb +126 -0
- data/spec/api/transactions_api_spec.rb +137 -0
- data/spec/api/users_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_array_spec.rb +40 -0
- data/spec/models/account_read_spec.rb +46 -0
- data/spec/models/account_single_spec.rb +34 -0
- data/spec/models/account_spec.rb +210 -0
- data/spec/models/account_type_filter_spec.rb +28 -0
- data/spec/models/account_type_property_spec.rb +28 -0
- data/spec/models/attachment_array_spec.rb +40 -0
- data/spec/models/attachment_read_spec.rb +52 -0
- data/spec/models/attachment_single_spec.rb +34 -0
- data/spec/models/attachment_spec.rb +120 -0
- data/spec/models/available_budget_array_spec.rb +40 -0
- data/spec/models/available_budget_read_spec.rb +46 -0
- data/spec/models/available_budget_single_spec.rb +34 -0
- data/spec/models/available_budget_spec.rb +94 -0
- data/spec/models/basic_summary_entry_spec.rb +88 -0
- data/spec/models/bill_array_spec.rb +40 -0
- data/spec/models/bill_paid_dates_spec.rb +46 -0
- data/spec/models/bill_read_spec.rb +46 -0
- data/spec/models/bill_single_spec.rb +34 -0
- data/spec/models/bill_spec.rb +134 -0
- data/spec/models/budget_array_spec.rb +40 -0
- data/spec/models/budget_limit_array_spec.rb +40 -0
- data/spec/models/budget_limit_read_spec.rb +46 -0
- data/spec/models/budget_limit_single_spec.rb +34 -0
- data/spec/models/budget_limit_spec.rb +94 -0
- data/spec/models/budget_read_spec.rb +46 -0
- data/spec/models/budget_single_spec.rb +34 -0
- data/spec/models/budget_spec.rb +64 -0
- data/spec/models/budget_spent_spec.rb +58 -0
- data/spec/models/category_array_spec.rb +40 -0
- data/spec/models/category_earned_spec.rb +70 -0
- data/spec/models/category_read_spec.rb +46 -0
- data/spec/models/category_single_spec.rb +34 -0
- data/spec/models/category_spec.rb +58 -0
- data/spec/models/category_spent_spec.rb +70 -0
- data/spec/models/chart_data_point_spec.rb +34 -0
- data/spec/models/chart_data_set_spec.rb +76 -0
- data/spec/models/configuration_update_spec.rb +34 -0
- data/spec/models/currency_array_spec.rb +46 -0
- data/spec/models/currency_read_spec.rb +46 -0
- data/spec/models/currency_single_spec.rb +34 -0
- data/spec/models/currency_spec.rb +76 -0
- data/spec/models/exchange_rate_array_spec.rb +46 -0
- data/spec/models/exchange_rate_attributes_spec.rb +112 -0
- data/spec/models/exchange_rate_spec.rb +46 -0
- data/spec/models/import_job_array_spec.rb +46 -0
- data/spec/models/import_job_attributes_spec.rb +106 -0
- data/spec/models/import_job_single_spec.rb +34 -0
- data/spec/models/import_job_spec.rb +46 -0
- data/spec/models/link_type_array_spec.rb +46 -0
- data/spec/models/link_type_read_spec.rb +52 -0
- data/spec/models/link_type_single_spec.rb +34 -0
- data/spec/models/link_type_spec.rb +52 -0
- data/spec/models/meta_pagination_spec.rb +58 -0
- data/spec/models/meta_spec.rb +34 -0
- data/spec/models/object_link0_spec.rb +40 -0
- data/spec/models/object_link_spec.rb +40 -0
- data/spec/models/page_link_spec.rb +46 -0
- data/spec/models/piggy_bank_array_spec.rb +46 -0
- data/spec/models/piggy_bank_event_array_spec.rb +46 -0
- data/spec/models/piggy_bank_event_attributes_spec.rb +82 -0
- data/spec/models/piggy_bank_event_spec.rb +52 -0
- data/spec/models/piggy_bank_read_spec.rb +52 -0
- data/spec/models/piggy_bank_single_spec.rb +34 -0
- data/spec/models/piggy_bank_spec.rb +142 -0
- data/spec/models/preference_array_spec.rb +46 -0
- data/spec/models/preference_read_spec.rb +46 -0
- data/spec/models/preference_single_spec.rb +34 -0
- data/spec/models/preference_spec.rb +52 -0
- data/spec/models/recurrence_array_spec.rb +46 -0
- data/spec/models/recurrence_read_spec.rb +52 -0
- data/spec/models/recurrence_repetition_spec.rb +86 -0
- data/spec/models/recurrence_single_spec.rb +34 -0
- data/spec/models/recurrence_spec.rb +116 -0
- data/spec/models/recurrence_transaction_spec.rb +184 -0
- data/spec/models/rule_action_spec.rb +80 -0
- data/spec/models/rule_array_spec.rb +46 -0
- data/spec/models/rule_group_array_spec.rb +46 -0
- data/spec/models/rule_group_read_spec.rb +52 -0
- data/spec/models/rule_group_single_spec.rb +34 -0
- data/spec/models/rule_group_spec.rb +64 -0
- data/spec/models/rule_read_spec.rb +52 -0
- data/spec/models/rule_single_spec.rb +34 -0
- data/spec/models/rule_spec.rb +110 -0
- data/spec/models/rule_trigger_spec.rb +80 -0
- data/spec/models/system_configuration_data_spec.rb +52 -0
- data/spec/models/system_configuration_spec.rb +34 -0
- data/spec/models/system_info_data_spec.rb +58 -0
- data/spec/models/system_info_spec.rb +34 -0
- data/spec/models/tag_array_spec.rb +46 -0
- data/spec/models/tag_cloud_spec.rb +34 -0
- data/spec/models/tag_cloud_tag_spec.rb +52 -0
- data/spec/models/tag_model_spec.rb +76 -0
- data/spec/models/tag_read_spec.rb +52 -0
- data/spec/models/tag_single_spec.rb +34 -0
- data/spec/models/transaction_array_spec.rb +46 -0
- data/spec/models/transaction_link_array_spec.rb +46 -0
- data/spec/models/transaction_link_read_spec.rb +52 -0
- data/spec/models/transaction_link_single_spec.rb +34 -0
- data/spec/models/transaction_link_spec.rb +70 -0
- data/spec/models/transaction_read_spec.rb +52 -0
- data/spec/models/transaction_single_spec.rb +34 -0
- data/spec/models/transaction_spec.rb +58 -0
- data/spec/models/transaction_split_spec.rb +368 -0
- data/spec/models/transaction_type_filter_spec.rb +28 -0
- data/spec/models/user_array_spec.rb +46 -0
- data/spec/models/user_read_spec.rb +52 -0
- data/spec/models/user_single_spec.rb +34 -0
- data/spec/models/user_spec.rb +72 -0
- data/spec/models/validation_error_errors_spec.rb +40 -0
- data/spec/models/validation_error_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +495 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
# OpenapiClient::ConfigurationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_configuration**](ConfigurationApi.md#get_configuration) | **GET** /api/v1/configuration | Get Firefly III system configuration. |
|
8
|
+
| [**set_configuration**](ConfigurationApi.md#set_configuration) | **POST** /api/v1/configuration/{name} | Update configuration |
|
9
|
+
|
10
|
+
|
11
|
+
## get_configuration
|
12
|
+
|
13
|
+
> <SystemConfiguration> get_configuration
|
14
|
+
|
15
|
+
Get Firefly III system configuration.
|
16
|
+
|
17
|
+
Get system configuration
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'firefly_iii_client'
|
24
|
+
# setup authorization
|
25
|
+
FireflyIIIClient.configure do |config|
|
26
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
27
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = FireflyIIIClient::ConfigurationApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
# Get Firefly III system configuration.
|
34
|
+
result = api_instance.get_configuration
|
35
|
+
p result
|
36
|
+
rescue FireflyIIIClient::ApiError => e
|
37
|
+
puts "Error when calling ConfigurationApi->get_configuration: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the get_configuration_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<SystemConfiguration>, Integer, Hash)> get_configuration_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
|
49
|
+
begin
|
50
|
+
# Get Firefly III system configuration.
|
51
|
+
data, status_code, headers = api_instance.get_configuration_with_http_info
|
52
|
+
p status_code # => 2xx
|
53
|
+
p headers # => { ... }
|
54
|
+
p data # => <SystemConfiguration>
|
55
|
+
rescue FireflyIIIClient::ApiError => e
|
56
|
+
puts "Error when calling ConfigurationApi->get_configuration_with_http_info: #{e}"
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
### Parameters
|
61
|
+
|
62
|
+
This endpoint does not need any parameter.
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
[**SystemConfiguration**](SystemConfiguration.md)
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: Not defined
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
## set_configuration
|
79
|
+
|
80
|
+
> <SystemConfiguration> set_configuration(name, value)
|
81
|
+
|
82
|
+
Update configuration
|
83
|
+
|
84
|
+
Set a single config value.
|
85
|
+
|
86
|
+
### Examples
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
require 'time'
|
90
|
+
require 'firefly_iii_client'
|
91
|
+
# setup authorization
|
92
|
+
FireflyIIIClient.configure do |config|
|
93
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
94
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
95
|
+
end
|
96
|
+
|
97
|
+
api_instance = FireflyIIIClient::ConfigurationApi.new
|
98
|
+
name = 'is_demo_site' # String | The configuration value name.
|
99
|
+
value = 'value_example' # String | Can be a number or a boolean. This depends on the actual configuration value.
|
100
|
+
|
101
|
+
begin
|
102
|
+
# Update configuration
|
103
|
+
result = api_instance.set_configuration(name, value)
|
104
|
+
p result
|
105
|
+
rescue FireflyIIIClient::ApiError => e
|
106
|
+
puts "Error when calling ConfigurationApi->set_configuration: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
#### Using the set_configuration_with_http_info variant
|
111
|
+
|
112
|
+
This returns an Array which contains the response data, status code and headers.
|
113
|
+
|
114
|
+
> <Array(<SystemConfiguration>, Integer, Hash)> set_configuration_with_http_info(name, value)
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
|
118
|
+
begin
|
119
|
+
# Update configuration
|
120
|
+
data, status_code, headers = api_instance.set_configuration_with_http_info(name, value)
|
121
|
+
p status_code # => 2xx
|
122
|
+
p headers # => { ... }
|
123
|
+
p data # => <SystemConfiguration>
|
124
|
+
rescue FireflyIIIClient::ApiError => e
|
125
|
+
puts "Error when calling ConfigurationApi->set_configuration_with_http_info: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
### Parameters
|
130
|
+
|
131
|
+
| Name | Type | Description | Notes |
|
132
|
+
| ---- | ---- | ----------- | ----- |
|
133
|
+
| **name** | **String** | The configuration value name. | |
|
134
|
+
| **value** | **String** | Can be a number or a boolean. This depends on the actual configuration value. | |
|
135
|
+
|
136
|
+
### Return type
|
137
|
+
|
138
|
+
[**SystemConfiguration**](SystemConfiguration.md)
|
139
|
+
|
140
|
+
### Authorization
|
141
|
+
|
142
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
143
|
+
|
144
|
+
### HTTP request headers
|
145
|
+
|
146
|
+
- **Content-Type**: application/x-www-form-urlencoded, application/json
|
147
|
+
- **Accept**: application/json
|
148
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::ConfigurationUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | **String** | Can be a number or a boolean. This depends on the actual configuration value. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::ConfigurationUpdate.new(
|
15
|
+
value: 1
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,1198 @@
|
|
1
|
+
# OpenapiClient::CurrenciesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**default_currency**](CurrenciesApi.md#default_currency) | **POST** /api/v1/currencies/{code}/default | Make currency default currency. |
|
8
|
+
| [**delete_currency**](CurrenciesApi.md#delete_currency) | **DELETE** /api/v1/currencies/{code} | Delete a currency. |
|
9
|
+
| [**disable_currency**](CurrenciesApi.md#disable_currency) | **POST** /api/v1/currencies/{code}/disable | Disable a currency. |
|
10
|
+
| [**enable_currency**](CurrenciesApi.md#enable_currency) | **POST** /api/v1/currencies/{code}/enable | Enable a single currency. |
|
11
|
+
| [**get_currency**](CurrenciesApi.md#get_currency) | **GET** /api/v1/currencies/{code} | Get a single currency. |
|
12
|
+
| [**list_account_by_currency**](CurrenciesApi.md#list_account_by_currency) | **GET** /api/v1/currencies/{code}/accounts | List all accounts with this currency. |
|
13
|
+
| [**list_available_budget_by_currency**](CurrenciesApi.md#list_available_budget_by_currency) | **GET** /api/v1/currencies/{code}/available_budgets | List all available budgets with this currency. |
|
14
|
+
| [**list_bill_by_currency**](CurrenciesApi.md#list_bill_by_currency) | **GET** /api/v1/currencies/{code}/bills | List all bills with this currency. |
|
15
|
+
| [**list_budget_limit_by_currency**](CurrenciesApi.md#list_budget_limit_by_currency) | **GET** /api/v1/currencies/{code}/budget_limits | List all budget limits with this currency |
|
16
|
+
| [**list_currency**](CurrenciesApi.md#list_currency) | **GET** /api/v1/currencies | List all currencies. |
|
17
|
+
| [**list_exchange_rate_by_currency**](CurrenciesApi.md#list_exchange_rate_by_currency) | **GET** /api/v1/currencies/{code}/cer | List all known exchange rates with (from or to) this currency. |
|
18
|
+
| [**list_recurrence_by_currency**](CurrenciesApi.md#list_recurrence_by_currency) | **GET** /api/v1/currencies/{code}/recurrences | List all recurring transactions with this currency. |
|
19
|
+
| [**list_rule_by_currency**](CurrenciesApi.md#list_rule_by_currency) | **GET** /api/v1/currencies/{code}/rules | List all rules with this currency. |
|
20
|
+
| [**list_transaction_by_currency**](CurrenciesApi.md#list_transaction_by_currency) | **GET** /api/v1/currencies/{code}/transactions | List all transactions with this currency. |
|
21
|
+
| [**store_currency**](CurrenciesApi.md#store_currency) | **POST** /api/v1/currencies | Store a new currency |
|
22
|
+
| [**update_currency**](CurrenciesApi.md#update_currency) | **PUT** /api/v1/currencies/{code} | Update existing currency. |
|
23
|
+
|
24
|
+
|
25
|
+
## default_currency
|
26
|
+
|
27
|
+
> <CurrencySingle> default_currency(code)
|
28
|
+
|
29
|
+
Make currency default currency.
|
30
|
+
|
31
|
+
Make this currency the default currency. If the currency is not enabled, it will be enabled as well.
|
32
|
+
|
33
|
+
### Examples
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
require 'time'
|
37
|
+
require 'firefly_iii_client'
|
38
|
+
# setup authorization
|
39
|
+
FireflyIIIClient.configure do |config|
|
40
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
41
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
42
|
+
end
|
43
|
+
|
44
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
45
|
+
code = 'USD' # String | The currency code.
|
46
|
+
|
47
|
+
begin
|
48
|
+
# Make currency default currency.
|
49
|
+
result = api_instance.default_currency(code)
|
50
|
+
p result
|
51
|
+
rescue FireflyIIIClient::ApiError => e
|
52
|
+
puts "Error when calling CurrenciesApi->default_currency: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the default_currency_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<CurrencySingle>, Integer, Hash)> default_currency_with_http_info(code)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
|
64
|
+
begin
|
65
|
+
# Make currency default currency.
|
66
|
+
data, status_code, headers = api_instance.default_currency_with_http_info(code)
|
67
|
+
p status_code # => 2xx
|
68
|
+
p headers # => { ... }
|
69
|
+
p data # => <CurrencySingle>
|
70
|
+
rescue FireflyIIIClient::ApiError => e
|
71
|
+
puts "Error when calling CurrenciesApi->default_currency_with_http_info: #{e}"
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
|
77
|
+
| Name | Type | Description | Notes |
|
78
|
+
| ---- | ---- | ----------- | ----- |
|
79
|
+
| **code** | **String** | The currency code. | |
|
80
|
+
|
81
|
+
### Return type
|
82
|
+
|
83
|
+
[**CurrencySingle**](CurrencySingle.md)
|
84
|
+
|
85
|
+
### Authorization
|
86
|
+
|
87
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
88
|
+
|
89
|
+
### HTTP request headers
|
90
|
+
|
91
|
+
- **Content-Type**: Not defined
|
92
|
+
- **Accept**: application/json
|
93
|
+
|
94
|
+
|
95
|
+
## delete_currency
|
96
|
+
|
97
|
+
> delete_currency(code)
|
98
|
+
|
99
|
+
Delete a currency.
|
100
|
+
|
101
|
+
Delete a currency.
|
102
|
+
|
103
|
+
### Examples
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
require 'time'
|
107
|
+
require 'firefly_iii_client'
|
108
|
+
# setup authorization
|
109
|
+
FireflyIIIClient.configure do |config|
|
110
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
111
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
112
|
+
end
|
113
|
+
|
114
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
115
|
+
code = 'GBP' # String | The currency code.
|
116
|
+
|
117
|
+
begin
|
118
|
+
# Delete a currency.
|
119
|
+
api_instance.delete_currency(code)
|
120
|
+
rescue FireflyIIIClient::ApiError => e
|
121
|
+
puts "Error when calling CurrenciesApi->delete_currency: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
#### Using the delete_currency_with_http_info variant
|
126
|
+
|
127
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
128
|
+
|
129
|
+
> <Array(nil, Integer, Hash)> delete_currency_with_http_info(code)
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
|
133
|
+
begin
|
134
|
+
# Delete a currency.
|
135
|
+
data, status_code, headers = api_instance.delete_currency_with_http_info(code)
|
136
|
+
p status_code # => 2xx
|
137
|
+
p headers # => { ... }
|
138
|
+
p data # => nil
|
139
|
+
rescue FireflyIIIClient::ApiError => e
|
140
|
+
puts "Error when calling CurrenciesApi->delete_currency_with_http_info: #{e}"
|
141
|
+
end
|
142
|
+
```
|
143
|
+
|
144
|
+
### Parameters
|
145
|
+
|
146
|
+
| Name | Type | Description | Notes |
|
147
|
+
| ---- | ---- | ----------- | ----- |
|
148
|
+
| **code** | **String** | The currency code. | |
|
149
|
+
|
150
|
+
### Return type
|
151
|
+
|
152
|
+
nil (empty response body)
|
153
|
+
|
154
|
+
### Authorization
|
155
|
+
|
156
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
157
|
+
|
158
|
+
### HTTP request headers
|
159
|
+
|
160
|
+
- **Content-Type**: Not defined
|
161
|
+
- **Accept**: Not defined
|
162
|
+
|
163
|
+
|
164
|
+
## disable_currency
|
165
|
+
|
166
|
+
> <CurrencySingle> disable_currency(code)
|
167
|
+
|
168
|
+
Disable a currency.
|
169
|
+
|
170
|
+
Disable a currency.
|
171
|
+
|
172
|
+
### Examples
|
173
|
+
|
174
|
+
```ruby
|
175
|
+
require 'time'
|
176
|
+
require 'firefly_iii_client'
|
177
|
+
# setup authorization
|
178
|
+
FireflyIIIClient.configure do |config|
|
179
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
180
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
181
|
+
end
|
182
|
+
|
183
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
184
|
+
code = 56 # Integer | The currency code.
|
185
|
+
|
186
|
+
begin
|
187
|
+
# Disable a currency.
|
188
|
+
result = api_instance.disable_currency(code)
|
189
|
+
p result
|
190
|
+
rescue FireflyIIIClient::ApiError => e
|
191
|
+
puts "Error when calling CurrenciesApi->disable_currency: #{e}"
|
192
|
+
end
|
193
|
+
```
|
194
|
+
|
195
|
+
#### Using the disable_currency_with_http_info variant
|
196
|
+
|
197
|
+
This returns an Array which contains the response data, status code and headers.
|
198
|
+
|
199
|
+
> <Array(<CurrencySingle>, Integer, Hash)> disable_currency_with_http_info(code)
|
200
|
+
|
201
|
+
```ruby
|
202
|
+
|
203
|
+
begin
|
204
|
+
# Disable a currency.
|
205
|
+
data, status_code, headers = api_instance.disable_currency_with_http_info(code)
|
206
|
+
p status_code # => 2xx
|
207
|
+
p headers # => { ... }
|
208
|
+
p data # => <CurrencySingle>
|
209
|
+
rescue FireflyIIIClient::ApiError => e
|
210
|
+
puts "Error when calling CurrenciesApi->disable_currency_with_http_info: #{e}"
|
211
|
+
end
|
212
|
+
```
|
213
|
+
|
214
|
+
### Parameters
|
215
|
+
|
216
|
+
| Name | Type | Description | Notes |
|
217
|
+
| ---- | ---- | ----------- | ----- |
|
218
|
+
| **code** | **Integer** | The currency code. | |
|
219
|
+
|
220
|
+
### Return type
|
221
|
+
|
222
|
+
[**CurrencySingle**](CurrencySingle.md)
|
223
|
+
|
224
|
+
### Authorization
|
225
|
+
|
226
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
227
|
+
|
228
|
+
### HTTP request headers
|
229
|
+
|
230
|
+
- **Content-Type**: Not defined
|
231
|
+
- **Accept**: application/json
|
232
|
+
|
233
|
+
|
234
|
+
## enable_currency
|
235
|
+
|
236
|
+
> <CurrencySingle> enable_currency(code)
|
237
|
+
|
238
|
+
Enable a single currency.
|
239
|
+
|
240
|
+
Enable a single currency.
|
241
|
+
|
242
|
+
### Examples
|
243
|
+
|
244
|
+
```ruby
|
245
|
+
require 'time'
|
246
|
+
require 'firefly_iii_client'
|
247
|
+
# setup authorization
|
248
|
+
FireflyIIIClient.configure do |config|
|
249
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
250
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
251
|
+
end
|
252
|
+
|
253
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
254
|
+
code = 'USD' # String | The currency code.
|
255
|
+
|
256
|
+
begin
|
257
|
+
# Enable a single currency.
|
258
|
+
result = api_instance.enable_currency(code)
|
259
|
+
p result
|
260
|
+
rescue FireflyIIIClient::ApiError => e
|
261
|
+
puts "Error when calling CurrenciesApi->enable_currency: #{e}"
|
262
|
+
end
|
263
|
+
```
|
264
|
+
|
265
|
+
#### Using the enable_currency_with_http_info variant
|
266
|
+
|
267
|
+
This returns an Array which contains the response data, status code and headers.
|
268
|
+
|
269
|
+
> <Array(<CurrencySingle>, Integer, Hash)> enable_currency_with_http_info(code)
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
|
273
|
+
begin
|
274
|
+
# Enable a single currency.
|
275
|
+
data, status_code, headers = api_instance.enable_currency_with_http_info(code)
|
276
|
+
p status_code # => 2xx
|
277
|
+
p headers # => { ... }
|
278
|
+
p data # => <CurrencySingle>
|
279
|
+
rescue FireflyIIIClient::ApiError => e
|
280
|
+
puts "Error when calling CurrenciesApi->enable_currency_with_http_info: #{e}"
|
281
|
+
end
|
282
|
+
```
|
283
|
+
|
284
|
+
### Parameters
|
285
|
+
|
286
|
+
| Name | Type | Description | Notes |
|
287
|
+
| ---- | ---- | ----------- | ----- |
|
288
|
+
| **code** | **String** | The currency code. | |
|
289
|
+
|
290
|
+
### Return type
|
291
|
+
|
292
|
+
[**CurrencySingle**](CurrencySingle.md)
|
293
|
+
|
294
|
+
### Authorization
|
295
|
+
|
296
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
297
|
+
|
298
|
+
### HTTP request headers
|
299
|
+
|
300
|
+
- **Content-Type**: Not defined
|
301
|
+
- **Accept**: application/json
|
302
|
+
|
303
|
+
|
304
|
+
## get_currency
|
305
|
+
|
306
|
+
> <CurrencySingle> get_currency(code)
|
307
|
+
|
308
|
+
Get a single currency.
|
309
|
+
|
310
|
+
Get a single currency.
|
311
|
+
|
312
|
+
### Examples
|
313
|
+
|
314
|
+
```ruby
|
315
|
+
require 'time'
|
316
|
+
require 'firefly_iii_client'
|
317
|
+
# setup authorization
|
318
|
+
FireflyIIIClient.configure do |config|
|
319
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
320
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
321
|
+
end
|
322
|
+
|
323
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
324
|
+
code = 'USD' # String | The currency code.
|
325
|
+
|
326
|
+
begin
|
327
|
+
# Get a single currency.
|
328
|
+
result = api_instance.get_currency(code)
|
329
|
+
p result
|
330
|
+
rescue FireflyIIIClient::ApiError => e
|
331
|
+
puts "Error when calling CurrenciesApi->get_currency: #{e}"
|
332
|
+
end
|
333
|
+
```
|
334
|
+
|
335
|
+
#### Using the get_currency_with_http_info variant
|
336
|
+
|
337
|
+
This returns an Array which contains the response data, status code and headers.
|
338
|
+
|
339
|
+
> <Array(<CurrencySingle>, Integer, Hash)> get_currency_with_http_info(code)
|
340
|
+
|
341
|
+
```ruby
|
342
|
+
|
343
|
+
begin
|
344
|
+
# Get a single currency.
|
345
|
+
data, status_code, headers = api_instance.get_currency_with_http_info(code)
|
346
|
+
p status_code # => 2xx
|
347
|
+
p headers # => { ... }
|
348
|
+
p data # => <CurrencySingle>
|
349
|
+
rescue FireflyIIIClient::ApiError => e
|
350
|
+
puts "Error when calling CurrenciesApi->get_currency_with_http_info: #{e}"
|
351
|
+
end
|
352
|
+
```
|
353
|
+
|
354
|
+
### Parameters
|
355
|
+
|
356
|
+
| Name | Type | Description | Notes |
|
357
|
+
| ---- | ---- | ----------- | ----- |
|
358
|
+
| **code** | **String** | The currency code. | |
|
359
|
+
|
360
|
+
### Return type
|
361
|
+
|
362
|
+
[**CurrencySingle**](CurrencySingle.md)
|
363
|
+
|
364
|
+
### Authorization
|
365
|
+
|
366
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
367
|
+
|
368
|
+
### HTTP request headers
|
369
|
+
|
370
|
+
- **Content-Type**: Not defined
|
371
|
+
- **Accept**: application/json
|
372
|
+
|
373
|
+
|
374
|
+
## list_account_by_currency
|
375
|
+
|
376
|
+
> <AccountArray> list_account_by_currency(code, opts)
|
377
|
+
|
378
|
+
List all accounts with this currency.
|
379
|
+
|
380
|
+
List all accounts with this currency.
|
381
|
+
|
382
|
+
### Examples
|
383
|
+
|
384
|
+
```ruby
|
385
|
+
require 'time'
|
386
|
+
require 'firefly_iii_client'
|
387
|
+
# setup authorization
|
388
|
+
FireflyIIIClient.configure do |config|
|
389
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
390
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
391
|
+
end
|
392
|
+
|
393
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
394
|
+
code = 'USD' # String | The currency code.
|
395
|
+
opts = {
|
396
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
397
|
+
date: 'date_example', # String | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day.
|
398
|
+
type: FireflyIIIClient::AccountTypeFilter::ALL # AccountTypeFilter | Optional filter on the account type(s) returned
|
399
|
+
}
|
400
|
+
|
401
|
+
begin
|
402
|
+
# List all accounts with this currency.
|
403
|
+
result = api_instance.list_account_by_currency(code, opts)
|
404
|
+
p result
|
405
|
+
rescue FireflyIIIClient::ApiError => e
|
406
|
+
puts "Error when calling CurrenciesApi->list_account_by_currency: #{e}"
|
407
|
+
end
|
408
|
+
```
|
409
|
+
|
410
|
+
#### Using the list_account_by_currency_with_http_info variant
|
411
|
+
|
412
|
+
This returns an Array which contains the response data, status code and headers.
|
413
|
+
|
414
|
+
> <Array(<AccountArray>, Integer, Hash)> list_account_by_currency_with_http_info(code, opts)
|
415
|
+
|
416
|
+
```ruby
|
417
|
+
|
418
|
+
begin
|
419
|
+
# List all accounts with this currency.
|
420
|
+
data, status_code, headers = api_instance.list_account_by_currency_with_http_info(code, opts)
|
421
|
+
p status_code # => 2xx
|
422
|
+
p headers # => { ... }
|
423
|
+
p data # => <AccountArray>
|
424
|
+
rescue FireflyIIIClient::ApiError => e
|
425
|
+
puts "Error when calling CurrenciesApi->list_account_by_currency_with_http_info: #{e}"
|
426
|
+
end
|
427
|
+
```
|
428
|
+
|
429
|
+
### Parameters
|
430
|
+
|
431
|
+
| Name | Type | Description | Notes |
|
432
|
+
| ---- | ---- | ----------- | ----- |
|
433
|
+
| **code** | **String** | The currency code. | |
|
434
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
435
|
+
| **date** | **String** | A date formatted YYYY-MM-DD. When added to the request, Firefly III will show the account's balance on that day. | [optional] |
|
436
|
+
| **type** | [**AccountTypeFilter**](.md) | Optional filter on the account type(s) returned | [optional] |
|
437
|
+
|
438
|
+
### Return type
|
439
|
+
|
440
|
+
[**AccountArray**](AccountArray.md)
|
441
|
+
|
442
|
+
### Authorization
|
443
|
+
|
444
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
445
|
+
|
446
|
+
### HTTP request headers
|
447
|
+
|
448
|
+
- **Content-Type**: Not defined
|
449
|
+
- **Accept**: application/json
|
450
|
+
|
451
|
+
|
452
|
+
## list_available_budget_by_currency
|
453
|
+
|
454
|
+
> <AvailableBudgetArray> list_available_budget_by_currency(code, opts)
|
455
|
+
|
456
|
+
List all available budgets with this currency.
|
457
|
+
|
458
|
+
List all available budgets with this currency.
|
459
|
+
|
460
|
+
### Examples
|
461
|
+
|
462
|
+
```ruby
|
463
|
+
require 'time'
|
464
|
+
require 'firefly_iii_client'
|
465
|
+
# setup authorization
|
466
|
+
FireflyIIIClient.configure do |config|
|
467
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
468
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
469
|
+
end
|
470
|
+
|
471
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
472
|
+
code = 'EUR' # String | The currency code.
|
473
|
+
opts = {
|
474
|
+
page: 1 # Integer | Page number. The default pagination is 50
|
475
|
+
}
|
476
|
+
|
477
|
+
begin
|
478
|
+
# List all available budgets with this currency.
|
479
|
+
result = api_instance.list_available_budget_by_currency(code, opts)
|
480
|
+
p result
|
481
|
+
rescue FireflyIIIClient::ApiError => e
|
482
|
+
puts "Error when calling CurrenciesApi->list_available_budget_by_currency: #{e}"
|
483
|
+
end
|
484
|
+
```
|
485
|
+
|
486
|
+
#### Using the list_available_budget_by_currency_with_http_info variant
|
487
|
+
|
488
|
+
This returns an Array which contains the response data, status code and headers.
|
489
|
+
|
490
|
+
> <Array(<AvailableBudgetArray>, Integer, Hash)> list_available_budget_by_currency_with_http_info(code, opts)
|
491
|
+
|
492
|
+
```ruby
|
493
|
+
|
494
|
+
begin
|
495
|
+
# List all available budgets with this currency.
|
496
|
+
data, status_code, headers = api_instance.list_available_budget_by_currency_with_http_info(code, opts)
|
497
|
+
p status_code # => 2xx
|
498
|
+
p headers # => { ... }
|
499
|
+
p data # => <AvailableBudgetArray>
|
500
|
+
rescue FireflyIIIClient::ApiError => e
|
501
|
+
puts "Error when calling CurrenciesApi->list_available_budget_by_currency_with_http_info: #{e}"
|
502
|
+
end
|
503
|
+
```
|
504
|
+
|
505
|
+
### Parameters
|
506
|
+
|
507
|
+
| Name | Type | Description | Notes |
|
508
|
+
| ---- | ---- | ----------- | ----- |
|
509
|
+
| **code** | **String** | The currency code. | |
|
510
|
+
| **page** | **Integer** | Page number. The default pagination is 50 | [optional] |
|
511
|
+
|
512
|
+
### Return type
|
513
|
+
|
514
|
+
[**AvailableBudgetArray**](AvailableBudgetArray.md)
|
515
|
+
|
516
|
+
### Authorization
|
517
|
+
|
518
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
519
|
+
|
520
|
+
### HTTP request headers
|
521
|
+
|
522
|
+
- **Content-Type**: Not defined
|
523
|
+
- **Accept**: application/json
|
524
|
+
|
525
|
+
|
526
|
+
## list_bill_by_currency
|
527
|
+
|
528
|
+
> <BillArray> list_bill_by_currency(code, opts)
|
529
|
+
|
530
|
+
List all bills with this currency.
|
531
|
+
|
532
|
+
List all bills with this currency.
|
533
|
+
|
534
|
+
### Examples
|
535
|
+
|
536
|
+
```ruby
|
537
|
+
require 'time'
|
538
|
+
require 'firefly_iii_client'
|
539
|
+
# setup authorization
|
540
|
+
FireflyIIIClient.configure do |config|
|
541
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
542
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
543
|
+
end
|
544
|
+
|
545
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
546
|
+
code = 'USD' # String | The currency code.
|
547
|
+
opts = {
|
548
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
549
|
+
}
|
550
|
+
|
551
|
+
begin
|
552
|
+
# List all bills with this currency.
|
553
|
+
result = api_instance.list_bill_by_currency(code, opts)
|
554
|
+
p result
|
555
|
+
rescue FireflyIIIClient::ApiError => e
|
556
|
+
puts "Error when calling CurrenciesApi->list_bill_by_currency: #{e}"
|
557
|
+
end
|
558
|
+
```
|
559
|
+
|
560
|
+
#### Using the list_bill_by_currency_with_http_info variant
|
561
|
+
|
562
|
+
This returns an Array which contains the response data, status code and headers.
|
563
|
+
|
564
|
+
> <Array(<BillArray>, Integer, Hash)> list_bill_by_currency_with_http_info(code, opts)
|
565
|
+
|
566
|
+
```ruby
|
567
|
+
|
568
|
+
begin
|
569
|
+
# List all bills with this currency.
|
570
|
+
data, status_code, headers = api_instance.list_bill_by_currency_with_http_info(code, opts)
|
571
|
+
p status_code # => 2xx
|
572
|
+
p headers # => { ... }
|
573
|
+
p data # => <BillArray>
|
574
|
+
rescue FireflyIIIClient::ApiError => e
|
575
|
+
puts "Error when calling CurrenciesApi->list_bill_by_currency_with_http_info: #{e}"
|
576
|
+
end
|
577
|
+
```
|
578
|
+
|
579
|
+
### Parameters
|
580
|
+
|
581
|
+
| Name | Type | Description | Notes |
|
582
|
+
| ---- | ---- | ----------- | ----- |
|
583
|
+
| **code** | **String** | The currency code. | |
|
584
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
585
|
+
|
586
|
+
### Return type
|
587
|
+
|
588
|
+
[**BillArray**](BillArray.md)
|
589
|
+
|
590
|
+
### Authorization
|
591
|
+
|
592
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
593
|
+
|
594
|
+
### HTTP request headers
|
595
|
+
|
596
|
+
- **Content-Type**: Not defined
|
597
|
+
- **Accept**: application/json
|
598
|
+
|
599
|
+
|
600
|
+
## list_budget_limit_by_currency
|
601
|
+
|
602
|
+
> <BudgetLimitArray> list_budget_limit_by_currency(code, opts)
|
603
|
+
|
604
|
+
List all budget limits with this currency
|
605
|
+
|
606
|
+
List all budget limits with this currency
|
607
|
+
|
608
|
+
### Examples
|
609
|
+
|
610
|
+
```ruby
|
611
|
+
require 'time'
|
612
|
+
require 'firefly_iii_client'
|
613
|
+
# setup authorization
|
614
|
+
FireflyIIIClient.configure do |config|
|
615
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
616
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
617
|
+
end
|
618
|
+
|
619
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
620
|
+
code = 'USD' # String | The currency code.
|
621
|
+
opts = {
|
622
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
623
|
+
start: Date.parse('Mon Jan 01 00:00:00 GMT 2018'), # Date | Start date for the budget limit list.
|
624
|
+
_end: Date.parse('Wed Jan 31 00:00:00 GMT 2018') # Date | End date for the budget limit list.
|
625
|
+
}
|
626
|
+
|
627
|
+
begin
|
628
|
+
# List all budget limits with this currency
|
629
|
+
result = api_instance.list_budget_limit_by_currency(code, opts)
|
630
|
+
p result
|
631
|
+
rescue FireflyIIIClient::ApiError => e
|
632
|
+
puts "Error when calling CurrenciesApi->list_budget_limit_by_currency: #{e}"
|
633
|
+
end
|
634
|
+
```
|
635
|
+
|
636
|
+
#### Using the list_budget_limit_by_currency_with_http_info variant
|
637
|
+
|
638
|
+
This returns an Array which contains the response data, status code and headers.
|
639
|
+
|
640
|
+
> <Array(<BudgetLimitArray>, Integer, Hash)> list_budget_limit_by_currency_with_http_info(code, opts)
|
641
|
+
|
642
|
+
```ruby
|
643
|
+
|
644
|
+
begin
|
645
|
+
# List all budget limits with this currency
|
646
|
+
data, status_code, headers = api_instance.list_budget_limit_by_currency_with_http_info(code, opts)
|
647
|
+
p status_code # => 2xx
|
648
|
+
p headers # => { ... }
|
649
|
+
p data # => <BudgetLimitArray>
|
650
|
+
rescue FireflyIIIClient::ApiError => e
|
651
|
+
puts "Error when calling CurrenciesApi->list_budget_limit_by_currency_with_http_info: #{e}"
|
652
|
+
end
|
653
|
+
```
|
654
|
+
|
655
|
+
### Parameters
|
656
|
+
|
657
|
+
| Name | Type | Description | Notes |
|
658
|
+
| ---- | ---- | ----------- | ----- |
|
659
|
+
| **code** | **String** | The currency code. | |
|
660
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
661
|
+
| **start** | **Date** | Start date for the budget limit list. | [optional] |
|
662
|
+
| **_end** | **Date** | End date for the budget limit list. | [optional] |
|
663
|
+
|
664
|
+
### Return type
|
665
|
+
|
666
|
+
[**BudgetLimitArray**](BudgetLimitArray.md)
|
667
|
+
|
668
|
+
### Authorization
|
669
|
+
|
670
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
671
|
+
|
672
|
+
### HTTP request headers
|
673
|
+
|
674
|
+
- **Content-Type**: Not defined
|
675
|
+
- **Accept**: application/json
|
676
|
+
|
677
|
+
|
678
|
+
## list_currency
|
679
|
+
|
680
|
+
> <CurrencyArray> list_currency(opts)
|
681
|
+
|
682
|
+
List all currencies.
|
683
|
+
|
684
|
+
List all currencies.
|
685
|
+
|
686
|
+
### Examples
|
687
|
+
|
688
|
+
```ruby
|
689
|
+
require 'time'
|
690
|
+
require 'firefly_iii_client'
|
691
|
+
# setup authorization
|
692
|
+
FireflyIIIClient.configure do |config|
|
693
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
694
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
695
|
+
end
|
696
|
+
|
697
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
698
|
+
opts = {
|
699
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
700
|
+
}
|
701
|
+
|
702
|
+
begin
|
703
|
+
# List all currencies.
|
704
|
+
result = api_instance.list_currency(opts)
|
705
|
+
p result
|
706
|
+
rescue FireflyIIIClient::ApiError => e
|
707
|
+
puts "Error when calling CurrenciesApi->list_currency: #{e}"
|
708
|
+
end
|
709
|
+
```
|
710
|
+
|
711
|
+
#### Using the list_currency_with_http_info variant
|
712
|
+
|
713
|
+
This returns an Array which contains the response data, status code and headers.
|
714
|
+
|
715
|
+
> <Array(<CurrencyArray>, Integer, Hash)> list_currency_with_http_info(opts)
|
716
|
+
|
717
|
+
```ruby
|
718
|
+
|
719
|
+
begin
|
720
|
+
# List all currencies.
|
721
|
+
data, status_code, headers = api_instance.list_currency_with_http_info(opts)
|
722
|
+
p status_code # => 2xx
|
723
|
+
p headers # => { ... }
|
724
|
+
p data # => <CurrencyArray>
|
725
|
+
rescue FireflyIIIClient::ApiError => e
|
726
|
+
puts "Error when calling CurrenciesApi->list_currency_with_http_info: #{e}"
|
727
|
+
end
|
728
|
+
```
|
729
|
+
|
730
|
+
### Parameters
|
731
|
+
|
732
|
+
| Name | Type | Description | Notes |
|
733
|
+
| ---- | ---- | ----------- | ----- |
|
734
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
735
|
+
|
736
|
+
### Return type
|
737
|
+
|
738
|
+
[**CurrencyArray**](CurrencyArray.md)
|
739
|
+
|
740
|
+
### Authorization
|
741
|
+
|
742
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
743
|
+
|
744
|
+
### HTTP request headers
|
745
|
+
|
746
|
+
- **Content-Type**: Not defined
|
747
|
+
- **Accept**: application/json
|
748
|
+
|
749
|
+
|
750
|
+
## list_exchange_rate_by_currency
|
751
|
+
|
752
|
+
> <ExchangeRateArray> list_exchange_rate_by_currency(code, opts)
|
753
|
+
|
754
|
+
List all known exchange rates with (from or to) this currency.
|
755
|
+
|
756
|
+
List all known exchange rates.
|
757
|
+
|
758
|
+
### Examples
|
759
|
+
|
760
|
+
```ruby
|
761
|
+
require 'time'
|
762
|
+
require 'firefly_iii_client'
|
763
|
+
# setup authorization
|
764
|
+
FireflyIIIClient.configure do |config|
|
765
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
766
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
767
|
+
end
|
768
|
+
|
769
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
770
|
+
code = 'GBP' # String | The currency code.
|
771
|
+
opts = {
|
772
|
+
page: 1, # Integer | Page number. The default pagination is 50.
|
773
|
+
date: Date.parse('2013-10-20'), # Date | The date of which you want to know the exchange rate
|
774
|
+
start: Date.parse('2013-10-20'), # Date | Use this instead of the date parameter to search for a range of currency exchange values.
|
775
|
+
_end: Date.parse('2013-10-20') # Date | Use this instead of the date parameter to search for a range of currency exchange values.
|
776
|
+
}
|
777
|
+
|
778
|
+
begin
|
779
|
+
# List all known exchange rates with (from or to) this currency.
|
780
|
+
result = api_instance.list_exchange_rate_by_currency(code, opts)
|
781
|
+
p result
|
782
|
+
rescue FireflyIIIClient::ApiError => e
|
783
|
+
puts "Error when calling CurrenciesApi->list_exchange_rate_by_currency: #{e}"
|
784
|
+
end
|
785
|
+
```
|
786
|
+
|
787
|
+
#### Using the list_exchange_rate_by_currency_with_http_info variant
|
788
|
+
|
789
|
+
This returns an Array which contains the response data, status code and headers.
|
790
|
+
|
791
|
+
> <Array(<ExchangeRateArray>, Integer, Hash)> list_exchange_rate_by_currency_with_http_info(code, opts)
|
792
|
+
|
793
|
+
```ruby
|
794
|
+
|
795
|
+
begin
|
796
|
+
# List all known exchange rates with (from or to) this currency.
|
797
|
+
data, status_code, headers = api_instance.list_exchange_rate_by_currency_with_http_info(code, opts)
|
798
|
+
p status_code # => 2xx
|
799
|
+
p headers # => { ... }
|
800
|
+
p data # => <ExchangeRateArray>
|
801
|
+
rescue FireflyIIIClient::ApiError => e
|
802
|
+
puts "Error when calling CurrenciesApi->list_exchange_rate_by_currency_with_http_info: #{e}"
|
803
|
+
end
|
804
|
+
```
|
805
|
+
|
806
|
+
### Parameters
|
807
|
+
|
808
|
+
| Name | Type | Description | Notes |
|
809
|
+
| ---- | ---- | ----------- | ----- |
|
810
|
+
| **code** | **String** | The currency code. | |
|
811
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
812
|
+
| **date** | **Date** | The date of which you want to know the exchange rate | [optional] |
|
813
|
+
| **start** | **Date** | Use this instead of the date parameter to search for a range of currency exchange values. | [optional] |
|
814
|
+
| **_end** | **Date** | Use this instead of the date parameter to search for a range of currency exchange values. | [optional] |
|
815
|
+
|
816
|
+
### Return type
|
817
|
+
|
818
|
+
[**ExchangeRateArray**](ExchangeRateArray.md)
|
819
|
+
|
820
|
+
### Authorization
|
821
|
+
|
822
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
823
|
+
|
824
|
+
### HTTP request headers
|
825
|
+
|
826
|
+
- **Content-Type**: Not defined
|
827
|
+
- **Accept**: application/json
|
828
|
+
|
829
|
+
|
830
|
+
## list_recurrence_by_currency
|
831
|
+
|
832
|
+
> <RecurrenceArray> list_recurrence_by_currency(code, opts)
|
833
|
+
|
834
|
+
List all recurring transactions with this currency.
|
835
|
+
|
836
|
+
List all recurring transactions with this currency.
|
837
|
+
|
838
|
+
### Examples
|
839
|
+
|
840
|
+
```ruby
|
841
|
+
require 'time'
|
842
|
+
require 'firefly_iii_client'
|
843
|
+
# setup authorization
|
844
|
+
FireflyIIIClient.configure do |config|
|
845
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
846
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
847
|
+
end
|
848
|
+
|
849
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
850
|
+
code = 'EUR' # String | The currency code.
|
851
|
+
opts = {
|
852
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
853
|
+
}
|
854
|
+
|
855
|
+
begin
|
856
|
+
# List all recurring transactions with this currency.
|
857
|
+
result = api_instance.list_recurrence_by_currency(code, opts)
|
858
|
+
p result
|
859
|
+
rescue FireflyIIIClient::ApiError => e
|
860
|
+
puts "Error when calling CurrenciesApi->list_recurrence_by_currency: #{e}"
|
861
|
+
end
|
862
|
+
```
|
863
|
+
|
864
|
+
#### Using the list_recurrence_by_currency_with_http_info variant
|
865
|
+
|
866
|
+
This returns an Array which contains the response data, status code and headers.
|
867
|
+
|
868
|
+
> <Array(<RecurrenceArray>, Integer, Hash)> list_recurrence_by_currency_with_http_info(code, opts)
|
869
|
+
|
870
|
+
```ruby
|
871
|
+
|
872
|
+
begin
|
873
|
+
# List all recurring transactions with this currency.
|
874
|
+
data, status_code, headers = api_instance.list_recurrence_by_currency_with_http_info(code, opts)
|
875
|
+
p status_code # => 2xx
|
876
|
+
p headers # => { ... }
|
877
|
+
p data # => <RecurrenceArray>
|
878
|
+
rescue FireflyIIIClient::ApiError => e
|
879
|
+
puts "Error when calling CurrenciesApi->list_recurrence_by_currency_with_http_info: #{e}"
|
880
|
+
end
|
881
|
+
```
|
882
|
+
|
883
|
+
### Parameters
|
884
|
+
|
885
|
+
| Name | Type | Description | Notes |
|
886
|
+
| ---- | ---- | ----------- | ----- |
|
887
|
+
| **code** | **String** | The currency code. | |
|
888
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
889
|
+
|
890
|
+
### Return type
|
891
|
+
|
892
|
+
[**RecurrenceArray**](RecurrenceArray.md)
|
893
|
+
|
894
|
+
### Authorization
|
895
|
+
|
896
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
897
|
+
|
898
|
+
### HTTP request headers
|
899
|
+
|
900
|
+
- **Content-Type**: Not defined
|
901
|
+
- **Accept**: application/json
|
902
|
+
|
903
|
+
|
904
|
+
## list_rule_by_currency
|
905
|
+
|
906
|
+
> <RuleArray> list_rule_by_currency(code, opts)
|
907
|
+
|
908
|
+
List all rules with this currency.
|
909
|
+
|
910
|
+
List all rules with this currency.
|
911
|
+
|
912
|
+
### Examples
|
913
|
+
|
914
|
+
```ruby
|
915
|
+
require 'time'
|
916
|
+
require 'firefly_iii_client'
|
917
|
+
# setup authorization
|
918
|
+
FireflyIIIClient.configure do |config|
|
919
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
920
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
921
|
+
end
|
922
|
+
|
923
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
924
|
+
code = 'USD' # String | The currency code.
|
925
|
+
opts = {
|
926
|
+
page: 1 # Integer | Page number. The default pagination per 50.
|
927
|
+
}
|
928
|
+
|
929
|
+
begin
|
930
|
+
# List all rules with this currency.
|
931
|
+
result = api_instance.list_rule_by_currency(code, opts)
|
932
|
+
p result
|
933
|
+
rescue FireflyIIIClient::ApiError => e
|
934
|
+
puts "Error when calling CurrenciesApi->list_rule_by_currency: #{e}"
|
935
|
+
end
|
936
|
+
```
|
937
|
+
|
938
|
+
#### Using the list_rule_by_currency_with_http_info variant
|
939
|
+
|
940
|
+
This returns an Array which contains the response data, status code and headers.
|
941
|
+
|
942
|
+
> <Array(<RuleArray>, Integer, Hash)> list_rule_by_currency_with_http_info(code, opts)
|
943
|
+
|
944
|
+
```ruby
|
945
|
+
|
946
|
+
begin
|
947
|
+
# List all rules with this currency.
|
948
|
+
data, status_code, headers = api_instance.list_rule_by_currency_with_http_info(code, opts)
|
949
|
+
p status_code # => 2xx
|
950
|
+
p headers # => { ... }
|
951
|
+
p data # => <RuleArray>
|
952
|
+
rescue FireflyIIIClient::ApiError => e
|
953
|
+
puts "Error when calling CurrenciesApi->list_rule_by_currency_with_http_info: #{e}"
|
954
|
+
end
|
955
|
+
```
|
956
|
+
|
957
|
+
### Parameters
|
958
|
+
|
959
|
+
| Name | Type | Description | Notes |
|
960
|
+
| ---- | ---- | ----------- | ----- |
|
961
|
+
| **code** | **String** | The currency code. | |
|
962
|
+
| **page** | **Integer** | Page number. The default pagination per 50. | [optional] |
|
963
|
+
|
964
|
+
### Return type
|
965
|
+
|
966
|
+
[**RuleArray**](RuleArray.md)
|
967
|
+
|
968
|
+
### Authorization
|
969
|
+
|
970
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
971
|
+
|
972
|
+
### HTTP request headers
|
973
|
+
|
974
|
+
- **Content-Type**: Not defined
|
975
|
+
- **Accept**: application/json
|
976
|
+
|
977
|
+
|
978
|
+
## list_transaction_by_currency
|
979
|
+
|
980
|
+
> <TransactionArray> list_transaction_by_currency(code, opts)
|
981
|
+
|
982
|
+
List all transactions with this currency.
|
983
|
+
|
984
|
+
List all transactions with this currency.
|
985
|
+
|
986
|
+
### Examples
|
987
|
+
|
988
|
+
```ruby
|
989
|
+
require 'time'
|
990
|
+
require 'firefly_iii_client'
|
991
|
+
# setup authorization
|
992
|
+
FireflyIIIClient.configure do |config|
|
993
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
994
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
995
|
+
end
|
996
|
+
|
997
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
998
|
+
code = 'USD' # String | The currency code.
|
999
|
+
opts = {
|
1000
|
+
page: 1, # Integer | Page number. The default pagination is per 50.
|
1001
|
+
start_date: Date.parse('Mon Sep 17 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the list of transactions.
|
1002
|
+
end_date: Date.parse('Mon Dec 31 00:00:00 GMT 2018'), # Date | A date formatted YYYY-MM-DD, to limit the list of transactions.
|
1003
|
+
type: FireflyIIIClient::TransactionTypeFilter::ALL # TransactionTypeFilter | Optional filter on the transaction type(s) returned
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
begin
|
1007
|
+
# List all transactions with this currency.
|
1008
|
+
result = api_instance.list_transaction_by_currency(code, opts)
|
1009
|
+
p result
|
1010
|
+
rescue FireflyIIIClient::ApiError => e
|
1011
|
+
puts "Error when calling CurrenciesApi->list_transaction_by_currency: #{e}"
|
1012
|
+
end
|
1013
|
+
```
|
1014
|
+
|
1015
|
+
#### Using the list_transaction_by_currency_with_http_info variant
|
1016
|
+
|
1017
|
+
This returns an Array which contains the response data, status code and headers.
|
1018
|
+
|
1019
|
+
> <Array(<TransactionArray>, Integer, Hash)> list_transaction_by_currency_with_http_info(code, opts)
|
1020
|
+
|
1021
|
+
```ruby
|
1022
|
+
|
1023
|
+
begin
|
1024
|
+
# List all transactions with this currency.
|
1025
|
+
data, status_code, headers = api_instance.list_transaction_by_currency_with_http_info(code, opts)
|
1026
|
+
p status_code # => 2xx
|
1027
|
+
p headers # => { ... }
|
1028
|
+
p data # => <TransactionArray>
|
1029
|
+
rescue FireflyIIIClient::ApiError => e
|
1030
|
+
puts "Error when calling CurrenciesApi->list_transaction_by_currency_with_http_info: #{e}"
|
1031
|
+
end
|
1032
|
+
```
|
1033
|
+
|
1034
|
+
### Parameters
|
1035
|
+
|
1036
|
+
| Name | Type | Description | Notes |
|
1037
|
+
| ---- | ---- | ----------- | ----- |
|
1038
|
+
| **code** | **String** | The currency code. | |
|
1039
|
+
| **page** | **Integer** | Page number. The default pagination is per 50. | [optional] |
|
1040
|
+
| **start_date** | **Date** | A date formatted YYYY-MM-DD, to limit the list of transactions. | [optional] |
|
1041
|
+
| **end_date** | **Date** | A date formatted YYYY-MM-DD, to limit the list of transactions. | [optional] |
|
1042
|
+
| **type** | [**TransactionTypeFilter**](.md) | Optional filter on the transaction type(s) returned | [optional] |
|
1043
|
+
|
1044
|
+
### Return type
|
1045
|
+
|
1046
|
+
[**TransactionArray**](TransactionArray.md)
|
1047
|
+
|
1048
|
+
### Authorization
|
1049
|
+
|
1050
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
1051
|
+
|
1052
|
+
### HTTP request headers
|
1053
|
+
|
1054
|
+
- **Content-Type**: Not defined
|
1055
|
+
- **Accept**: application/json
|
1056
|
+
|
1057
|
+
|
1058
|
+
## store_currency
|
1059
|
+
|
1060
|
+
> <CurrencySingle> store_currency(currency)
|
1061
|
+
|
1062
|
+
Store a new currency
|
1063
|
+
|
1064
|
+
Creates a new currency. The data required can be submitted as a JSON body or as a list of parameters.
|
1065
|
+
|
1066
|
+
### Examples
|
1067
|
+
|
1068
|
+
```ruby
|
1069
|
+
require 'time'
|
1070
|
+
require 'firefly_iii_client'
|
1071
|
+
# setup authorization
|
1072
|
+
FireflyIIIClient.configure do |config|
|
1073
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
1074
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
1078
|
+
currency = FireflyIIIClient::Currency.new({ code: 'AMS', name: 'Ankh-Morpork dollar', symbol: 'AM$' }) # Currency | JSON array or key=value pairs with the necessary currency information. See the model for the exact specifications.
|
1079
|
+
|
1080
|
+
begin
|
1081
|
+
# Store a new currency
|
1082
|
+
result = api_instance.store_currency(currency)
|
1083
|
+
p result
|
1084
|
+
rescue FireflyIIIClient::ApiError => e
|
1085
|
+
puts "Error when calling CurrenciesApi->store_currency: #{e}"
|
1086
|
+
end
|
1087
|
+
```
|
1088
|
+
|
1089
|
+
#### Using the store_currency_with_http_info variant
|
1090
|
+
|
1091
|
+
This returns an Array which contains the response data, status code and headers.
|
1092
|
+
|
1093
|
+
> <Array(<CurrencySingle>, Integer, Hash)> store_currency_with_http_info(currency)
|
1094
|
+
|
1095
|
+
```ruby
|
1096
|
+
|
1097
|
+
begin
|
1098
|
+
# Store a new currency
|
1099
|
+
data, status_code, headers = api_instance.store_currency_with_http_info(currency)
|
1100
|
+
p status_code # => 2xx
|
1101
|
+
p headers # => { ... }
|
1102
|
+
p data # => <CurrencySingle>
|
1103
|
+
rescue FireflyIIIClient::ApiError => e
|
1104
|
+
puts "Error when calling CurrenciesApi->store_currency_with_http_info: #{e}"
|
1105
|
+
end
|
1106
|
+
```
|
1107
|
+
|
1108
|
+
### Parameters
|
1109
|
+
|
1110
|
+
| Name | Type | Description | Notes |
|
1111
|
+
| ---- | ---- | ----------- | ----- |
|
1112
|
+
| **currency** | [**Currency**](Currency.md) | JSON array or key=value pairs with the necessary currency information. See the model for the exact specifications. | |
|
1113
|
+
|
1114
|
+
### Return type
|
1115
|
+
|
1116
|
+
[**CurrencySingle**](CurrencySingle.md)
|
1117
|
+
|
1118
|
+
### Authorization
|
1119
|
+
|
1120
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
1121
|
+
|
1122
|
+
### HTTP request headers
|
1123
|
+
|
1124
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
1125
|
+
- **Accept**: application/json
|
1126
|
+
|
1127
|
+
|
1128
|
+
## update_currency
|
1129
|
+
|
1130
|
+
> <CurrencySingle> update_currency(code, currency)
|
1131
|
+
|
1132
|
+
Update existing currency.
|
1133
|
+
|
1134
|
+
Update existing currency.
|
1135
|
+
|
1136
|
+
### Examples
|
1137
|
+
|
1138
|
+
```ruby
|
1139
|
+
require 'time'
|
1140
|
+
require 'firefly_iii_client'
|
1141
|
+
# setup authorization
|
1142
|
+
FireflyIIIClient.configure do |config|
|
1143
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
1144
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
api_instance = FireflyIIIClient::CurrenciesApi.new
|
1148
|
+
code = 'EUR' # String | The currency code.
|
1149
|
+
currency = FireflyIIIClient::Currency.new({ code: 'AMS', name: 'Ankh-Morpork dollar', symbol: 'AM$' }) # Currency | JSON array with updated currency information. See the model for the exact specifications.
|
1150
|
+
|
1151
|
+
begin
|
1152
|
+
# Update existing currency.
|
1153
|
+
result = api_instance.update_currency(code, currency)
|
1154
|
+
p result
|
1155
|
+
rescue FireflyIIIClient::ApiError => e
|
1156
|
+
puts "Error when calling CurrenciesApi->update_currency: #{e}"
|
1157
|
+
end
|
1158
|
+
```
|
1159
|
+
|
1160
|
+
#### Using the update_currency_with_http_info variant
|
1161
|
+
|
1162
|
+
This returns an Array which contains the response data, status code and headers.
|
1163
|
+
|
1164
|
+
> <Array(<CurrencySingle>, Integer, Hash)> update_currency_with_http_info(code, currency)
|
1165
|
+
|
1166
|
+
```ruby
|
1167
|
+
|
1168
|
+
begin
|
1169
|
+
# Update existing currency.
|
1170
|
+
data, status_code, headers = api_instance.update_currency_with_http_info(code, currency)
|
1171
|
+
p status_code # => 2xx
|
1172
|
+
p headers # => { ... }
|
1173
|
+
p data # => <CurrencySingle>
|
1174
|
+
rescue FireflyIIIClient::ApiError => e
|
1175
|
+
puts "Error when calling CurrenciesApi->update_currency_with_http_info: #{e}"
|
1176
|
+
end
|
1177
|
+
```
|
1178
|
+
|
1179
|
+
### Parameters
|
1180
|
+
|
1181
|
+
| Name | Type | Description | Notes |
|
1182
|
+
| ---- | ---- | ----------- | ----- |
|
1183
|
+
| **code** | **String** | The currency code. | |
|
1184
|
+
| **currency** | [**Currency**](Currency.md) | JSON array with updated currency information. See the model for the exact specifications. | |
|
1185
|
+
|
1186
|
+
### Return type
|
1187
|
+
|
1188
|
+
[**CurrencySingle**](CurrencySingle.md)
|
1189
|
+
|
1190
|
+
### Authorization
|
1191
|
+
|
1192
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
1193
|
+
|
1194
|
+
### HTTP request headers
|
1195
|
+
|
1196
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
1197
|
+
- **Accept**: application/json
|
1198
|
+
|