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/Meta.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::Meta
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **pagination** | [**MetaPagination**](MetaPagination.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::Meta.new(
|
15
|
+
pagination: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# OpenapiClient::MetaPagination
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **total** | **Integer** | | [optional] |
|
8
|
+
| **count** | **Integer** | | [optional] |
|
9
|
+
| **per_page** | **Integer** | | [optional] |
|
10
|
+
| **current_page** | **Integer** | | [optional] |
|
11
|
+
| **total_pages** | **Integer** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'firefly_iii_client'
|
17
|
+
|
18
|
+
instance = FireflyIIIClient::MetaPagination.new(
|
19
|
+
total: 3,
|
20
|
+
count: 20,
|
21
|
+
per_page: 100,
|
22
|
+
current_page: 1,
|
23
|
+
total_pages: 1
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/ObjectLink.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# OpenapiClient::ObjectLink
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_0** | [**ObjectLink0**](ObjectLink0.md) | | [optional] |
|
8
|
+
| **_self** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'firefly_iii_client'
|
14
|
+
|
15
|
+
instance = FireflyIIIClient::ObjectLink.new(
|
16
|
+
_0: null,
|
17
|
+
_self: https : // demo.firefly - iii.org / api / v1 / OBJECTS / 1
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/ObjectLink0.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# OpenapiClient::ObjectLink0
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **rel** | **String** | | [optional] |
|
8
|
+
| **uri** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'firefly_iii_client'
|
14
|
+
|
15
|
+
instance = FireflyIIIClient::ObjectLink0.new(
|
16
|
+
rel: self,
|
17
|
+
uri: /OBJECTS/ 1
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/PageLink.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::PageLink
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_self** | **String** | | [optional] |
|
8
|
+
| **first** | **String** | | [optional] |
|
9
|
+
| **last** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::PageLink.new(
|
17
|
+
_self: https : // demo.firefly - iii.org / api / v1 / OBJECT? & amp; page & #x3D;4,
|
18
|
+
first : https : // demo.firefly - iii.org / api / v1 / OBJECT? & amp; page & #x3D;1,
|
19
|
+
last : https : // demo.firefly - iii.org / api / v1 / OBJECT? & amp; page & #x3D;12
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/PiggyBank.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# OpenapiClient::PiggyBank
|
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
|
+
| **account_id** | **Integer** | The ID of the asset account this piggy bank is connected to. | |
|
11
|
+
| **account_name** | **String** | The name of the asset account this piggy bank is connected to. | [optional][readonly] |
|
12
|
+
| **currency_id** | **Integer** | | [optional][readonly] |
|
13
|
+
| **currency_code** | **String** | | [optional][readonly] |
|
14
|
+
| **currency_symbol** | **String** | | [optional][readonly] |
|
15
|
+
| **currency_decimal_places** | **Integer** | Number of decimals supported by the currency | [optional][readonly] |
|
16
|
+
| **target_amount** | **Float** | | |
|
17
|
+
| **percentage** | **Float** | | [optional][readonly] |
|
18
|
+
| **current_amount** | **Float** | | [optional] |
|
19
|
+
| **left_to_save** | **Float** | | [optional][readonly] |
|
20
|
+
| **save_per_month** | **Float** | | [optional][readonly] |
|
21
|
+
| **start_date** | **Date** | The date you started with this piggy bank. | [optional] |
|
22
|
+
| **target_date** | **Date** | The date you intend to finish saving money. | [optional] |
|
23
|
+
| **order** | **Integer** | | [optional][readonly] |
|
24
|
+
| **active** | **Boolean** | | [optional][readonly] |
|
25
|
+
| **notes** | **String** | | [optional] |
|
26
|
+
|
27
|
+
## Example
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'firefly_iii_client'
|
31
|
+
|
32
|
+
instance = FireflyIIIClient::PiggyBank.new(
|
33
|
+
created_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
34
|
+
updated_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
35
|
+
name : New digital camera,
|
36
|
+
account_id: 13,
|
37
|
+
account_name: Savings account,
|
38
|
+
currency_id : 5,
|
39
|
+
currency_code : USD,
|
40
|
+
currency_symbol : $,
|
41
|
+
currency_decimal_places : 2,
|
42
|
+
target_amount : 800,
|
43
|
+
percentage : 12.5,
|
44
|
+
current_amount : 100,
|
45
|
+
left_to_save : 700,
|
46
|
+
save_per_month : 12.45,
|
47
|
+
start_date : Mon Sep 17 00 : 00 : 00 GMT 2018,
|
48
|
+
target_date: Thu Sep 17 00 : 00 : 00 GMT 2020,
|
49
|
+
order: 5,
|
50
|
+
active: true,
|
51
|
+
notes: Some notes
|
52
|
+
)
|
53
|
+
```
|
54
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::PiggyBankArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<PiggyBankRead>**](PiggyBankRead.md) | | [optional] |
|
8
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
9
|
+
| **links** | [**PageLink**](PageLink.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::PiggyBankArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::PiggyBankEvent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value indicating the object type. | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**PiggyBankEventAttributes**](PiggyBankEventAttributes.md) | | [optional] |
|
10
|
+
| **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::PiggyBankEvent.new(
|
18
|
+
type: piggy_bank_events,
|
19
|
+
id: 2,
|
20
|
+
attributes: null,
|
21
|
+
links: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OpenapiClient::PiggyBankEventArray
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**Array<PiggyBankRead>**](PiggyBankRead.md) | | [optional] |
|
8
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
9
|
+
| **links** | [**PageLink**](PageLink.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'firefly_iii_client'
|
15
|
+
|
16
|
+
instance = FireflyIIIClient::PiggyBankEventArray.new(
|
17
|
+
data: null,
|
18
|
+
meta: null,
|
19
|
+
links: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# OpenapiClient::PiggyBankEventAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **updated_at** | **Time** | | [optional] |
|
8
|
+
| **created_at** | **Time** | | [optional] |
|
9
|
+
| **currency_id** | **Integer** | | [optional] |
|
10
|
+
| **currency_code** | **String** | | [optional] |
|
11
|
+
| **currency_symbol** | **String** | | [optional] |
|
12
|
+
| **currency_decimal_places** | **Integer** | | [optional] |
|
13
|
+
| **amount** | **Float** | | [optional] |
|
14
|
+
| **journal_id** | **Integer** | The journal associated with the event. | [optional] |
|
15
|
+
| **transaction_id** | **Integer** | | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'firefly_iii_client'
|
21
|
+
|
22
|
+
instance = FireflyIIIClient::PiggyBankEventAttributes.new(
|
23
|
+
updated_at: 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
24
|
+
created_at : 2018 - 09 - 17 T12 : 46 : 47 + 01 : 00,
|
25
|
+
currency_id : 5,
|
26
|
+
currency_code : EUR,
|
27
|
+
currency_symbol : $,
|
28
|
+
currency_decimal_places : 2,
|
29
|
+
amount : 250,
|
30
|
+
journal_id : 4291,
|
31
|
+
transaction_id : 4291
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OpenapiClient::PiggyBankRead
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Immutable value | [optional] |
|
8
|
+
| **id** | **Integer** | | [optional] |
|
9
|
+
| **attributes** | [**PiggyBank**](PiggyBank.md) | | [optional] |
|
10
|
+
| **links** | [**ObjectLink**](ObjectLink.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'firefly_iii_client'
|
16
|
+
|
17
|
+
instance = FireflyIIIClient::PiggyBankRead.new(
|
18
|
+
type: piggy_banks,
|
19
|
+
id: 2,
|
20
|
+
attributes: null,
|
21
|
+
links: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OpenapiClient::PiggyBankSingle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**PiggyBankRead**](PiggyBankRead.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'firefly_iii_client'
|
13
|
+
|
14
|
+
instance = FireflyIIIClient::PiggyBankSingle.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,440 @@
|
|
1
|
+
# OpenapiClient::PiggyBanksApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.firefly-iii.org*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_piggy_bank**](PiggyBanksApi.md#delete_piggy_bank) | **DELETE** /api/v1/piggy_banks/{id} | Delete a piggy bank. |
|
8
|
+
| [**get_piggy_bank**](PiggyBanksApi.md#get_piggy_bank) | **GET** /api/v1/piggy_banks/{id} | Get a single piggy bank. |
|
9
|
+
| [**list_event_by_piggy_bank**](PiggyBanksApi.md#list_event_by_piggy_bank) | **GET** /api/v1/piggy_banks/{id}/events | List all events linked to a piggy bank. |
|
10
|
+
| [**list_piggy_bank**](PiggyBanksApi.md#list_piggy_bank) | **GET** /api/v1/piggy_banks | List all piggy banks. |
|
11
|
+
| [**store_piggy_bank**](PiggyBanksApi.md#store_piggy_bank) | **POST** /api/v1/piggy_banks | Store a new piggy bank |
|
12
|
+
| [**update_piggy_bank**](PiggyBanksApi.md#update_piggy_bank) | **PUT** /api/v1/piggy_banks/{id} | Update existing piggy bank. |
|
13
|
+
|
14
|
+
|
15
|
+
## delete_piggy_bank
|
16
|
+
|
17
|
+
> delete_piggy_bank(id)
|
18
|
+
|
19
|
+
Delete a piggy bank.
|
20
|
+
|
21
|
+
Delete a piggy bank.
|
22
|
+
|
23
|
+
### Examples
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'time'
|
27
|
+
require 'firefly_iii_client'
|
28
|
+
# setup authorization
|
29
|
+
FireflyIIIClient.configure do |config|
|
30
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
31
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = FireflyIIIClient::PiggyBanksApi.new
|
35
|
+
id = 1 # Integer | The ID of the piggy bank.
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Delete a piggy bank.
|
39
|
+
api_instance.delete_piggy_bank(id)
|
40
|
+
rescue FireflyIIIClient::ApiError => e
|
41
|
+
puts "Error when calling PiggyBanksApi->delete_piggy_bank: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Using the delete_piggy_bank_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
48
|
+
|
49
|
+
> <Array(nil, Integer, Hash)> delete_piggy_bank_with_http_info(id)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
|
53
|
+
begin
|
54
|
+
# Delete a piggy bank.
|
55
|
+
data, status_code, headers = api_instance.delete_piggy_bank_with_http_info(id)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => nil
|
59
|
+
rescue FireflyIIIClient::ApiError => e
|
60
|
+
puts "Error when calling PiggyBanksApi->delete_piggy_bank_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **id** | **Integer** | The ID of the piggy bank. | |
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
nil (empty response body)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: Not defined
|
81
|
+
- **Accept**: Not defined
|
82
|
+
|
83
|
+
|
84
|
+
## get_piggy_bank
|
85
|
+
|
86
|
+
> <PiggyBankSingle> get_piggy_bank(id)
|
87
|
+
|
88
|
+
Get a single piggy bank.
|
89
|
+
|
90
|
+
Get a single piggy bank.
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'firefly_iii_client'
|
97
|
+
# setup authorization
|
98
|
+
FireflyIIIClient.configure do |config|
|
99
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
100
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
101
|
+
end
|
102
|
+
|
103
|
+
api_instance = FireflyIIIClient::PiggyBanksApi.new
|
104
|
+
id = 1 # Integer | The ID of the piggy bank.
|
105
|
+
|
106
|
+
begin
|
107
|
+
# Get a single piggy bank.
|
108
|
+
result = api_instance.get_piggy_bank(id)
|
109
|
+
p result
|
110
|
+
rescue FireflyIIIClient::ApiError => e
|
111
|
+
puts "Error when calling PiggyBanksApi->get_piggy_bank: #{e}"
|
112
|
+
end
|
113
|
+
```
|
114
|
+
|
115
|
+
#### Using the get_piggy_bank_with_http_info variant
|
116
|
+
|
117
|
+
This returns an Array which contains the response data, status code and headers.
|
118
|
+
|
119
|
+
> <Array(<PiggyBankSingle>, Integer, Hash)> get_piggy_bank_with_http_info(id)
|
120
|
+
|
121
|
+
```ruby
|
122
|
+
|
123
|
+
begin
|
124
|
+
# Get a single piggy bank.
|
125
|
+
data, status_code, headers = api_instance.get_piggy_bank_with_http_info(id)
|
126
|
+
p status_code # => 2xx
|
127
|
+
p headers # => { ... }
|
128
|
+
p data # => <PiggyBankSingle>
|
129
|
+
rescue FireflyIIIClient::ApiError => e
|
130
|
+
puts "Error when calling PiggyBanksApi->get_piggy_bank_with_http_info: #{e}"
|
131
|
+
end
|
132
|
+
```
|
133
|
+
|
134
|
+
### Parameters
|
135
|
+
|
136
|
+
| Name | Type | Description | Notes |
|
137
|
+
| ---- | ---- | ----------- | ----- |
|
138
|
+
| **id** | **Integer** | The ID of the piggy bank. | |
|
139
|
+
|
140
|
+
### Return type
|
141
|
+
|
142
|
+
[**PiggyBankSingle**](PiggyBankSingle.md)
|
143
|
+
|
144
|
+
### Authorization
|
145
|
+
|
146
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
147
|
+
|
148
|
+
### HTTP request headers
|
149
|
+
|
150
|
+
- **Content-Type**: Not defined
|
151
|
+
- **Accept**: application/json
|
152
|
+
|
153
|
+
|
154
|
+
## list_event_by_piggy_bank
|
155
|
+
|
156
|
+
> <PiggyBankEventArray> list_event_by_piggy_bank(id, opts)
|
157
|
+
|
158
|
+
List all events linked to a piggy bank.
|
159
|
+
|
160
|
+
List all events linked to a piggy bank (adding and removing money).
|
161
|
+
|
162
|
+
### Examples
|
163
|
+
|
164
|
+
```ruby
|
165
|
+
require 'time'
|
166
|
+
require 'firefly_iii_client'
|
167
|
+
# setup authorization
|
168
|
+
FireflyIIIClient.configure do |config|
|
169
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
170
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
171
|
+
end
|
172
|
+
|
173
|
+
api_instance = FireflyIIIClient::PiggyBanksApi.new
|
174
|
+
id = 1 # Integer | The ID of the piggy bank
|
175
|
+
opts = {
|
176
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
177
|
+
}
|
178
|
+
|
179
|
+
begin
|
180
|
+
# List all events linked to a piggy bank.
|
181
|
+
result = api_instance.list_event_by_piggy_bank(id, opts)
|
182
|
+
p result
|
183
|
+
rescue FireflyIIIClient::ApiError => e
|
184
|
+
puts "Error when calling PiggyBanksApi->list_event_by_piggy_bank: #{e}"
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
#### Using the list_event_by_piggy_bank_with_http_info variant
|
189
|
+
|
190
|
+
This returns an Array which contains the response data, status code and headers.
|
191
|
+
|
192
|
+
> <Array(<PiggyBankEventArray>, Integer, Hash)> list_event_by_piggy_bank_with_http_info(id, opts)
|
193
|
+
|
194
|
+
```ruby
|
195
|
+
|
196
|
+
begin
|
197
|
+
# List all events linked to a piggy bank.
|
198
|
+
data, status_code, headers = api_instance.list_event_by_piggy_bank_with_http_info(id, opts)
|
199
|
+
p status_code # => 2xx
|
200
|
+
p headers # => { ... }
|
201
|
+
p data # => <PiggyBankEventArray>
|
202
|
+
rescue FireflyIIIClient::ApiError => e
|
203
|
+
puts "Error when calling PiggyBanksApi->list_event_by_piggy_bank_with_http_info: #{e}"
|
204
|
+
end
|
205
|
+
```
|
206
|
+
|
207
|
+
### Parameters
|
208
|
+
|
209
|
+
| Name | Type | Description | Notes |
|
210
|
+
| ---- | ---- | ----------- | ----- |
|
211
|
+
| **id** | **Integer** | The ID of the piggy bank | |
|
212
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
213
|
+
|
214
|
+
### Return type
|
215
|
+
|
216
|
+
[**PiggyBankEventArray**](PiggyBankEventArray.md)
|
217
|
+
|
218
|
+
### Authorization
|
219
|
+
|
220
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
221
|
+
|
222
|
+
### HTTP request headers
|
223
|
+
|
224
|
+
- **Content-Type**: Not defined
|
225
|
+
- **Accept**: application/json
|
226
|
+
|
227
|
+
|
228
|
+
## list_piggy_bank
|
229
|
+
|
230
|
+
> <PiggyBankArray> list_piggy_bank(opts)
|
231
|
+
|
232
|
+
List all piggy banks.
|
233
|
+
|
234
|
+
List all piggy banks.
|
235
|
+
|
236
|
+
### Examples
|
237
|
+
|
238
|
+
```ruby
|
239
|
+
require 'time'
|
240
|
+
require 'firefly_iii_client'
|
241
|
+
# setup authorization
|
242
|
+
FireflyIIIClient.configure do |config|
|
243
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
244
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
245
|
+
end
|
246
|
+
|
247
|
+
api_instance = FireflyIIIClient::PiggyBanksApi.new
|
248
|
+
opts = {
|
249
|
+
page: 1 # Integer | Page number. The default pagination is 50.
|
250
|
+
}
|
251
|
+
|
252
|
+
begin
|
253
|
+
# List all piggy banks.
|
254
|
+
result = api_instance.list_piggy_bank(opts)
|
255
|
+
p result
|
256
|
+
rescue FireflyIIIClient::ApiError => e
|
257
|
+
puts "Error when calling PiggyBanksApi->list_piggy_bank: #{e}"
|
258
|
+
end
|
259
|
+
```
|
260
|
+
|
261
|
+
#### Using the list_piggy_bank_with_http_info variant
|
262
|
+
|
263
|
+
This returns an Array which contains the response data, status code and headers.
|
264
|
+
|
265
|
+
> <Array(<PiggyBankArray>, Integer, Hash)> list_piggy_bank_with_http_info(opts)
|
266
|
+
|
267
|
+
```ruby
|
268
|
+
|
269
|
+
begin
|
270
|
+
# List all piggy banks.
|
271
|
+
data, status_code, headers = api_instance.list_piggy_bank_with_http_info(opts)
|
272
|
+
p status_code # => 2xx
|
273
|
+
p headers # => { ... }
|
274
|
+
p data # => <PiggyBankArray>
|
275
|
+
rescue FireflyIIIClient::ApiError => e
|
276
|
+
puts "Error when calling PiggyBanksApi->list_piggy_bank_with_http_info: #{e}"
|
277
|
+
end
|
278
|
+
```
|
279
|
+
|
280
|
+
### Parameters
|
281
|
+
|
282
|
+
| Name | Type | Description | Notes |
|
283
|
+
| ---- | ---- | ----------- | ----- |
|
284
|
+
| **page** | **Integer** | Page number. The default pagination is 50. | [optional] |
|
285
|
+
|
286
|
+
### Return type
|
287
|
+
|
288
|
+
[**PiggyBankArray**](PiggyBankArray.md)
|
289
|
+
|
290
|
+
### Authorization
|
291
|
+
|
292
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
293
|
+
|
294
|
+
### HTTP request headers
|
295
|
+
|
296
|
+
- **Content-Type**: Not defined
|
297
|
+
- **Accept**: application/json
|
298
|
+
|
299
|
+
|
300
|
+
## store_piggy_bank
|
301
|
+
|
302
|
+
> <PiggyBankSingle> store_piggy_bank(piggy_bank)
|
303
|
+
|
304
|
+
Store a new piggy bank
|
305
|
+
|
306
|
+
Creates a new piggy bank. The data required can be submitted as a JSON body or as a list of parameters.
|
307
|
+
|
308
|
+
### Examples
|
309
|
+
|
310
|
+
```ruby
|
311
|
+
require 'time'
|
312
|
+
require 'firefly_iii_client'
|
313
|
+
# setup authorization
|
314
|
+
FireflyIIIClient.configure do |config|
|
315
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
316
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
317
|
+
end
|
318
|
+
|
319
|
+
api_instance = FireflyIIIClient::PiggyBanksApi.new
|
320
|
+
piggy_bank = FireflyIIIClient::PiggyBank.new({ name: 'New digital camera', account_id: 13, target_amount: 800 }) # PiggyBank | JSON array or key=value pairs with the necessary piggy bank information. See the model for the exact specifications.
|
321
|
+
|
322
|
+
begin
|
323
|
+
# Store a new piggy bank
|
324
|
+
result = api_instance.store_piggy_bank(piggy_bank)
|
325
|
+
p result
|
326
|
+
rescue FireflyIIIClient::ApiError => e
|
327
|
+
puts "Error when calling PiggyBanksApi->store_piggy_bank: #{e}"
|
328
|
+
end
|
329
|
+
```
|
330
|
+
|
331
|
+
#### Using the store_piggy_bank_with_http_info variant
|
332
|
+
|
333
|
+
This returns an Array which contains the response data, status code and headers.
|
334
|
+
|
335
|
+
> <Array(<PiggyBankSingle>, Integer, Hash)> store_piggy_bank_with_http_info(piggy_bank)
|
336
|
+
|
337
|
+
```ruby
|
338
|
+
|
339
|
+
begin
|
340
|
+
# Store a new piggy bank
|
341
|
+
data, status_code, headers = api_instance.store_piggy_bank_with_http_info(piggy_bank)
|
342
|
+
p status_code # => 2xx
|
343
|
+
p headers # => { ... }
|
344
|
+
p data # => <PiggyBankSingle>
|
345
|
+
rescue FireflyIIIClient::ApiError => e
|
346
|
+
puts "Error when calling PiggyBanksApi->store_piggy_bank_with_http_info: #{e}"
|
347
|
+
end
|
348
|
+
```
|
349
|
+
|
350
|
+
### Parameters
|
351
|
+
|
352
|
+
| Name | Type | Description | Notes |
|
353
|
+
| ---- | ---- | ----------- | ----- |
|
354
|
+
| **piggy_bank** | [**PiggyBank**](PiggyBank.md) | JSON array or key=value pairs with the necessary piggy bank information. See the model for the exact specifications. | |
|
355
|
+
|
356
|
+
### Return type
|
357
|
+
|
358
|
+
[**PiggyBankSingle**](PiggyBankSingle.md)
|
359
|
+
|
360
|
+
### Authorization
|
361
|
+
|
362
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
363
|
+
|
364
|
+
### HTTP request headers
|
365
|
+
|
366
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
367
|
+
- **Accept**: application/json
|
368
|
+
|
369
|
+
|
370
|
+
## update_piggy_bank
|
371
|
+
|
372
|
+
> <PiggyBankSingle> update_piggy_bank(id, piggy_bank)
|
373
|
+
|
374
|
+
Update existing piggy bank.
|
375
|
+
|
376
|
+
Update existing piggy bank.
|
377
|
+
|
378
|
+
### Examples
|
379
|
+
|
380
|
+
```ruby
|
381
|
+
require 'time'
|
382
|
+
require 'firefly_iii_client'
|
383
|
+
# setup authorization
|
384
|
+
FireflyIIIClient.configure do |config|
|
385
|
+
# Configure OAuth2 access token for authorization: firefly_iii_auth
|
386
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = FireflyIIIClient::PiggyBanksApi.new
|
390
|
+
id = 1 # Integer | The ID of the piggy bank
|
391
|
+
piggy_bank = FireflyIIIClient::PiggyBank.new({ name: 'New digital camera', account_id: 13, target_amount: 800 }) # PiggyBank | JSON array with updated piggy bank information. See the model for the exact specifications.
|
392
|
+
|
393
|
+
begin
|
394
|
+
# Update existing piggy bank.
|
395
|
+
result = api_instance.update_piggy_bank(id, piggy_bank)
|
396
|
+
p result
|
397
|
+
rescue FireflyIIIClient::ApiError => e
|
398
|
+
puts "Error when calling PiggyBanksApi->update_piggy_bank: #{e}"
|
399
|
+
end
|
400
|
+
```
|
401
|
+
|
402
|
+
#### Using the update_piggy_bank_with_http_info variant
|
403
|
+
|
404
|
+
This returns an Array which contains the response data, status code and headers.
|
405
|
+
|
406
|
+
> <Array(<PiggyBankSingle>, Integer, Hash)> update_piggy_bank_with_http_info(id, piggy_bank)
|
407
|
+
|
408
|
+
```ruby
|
409
|
+
|
410
|
+
begin
|
411
|
+
# Update existing piggy bank.
|
412
|
+
data, status_code, headers = api_instance.update_piggy_bank_with_http_info(id, piggy_bank)
|
413
|
+
p status_code # => 2xx
|
414
|
+
p headers # => { ... }
|
415
|
+
p data # => <PiggyBankSingle>
|
416
|
+
rescue FireflyIIIClient::ApiError => e
|
417
|
+
puts "Error when calling PiggyBanksApi->update_piggy_bank_with_http_info: #{e}"
|
418
|
+
end
|
419
|
+
```
|
420
|
+
|
421
|
+
### Parameters
|
422
|
+
|
423
|
+
| Name | Type | Description | Notes |
|
424
|
+
| ---- | ---- | ----------- | ----- |
|
425
|
+
| **id** | **Integer** | The ID of the piggy bank | |
|
426
|
+
| **piggy_bank** | [**PiggyBank**](PiggyBank.md) | JSON array with updated piggy bank information. See the model for the exact specifications. | |
|
427
|
+
|
428
|
+
### Return type
|
429
|
+
|
430
|
+
[**PiggyBankSingle**](PiggyBankSingle.md)
|
431
|
+
|
432
|
+
### Authorization
|
433
|
+
|
434
|
+
[firefly_iii_auth](../README.md#firefly_iii_auth)
|
435
|
+
|
436
|
+
### HTTP request headers
|
437
|
+
|
438
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded
|
439
|
+
- **Accept**: application/json
|
440
|
+
|