ynab 1.28.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3a257b9c73bad83d7d3e5f80f77b66006a4737a40470f7faf90615afd0ee066
4
- data.tar.gz: 8dcd9c4112ad2f92b52e73c68438b59cd506061ea9cd32cac6c0914f13dbef47
3
+ metadata.gz: 306574eacfc6eb25c6c585e4a58721c97178f821033c723c302726438b80e687
4
+ data.tar.gz: 733bd356cb7937e5d0431627c9a001d7b6778a6cd2d3cdde5e6d7f77445440a8
5
5
  SHA512:
6
- metadata.gz: 15698c59209d472fc7ee645e224b9e4cdba396a248829c42a9696adee131b4eac503e1cd4c21afb26ea598667fba0f5bacaa51cd74c597ec71fe31f4e613dfde
7
- data.tar.gz: c02b016bb5c5aa08b63ede9af444c93e89e8230c63e4b7aaa51e22db6c64ef055cf0fc3fe3b554d0e9851a20fdaaed4502095c22769f5b6f889a7c6cb4b94d18
6
+ metadata.gz: '0490e176ddfe56696c600dd9ce3d76106a77500784f8e5098c5c2e03a302ca78eb14379a35a8708116344c7962749fd5a15a2947b639b312690817a84fb67090'
7
+ data.tar.gz: 30fdc6295db42b1c26a8da02ca1d3dade17d594cd2a343a179f6db866e6a70c3f9a2309afd3cdd6060ca8a1ec04329cc90172f815c5c6419799564e0d7a4dcfa
@@ -284,14 +284,6 @@ module YNAB
284
284
  invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
285
285
  end
286
286
 
287
- if !@import_payee_name.nil? && @import_payee_name.to_s.length > 200
288
- invalid_properties.push('invalid value for "import_payee_name", the character length must be smaller than or equal to 200.')
289
- end
290
-
291
- if !@import_payee_name_original.nil? && @import_payee_name_original.to_s.length > 200
292
- invalid_properties.push('invalid value for "import_payee_name_original", the character length must be smaller than or equal to 200.')
293
- end
294
-
295
287
  if @deleted.nil?
296
288
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
297
289
  end
@@ -320,8 +312,6 @@ module YNAB
320
312
  flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
321
313
  return false unless flag_color_validator.valid?(@flag_color)
322
314
  return false if @account_id.nil?
323
- return false if !@import_payee_name.nil? && @import_payee_name.to_s.length > 200
324
- return false if !@import_payee_name_original.nil? && @import_payee_name_original.to_s.length > 200
325
315
  debt_transaction_type_validator = EnumAttributeValidator.new('String', ['payment', 'refund', 'fee', 'interest', 'escrow', 'balancedAdjustment', 'credit', 'charge'])
326
316
  return false unless debt_transaction_type_validator.valid?(@debt_transaction_type)
327
317
  return false if @deleted.nil?
@@ -344,26 +334,6 @@ module YNAB
344
334
  @flag_color = flag_color
345
335
  end
346
336
 
347
- # Custom attribute writer method with validation
348
- # @param [Object] import_payee_name Value to be assigned
349
- def import_payee_name=(import_payee_name)
350
- if !import_payee_name.nil? && import_payee_name.to_s.length > 200
351
- fail ArgumentError, 'invalid value for "import_payee_name", the character length must be smaller than or equal to 200.'
352
- end
353
-
354
- @import_payee_name = import_payee_name
355
- end
356
-
357
- # Custom attribute writer method with validation
358
- # @param [Object] import_payee_name_original Value to be assigned
359
- def import_payee_name_original=(import_payee_name_original)
360
- if !import_payee_name_original.nil? && import_payee_name_original.to_s.length > 200
361
- fail ArgumentError, 'invalid value for "import_payee_name_original", the character length must be smaller than or equal to 200.'
362
- end
363
-
364
- @import_payee_name_original = import_payee_name_original
365
- end
366
-
367
337
  # Custom attribute writer method checking allowed values (enum).
368
338
  # @param [Object] debt_transaction_type Object to be assigned
369
339
  def debt_transaction_type=(debt_transaction_type)
@@ -277,14 +277,6 @@ module YNAB
277
277
  invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
278
278
  end
279
279
 
280
- if !@import_payee_name.nil? && @import_payee_name.to_s.length > 200
281
- invalid_properties.push('invalid value for "import_payee_name", the character length must be smaller than or equal to 200.')
282
- end
283
-
284
- if !@import_payee_name_original.nil? && @import_payee_name_original.to_s.length > 200
285
- invalid_properties.push('invalid value for "import_payee_name_original", the character length must be smaller than or equal to 200.')
286
- end
287
-
288
280
  if @deleted.nil?
289
281
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
290
282
  end
@@ -313,8 +305,6 @@ module YNAB
313
305
  flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
314
306
  return false unless flag_color_validator.valid?(@flag_color)
315
307
  return false if @account_id.nil?
316
- return false if !@import_payee_name.nil? && @import_payee_name.to_s.length > 200
317
- return false if !@import_payee_name_original.nil? && @import_payee_name_original.to_s.length > 200
318
308
  debt_transaction_type_validator = EnumAttributeValidator.new('String', ['payment', 'refund', 'fee', 'interest', 'escrow', 'balancedAdjustment', 'credit', 'charge'])
319
309
  return false unless debt_transaction_type_validator.valid?(@debt_transaction_type)
320
310
  return false if @deleted.nil?
@@ -335,26 +325,6 @@ module YNAB
335
325
  @flag_color = flag_color
336
326
  end
337
327
 
338
- # Custom attribute writer method with validation
339
- # @param [Object] import_payee_name Value to be assigned
340
- def import_payee_name=(import_payee_name)
341
- if !import_payee_name.nil? && import_payee_name.to_s.length > 200
342
- fail ArgumentError, 'invalid value for "import_payee_name", the character length must be smaller than or equal to 200.'
343
- end
344
-
345
- @import_payee_name = import_payee_name
346
- end
347
-
348
- # Custom attribute writer method with validation
349
- # @param [Object] import_payee_name_original Value to be assigned
350
- def import_payee_name_original=(import_payee_name_original)
351
- if !import_payee_name_original.nil? && import_payee_name_original.to_s.length > 200
352
- fail ArgumentError, 'invalid value for "import_payee_name_original", the character length must be smaller than or equal to 200.'
353
- end
354
-
355
- @import_payee_name_original = import_payee_name_original
356
- end
357
-
358
328
  # Custom attribute writer method checking allowed values (enum).
359
329
  # @param [Object] debt_transaction_type Object to be assigned
360
330
  def debt_transaction_type=(debt_transaction_type)
@@ -242,14 +242,6 @@ module YNAB
242
242
  invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
243
243
  end
244
244
 
245
- if !@import_payee_name.nil? && @import_payee_name.to_s.length > 200
246
- invalid_properties.push('invalid value for "import_payee_name", the character length must be smaller than or equal to 200.')
247
- end
248
-
249
- if !@import_payee_name_original.nil? && @import_payee_name_original.to_s.length > 200
250
- invalid_properties.push('invalid value for "import_payee_name_original", the character length must be smaller than or equal to 200.')
251
- end
252
-
253
245
  if @deleted.nil?
254
246
  invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
255
247
  end
@@ -270,8 +262,6 @@ module YNAB
270
262
  flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
271
263
  return false unless flag_color_validator.valid?(@flag_color)
272
264
  return false if @account_id.nil?
273
- return false if !@import_payee_name.nil? && @import_payee_name.to_s.length > 200
274
- return false if !@import_payee_name_original.nil? && @import_payee_name_original.to_s.length > 200
275
265
  debt_transaction_type_validator = EnumAttributeValidator.new('String', ['payment', 'refund', 'fee', 'interest', 'escrow', 'balancedAdjustment', 'credit', 'charge'])
276
266
  return false unless debt_transaction_type_validator.valid?(@debt_transaction_type)
277
267
  return false if @deleted.nil?
@@ -290,26 +280,6 @@ module YNAB
290
280
  @flag_color = flag_color
291
281
  end
292
282
 
293
- # Custom attribute writer method with validation
294
- # @param [Object] import_payee_name Value to be assigned
295
- def import_payee_name=(import_payee_name)
296
- if !import_payee_name.nil? && import_payee_name.to_s.length > 200
297
- fail ArgumentError, 'invalid value for "import_payee_name", the character length must be smaller than or equal to 200.'
298
- end
299
-
300
- @import_payee_name = import_payee_name
301
- end
302
-
303
- # Custom attribute writer method with validation
304
- # @param [Object] import_payee_name_original Value to be assigned
305
- def import_payee_name_original=(import_payee_name_original)
306
- if !import_payee_name_original.nil? && import_payee_name_original.to_s.length > 200
307
- fail ArgumentError, 'invalid value for "import_payee_name_original", the character length must be smaller than or equal to 200.'
308
- end
309
-
310
- @import_payee_name_original = import_payee_name_original
311
- end
312
-
313
283
  # Custom attribute writer method checking allowed values (enum).
314
284
  # @param [Object] debt_transaction_type Object to be assigned
315
285
  def debt_transaction_type=(debt_transaction_type)
data/lib/ynab/version.rb CHANGED
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module YNAB
14
- VERSION = '1.28.0'
14
+ VERSION = '1.29.0'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ynab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - You Need A Budget, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -275,49 +275,49 @@ signing_key:
275
275
  specification_version: 4
276
276
  summary: YNAB API Endpoints Ruby Gem
277
277
  test_files:
278
- - spec/api/scheduled_transactions_spec.rb
279
- - spec/api/payees_spec.rb
280
- - spec/api/categories_spec.rb
281
- - spec/api/budgets_spec.rb
282
- - spec/api/accounts_spec.rb
283
278
  - spec/api/transactions_spec.rb
279
+ - spec/api/budgets_spec.rb
280
+ - spec/api/payees_spec.rb
284
281
  - spec/api/months_spec.rb
285
282
  - spec/api/payee_locations_spec.rb
283
+ - spec/api/accounts_spec.rb
284
+ - spec/api/categories_spec.rb
285
+ - spec/api/scheduled_transactions_spec.rb
286
286
  - spec/api_error_spec.rb
287
- - spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
288
- - spec/fixtures/vcr_cassettes/multiple_transactions.yml
287
+ - spec/fixtures/vcr_cassettes/create_transaction.yml
289
288
  - spec/fixtures/vcr_cassettes/bulk_transactions.yml
290
- - spec/fixtures/vcr_cassettes/categories.yml
291
- - spec/fixtures/vcr_cassettes/categories_unauthorized.yml
292
289
  - spec/fixtures/vcr_cassettes/payees.yml
293
- - spec/fixtures/vcr_cassettes/update_transactions.yml
294
- - spec/fixtures/vcr_cassettes/create_account.yml
290
+ - spec/fixtures/vcr_cassettes/multiple_transactions.yml
291
+ - spec/fixtures/vcr_cassettes/transaction.yml
292
+ - spec/fixtures/vcr_cassettes/month.yml
293
+ - spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
294
+ - spec/fixtures/vcr_cassettes/scheduled_transactions.yml
295
+ - spec/fixtures/vcr_cassettes/account.yml
296
+ - spec/fixtures/vcr_cassettes/transactions.yml
295
297
  - spec/fixtures/vcr_cassettes/budget.yml
296
- - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
298
+ - spec/fixtures/vcr_cassettes/payee_transactions.yml
297
299
  - spec/fixtures/vcr_cassettes/payee_location.yml
298
- - spec/fixtures/vcr_cassettes/scheduled_transactions.yml
299
- - spec/fixtures/vcr_cassettes/create_transaction.yml
300
- - spec/fixtures/vcr_cassettes/patch_month_category.yml
301
- - spec/fixtures/vcr_cassettes/create_transactions.yml
302
- - spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
303
- - spec/fixtures/vcr_cassettes/month.yml
304
- - spec/fixtures/vcr_cassettes/months.yml
300
+ - spec/fixtures/vcr_cassettes/budgets.yml
301
+ - spec/fixtures/vcr_cassettes/category.yml
302
+ - spec/fixtures/vcr_cassettes/payee.yml
305
303
  - spec/fixtures/vcr_cassettes/category_transactions.yml
306
- - spec/fixtures/vcr_cassettes/update_transaction.yml
307
- - spec/fixtures/vcr_cassettes/transaction.yml
308
- - spec/fixtures/vcr_cassettes/scheduled_transaction.yml
304
+ - spec/fixtures/vcr_cassettes/months.yml
305
+ - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
309
306
  - spec/fixtures/vcr_cassettes/payee_locations.yml
310
- - spec/fixtures/vcr_cassettes/months_unauthorized.yml
307
+ - spec/fixtures/vcr_cassettes/categories_unauthorized.yml
308
+ - spec/fixtures/vcr_cassettes/update_transactions.yml
311
309
  - spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
312
- - spec/fixtures/vcr_cassettes/transactions.yml
313
- - spec/fixtures/vcr_cassettes/account.yml
310
+ - spec/fixtures/vcr_cassettes/patch_month_category.yml
311
+ - spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
312
+ - spec/fixtures/vcr_cassettes/months_unauthorized.yml
313
+ - spec/fixtures/vcr_cassettes/create_transactions.yml
314
314
  - spec/fixtures/vcr_cassettes/accounts.yml
315
+ - spec/fixtures/vcr_cassettes/update_transaction.yml
315
316
  - spec/fixtures/vcr_cassettes/payees_unauthorized.yml
316
- - spec/fixtures/vcr_cassettes/payee.yml
317
- - spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
318
- - spec/fixtures/vcr_cassettes/payee_transactions.yml
319
317
  - spec/fixtures/vcr_cassettes/import_transactions.yml
320
- - spec/fixtures/vcr_cassettes/category.yml
321
- - spec/fixtures/vcr_cassettes/budgets.yml
318
+ - spec/fixtures/vcr_cassettes/categories.yml
319
+ - spec/fixtures/vcr_cassettes/create_account.yml
320
+ - spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
321
+ - spec/fixtures/vcr_cassettes/scheduled_transaction.yml
322
322
  - spec/models/transaction_detail_spec.rb
323
323
  - spec/spec_helper.rb