ynab 1.13.0 → 1.18.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/README.md +1 -0
  3. data/lib/ynab.rb +6 -1
  4. data/lib/ynab/api/accounts_api.rb +3 -3
  5. data/lib/ynab/api/budgets_api.rb +6 -3
  6. data/lib/ynab/api/categories_api.rb +7 -7
  7. data/lib/ynab/api/deprecated_api.rb +1 -1
  8. data/lib/ynab/api/months_api.rb +3 -3
  9. data/lib/ynab/api/payee_locations_api.rb +1 -1
  10. data/lib/ynab/api/payees_api.rb +3 -3
  11. data/lib/ynab/api/scheduled_transactions_api.rb +3 -3
  12. data/lib/ynab/api/transactions_api.rb +77 -25
  13. data/lib/ynab/api/user_api.rb +1 -1
  14. data/lib/ynab/api_client.rb +3 -2
  15. data/lib/ynab/configuration.rb +2 -3
  16. data/lib/ynab/models/account.rb +3 -7
  17. data/lib/ynab/models/account_response.rb +3 -2
  18. data/lib/ynab/models/account_response_data.rb +3 -2
  19. data/lib/ynab/models/accounts_response.rb +3 -2
  20. data/lib/ynab/models/accounts_response_data.rb +3 -2
  21. data/lib/ynab/models/budget_detail.rb +3 -2
  22. data/lib/ynab/models/budget_detail_response.rb +3 -2
  23. data/lib/ynab/models/budget_detail_response_data.rb +3 -2
  24. data/lib/ynab/models/budget_settings.rb +3 -2
  25. data/lib/ynab/models/budget_settings_response.rb +3 -2
  26. data/lib/ynab/models/budget_settings_response_data.rb +3 -2
  27. data/lib/ynab/models/budget_summary.rb +19 -6
  28. data/lib/ynab/models/budget_summary_response.rb +3 -2
  29. data/lib/ynab/models/budget_summary_response_data.rb +3 -7
  30. data/lib/ynab/models/bulk_response.rb +3 -2
  31. data/lib/ynab/models/bulk_response_data.rb +3 -2
  32. data/lib/ynab/models/bulk_response_data_bulk.rb +4 -3
  33. data/lib/ynab/models/bulk_transactions.rb +3 -2
  34. data/lib/ynab/models/categories_response.rb +3 -2
  35. data/lib/ynab/models/categories_response_data.rb +3 -2
  36. data/lib/ynab/models/category.rb +7 -36
  37. data/lib/ynab/models/category_group.rb +3 -2
  38. data/lib/ynab/models/category_group_with_categories.rb +3 -2
  39. data/lib/ynab/models/category_response.rb +3 -2
  40. data/lib/ynab/models/category_response_data.rb +3 -2
  41. data/lib/ynab/models/currency_format.rb +3 -2
  42. data/lib/ynab/models/date_format.rb +3 -2
  43. data/lib/ynab/models/error_detail.rb +3 -2
  44. data/lib/ynab/models/error_response.rb +3 -2
  45. data/lib/ynab/models/hybrid_transaction.rb +4 -58
  46. data/lib/ynab/models/hybrid_transactions_response.rb +3 -2
  47. data/lib/ynab/models/hybrid_transactions_response_data.rb +3 -2
  48. data/lib/ynab/models/month_detail.rb +5 -14
  49. data/lib/ynab/models/month_detail_response.rb +3 -2
  50. data/lib/ynab/models/month_detail_response_data.rb +3 -2
  51. data/lib/ynab/models/month_summaries_response.rb +3 -2
  52. data/lib/ynab/models/month_summaries_response_data.rb +3 -2
  53. data/lib/ynab/models/month_summary.rb +5 -14
  54. data/lib/ynab/models/payee.rb +4 -8
  55. data/lib/ynab/models/payee_location.rb +3 -2
  56. data/lib/ynab/models/payee_location_response.rb +3 -2
  57. data/lib/ynab/models/payee_location_response_data.rb +3 -2
  58. data/lib/ynab/models/payee_locations_response.rb +3 -2
  59. data/lib/ynab/models/payee_locations_response_data.rb +3 -2
  60. data/lib/ynab/models/payee_response.rb +3 -2
  61. data/lib/ynab/models/payee_response_data.rb +3 -2
  62. data/lib/ynab/models/payees_response.rb +3 -2
  63. data/lib/ynab/models/payees_response_data.rb +3 -2
  64. data/lib/ynab/models/save_category_response.rb +3 -2
  65. data/lib/ynab/models/save_category_response_data.rb +3 -2
  66. data/lib/ynab/models/save_month_category.rb +3 -2
  67. data/lib/ynab/models/save_month_category_wrapper.rb +3 -2
  68. data/lib/ynab/models/save_sub_transaction.rb +259 -0
  69. data/lib/ynab/models/save_transaction.rb +23 -10
  70. data/lib/ynab/models/save_transaction_wrapper.rb +3 -2
  71. data/lib/ynab/models/save_transactions_response.rb +3 -2
  72. data/lib/ynab/models/save_transactions_response_data.rb +4 -3
  73. data/lib/ynab/models/save_transactions_wrapper.rb +3 -2
  74. data/lib/ynab/models/scheduled_sub_transaction.rb +3 -22
  75. data/lib/ynab/models/scheduled_transaction_detail.rb +3 -37
  76. data/lib/ynab/models/scheduled_transaction_response.rb +3 -2
  77. data/lib/ynab/models/scheduled_transaction_response_data.rb +3 -2
  78. data/lib/ynab/models/scheduled_transaction_summary.rb +3 -27
  79. data/lib/ynab/models/scheduled_transactions_response.rb +3 -2
  80. data/lib/ynab/models/scheduled_transactions_response_data.rb +3 -2
  81. data/lib/ynab/models/sub_transaction.rb +22 -23
  82. data/lib/ynab/models/transaction_detail.rb +3 -52
  83. data/lib/ynab/models/transaction_response.rb +3 -2
  84. data/lib/ynab/models/transaction_response_data.rb +3 -2
  85. data/lib/ynab/models/transaction_summary.rb +3 -42
  86. data/lib/ynab/models/transactions_import_response.rb +189 -0
  87. data/lib/ynab/models/transactions_import_response_data.rb +192 -0
  88. data/lib/ynab/models/transactions_response.rb +3 -2
  89. data/lib/ynab/models/transactions_response_data.rb +3 -2
  90. data/lib/ynab/models/update_transaction.rb +415 -0
  91. data/lib/ynab/models/update_transactions_wrapper.rb +191 -0
  92. data/lib/ynab/models/user.rb +3 -2
  93. data/lib/ynab/models/user_response.rb +3 -2
  94. data/lib/ynab/models/user_response_data.rb +3 -2
  95. data/lib/ynab/version.rb +1 -1
  96. data/spec/api/transactions_spec.rb +11 -0
  97. data/spec/fixtures/vcr_cassettes/import_transactions.yml +50 -0
  98. metadata +10 -3
@@ -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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -57,7 +57,7 @@ module YNAB
57
57
  # Whether the hybrid transaction represents a regular transaction or a subtransaction
58
58
  attr_accessor :type
59
59
 
60
- # For subtransaction types, this is the id of the pararent transaction. For transaction types, this id will be always be null.
60
+ # For subtransaction types, this is the id of the parent transaction. For transaction types, this id will be always be null.
61
61
  attr_accessor :parent_transaction_id
62
62
 
63
63
  attr_accessor :account_name
@@ -245,10 +245,6 @@ module YNAB
245
245
  invalid_properties.push('invalid value for "amount", amount cannot be nil.')
246
246
  end
247
247
 
248
- if @memo.nil?
249
- invalid_properties.push('invalid value for "memo", memo cannot be nil.')
250
- end
251
-
252
248
  if @cleared.nil?
253
249
  invalid_properties.push('invalid value for "cleared", cleared cannot be nil.')
254
250
  end
@@ -257,38 +253,10 @@ module YNAB
257
253
  invalid_properties.push('invalid value for "approved", approved cannot be nil.')
258
254
  end
259
255
 
260
- if @flag_color.nil?
261
- invalid_properties.push('invalid value for "flag_color", flag_color cannot be nil.')
262
- end
263
-
264
256
  if @account_id.nil?
265
257
  invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
266
258
  end
267
259
 
268
- if @payee_id.nil?
269
- invalid_properties.push('invalid value for "payee_id", payee_id cannot be nil.')
270
- end
271
-
272
- if @category_id.nil?
273
- invalid_properties.push('invalid value for "category_id", category_id cannot be nil.')
274
- end
275
-
276
- if @transfer_account_id.nil?
277
- invalid_properties.push('invalid value for "transfer_account_id", transfer_account_id cannot be nil.')
278
- end
279
-
280
- if @transfer_transaction_id.nil?
281
- invalid_properties.push('invalid value for "transfer_transaction_id", transfer_transaction_id cannot be nil.')
282
- end
283
-
284
- if @matched_transaction_id.nil?
285
- invalid_properties.push('invalid value for "matched_transaction_id", matched_transaction_id cannot be nil.')
286
- end
287
-
288
- if @import_id.nil?
289
- invalid_properties.push('invalid value for "import_id", import_id cannot be nil.')
290
- end
291
-
292
260
  if @deleted.nil?
293
261
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
294
262
  end
@@ -297,22 +265,10 @@ module YNAB
297
265
  invalid_properties.push('invalid value for "type", type cannot be nil.')
298
266
  end
299
267
 
300
- if @parent_transaction_id.nil?
301
- invalid_properties.push('invalid value for "parent_transaction_id", parent_transaction_id cannot be nil.')
302
- end
303
-
304
268
  if @account_name.nil?
305
269
  invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
306
270
  end
307
271
 
308
- if @payee_name.nil?
309
- invalid_properties.push('invalid value for "payee_name", payee_name cannot be nil.')
310
- end
311
-
312
- if @category_name.nil?
313
- invalid_properties.push('invalid value for "category_name", category_name cannot be nil.')
314
- end
315
-
316
272
  invalid_properties
317
273
  end
318
274
 
@@ -322,29 +278,18 @@ module YNAB
322
278
  return false if @id.nil?
323
279
  return false if @date.nil?
324
280
  return false if @amount.nil?
325
- return false if @memo.nil?
326
281
  return false if @cleared.nil?
327
282
  cleared_validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
328
283
  return false unless cleared_validator.valid?(@cleared)
329
284
  return false if @approved.nil?
330
- return false if @flag_color.nil?
331
285
  flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
332
286
  return false unless flag_color_validator.valid?(@flag_color)
333
287
  return false if @account_id.nil?
334
- return false if @payee_id.nil?
335
- return false if @category_id.nil?
336
- return false if @transfer_account_id.nil?
337
- return false if @transfer_transaction_id.nil?
338
- return false if @matched_transaction_id.nil?
339
- return false if @import_id.nil?
340
288
  return false if @deleted.nil?
341
289
  return false if @type.nil?
342
290
  type_validator = EnumAttributeValidator.new('String', ['transaction', 'subtransaction'])
343
291
  return false unless type_validator.valid?(@type)
344
- return false if @parent_transaction_id.nil?
345
292
  return false if @account_name.nil?
346
- return false if @payee_name.nil?
347
- return false if @category_name.nil?
348
293
  true
349
294
  end
350
295
 
@@ -424,7 +369,7 @@ module YNAB
424
369
  return nil unless attributes.is_a?(Hash)
425
370
  self.class.swagger_types.each_pair do |key, type|
426
371
  if type =~ /\AArray<(.*)>/i
427
- # check to ensure the input is an array given that the the attribute
372
+ # check to ensure the input is an array given that the attribute
428
373
  # is documented as an array but the input is not
429
374
  if attributes[self.class.attribute_map[key]].is_a?(Array)
430
375
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -520,5 +465,6 @@ module YNAB
520
465
  value
521
466
  end
522
467
  end
468
+
523
469
  end
524
470
  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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 the attribute
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -90,7 +90,7 @@ module YNAB
90
90
  return nil unless attributes.is_a?(Hash)
91
91
  self.class.swagger_types.each_pair do |key, type|
92
92
  if type =~ /\AArray<(.*)>/i
93
- # check to ensure the input is an array given that the the attribute
93
+ # check to ensure the input is an array given that the attribute
94
94
  # is documented as an array but the input is not
95
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
96
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -186,5 +186,6 @@ module YNAB
186
186
  value
187
187
  end
188
188
  end
189
+
189
190
  end
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 in transactions categorized to 'Inflow: To be Budgeted' in the month
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 in transactions in the month, excluding those categorized to 'Inflow: To be Budgeted'
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'
@@ -124,10 +124,6 @@ module YNAB
124
124
  invalid_properties.push('invalid value for "month", month cannot be nil.')
125
125
  end
126
126
 
127
- if @note.nil?
128
- invalid_properties.push('invalid value for "note", note cannot be nil.')
129
- end
130
-
131
127
  if @income.nil?
132
128
  invalid_properties.push('invalid value for "income", income cannot be nil.')
133
129
  end
@@ -144,10 +140,6 @@ module YNAB
144
140
  invalid_properties.push('invalid value for "to_be_budgeted", to_be_budgeted cannot be nil.')
145
141
  end
146
142
 
147
- if @age_of_money.nil?
148
- invalid_properties.push('invalid value for "age_of_money", age_of_money cannot be nil.')
149
- end
150
-
151
143
  if @deleted.nil?
152
144
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
153
145
  end
@@ -163,12 +155,10 @@ module YNAB
163
155
  # @return true if the model is valid
164
156
  def valid?
165
157
  return false if @month.nil?
166
- return false if @note.nil?
167
158
  return false if @income.nil?
168
159
  return false if @budgeted.nil?
169
160
  return false if @activity.nil?
170
161
  return false if @to_be_budgeted.nil?
171
- return false if @age_of_money.nil?
172
162
  return false if @deleted.nil?
173
163
  return false if @categories.nil?
174
164
  true
@@ -209,7 +199,7 @@ module YNAB
209
199
  return nil unless attributes.is_a?(Hash)
210
200
  self.class.swagger_types.each_pair do |key, type|
211
201
  if type =~ /\AArray<(.*)>/i
212
- # check to ensure the input is an array given that the the attribute
202
+ # check to ensure the input is an array given that the attribute
213
203
  # is documented as an array but the input is not
214
204
  if attributes[self.class.attribute_map[key]].is_a?(Array)
215
205
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -305,5 +295,6 @@ module YNAB
305
295
  value
306
296
  end
307
297
  end
298
+
308
299
  end
309
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 the attribute
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 the attribute
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 the attribute
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 the attribute
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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
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 in transactions categorized to 'Inflow: To be Budgeted' in the month
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 in transactions in the month, excluding those categorized to 'Inflow: To be Budgeted'
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'
@@ -113,10 +113,6 @@ module YNAB
113
113
  invalid_properties.push('invalid value for "month", month cannot be nil.')
114
114
  end
115
115
 
116
- if @note.nil?
117
- invalid_properties.push('invalid value for "note", note cannot be nil.')
118
- end
119
-
120
116
  if @income.nil?
121
117
  invalid_properties.push('invalid value for "income", income cannot be nil.')
122
118
  end
@@ -133,10 +129,6 @@ module YNAB
133
129
  invalid_properties.push('invalid value for "to_be_budgeted", to_be_budgeted cannot be nil.')
134
130
  end
135
131
 
136
- if @age_of_money.nil?
137
- invalid_properties.push('invalid value for "age_of_money", age_of_money cannot be nil.')
138
- end
139
-
140
132
  if @deleted.nil?
141
133
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
142
134
  end
@@ -148,12 +140,10 @@ module YNAB
148
140
  # @return true if the model is valid
149
141
  def valid?
150
142
  return false if @month.nil?
151
- return false if @note.nil?
152
143
  return false if @income.nil?
153
144
  return false if @budgeted.nil?
154
145
  return false if @activity.nil?
155
146
  return false if @to_be_budgeted.nil?
156
- return false if @age_of_money.nil?
157
147
  return false if @deleted.nil?
158
148
  true
159
149
  end
@@ -192,7 +182,7 @@ module YNAB
192
182
  return nil unless attributes.is_a?(Hash)
193
183
  self.class.swagger_types.each_pair do |key, type|
194
184
  if type =~ /\AArray<(.*)>/i
195
- # check to ensure the input is an array given that the the attribute
185
+ # check to ensure the input is an array given that the attribute
196
186
  # is documented as an array but the input is not
197
187
  if attributes[self.class.attribute_map[key]].is_a?(Array)
198
188
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -288,5 +278,6 @@ module YNAB
288
278
  value
289
279
  end
290
280
  end
281
+
291
282
  end
292
283
  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.0-SNAPSHOT
9
+ Swagger Codegen version: 2.4.14
10
10
 
11
11
  =end
12
12
 
@@ -18,7 +18,7 @@ module YNAB
18
18
 
19
19
  attr_accessor :name
20
20
 
21
- # If a transfer payee, the account_id to which this payee transfers to
21
+ # If a transfer payee, the `account_id` to which this payee transfers to
22
22
  attr_accessor :transfer_account_id
23
23
 
24
24
  # Whether or not the payee has been deleted. Deleted payees will only be included in delta requests.
@@ -81,10 +81,6 @@ module YNAB
81
81
  invalid_properties.push('invalid value for "name", name cannot be nil.')
82
82
  end
83
83
 
84
- if @transfer_account_id.nil?
85
- invalid_properties.push('invalid value for "transfer_account_id", transfer_account_id cannot be nil.')
86
- end
87
-
88
84
  if @deleted.nil?
89
85
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
90
86
  end
@@ -97,7 +93,6 @@ module YNAB
97
93
  def valid?
98
94
  return false if @id.nil?
99
95
  return false if @name.nil?
100
- return false if @transfer_account_id.nil?
101
96
  return false if @deleted.nil?
102
97
  true
103
98
  end
@@ -132,7 +127,7 @@ module YNAB
132
127
  return nil unless attributes.is_a?(Hash)
133
128
  self.class.swagger_types.each_pair do |key, type|
134
129
  if type =~ /\AArray<(.*)>/i
135
- # check to ensure the input is an array given that the the attribute
130
+ # check to ensure the input is an array given that the attribute
136
131
  # is documented as an array but the input is not
137
132
  if attributes[self.class.attribute_map[key]].is_a?(Array)
138
133
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -228,5 +223,6 @@ module YNAB
228
223
  value
229
224
  end
230
225
  end
226
+
231
227
  end
232
228
  end