ynab 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/Rakefile +9 -0
- data/config.json +2 -2
- data/docs/Account.md +1 -1
- data/docs/AccountResponse.md +1 -1
- data/docs/AccountWrapper.md +1 -1
- data/docs/AccountsApi.md +1 -1
- data/docs/AccountsResponse.md +1 -1
- data/docs/AccountsWrapper.md +1 -1
- data/docs/BudgetDetail.md +1 -1
- data/docs/BudgetDetailResponse.md +1 -1
- data/docs/BudgetDetailWrapper.md +1 -1
- data/docs/BudgetSettings.md +9 -0
- data/docs/BudgetSettingsResponse.md +8 -0
- data/docs/BudgetSettingsWrapper.md +8 -0
- data/docs/BudgetSummary.md +1 -1
- data/docs/BudgetSummaryResponse.md +1 -1
- data/docs/BudgetSummaryWrapper.md +1 -1
- data/docs/BudgetsApi.md +19 -1
- data/docs/BulkIdWrapper.md +1 -1
- data/docs/BulkIds.md +1 -1
- data/docs/BulkResponse.md +1 -1
- data/docs/BulkTransactionCreateResponse.md +2 -2
- data/docs/BulkTransactionIds.md +2 -2
- data/docs/BulkTransactions.md +1 -1
- data/docs/CategoriesApi.md +1 -1
- data/docs/CategoriesResponse.md +1 -1
- data/docs/Category.md +2 -1
- data/docs/CategoryGroup.md +1 -1
- data/docs/CategoryGroupWithCategories.md +1 -1
- data/docs/CategoryGroupsWrapper.md +1 -1
- data/docs/CategoryResponse.md +1 -1
- data/docs/CategoryWrapper.md +1 -1
- data/docs/CurrencyFormat.md +1 -1
- data/docs/DateFormat.md +1 -1
- data/docs/ErrorDetail.md +1 -1
- data/docs/ErrorResponse.md +1 -1
- data/docs/HybridTransaction.md +1 -1
- data/docs/HybridTransactionsResponse.md +1 -1
- data/docs/HybridTransactionsWrapper.md +1 -1
- data/docs/MonthDetail.md +1 -1
- data/docs/MonthDetailResponse.md +1 -1
- data/docs/MonthDetailWrapper.md +1 -1
- data/docs/MonthSummariesResponse.md +1 -1
- data/docs/MonthSummariesWrapper.md +1 -1
- data/docs/MonthSummary.md +1 -1
- data/docs/MonthsApi.md +1 -1
- data/docs/Payee.md +1 -1
- data/docs/PayeeLocation.md +1 -1
- data/docs/PayeeLocationResponse.md +1 -1
- data/docs/PayeeLocationWrapper.md +1 -1
- data/docs/PayeeLocationsApi.md +1 -1
- data/docs/PayeeLocationsResponse.md +1 -1
- data/docs/PayeeLocationsWrapper.md +1 -1
- data/docs/PayeeResponse.md +1 -1
- data/docs/PayeeWrapper.md +1 -1
- data/docs/PayeesApi.md +1 -1
- data/docs/PayeesResponse.md +1 -1
- data/docs/PayeesWrapper.md +1 -1
- data/docs/SaveTransaction.md +2 -2
- data/docs/SaveTransactionWrapper.md +1 -1
- data/docs/ScheduledSubTransaction.md +1 -1
- data/docs/ScheduledTransactionDetail.md +1 -1
- data/docs/ScheduledTransactionResponse.md +1 -1
- data/docs/ScheduledTransactionSummary.md +1 -1
- data/docs/ScheduledTransactionWrapper.md +1 -1
- data/docs/ScheduledTransactionsApi.md +1 -1
- data/docs/ScheduledTransactionsResponse.md +1 -1
- data/docs/ScheduledTransactionsWrapper.md +1 -1
- data/docs/SubTransaction.md +1 -1
- data/docs/TransactionDetail.md +1 -1
- data/docs/TransactionResponse.md +1 -1
- data/docs/TransactionSummary.md +1 -1
- data/docs/TransactionWrapper.md +1 -1
- data/docs/TransactionsApi.md +5 -2
- data/docs/TransactionsResponse.md +1 -1
- data/docs/TransactionsWrapper.md +1 -1
- data/docs/User.md +1 -1
- data/docs/UserApi.md +1 -1
- data/docs/UserResponse.md +1 -1
- data/docs/UserWrapper.md +1 -1
- data/examples/budget-list.rb +1 -1
- data/examples/budget-month.rb +1 -1
- data/examples/category-balance.rb +1 -1
- data/lib/ynab.rb +27 -15
- data/lib/ynab/api/accounts_api.rb +1 -1
- data/lib/ynab/api/budgets_api.rb +53 -1
- data/lib/ynab/api/categories_api.rb +1 -1
- data/lib/ynab/api/months_api.rb +1 -1
- data/lib/ynab/api/payee_locations_api.rb +1 -1
- data/lib/ynab/api/payees_api.rb +1 -1
- data/lib/ynab/api/scheduled_transactions_api.rb +1 -1
- data/lib/ynab/api/transactions_api.rb +21 -3
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +2 -2
- data/lib/ynab/api_error.rb +1 -1
- data/lib/ynab/configuration.rb +1 -1
- data/lib/ynab/models/account.rb +2 -2
- data/lib/ynab/models/account_response.rb +2 -2
- data/lib/ynab/models/account_wrapper.rb +2 -2
- data/lib/ynab/models/accounts_response.rb +2 -2
- data/lib/ynab/models/accounts_wrapper.rb +2 -2
- data/lib/ynab/models/budget_detail.rb +2 -2
- data/lib/ynab/models/budget_detail_response.rb +2 -2
- data/lib/ynab/models/budget_detail_wrapper.rb +2 -2
- data/lib/ynab/models/budget_settings.rb +202 -0
- data/lib/ynab/models/budget_settings_response.rb +188 -0
- data/lib/ynab/models/budget_settings_wrapper.rb +188 -0
- data/lib/ynab/models/budget_summary.rb +2 -2
- data/lib/ynab/models/budget_summary_response.rb +2 -2
- data/lib/ynab/models/budget_summary_wrapper.rb +2 -2
- data/lib/ynab/models/bulk_id_wrapper.rb +2 -2
- data/lib/ynab/models/bulk_ids.rb +2 -2
- data/lib/ynab/models/bulk_response.rb +2 -2
- data/lib/ynab/models/bulk_transaction_create_response.rb +2 -2
- data/lib/ynab/models/bulk_transaction_ids.rb +2 -2
- data/lib/ynab/models/bulk_transactions.rb +2 -2
- data/lib/ynab/models/categories_response.rb +2 -2
- data/lib/ynab/models/category.rb +13 -3
- data/lib/ynab/models/category_group.rb +2 -2
- data/lib/ynab/models/category_group_with_categories.rb +2 -2
- data/lib/ynab/models/category_groups_wrapper.rb +2 -2
- data/lib/ynab/models/category_response.rb +2 -2
- data/lib/ynab/models/category_wrapper.rb +2 -2
- data/lib/ynab/models/currency_format.rb +2 -2
- data/lib/ynab/models/date_format.rb +2 -2
- data/lib/ynab/models/error_detail.rb +2 -2
- data/lib/ynab/models/error_response.rb +2 -2
- data/lib/ynab/models/hybrid_transaction.rb +2 -2
- data/lib/ynab/models/hybrid_transactions_response.rb +2 -2
- data/lib/ynab/models/hybrid_transactions_wrapper.rb +2 -2
- data/lib/ynab/models/month_detail.rb +2 -2
- data/lib/ynab/models/month_detail_response.rb +2 -2
- data/lib/ynab/models/month_detail_wrapper.rb +2 -2
- data/lib/ynab/models/month_summaries_response.rb +2 -2
- data/lib/ynab/models/month_summaries_wrapper.rb +2 -2
- data/lib/ynab/models/month_summary.rb +2 -2
- data/lib/ynab/models/payee.rb +2 -2
- data/lib/ynab/models/payee_location.rb +2 -2
- data/lib/ynab/models/payee_location_response.rb +2 -2
- data/lib/ynab/models/payee_location_wrapper.rb +2 -2
- data/lib/ynab/models/payee_locations_response.rb +2 -2
- data/lib/ynab/models/payee_locations_wrapper.rb +2 -2
- data/lib/ynab/models/payee_response.rb +2 -2
- data/lib/ynab/models/payee_wrapper.rb +2 -2
- data/lib/ynab/models/payees_response.rb +2 -2
- data/lib/ynab/models/payees_wrapper.rb +2 -2
- data/lib/ynab/models/save_transaction.rb +3 -3
- data/lib/ynab/models/save_transaction_wrapper.rb +2 -2
- data/lib/ynab/models/scheduled_sub_transaction.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_detail.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_response.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_summary.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_wrapper.rb +2 -2
- data/lib/ynab/models/scheduled_transactions_response.rb +2 -2
- data/lib/ynab/models/scheduled_transactions_wrapper.rb +2 -2
- data/lib/ynab/models/sub_transaction.rb +2 -2
- data/lib/ynab/models/transaction_detail.rb +2 -2
- data/lib/ynab/models/transaction_response.rb +2 -2
- data/lib/ynab/models/transaction_summary.rb +2 -2
- data/lib/ynab/models/transaction_wrapper.rb +2 -2
- data/lib/ynab/models/transactions_response.rb +2 -2
- data/lib/ynab/models/transactions_wrapper.rb +2 -2
- data/lib/ynab/models/user.rb +2 -2
- data/lib/ynab/models/user_response.rb +2 -2
- data/lib/ynab/models/user_wrapper.rb +2 -2
- data/lib/ynab/version.rb +2 -2
- data/pkg/ynab-1.0.0.gem +0 -0
- data/pkg/ynab-1.1.0.gem +0 -0
- data/spec-v1-swagger.json +105 -3
- data/spec/api/accounts_spec.rb +13 -4
- data/spec/api/budgets_spec.rb +4 -4
- data/spec/api/categories_spec.rb +4 -4
- data/spec/api/months_spec.rb +4 -4
- data/spec/api/payee_locations_spec.rb +4 -4
- data/spec/api/payees_spec.rb +4 -4
- data/spec/api/scheduled_transactions_spec.rb +4 -4
- data/spec/api/transactions_spec.rb +4 -4
- data/swagger-templates/gem.mustache +83 -0
- data/ynab.gemspec +1 -1
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9234cd3a793053cfa67ca0cffd6d08c638989742
|
4
|
+
data.tar.gz: 955cc21173d5c86526d57d53bef16c46fc9cb59e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 699bf0e03df428ddef46ad497a07dfae2c4e7059f293fc301859724731db22e0e6fef5dd5f390ed051b344241b90cd40932635191fa05c053165bef6aabbdb39
|
7
|
+
data.tar.gz: fc3b48d22d5a3ed98d387710c498d470c53947186f9c76e98d5a766b72739859d6fd22204c9ab3564c7972969d90f239badcec797fd681d7dccb39c91c9730d8
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -28,7 +28,7 @@ require 'ynab'
|
|
28
28
|
|
29
29
|
access_token = 'bf0cbb14b4330-not-real-3de12e66a389eaafe2'
|
30
30
|
|
31
|
-
ynab =
|
31
|
+
ynab = YNAB::API.new(access_token)
|
32
32
|
|
33
33
|
budget_response = ynab.budgets.get_budgets
|
34
34
|
budgets = budget_response.data.budgets
|
@@ -77,7 +77,7 @@ The following methods are available in this library.
|
|
77
77
|
- Install dependencies: `bundle`
|
78
78
|
- Generate latest client based on swagger spec: `rake generate`
|
79
79
|
- Run tests: `rake spec` or `rspec`
|
80
|
-
- Publish:
|
80
|
+
- Publish: Bump `gemVersion` in config.json and then run `rake publish`
|
81
81
|
|
82
82
|
## License
|
83
83
|
|
data/Rakefile
CHANGED
@@ -8,6 +8,7 @@ begin
|
|
8
8
|
rescue LoadError
|
9
9
|
# no rspec available
|
10
10
|
end
|
11
|
+
|
11
12
|
task :default => [:spec]
|
12
13
|
|
13
14
|
desc "Run Swagger Code Generator to update the client from the Swagger spec"
|
@@ -29,3 +30,11 @@ task :generate do
|
|
29
30
|
" -c /local/config.json -o /local"\
|
30
31
|
" -t /local/swagger-templates"
|
31
32
|
end
|
33
|
+
|
34
|
+
task :commit_version_bump do
|
35
|
+
sh "git add lib/ynab/version.rb Gemfile.lock && git diff-index --quiet HEAD || git commit -m 'Bumping version for release'"
|
36
|
+
end
|
37
|
+
|
38
|
+
desc "Bump version, run specs build a gem and release on RubyGems"
|
39
|
+
task :publish => ['generate', 'commit_version_bump', 'spec', 'release']
|
40
|
+
|
data/config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"gemName": "ynab",
|
3
|
-
"moduleName": "
|
4
|
-
"gemVersion": "1.
|
3
|
+
"moduleName": "YNAB",
|
4
|
+
"gemVersion": "1.1.0",
|
5
5
|
"gemDescription": "Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com",
|
6
6
|
"gemHomepage": "https://github.com/ynab/ynab-sdk-ruby",
|
7
7
|
"gemLicense": "Apache-2.0",
|
data/docs/Account.md
CHANGED
data/docs/AccountResponse.md
CHANGED
data/docs/AccountWrapper.md
CHANGED
data/docs/AccountsApi.md
CHANGED
data/docs/AccountsResponse.md
CHANGED
data/docs/AccountsWrapper.md
CHANGED
data/docs/BudgetDetail.md
CHANGED
data/docs/BudgetDetailWrapper.md
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# YNAB::BudgetSettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**date_format** | [**DateFormat**](DateFormat.md) | |
|
7
|
+
**currency_format** | [**CurrencyFormat**](CurrencyFormat.md) | |
|
8
|
+
|
9
|
+
|
data/docs/BudgetSummary.md
CHANGED
data/docs/BudgetsApi.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# YNAB::BudgetsApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.youneedabudget.com/v1*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
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
|
8
9
|
[**get_budgets**](BudgetsApi.md#get_budgets) | **GET** /budgets | List budgets
|
9
10
|
|
10
11
|
|
@@ -26,6 +27,23 @@ Name | Type | Description | Notes
|
|
26
27
|
|
27
28
|
[**BudgetDetailResponse**](BudgetDetailResponse.md)
|
28
29
|
|
30
|
+
# **get_budget_settings_by_id**
|
31
|
+
> BudgetSettingsResponse get_budget_settings_by_id(budget_id)
|
32
|
+
|
33
|
+
Budget Settings
|
34
|
+
|
35
|
+
Returns settings for a budget.
|
36
|
+
|
37
|
+
### Parameters
|
38
|
+
|
39
|
+
Name | Type | Description | Notes
|
40
|
+
------------- | ------------- | ------------- | -------------
|
41
|
+
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
42
|
+
|
43
|
+
### Return type
|
44
|
+
|
45
|
+
[**BudgetSettingsResponse**](BudgetSettingsResponse.md)
|
46
|
+
|
29
47
|
# **get_budgets**
|
30
48
|
> BudgetSummaryResponse get_budgets
|
31
49
|
|
data/docs/BulkIdWrapper.md
CHANGED
data/docs/BulkIds.md
CHANGED
data/docs/BulkResponse.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# YNAB::BulkTransactionCreateResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**data** | [**BulkTransactionIds**](BulkTransactionIds.md) | |
|
6
|
+
**data** | [**BulkTransactionIds**](BulkTransactionIds.md) | |
|
7
7
|
|
8
8
|
|
data/docs/BulkTransactionIds.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# YNAB::BulkTransactionIds
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**transaction_ids** | **Array<String>** | |
|
6
|
+
**transaction_ids** | **Array<String>** | |
|
7
7
|
|
8
8
|
|
data/docs/BulkTransactions.md
CHANGED
data/docs/CategoriesApi.md
CHANGED
data/docs/CategoriesResponse.md
CHANGED
data/docs/Category.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# YNAB::Category
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**category_group_id** | **String** | |
|
8
8
|
**name** | **String** | |
|
9
9
|
**hidden** | **BOOLEAN** | Whether or not the category is hidden |
|
10
|
+
**original_category_group_id** | **String** | If category is hidden this is the id of the category group it originally belonged to before it was hidden. | [optional]
|
10
11
|
**note** | **String** | |
|
11
12
|
**budgeted** | **Float** | Budgeted amount in current month in milliunits format |
|
12
13
|
**activity** | **Float** | Activity amount in current month in milliunits format |
|
data/docs/CategoryGroup.md
CHANGED
data/docs/CategoryResponse.md
CHANGED
data/docs/CategoryWrapper.md
CHANGED
data/docs/CurrencyFormat.md
CHANGED
data/docs/DateFormat.md
CHANGED
data/docs/ErrorDetail.md
CHANGED
data/docs/ErrorResponse.md
CHANGED
data/docs/HybridTransaction.md
CHANGED
data/docs/MonthDetail.md
CHANGED
data/docs/MonthDetailResponse.md
CHANGED
data/docs/MonthDetailWrapper.md
CHANGED
data/docs/MonthSummary.md
CHANGED
data/docs/MonthsApi.md
CHANGED
data/docs/Payee.md
CHANGED
data/docs/PayeeLocation.md
CHANGED