ynab 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +24 -24
  4. data/Rakefile +1 -1
  5. data/config.json +1 -1
  6. data/docs/AccountsApi.md +0 -76
  7. data/docs/BudgetsApi.md +0 -74
  8. data/docs/CategoriesApi.md +0 -76
  9. data/docs/CurrencyFormat.md +8 -1
  10. data/docs/DateFormat.md +1 -1
  11. data/docs/HybridTransaction.md +3 -0
  12. data/docs/MonthsApi.md +0 -76
  13. data/docs/PayeeLocationsApi.md +0 -115
  14. data/docs/PayeesApi.md +0 -76
  15. data/docs/ScheduledTransactionsApi.md +0 -76
  16. data/docs/TransactionsApi.md +0 -325
  17. data/docs/UserApi.md +0 -34
  18. data/lib/ynab/api/accounts_api.rb +8 -10
  19. data/lib/ynab/api/budgets_api.rb +8 -10
  20. data/lib/ynab/api/categories_api.rb +8 -10
  21. data/lib/ynab/api/months_api.rb +8 -10
  22. data/lib/ynab/api/payee_locations_api.rb +11 -14
  23. data/lib/ynab/api/payees_api.rb +8 -10
  24. data/lib/ynab/api/scheduled_transactions_api.rb +8 -10
  25. data/lib/ynab/api/transactions_api.rb +26 -34
  26. data/lib/ynab/api/user_api.rb +5 -6
  27. data/lib/ynab/api_client.rb +1 -1
  28. data/lib/ynab/api_error.rb +1 -1
  29. data/lib/ynab/configuration.rb +2 -2
  30. data/lib/ynab/models/account.rb +18 -22
  31. data/lib/ynab/models/account_response.rb +7 -12
  32. data/lib/ynab/models/account_wrapper.rb +7 -12
  33. data/lib/ynab/models/accounts_response.rb +7 -12
  34. data/lib/ynab/models/accounts_wrapper.rb +7 -12
  35. data/lib/ynab/models/budget_detail.rb +8 -13
  36. data/lib/ynab/models/budget_detail_response.rb +7 -12
  37. data/lib/ynab/models/budget_detail_wrapper.rb +8 -13
  38. data/lib/ynab/models/budget_summary.rb +8 -13
  39. data/lib/ynab/models/budget_summary_response.rb +7 -12
  40. data/lib/ynab/models/budget_summary_wrapper.rb +7 -12
  41. data/lib/ynab/models/bulk_id_wrapper.rb +7 -12
  42. data/lib/ynab/models/bulk_ids.rb +8 -13
  43. data/lib/ynab/models/bulk_response.rb +7 -12
  44. data/lib/ynab/models/bulk_transactions.rb +7 -12
  45. data/lib/ynab/models/categories_response.rb +7 -12
  46. data/lib/ynab/models/category.rb +14 -19
  47. data/lib/ynab/models/category_group.rb +9 -14
  48. data/lib/ynab/models/category_group_with_categories.rb +10 -15
  49. data/lib/ynab/models/category_groups_wrapper.rb +7 -12
  50. data/lib/ynab/models/category_response.rb +7 -12
  51. data/lib/ynab/models/category_wrapper.rb +7 -12
  52. data/lib/ynab/models/currency_format.rb +112 -19
  53. data/lib/ynab/models/date_format.rb +16 -21
  54. data/lib/ynab/models/error_detail.rb +9 -14
  55. data/lib/ynab/models/error_response.rb +7 -12
  56. data/lib/ynab/models/hybrid_transaction.rb +74 -36
  57. data/lib/ynab/models/hybrid_transactions_response.rb +7 -12
  58. data/lib/ynab/models/hybrid_transactions_wrapper.rb +7 -12
  59. data/lib/ynab/models/month_detail.rb +11 -16
  60. data/lib/ynab/models/month_detail_response.rb +7 -12
  61. data/lib/ynab/models/month_detail_wrapper.rb +7 -12
  62. data/lib/ynab/models/month_summaries_response.rb +7 -12
  63. data/lib/ynab/models/month_summaries_wrapper.rb +7 -12
  64. data/lib/ynab/models/month_summary.rb +10 -15
  65. data/lib/ynab/models/payee.rb +9 -14
  66. data/lib/ynab/models/payee_location.rb +10 -15
  67. data/lib/ynab/models/payee_location_response.rb +7 -12
  68. data/lib/ynab/models/payee_location_wrapper.rb +7 -12
  69. data/lib/ynab/models/payee_locations_response.rb +7 -12
  70. data/lib/ynab/models/payee_locations_wrapper.rb +7 -12
  71. data/lib/ynab/models/payee_response.rb +7 -12
  72. data/lib/ynab/models/payee_wrapper.rb +7 -12
  73. data/lib/ynab/models/payees_response.rb +7 -12
  74. data/lib/ynab/models/payees_wrapper.rb +7 -12
  75. data/lib/ynab/models/save_transaction.rb +15 -19
  76. data/lib/ynab/models/save_transaction_wrapper.rb +7 -12
  77. data/lib/ynab/models/scheduled_sub_transaction.rb +13 -18
  78. data/lib/ynab/models/scheduled_transaction_detail.rb +27 -31
  79. data/lib/ynab/models/scheduled_transaction_response.rb +7 -12
  80. data/lib/ynab/models/scheduled_transaction_summary.rb +23 -27
  81. data/lib/ynab/models/scheduled_transaction_wrapper.rb +7 -12
  82. data/lib/ynab/models/scheduled_transactions_response.rb +7 -12
  83. data/lib/ynab/models/scheduled_transactions_wrapper.rb +7 -12
  84. data/lib/ynab/models/sub_transaction.rb +13 -18
  85. data/lib/ynab/models/transaction_detail.rb +28 -32
  86. data/lib/ynab/models/transaction_response.rb +7 -12
  87. data/lib/ynab/models/transaction_summary.rb +24 -28
  88. data/lib/ynab/models/transaction_wrapper.rb +7 -12
  89. data/lib/ynab/models/transactions_response.rb +7 -12
  90. data/lib/ynab/models/transactions_wrapper.rb +7 -12
  91. data/lib/ynab/models/user.rb +7 -12
  92. data/lib/ynab/models/user_response.rb +7 -12
  93. data/lib/ynab/models/user_wrapper.rb +7 -12
  94. data/lib/ynab/version.rb +2 -2
  95. data/spec-v1-swagger.json +50 -5
  96. data/swagger-templates/api_doc.mustache +32 -0
  97. data/ynab.gemspec +1 -1
  98. metadata +4 -3
@@ -6,11 +6,11 @@
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.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class PayeesApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Single payee
24
23
  # Returns single payee
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [PayeeResponse]
29
28
  def get_payee_by_id(budget_id, payee_id, opts = {})
30
29
  data, _status_code, _headers = get_payee_by_id_with_http_info(budget_id, payee_id, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Single payee
@@ -39,7 +38,7 @@ module YnabApi
39
38
  # @return [Array<(PayeeResponse, Fixnum, Hash)>] PayeeResponse data, response status code and response headers
40
39
  def get_payee_by_id_with_http_info(budget_id, payee_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: PayeesApi.get_payee_by_id ..."
41
+ @api_client.config.logger.debug 'Calling API: PayeesApi.get_payee_by_id ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -50,7 +49,7 @@ module YnabApi
50
49
  fail ArgumentError, "Missing the required parameter 'payee_id' when calling PayeesApi.get_payee_by_id"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/budgets/{budget_id}/payees/{payee_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_id' + '}', payee_id.to_s)
52
+ local_var_path = '/budgets/{budget_id}/payees/{payee_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_id' + '}', payee_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -78,7 +77,6 @@ module YnabApi
78
77
  end
79
78
  return data, status_code, headers
80
79
  end
81
-
82
80
  # List payees
83
81
  # Returns all payees
84
82
  # @param budget_id The ID of the Budget.
@@ -86,7 +84,7 @@ module YnabApi
86
84
  # @return [PayeesResponse]
87
85
  def get_payees(budget_id, opts = {})
88
86
  data, _status_code, _headers = get_payees_with_http_info(budget_id, opts)
89
- return data
87
+ data
90
88
  end
91
89
 
92
90
  # List payees
@@ -96,14 +94,14 @@ module YnabApi
96
94
  # @return [Array<(PayeesResponse, Fixnum, Hash)>] PayeesResponse data, response status code and response headers
97
95
  def get_payees_with_http_info(budget_id, opts = {})
98
96
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "Calling API: PayeesApi.get_payees ..."
97
+ @api_client.config.logger.debug 'Calling API: PayeesApi.get_payees ...'
100
98
  end
101
99
  # verify the required parameter 'budget_id' is set
102
100
  if @api_client.config.client_side_validation && budget_id.nil?
103
101
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling PayeesApi.get_payees"
104
102
  end
105
103
  # resource path
106
- local_var_path = "/budgets/{budget_id}/payees".sub('{' + 'budget_id' + '}', budget_id.to_s)
104
+ local_var_path = '/budgets/{budget_id}/payees'.sub('{' + 'budget_id' + '}', budget_id.to_s)
107
105
 
108
106
  # query parameters
109
107
  query_params = {}
@@ -6,11 +6,11 @@
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.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class ScheduledTransactionsApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Single scheduled transaction
24
23
  # Returns a single scheduled transaction
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [ScheduledTransactionResponse]
29
28
  def get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id, opts = {})
30
29
  data, _status_code, _headers = get_scheduled_transaction_by_id_with_http_info(budget_id, scheduled_transaction_id, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Single scheduled transaction
@@ -39,7 +38,7 @@ module YnabApi
39
38
  # @return [Array<(ScheduledTransactionResponse, Fixnum, Hash)>] ScheduledTransactionResponse data, response status code and response headers
40
39
  def get_scheduled_transaction_by_id_with_http_info(budget_id, scheduled_transaction_id, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: ScheduledTransactionsApi.get_scheduled_transaction_by_id ..."
41
+ @api_client.config.logger.debug 'Calling API: ScheduledTransactionsApi.get_scheduled_transaction_by_id ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -50,7 +49,7 @@ module YnabApi
50
49
  fail ArgumentError, "Missing the required parameter 'scheduled_transaction_id' when calling ScheduledTransactionsApi.get_scheduled_transaction_by_id"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'scheduled_transaction_id' + '}', scheduled_transaction_id.to_s)
52
+ local_var_path = '/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'scheduled_transaction_id' + '}', scheduled_transaction_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -78,7 +77,6 @@ module YnabApi
78
77
  end
79
78
  return data, status_code, headers
80
79
  end
81
-
82
80
  # List scheduled transactions
83
81
  # Returns all scheduled transactions
84
82
  # @param budget_id The ID of the Budget.
@@ -86,7 +84,7 @@ module YnabApi
86
84
  # @return [ScheduledTransactionsResponse]
87
85
  def get_scheduled_transactions(budget_id, opts = {})
88
86
  data, _status_code, _headers = get_scheduled_transactions_with_http_info(budget_id, opts)
89
- return data
87
+ data
90
88
  end
91
89
 
92
90
  # List scheduled transactions
@@ -96,14 +94,14 @@ module YnabApi
96
94
  # @return [Array<(ScheduledTransactionsResponse, Fixnum, Hash)>] ScheduledTransactionsResponse data, response status code and response headers
97
95
  def get_scheduled_transactions_with_http_info(budget_id, opts = {})
98
96
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "Calling API: ScheduledTransactionsApi.get_scheduled_transactions ..."
97
+ @api_client.config.logger.debug 'Calling API: ScheduledTransactionsApi.get_scheduled_transactions ...'
100
98
  end
101
99
  # verify the required parameter 'budget_id' is set
102
100
  if @api_client.config.client_side_validation && budget_id.nil?
103
101
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling ScheduledTransactionsApi.get_scheduled_transactions"
104
102
  end
105
103
  # resource path
106
- local_var_path = "/budgets/{budget_id}/scheduled_transactions".sub('{' + 'budget_id' + '}', budget_id.to_s)
104
+ local_var_path = '/budgets/{budget_id}/scheduled_transactions'.sub('{' + 'budget_id' + '}', budget_id.to_s)
107
105
 
108
106
  # query parameters
109
107
  query_params = {}
@@ -6,11 +6,11 @@
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.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class TransactionsApi
@@ -19,7 +19,6 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Bulk create transactions
24
23
  # Creates multiple transactions
25
24
  # @param budget_id The ID of the Budget.
@@ -28,7 +27,7 @@ module YnabApi
28
27
  # @return [BulkResponse]
29
28
  def bulk_create_transactions(budget_id, transactions, opts = {})
30
29
  data, _status_code, _headers = bulk_create_transactions_with_http_info(budget_id, transactions, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # Bulk create transactions
@@ -39,7 +38,7 @@ module YnabApi
39
38
  # @return [Array<(BulkResponse, Fixnum, Hash)>] BulkResponse data, response status code and response headers
40
39
  def bulk_create_transactions_with_http_info(budget_id, transactions, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: TransactionsApi.bulk_create_transactions ..."
41
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.bulk_create_transactions ...'
43
42
  end
44
43
  # verify the required parameter 'budget_id' is set
45
44
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -50,7 +49,7 @@ module YnabApi
50
49
  fail ArgumentError, "Missing the required parameter 'transactions' when calling TransactionsApi.bulk_create_transactions"
51
50
  end
52
51
  # resource path
53
- local_var_path = "/budgets/{budget_id}/transactions/bulk".sub('{' + 'budget_id' + '}', budget_id.to_s)
52
+ local_var_path = '/budgets/{budget_id}/transactions/bulk'.sub('{' + 'budget_id' + '}', budget_id.to_s)
54
53
 
55
54
  # query parameters
56
55
  query_params = {}
@@ -78,7 +77,6 @@ module YnabApi
78
77
  end
79
78
  return data, status_code, headers
80
79
  end
81
-
82
80
  # Create new transaction
83
81
  # Creates a transaction
84
82
  # @param budget_id The ID of the Budget.
@@ -87,7 +85,7 @@ module YnabApi
87
85
  # @return [TransactionResponse]
88
86
  def create_transaction(budget_id, transaction, opts = {})
89
87
  data, _status_code, _headers = create_transaction_with_http_info(budget_id, transaction, opts)
90
- return data
88
+ data
91
89
  end
92
90
 
93
91
  # Create new transaction
@@ -98,7 +96,7 @@ module YnabApi
98
96
  # @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
99
97
  def create_transaction_with_http_info(budget_id, transaction, opts = {})
100
98
  if @api_client.config.debugging
101
- @api_client.config.logger.debug "Calling API: TransactionsApi.create_transaction ..."
99
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.create_transaction ...'
102
100
  end
103
101
  # verify the required parameter 'budget_id' is set
104
102
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -109,7 +107,7 @@ module YnabApi
109
107
  fail ArgumentError, "Missing the required parameter 'transaction' when calling TransactionsApi.create_transaction"
110
108
  end
111
109
  # resource path
112
- local_var_path = "/budgets/{budget_id}/transactions".sub('{' + 'budget_id' + '}', budget_id.to_s)
110
+ local_var_path = '/budgets/{budget_id}/transactions'.sub('{' + 'budget_id' + '}', budget_id.to_s)
113
111
 
114
112
  # query parameters
115
113
  query_params = {}
@@ -137,7 +135,6 @@ module YnabApi
137
135
  end
138
136
  return data, status_code, headers
139
137
  end
140
-
141
138
  # List transactions
142
139
  # Returns budget transactions
143
140
  # @param budget_id The ID of the Budget.
@@ -147,7 +144,7 @@ module YnabApi
147
144
  # @return [TransactionsResponse]
148
145
  def get_transactions(budget_id, opts = {})
149
146
  data, _status_code, _headers = get_transactions_with_http_info(budget_id, opts)
150
- return data
147
+ data
151
148
  end
152
149
 
153
150
  # List transactions
@@ -159,7 +156,7 @@ module YnabApi
159
156
  # @return [Array<(TransactionsResponse, Fixnum, Hash)>] TransactionsResponse data, response status code and response headers
160
157
  def get_transactions_with_http_info(budget_id, opts = {})
161
158
  if @api_client.config.debugging
162
- @api_client.config.logger.debug "Calling API: TransactionsApi.get_transactions ..."
159
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions ...'
163
160
  end
164
161
  # verify the required parameter 'budget_id' is set
165
162
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -169,7 +166,7 @@ module YnabApi
169
166
  fail ArgumentError, 'invalid value for "type", must be one of uncategorized, unapproved'
170
167
  end
171
168
  # resource path
172
- local_var_path = "/budgets/{budget_id}/transactions".sub('{' + 'budget_id' + '}', budget_id.to_s)
169
+ local_var_path = '/budgets/{budget_id}/transactions'.sub('{' + 'budget_id' + '}', budget_id.to_s)
173
170
 
174
171
  # query parameters
175
172
  query_params = {}
@@ -199,7 +196,6 @@ module YnabApi
199
196
  end
200
197
  return data, status_code, headers
201
198
  end
202
-
203
199
  # List account transactions
204
200
  # Returns all transactions for a specified account
205
201
  # @param budget_id The ID of the Budget.
@@ -209,7 +205,7 @@ module YnabApi
209
205
  # @return [TransactionsResponse]
210
206
  def get_transactions_by_account(budget_id, account_id, opts = {})
211
207
  data, _status_code, _headers = get_transactions_by_account_with_http_info(budget_id, account_id, opts)
212
- return data
208
+ data
213
209
  end
214
210
 
215
211
  # List account transactions
@@ -221,7 +217,7 @@ module YnabApi
221
217
  # @return [Array<(TransactionsResponse, Fixnum, Hash)>] TransactionsResponse data, response status code and response headers
222
218
  def get_transactions_by_account_with_http_info(budget_id, account_id, opts = {})
223
219
  if @api_client.config.debugging
224
- @api_client.config.logger.debug "Calling API: TransactionsApi.get_transactions_by_account ..."
220
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions_by_account ...'
225
221
  end
226
222
  # verify the required parameter 'budget_id' is set
227
223
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -232,7 +228,7 @@ module YnabApi
232
228
  fail ArgumentError, "Missing the required parameter 'account_id' when calling TransactionsApi.get_transactions_by_account"
233
229
  end
234
230
  # resource path
235
- local_var_path = "/budgets/{budget_id}/accounts/{account_id}/transactions".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'account_id' + '}', account_id.to_s)
231
+ local_var_path = '/budgets/{budget_id}/accounts/{account_id}/transactions'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'account_id' + '}', account_id.to_s)
236
232
 
237
233
  # query parameters
238
234
  query_params = {}
@@ -261,7 +257,6 @@ module YnabApi
261
257
  end
262
258
  return data, status_code, headers
263
259
  end
264
-
265
260
  # List category transactions
266
261
  # Returns all transactions for a specified category
267
262
  # @param budget_id The ID of the Budget.
@@ -271,7 +266,7 @@ module YnabApi
271
266
  # @return [HybridTransactionsResponse]
272
267
  def get_transactions_by_category(budget_id, category_id, opts = {})
273
268
  data, _status_code, _headers = get_transactions_by_category_with_http_info(budget_id, category_id, opts)
274
- return data
269
+ data
275
270
  end
276
271
 
277
272
  # List category transactions
@@ -283,7 +278,7 @@ module YnabApi
283
278
  # @return [Array<(HybridTransactionsResponse, Fixnum, Hash)>] HybridTransactionsResponse data, response status code and response headers
284
279
  def get_transactions_by_category_with_http_info(budget_id, category_id, opts = {})
285
280
  if @api_client.config.debugging
286
- @api_client.config.logger.debug "Calling API: TransactionsApi.get_transactions_by_category ..."
281
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions_by_category ...'
287
282
  end
288
283
  # verify the required parameter 'budget_id' is set
289
284
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -294,7 +289,7 @@ module YnabApi
294
289
  fail ArgumentError, "Missing the required parameter 'category_id' when calling TransactionsApi.get_transactions_by_category"
295
290
  end
296
291
  # resource path
297
- local_var_path = "/budgets/{budget_id}/categories/{category_id}/transactions".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'category_id' + '}', category_id.to_s)
292
+ local_var_path = '/budgets/{budget_id}/categories/{category_id}/transactions'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'category_id' + '}', category_id.to_s)
298
293
 
299
294
  # query parameters
300
295
  query_params = {}
@@ -323,7 +318,6 @@ module YnabApi
323
318
  end
324
319
  return data, status_code, headers
325
320
  end
326
-
327
321
  # Single transaction
328
322
  # Returns a single transaction
329
323
  # @param budget_id The ID of the Budget.
@@ -332,7 +326,7 @@ module YnabApi
332
326
  # @return [TransactionResponse]
333
327
  def get_transactions_by_id(budget_id, transaction_id, opts = {})
334
328
  data, _status_code, _headers = get_transactions_by_id_with_http_info(budget_id, transaction_id, opts)
335
- return data
329
+ data
336
330
  end
337
331
 
338
332
  # Single transaction
@@ -343,7 +337,7 @@ module YnabApi
343
337
  # @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
344
338
  def get_transactions_by_id_with_http_info(budget_id, transaction_id, opts = {})
345
339
  if @api_client.config.debugging
346
- @api_client.config.logger.debug "Calling API: TransactionsApi.get_transactions_by_id ..."
340
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions_by_id ...'
347
341
  end
348
342
  # verify the required parameter 'budget_id' is set
349
343
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -354,7 +348,7 @@ module YnabApi
354
348
  fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TransactionsApi.get_transactions_by_id"
355
349
  end
356
350
  # resource path
357
- local_var_path = "/budgets/{budget_id}/transactions/{transaction_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'transaction_id' + '}', transaction_id.to_s)
351
+ local_var_path = '/budgets/{budget_id}/transactions/{transaction_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'transaction_id' + '}', transaction_id.to_s)
358
352
 
359
353
  # query parameters
360
354
  query_params = {}
@@ -382,7 +376,6 @@ module YnabApi
382
376
  end
383
377
  return data, status_code, headers
384
378
  end
385
-
386
379
  # List payee transactions
387
380
  # Returns all transactions for a specified payee
388
381
  # @param budget_id The ID of the Budget.
@@ -392,7 +385,7 @@ module YnabApi
392
385
  # @return [HybridTransactionsResponse]
393
386
  def get_transactions_by_payee(budget_id, payee_id, opts = {})
394
387
  data, _status_code, _headers = get_transactions_by_payee_with_http_info(budget_id, payee_id, opts)
395
- return data
388
+ data
396
389
  end
397
390
 
398
391
  # List payee transactions
@@ -404,7 +397,7 @@ module YnabApi
404
397
  # @return [Array<(HybridTransactionsResponse, Fixnum, Hash)>] HybridTransactionsResponse data, response status code and response headers
405
398
  def get_transactions_by_payee_with_http_info(budget_id, payee_id, opts = {})
406
399
  if @api_client.config.debugging
407
- @api_client.config.logger.debug "Calling API: TransactionsApi.get_transactions_by_payee ..."
400
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions_by_payee ...'
408
401
  end
409
402
  # verify the required parameter 'budget_id' is set
410
403
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -415,7 +408,7 @@ module YnabApi
415
408
  fail ArgumentError, "Missing the required parameter 'payee_id' when calling TransactionsApi.get_transactions_by_payee"
416
409
  end
417
410
  # resource path
418
- local_var_path = "/budgets/{budget_id}/payees/{payee_id}/transactions".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_id' + '}', payee_id.to_s)
411
+ local_var_path = '/budgets/{budget_id}/payees/{payee_id}/transactions'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'payee_id' + '}', payee_id.to_s)
419
412
 
420
413
  # query parameters
421
414
  query_params = {}
@@ -444,7 +437,6 @@ module YnabApi
444
437
  end
445
438
  return data, status_code, headers
446
439
  end
447
-
448
440
  # Updates an existing transaction
449
441
  # Updates a transaction
450
442
  # @param budget_id The ID of the Budget.
@@ -454,7 +446,7 @@ module YnabApi
454
446
  # @return [TransactionResponse]
455
447
  def update_transaction(budget_id, transaction_id, transaction, opts = {})
456
448
  data, _status_code, _headers = update_transaction_with_http_info(budget_id, transaction_id, transaction, opts)
457
- return data
449
+ data
458
450
  end
459
451
 
460
452
  # Updates an existing transaction
@@ -466,7 +458,7 @@ module YnabApi
466
458
  # @return [Array<(TransactionResponse, Fixnum, Hash)>] TransactionResponse data, response status code and response headers
467
459
  def update_transaction_with_http_info(budget_id, transaction_id, transaction, opts = {})
468
460
  if @api_client.config.debugging
469
- @api_client.config.logger.debug "Calling API: TransactionsApi.update_transaction ..."
461
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.update_transaction ...'
470
462
  end
471
463
  # verify the required parameter 'budget_id' is set
472
464
  if @api_client.config.client_side_validation && budget_id.nil?
@@ -481,7 +473,7 @@ module YnabApi
481
473
  fail ArgumentError, "Missing the required parameter 'transaction' when calling TransactionsApi.update_transaction"
482
474
  end
483
475
  # resource path
484
- local_var_path = "/budgets/{budget_id}/transactions/{transaction_id}".sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'transaction_id' + '}', transaction_id.to_s)
476
+ local_var_path = '/budgets/{budget_id}/transactions/{transaction_id}'.sub('{' + 'budget_id' + '}', budget_id.to_s).sub('{' + 'transaction_id' + '}', transaction_id.to_s)
485
477
 
486
478
  # query parameters
487
479
  query_params = {}
@@ -6,11 +6,11 @@
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.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module YnabApi
16
16
  class UserApi
@@ -19,14 +19,13 @@ module YnabApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # User info
24
23
  # Returns authenticated user information.
25
24
  # @param [Hash] opts the optional parameters
26
25
  # @return [UserResponse]
27
26
  def get_user(opts = {})
28
27
  data, _status_code, _headers = get_user_with_http_info(opts)
29
- return data
28
+ data
30
29
  end
31
30
 
32
31
  # User info
@@ -35,10 +34,10 @@ module YnabApi
35
34
  # @return [Array<(UserResponse, Fixnum, Hash)>] UserResponse data, response status code and response headers
36
35
  def get_user_with_http_info(opts = {})
37
36
  if @api_client.config.debugging
38
- @api_client.config.logger.debug "Calling API: UserApi.get_user ..."
37
+ @api_client.config.logger.debug 'Calling API: UserApi.get_user ...'
39
38
  end
40
39
  # resource path
41
- local_var_path = "/user"
40
+ local_var_path = '/user'
42
41
 
43
42
  # query parameters
44
43
  query_params = {}