ynab 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/ynab/api/transactions_api.rb +0 -16
  4. data/lib/ynab/models/account.rb +0 -36
  5. data/lib/ynab/models/account_response.rb +0 -4
  6. data/lib/ynab/models/account_response_data.rb +0 -4
  7. data/lib/ynab/models/accounts_response.rb +0 -4
  8. data/lib/ynab/models/accounts_response_data.rb +0 -8
  9. data/lib/ynab/models/budget_detail.rb +0 -8
  10. data/lib/ynab/models/budget_detail_response.rb +0 -4
  11. data/lib/ynab/models/budget_detail_response_data.rb +0 -8
  12. data/lib/ynab/models/budget_settings_response.rb +0 -4
  13. data/lib/ynab/models/budget_settings_response_data.rb +0 -4
  14. data/lib/ynab/models/budget_summary.rb +0 -8
  15. data/lib/ynab/models/budget_summary_response.rb +0 -4
  16. data/lib/ynab/models/budget_summary_response_data.rb +0 -4
  17. data/lib/ynab/models/bulk_response.rb +0 -4
  18. data/lib/ynab/models/bulk_response_data.rb +0 -4
  19. data/lib/ynab/models/bulk_response_data_bulk.rb +0 -8
  20. data/lib/ynab/models/bulk_transactions.rb +0 -4
  21. data/lib/ynab/models/categories_response.rb +0 -4
  22. data/lib/ynab/models/categories_response_data.rb +0 -8
  23. data/lib/ynab/models/category.rb +0 -36
  24. data/lib/ynab/models/category_group.rb +0 -16
  25. data/lib/ynab/models/category_group_with_categories.rb +0 -20
  26. data/lib/ynab/models/category_group_with_categories_all_of.rb +0 -4
  27. data/lib/ynab/models/category_response.rb +0 -4
  28. data/lib/ynab/models/category_response_data.rb +0 -4
  29. data/lib/ynab/models/currency_format.rb +0 -32
  30. data/lib/ynab/models/date_format.rb +0 -4
  31. data/lib/ynab/models/error_detail.rb +0 -12
  32. data/lib/ynab/models/error_response.rb +0 -4
  33. data/lib/ynab/models/hybrid_transaction.rb +0 -52
  34. data/lib/ynab/models/hybrid_transaction_all_of.rb +0 -12
  35. data/lib/ynab/models/hybrid_transactions_response.rb +0 -4
  36. data/lib/ynab/models/hybrid_transactions_response_data.rb +0 -4
  37. data/lib/ynab/models/month_detail.rb +0 -28
  38. data/lib/ynab/models/month_detail_all_of.rb +0 -4
  39. data/lib/ynab/models/month_detail_response.rb +0 -4
  40. data/lib/ynab/models/month_detail_response_data.rb +0 -4
  41. data/lib/ynab/models/month_summaries_response.rb +0 -4
  42. data/lib/ynab/models/month_summaries_response_data.rb +0 -8
  43. data/lib/ynab/models/month_summary.rb +0 -24
  44. data/lib/ynab/models/patch_month_category_wrapper.rb +0 -4
  45. data/lib/ynab/models/patch_transactions_wrapper.rb +0 -4
  46. data/lib/ynab/models/payee.rb +0 -12
  47. data/lib/ynab/models/payee_location.rb +0 -20
  48. data/lib/ynab/models/payee_location_response.rb +0 -4
  49. data/lib/ynab/models/payee_location_response_data.rb +0 -4
  50. data/lib/ynab/models/payee_locations_response.rb +0 -4
  51. data/lib/ynab/models/payee_locations_response_data.rb +0 -4
  52. data/lib/ynab/models/payee_response.rb +0 -4
  53. data/lib/ynab/models/payee_response_data.rb +0 -4
  54. data/lib/ynab/models/payees_response.rb +0 -4
  55. data/lib/ynab/models/payees_response_data.rb +0 -8
  56. data/lib/ynab/models/post_account_wrapper.rb +0 -4
  57. data/lib/ynab/models/put_transaction_wrapper.rb +0 -4
  58. data/lib/ynab/models/save_account.rb +0 -12
  59. data/lib/ynab/models/save_category_response.rb +0 -4
  60. data/lib/ynab/models/save_category_response_data.rb +0 -8
  61. data/lib/ynab/models/save_month_category.rb +0 -4
  62. data/lib/ynab/models/save_sub_transaction.rb +0 -20
  63. data/lib/ynab/models/save_transaction.rb +0 -32
  64. data/lib/ynab/models/save_transaction_with_id.rb +0 -32
  65. data/lib/ynab/models/save_transaction_with_optional_fields.rb +0 -32
  66. data/lib/ynab/models/save_transactions_response.rb +0 -4
  67. data/lib/ynab/models/save_transactions_response_data.rb +0 -8
  68. data/lib/ynab/models/scheduled_sub_transaction.rb +0 -16
  69. data/lib/ynab/models/scheduled_transaction_detail.rb +0 -44
  70. data/lib/ynab/models/scheduled_transaction_detail_all_of.rb +0 -8
  71. data/lib/ynab/models/scheduled_transaction_response.rb +0 -4
  72. data/lib/ynab/models/scheduled_transaction_response_data.rb +0 -4
  73. data/lib/ynab/models/scheduled_transaction_summary.rb +0 -36
  74. data/lib/ynab/models/scheduled_transactions_response.rb +0 -4
  75. data/lib/ynab/models/scheduled_transactions_response_data.rb +0 -8
  76. data/lib/ynab/models/sub_transaction.rb +0 -16
  77. data/lib/ynab/models/transaction_detail.rb +0 -48
  78. data/lib/ynab/models/transaction_detail_all_of.rb +0 -8
  79. data/lib/ynab/models/transaction_response.rb +0 -4
  80. data/lib/ynab/models/transaction_response_data.rb +0 -4
  81. data/lib/ynab/models/transaction_summary.rb +0 -40
  82. data/lib/ynab/models/transactions_import_response.rb +0 -4
  83. data/lib/ynab/models/transactions_import_response_data.rb +0 -4
  84. data/lib/ynab/models/transactions_response.rb +0 -4
  85. data/lib/ynab/models/transactions_response_data.rb +0 -8
  86. data/lib/ynab/models/user.rb +0 -4
  87. data/lib/ynab/models/user_response.rb +0 -4
  88. data/lib/ynab/models/user_response_data.rb +0 -4
  89. data/lib/ynab/version.rb +1 -1
  90. data/templates/api.mustache +213 -0
  91. data/templates/partial_model_generic.mustache +305 -0
  92. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fadd5d27104e3e30483dbac36af8f9c63f7947e7194853482c61f8f70c286ad8
4
- data.tar.gz: 61a821542e19b75178296e2899bb95be571069b100a69c80cb7b4a080cf0babe
3
+ metadata.gz: 376e9bdd8f0bd3297a0f8e7d7e7d3924f6763773c791d86063bff5d675d20517
4
+ data.tar.gz: 5d1611601e740c6d8280f2f4057edbcd21791b523ac7064f996917b107b8c3e7
5
5
  SHA512:
6
- metadata.gz: 9d853c3cd5d914dedd98549edbe057b1d4cf5a914eab08939993c7c33943a9e2a9fb88fdc12c7e4a0a43fa56df0004e84dc5c3ece6f1d655f7237d4b2f75f005
7
- data.tar.gz: 4064544b24a0662c6c515e8e6834a3c52f58ab8fffc5f01de9784f745cba91dec622266e5880df39d98eeee53daad12d45ef6b6c118c7e379e26606ffc6e17e8
6
+ metadata.gz: 81c0c4ad36f870329f74407cb2c901d19a37f2236251e451879fbaaec8ea34cfc822dbdd22888ef0be50758b45aac381a87169c14499a71215460d397835098b
7
+ data.tar.gz: ab3f318ee83b37ba72ea6732d99c35b6a467b99127a12c5bc23d7a37c83274580100e139ca18f2239666548b4f25493cd5824a7d0596da0f379a25437d29d359
data/README.md CHANGED
@@ -8,7 +8,7 @@ This is the Ruby client for the YNAB API.
8
8
  Please read the [YNAB API documentation](https://api.ynab.com) for an
9
9
  overview of using the API and a complete list of available resources.
10
10
 
11
- This client is generated using the [Swagger Code Generator](https://github.com/swagger-api/swagger-codegen).
11
+ This client is generated using the [OpenAPI Generator](https://openapi-generator.tech/).
12
12
 
13
13
  ## Installation
14
14
 
@@ -260,10 +260,6 @@ module YNAB
260
260
  if @api_client.config.client_side_validation && budget_id.nil?
261
261
  fail ArgumentError, "Missing the required parameter 'budget_id' when calling TransactionsApi.get_transactions"
262
262
  end
263
- allowable_values = ["uncategorized", "unapproved"]
264
- if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
265
- fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
266
- end
267
263
  # resource path
268
264
  local_var_path = '/budgets/{budget_id}/transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s))
269
265
 
@@ -342,10 +338,6 @@ module YNAB
342
338
  if @api_client.config.client_side_validation && account_id.nil?
343
339
  fail ArgumentError, "Missing the required parameter 'account_id' when calling TransactionsApi.get_transactions_by_account"
344
340
  end
345
- allowable_values = ["uncategorized", "unapproved"]
346
- if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
347
- fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
348
- end
349
341
  # resource path
350
342
  local_var_path = '/budgets/{budget_id}/accounts/{account_id}/transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s))
351
343
 
@@ -424,10 +416,6 @@ module YNAB
424
416
  if @api_client.config.client_side_validation && category_id.nil?
425
417
  fail ArgumentError, "Missing the required parameter 'category_id' when calling TransactionsApi.get_transactions_by_category"
426
418
  end
427
- allowable_values = ["uncategorized", "unapproved"]
428
- if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
429
- fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
430
- end
431
419
  # resource path
432
420
  local_var_path = '/budgets/{budget_id}/categories/{category_id}/transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
433
421
 
@@ -506,10 +494,6 @@ module YNAB
506
494
  if @api_client.config.client_side_validation && payee_id.nil?
507
495
  fail ArgumentError, "Missing the required parameter 'payee_id' when calling TransactionsApi.get_transactions_by_payee"
508
496
  end
509
- allowable_values = ["uncategorized", "unapproved"]
510
- if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
511
- fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
512
- end
513
497
  # resource path
514
498
  local_var_path = '/budgets/{budget_id}/payees/{payee_id}/transactions'.sub('{' + 'budget_id' + '}', CGI.escape(budget_id.to_s)).sub('{' + 'payee_id' + '}', CGI.escape(payee_id.to_s))
515
499
 
@@ -248,42 +248,6 @@ module YNAB
248
248
  # @return Array for valid properties with the reasons
249
249
  def list_invalid_properties
250
250
  invalid_properties = Array.new
251
- if @id.nil?
252
- invalid_properties.push('invalid value for "id", id cannot be nil.')
253
- end
254
-
255
- if @name.nil?
256
- invalid_properties.push('invalid value for "name", name cannot be nil.')
257
- end
258
-
259
- if @type.nil?
260
- invalid_properties.push('invalid value for "type", type cannot be nil.')
261
- end
262
-
263
- if @on_budget.nil?
264
- invalid_properties.push('invalid value for "on_budget", on_budget cannot be nil.')
265
- end
266
-
267
- if @closed.nil?
268
- invalid_properties.push('invalid value for "closed", closed cannot be nil.')
269
- end
270
-
271
- if @balance.nil?
272
- invalid_properties.push('invalid value for "balance", balance cannot be nil.')
273
- end
274
-
275
- if @cleared_balance.nil?
276
- invalid_properties.push('invalid value for "cleared_balance", cleared_balance cannot be nil.')
277
- end
278
-
279
- if @uncleared_balance.nil?
280
- invalid_properties.push('invalid value for "uncleared_balance", uncleared_balance cannot be nil.')
281
- end
282
-
283
- if @deleted.nil?
284
- invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
285
- end
286
-
287
251
  invalid_properties
288
252
  end
289
253
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @account.nil?
70
- invalid_properties.push('invalid value for "account", account cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -77,14 +77,6 @@ module YNAB
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
79
  invalid_properties = Array.new
80
- if @accounts.nil?
81
- invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
82
- end
83
-
84
- if @server_knowledge.nil?
85
- invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
86
- end
87
-
88
80
  invalid_properties
89
81
  end
90
82
 
@@ -227,14 +227,6 @@ module YNAB
227
227
  # @return Array for valid properties with the reasons
228
228
  def list_invalid_properties
229
229
  invalid_properties = Array.new
230
- if @id.nil?
231
- invalid_properties.push('invalid value for "id", id cannot be nil.')
232
- end
233
-
234
- if @name.nil?
235
- invalid_properties.push('invalid value for "name", name cannot be nil.')
236
- end
237
-
238
230
  invalid_properties
239
231
  end
240
232
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -75,14 +75,6 @@ module YNAB
75
75
  # @return Array for valid properties with the reasons
76
76
  def list_invalid_properties
77
77
  invalid_properties = Array.new
78
- if @budget.nil?
79
- invalid_properties.push('invalid value for "budget", budget cannot be nil.')
80
- end
81
-
82
- if @server_knowledge.nil?
83
- invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
84
- end
85
-
86
78
  invalid_properties
87
79
  end
88
80
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @settings.nil?
70
- invalid_properties.push('invalid value for "settings", settings cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -130,14 +130,6 @@ module YNAB
130
130
  # @return Array for valid properties with the reasons
131
131
  def list_invalid_properties
132
132
  invalid_properties = Array.new
133
- if @id.nil?
134
- invalid_properties.push('invalid value for "id", id cannot be nil.')
135
- end
136
-
137
- if @name.nil?
138
- invalid_properties.push('invalid value for "name", name cannot be nil.')
139
- end
140
-
141
133
  invalid_properties
142
134
  end
143
135
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -76,10 +76,6 @@ module YNAB
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
- if @budgets.nil?
80
- invalid_properties.push('invalid value for "budgets", budgets cannot be nil.')
81
- end
82
-
83
79
  invalid_properties
84
80
  end
85
81
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @bulk.nil?
70
- invalid_properties.push('invalid value for "bulk", bulk cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -80,14 +80,6 @@ module YNAB
80
80
  # @return Array for valid properties with the reasons
81
81
  def list_invalid_properties
82
82
  invalid_properties = Array.new
83
- if @transaction_ids.nil?
84
- invalid_properties.push('invalid value for "transaction_ids", transaction_ids cannot be nil.')
85
- end
86
-
87
- if @duplicate_import_ids.nil?
88
- invalid_properties.push('invalid value for "duplicate_import_ids", duplicate_import_ids cannot be nil.')
89
- end
90
-
91
83
  invalid_properties
92
84
  end
93
85
 
@@ -68,10 +68,6 @@ module YNAB
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
- if @transactions.nil?
72
- invalid_properties.push('invalid value for "transactions", transactions cannot be nil.')
73
- end
74
-
75
71
  invalid_properties
76
72
  end
77
73
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -77,14 +77,6 @@ module YNAB
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
79
  invalid_properties = Array.new
80
- if @category_groups.nil?
81
- invalid_properties.push('invalid value for "category_groups", category_groups cannot be nil.')
82
- end
83
-
84
- if @server_knowledge.nil?
85
- invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
86
- end
87
-
88
80
  invalid_properties
89
81
  end
90
82
 
@@ -296,38 +296,6 @@ module YNAB
296
296
  # @return Array for valid properties with the reasons
297
297
  def list_invalid_properties
298
298
  invalid_properties = Array.new
299
- if @id.nil?
300
- invalid_properties.push('invalid value for "id", id cannot be nil.')
301
- end
302
-
303
- if @category_group_id.nil?
304
- invalid_properties.push('invalid value for "category_group_id", category_group_id cannot be nil.')
305
- end
306
-
307
- if @name.nil?
308
- invalid_properties.push('invalid value for "name", name cannot be nil.')
309
- end
310
-
311
- if @hidden.nil?
312
- invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
313
- end
314
-
315
- if @budgeted.nil?
316
- invalid_properties.push('invalid value for "budgeted", budgeted cannot be nil.')
317
- end
318
-
319
- if @activity.nil?
320
- invalid_properties.push('invalid value for "activity", activity cannot be nil.')
321
- end
322
-
323
- if @balance.nil?
324
- invalid_properties.push('invalid value for "balance", balance cannot be nil.')
325
- end
326
-
327
- if @deleted.nil?
328
- invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
329
- end
330
-
331
299
  invalid_properties
332
300
  end
333
301
 
@@ -350,10 +318,6 @@ module YNAB
350
318
  # Custom attribute writer method checking allowed values (enum).
351
319
  # @param [Object] goal_type Object to be assigned
352
320
  def goal_type=(goal_type)
353
- validator = EnumAttributeValidator.new('String', ["TB", "TBD", "MF", "NEED", "DEBT", "null"])
354
- unless validator.valid?(goal_type)
355
- fail ArgumentError, "invalid value for \"goal_type\", must be one of #{validator.allowable_values}."
356
- end
357
321
  @goal_type = goal_type
358
322
  end
359
323
 
@@ -92,22 +92,6 @@ module YNAB
92
92
  # @return Array for valid properties with the reasons
93
93
  def list_invalid_properties
94
94
  invalid_properties = Array.new
95
- if @id.nil?
96
- invalid_properties.push('invalid value for "id", id cannot be nil.')
97
- end
98
-
99
- if @name.nil?
100
- invalid_properties.push('invalid value for "name", name cannot be nil.')
101
- end
102
-
103
- if @hidden.nil?
104
- invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
105
- end
106
-
107
- if @deleted.nil?
108
- invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
109
- end
110
-
111
95
  invalid_properties
112
96
  end
113
97
 
@@ -111,26 +111,6 @@ module YNAB
111
111
  # @return Array for valid properties with the reasons
112
112
  def list_invalid_properties
113
113
  invalid_properties = Array.new
114
- if @id.nil?
115
- invalid_properties.push('invalid value for "id", id cannot be nil.')
116
- end
117
-
118
- if @name.nil?
119
- invalid_properties.push('invalid value for "name", name cannot be nil.')
120
- end
121
-
122
- if @hidden.nil?
123
- invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
124
- end
125
-
126
- if @deleted.nil?
127
- invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
128
- end
129
-
130
- if @categories.nil?
131
- invalid_properties.push('invalid value for "categories", categories cannot be nil.')
132
- end
133
-
134
114
  invalid_properties
135
115
  end
136
116
 
@@ -69,10 +69,6 @@ module YNAB
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
- if @categories.nil?
73
- invalid_properties.push('invalid value for "categories", categories cannot be nil.')
74
- end
75
-
76
72
  invalid_properties
77
73
  end
78
74
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @data.nil?
70
- invalid_properties.push('invalid value for "data", data cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @category.nil?
70
- invalid_properties.push('invalid value for "category", category cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -123,38 +123,6 @@ module YNAB
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if @iso_code.nil?
127
- invalid_properties.push('invalid value for "iso_code", iso_code cannot be nil.')
128
- end
129
-
130
- if @example_format.nil?
131
- invalid_properties.push('invalid value for "example_format", example_format cannot be nil.')
132
- end
133
-
134
- if @decimal_digits.nil?
135
- invalid_properties.push('invalid value for "decimal_digits", decimal_digits cannot be nil.')
136
- end
137
-
138
- if @decimal_separator.nil?
139
- invalid_properties.push('invalid value for "decimal_separator", decimal_separator cannot be nil.')
140
- end
141
-
142
- if @symbol_first.nil?
143
- invalid_properties.push('invalid value for "symbol_first", symbol_first cannot be nil.')
144
- end
145
-
146
- if @group_separator.nil?
147
- invalid_properties.push('invalid value for "group_separator", group_separator cannot be nil.')
148
- end
149
-
150
- if @currency_symbol.nil?
151
- invalid_properties.push('invalid value for "currency_symbol", currency_symbol cannot be nil.')
152
- end
153
-
154
- if @display_symbol.nil?
155
- invalid_properties.push('invalid value for "display_symbol", display_symbol cannot be nil.')
156
- end
157
-
158
126
  invalid_properties
159
127
  end
160
128
 
@@ -67,10 +67,6 @@ module YNAB
67
67
  # @return Array for valid properties with the reasons
68
68
  def list_invalid_properties
69
69
  invalid_properties = Array.new
70
- if @format.nil?
71
- invalid_properties.push('invalid value for "format", format cannot be nil.')
72
- end
73
-
74
70
  invalid_properties
75
71
  end
76
72
 
@@ -82,18 +82,6 @@ module YNAB
82
82
  # @return Array for valid properties with the reasons
83
83
  def list_invalid_properties
84
84
  invalid_properties = Array.new
85
- if @id.nil?
86
- invalid_properties.push('invalid value for "id", id cannot be nil.')
87
- end
88
-
89
- if @name.nil?
90
- invalid_properties.push('invalid value for "name", name cannot be nil.')
91
- end
92
-
93
- if @detail.nil?
94
- invalid_properties.push('invalid value for "detail", detail cannot be nil.')
95
- end
96
-
97
85
  invalid_properties
98
86
  end
99
87
 
@@ -66,10 +66,6 @@ module YNAB
66
66
  # @return Array for valid properties with the reasons
67
67
  def list_invalid_properties
68
68
  invalid_properties = Array.new
69
- if @error.nil?
70
- invalid_properties.push('invalid value for "error", error cannot be nil.')
71
- end
72
-
73
69
  invalid_properties
74
70
  end
75
71
 
@@ -301,42 +301,6 @@ module YNAB
301
301
  # @return Array for valid properties with the reasons
302
302
  def list_invalid_properties
303
303
  invalid_properties = Array.new
304
- if @id.nil?
305
- invalid_properties.push('invalid value for "id", id cannot be nil.')
306
- end
307
-
308
- if @date.nil?
309
- invalid_properties.push('invalid value for "date", date cannot be nil.')
310
- end
311
-
312
- if @amount.nil?
313
- invalid_properties.push('invalid value for "amount", amount cannot be nil.')
314
- end
315
-
316
- if @cleared.nil?
317
- invalid_properties.push('invalid value for "cleared", cleared cannot be nil.')
318
- end
319
-
320
- if @approved.nil?
321
- invalid_properties.push('invalid value for "approved", approved cannot be nil.')
322
- end
323
-
324
- if @account_id.nil?
325
- invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
326
- end
327
-
328
- if @deleted.nil?
329
- invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
330
- end
331
-
332
- if @type.nil?
333
- invalid_properties.push('invalid value for "type", type cannot be nil.')
334
- end
335
-
336
- if @account_name.nil?
337
- invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
338
- end
339
-
340
304
  invalid_properties
341
305
  end
342
306
 
@@ -366,40 +330,24 @@ module YNAB
366
330
  # Custom attribute writer method checking allowed values (enum).
367
331
  # @param [Object] cleared Object to be assigned
368
332
  def cleared=(cleared)
369
- validator = EnumAttributeValidator.new('String', ["cleared", "uncleared", "reconciled"])
370
- unless validator.valid?(cleared)
371
- fail ArgumentError, "invalid value for \"cleared\", must be one of #{validator.allowable_values}."
372
- end
373
333
  @cleared = cleared
374
334
  end
375
335
 
376
336
  # Custom attribute writer method checking allowed values (enum).
377
337
  # @param [Object] flag_color Object to be assigned
378
338
  def flag_color=(flag_color)
379
- validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
380
- unless validator.valid?(flag_color)
381
- fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
382
- end
383
339
  @flag_color = flag_color
384
340
  end
385
341
 
386
342
  # Custom attribute writer method checking allowed values (enum).
387
343
  # @param [Object] debt_transaction_type Object to be assigned
388
344
  def debt_transaction_type=(debt_transaction_type)
389
- validator = EnumAttributeValidator.new('String', ["payment", "refund", "fee", "interest", "escrow", "balancedAdjustment", "credit", "charge", "null"])
390
- unless validator.valid?(debt_transaction_type)
391
- fail ArgumentError, "invalid value for \"debt_transaction_type\", must be one of #{validator.allowable_values}."
392
- end
393
345
  @debt_transaction_type = debt_transaction_type
394
346
  end
395
347
 
396
348
  # Custom attribute writer method checking allowed values (enum).
397
349
  # @param [Object] type Object to be assigned
398
350
  def type=(type)
399
- validator = EnumAttributeValidator.new('String', ["transaction", "subtransaction"])
400
- unless validator.valid?(type)
401
- fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
402
- end
403
351
  @type = type
404
352
  end
405
353