ynab 1.16.0 → 1.17.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/lib/ynab.rb +3 -1
- data/lib/ynab/api/accounts_api.rb +1 -1
- data/lib/ynab/api/budgets_api.rb +1 -1
- data/lib/ynab/api/categories_api.rb +1 -1
- data/lib/ynab/api/deprecated_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 +53 -1
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +1 -1
- data/lib/ynab/configuration.rb +1 -1
- data/lib/ynab/models/account.rb +3 -2
- data/lib/ynab/models/account_response.rb +3 -2
- data/lib/ynab/models/account_response_data.rb +3 -2
- data/lib/ynab/models/accounts_response.rb +3 -2
- data/lib/ynab/models/accounts_response_data.rb +3 -2
- data/lib/ynab/models/budget_detail.rb +3 -2
- data/lib/ynab/models/budget_detail_response.rb +3 -2
- data/lib/ynab/models/budget_detail_response_data.rb +3 -2
- data/lib/ynab/models/budget_settings.rb +3 -2
- data/lib/ynab/models/budget_settings_response.rb +3 -2
- data/lib/ynab/models/budget_settings_response_data.rb +3 -2
- data/lib/ynab/models/budget_summary.rb +3 -2
- data/lib/ynab/models/budget_summary_response.rb +3 -2
- data/lib/ynab/models/budget_summary_response_data.rb +3 -2
- data/lib/ynab/models/bulk_response.rb +3 -2
- data/lib/ynab/models/bulk_response_data.rb +3 -2
- data/lib/ynab/models/bulk_response_data_bulk.rb +3 -2
- data/lib/ynab/models/bulk_transactions.rb +3 -2
- data/lib/ynab/models/categories_response.rb +3 -2
- data/lib/ynab/models/categories_response_data.rb +3 -2
- data/lib/ynab/models/category.rb +3 -2
- data/lib/ynab/models/category_group.rb +3 -2
- data/lib/ynab/models/category_group_with_categories.rb +3 -2
- data/lib/ynab/models/category_response.rb +3 -2
- data/lib/ynab/models/category_response_data.rb +3 -2
- data/lib/ynab/models/currency_format.rb +3 -2
- data/lib/ynab/models/date_format.rb +3 -2
- data/lib/ynab/models/error_detail.rb +3 -2
- data/lib/ynab/models/error_response.rb +3 -2
- data/lib/ynab/models/hybrid_transaction.rb +3 -2
- data/lib/ynab/models/hybrid_transactions_response.rb +3 -2
- data/lib/ynab/models/hybrid_transactions_response_data.rb +3 -2
- data/lib/ynab/models/month_detail.rb +3 -2
- data/lib/ynab/models/month_detail_response.rb +3 -2
- data/lib/ynab/models/month_detail_response_data.rb +3 -2
- data/lib/ynab/models/month_summaries_response.rb +3 -2
- data/lib/ynab/models/month_summaries_response_data.rb +3 -2
- data/lib/ynab/models/month_summary.rb +3 -2
- data/lib/ynab/models/payee.rb +3 -2
- data/lib/ynab/models/payee_location.rb +3 -2
- data/lib/ynab/models/payee_location_response.rb +3 -2
- data/lib/ynab/models/payee_location_response_data.rb +3 -2
- data/lib/ynab/models/payee_locations_response.rb +3 -2
- data/lib/ynab/models/payee_locations_response_data.rb +3 -2
- data/lib/ynab/models/payee_response.rb +3 -2
- data/lib/ynab/models/payee_response_data.rb +3 -2
- data/lib/ynab/models/payees_response.rb +3 -2
- data/lib/ynab/models/payees_response_data.rb +3 -2
- data/lib/ynab/models/save_category_response.rb +3 -2
- data/lib/ynab/models/save_category_response_data.rb +3 -2
- data/lib/ynab/models/save_month_category.rb +3 -2
- data/lib/ynab/models/save_month_category_wrapper.rb +3 -2
- data/lib/ynab/models/save_sub_transaction.rb +4 -3
- data/lib/ynab/models/save_transaction.rb +3 -2
- data/lib/ynab/models/save_transaction_wrapper.rb +3 -2
- data/lib/ynab/models/save_transactions_response.rb +3 -2
- data/lib/ynab/models/save_transactions_response_data.rb +3 -2
- data/lib/ynab/models/save_transactions_wrapper.rb +3 -2
- data/lib/ynab/models/scheduled_sub_transaction.rb +3 -2
- data/lib/ynab/models/scheduled_transaction_detail.rb +3 -2
- data/lib/ynab/models/scheduled_transaction_response.rb +3 -2
- data/lib/ynab/models/scheduled_transaction_response_data.rb +3 -2
- data/lib/ynab/models/scheduled_transaction_summary.rb +3 -2
- data/lib/ynab/models/scheduled_transactions_response.rb +3 -2
- data/lib/ynab/models/scheduled_transactions_response_data.rb +3 -2
- data/lib/ynab/models/sub_transaction.rb +3 -2
- data/lib/ynab/models/transaction_detail.rb +3 -2
- data/lib/ynab/models/transaction_response.rb +3 -2
- data/lib/ynab/models/transaction_response_data.rb +3 -2
- data/lib/ynab/models/transaction_summary.rb +3 -2
- data/lib/ynab/models/transactions_import_response.rb +189 -0
- data/lib/ynab/models/transactions_import_response_data.rb +192 -0
- data/lib/ynab/models/transactions_response.rb +3 -2
- data/lib/ynab/models/transactions_response_data.rb +3 -2
- data/lib/ynab/models/update_transaction.rb +3 -2
- data/lib/ynab/models/update_transactions_wrapper.rb +3 -2
- data/lib/ynab/models/user.rb +3 -2
- data/lib/ynab/models/user_response.rb +3 -2
- data/lib/ynab/models/user_response_data.rb +3 -2
- data/lib/ynab/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecc804b0c72894a25a3addfde6bf756ff2ee6e04ae6576f5e16113ea882e827f
|
|
4
|
+
data.tar.gz: '0399e094d61c5ebde5566e23fc33f368b4f82438f4f14ae5bb39ff45020dbb0f'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02f1def98a6791520a982f8427a735d7b44a801aac31ea9a568d400d3acd6a93ac48ff414410f838c28c521c706be633d4b3d7018b70a2748c720ba06e816109
|
|
7
|
+
data.tar.gz: 4d89e3a1a38a97b2879915f1ab21e4c8f5d95f09a2849bf396d44671059502b60b3cb54df6fc8fe3271380a24f1ad4661ad51631233df44b2d9425fb0cfa2b2d
|
data/lib/ynab.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -81,6 +81,8 @@ require 'ynab/models/sub_transaction'
|
|
|
81
81
|
require 'ynab/models/transaction_response'
|
|
82
82
|
require 'ynab/models/transaction_response_data'
|
|
83
83
|
require 'ynab/models/transaction_summary'
|
|
84
|
+
require 'ynab/models/transactions_import_response'
|
|
85
|
+
require 'ynab/models/transactions_import_response_data'
|
|
84
86
|
require 'ynab/models/transactions_response'
|
|
85
87
|
require 'ynab/models/transactions_response_data'
|
|
86
88
|
require 'ynab/models/update_transactions_wrapper'
|
data/lib/ynab/api/budgets_api.rb
CHANGED
data/lib/ynab/api/months_api.rb
CHANGED
data/lib/ynab/api/payees_api.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -409,6 +409,58 @@ module YNAB
|
|
|
409
409
|
end
|
|
410
410
|
return data, status_code, headers
|
|
411
411
|
end
|
|
412
|
+
# Import transactions
|
|
413
|
+
# Imports transactions.
|
|
414
|
+
# @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
|
|
415
|
+
# @param [Hash] opts the optional parameters
|
|
416
|
+
# @return [TransactionsImportResponse]
|
|
417
|
+
def import_transactions(budget_id, opts = {})
|
|
418
|
+
data, _status_code, _headers = import_transactions_with_http_info(budget_id, opts)
|
|
419
|
+
data
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Import transactions
|
|
423
|
+
# Imports transactions.
|
|
424
|
+
# @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
|
|
425
|
+
# @param [Hash] opts the optional parameters
|
|
426
|
+
# @return [Array<(TransactionsImportResponse, Fixnum, Hash)>] TransactionsImportResponse data, response status code and response headers
|
|
427
|
+
def import_transactions_with_http_info(budget_id, opts = {})
|
|
428
|
+
if @api_client.config.debugging
|
|
429
|
+
@api_client.config.logger.debug 'Calling API: TransactionsApi.import_transactions ...'
|
|
430
|
+
end
|
|
431
|
+
# verify the required parameter 'budget_id' is set
|
|
432
|
+
if @api_client.config.client_side_validation && budget_id.nil?
|
|
433
|
+
fail ArgumentError, "Missing the required parameter 'budget_id' when calling TransactionsApi.import_transactions"
|
|
434
|
+
end
|
|
435
|
+
# resource path
|
|
436
|
+
local_var_path = '/budgets/{budget_id}/transactions/import'.sub('{' + 'budget_id' + '}', budget_id.to_s)
|
|
437
|
+
|
|
438
|
+
# query parameters
|
|
439
|
+
query_params = {}
|
|
440
|
+
|
|
441
|
+
# header parameters
|
|
442
|
+
header_params = {}
|
|
443
|
+
# HTTP header 'Accept' (if needed)
|
|
444
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
445
|
+
|
|
446
|
+
# form parameters
|
|
447
|
+
form_params = {}
|
|
448
|
+
|
|
449
|
+
# http body (model)
|
|
450
|
+
post_body = nil
|
|
451
|
+
auth_names = ['bearer']
|
|
452
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
453
|
+
:header_params => header_params,
|
|
454
|
+
:query_params => query_params,
|
|
455
|
+
:form_params => form_params,
|
|
456
|
+
:body => post_body,
|
|
457
|
+
:auth_names => auth_names,
|
|
458
|
+
:return_type => 'TransactionsImportResponse')
|
|
459
|
+
if @api_client.config.debugging
|
|
460
|
+
@api_client.config.logger.debug "API called: TransactionsApi#import_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
461
|
+
end
|
|
462
|
+
return data, status_code, headers
|
|
463
|
+
end
|
|
412
464
|
# Updates an existing transaction
|
|
413
465
|
# Updates a transaction
|
|
414
466
|
# @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
|
data/lib/ynab/api/user_api.rb
CHANGED
data/lib/ynab/api_client.rb
CHANGED
data/lib/ynab/configuration.rb
CHANGED
data/lib/ynab/models/account.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -265,7 +265,7 @@ module YNAB
|
|
|
265
265
|
return nil unless attributes.is_a?(Hash)
|
|
266
266
|
self.class.swagger_types.each_pair do |key, type|
|
|
267
267
|
if type =~ /\AArray<(.*)>/i
|
|
268
|
-
# check to ensure the input is an array given that the
|
|
268
|
+
# check to ensure the input is an array given that the attribute
|
|
269
269
|
# is documented as an array but the input is not
|
|
270
270
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
271
271
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -361,5 +361,6 @@ module YNAB
|
|
|
361
361
|
value
|
|
362
362
|
end
|
|
363
363
|
end
|
|
364
|
+
|
|
364
365
|
end
|
|
365
366
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ module YNAB
|
|
|
88
88
|
return nil unless attributes.is_a?(Hash)
|
|
89
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
90
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
91
|
+
# check to ensure the input is an array given that the attribute
|
|
92
92
|
# is documented as an array but the input is not
|
|
93
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
94
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +184,6 @@ module YNAB
|
|
|
184
184
|
value
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
|
+
|
|
187
188
|
end
|
|
188
189
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ module YNAB
|
|
|
88
88
|
return nil unless attributes.is_a?(Hash)
|
|
89
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
90
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
91
|
+
# check to ensure the input is an array given that the attribute
|
|
92
92
|
# is documented as an array but the input is not
|
|
93
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
94
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +184,6 @@ module YNAB
|
|
|
184
184
|
value
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
|
+
|
|
187
188
|
end
|
|
188
189
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ module YNAB
|
|
|
88
88
|
return nil unless attributes.is_a?(Hash)
|
|
89
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
90
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
91
|
+
# check to ensure the input is an array given that the attribute
|
|
92
92
|
# is documented as an array but the input is not
|
|
93
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
94
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +184,6 @@ module YNAB
|
|
|
184
184
|
value
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
|
+
|
|
187
188
|
end
|
|
188
189
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -105,7 +105,7 @@ module YNAB
|
|
|
105
105
|
return nil unless attributes.is_a?(Hash)
|
|
106
106
|
self.class.swagger_types.each_pair do |key, type|
|
|
107
107
|
if type =~ /\AArray<(.*)>/i
|
|
108
|
-
# check to ensure the input is an array given that the
|
|
108
|
+
# check to ensure the input is an array given that the attribute
|
|
109
109
|
# is documented as an array but the input is not
|
|
110
110
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
111
111
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -201,5 +201,6 @@ module YNAB
|
|
|
201
201
|
value
|
|
202
202
|
end
|
|
203
203
|
end
|
|
204
|
+
|
|
204
205
|
end
|
|
205
206
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -260,7 +260,7 @@ module YNAB
|
|
|
260
260
|
return nil unless attributes.is_a?(Hash)
|
|
261
261
|
self.class.swagger_types.each_pair do |key, type|
|
|
262
262
|
if type =~ /\AArray<(.*)>/i
|
|
263
|
-
# check to ensure the input is an array given that the
|
|
263
|
+
# check to ensure the input is an array given that the attribute
|
|
264
264
|
# is documented as an array but the input is not
|
|
265
265
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
266
266
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -356,5 +356,6 @@ module YNAB
|
|
|
356
356
|
value
|
|
357
357
|
end
|
|
358
358
|
end
|
|
359
|
+
|
|
359
360
|
end
|
|
360
361
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ module YNAB
|
|
|
88
88
|
return nil unless attributes.is_a?(Hash)
|
|
89
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
90
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
91
|
+
# check to ensure the input is an array given that the attribute
|
|
92
92
|
# is documented as an array but the input is not
|
|
93
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
94
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +184,6 @@ module YNAB
|
|
|
184
184
|
value
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
|
+
|
|
187
188
|
end
|
|
188
189
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -103,7 +103,7 @@ module YNAB
|
|
|
103
103
|
return nil unless attributes.is_a?(Hash)
|
|
104
104
|
self.class.swagger_types.each_pair do |key, type|
|
|
105
105
|
if type =~ /\AArray<(.*)>/i
|
|
106
|
-
# check to ensure the input is an array given that the
|
|
106
|
+
# check to ensure the input is an array given that the attribute
|
|
107
107
|
# is documented as an array but the input is not
|
|
108
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
109
109
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -199,5 +199,6 @@ module YNAB
|
|
|
199
199
|
value
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
|
+
|
|
202
203
|
end
|
|
203
204
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -102,7 +102,7 @@ module YNAB
|
|
|
102
102
|
return nil unless attributes.is_a?(Hash)
|
|
103
103
|
self.class.swagger_types.each_pair do |key, type|
|
|
104
104
|
if type =~ /\AArray<(.*)>/i
|
|
105
|
-
# check to ensure the input is an array given that the
|
|
105
|
+
# check to ensure the input is an array given that the attribute
|
|
106
106
|
# is documented as an array but the input is not
|
|
107
107
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
108
108
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -198,5 +198,6 @@ module YNAB
|
|
|
198
198
|
value
|
|
199
199
|
end
|
|
200
200
|
end
|
|
201
|
+
|
|
201
202
|
end
|
|
202
203
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.
|
|
9
|
+
Swagger Codegen version: 2.4.13
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ module YNAB
|
|
|
88
88
|
return nil unless attributes.is_a?(Hash)
|
|
89
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
90
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
91
|
+
# check to ensure the input is an array given that the attribute
|
|
92
92
|
# is documented as an array but the input is not
|
|
93
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
94
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +184,6 @@ module YNAB
|
|
|
184
184
|
value
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
|
+
|
|
187
188
|
end
|
|
188
189
|
end
|