ynab 1.31.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/DEVELOPMENT.md +11 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +42 -0
- data/README.md +3 -3
- data/Rakefile +58 -0
- data/config.json +9 -0
- data/docs/Account.md +25 -0
- data/docs/AccountResponse.md +8 -0
- data/docs/AccountResponseData.md +8 -0
- data/docs/AccountType.md +7 -0
- data/docs/AccountWrapper.md +8 -0
- data/docs/AccountsApi.md +70 -0
- data/docs/AccountsResponse.md +8 -0
- data/docs/AccountsResponseData.md +9 -0
- data/docs/AccountsWrapper.md +9 -0
- data/docs/BudgetDetail.md +24 -0
- data/docs/BudgetDetailAllOf.md +17 -0
- data/docs/BudgetDetailResponse.md +8 -0
- data/docs/BudgetDetailResponseData.md +9 -0
- data/docs/BudgetDetailWrapper.md +9 -0
- data/docs/BudgetSettings.md +9 -0
- data/docs/BudgetSettingsResponse.md +8 -0
- data/docs/BudgetSettingsResponseData.md +8 -0
- data/docs/BudgetSettingsWrapper.md +8 -0
- data/docs/BudgetSummary.md +15 -0
- data/docs/BudgetSummaryResponse.md +8 -0
- data/docs/BudgetSummaryResponseData.md +9 -0
- data/docs/BudgetSummaryWrapper.md +9 -0
- data/docs/BudgetsApi.md +68 -0
- data/docs/BulkIdWrapper.md +8 -0
- data/docs/BulkIds.md +9 -0
- data/docs/BulkResponse.md +8 -0
- data/docs/BulkResponseData.md +8 -0
- data/docs/BulkResponseDataBulk.md +9 -0
- data/docs/BulkTransactionCreateResponse.md +8 -0
- data/docs/BulkTransactionIds.md +8 -0
- data/docs/BulkTransactions.md +8 -0
- data/docs/CategoriesApi.md +94 -0
- data/docs/CategoriesResponse.md +8 -0
- data/docs/CategoriesResponseData.md +9 -0
- data/docs/Category.md +30 -0
- data/docs/CategoryGroup.md +11 -0
- data/docs/CategoryGroupWithCategories.md +12 -0
- data/docs/CategoryGroupWithCategoriesAllOf.md +8 -0
- data/docs/CategoryGroupsWrapper.md +9 -0
- data/docs/CategoryResponse.md +8 -0
- data/docs/CategoryResponseData.md +8 -0
- data/docs/CategoryWrapper.md +9 -0
- data/docs/CurrencyFormat.md +15 -0
- data/docs/DateFormat.md +8 -0
- data/docs/DeprecatedApi.md +28 -0
- data/docs/ErrorDetail.md +10 -0
- data/docs/ErrorResponse.md +8 -0
- data/docs/HybridTransaction.md +30 -0
- data/docs/HybridTransactionAllOf.md +12 -0
- data/docs/HybridTransactionsResponse.md +8 -0
- data/docs/HybridTransactionsResponseData.md +9 -0
- data/docs/HybridTransactionsWrapper.md +8 -0
- data/docs/LoanAccountPeriodicValue.md +7 -0
- data/docs/MonthDetail.md +16 -0
- data/docs/MonthDetailAllOf.md +8 -0
- data/docs/MonthDetailResponse.md +8 -0
- data/docs/MonthDetailResponseData.md +8 -0
- data/docs/MonthDetailWrapper.md +8 -0
- data/docs/MonthSummariesResponse.md +8 -0
- data/docs/MonthSummariesResponseData.md +9 -0
- data/docs/MonthSummariesWrapper.md +9 -0
- data/docs/MonthSummary.md +15 -0
- data/docs/MonthsApi.md +49 -0
- data/docs/PatchMonthCategoryWrapper.md +8 -0
- data/docs/PatchTransactionsWrapper.md +8 -0
- data/docs/Payee.md +11 -0
- data/docs/PayeeLocation.md +12 -0
- data/docs/PayeeLocationResponse.md +8 -0
- data/docs/PayeeLocationResponseData.md +8 -0
- data/docs/PayeeLocationWrapper.md +8 -0
- data/docs/PayeeLocationsApi.md +69 -0
- data/docs/PayeeLocationsResponse.md +8 -0
- data/docs/PayeeLocationsResponseData.md +8 -0
- data/docs/PayeeLocationsWrapper.md +8 -0
- data/docs/PayeeResponse.md +8 -0
- data/docs/PayeeResponseData.md +8 -0
- data/docs/PayeeWrapper.md +8 -0
- data/docs/PayeesApi.md +49 -0
- data/docs/PayeesResponse.md +8 -0
- data/docs/PayeesResponseData.md +9 -0
- data/docs/PayeesWrapper.md +9 -0
- data/docs/PostAccountWrapper.md +8 -0
- data/docs/PostTransactionsWrapper.md +9 -0
- data/docs/PutTransactionWrapper.md +8 -0
- data/docs/SaveAccount.md +10 -0
- data/docs/SaveAccountWrapper.md +8 -0
- data/docs/SaveCategoryResponse.md +8 -0
- data/docs/SaveCategoryResponseData.md +9 -0
- data/docs/SaveMonthCategory.md +8 -0
- data/docs/SaveMonthCategoryWrapper.md +8 -0
- data/docs/SaveSubTransaction.md +12 -0
- data/docs/SaveTransaction.md +19 -0
- data/docs/SaveTransactionWithId.md +20 -0
- data/docs/SaveTransactionWithIdAllOf.md +8 -0
- data/docs/SaveTransactionWithOptionalFields.md +19 -0
- data/docs/SaveTransactionWrapper.md +8 -0
- data/docs/SaveTransactionsResponse.md +8 -0
- data/docs/SaveTransactionsResponseData.md +12 -0
- data/docs/SaveTransactionsWrapper.md +9 -0
- data/docs/ScheduledSubTransaction.md +15 -0
- data/docs/ScheduledTransactionDetail.md +23 -0
- data/docs/ScheduledTransactionDetailAllOf.md +11 -0
- data/docs/ScheduledTransactionResponse.md +8 -0
- data/docs/ScheduledTransactionResponseData.md +8 -0
- data/docs/ScheduledTransactionSummary.md +19 -0
- data/docs/ScheduledTransactionWrapper.md +8 -0
- data/docs/ScheduledTransactionsApi.md +49 -0
- data/docs/ScheduledTransactionsResponse.md +8 -0
- data/docs/ScheduledTransactionsResponseData.md +9 -0
- data/docs/ScheduledTransactionsWrapper.md +8 -0
- data/docs/SubTransaction.md +18 -0
- data/docs/TransactionDetail.md +29 -0
- data/docs/TransactionDetailAllOf.md +11 -0
- data/docs/TransactionResponse.md +8 -0
- data/docs/TransactionResponseData.md +8 -0
- data/docs/TransactionSummary.md +25 -0
- data/docs/TransactionWrapper.md +8 -0
- data/docs/TransactionsApi.md +228 -0
- data/docs/TransactionsImportResponse.md +8 -0
- data/docs/TransactionsImportResponseData.md +8 -0
- data/docs/TransactionsResponse.md +8 -0
- data/docs/TransactionsResponseData.md +9 -0
- data/docs/TransactionsWrapper.md +9 -0
- data/docs/UpdateTransaction.md +20 -0
- data/docs/UpdateTransactionsWrapper.md +8 -0
- data/docs/User.md +8 -0
- data/docs/UserApi.md +25 -0
- data/docs/UserResponse.md +8 -0
- data/docs/UserResponseData.md +8 -0
- data/docs/UserWrapper.md +8 -0
- data/examples/budget-list.rb +21 -0
- data/examples/budget-month.rb +33 -0
- data/examples/category-balance.rb +23 -0
- data/examples/create-multiple-transactions.rb +42 -0
- data/examples/create-transaction.rb +30 -0
- data/examples/update-category-budgeted.rb +25 -0
- data/examples/update-multiple-transactions.rb +20 -0
- data/lib/ynab/api/accounts_api.rb +78 -41
- data/lib/ynab/api/budgets_api.rb +68 -36
- data/lib/ynab/api/categories_api.rb +108 -60
- data/lib/ynab/api/deprecated_api.rb +32 -17
- data/lib/ynab/api/months_api.rb +49 -28
- data/lib/ynab/api/payee_locations_api.rb +73 -41
- data/lib/ynab/api/payees_api.rb +49 -28
- data/lib/ynab/api/scheduled_transactions_api.rb +49 -28
- data/lib/ynab/api/transactions_api.rb +268 -140
- data/lib/ynab/api/user_api.rb +22 -12
- data/lib/ynab/api_client.rb +97 -95
- data/lib/ynab/configuration.rb +101 -14
- data/lib/ynab/models/account.rb +117 -55
- data/lib/ynab/models/account_response.rb +53 -18
- data/lib/ynab/models/account_response_data.rb +53 -18
- data/lib/ynab/models/account_type.rb +30 -20
- data/lib/ynab/models/accounts_response.rb +53 -18
- data/lib/ynab/models/accounts_response_data.rb +54 -19
- data/lib/ynab/models/budget_detail.rb +80 -35
- data/lib/ynab/models/budget_detail_all_of.rb +320 -0
- data/lib/ynab/models/budget_detail_response.rb +53 -18
- data/lib/ynab/models/budget_detail_response_data.rb +54 -19
- data/lib/ynab/models/budget_settings.rb +56 -29
- data/lib/ynab/models/budget_settings_response.rb +53 -18
- data/lib/ynab/models/budget_settings_response_data.rb +53 -18
- data/lib/ynab/models/budget_summary.rb +63 -26
- data/lib/ynab/models/budget_summary_response.rb +53 -18
- data/lib/ynab/models/budget_summary_response_data.rb +54 -20
- data/lib/ynab/models/bulk_response.rb +53 -18
- data/lib/ynab/models/bulk_response_data.rb +53 -18
- data/lib/ynab/models/bulk_response_data_bulk.rb +54 -19
- data/lib/ynab/models/bulk_transactions.rb +53 -18
- data/lib/ynab/models/categories_response.rb +53 -18
- data/lib/ynab/models/categories_response_data.rb +54 -19
- data/lib/ynab/models/category.rb +110 -48
- data/lib/ynab/models/category_group.rb +58 -23
- data/lib/ynab/models/category_group_with_categories.rb +67 -24
- data/lib/ynab/models/{save_month_category_wrapper.rb → category_group_with_categories_all_of.rb} +67 -29
- data/lib/ynab/models/category_response.rb +53 -18
- data/lib/ynab/models/category_response_data.rb +53 -18
- data/lib/ynab/models/currency_format.rb +62 -27
- data/lib/ynab/models/date_format.rb +53 -18
- data/lib/ynab/models/error_detail.rb +55 -20
- data/lib/ynab/models/error_response.rb +53 -18
- data/lib/ynab/models/hybrid_transaction.rb +118 -46
- data/lib/ynab/models/hybrid_transaction_all_of.rb +304 -0
- data/lib/ynab/models/hybrid_transactions_response.rb +53 -18
- data/lib/ynab/models/hybrid_transactions_response_data.rb +54 -19
- data/lib/ynab/models/month_detail.rb +72 -27
- data/lib/ynab/models/{update_transactions_wrapper.rb → month_detail_all_of.rb} +66 -30
- data/lib/ynab/models/month_detail_response.rb +53 -18
- data/lib/ynab/models/month_detail_response_data.rb +53 -18
- data/lib/ynab/models/month_summaries_response.rb +53 -18
- data/lib/ynab/models/month_summaries_response_data.rb +54 -19
- data/lib/ynab/models/month_summary.rb +63 -26
- data/lib/ynab/models/patch_month_category_wrapper.rb +53 -18
- data/lib/ynab/models/patch_transactions_wrapper.rb +53 -18
- data/lib/ynab/models/payee.rb +58 -22
- data/lib/ynab/models/payee_location.rb +58 -23
- data/lib/ynab/models/payee_location_response.rb +53 -18
- data/lib/ynab/models/payee_location_response_data.rb +53 -18
- data/lib/ynab/models/payee_locations_response.rb +53 -18
- data/lib/ynab/models/payee_locations_response_data.rb +53 -18
- data/lib/ynab/models/payee_response.rb +53 -18
- data/lib/ynab/models/payee_response_data.rb +53 -18
- data/lib/ynab/models/payees_response.rb +53 -18
- data/lib/ynab/models/payees_response_data.rb +54 -19
- data/lib/ynab/models/post_account_wrapper.rb +53 -18
- data/lib/ynab/models/post_transactions_wrapper.rb +54 -19
- data/lib/ynab/models/put_transaction_wrapper.rb +53 -18
- data/lib/ynab/models/save_account.rb +77 -20
- data/lib/ynab/models/save_category_response.rb +53 -18
- data/lib/ynab/models/save_category_response_data.rb +54 -19
- data/lib/ynab/models/save_month_category.rb +53 -18
- data/lib/ynab/models/save_sub_transaction.rb +61 -22
- data/lib/ynab/models/save_transaction.rb +88 -33
- data/lib/ynab/models/save_transaction_with_id.rb +102 -46
- data/lib/ynab/models/{save_transactions_wrapper.rb → save_transaction_with_id_all_of.rb} +60 -36
- data/lib/ynab/models/save_transaction_with_optional_fields.rb +81 -33
- data/lib/ynab/models/save_transactions_response.rb +53 -18
- data/lib/ynab/models/save_transactions_response_data.rb +57 -23
- data/lib/ynab/models/scheduled_sub_transaction.rb +66 -27
- data/lib/ynab/models/scheduled_transaction_detail.rb +94 -36
- data/lib/ynab/models/scheduled_transaction_detail_all_of.rb +262 -0
- data/lib/ynab/models/scheduled_transaction_response.rb +53 -18
- data/lib/ynab/models/scheduled_transaction_response_data.rb +53 -18
- data/lib/ynab/models/scheduled_transaction_summary.rb +80 -32
- data/lib/ynab/models/scheduled_transactions_response.rb +53 -18
- data/lib/ynab/models/scheduled_transactions_response_data.rb +54 -19
- data/lib/ynab/models/sub_transaction.rb +71 -29
- data/lib/ynab/models/transaction_detail.rb +112 -44
- data/lib/ynab/models/{save_transaction_wrapper.rb → transaction_detail_all_of.rb} +102 -29
- data/lib/ynab/models/transaction_response.rb +53 -18
- data/lib/ynab/models/transaction_response_data.rb +53 -18
- data/lib/ynab/models/transaction_summary.rb +98 -40
- data/lib/ynab/models/transactions_import_response.rb +53 -18
- data/lib/ynab/models/transactions_import_response_data.rb +53 -18
- data/lib/ynab/models/transactions_response.rb +53 -18
- data/lib/ynab/models/transactions_response_data.rb +54 -19
- data/lib/ynab/models/user.rb +53 -18
- data/lib/ynab/models/user_response.rb +53 -18
- data/lib/ynab/models/user_response_data.rb +53 -18
- data/lib/ynab/version.rb +1 -1
- data/lib/ynab.rb +19 -14
- data/open_api_spec.yaml +3012 -0
- data/templates/api_client.mustache +274 -0
- data/templates/api_client_typhoeus_partial.mustache +156 -0
- data/templates/api_doc.mustache +44 -0
- data/templates/gem.mustache +84 -0
- data/templates/partial_model_generic_doc.mustache +9 -0
- data/ynab.gemspec +38 -0
- metadata +192 -85
- data/lib/ynab/models/loan_account_periodic_value.rb +0 -175
- data/lib/ynab/models/save_account_wrapper.rb +0 -189
- data/lib/ynab/models/update_transaction.rb +0 -407
- data/spec/models/transaction_detail_spec.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fadd5d27104e3e30483dbac36af8f9c63f7947e7194853482c61f8f70c286ad8
|
4
|
+
data.tar.gz: 61a821542e19b75178296e2899bb95be571069b100a69c80cb7b4a080cf0babe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d853c3cd5d914dedd98549edbe057b1d4cf5a914eab08939993c7c33943a9e2a9fb88fdc12c7e4a0a43fa56df0004e84dc5c3ece6f1d655f7237d4b2f75f005
|
7
|
+
data.tar.gz: 4064544b24a0662c6c515e8e6834a3c52f58ab8fffc5f01de9784f745cba91dec622266e5880df39d98eeee53daad12d45ef6b6c118c7e379e26606ffc6e17e8
|
data/DEVELOPMENT.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ynab (4.31.0)
|
5
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.3)
|
11
|
+
ethon (0.16.0)
|
12
|
+
ffi (>= 1.15.0)
|
13
|
+
ffi (1.15.5)
|
14
|
+
rake (13.0.1)
|
15
|
+
rspec (3.8.0)
|
16
|
+
rspec-core (~> 3.8.0)
|
17
|
+
rspec-expectations (~> 3.8.0)
|
18
|
+
rspec-mocks (~> 3.8.0)
|
19
|
+
rspec-core (3.8.0)
|
20
|
+
rspec-support (~> 3.8.0)
|
21
|
+
rspec-expectations (3.8.2)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.8.0)
|
24
|
+
rspec-mocks (3.8.0)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.8.0)
|
27
|
+
rspec-support (3.8.0)
|
28
|
+
typhoeus (1.4.0)
|
29
|
+
ethon (>= 0.9.0)
|
30
|
+
vcr (6.2.0)
|
31
|
+
|
32
|
+
PLATFORMS
|
33
|
+
ruby
|
34
|
+
|
35
|
+
DEPENDENCIES
|
36
|
+
rake (>= 12.3.3)
|
37
|
+
rspec (~> 3.6, >= 3.6.0)
|
38
|
+
vcr (>= 3.0.3)
|
39
|
+
ynab!
|
40
|
+
|
41
|
+
BUNDLED WITH
|
42
|
+
2.4.19
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# YNAB API Ruby Library
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Continuous Integration](https://github.com/ynab/ynab-sdk-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/ynab/ynab-sdk-ruby/actions/workflows/ci.yml)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/ynab.svg)](https://rubygems.org/gems/ynab)
|
5
5
|
|
6
6
|
This is the Ruby client for the YNAB API.
|
@@ -71,8 +71,8 @@ The following methods are available in this library.
|
|
71
71
|
| | [transactions.create_transactions(budget_id, data)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#create_transaction) | Creates multiple transactions |
|
72
72
|
| | [transactions.update_transaction(budget_id, id, data)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#update_transaction) | Updates a single transaction |
|
73
73
|
| | [transactions.update_transactions(budget_id, data)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#update_transactions) | Updates multiple transactions |
|
74
|
-
| | [transactions.delete_transaction(budget_id, transaction_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#delete_transaction) |
|
75
|
-
| | [transactions.import_transactions(budget_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#import_transactions) |
|
74
|
+
| | [transactions.delete_transaction(budget_id, transaction_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#delete_transaction) | Deletes a single transaction |
|
75
|
+
| | [transactions.import_transactions(budget_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#import_transactions) | Imports transactions |
|
76
76
|
| **Scheduled Transactions** | [scheduled_transactions.get_scheduled_transactions(budget_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/ScheduledTransactionsApi.md#get_scheduled_transactions) | Returns all scheduled transactions |
|
77
77
|
| | [scheduled_transactions.get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | Returns a single scheduled transaction |
|
78
78
|
|
data/Rakefile
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
begin
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'lib/ynab/version'
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
7
|
+
t.rspec_opts = "-fd"
|
8
|
+
end
|
9
|
+
rescue LoadError
|
10
|
+
# no rspec available
|
11
|
+
end
|
12
|
+
|
13
|
+
task :default => [:spec]
|
14
|
+
|
15
|
+
desc "Run Swagger Code Generator to update the client from the Swagger spec"
|
16
|
+
task :generate do
|
17
|
+
# Download latest swagger spec
|
18
|
+
spec_filename = 'open_api_spec.yaml'
|
19
|
+
sh "wget https://api.ynab.com/papi/#{spec_filename} -O ./#{spec_filename}"
|
20
|
+
sh "openapi-generator generate -i ./#{spec_filename} -g ruby -c config.json -t ./templates -o ./"
|
21
|
+
end
|
22
|
+
|
23
|
+
task :get_current_version do
|
24
|
+
puts YNAB::VERSION
|
25
|
+
end
|
26
|
+
|
27
|
+
task :bump_version_number, [:version_type] do |t, args|
|
28
|
+
current_version = YNAB::VERSION
|
29
|
+
new_version = current_version
|
30
|
+
|
31
|
+
# Increment version number
|
32
|
+
case args[:version_type]
|
33
|
+
when 'major'
|
34
|
+
new_version = current_version.split('.').tap { |v| v[0] = v[0].to_i + 1 }.join('.')
|
35
|
+
when 'minor'
|
36
|
+
new_version = current_version.split('.').tap { |v| v[1] = v[1].to_i + 1 }.join('.')
|
37
|
+
when 'patch'
|
38
|
+
new_version = current_version.split('.').tap { |v| v[2] = v[2].to_i + 1 }.join('.')
|
39
|
+
else
|
40
|
+
puts "Invalid version type: #{args[:version_type]}"
|
41
|
+
exit 1
|
42
|
+
end
|
43
|
+
|
44
|
+
version_file_path = 'lib/ynab/version.rb'
|
45
|
+
current_version_file_text = File.read(version_file_path)
|
46
|
+
new_version_file_text = current_version_file_text.gsub(current_version, new_version)
|
47
|
+
File.open(version_file_path, "w") {|file| file.puts new_version_file_text }
|
48
|
+
|
49
|
+
puts new_version
|
50
|
+
end
|
51
|
+
|
52
|
+
task :commit_version_bump do
|
53
|
+
sh "git add lib/ynab/version.rb Gemfile.lock && git diff-index --quiet HEAD || git commit -m 'Bumping version for release'"
|
54
|
+
end
|
55
|
+
|
56
|
+
desc "Bump version, run specs build a gem and release on RubyGems"
|
57
|
+
task :publish => ['spec', 'commit_version_bump', 'clobber', 'release']
|
58
|
+
|
data/config.json
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
{
|
2
|
+
"gemName": "ynab",
|
3
|
+
"moduleName": "YNAB",
|
4
|
+
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.ynab.com",
|
5
|
+
"gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
|
6
|
+
"gemLicense": "Apache-2.0",
|
7
|
+
"gemAuthor": "YNAB",
|
8
|
+
"gemAuthorEmail": "api@ynab.com"
|
9
|
+
}
|
data/docs/Account.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# YNAB::Account
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **name** | **String** | | |
|
9
|
+
| **type** | [**AccountType**](AccountType.md) | | |
|
10
|
+
| **on_budget** | **Boolean** | Whether this account is on budget or not | |
|
11
|
+
| **closed** | **Boolean** | Whether this account is closed or not | |
|
12
|
+
| **note** | **String** | | [optional] |
|
13
|
+
| **balance** | **Integer** | The current balance of the account in milliunits format | |
|
14
|
+
| **cleared_balance** | **Integer** | The current cleared balance of the account in milliunits format | |
|
15
|
+
| **uncleared_balance** | **Integer** | The current uncleared balance of the account in milliunits format | |
|
16
|
+
| **transfer_payee_id** | **String** | The payee id which should be used when transferring to this account | |
|
17
|
+
| **direct_import_linked** | **Boolean** | Whether or not the account is linked to a financial institution for automatic transaction import. | [optional] |
|
18
|
+
| **direct_import_in_error** | **Boolean** | If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true. | [optional] |
|
19
|
+
| **last_reconciled_at** | **Time** | A date/time specifying when the account was last reconciled. | [optional] |
|
20
|
+
| **debt_original_balance** | **Integer** | The original debt/loan account balance, specified in milliunits format. | [optional] |
|
21
|
+
| **debt_interest_rates** | **Hash<String, Integer>** | | [optional] |
|
22
|
+
| **debt_minimum_payments** | **Hash<String, Integer>** | | [optional] |
|
23
|
+
| **debt_escrow_amounts** | **Hash<String, Integer>** | | [optional] |
|
24
|
+
| **deleted** | **Boolean** | Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. | |
|
25
|
+
|
data/docs/AccountType.md
ADDED
data/docs/AccountsApi.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# YNAB::AccountsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.ynab.com/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_account**](AccountsApi.md#create_account) | **POST** /budgets/{budget_id}/accounts | Create a new account |
|
8
|
+
| [**get_account_by_id**](AccountsApi.md#get_account_by_id) | **GET** /budgets/{budget_id}/accounts/{account_id} | Single account |
|
9
|
+
| [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /budgets/{budget_id}/accounts | Account list |
|
10
|
+
|
11
|
+
|
12
|
+
## create_account
|
13
|
+
|
14
|
+
> <AccountResponse> create_account(budget_id, data)
|
15
|
+
|
16
|
+
Create a new account
|
17
|
+
|
18
|
+
Creates a new account
|
19
|
+
|
20
|
+
### Parameters
|
21
|
+
|
22
|
+
| Name | Type | Description | Notes |
|
23
|
+
| ---- | ---- | ----------- | ----- |
|
24
|
+
| **budget_id** | **String** | The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget) | |
|
25
|
+
| **data** | [**PostAccountWrapper**](PostAccountWrapper.md) | The account to create. | |
|
26
|
+
|
27
|
+
### Return type
|
28
|
+
|
29
|
+
[**AccountResponse**](AccountResponse.md)
|
30
|
+
|
31
|
+
|
32
|
+
## get_account_by_id
|
33
|
+
|
34
|
+
> <AccountResponse> get_account_by_id(budget_id, account_id)
|
35
|
+
|
36
|
+
Single account
|
37
|
+
|
38
|
+
Returns a single account
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
| Name | Type | Description | Notes |
|
43
|
+
| ---- | ---- | ----------- | ----- |
|
44
|
+
| **budget_id** | **String** | The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | |
|
45
|
+
| **account_id** | **String** | The id of the account | |
|
46
|
+
|
47
|
+
### Return type
|
48
|
+
|
49
|
+
[**AccountResponse**](AccountResponse.md)
|
50
|
+
|
51
|
+
|
52
|
+
## get_accounts
|
53
|
+
|
54
|
+
> <AccountsResponse> get_accounts(budget_id, opts)
|
55
|
+
|
56
|
+
Account list
|
57
|
+
|
58
|
+
Returns all accounts
|
59
|
+
|
60
|
+
### Parameters
|
61
|
+
|
62
|
+
| Name | Type | Description | Notes |
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
64
|
+
| **budget_id** | **String** | The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | |
|
65
|
+
| **last_knowledge_of_server** | **Integer** | The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional] |
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**AccountsResponse**](AccountsResponse.md)
|
70
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::AccountsResponseData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accounts** | [**Array<Account>**](Account.md) | | |
|
8
|
+
| **server_knowledge** | **Integer** | The knowledge of the server | |
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::AccountsWrapper
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**accounts** | [**Array<Account>**](Account.md) | |
|
7
|
+
**server_knowledge** | **Integer** | The knowledge of the server |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# YNAB::BudgetDetail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **name** | **String** | | |
|
9
|
+
| **last_modified_on** | **Time** | The last time any changes were made to the budget from either a web or mobile client | [optional] |
|
10
|
+
| **first_month** | **Date** | The earliest budget month | [optional] |
|
11
|
+
| **last_month** | **Date** | The latest budget month | [optional] |
|
12
|
+
| **date_format** | [**DateFormat**](DateFormat.md) | | [optional] |
|
13
|
+
| **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] |
|
14
|
+
| **accounts** | [**Array<Account>**](Account.md) | | [optional] |
|
15
|
+
| **payees** | [**Array<Payee>**](Payee.md) | | [optional] |
|
16
|
+
| **payee_locations** | [**Array<PayeeLocation>**](PayeeLocation.md) | | [optional] |
|
17
|
+
| **category_groups** | [**Array<CategoryGroup>**](CategoryGroup.md) | | [optional] |
|
18
|
+
| **categories** | [**Array<Category>**](Category.md) | | [optional] |
|
19
|
+
| **months** | [**Array<MonthDetail>**](MonthDetail.md) | | [optional] |
|
20
|
+
| **transactions** | [**Array<TransactionSummary>**](TransactionSummary.md) | | [optional] |
|
21
|
+
| **subtransactions** | [**Array<SubTransaction>**](SubTransaction.md) | | [optional] |
|
22
|
+
| **scheduled_transactions** | [**Array<ScheduledTransactionSummary>**](ScheduledTransactionSummary.md) | | [optional] |
|
23
|
+
| **scheduled_subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | | [optional] |
|
24
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# YNAB::BudgetDetailAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accounts** | [**Array<Account>**](Account.md) | | [optional] |
|
8
|
+
| **payees** | [**Array<Payee>**](Payee.md) | | [optional] |
|
9
|
+
| **payee_locations** | [**Array<PayeeLocation>**](PayeeLocation.md) | | [optional] |
|
10
|
+
| **category_groups** | [**Array<CategoryGroup>**](CategoryGroup.md) | | [optional] |
|
11
|
+
| **categories** | [**Array<Category>**](Category.md) | | [optional] |
|
12
|
+
| **months** | [**Array<MonthDetail>**](MonthDetail.md) | | [optional] |
|
13
|
+
| **transactions** | [**Array<TransactionSummary>**](TransactionSummary.md) | | [optional] |
|
14
|
+
| **subtransactions** | [**Array<SubTransaction>**](SubTransaction.md) | | [optional] |
|
15
|
+
| **scheduled_transactions** | [**Array<ScheduledTransactionSummary>**](ScheduledTransactionSummary.md) | | [optional] |
|
16
|
+
| **scheduled_subtransactions** | [**Array<ScheduledSubTransaction>**](ScheduledSubTransaction.md) | | [optional] |
|
17
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BudgetDetailResponseData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **budget** | [**BudgetDetail**](BudgetDetail.md) | | |
|
8
|
+
| **server_knowledge** | **Integer** | The knowledge of the server | |
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BudgetDetailWrapper
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**budget** | [**BudgetDetail**](BudgetDetail.md) | |
|
7
|
+
**server_knowledge** | **Integer** | The knowledge of the server |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# YNAB::BudgetSummary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **name** | **String** | | |
|
9
|
+
| **last_modified_on** | **Time** | The last time any changes were made to the budget from either a web or mobile client | [optional] |
|
10
|
+
| **first_month** | **Date** | The earliest budget month | [optional] |
|
11
|
+
| **last_month** | **Date** | The latest budget month | [optional] |
|
12
|
+
| **date_format** | [**DateFormat**](DateFormat.md) | | [optional] |
|
13
|
+
| **currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | | [optional] |
|
14
|
+
| **accounts** | [**Array<Account>**](Account.md) | The budget accounts (only included if `include_accounts=true` specified as query parameter) | [optional] |
|
15
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BudgetSummaryResponseData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **budgets** | [**Array<BudgetSummary>**](BudgetSummary.md) | | |
|
8
|
+
| **default_budget** | [**BudgetSummary**](BudgetSummary.md) | | [optional] |
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BudgetSummaryWrapper
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**budgets** | [**Array<BudgetSummary>**](BudgetSummary.md) | |
|
7
|
+
**default_budget** | [**BudgetSummary**](BudgetSummary.md) | The default budget, if the associated application is configured to support specifying it |
|
8
|
+
|
9
|
+
|
data/docs/BudgetsApi.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# YNAB::BudgetsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.ynab.com/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_budget_by_id**](BudgetsApi.md#get_budget_by_id) | **GET** /budgets/{budget_id} | Single budget |
|
8
|
+
| [**get_budget_settings_by_id**](BudgetsApi.md#get_budget_settings_by_id) | **GET** /budgets/{budget_id}/settings | Budget Settings |
|
9
|
+
| [**get_budgets**](BudgetsApi.md#get_budgets) | **GET** /budgets | List budgets |
|
10
|
+
|
11
|
+
|
12
|
+
## get_budget_by_id
|
13
|
+
|
14
|
+
> <BudgetDetailResponse> get_budget_by_id(budget_id, opts)
|
15
|
+
|
16
|
+
Single budget
|
17
|
+
|
18
|
+
Returns a single budget with all related entities. This resource is effectively a full budget export.
|
19
|
+
|
20
|
+
### Parameters
|
21
|
+
|
22
|
+
| Name | Type | Description | Notes |
|
23
|
+
| ---- | ---- | ----------- | ----- |
|
24
|
+
| **budget_id** | **String** | The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | |
|
25
|
+
| **last_knowledge_of_server** | **Integer** | The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included. | [optional] |
|
26
|
+
|
27
|
+
### Return type
|
28
|
+
|
29
|
+
[**BudgetDetailResponse**](BudgetDetailResponse.md)
|
30
|
+
|
31
|
+
|
32
|
+
## get_budget_settings_by_id
|
33
|
+
|
34
|
+
> <BudgetSettingsResponse> get_budget_settings_by_id(budget_id)
|
35
|
+
|
36
|
+
Budget Settings
|
37
|
+
|
38
|
+
Returns settings for a budget
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
| Name | Type | Description | Notes |
|
43
|
+
| ---- | ---- | ----------- | ----- |
|
44
|
+
| **budget_id** | **String** | The id of the budget. \"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.ynab.com/#oauth-default-budget). | |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**BudgetSettingsResponse**](BudgetSettingsResponse.md)
|
49
|
+
|
50
|
+
|
51
|
+
## get_budgets
|
52
|
+
|
53
|
+
> <BudgetSummaryResponse> get_budgets(opts)
|
54
|
+
|
55
|
+
List budgets
|
56
|
+
|
57
|
+
Returns budgets list with summary information
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
| Name | Type | Description | Notes |
|
62
|
+
| ---- | ---- | ----------- | ----- |
|
63
|
+
| **include_accounts** | **Boolean** | Whether to include the list of budget accounts | [optional] |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**BudgetSummaryResponse**](BudgetSummaryResponse.md)
|
68
|
+
|
data/docs/BulkIds.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BulkIds
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**transaction_ids** | **Array<String>** | The list of Transaction ids that were created. |
|
7
|
+
**duplicate_import_ids** | **Array<String>** | If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list. |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BulkResponseDataBulk
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **transaction_ids** | **Array<String>** | The list of Transaction ids that were created. | |
|
8
|
+
| **duplicate_import_ids** | **Array<String>** | If any Transactions were not created because they had an `import_id` matching a transaction already on the same account, the specified import_id(s) will be included in this list. | |
|
9
|
+
|