ynab 2.0.0.rc1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/ynab/api/transactions_api.rb +0 -16
- data/lib/ynab/models/account.rb +0 -36
- data/lib/ynab/models/account_response.rb +0 -4
- data/lib/ynab/models/account_response_data.rb +0 -4
- data/lib/ynab/models/accounts_response.rb +0 -4
- data/lib/ynab/models/accounts_response_data.rb +0 -8
- data/lib/ynab/models/budget_detail.rb +0 -8
- data/lib/ynab/models/budget_detail_response.rb +0 -4
- data/lib/ynab/models/budget_detail_response_data.rb +0 -8
- data/lib/ynab/models/budget_settings_response.rb +0 -4
- data/lib/ynab/models/budget_settings_response_data.rb +0 -4
- data/lib/ynab/models/budget_summary.rb +0 -8
- data/lib/ynab/models/budget_summary_response.rb +0 -4
- data/lib/ynab/models/budget_summary_response_data.rb +0 -4
- data/lib/ynab/models/bulk_response.rb +0 -4
- data/lib/ynab/models/bulk_response_data.rb +0 -4
- data/lib/ynab/models/bulk_response_data_bulk.rb +0 -8
- data/lib/ynab/models/bulk_transactions.rb +0 -4
- data/lib/ynab/models/categories_response.rb +0 -4
- data/lib/ynab/models/categories_response_data.rb +0 -8
- data/lib/ynab/models/category.rb +0 -36
- data/lib/ynab/models/category_group.rb +0 -16
- data/lib/ynab/models/category_group_with_categories.rb +0 -20
- data/lib/ynab/models/category_group_with_categories_all_of.rb +0 -4
- data/lib/ynab/models/category_response.rb +0 -4
- data/lib/ynab/models/category_response_data.rb +0 -4
- data/lib/ynab/models/currency_format.rb +0 -32
- data/lib/ynab/models/date_format.rb +0 -4
- data/lib/ynab/models/error_detail.rb +0 -12
- data/lib/ynab/models/error_response.rb +0 -4
- data/lib/ynab/models/hybrid_transaction.rb +0 -52
- data/lib/ynab/models/hybrid_transaction_all_of.rb +0 -12
- data/lib/ynab/models/hybrid_transactions_response.rb +0 -4
- data/lib/ynab/models/hybrid_transactions_response_data.rb +0 -4
- data/lib/ynab/models/month_detail.rb +0 -28
- data/lib/ynab/models/month_detail_all_of.rb +0 -4
- data/lib/ynab/models/month_detail_response.rb +0 -4
- data/lib/ynab/models/month_detail_response_data.rb +0 -4
- data/lib/ynab/models/month_summaries_response.rb +0 -4
- data/lib/ynab/models/month_summaries_response_data.rb +0 -8
- data/lib/ynab/models/month_summary.rb +0 -24
- data/lib/ynab/models/patch_month_category_wrapper.rb +0 -4
- data/lib/ynab/models/patch_transactions_wrapper.rb +0 -4
- data/lib/ynab/models/payee.rb +0 -12
- data/lib/ynab/models/payee_location.rb +0 -20
- data/lib/ynab/models/payee_location_response.rb +0 -4
- data/lib/ynab/models/payee_location_response_data.rb +0 -4
- data/lib/ynab/models/payee_locations_response.rb +0 -4
- data/lib/ynab/models/payee_locations_response_data.rb +0 -4
- data/lib/ynab/models/payee_response.rb +0 -4
- data/lib/ynab/models/payee_response_data.rb +0 -4
- data/lib/ynab/models/payees_response.rb +0 -4
- data/lib/ynab/models/payees_response_data.rb +0 -8
- data/lib/ynab/models/post_account_wrapper.rb +0 -4
- data/lib/ynab/models/put_transaction_wrapper.rb +0 -4
- data/lib/ynab/models/save_account.rb +0 -12
- data/lib/ynab/models/save_category_response.rb +0 -4
- data/lib/ynab/models/save_category_response_data.rb +0 -8
- data/lib/ynab/models/save_month_category.rb +0 -4
- data/lib/ynab/models/save_sub_transaction.rb +0 -20
- data/lib/ynab/models/save_transaction.rb +0 -32
- data/lib/ynab/models/save_transaction_with_id.rb +0 -32
- data/lib/ynab/models/save_transaction_with_optional_fields.rb +0 -32
- data/lib/ynab/models/save_transactions_response.rb +0 -4
- data/lib/ynab/models/save_transactions_response_data.rb +0 -8
- data/lib/ynab/models/scheduled_sub_transaction.rb +0 -16
- data/lib/ynab/models/scheduled_transaction_detail.rb +0 -44
- data/lib/ynab/models/scheduled_transaction_detail_all_of.rb +0 -8
- data/lib/ynab/models/scheduled_transaction_response.rb +0 -4
- data/lib/ynab/models/scheduled_transaction_response_data.rb +0 -4
- data/lib/ynab/models/scheduled_transaction_summary.rb +0 -36
- data/lib/ynab/models/scheduled_transactions_response.rb +0 -4
- data/lib/ynab/models/scheduled_transactions_response_data.rb +0 -8
- data/lib/ynab/models/sub_transaction.rb +0 -16
- data/lib/ynab/models/transaction_detail.rb +0 -48
- data/lib/ynab/models/transaction_detail_all_of.rb +0 -8
- data/lib/ynab/models/transaction_response.rb +0 -4
- data/lib/ynab/models/transaction_response_data.rb +0 -4
- data/lib/ynab/models/transaction_summary.rb +0 -40
- data/lib/ynab/models/transactions_import_response.rb +0 -4
- data/lib/ynab/models/transactions_import_response_data.rb +0 -4
- data/lib/ynab/models/transactions_response.rb +0 -4
- data/lib/ynab/models/transactions_response_data.rb +0 -8
- data/lib/ynab/models/user.rb +0 -4
- data/lib/ynab/models/user_response.rb +0 -4
- data/lib/ynab/models/user_response_data.rb +0 -4
- data/lib/ynab/version.rb +1 -1
- data/templates/api.mustache +213 -0
- data/templates/partial_model_generic.mustache +305 -0
- metadata +6 -4
@@ -209,18 +209,6 @@ module YNAB
|
|
209
209
|
# @return Array for valid properties with the reasons
|
210
210
|
def list_invalid_properties
|
211
211
|
invalid_properties = Array.new
|
212
|
-
if !@payee_name.nil? && @payee_name.to_s.length > 50
|
213
|
-
invalid_properties.push('invalid value for "payee_name", the character length must be smaller than or equal to 50.')
|
214
|
-
end
|
215
|
-
|
216
|
-
if !@memo.nil? && @memo.to_s.length > 200
|
217
|
-
invalid_properties.push('invalid value for "memo", the character length must be smaller than or equal to 200.')
|
218
|
-
end
|
219
|
-
|
220
|
-
if !@import_id.nil? && @import_id.to_s.length > 36
|
221
|
-
invalid_properties.push('invalid value for "import_id", the character length must be smaller than or equal to 36.')
|
222
|
-
end
|
223
|
-
|
224
212
|
invalid_properties
|
225
213
|
end
|
226
214
|
|
@@ -240,50 +228,30 @@ module YNAB
|
|
240
228
|
# Custom attribute writer method with validation
|
241
229
|
# @param [Object] payee_name Value to be assigned
|
242
230
|
def payee_name=(payee_name)
|
243
|
-
if !payee_name.nil? && payee_name.to_s.length > 50
|
244
|
-
fail ArgumentError, 'invalid value for "payee_name", the character length must be smaller than or equal to 50.'
|
245
|
-
end
|
246
|
-
|
247
231
|
@payee_name = payee_name
|
248
232
|
end
|
249
233
|
|
250
234
|
# Custom attribute writer method with validation
|
251
235
|
# @param [Object] memo Value to be assigned
|
252
236
|
def memo=(memo)
|
253
|
-
if !memo.nil? && memo.to_s.length > 200
|
254
|
-
fail ArgumentError, 'invalid value for "memo", the character length must be smaller than or equal to 200.'
|
255
|
-
end
|
256
|
-
|
257
237
|
@memo = memo
|
258
238
|
end
|
259
239
|
|
260
240
|
# Custom attribute writer method checking allowed values (enum).
|
261
241
|
# @param [Object] cleared Object to be assigned
|
262
242
|
def cleared=(cleared)
|
263
|
-
validator = EnumAttributeValidator.new('String', ["cleared", "uncleared", "reconciled"])
|
264
|
-
unless validator.valid?(cleared)
|
265
|
-
fail ArgumentError, "invalid value for \"cleared\", must be one of #{validator.allowable_values}."
|
266
|
-
end
|
267
243
|
@cleared = cleared
|
268
244
|
end
|
269
245
|
|
270
246
|
# Custom attribute writer method checking allowed values (enum).
|
271
247
|
# @param [Object] flag_color Object to be assigned
|
272
248
|
def flag_color=(flag_color)
|
273
|
-
validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
|
274
|
-
unless validator.valid?(flag_color)
|
275
|
-
fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
|
276
|
-
end
|
277
249
|
@flag_color = flag_color
|
278
250
|
end
|
279
251
|
|
280
252
|
# Custom attribute writer method with validation
|
281
253
|
# @param [Object] import_id Value to be assigned
|
282
254
|
def import_id=(import_id)
|
283
|
-
if !import_id.nil? && import_id.to_s.length > 36
|
284
|
-
fail ArgumentError, 'invalid value for "import_id", the character length must be smaller than or equal to 36.'
|
285
|
-
end
|
286
|
-
|
287
255
|
@import_id = import_id
|
288
256
|
end
|
289
257
|
|
@@ -193,18 +193,6 @@ module YNAB
|
|
193
193
|
# @return Array for valid properties with the reasons
|
194
194
|
def list_invalid_properties
|
195
195
|
invalid_properties = Array.new
|
196
|
-
if !@payee_name.nil? && @payee_name.to_s.length > 50
|
197
|
-
invalid_properties.push('invalid value for "payee_name", the character length must be smaller than or equal to 50.')
|
198
|
-
end
|
199
|
-
|
200
|
-
if !@memo.nil? && @memo.to_s.length > 200
|
201
|
-
invalid_properties.push('invalid value for "memo", the character length must be smaller than or equal to 200.')
|
202
|
-
end
|
203
|
-
|
204
|
-
if !@import_id.nil? && @import_id.to_s.length > 36
|
205
|
-
invalid_properties.push('invalid value for "import_id", the character length must be smaller than or equal to 36.')
|
206
|
-
end
|
207
|
-
|
208
196
|
invalid_properties
|
209
197
|
end
|
210
198
|
|
@@ -224,50 +212,30 @@ module YNAB
|
|
224
212
|
# Custom attribute writer method with validation
|
225
213
|
# @param [Object] payee_name Value to be assigned
|
226
214
|
def payee_name=(payee_name)
|
227
|
-
if !payee_name.nil? && payee_name.to_s.length > 50
|
228
|
-
fail ArgumentError, 'invalid value for "payee_name", the character length must be smaller than or equal to 50.'
|
229
|
-
end
|
230
|
-
|
231
215
|
@payee_name = payee_name
|
232
216
|
end
|
233
217
|
|
234
218
|
# Custom attribute writer method with validation
|
235
219
|
# @param [Object] memo Value to be assigned
|
236
220
|
def memo=(memo)
|
237
|
-
if !memo.nil? && memo.to_s.length > 200
|
238
|
-
fail ArgumentError, 'invalid value for "memo", the character length must be smaller than or equal to 200.'
|
239
|
-
end
|
240
|
-
|
241
221
|
@memo = memo
|
242
222
|
end
|
243
223
|
|
244
224
|
# Custom attribute writer method checking allowed values (enum).
|
245
225
|
# @param [Object] cleared Object to be assigned
|
246
226
|
def cleared=(cleared)
|
247
|
-
validator = EnumAttributeValidator.new('String', ["cleared", "uncleared", "reconciled"])
|
248
|
-
unless validator.valid?(cleared)
|
249
|
-
fail ArgumentError, "invalid value for \"cleared\", must be one of #{validator.allowable_values}."
|
250
|
-
end
|
251
227
|
@cleared = cleared
|
252
228
|
end
|
253
229
|
|
254
230
|
# Custom attribute writer method checking allowed values (enum).
|
255
231
|
# @param [Object] flag_color Object to be assigned
|
256
232
|
def flag_color=(flag_color)
|
257
|
-
validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
|
258
|
-
unless validator.valid?(flag_color)
|
259
|
-
fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
|
260
|
-
end
|
261
233
|
@flag_color = flag_color
|
262
234
|
end
|
263
235
|
|
264
236
|
# Custom attribute writer method with validation
|
265
237
|
# @param [Object] import_id Value to be assigned
|
266
238
|
def import_id=(import_id)
|
267
|
-
if !import_id.nil? && import_id.to_s.length > 36
|
268
|
-
fail ArgumentError, 'invalid value for "import_id", the character length must be smaller than or equal to 36.'
|
269
|
-
end
|
270
|
-
|
271
239
|
@import_id = import_id
|
272
240
|
end
|
273
241
|
|
@@ -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
|
|
@@ -108,14 +108,6 @@ module YNAB
|
|
108
108
|
# @return Array for valid properties with the reasons
|
109
109
|
def list_invalid_properties
|
110
110
|
invalid_properties = Array.new
|
111
|
-
if @transaction_ids.nil?
|
112
|
-
invalid_properties.push('invalid value for "transaction_ids", transaction_ids cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
|
-
if @server_knowledge.nil?
|
116
|
-
invalid_properties.push('invalid value for "server_knowledge", server_knowledge cannot be nil.')
|
117
|
-
end
|
118
|
-
|
119
111
|
invalid_properties
|
120
112
|
end
|
121
113
|
|
@@ -129,22 +129,6 @@ module YNAB
|
|
129
129
|
# @return Array for valid properties with the reasons
|
130
130
|
def list_invalid_properties
|
131
131
|
invalid_properties = Array.new
|
132
|
-
if @id.nil?
|
133
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @scheduled_transaction_id.nil?
|
137
|
-
invalid_properties.push('invalid value for "scheduled_transaction_id", scheduled_transaction_id cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
|
-
if @amount.nil?
|
141
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
142
|
-
end
|
143
|
-
|
144
|
-
if @deleted.nil?
|
145
|
-
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
146
|
-
end
|
147
|
-
|
148
132
|
invalid_properties
|
149
133
|
end
|
150
134
|
|
@@ -233,42 +233,6 @@ module YNAB
|
|
233
233
|
# @return Array for valid properties with the reasons
|
234
234
|
def list_invalid_properties
|
235
235
|
invalid_properties = Array.new
|
236
|
-
if @id.nil?
|
237
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
238
|
-
end
|
239
|
-
|
240
|
-
if @date_first.nil?
|
241
|
-
invalid_properties.push('invalid value for "date_first", date_first cannot be nil.')
|
242
|
-
end
|
243
|
-
|
244
|
-
if @date_next.nil?
|
245
|
-
invalid_properties.push('invalid value for "date_next", date_next cannot be nil.')
|
246
|
-
end
|
247
|
-
|
248
|
-
if @frequency.nil?
|
249
|
-
invalid_properties.push('invalid value for "frequency", frequency cannot be nil.')
|
250
|
-
end
|
251
|
-
|
252
|
-
if @amount.nil?
|
253
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
254
|
-
end
|
255
|
-
|
256
|
-
if @account_id.nil?
|
257
|
-
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
258
|
-
end
|
259
|
-
|
260
|
-
if @deleted.nil?
|
261
|
-
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
262
|
-
end
|
263
|
-
|
264
|
-
if @account_name.nil?
|
265
|
-
invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
|
266
|
-
end
|
267
|
-
|
268
|
-
if @subtransactions.nil?
|
269
|
-
invalid_properties.push('invalid value for "subtransactions", subtransactions cannot be nil.')
|
270
|
-
end
|
271
|
-
|
272
236
|
invalid_properties
|
273
237
|
end
|
274
238
|
|
@@ -294,20 +258,12 @@ module YNAB
|
|
294
258
|
# Custom attribute writer method checking allowed values (enum).
|
295
259
|
# @param [Object] frequency Object to be assigned
|
296
260
|
def frequency=(frequency)
|
297
|
-
validator = EnumAttributeValidator.new('String', ["never", "daily", "weekly", "everyOtherWeek", "twiceAMonth", "every4Weeks", "monthly", "everyOtherMonth", "every3Months", "every4Months", "twiceAYear", "yearly", "everyOtherYear"])
|
298
|
-
unless validator.valid?(frequency)
|
299
|
-
fail ArgumentError, "invalid value for \"frequency\", must be one of #{validator.allowable_values}."
|
300
|
-
end
|
301
261
|
@frequency = frequency
|
302
262
|
end
|
303
263
|
|
304
264
|
# Custom attribute writer method checking allowed values (enum).
|
305
265
|
# @param [Object] flag_color Object to be assigned
|
306
266
|
def flag_color=(flag_color)
|
307
|
-
validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
|
308
|
-
unless validator.valid?(flag_color)
|
309
|
-
fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
|
310
|
-
end
|
311
267
|
@flag_color = flag_color
|
312
268
|
end
|
313
269
|
|
@@ -96,14 +96,6 @@ module YNAB
|
|
96
96
|
# @return Array for valid properties with the reasons
|
97
97
|
def list_invalid_properties
|
98
98
|
invalid_properties = Array.new
|
99
|
-
if @account_name.nil?
|
100
|
-
invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
|
-
if @subtransactions.nil?
|
104
|
-
invalid_properties.push('invalid value for "subtransactions", subtransactions cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
99
|
invalid_properties
|
108
100
|
end
|
109
101
|
|
@@ -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 @scheduled_transaction.nil?
|
70
|
-
invalid_properties.push('invalid value for "scheduled_transaction", scheduled_transaction cannot be nil.')
|
71
|
-
end
|
72
|
-
|
73
69
|
invalid_properties
|
74
70
|
end
|
75
71
|
|
@@ -187,34 +187,6 @@ module YNAB
|
|
187
187
|
# @return Array for valid properties with the reasons
|
188
188
|
def list_invalid_properties
|
189
189
|
invalid_properties = Array.new
|
190
|
-
if @id.nil?
|
191
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
192
|
-
end
|
193
|
-
|
194
|
-
if @date_first.nil?
|
195
|
-
invalid_properties.push('invalid value for "date_first", date_first cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if @date_next.nil?
|
199
|
-
invalid_properties.push('invalid value for "date_next", date_next cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
|
-
if @frequency.nil?
|
203
|
-
invalid_properties.push('invalid value for "frequency", frequency cannot be nil.')
|
204
|
-
end
|
205
|
-
|
206
|
-
if @amount.nil?
|
207
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
208
|
-
end
|
209
|
-
|
210
|
-
if @account_id.nil?
|
211
|
-
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
212
|
-
end
|
213
|
-
|
214
|
-
if @deleted.nil?
|
215
|
-
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
216
|
-
end
|
217
|
-
|
218
190
|
invalid_properties
|
219
191
|
end
|
220
192
|
|
@@ -238,20 +210,12 @@ module YNAB
|
|
238
210
|
# Custom attribute writer method checking allowed values (enum).
|
239
211
|
# @param [Object] frequency Object to be assigned
|
240
212
|
def frequency=(frequency)
|
241
|
-
validator = EnumAttributeValidator.new('String', ["never", "daily", "weekly", "everyOtherWeek", "twiceAMonth", "every4Weeks", "monthly", "everyOtherMonth", "every3Months", "every4Months", "twiceAYear", "yearly", "everyOtherYear"])
|
242
|
-
unless validator.valid?(frequency)
|
243
|
-
fail ArgumentError, "invalid value for \"frequency\", must be one of #{validator.allowable_values}."
|
244
|
-
end
|
245
213
|
@frequency = frequency
|
246
214
|
end
|
247
215
|
|
248
216
|
# Custom attribute writer method checking allowed values (enum).
|
249
217
|
# @param [Object] flag_color Object to be assigned
|
250
218
|
def flag_color=(flag_color)
|
251
|
-
validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
|
252
|
-
unless validator.valid?(flag_color)
|
253
|
-
fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
|
254
|
-
end
|
255
219
|
@flag_color = flag_color
|
256
220
|
end
|
257
221
|
|
@@ -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 @scheduled_transactions.nil?
|
81
|
-
invalid_properties.push('invalid value for "scheduled_transactions", scheduled_transactions 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
|
|
@@ -157,22 +157,6 @@ module YNAB
|
|
157
157
|
# @return Array for valid properties with the reasons
|
158
158
|
def list_invalid_properties
|
159
159
|
invalid_properties = Array.new
|
160
|
-
if @id.nil?
|
161
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
162
|
-
end
|
163
|
-
|
164
|
-
if @transaction_id.nil?
|
165
|
-
invalid_properties.push('invalid value for "transaction_id", transaction_id cannot be nil.')
|
166
|
-
end
|
167
|
-
|
168
|
-
if @amount.nil?
|
169
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
|
-
if @deleted.nil?
|
173
|
-
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
174
|
-
end
|
175
|
-
|
176
160
|
invalid_properties
|
177
161
|
end
|
178
162
|
|
@@ -294,42 +294,6 @@ module YNAB
|
|
294
294
|
# @return Array for valid properties with the reasons
|
295
295
|
def list_invalid_properties
|
296
296
|
invalid_properties = Array.new
|
297
|
-
if @id.nil?
|
298
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
299
|
-
end
|
300
|
-
|
301
|
-
if @date.nil?
|
302
|
-
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
303
|
-
end
|
304
|
-
|
305
|
-
if @amount.nil?
|
306
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
307
|
-
end
|
308
|
-
|
309
|
-
if @cleared.nil?
|
310
|
-
invalid_properties.push('invalid value for "cleared", cleared cannot be nil.')
|
311
|
-
end
|
312
|
-
|
313
|
-
if @approved.nil?
|
314
|
-
invalid_properties.push('invalid value for "approved", approved cannot be nil.')
|
315
|
-
end
|
316
|
-
|
317
|
-
if @account_id.nil?
|
318
|
-
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
319
|
-
end
|
320
|
-
|
321
|
-
if @deleted.nil?
|
322
|
-
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
323
|
-
end
|
324
|
-
|
325
|
-
if @account_name.nil?
|
326
|
-
invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
|
327
|
-
end
|
328
|
-
|
329
|
-
if @subtransactions.nil?
|
330
|
-
invalid_properties.push('invalid value for "subtransactions", subtransactions cannot be nil.')
|
331
|
-
end
|
332
|
-
|
333
297
|
invalid_properties
|
334
298
|
end
|
335
299
|
|
@@ -357,30 +321,18 @@ module YNAB
|
|
357
321
|
# Custom attribute writer method checking allowed values (enum).
|
358
322
|
# @param [Object] cleared Object to be assigned
|
359
323
|
def cleared=(cleared)
|
360
|
-
validator = EnumAttributeValidator.new('String', ["cleared", "uncleared", "reconciled"])
|
361
|
-
unless validator.valid?(cleared)
|
362
|
-
fail ArgumentError, "invalid value for \"cleared\", must be one of #{validator.allowable_values}."
|
363
|
-
end
|
364
324
|
@cleared = cleared
|
365
325
|
end
|
366
326
|
|
367
327
|
# Custom attribute writer method checking allowed values (enum).
|
368
328
|
# @param [Object] flag_color Object to be assigned
|
369
329
|
def flag_color=(flag_color)
|
370
|
-
validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
|
371
|
-
unless validator.valid?(flag_color)
|
372
|
-
fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
|
373
|
-
end
|
374
330
|
@flag_color = flag_color
|
375
331
|
end
|
376
332
|
|
377
333
|
# Custom attribute writer method checking allowed values (enum).
|
378
334
|
# @param [Object] debt_transaction_type Object to be assigned
|
379
335
|
def debt_transaction_type=(debt_transaction_type)
|
380
|
-
validator = EnumAttributeValidator.new('String', ["payment", "refund", "fee", "interest", "escrow", "balancedAdjustment", "credit", "charge", "null"])
|
381
|
-
unless validator.valid?(debt_transaction_type)
|
382
|
-
fail ArgumentError, "invalid value for \"debt_transaction_type\", must be one of #{validator.allowable_values}."
|
383
|
-
end
|
384
336
|
@debt_transaction_type = debt_transaction_type
|
385
337
|
end
|
386
338
|
|
@@ -96,14 +96,6 @@ module YNAB
|
|
96
96
|
# @return Array for valid properties with the reasons
|
97
97
|
def list_invalid_properties
|
98
98
|
invalid_properties = Array.new
|
99
|
-
if @account_name.nil?
|
100
|
-
invalid_properties.push('invalid value for "account_name", account_name cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
|
-
if @subtransactions.nil?
|
104
|
-
invalid_properties.push('invalid value for "subtransactions", subtransactions cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
99
|
invalid_properties
|
108
100
|
end
|
109
101
|
|
@@ -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 @transaction.nil?
|
70
|
-
invalid_properties.push('invalid value for "transaction", transaction cannot be nil.')
|
71
|
-
end
|
72
|
-
|
73
69
|
invalid_properties
|
74
70
|
end
|
75
71
|
|
@@ -248,34 +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 @date.nil?
|
256
|
-
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
257
|
-
end
|
258
|
-
|
259
|
-
if @amount.nil?
|
260
|
-
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
261
|
-
end
|
262
|
-
|
263
|
-
if @cleared.nil?
|
264
|
-
invalid_properties.push('invalid value for "cleared", cleared cannot be nil.')
|
265
|
-
end
|
266
|
-
|
267
|
-
if @approved.nil?
|
268
|
-
invalid_properties.push('invalid value for "approved", approved cannot be nil.')
|
269
|
-
end
|
270
|
-
|
271
|
-
if @account_id.nil?
|
272
|
-
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
273
|
-
end
|
274
|
-
|
275
|
-
if @deleted.nil?
|
276
|
-
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
277
|
-
end
|
278
|
-
|
279
251
|
invalid_properties
|
280
252
|
end
|
281
253
|
|
@@ -301,30 +273,18 @@ module YNAB
|
|
301
273
|
# Custom attribute writer method checking allowed values (enum).
|
302
274
|
# @param [Object] cleared Object to be assigned
|
303
275
|
def cleared=(cleared)
|
304
|
-
validator = EnumAttributeValidator.new('String', ["cleared", "uncleared", "reconciled"])
|
305
|
-
unless validator.valid?(cleared)
|
306
|
-
fail ArgumentError, "invalid value for \"cleared\", must be one of #{validator.allowable_values}."
|
307
|
-
end
|
308
276
|
@cleared = cleared
|
309
277
|
end
|
310
278
|
|
311
279
|
# Custom attribute writer method checking allowed values (enum).
|
312
280
|
# @param [Object] flag_color Object to be assigned
|
313
281
|
def flag_color=(flag_color)
|
314
|
-
validator = EnumAttributeValidator.new('String', ["red", "orange", "yellow", "green", "blue", "purple", "null"])
|
315
|
-
unless validator.valid?(flag_color)
|
316
|
-
fail ArgumentError, "invalid value for \"flag_color\", must be one of #{validator.allowable_values}."
|
317
|
-
end
|
318
282
|
@flag_color = flag_color
|
319
283
|
end
|
320
284
|
|
321
285
|
# Custom attribute writer method checking allowed values (enum).
|
322
286
|
# @param [Object] debt_transaction_type Object to be assigned
|
323
287
|
def debt_transaction_type=(debt_transaction_type)
|
324
|
-
validator = EnumAttributeValidator.new('String', ["payment", "refund", "fee", "interest", "escrow", "balancedAdjustment", "credit", "charge", "null"])
|
325
|
-
unless validator.valid?(debt_transaction_type)
|
326
|
-
fail ArgumentError, "invalid value for \"debt_transaction_type\", must be one of #{validator.allowable_values}."
|
327
|
-
end
|
328
288
|
@debt_transaction_type = debt_transaction_type
|
329
289
|
end
|
330
290
|
|
@@ -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
|
|
@@ -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 @transaction_ids.nil?
|
73
|
-
invalid_properties.push('invalid value for "transaction_ids", transaction_ids 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
|
|
@@ -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 @transactions.nil?
|
81
|
-
invalid_properties.push('invalid value for "transactions", transactions 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
|
|
data/lib/ynab/models/user.rb
CHANGED
@@ -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 @id.nil?
|
70
|
-
invalid_properties.push('invalid value for "id", id 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
|
|
@@ -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 @user.nil?
|
70
|
-
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
71
|
-
end
|
72
|
-
|
73
69
|
invalid_properties
|
74
70
|
end
|
75
71
|
|