ynab 4.9.0 → 5.1.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 +4 -4
- data/Gemfile.lock +2 -2
- data/Rakefile +2 -2
- data/docs/Account.md +6 -0
- data/docs/AccountBase.md +25 -0
- data/docs/AccountsApi.md +3 -3
- data/docs/CategoriesApi.md +8 -8
- data/docs/Category.md +14 -0
- data/docs/CategoryBase.md +33 -0
- data/docs/ExistingCategory.md +2 -1
- data/docs/HybridTransaction.md +2 -0
- data/docs/MoneyMovement.md +2 -0
- data/docs/MoneyMovementBase.md +16 -0
- data/docs/MoneyMovementsApi.md +4 -4
- data/docs/MonthDetail.md +8 -0
- data/docs/MonthDetailBase.md +16 -0
- data/docs/MonthSummary.md +8 -0
- data/docs/MonthSummaryBase.md +15 -0
- data/docs/MonthsApi.md +2 -2
- data/docs/NewCategory.md +2 -1
- data/docs/PayeeLocationsApi.md +3 -3
- data/docs/PayeesApi.md +24 -3
- data/docs/PlanDetail.md +7 -7
- data/docs/PlanDetailResponseData.md +1 -1
- data/docs/PlanSummaryResponseData.md +2 -2
- data/docs/PlansApi.md +3 -3
- data/docs/PostPayee.md +8 -0
- data/docs/PostPayeeWrapper.md +8 -0
- data/docs/SaveAccount.md +1 -1
- data/docs/SaveAccountType.md +7 -0
- data/docs/SaveCategory.md +2 -1
- data/docs/SavePayee.md +1 -1
- data/docs/ScheduledSubTransaction.md +2 -0
- data/docs/ScheduledSubTransactionBase.md +17 -0
- data/docs/ScheduledTransactionDetail.md +2 -0
- data/docs/ScheduledTransactionSummary.md +2 -0
- data/docs/ScheduledTransactionSummaryBase.md +20 -0
- data/docs/ScheduledTransactionsApi.md +5 -5
- data/docs/SubTransaction.md +2 -0
- data/docs/SubTransactionBase.md +18 -0
- data/docs/TransactionDetail.md +2 -0
- data/docs/TransactionSummary.md +2 -0
- data/docs/TransactionSummaryBase.md +26 -0
- data/docs/TransactionsApi.md +11 -11
- data/lib/ynab/api/accounts_api.rb +3 -3
- data/lib/ynab/api/categories_api.rb +8 -8
- data/lib/ynab/api/deprecated_api.rb +3 -3
- data/lib/ynab/api/money_movements_api.rb +4 -4
- data/lib/ynab/api/months_api.rb +2 -2
- data/lib/ynab/api/payee_locations_api.rb +3 -3
- data/lib/ynab/api/payees_api.rb +77 -3
- data/lib/ynab/api/plans_api.rb +3 -3
- data/lib/ynab/api/scheduled_transactions_api.rb +5 -5
- data/lib/ynab/api/transactions_api.rb +11 -11
- data/lib/ynab/models/account.rb +72 -8
- data/lib/ynab/models/account_base.rb +340 -0
- data/lib/ynab/models/category.rb +159 -20
- data/lib/ynab/models/category_base.rb +436 -0
- data/lib/ynab/models/existing_category.rb +15 -5
- data/lib/ynab/models/hybrid_transaction.rb +21 -1
- data/lib/ynab/models/money_movement.rb +31 -11
- data/lib/ynab/models/money_movement_base.rb +223 -0
- data/lib/ynab/models/month_detail.rb +81 -1
- data/lib/ynab/models/month_detail_base.rb +230 -0
- data/lib/ynab/models/month_summary.rb +91 -6
- data/lib/ynab/models/month_summary_base.rb +212 -0
- data/lib/ynab/models/new_category.rb +15 -5
- data/lib/ynab/models/plan_detail.rb +7 -7
- data/lib/ynab/models/plan_detail_response_data.rb +8 -8
- data/lib/ynab/models/plan_summary_response_data.rb +15 -15
- data/lib/ynab/models/post_payee.rb +148 -0
- data/lib/ynab/models/post_payee_wrapper.rb +136 -0
- data/lib/ynab/models/save_account.rb +1 -1
- data/lib/ynab/models/save_account_type.rb +45 -0
- data/lib/ynab/models/save_category.rb +17 -6
- data/lib/ynab/models/save_payee.rb +1 -1
- data/lib/ynab/models/scheduled_sub_transaction.rb +31 -10
- data/lib/ynab/models/scheduled_sub_transaction_base.rb +229 -0
- data/lib/ynab/models/scheduled_transaction_detail.rb +21 -1
- data/lib/ynab/models/scheduled_transaction_summary.rb +31 -9
- data/lib/ynab/models/scheduled_transaction_summary_base.rb +292 -0
- data/lib/ynab/models/sub_transaction.rb +31 -11
- data/lib/ynab/models/sub_transaction_base.rb +240 -0
- data/lib/ynab/models/transaction_detail.rb +21 -1
- data/lib/ynab/models/transaction_summary.rb +31 -14
- data/lib/ynab/models/transaction_summary_base.rb +358 -0
- data/lib/ynab/version.rb +1 -1
- data/lib/ynab.rb +12 -0
- data/open_api_spec.yaml +330 -56
- data/spec/api/accounts_spec.rb +3 -3
- data/spec/api/categories_spec.rb +3 -3
- data/spec/api/months_spec.rb +2 -2
- data/spec/api/payee_locations_spec.rb +2 -2
- data/spec/api/payees_spec.rb +2 -2
- data/spec/api/plans_spec.rb +9 -9
- data/spec/api/scheduled_transactions_spec.rb +3 -3
- data/spec/api/transactions_spec.rb +11 -11
- data/spec/fixtures/vcr_cassettes/account.yml +2 -2
- data/spec/fixtures/vcr_cassettes/accounts.yml +2 -2
- data/spec/fixtures/vcr_cassettes/accounts_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/bulk_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/categories.yml +2 -2
- data/spec/fixtures/vcr_cassettes/categories_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/category.yml +2 -2
- data/spec/fixtures/vcr_cassettes/category_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_account.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_scheduled_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/create_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/import_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/month.yml +2 -2
- data/spec/fixtures/vcr_cassettes/month_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/months.yml +2 -2
- data/spec/fixtures/vcr_cassettes/months_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/multiple_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/patch_month_category.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_location.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_locations.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payee_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payees.yml +2 -2
- data/spec/fixtures/vcr_cassettes/payees_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/{budget.yml → plan.yml} +3 -3
- data/spec/fixtures/vcr_cassettes/plans.yml +3 -3
- data/spec/fixtures/vcr_cassettes/plans_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/scheduled_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/scheduled_transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transactions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transactions_invalid_flags.yml +2 -2
- data/spec/fixtures/vcr_cassettes/transactions_unauthorized.yml +2 -2
- data/spec/fixtures/vcr_cassettes/update_transaction.yml +2 -2
- data/spec/fixtures/vcr_cassettes/update_transactions.yml +2 -2
- data/ynab.gemspec +1 -1
- metadata +29 -9
- data/spec/fixtures/vcr_cassettes/budgets.yml +0 -49
- data/spec/fixtures/vcr_cassettes/budgets_unauthorized.yml +0 -49
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# YNAB::SubTransactionBase
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **transaction_id** | **String** | | |
|
|
9
|
+
| **amount** | **Integer** | The subtransaction amount in milliunits format | |
|
|
10
|
+
| **memo** | **String** | | [optional] |
|
|
11
|
+
| **payee_id** | **String** | | [optional] |
|
|
12
|
+
| **payee_name** | **String** | | [optional] |
|
|
13
|
+
| **category_id** | **String** | | [optional] |
|
|
14
|
+
| **category_name** | **String** | | [optional] |
|
|
15
|
+
| **transfer_account_id** | **String** | If a transfer, the account_id which the subtransaction transfers to | [optional] |
|
|
16
|
+
| **transfer_transaction_id** | **String** | If a transfer, the id of transaction on the other side of the transfer | [optional] |
|
|
17
|
+
| **deleted** | **Boolean** | Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests. | |
|
|
18
|
+
|
data/docs/TransactionDetail.md
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
| **import_payee_name_original** | **String** | If the transaction was imported, the original payee name as it appeared on the statement | [optional] |
|
|
24
24
|
| **debt_transaction_type** | **String** | If the transaction is a debt/loan account transaction, the type of transaction | [optional] |
|
|
25
25
|
| **deleted** | **Boolean** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | |
|
|
26
|
+
| **amount_formatted** | **String** | The transaction amount formatted in the plan's currency format | [optional] |
|
|
27
|
+
| **amount_currency** | **Float** | The transaction amount as a decimal currency amount | [optional] |
|
|
26
28
|
| **account_name** | **String** | | |
|
|
27
29
|
| **payee_name** | **String** | | [optional] |
|
|
28
30
|
| **category_name** | **String** | The name of the category. If a split transaction, this will be 'Split'. | [optional] |
|
data/docs/TransactionSummary.md
CHANGED
|
@@ -23,4 +23,6 @@
|
|
|
23
23
|
| **import_payee_name_original** | **String** | If the transaction was imported, the original payee name as it appeared on the statement | [optional] |
|
|
24
24
|
| **debt_transaction_type** | **String** | If the transaction is a debt/loan account transaction, the type of transaction | [optional] |
|
|
25
25
|
| **deleted** | **Boolean** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | |
|
|
26
|
+
| **amount_formatted** | **String** | The transaction amount formatted in the plan's currency format | [optional] |
|
|
27
|
+
| **amount_currency** | **Float** | The transaction amount as a decimal currency amount | [optional] |
|
|
26
28
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# YNAB::TransactionSummaryBase
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **date** | **Date** | The transaction date in ISO format (e.g. 2016-12-01) | |
|
|
9
|
+
| **amount** | **Integer** | The transaction amount in milliunits format | |
|
|
10
|
+
| **memo** | **String** | | [optional] |
|
|
11
|
+
| **cleared** | [**TransactionClearedStatus**](TransactionClearedStatus.md) | | |
|
|
12
|
+
| **approved** | **Boolean** | Whether or not the transaction is approved | |
|
|
13
|
+
| **flag_color** | [**TransactionFlagColor**](TransactionFlagColor.md) | | [optional] |
|
|
14
|
+
| **flag_name** | **String** | The customized name of a transaction flag | [optional] |
|
|
15
|
+
| **account_id** | **String** | | |
|
|
16
|
+
| **payee_id** | **String** | | [optional] |
|
|
17
|
+
| **category_id** | **String** | | [optional] |
|
|
18
|
+
| **transfer_account_id** | **String** | If a transfer transaction, the account to which it transfers | [optional] |
|
|
19
|
+
| **transfer_transaction_id** | **String** | If a transfer transaction, the id of transaction on the other side of the transfer | [optional] |
|
|
20
|
+
| **matched_transaction_id** | **String** | If transaction is matched, the id of the matched transaction | [optional] |
|
|
21
|
+
| **import_id** | **String** | If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. | [optional] |
|
|
22
|
+
| **import_payee_name** | **String** | If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules | [optional] |
|
|
23
|
+
| **import_payee_name_original** | **String** | If the transaction was imported, the original payee name as it appeared on the statement | [optional] |
|
|
24
|
+
| **debt_transaction_type** | **String** | If the transaction is a debt/loan account transaction, the type of transaction | [optional] |
|
|
25
|
+
| **deleted** | **Boolean** | Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests. | |
|
|
26
|
+
|
data/docs/TransactionsApi.md
CHANGED
|
@@ -4,17 +4,17 @@ All URIs are relative to *https://api.ynab.com/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**create_transaction**](TransactionsApi.md#create_transaction) | **POST** /
|
|
8
|
-
| [**delete_transaction**](TransactionsApi.md#delete_transaction) | **DELETE** /
|
|
9
|
-
| [**get_transaction_by_id**](TransactionsApi.md#get_transaction_by_id) | **GET** /
|
|
10
|
-
| [**get_transactions**](TransactionsApi.md#get_transactions) | **GET** /
|
|
11
|
-
| [**get_transactions_by_account**](TransactionsApi.md#get_transactions_by_account) | **GET** /
|
|
12
|
-
| [**get_transactions_by_category**](TransactionsApi.md#get_transactions_by_category) | **GET** /
|
|
13
|
-
| [**get_transactions_by_month**](TransactionsApi.md#get_transactions_by_month) | **GET** /
|
|
14
|
-
| [**get_transactions_by_payee**](TransactionsApi.md#get_transactions_by_payee) | **GET** /
|
|
15
|
-
| [**import_transactions**](TransactionsApi.md#import_transactions) | **POST** /
|
|
16
|
-
| [**update_transaction**](TransactionsApi.md#update_transaction) | **PUT** /
|
|
17
|
-
| [**update_transactions**](TransactionsApi.md#update_transactions) | **PATCH** /
|
|
7
|
+
| [**create_transaction**](TransactionsApi.md#create_transaction) | **POST** /plans/{plan_id}/transactions | Create a single transaction or multiple transactions |
|
|
8
|
+
| [**delete_transaction**](TransactionsApi.md#delete_transaction) | **DELETE** /plans/{plan_id}/transactions/{transaction_id} | Delete a transaction |
|
|
9
|
+
| [**get_transaction_by_id**](TransactionsApi.md#get_transaction_by_id) | **GET** /plans/{plan_id}/transactions/{transaction_id} | Get a transaction |
|
|
10
|
+
| [**get_transactions**](TransactionsApi.md#get_transactions) | **GET** /plans/{plan_id}/transactions | Get all transactions |
|
|
11
|
+
| [**get_transactions_by_account**](TransactionsApi.md#get_transactions_by_account) | **GET** /plans/{plan_id}/accounts/{account_id}/transactions | Get all account transactions |
|
|
12
|
+
| [**get_transactions_by_category**](TransactionsApi.md#get_transactions_by_category) | **GET** /plans/{plan_id}/categories/{category_id}/transactions | Get all category transactions |
|
|
13
|
+
| [**get_transactions_by_month**](TransactionsApi.md#get_transactions_by_month) | **GET** /plans/{plan_id}/months/{month}/transactions | Get all plan month transactions |
|
|
14
|
+
| [**get_transactions_by_payee**](TransactionsApi.md#get_transactions_by_payee) | **GET** /plans/{plan_id}/payees/{payee_id}/transactions | Get all payee transactions |
|
|
15
|
+
| [**import_transactions**](TransactionsApi.md#import_transactions) | **POST** /plans/{plan_id}/transactions/import | Import transactions |
|
|
16
|
+
| [**update_transaction**](TransactionsApi.md#update_transaction) | **PUT** /plans/{plan_id}/transactions/{transaction_id} | Update a transaction |
|
|
17
|
+
| [**update_transactions**](TransactionsApi.md#update_transactions) | **PATCH** /plans/{plan_id}/transactions | Update multiple transactions |
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
## create_transaction
|
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'data' when calling AccountsApi.create_account"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/accounts'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -119,7 +119,7 @@ module YNAB
|
|
|
119
119
|
fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_account_by_id"
|
|
120
120
|
end
|
|
121
121
|
# resource path
|
|
122
|
-
local_var_path = '/
|
|
122
|
+
local_var_path = '/plans/{plan_id}/accounts/{account_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
|
|
123
123
|
|
|
124
124
|
# query parameters
|
|
125
125
|
query_params = opts[:query_params] || {}
|
|
@@ -184,7 +184,7 @@ module YNAB
|
|
|
184
184
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling AccountsApi.get_accounts"
|
|
185
185
|
end
|
|
186
186
|
# resource path
|
|
187
|
-
local_var_path = '/
|
|
187
|
+
local_var_path = '/plans/{plan_id}/accounts'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
188
188
|
|
|
189
189
|
# query parameters
|
|
190
190
|
query_params = opts[:query_params] || {}
|
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.create_category"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/categories'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -119,7 +119,7 @@ module YNAB
|
|
|
119
119
|
fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.create_category_group"
|
|
120
120
|
end
|
|
121
121
|
# resource path
|
|
122
|
-
local_var_path = '/
|
|
122
|
+
local_var_path = '/plans/{plan_id}/category_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
123
123
|
|
|
124
124
|
# query parameters
|
|
125
125
|
query_params = opts[:query_params] || {}
|
|
@@ -189,7 +189,7 @@ module YNAB
|
|
|
189
189
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling CategoriesApi.get_categories"
|
|
190
190
|
end
|
|
191
191
|
# resource path
|
|
192
|
-
local_var_path = '/
|
|
192
|
+
local_var_path = '/plans/{plan_id}/categories'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
193
193
|
|
|
194
194
|
# query parameters
|
|
195
195
|
query_params = opts[:query_params] || {}
|
|
@@ -259,7 +259,7 @@ module YNAB
|
|
|
259
259
|
fail ArgumentError, "Missing the required parameter 'category_id' when calling CategoriesApi.get_category_by_id"
|
|
260
260
|
end
|
|
261
261
|
# resource path
|
|
262
|
-
local_var_path = '/
|
|
262
|
+
local_var_path = '/plans/{plan_id}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
263
263
|
|
|
264
264
|
# query parameters
|
|
265
265
|
query_params = opts[:query_params] || {}
|
|
@@ -334,7 +334,7 @@ module YNAB
|
|
|
334
334
|
fail ArgumentError, "Missing the required parameter 'category_id' when calling CategoriesApi.get_month_category_by_id"
|
|
335
335
|
end
|
|
336
336
|
# resource path
|
|
337
|
-
local_var_path = '/
|
|
337
|
+
local_var_path = '/plans/{plan_id}/months/{month}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
338
338
|
|
|
339
339
|
# query parameters
|
|
340
340
|
query_params = opts[:query_params] || {}
|
|
@@ -409,7 +409,7 @@ module YNAB
|
|
|
409
409
|
fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.update_category"
|
|
410
410
|
end
|
|
411
411
|
# resource path
|
|
412
|
-
local_var_path = '/
|
|
412
|
+
local_var_path = '/plans/{plan_id}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
413
413
|
|
|
414
414
|
# query parameters
|
|
415
415
|
query_params = opts[:query_params] || {}
|
|
@@ -489,7 +489,7 @@ module YNAB
|
|
|
489
489
|
fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.update_category_group"
|
|
490
490
|
end
|
|
491
491
|
# resource path
|
|
492
|
-
local_var_path = '/
|
|
492
|
+
local_var_path = '/plans/{plan_id}/category_groups/{category_group_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_group_id' + '}', CGI.escape(category_group_id.to_s))
|
|
493
493
|
|
|
494
494
|
# query parameters
|
|
495
495
|
query_params = opts[:query_params] || {}
|
|
@@ -575,7 +575,7 @@ module YNAB
|
|
|
575
575
|
fail ArgumentError, "Missing the required parameter 'data' when calling CategoriesApi.update_month_category"
|
|
576
576
|
end
|
|
577
577
|
# resource path
|
|
578
|
-
local_var_path = '/
|
|
578
|
+
local_var_path = '/plans/{plan_id}/months/{month}/categories/{category_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
579
579
|
|
|
580
580
|
# query parameters
|
|
581
581
|
query_params = opts[:query_params] || {}
|
|
@@ -20,7 +20,7 @@ module YNAB
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# Bulk create transactions
|
|
23
|
-
# Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /
|
|
23
|
+
# Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /plans/{plan_id}/transactions' to create multiple transactions.
|
|
24
24
|
# @param plan_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
25
|
# @param transactions [BulkTransactions] The list of transactions to create
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
@@ -31,7 +31,7 @@ module YNAB
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
# Bulk create transactions
|
|
34
|
-
# Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /
|
|
34
|
+
# Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /plans/{plan_id}/transactions' to create multiple transactions.
|
|
35
35
|
# @param plan_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).
|
|
36
36
|
# @param transactions [BulkTransactions] The list of transactions to create
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
@@ -49,7 +49,7 @@ module YNAB
|
|
|
49
49
|
fail ArgumentError, "Missing the required parameter 'transactions' when calling DeprecatedApi.bulk_create_transactions"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
|
-
local_var_path = '/
|
|
52
|
+
local_var_path = '/plans/{plan_id}/transactions/bulk'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
53
53
|
|
|
54
54
|
# query parameters
|
|
55
55
|
query_params = opts[:query_params] || {}
|
|
@@ -39,7 +39,7 @@ module YNAB
|
|
|
39
39
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movement_groups"
|
|
40
40
|
end
|
|
41
41
|
# resource path
|
|
42
|
-
local_var_path = '/
|
|
42
|
+
local_var_path = '/plans/{plan_id}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
43
43
|
|
|
44
44
|
# query parameters
|
|
45
45
|
query_params = opts[:query_params] || {}
|
|
@@ -108,7 +108,7 @@ module YNAB
|
|
|
108
108
|
fail ArgumentError, "Missing the required parameter 'month' when calling MoneyMovementsApi.get_money_movement_groups_by_month"
|
|
109
109
|
end
|
|
110
110
|
# resource path
|
|
111
|
-
local_var_path = '/
|
|
111
|
+
local_var_path = '/plans/{plan_id}/months/{month}/money_movement_groups'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
|
|
112
112
|
|
|
113
113
|
# query parameters
|
|
114
114
|
query_params = opts[:query_params] || {}
|
|
@@ -171,7 +171,7 @@ module YNAB
|
|
|
171
171
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling MoneyMovementsApi.get_money_movements"
|
|
172
172
|
end
|
|
173
173
|
# resource path
|
|
174
|
-
local_var_path = '/
|
|
174
|
+
local_var_path = '/plans/{plan_id}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
175
175
|
|
|
176
176
|
# query parameters
|
|
177
177
|
query_params = opts[:query_params] || {}
|
|
@@ -240,7 +240,7 @@ module YNAB
|
|
|
240
240
|
fail ArgumentError, "Missing the required parameter 'month' when calling MoneyMovementsApi.get_money_movements_by_month"
|
|
241
241
|
end
|
|
242
242
|
# resource path
|
|
243
|
-
local_var_path = '/
|
|
243
|
+
local_var_path = '/plans/{plan_id}/months/{month}/money_movements'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
|
|
244
244
|
|
|
245
245
|
# query parameters
|
|
246
246
|
query_params = opts[:query_params] || {}
|
data/lib/ynab/api/months_api.rb
CHANGED
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'month' when calling MonthsApi.get_plan_month"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/months/{month}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -110,7 +110,7 @@ module YNAB
|
|
|
110
110
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling MonthsApi.get_plan_months"
|
|
111
111
|
end
|
|
112
112
|
# resource path
|
|
113
|
-
local_var_path = '/
|
|
113
|
+
local_var_path = '/plans/{plan_id}/months'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
114
114
|
|
|
115
115
|
# query parameters
|
|
116
116
|
query_params = opts[:query_params] || {}
|
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'payee_location_id' when calling PayeeLocationsApi.get_payee_location_by_id"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/payee_locations/{payee_location_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_location_id' + '}', CGI.escape(payee_location_id.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -108,7 +108,7 @@ module YNAB
|
|
|
108
108
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeeLocationsApi.get_payee_locations"
|
|
109
109
|
end
|
|
110
110
|
# resource path
|
|
111
|
-
local_var_path = '/
|
|
111
|
+
local_var_path = '/plans/{plan_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
112
112
|
|
|
113
113
|
# query parameters
|
|
114
114
|
query_params = opts[:query_params] || {}
|
|
@@ -177,7 +177,7 @@ module YNAB
|
|
|
177
177
|
fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeeLocationsApi.get_payee_locations_by_payee"
|
|
178
178
|
end
|
|
179
179
|
# resource path
|
|
180
|
-
local_var_path = '/
|
|
180
|
+
local_var_path = '/plans/{plan_id}/payees/{payee_id}/payee_locations'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
|
|
181
181
|
|
|
182
182
|
# query parameters
|
|
183
183
|
query_params = opts[:query_params] || {}
|
data/lib/ynab/api/payees_api.rb
CHANGED
|
@@ -15,6 +15,80 @@ module YNAB
|
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
|
16
16
|
@api_client = api_client
|
|
17
17
|
end
|
|
18
|
+
# Create a payee
|
|
19
|
+
# Creates a new payee
|
|
20
|
+
# @param plan_id [String] The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
|
|
21
|
+
# @param data [PostPayeeWrapper] The payee to create
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [SavePayeeResponse]
|
|
24
|
+
def create_payee(plan_id, data, opts = {})
|
|
25
|
+
data, _status_code, _headers = create_payee_with_http_info(plan_id, data, opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Create a payee
|
|
30
|
+
# Creates a new payee
|
|
31
|
+
# @param plan_id [String] The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
|
|
32
|
+
# @param data [PostPayeeWrapper] The payee to create
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(SavePayeeResponse, Integer, Hash)>] SavePayeeResponse data, response status code and response headers
|
|
35
|
+
def create_payee_with_http_info(plan_id, data, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: PayeesApi.create_payee ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'plan_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && plan_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeesApi.create_payee"
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'data' is set
|
|
44
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PayeesApi.create_payee"
|
|
46
|
+
end
|
|
47
|
+
# resource path
|
|
48
|
+
local_var_path = '/plans/{plan_id}/payees'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
49
|
+
|
|
50
|
+
# query parameters
|
|
51
|
+
query_params = opts[:query_params] || {}
|
|
52
|
+
|
|
53
|
+
# header parameters
|
|
54
|
+
header_params = opts[:header_params] || {}
|
|
55
|
+
# HTTP header 'Accept' (if needed)
|
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
57
|
+
# HTTP header 'Content-Type'
|
|
58
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
59
|
+
if !content_type.nil?
|
|
60
|
+
header_params['Content-Type'] = content_type
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# form parameters
|
|
64
|
+
form_params = opts[:form_params] || {}
|
|
65
|
+
|
|
66
|
+
# http body (model)
|
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(data)
|
|
68
|
+
|
|
69
|
+
# return_type
|
|
70
|
+
return_type = opts[:debug_return_type] || 'SavePayeeResponse'
|
|
71
|
+
|
|
72
|
+
# auth_names
|
|
73
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
74
|
+
|
|
75
|
+
new_options = opts.merge(
|
|
76
|
+
:operation => :"PayeesApi.create_payee",
|
|
77
|
+
:header_params => header_params,
|
|
78
|
+
:query_params => query_params,
|
|
79
|
+
:form_params => form_params,
|
|
80
|
+
:body => post_body,
|
|
81
|
+
:auth_names => auth_names,
|
|
82
|
+
:return_type => return_type
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug "API called: PayeesApi#create_payee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
|
+
end
|
|
89
|
+
return data, status_code, headers
|
|
90
|
+
end
|
|
91
|
+
|
|
18
92
|
# Get a payee
|
|
19
93
|
# Returns a single payee
|
|
20
94
|
# @param plan_id [String] The id of the plan. \"last-used\" can be used to specify the last used plan and \"default\" can be used if default plan selection is enabled (see: https://api.ynab.com/#oauth-default-plan).
|
|
@@ -45,7 +119,7 @@ module YNAB
|
|
|
45
119
|
fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeesApi.get_payee_by_id"
|
|
46
120
|
end
|
|
47
121
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
122
|
+
local_var_path = '/plans/{plan_id}/payees/{payee_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
|
|
49
123
|
|
|
50
124
|
# query parameters
|
|
51
125
|
query_params = opts[:query_params] || {}
|
|
@@ -110,7 +184,7 @@ module YNAB
|
|
|
110
184
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling PayeesApi.get_payees"
|
|
111
185
|
end
|
|
112
186
|
# resource path
|
|
113
|
-
local_var_path = '/
|
|
187
|
+
local_var_path = '/plans/{plan_id}/payees'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
114
188
|
|
|
115
189
|
# query parameters
|
|
116
190
|
query_params = opts[:query_params] || {}
|
|
@@ -186,7 +260,7 @@ module YNAB
|
|
|
186
260
|
fail ArgumentError, "Missing the required parameter 'data' when calling PayeesApi.update_payee"
|
|
187
261
|
end
|
|
188
262
|
# resource path
|
|
189
|
-
local_var_path = '/
|
|
263
|
+
local_var_path = '/plans/{plan_id}/payees/{payee_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
|
|
190
264
|
|
|
191
265
|
# query parameters
|
|
192
266
|
query_params = opts[:query_params] || {}
|
data/lib/ynab/api/plans_api.rb
CHANGED
|
@@ -41,7 +41,7 @@ module YNAB
|
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling PlansApi.get_plan_by_id"
|
|
42
42
|
end
|
|
43
43
|
# resource path
|
|
44
|
-
local_var_path = '/
|
|
44
|
+
local_var_path = '/plans/{plan_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
45
45
|
|
|
46
46
|
# query parameters
|
|
47
47
|
query_params = opts[:query_params] || {}
|
|
@@ -105,7 +105,7 @@ module YNAB
|
|
|
105
105
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling PlansApi.get_plan_settings_by_id"
|
|
106
106
|
end
|
|
107
107
|
# resource path
|
|
108
|
-
local_var_path = '/
|
|
108
|
+
local_var_path = '/plans/{plan_id}/settings'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
109
109
|
|
|
110
110
|
# query parameters
|
|
111
111
|
query_params = opts[:query_params] || {}
|
|
@@ -164,7 +164,7 @@ module YNAB
|
|
|
164
164
|
@api_client.config.logger.debug 'Calling API: PlansApi.get_plans ...'
|
|
165
165
|
end
|
|
166
166
|
# resource path
|
|
167
|
-
local_var_path = '/
|
|
167
|
+
local_var_path = '/plans'
|
|
168
168
|
|
|
169
169
|
# query parameters
|
|
170
170
|
query_params = opts[:query_params] || {}
|
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'data' when calling ScheduledTransactionsApi.create_scheduled_transaction"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/scheduled_transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -119,7 +119,7 @@ module YNAB
|
|
|
119
119
|
fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.delete_scheduled_transaction"
|
|
120
120
|
end
|
|
121
121
|
# resource path
|
|
122
|
-
local_var_path = '/
|
|
122
|
+
local_var_path = '/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
|
|
123
123
|
|
|
124
124
|
# query parameters
|
|
125
125
|
query_params = opts[:query_params] || {}
|
|
@@ -188,7 +188,7 @@ module YNAB
|
|
|
188
188
|
fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.get_scheduled_transaction_by_id"
|
|
189
189
|
end
|
|
190
190
|
# resource path
|
|
191
|
-
local_var_path = '/
|
|
191
|
+
local_var_path = '/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
|
|
192
192
|
|
|
193
193
|
# query parameters
|
|
194
194
|
query_params = opts[:query_params] || {}
|
|
@@ -253,7 +253,7 @@ module YNAB
|
|
|
253
253
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling ScheduledTransactionsApi.get_scheduled_transactions"
|
|
254
254
|
end
|
|
255
255
|
# resource path
|
|
256
|
-
local_var_path = '/
|
|
256
|
+
local_var_path = '/plans/{plan_id}/scheduled_transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
257
257
|
|
|
258
258
|
# query parameters
|
|
259
259
|
query_params = opts[:query_params] || {}
|
|
@@ -329,7 +329,7 @@ module YNAB
|
|
|
329
329
|
fail ArgumentError, "Missing the required parameter 'put_scheduled_transaction_wrapper' when calling ScheduledTransactionsApi.update_scheduled_transaction"
|
|
330
330
|
end
|
|
331
331
|
# resource path
|
|
332
|
-
local_var_path = '/
|
|
332
|
+
local_var_path = '/plans/{plan_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'scheduled_transaction_id' + '}', CGI.escape(scheduled_transaction_id.to_s))
|
|
333
333
|
|
|
334
334
|
# query parameters
|
|
335
335
|
query_params = opts[:query_params] || {}
|
|
@@ -45,7 +45,7 @@ module YNAB
|
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.create_transaction"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
48
|
-
local_var_path = '/
|
|
48
|
+
local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
49
49
|
|
|
50
50
|
# query parameters
|
|
51
51
|
query_params = opts[:query_params] || {}
|
|
@@ -119,7 +119,7 @@ module YNAB
|
|
|
119
119
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.delete_transaction"
|
|
120
120
|
end
|
|
121
121
|
# resource path
|
|
122
|
-
local_var_path = '/
|
|
122
|
+
local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s))
|
|
123
123
|
|
|
124
124
|
# query parameters
|
|
125
125
|
query_params = opts[:query_params] || {}
|
|
@@ -188,7 +188,7 @@ module YNAB
|
|
|
188
188
|
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.get_transaction_by_id"
|
|
189
189
|
end
|
|
190
190
|
# resource path
|
|
191
|
-
local_var_path = '/
|
|
191
|
+
local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s))
|
|
192
192
|
|
|
193
193
|
# query parameters
|
|
194
194
|
query_params = opts[:query_params] || {}
|
|
@@ -257,7 +257,7 @@ module YNAB
|
|
|
257
257
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling TransactionsApi.get_transactions"
|
|
258
258
|
end
|
|
259
259
|
# resource path
|
|
260
|
-
local_var_path = '/
|
|
260
|
+
local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
261
261
|
|
|
262
262
|
# query parameters
|
|
263
263
|
query_params = opts[:query_params] || {}
|
|
@@ -335,7 +335,7 @@ module YNAB
|
|
|
335
335
|
fail ArgumentError, "Missing the required parameter 'account_id' when calling TransactionsApi.get_transactions_by_account"
|
|
336
336
|
end
|
|
337
337
|
# resource path
|
|
338
|
-
local_var_path = '/
|
|
338
|
+
local_var_path = '/plans/{plan_id}/accounts/{account_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
|
|
339
339
|
|
|
340
340
|
# query parameters
|
|
341
341
|
query_params = opts[:query_params] || {}
|
|
@@ -413,7 +413,7 @@ module YNAB
|
|
|
413
413
|
fail ArgumentError, "Missing the required parameter 'category_id' when calling TransactionsApi.get_transactions_by_category"
|
|
414
414
|
end
|
|
415
415
|
# resource path
|
|
416
|
-
local_var_path = '/
|
|
416
|
+
local_var_path = '/plans/{plan_id}/categories/{category_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
417
417
|
|
|
418
418
|
# query parameters
|
|
419
419
|
query_params = opts[:query_params] || {}
|
|
@@ -491,7 +491,7 @@ module YNAB
|
|
|
491
491
|
fail ArgumentError, "Missing the required parameter 'month' when calling TransactionsApi.get_transactions_by_month"
|
|
492
492
|
end
|
|
493
493
|
# resource path
|
|
494
|
-
local_var_path = '/
|
|
494
|
+
local_var_path = '/plans/{plan_id}/months/{month}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'month' + '}', CGI.escape(month.to_s))
|
|
495
495
|
|
|
496
496
|
# query parameters
|
|
497
497
|
query_params = opts[:query_params] || {}
|
|
@@ -569,7 +569,7 @@ module YNAB
|
|
|
569
569
|
fail ArgumentError, "Missing the required parameter 'payee_id' when calling TransactionsApi.get_transactions_by_payee"
|
|
570
570
|
end
|
|
571
571
|
# resource path
|
|
572
|
-
local_var_path = '/
|
|
572
|
+
local_var_path = '/plans/{plan_id}/payees/{payee_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
|
|
573
573
|
|
|
574
574
|
# query parameters
|
|
575
575
|
query_params = opts[:query_params] || {}
|
|
@@ -635,7 +635,7 @@ module YNAB
|
|
|
635
635
|
fail ArgumentError, "Missing the required parameter 'plan_id' when calling TransactionsApi.import_transactions"
|
|
636
636
|
end
|
|
637
637
|
# resource path
|
|
638
|
-
local_var_path = '/
|
|
638
|
+
local_var_path = '/plans/{plan_id}/transactions/import'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
639
639
|
|
|
640
640
|
# query parameters
|
|
641
641
|
query_params = opts[:query_params] || {}
|
|
@@ -710,7 +710,7 @@ module YNAB
|
|
|
710
710
|
fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.update_transaction"
|
|
711
711
|
end
|
|
712
712
|
# resource path
|
|
713
|
-
local_var_path = '/
|
|
713
|
+
local_var_path = '/plans/{plan_id}/transactions/{transaction_id}'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s)).sub('{' + 'transaction_id' + '}', CGI.escape(transaction_id.to_s))
|
|
714
714
|
|
|
715
715
|
# query parameters
|
|
716
716
|
query_params = opts[:query_params] || {}
|
|
@@ -784,7 +784,7 @@ module YNAB
|
|
|
784
784
|
fail ArgumentError, "Missing the required parameter 'data' when calling TransactionsApi.update_transactions"
|
|
785
785
|
end
|
|
786
786
|
# resource path
|
|
787
|
-
local_var_path = '/
|
|
787
|
+
local_var_path = '/plans/{plan_id}/transactions'.sub('{' + 'plan_id' + '}', CGI.escape(plan_id.to_s))
|
|
788
788
|
|
|
789
789
|
# query parameters
|
|
790
790
|
query_params = opts[:query_params] || {}
|