ynab 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ynab.rb +2 -1
- data/lib/ynab/api/accounts_api.rb +3 -3
- data/lib/ynab/api/budgets_api.rb +6 -3
- data/lib/ynab/api/categories_api.rb +7 -7
- data/lib/ynab/api/deprecated_api.rb +1 -1
- data/lib/ynab/api/months_api.rb +3 -3
- data/lib/ynab/api/payee_locations_api.rb +1 -1
- data/lib/ynab/api/payees_api.rb +3 -3
- data/lib/ynab/api/scheduled_transactions_api.rb +3 -3
- data/lib/ynab/api/transactions_api.rb +25 -25
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +1 -1
- data/lib/ynab/configuration.rb +1 -1
- data/lib/ynab/models/account.rb +1 -1
- data/lib/ynab/models/account_response.rb +1 -1
- data/lib/ynab/models/account_response_data.rb +1 -1
- data/lib/ynab/models/accounts_response.rb +1 -1
- data/lib/ynab/models/accounts_response_data.rb +1 -1
- data/lib/ynab/models/budget_detail.rb +1 -1
- data/lib/ynab/models/budget_detail_response.rb +1 -1
- data/lib/ynab/models/budget_detail_response_data.rb +1 -1
- data/lib/ynab/models/budget_settings.rb +1 -1
- data/lib/ynab/models/budget_settings_response.rb +1 -1
- data/lib/ynab/models/budget_settings_response_data.rb +1 -1
- data/lib/ynab/models/budget_summary.rb +17 -5
- data/lib/ynab/models/budget_summary_response.rb +1 -1
- data/lib/ynab/models/budget_summary_response_data.rb +1 -1
- data/lib/ynab/models/bulk_response.rb +1 -1
- data/lib/ynab/models/bulk_response_data.rb +1 -1
- data/lib/ynab/models/bulk_response_data_bulk.rb +2 -2
- data/lib/ynab/models/bulk_transactions.rb +1 -1
- data/lib/ynab/models/categories_response.rb +1 -1
- data/lib/ynab/models/categories_response_data.rb +1 -1
- data/lib/ynab/models/category.rb +3 -3
- data/lib/ynab/models/category_group.rb +1 -1
- data/lib/ynab/models/category_group_with_categories.rb +1 -1
- data/lib/ynab/models/category_response.rb +1 -1
- data/lib/ynab/models/category_response_data.rb +1 -1
- data/lib/ynab/models/currency_format.rb +1 -1
- data/lib/ynab/models/date_format.rb +1 -1
- data/lib/ynab/models/error_detail.rb +1 -1
- data/lib/ynab/models/error_response.rb +1 -1
- data/lib/ynab/models/hybrid_transaction.rb +1 -1
- data/lib/ynab/models/hybrid_transactions_response.rb +1 -1
- data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -1
- data/lib/ynab/models/month_detail.rb +3 -3
- data/lib/ynab/models/month_detail_response.rb +1 -1
- data/lib/ynab/models/month_detail_response_data.rb +1 -1
- data/lib/ynab/models/month_summaries_response.rb +1 -1
- data/lib/ynab/models/month_summaries_response_data.rb +1 -1
- data/lib/ynab/models/month_summary.rb +3 -3
- data/lib/ynab/models/payee.rb +2 -2
- data/lib/ynab/models/payee_location.rb +1 -1
- data/lib/ynab/models/payee_location_response.rb +1 -1
- data/lib/ynab/models/payee_location_response_data.rb +1 -1
- data/lib/ynab/models/payee_locations_response.rb +1 -1
- data/lib/ynab/models/payee_locations_response_data.rb +1 -1
- data/lib/ynab/models/payee_response.rb +1 -1
- data/lib/ynab/models/payee_response_data.rb +1 -1
- data/lib/ynab/models/payees_response.rb +1 -1
- data/lib/ynab/models/payees_response_data.rb +1 -1
- data/lib/ynab/models/save_category_response.rb +1 -1
- data/lib/ynab/models/save_category_response_data.rb +1 -1
- data/lib/ynab/models/save_month_category.rb +1 -1
- data/lib/ynab/models/save_month_category_wrapper.rb +1 -1
- data/lib/ynab/models/save_sub_transaction.rb +258 -0
- data/lib/ynab/models/save_transaction.rb +21 -9
- data/lib/ynab/models/save_transaction_wrapper.rb +1 -1
- data/lib/ynab/models/save_transactions_response.rb +1 -1
- data/lib/ynab/models/save_transactions_response_data.rb +2 -2
- data/lib/ynab/models/save_transactions_wrapper.rb +1 -1
- data/lib/ynab/models/scheduled_sub_transaction.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_detail.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_response.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -1
- data/lib/ynab/models/scheduled_transaction_summary.rb +1 -1
- data/lib/ynab/models/scheduled_transactions_response.rb +1 -1
- data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -1
- data/lib/ynab/models/sub_transaction.rb +20 -2
- data/lib/ynab/models/transaction_detail.rb +1 -1
- data/lib/ynab/models/transaction_response.rb +1 -1
- data/lib/ynab/models/transaction_response_data.rb +1 -1
- data/lib/ynab/models/transaction_summary.rb +1 -1
- data/lib/ynab/models/transactions_response.rb +1 -1
- data/lib/ynab/models/transactions_response_data.rb +1 -1
- data/lib/ynab/models/update_transaction.rb +18 -6
- data/lib/ynab/models/update_transactions_wrapper.rb +1 -1
- data/lib/ynab/models/user.rb +1 -1
- data/lib/ynab/models/user_response.rb +1 -1
- data/lib/ynab/models/user_response_data.rb +1 -1
- data/lib/ynab/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08252a91b18ed28e79e2a266348ed18e5c3a9a5b03f068cfa881aa9d11da8ef1'
|
4
|
+
data.tar.gz: d6f42abcfa2eba23728010c39ea2fe0fb201e2d3ccc2f09044a11ce0c2e46268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2d0fdd57827ba843ef8dc55b51703162d64dc3c24eaf533ba762068a4572dab1da05e74cec33085c227a1fe9dcbfd39a5a1372d1e8b127887f56b8f3b550c2
|
7
|
+
data.tar.gz: 0c3487430cd0691446ebaa57b8a8aaf1e24dc26c40d44822102cdef1682a65a86c04e7d6e33734fecae9ffcd417b9de672f28460882548cdbf6dd485a7e15a6c
|
data/lib/ynab.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,6 +65,7 @@ require 'ynab/models/save_category_response'
|
|
65
65
|
require 'ynab/models/save_category_response_data'
|
66
66
|
require 'ynab/models/save_month_category'
|
67
67
|
require 'ynab/models/save_month_category_wrapper'
|
68
|
+
require 'ynab/models/save_sub_transaction'
|
68
69
|
require 'ynab/models/save_transaction'
|
69
70
|
require 'ynab/models/save_transaction_wrapper'
|
70
71
|
require 'ynab/models/save_transactions_response'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,7 @@ module YNAB
|
|
81
81
|
# Returns all accounts
|
82
82
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
84
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
85
85
|
# @return [AccountsResponse]
|
86
86
|
def get_accounts(budget_id, opts = {})
|
87
87
|
data, _status_code, _headers = get_accounts_with_http_info(budget_id, opts)
|
@@ -92,7 +92,7 @@ module YNAB
|
|
92
92
|
# Returns all accounts
|
93
93
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
95
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
96
96
|
# @return [Array<(AccountsResponse, Fixnum, Hash)>] AccountsResponse data, response status code and response headers
|
97
97
|
def get_accounts_with_http_info(budget_id, opts = {})
|
98
98
|
if @api_client.config.debugging
|
data/lib/ynab/api/budgets_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,7 +23,7 @@ module YNAB
|
|
23
23
|
# Returns a single budget with all related entities. This resource is effectively a full budget export.
|
24
24
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
26
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
27
27
|
# @return [BudgetDetailResponse]
|
28
28
|
def get_budget_by_id(budget_id, opts = {})
|
29
29
|
data, _status_code, _headers = get_budget_by_id_with_http_info(budget_id, opts)
|
@@ -34,7 +34,7 @@ module YNAB
|
|
34
34
|
# Returns a single budget with all related entities. This resource is effectively a full budget export.
|
35
35
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
37
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
38
38
|
# @return [Array<(BudgetDetailResponse, Fixnum, Hash)>] BudgetDetailResponse data, response status code and response headers
|
39
39
|
def get_budget_by_id_with_http_info(budget_id, opts = {})
|
40
40
|
if @api_client.config.debugging
|
@@ -129,6 +129,7 @@ module YNAB
|
|
129
129
|
# List budgets
|
130
130
|
# Returns budgets list with summary information
|
131
131
|
# @param [Hash] opts the optional parameters
|
132
|
+
# @option opts [BOOLEAN] :include_accounts Whether to include the list of budget accounts
|
132
133
|
# @return [BudgetSummaryResponse]
|
133
134
|
def get_budgets(opts = {})
|
134
135
|
data, _status_code, _headers = get_budgets_with_http_info(opts)
|
@@ -138,6 +139,7 @@ module YNAB
|
|
138
139
|
# List budgets
|
139
140
|
# Returns budgets list with summary information
|
140
141
|
# @param [Hash] opts the optional parameters
|
142
|
+
# @option opts [BOOLEAN] :include_accounts Whether to include the list of budget accounts
|
141
143
|
# @return [Array<(BudgetSummaryResponse, Fixnum, Hash)>] BudgetSummaryResponse data, response status code and response headers
|
142
144
|
def get_budgets_with_http_info(opts = {})
|
143
145
|
if @api_client.config.debugging
|
@@ -148,6 +150,7 @@ module YNAB
|
|
148
150
|
|
149
151
|
# query parameters
|
150
152
|
query_params = {}
|
153
|
+
query_params[:'include_accounts'] = opts[:'include_accounts'] if !opts[:'include_accounts'].nil?
|
151
154
|
|
152
155
|
# header parameters
|
153
156
|
header_params = {}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,7 +23,7 @@ module YNAB
|
|
23
23
|
# Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
24
24
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
26
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
27
27
|
# @return [CategoriesResponse]
|
28
28
|
def get_categories(budget_id, opts = {})
|
29
29
|
data, _status_code, _headers = get_categories_with_http_info(budget_id, opts)
|
@@ -34,7 +34,7 @@ module YNAB
|
|
34
34
|
# Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
|
35
35
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
37
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
38
38
|
# @return [Array<(CategoriesResponse, Fixnum, Hash)>] CategoriesResponse data, response status code and response headers
|
39
39
|
def get_categories_with_http_info(budget_id, opts = {})
|
40
40
|
if @api_client.config.debugging
|
@@ -197,11 +197,11 @@ module YNAB
|
|
197
197
|
return data, status_code, headers
|
198
198
|
end
|
199
199
|
# Update a category for a specific month
|
200
|
-
# Update a category for a specific month
|
200
|
+
# Update a category for a specific month. Only `budgeted` amount can be updated.
|
201
201
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
202
202
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
203
203
|
# @param category_id The id of the category
|
204
|
-
# @param data The category to update
|
204
|
+
# @param data The category to update. Only `budgeted` amount can be updated and any other fields specified will be ignored.
|
205
205
|
# @param [Hash] opts the optional parameters
|
206
206
|
# @return [SaveCategoryResponse]
|
207
207
|
def update_month_category(budget_id, month, category_id, data, opts = {})
|
@@ -210,11 +210,11 @@ module YNAB
|
|
210
210
|
end
|
211
211
|
|
212
212
|
# Update a category for a specific month
|
213
|
-
# Update a category for a specific month
|
213
|
+
# Update a category for a specific month. Only `budgeted` amount can be updated.
|
214
214
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
215
215
|
# @param month The budget month in ISO format (e.g. 2016-12-01) (\"current\" can also be used to specify the current calendar month (UTC))
|
216
216
|
# @param category_id The id of the category
|
217
|
-
# @param data The category to update
|
217
|
+
# @param data The category to update. Only `budgeted` amount can be updated and any other fields specified will be ignored.
|
218
218
|
# @param [Hash] opts the optional parameters
|
219
219
|
# @return [Array<(SaveCategoryResponse, Fixnum, Hash)>] SaveCategoryResponse data, response status code and response headers
|
220
220
|
def update_month_category_with_http_info(budget_id, month, category_id, data, opts = {})
|
data/lib/ynab/api/months_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,7 @@ module YNAB
|
|
81
81
|
# Returns all budget months
|
82
82
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
84
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
85
85
|
# @return [MonthSummariesResponse]
|
86
86
|
def get_budget_months(budget_id, opts = {})
|
87
87
|
data, _status_code, _headers = get_budget_months_with_http_info(budget_id, opts)
|
@@ -92,7 +92,7 @@ module YNAB
|
|
92
92
|
# Returns all budget months
|
93
93
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
95
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
96
96
|
# @return [Array<(MonthSummariesResponse, Fixnum, Hash)>] MonthSummariesResponse data, response status code and response headers
|
97
97
|
def get_budget_months_with_http_info(budget_id, opts = {})
|
98
98
|
if @api_client.config.debugging
|
data/lib/ynab/api/payees_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,7 @@ module YNAB
|
|
81
81
|
# Returns all payees
|
82
82
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
84
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
85
85
|
# @return [PayeesResponse]
|
86
86
|
def get_payees(budget_id, opts = {})
|
87
87
|
data, _status_code, _headers = get_payees_with_http_info(budget_id, opts)
|
@@ -92,7 +92,7 @@ module YNAB
|
|
92
92
|
# Returns all payees
|
93
93
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
95
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
96
96
|
# @return [Array<(PayeesResponse, Fixnum, Hash)>] PayeesResponse data, response status code and response headers
|
97
97
|
def get_payees_with_http_info(budget_id, opts = {})
|
98
98
|
if @api_client.config.debugging
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,7 @@ module YNAB
|
|
81
81
|
# Returns all scheduled transactions
|
82
82
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
84
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
85
85
|
# @return [ScheduledTransactionsResponse]
|
86
86
|
def get_scheduled_transactions(budget_id, opts = {})
|
87
87
|
data, _status_code, _headers = get_scheduled_transactions_with_http_info(budget_id, opts)
|
@@ -92,7 +92,7 @@ module YNAB
|
|
92
92
|
# Returns all scheduled transactions
|
93
93
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
95
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
96
96
|
# @return [Array<(ScheduledTransactionsResponse, Fixnum, Hash)>] ScheduledTransactionsResponse data, response status code and response headers
|
97
97
|
def get_scheduled_transactions_with_http_info(budget_id, opts = {})
|
98
98
|
if @api_client.config.debugging
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,9 +20,9 @@ module YNAB
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create a single transaction or multiple transactions
|
23
|
-
# Creates a single transaction or multiple transactions. If you provide a body containing a
|
23
|
+
# Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
|
24
24
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
25
|
-
# @param data The transaction or transactions to create. To create a single transaction you can specify a value for the &#
|
25
|
+
# @param data The transaction or transactions to create. To create a single transaction you can specify a value for the `transaction` object and to create multiple transactions you can specify an array of `transactions`. It is expected that you will only provide a value for one of these objects.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [SaveTransactionsResponse]
|
28
28
|
def create_transaction(budget_id, data, opts = {})
|
@@ -31,9 +31,9 @@ module YNAB
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create a single transaction or multiple transactions
|
34
|
-
# Creates a single transaction or multiple transactions. If you provide a body containing a &#
|
34
|
+
# Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
|
35
35
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
36
|
-
# @param data The transaction or transactions to create. To create a single transaction you can specify a value for the &#
|
36
|
+
# @param data The transaction or transactions to create. To create a single transaction you can specify a value for the `transaction` object and to create multiple transactions you can specify an array of `transactions`. It is expected that you will only provide a value for one of these objects.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
|
39
39
|
def create_transaction_with_http_info(budget_id, data, opts = {})
|
@@ -140,8 +140,8 @@ module YNAB
|
|
140
140
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
141
141
|
# @param [Hash] opts the optional parameters
|
142
142
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
143
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
144
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
143
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
144
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
145
145
|
# @return [TransactionsResponse]
|
146
146
|
def get_transactions(budget_id, opts = {})
|
147
147
|
data, _status_code, _headers = get_transactions_with_http_info(budget_id, opts)
|
@@ -153,8 +153,8 @@ module YNAB
|
|
153
153
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
155
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
156
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
157
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
156
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
157
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
158
158
|
# @return [Array<(TransactionsResponse, Fixnum, Hash)>] TransactionsResponse data, response status code and response headers
|
159
159
|
def get_transactions_with_http_info(budget_id, opts = {})
|
160
160
|
if @api_client.config.debugging
|
@@ -205,8 +205,8 @@ module YNAB
|
|
205
205
|
# @param account_id The id of the account
|
206
206
|
# @param [Hash] opts the optional parameters
|
207
207
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
208
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
209
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
208
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
209
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
210
210
|
# @return [TransactionsResponse]
|
211
211
|
def get_transactions_by_account(budget_id, account_id, opts = {})
|
212
212
|
data, _status_code, _headers = get_transactions_by_account_with_http_info(budget_id, account_id, opts)
|
@@ -219,8 +219,8 @@ module YNAB
|
|
219
219
|
# @param account_id The id of the account
|
220
220
|
# @param [Hash] opts the optional parameters
|
221
221
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
222
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
223
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
222
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
223
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
224
224
|
# @return [Array<(TransactionsResponse, Fixnum, Hash)>] TransactionsResponse data, response status code and response headers
|
225
225
|
def get_transactions_by_account_with_http_info(budget_id, account_id, opts = {})
|
226
226
|
if @api_client.config.debugging
|
@@ -275,8 +275,8 @@ module YNAB
|
|
275
275
|
# @param category_id The id of the category
|
276
276
|
# @param [Hash] opts the optional parameters
|
277
277
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
278
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
279
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
278
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
279
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
280
280
|
# @return [HybridTransactionsResponse]
|
281
281
|
def get_transactions_by_category(budget_id, category_id, opts = {})
|
282
282
|
data, _status_code, _headers = get_transactions_by_category_with_http_info(budget_id, category_id, opts)
|
@@ -289,8 +289,8 @@ module YNAB
|
|
289
289
|
# @param category_id The id of the category
|
290
290
|
# @param [Hash] opts the optional parameters
|
291
291
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
292
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
293
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
292
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
293
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
294
294
|
# @return [Array<(HybridTransactionsResponse, Fixnum, Hash)>] HybridTransactionsResponse data, response status code and response headers
|
295
295
|
def get_transactions_by_category_with_http_info(budget_id, category_id, opts = {})
|
296
296
|
if @api_client.config.debugging
|
@@ -345,8 +345,8 @@ module YNAB
|
|
345
345
|
# @param payee_id The id of the payee
|
346
346
|
# @param [Hash] opts the optional parameters
|
347
347
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
348
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
349
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
348
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
349
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
350
350
|
# @return [HybridTransactionsResponse]
|
351
351
|
def get_transactions_by_payee(budget_id, payee_id, opts = {})
|
352
352
|
data, _status_code, _headers = get_transactions_by_payee_with_http_info(budget_id, payee_id, opts)
|
@@ -359,8 +359,8 @@ module YNAB
|
|
359
359
|
# @param payee_id The id of the payee
|
360
360
|
# @param [Hash] opts the optional parameters
|
361
361
|
# @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
|
362
|
-
# @option opts [String] :type If specified, only transactions of the specified type will be included.
|
363
|
-
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
|
362
|
+
# @option opts [String] :type If specified, only transactions of the specified type will be included. \"uncategorized\" and \"unapproved\" are currently supported.
|
363
|
+
# @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
|
364
364
|
# @return [Array<(HybridTransactionsResponse, Fixnum, Hash)>] HybridTransactionsResponse data, response status code and response headers
|
365
365
|
def get_transactions_by_payee_with_http_info(budget_id, payee_id, opts = {})
|
366
366
|
if @api_client.config.debugging
|
@@ -474,9 +474,9 @@ module YNAB
|
|
474
474
|
return data, status_code, headers
|
475
475
|
end
|
476
476
|
# Update multiple transactions
|
477
|
-
# Updates multiple transactions, by
|
477
|
+
# Updates multiple transactions, by `id` or `import_id`.
|
478
478
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
479
|
-
# @param data The transactions to update. Each transaction must have either an &#
|
479
|
+
# @param data The transactions to update. Each transaction must have either an `id` or `import_id` specified. If `id` is specified as null an `import_id` value can be provided which will allow transaction(s) to be updated by their `import_id`. If an `id` is specified, it will always be used for lookup.
|
480
480
|
# @param [Hash] opts the optional parameters
|
481
481
|
# @return [SaveTransactionsResponse]
|
482
482
|
def update_transactions(budget_id, data, opts = {})
|
@@ -485,9 +485,9 @@ module YNAB
|
|
485
485
|
end
|
486
486
|
|
487
487
|
# Update multiple transactions
|
488
|
-
# Updates multiple transactions, by &#
|
488
|
+
# Updates multiple transactions, by `id` or `import_id`.
|
489
489
|
# @param budget_id 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.youneedabudget.com/#oauth-default-budget)
|
490
|
-
# @param data The transactions to update. Each transaction must have either an &#
|
490
|
+
# @param data The transactions to update. Each transaction must have either an `id` or `import_id` specified. If `id` is specified as null an `import_id` value can be provided which will allow transaction(s) to be updated by their `import_id`. If an `id` is specified, it will always be used for lookup.
|
491
491
|
# @param [Hash] opts the optional parameters
|
492
492
|
# @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
|
493
493
|
def update_transactions_with_http_info(budget_id, data, opts = {})
|
data/lib/ynab/api/user_api.rb
CHANGED
data/lib/ynab/api_client.rb
CHANGED
data/lib/ynab/configuration.rb
CHANGED
data/lib/ynab/models/account.rb
CHANGED