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
data/docs/PayeeLocationsApi.md
CHANGED
data/docs/PayeeResponse.md
CHANGED
data/docs/PayeeWrapper.md
CHANGED
data/docs/PayeesApi.md
CHANGED
data/docs/PayeesResponse.md
CHANGED
data/docs/PayeesWrapper.md
CHANGED
data/docs/SaveTransaction.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# YNAB::SaveTransaction
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**date** | **Date** | |
|
8
8
|
**amount** | **Float** | The transaction amount in milliunits format |
|
9
9
|
**payee_id** | **String** | The payee for the transaction. Transfer payees are not permitted and will be ignored if supplied. | [optional]
|
10
|
-
**payee_name** | **String** | The payee name. If a payee_name value is provided and payee_id
|
10
|
+
**payee_name** | **String** | The payee name. If a payee_name value is provided and payee_id has a null value, the payee_name value will be used to resolve the payee by either (1) a matching payee rename rule (only if import_id is also specified) or (2) a payee with the same name or (3) creation of a new payee. | [optional]
|
11
11
|
**category_id** | **String** | The category for the transaction. Split and Credit Card Payment categories are not permitted and will be ignored if supplied. | [optional]
|
12
12
|
**memo** | **String** | | [optional]
|
13
13
|
**cleared** | **String** | The cleared status of the transaction | [optional]
|
data/docs/SubTransaction.md
CHANGED
data/docs/TransactionDetail.md
CHANGED
data/docs/TransactionResponse.md
CHANGED
data/docs/TransactionSummary.md
CHANGED
data/docs/TransactionWrapper.md
CHANGED
data/docs/TransactionsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# YNAB::TransactionsApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.youneedabudget.com/v1*
|
4
4
|
|
@@ -63,7 +63,7 @@ Name | Type | Description | Notes
|
|
63
63
|
------------- | ------------- | ------------- | -------------
|
64
64
|
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
65
65
|
**since_date** | **Date**| Only return transactions on or after this date. | [optional]
|
66
|
-
**type** | **String**| Only return transactions of a certain type (
|
66
|
+
**type** | **String**| Only return transactions of a certain type ('uncategorized' and 'unapproved' are currently supported) | [optional]
|
67
67
|
|
68
68
|
### Return type
|
69
69
|
|
@@ -83,6 +83,7 @@ Name | Type | Description | Notes
|
|
83
83
|
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
84
84
|
**account_id** | [**String**](.md)| The ID of the Account. |
|
85
85
|
**since_date** | **Date**| Only return transactions on or after this date. | [optional]
|
86
|
+
**type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
|
86
87
|
|
87
88
|
### Return type
|
88
89
|
|
@@ -102,6 +103,7 @@ Name | Type | Description | Notes
|
|
102
103
|
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
103
104
|
**category_id** | [**String**](.md)| The ID of the Category. |
|
104
105
|
**since_date** | **Date**| Only return transactions on or after this date. | [optional]
|
106
|
+
**type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
|
105
107
|
|
106
108
|
### Return type
|
107
109
|
|
@@ -139,6 +141,7 @@ Name | Type | Description | Notes
|
|
139
141
|
**budget_id** | [**String**](.md)| The ID of the Budget. |
|
140
142
|
**payee_id** | [**String**](.md)| The ID of the Payee. |
|
141
143
|
**since_date** | **Date**| Only return transactions on or after this date. | [optional]
|
144
|
+
**type** | **String**| Only return transactions of a certain type (i.e. 'uncategorized', 'unapproved') | [optional]
|
142
145
|
|
143
146
|
### Return type
|
144
147
|
|
data/docs/TransactionsWrapper.md
CHANGED
data/docs/User.md
CHANGED
data/docs/UserApi.md
CHANGED
data/docs/UserResponse.md
CHANGED
data/docs/UserWrapper.md
CHANGED
data/examples/budget-list.rb
CHANGED
data/examples/budget-month.rb
CHANGED
@@ -4,7 +4,7 @@ require 'date'
|
|
4
4
|
|
5
5
|
def print_budget_month
|
6
6
|
access_token = 'bf0cbb14b4330-not-real-3de12e66a389eaafe2'
|
7
|
-
ynab =
|
7
|
+
ynab = YNAB::API.new(access_token)
|
8
8
|
|
9
9
|
budget_id = "f968197b-2863-not-real-c2406dbe7f0d"
|
10
10
|
first_day_of_month_iso = Date.new(Date.today.year, Date.today.month, 1).iso8601
|
@@ -3,7 +3,7 @@ require 'ynab'
|
|
3
3
|
|
4
4
|
def print_category_info
|
5
5
|
access_token = 'bf0cbb14b4330-not-real-3de12e66a389eaafe2'
|
6
|
-
ynab =
|
6
|
+
ynab = YNAB::API.new(access_token)
|
7
7
|
|
8
8
|
budget_id = "f968197b-2863-not-real-c2406dbe7f0d"
|
9
9
|
category_id = "a191ac84-de09-not-real-6c5ed8cfdabe"
|
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.
|
9
|
+
Swagger Codegen version: 2.4.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,7 +17,6 @@ require 'ynab/version'
|
|
17
17
|
require 'ynab/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
-
require 'ynab/models/user'
|
21
20
|
require 'ynab/models/account'
|
22
21
|
require 'ynab/models/account_response'
|
23
22
|
require 'ynab/models/account_wrapper'
|
@@ -25,9 +24,16 @@ require 'ynab/models/accounts_response'
|
|
25
24
|
require 'ynab/models/accounts_wrapper'
|
26
25
|
require 'ynab/models/budget_detail_response'
|
27
26
|
require 'ynab/models/budget_detail_wrapper'
|
27
|
+
require 'ynab/models/budget_settings'
|
28
|
+
require 'ynab/models/budget_settings_response'
|
29
|
+
require 'ynab/models/budget_settings_wrapper'
|
28
30
|
require 'ynab/models/budget_summary'
|
29
31
|
require 'ynab/models/budget_summary_response'
|
30
32
|
require 'ynab/models/budget_summary_wrapper'
|
33
|
+
require 'ynab/models/bulk_id_wrapper'
|
34
|
+
require 'ynab/models/bulk_ids'
|
35
|
+
require 'ynab/models/bulk_response'
|
36
|
+
require 'ynab/models/bulk_transactions'
|
31
37
|
require 'ynab/models/categories_response'
|
32
38
|
require 'ynab/models/category'
|
33
39
|
require 'ynab/models/category_group'
|
@@ -38,6 +44,8 @@ require 'ynab/models/currency_format'
|
|
38
44
|
require 'ynab/models/date_format'
|
39
45
|
require 'ynab/models/error_detail'
|
40
46
|
require 'ynab/models/error_response'
|
47
|
+
require 'ynab/models/hybrid_transactions_response'
|
48
|
+
require 'ynab/models/hybrid_transactions_wrapper'
|
41
49
|
require 'ynab/models/month_detail_response'
|
42
50
|
require 'ynab/models/month_detail_wrapper'
|
43
51
|
require 'ynab/models/month_summaries_response'
|
@@ -53,34 +61,31 @@ require 'ynab/models/payee_response'
|
|
53
61
|
require 'ynab/models/payee_wrapper'
|
54
62
|
require 'ynab/models/payees_response'
|
55
63
|
require 'ynab/models/payees_wrapper'
|
64
|
+
require 'ynab/models/save_transaction'
|
65
|
+
require 'ynab/models/save_transaction_wrapper'
|
56
66
|
require 'ynab/models/scheduled_sub_transaction'
|
57
67
|
require 'ynab/models/scheduled_transaction_response'
|
68
|
+
require 'ynab/models/scheduled_transaction_summary'
|
58
69
|
require 'ynab/models/scheduled_transaction_wrapper'
|
59
70
|
require 'ynab/models/scheduled_transactions_response'
|
60
71
|
require 'ynab/models/scheduled_transactions_wrapper'
|
61
|
-
require 'ynab/models/scheduled_transaction_summary'
|
62
72
|
require 'ynab/models/sub_transaction'
|
63
73
|
require 'ynab/models/transaction_response'
|
74
|
+
require 'ynab/models/transaction_summary'
|
64
75
|
require 'ynab/models/transaction_wrapper'
|
65
76
|
require 'ynab/models/transactions_response'
|
66
77
|
require 'ynab/models/transactions_wrapper'
|
67
|
-
require 'ynab/models/
|
78
|
+
require 'ynab/models/user'
|
79
|
+
require 'ynab/models/user_response'
|
80
|
+
require 'ynab/models/user_wrapper'
|
68
81
|
require 'ynab/models/budget_detail'
|
69
82
|
require 'ynab/models/category_group_with_categories'
|
83
|
+
require 'ynab/models/hybrid_transaction'
|
70
84
|
require 'ynab/models/month_detail'
|
71
85
|
require 'ynab/models/scheduled_transaction_detail'
|
72
86
|
require 'ynab/models/transaction_detail'
|
73
|
-
require 'ynab/models/transaction_detail'
|
74
|
-
require 'ynab/models/bulk_id_wrapper'
|
75
|
-
require 'ynab/models/bulk_ids'
|
76
|
-
require 'ynab/models/bulk_response'
|
77
|
-
require 'ynab/models/hybrid_transactions_response'
|
78
|
-
require 'ynab/models/hybrid_transactions_wrapper'
|
79
|
-
require 'ynab/models/hybrid_transaction'
|
80
|
-
|
81
87
|
|
82
88
|
# APIs
|
83
|
-
require 'ynab/api/user_api'
|
84
89
|
require 'ynab/api/accounts_api'
|
85
90
|
require 'ynab/api/budgets_api'
|
86
91
|
require 'ynab/api/categories_api'
|
@@ -89,9 +94,10 @@ require 'ynab/api/payee_locations_api'
|
|
89
94
|
require 'ynab/api/payees_api'
|
90
95
|
require 'ynab/api/scheduled_transactions_api'
|
91
96
|
require 'ynab/api/transactions_api'
|
97
|
+
require 'ynab/api/user_api'
|
92
98
|
|
93
|
-
module
|
94
|
-
class
|
99
|
+
module YNAB
|
100
|
+
class API
|
95
101
|
def initialize(access_token, host = 'api.youneedabudget.com', useHttps = true)
|
96
102
|
config = Configuration.default
|
97
103
|
config.api_key['Authorization'] = access_token
|
@@ -144,3 +150,9 @@ module YnabApi
|
|
144
150
|
end
|
145
151
|
end
|
146
152
|
end
|
153
|
+
|
154
|
+
# Support old interface: YnabApi::Client
|
155
|
+
module YnabApi
|
156
|
+
class Client < YNAB::API
|
157
|
+
end
|
158
|
+
end
|
data/lib/ynab/api/budgets_api.rb
CHANGED
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
12
12
|
|
13
13
|
require 'uri'
|
14
14
|
|
15
|
-
module
|
15
|
+
module YNAB
|
16
16
|
class BudgetsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
@@ -74,6 +74,58 @@ module YnabApi
|
|
74
74
|
end
|
75
75
|
return data, status_code, headers
|
76
76
|
end
|
77
|
+
# Budget Settings
|
78
|
+
# Returns settings for a budget.
|
79
|
+
# @param budget_id The ID of the Budget.
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [BudgetSettingsResponse]
|
82
|
+
def get_budget_settings_by_id(budget_id, opts = {})
|
83
|
+
data, _status_code, _headers = get_budget_settings_by_id_with_http_info(budget_id, opts)
|
84
|
+
data
|
85
|
+
end
|
86
|
+
|
87
|
+
# Budget Settings
|
88
|
+
# Returns settings for a budget.
|
89
|
+
# @param budget_id The ID of the Budget.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [Array<(BudgetSettingsResponse, Fixnum, Hash)>] BudgetSettingsResponse data, response status code and response headers
|
92
|
+
def get_budget_settings_by_id_with_http_info(budget_id, opts = {})
|
93
|
+
if @api_client.config.debugging
|
94
|
+
@api_client.config.logger.debug 'Calling API: BudgetsApi.get_budget_settings_by_id ...'
|
95
|
+
end
|
96
|
+
# verify the required parameter 'budget_id' is set
|
97
|
+
if @api_client.config.client_side_validation && budget_id.nil?
|
98
|
+
fail ArgumentError, "Missing the required parameter 'budget_id' when calling BudgetsApi.get_budget_settings_by_id"
|
99
|
+
end
|
100
|
+
# resource path
|
101
|
+
local_var_path = '/budgets/{budget_id}/settings'.sub('{' + 'budget_id' + '}', budget_id.to_s)
|
102
|
+
|
103
|
+
# query parameters
|
104
|
+
query_params = {}
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = {}
|
108
|
+
# HTTP header 'Accept' (if needed)
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
110
|
+
|
111
|
+
# form parameters
|
112
|
+
form_params = {}
|
113
|
+
|
114
|
+
# http body (model)
|
115
|
+
post_body = nil
|
116
|
+
auth_names = ['bearer']
|
117
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
118
|
+
:header_params => header_params,
|
119
|
+
:query_params => query_params,
|
120
|
+
:form_params => form_params,
|
121
|
+
:body => post_body,
|
122
|
+
:auth_names => auth_names,
|
123
|
+
:return_type => 'BudgetSettingsResponse')
|
124
|
+
if @api_client.config.debugging
|
125
|
+
@api_client.config.logger.debug "API called: BudgetsApi#get_budget_settings_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
|
+
end
|
127
|
+
return data, status_code, headers
|
128
|
+
end
|
77
129
|
# List budgets
|
78
130
|
# Returns budgets list with summary information.
|
79
131
|
# @param [Hash] opts the optional parameters
|