ynab 1.15.0 → 1.20.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/README.md +1 -0
- data/lib/ynab.rb +13 -8
- data/lib/ynab/api/accounts_api.rb +65 -7
- data/lib/ynab/api/budgets_api.rb +10 -7
- data/lib/ynab/api/categories_api.rb +15 -15
- data/lib/ynab/api/deprecated_api.rb +3 -3
- data/lib/ynab/api/months_api.rb +7 -7
- data/lib/ynab/api/payee_locations_api.rb +7 -7
- data/lib/ynab/api/payees_api.rb +7 -7
- data/lib/ynab/api/scheduled_transactions_api.rb +7 -7
- data/lib/ynab/api/transactions_api.rb +93 -41
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +3 -2
- data/lib/ynab/configuration.rb +2 -3
- data/lib/ynab/models/account.rb +4 -7
- data/lib/ynab/models/account_response.rb +4 -3
- data/lib/ynab/models/account_response_data.rb +4 -3
- data/lib/ynab/models/accounts_response.rb +4 -3
- data/lib/ynab/models/accounts_response_data.rb +4 -3
- data/lib/ynab/models/budget_detail.rb +4 -3
- data/lib/ynab/models/budget_detail_response.rb +4 -3
- data/lib/ynab/models/budget_detail_response_data.rb +4 -3
- data/lib/ynab/models/budget_settings.rb +4 -3
- data/lib/ynab/models/budget_settings_response.rb +4 -3
- data/lib/ynab/models/budget_settings_response_data.rb +4 -3
- data/lib/ynab/models/budget_summary.rb +20 -7
- data/lib/ynab/models/budget_summary_response.rb +4 -3
- data/lib/ynab/models/budget_summary_response_data.rb +4 -3
- data/lib/ynab/models/bulk_response.rb +4 -3
- data/lib/ynab/models/bulk_response_data.rb +4 -3
- data/lib/ynab/models/bulk_response_data_bulk.rb +5 -4
- data/lib/ynab/models/bulk_transactions.rb +4 -3
- data/lib/ynab/models/categories_response.rb +4 -3
- data/lib/ynab/models/categories_response_data.rb +4 -3
- data/lib/ynab/models/category.rb +6 -9
- data/lib/ynab/models/category_group.rb +4 -3
- data/lib/ynab/models/category_group_with_categories.rb +4 -3
- data/lib/ynab/models/category_response.rb +4 -3
- data/lib/ynab/models/category_response_data.rb +4 -3
- data/lib/ynab/models/currency_format.rb +4 -3
- data/lib/ynab/models/date_format.rb +4 -3
- data/lib/ynab/models/error_detail.rb +4 -3
- data/lib/ynab/models/error_response.rb +4 -3
- data/lib/ynab/models/hybrid_transaction.rb +4 -15
- data/lib/ynab/models/hybrid_transactions_response.rb +4 -3
- data/lib/ynab/models/hybrid_transactions_response_data.rb +4 -3
- data/lib/ynab/models/month_detail.rb +6 -5
- data/lib/ynab/models/month_detail_response.rb +4 -3
- data/lib/ynab/models/month_detail_response_data.rb +4 -3
- data/lib/ynab/models/month_summaries_response.rb +4 -3
- data/lib/ynab/models/month_summaries_response_data.rb +4 -3
- data/lib/ynab/models/month_summary.rb +6 -5
- data/lib/ynab/models/payee.rb +5 -4
- data/lib/ynab/models/payee_location.rb +4 -3
- data/lib/ynab/models/payee_location_response.rb +4 -3
- data/lib/ynab/models/payee_location_response_data.rb +4 -3
- data/lib/ynab/models/payee_locations_response.rb +4 -3
- data/lib/ynab/models/payee_locations_response_data.rb +4 -3
- data/lib/ynab/models/payee_response.rb +4 -3
- data/lib/ynab/models/payee_response_data.rb +4 -3
- data/lib/ynab/models/payees_response.rb +4 -3
- data/lib/ynab/models/payees_response_data.rb +4 -3
- data/lib/ynab/models/save_account.rb +250 -0
- data/lib/ynab/models/save_account_wrapper.rb +189 -0
- data/lib/ynab/models/save_category_response.rb +4 -3
- data/lib/ynab/models/save_category_response_data.rb +4 -3
- data/lib/ynab/models/save_month_category.rb +4 -3
- data/lib/ynab/models/save_month_category_wrapper.rb +4 -3
- data/lib/ynab/models/save_sub_transaction.rb +259 -0
- data/lib/ynab/models/save_transaction.rb +24 -19
- data/lib/ynab/models/save_transaction_wrapper.rb +4 -3
- data/lib/ynab/models/save_transactions_response.rb +4 -3
- data/lib/ynab/models/save_transactions_response_data.rb +5 -4
- data/lib/ynab/models/save_transactions_wrapper.rb +4 -3
- data/lib/ynab/models/scheduled_sub_transaction.rb +4 -3
- data/lib/ynab/models/scheduled_transaction_detail.rb +4 -11
- data/lib/ynab/models/scheduled_transaction_response.rb +4 -3
- data/lib/ynab/models/scheduled_transaction_response_data.rb +4 -3
- data/lib/ynab/models/scheduled_transaction_summary.rb +4 -11
- data/lib/ynab/models/scheduled_transactions_response.rb +4 -3
- data/lib/ynab/models/scheduled_transactions_response_data.rb +4 -3
- data/lib/ynab/models/sub_transaction.rb +33 -4
- data/lib/ynab/models/transaction_detail.rb +4 -11
- data/lib/ynab/models/transaction_response.rb +4 -3
- data/lib/ynab/models/transaction_response_data.rb +4 -3
- data/lib/ynab/models/transaction_summary.rb +4 -11
- 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 +4 -3
- data/lib/ynab/models/transactions_response_data.rb +4 -3
- data/lib/ynab/models/update_transaction.rb +18 -27
- data/lib/ynab/models/update_transactions_wrapper.rb +4 -3
- data/lib/ynab/models/user.rb +4 -3
- data/lib/ynab/models/user_response.rb +4 -3
- data/lib/ynab/models/user_response_data.rb +4 -3
- data/lib/ynab/version.rb +1 -1
- data/spec/api/accounts_spec.rb +19 -10
- data/spec/api/budgets_spec.rb +4 -4
- data/spec/api/categories_spec.rb +5 -5
- 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 +23 -13
- data/spec/fixtures/vcr_cassettes/create_account.yml +51 -0
- data/spec/fixtures/vcr_cassettes/import_transactions.yml +50 -0
- data/spec/models/transaction_detail_spec.rb +11 -0
- metadata +26 -15
@@ -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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -179,7 +179,6 @@ module YNAB
|
|
179
179
|
def hash
|
180
180
|
[iso_code, example_format, decimal_digits, decimal_separator, symbol_first, group_separator, currency_symbol, display_symbol].hash
|
181
181
|
end
|
182
|
-
|
183
182
|
# Builds the object from hash
|
184
183
|
# @param [Hash] attributes Model attributes in the form of hash
|
185
184
|
# @return [Object] Returns the model itself
|
@@ -187,7 +186,7 @@ module YNAB
|
|
187
186
|
return nil unless attributes.is_a?(Hash)
|
188
187
|
self.class.swagger_types.each_pair do |key, type|
|
189
188
|
if type =~ /\AArray<(.*)>/i
|
190
|
-
# check to ensure the input is an array given that the
|
189
|
+
# check to ensure the input is an array given that the attribute
|
191
190
|
# is documented as an array but the input is not
|
192
191
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
193
192
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -283,5 +282,7 @@ module YNAB
|
|
283
282
|
value
|
284
283
|
end
|
285
284
|
end
|
285
|
+
|
286
286
|
end
|
287
|
+
|
287
288
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,6 @@ module YNAB
|
|
81
81
|
def hash
|
82
82
|
[format].hash
|
83
83
|
end
|
84
|
-
|
85
84
|
# Builds the object from hash
|
86
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
86
|
# @return [Object] Returns the model itself
|
@@ -89,7 +88,7 @@ module YNAB
|
|
89
88
|
return nil unless attributes.is_a?(Hash)
|
90
89
|
self.class.swagger_types.each_pair do |key, type|
|
91
90
|
if type =~ /\AArray<(.*)>/i
|
92
|
-
# check to ensure the input is an array given that the
|
91
|
+
# check to ensure the input is an array given that the attribute
|
93
92
|
# is documented as an array but the input is not
|
94
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
95
94
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -185,5 +184,7 @@ module YNAB
|
|
185
184
|
value
|
186
185
|
end
|
187
186
|
end
|
187
|
+
|
188
188
|
end
|
189
|
+
|
189
190
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -108,7 +108,6 @@ module YNAB
|
|
108
108
|
def hash
|
109
109
|
[id, name, detail].hash
|
110
110
|
end
|
111
|
-
|
112
111
|
# Builds the object from hash
|
113
112
|
# @param [Hash] attributes Model attributes in the form of hash
|
114
113
|
# @return [Object] Returns the model itself
|
@@ -116,7 +115,7 @@ module YNAB
|
|
116
115
|
return nil unless attributes.is_a?(Hash)
|
117
116
|
self.class.swagger_types.each_pair do |key, type|
|
118
117
|
if type =~ /\AArray<(.*)>/i
|
119
|
-
# check to ensure the input is an array given that the
|
118
|
+
# check to ensure the input is an array given that the attribute
|
120
119
|
# is documented as an array but the input is not
|
121
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
121
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -212,5 +211,7 @@ module YNAB
|
|
212
211
|
value
|
213
212
|
end
|
214
213
|
end
|
214
|
+
|
215
215
|
end
|
216
|
+
|
216
217
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[error].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -88,7 +87,7 @@ module YNAB
|
|
88
87
|
return nil unless attributes.is_a?(Hash)
|
89
88
|
self.class.swagger_types.each_pair do |key, type|
|
90
89
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
90
|
+
# check to ensure the input is an array given that the attribute
|
92
91
|
# is documented as an array but the input is not
|
93
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
93
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +183,7 @@ module YNAB
|
|
184
183
|
value
|
185
184
|
end
|
186
185
|
end
|
186
|
+
|
187
187
|
end
|
188
|
+
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -296,30 +296,18 @@ module YNAB
|
|
296
296
|
# Custom attribute writer method checking allowed values (enum).
|
297
297
|
# @param [Object] cleared Object to be assigned
|
298
298
|
def cleared=(cleared)
|
299
|
-
validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
|
300
|
-
unless validator.valid?(cleared)
|
301
|
-
fail ArgumentError, 'invalid value for "cleared", must be one of #{validator.allowable_values}.'
|
302
|
-
end
|
303
299
|
@cleared = cleared
|
304
300
|
end
|
305
301
|
|
306
302
|
# Custom attribute writer method checking allowed values (enum).
|
307
303
|
# @param [Object] flag_color Object to be assigned
|
308
304
|
def flag_color=(flag_color)
|
309
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
310
|
-
unless validator.valid?(flag_color)
|
311
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
312
|
-
end
|
313
305
|
@flag_color = flag_color
|
314
306
|
end
|
315
307
|
|
316
308
|
# Custom attribute writer method checking allowed values (enum).
|
317
309
|
# @param [Object] type Object to be assigned
|
318
310
|
def type=(type)
|
319
|
-
validator = EnumAttributeValidator.new('String', ['transaction', 'subtransaction'])
|
320
|
-
unless validator.valid?(type)
|
321
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
322
|
-
end
|
323
311
|
@type = type
|
324
312
|
end
|
325
313
|
|
@@ -361,7 +349,6 @@ module YNAB
|
|
361
349
|
def hash
|
362
350
|
[id, date, amount, memo, cleared, approved, flag_color, account_id, payee_id, category_id, transfer_account_id, transfer_transaction_id, matched_transaction_id, import_id, deleted, type, parent_transaction_id, account_name, payee_name, category_name].hash
|
363
351
|
end
|
364
|
-
|
365
352
|
# Builds the object from hash
|
366
353
|
# @param [Hash] attributes Model attributes in the form of hash
|
367
354
|
# @return [Object] Returns the model itself
|
@@ -369,7 +356,7 @@ module YNAB
|
|
369
356
|
return nil unless attributes.is_a?(Hash)
|
370
357
|
self.class.swagger_types.each_pair do |key, type|
|
371
358
|
if type =~ /\AArray<(.*)>/i
|
372
|
-
# check to ensure the input is an array given that the
|
359
|
+
# check to ensure the input is an array given that the attribute
|
373
360
|
# is documented as an array but the input is not
|
374
361
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
375
362
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -465,5 +452,7 @@ module YNAB
|
|
465
452
|
value
|
466
453
|
end
|
467
454
|
end
|
455
|
+
|
468
456
|
end
|
457
|
+
|
469
458
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[data].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -88,7 +87,7 @@ module YNAB
|
|
88
87
|
return nil unless attributes.is_a?(Hash)
|
89
88
|
self.class.swagger_types.each_pair do |key, type|
|
90
89
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
90
|
+
# check to ensure the input is an array given that the attribute
|
92
91
|
# is documented as an array but the input is not
|
93
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
93
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +183,7 @@ module YNAB
|
|
184
183
|
value
|
185
184
|
end
|
186
185
|
end
|
186
|
+
|
187
187
|
end
|
188
|
+
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -82,7 +82,6 @@ module YNAB
|
|
82
82
|
def hash
|
83
83
|
[transactions].hash
|
84
84
|
end
|
85
|
-
|
86
85
|
# Builds the object from hash
|
87
86
|
# @param [Hash] attributes Model attributes in the form of hash
|
88
87
|
# @return [Object] Returns the model itself
|
@@ -90,7 +89,7 @@ module YNAB
|
|
90
89
|
return nil unless attributes.is_a?(Hash)
|
91
90
|
self.class.swagger_types.each_pair do |key, type|
|
92
91
|
if type =~ /\AArray<(.*)>/i
|
93
|
-
# check to ensure the input is an array given that the
|
92
|
+
# check to ensure the input is an array given that the attribute
|
94
93
|
# is documented as an array but the input is not
|
95
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
96
95
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -186,5 +185,7 @@ module YNAB
|
|
186
185
|
value
|
187
186
|
end
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
190
|
+
|
190
191
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,13 +18,13 @@ module YNAB
|
|
18
18
|
|
19
19
|
attr_accessor :note
|
20
20
|
|
21
|
-
# The total amount
|
21
|
+
# The total amount of transactions categorized to 'Inflow: To be Budgeted' in the month
|
22
22
|
attr_accessor :income
|
23
23
|
|
24
24
|
# The total amount budgeted in the month
|
25
25
|
attr_accessor :budgeted
|
26
26
|
|
27
|
-
# The total amount
|
27
|
+
# The total amount of transactions in the month, excluding those categorized to 'Inflow: To be Budgeted'
|
28
28
|
attr_accessor :activity
|
29
29
|
|
30
30
|
# The available amount for 'To be Budgeted'
|
@@ -191,7 +191,6 @@ module YNAB
|
|
191
191
|
def hash
|
192
192
|
[month, note, income, budgeted, activity, to_be_budgeted, age_of_money, deleted, categories].hash
|
193
193
|
end
|
194
|
-
|
195
194
|
# Builds the object from hash
|
196
195
|
# @param [Hash] attributes Model attributes in the form of hash
|
197
196
|
# @return [Object] Returns the model itself
|
@@ -199,7 +198,7 @@ module YNAB
|
|
199
198
|
return nil unless attributes.is_a?(Hash)
|
200
199
|
self.class.swagger_types.each_pair do |key, type|
|
201
200
|
if type =~ /\AArray<(.*)>/i
|
202
|
-
# check to ensure the input is an array given that the
|
201
|
+
# check to ensure the input is an array given that the attribute
|
203
202
|
# is documented as an array but the input is not
|
204
203
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
205
204
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -295,5 +294,7 @@ module YNAB
|
|
295
294
|
value
|
296
295
|
end
|
297
296
|
end
|
297
|
+
|
298
298
|
end
|
299
|
+
|
299
300
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[data].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -88,7 +87,7 @@ module YNAB
|
|
88
87
|
return nil unless attributes.is_a?(Hash)
|
89
88
|
self.class.swagger_types.each_pair do |key, type|
|
90
89
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
90
|
+
# check to ensure the input is an array given that the attribute
|
92
91
|
# is documented as an array but the input is not
|
93
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
93
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +183,7 @@ module YNAB
|
|
184
183
|
value
|
185
184
|
end
|
186
185
|
end
|
186
|
+
|
187
187
|
end
|
188
|
+
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[month].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -88,7 +87,7 @@ module YNAB
|
|
88
87
|
return nil unless attributes.is_a?(Hash)
|
89
88
|
self.class.swagger_types.each_pair do |key, type|
|
90
89
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
90
|
+
# check to ensure the input is an array given that the attribute
|
92
91
|
# is documented as an array but the input is not
|
93
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
93
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +183,7 @@ module YNAB
|
|
184
183
|
value
|
185
184
|
end
|
186
185
|
end
|
186
|
+
|
187
187
|
end
|
188
|
+
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[data].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -88,7 +87,7 @@ module YNAB
|
|
88
87
|
return nil unless attributes.is_a?(Hash)
|
89
88
|
self.class.swagger_types.each_pair do |key, type|
|
90
89
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
90
|
+
# check to ensure the input is an array given that the attribute
|
92
91
|
# is documented as an array but the input is not
|
93
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
93
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +183,7 @@ module YNAB
|
|
184
183
|
value
|
185
184
|
end
|
186
185
|
end
|
186
|
+
|
187
187
|
end
|
188
|
+
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -97,7 +97,6 @@ module YNAB
|
|
97
97
|
def hash
|
98
98
|
[months, server_knowledge].hash
|
99
99
|
end
|
100
|
-
|
101
100
|
# Builds the object from hash
|
102
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
103
102
|
# @return [Object] Returns the model itself
|
@@ -105,7 +104,7 @@ module YNAB
|
|
105
104
|
return nil unless attributes.is_a?(Hash)
|
106
105
|
self.class.swagger_types.each_pair do |key, type|
|
107
106
|
if type =~ /\AArray<(.*)>/i
|
108
|
-
# check to ensure the input is an array given that the
|
107
|
+
# check to ensure the input is an array given that the attribute
|
109
108
|
# is documented as an array but the input is not
|
110
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
110
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -201,5 +200,7 @@ module YNAB
|
|
201
200
|
value
|
202
201
|
end
|
203
202
|
end
|
203
|
+
|
204
204
|
end
|
205
|
+
|
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.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,13 +18,13 @@ module YNAB
|
|
18
18
|
|
19
19
|
attr_accessor :note
|
20
20
|
|
21
|
-
# The total amount
|
21
|
+
# The total amount of transactions categorized to 'Inflow: To be Budgeted' in the month
|
22
22
|
attr_accessor :income
|
23
23
|
|
24
24
|
# The total amount budgeted in the month
|
25
25
|
attr_accessor :budgeted
|
26
26
|
|
27
|
-
# The total amount
|
27
|
+
# The total amount of transactions in the month, excluding those categorized to 'Inflow: To be Budgeted'
|
28
28
|
attr_accessor :activity
|
29
29
|
|
30
30
|
# The available amount for 'To be Budgeted'
|
@@ -174,7 +174,6 @@ module YNAB
|
|
174
174
|
def hash
|
175
175
|
[month, note, income, budgeted, activity, to_be_budgeted, age_of_money, deleted].hash
|
176
176
|
end
|
177
|
-
|
178
177
|
# Builds the object from hash
|
179
178
|
# @param [Hash] attributes Model attributes in the form of hash
|
180
179
|
# @return [Object] Returns the model itself
|
@@ -182,7 +181,7 @@ module YNAB
|
|
182
181
|
return nil unless attributes.is_a?(Hash)
|
183
182
|
self.class.swagger_types.each_pair do |key, type|
|
184
183
|
if type =~ /\AArray<(.*)>/i
|
185
|
-
# check to ensure the input is an array given that the
|
184
|
+
# check to ensure the input is an array given that the attribute
|
186
185
|
# is documented as an array but the input is not
|
187
186
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
187
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -278,5 +277,7 @@ module YNAB
|
|
278
277
|
value
|
279
278
|
end
|
280
279
|
end
|
280
|
+
|
281
281
|
end
|
282
|
+
|
282
283
|
end
|