ynab 1.28.0 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/lib/ynab/api/accounts_api.rb +7 -7
  4. data/lib/ynab/api/budgets_api.rb +5 -5
  5. data/lib/ynab/api/categories_api.rb +9 -9
  6. data/lib/ynab/api/deprecated_api.rb +3 -3
  7. data/lib/ynab/api/months_api.rb +5 -5
  8. data/lib/ynab/api/payee_locations_api.rb +7 -7
  9. data/lib/ynab/api/payees_api.rb +5 -5
  10. data/lib/ynab/api/scheduled_transactions_api.rb +5 -5
  11. data/lib/ynab/api/transactions_api.rb +21 -21
  12. data/lib/ynab/api/user_api.rb +1 -1
  13. data/lib/ynab/api_client.rb +1 -1
  14. data/lib/ynab/configuration.rb +2 -2
  15. data/lib/ynab/models/account.rb +1 -1
  16. data/lib/ynab/models/account_response.rb +1 -1
  17. data/lib/ynab/models/account_response_data.rb +1 -1
  18. data/lib/ynab/models/account_type.rb +1 -1
  19. data/lib/ynab/models/accounts_response.rb +1 -1
  20. data/lib/ynab/models/accounts_response_data.rb +1 -1
  21. data/lib/ynab/models/budget_detail.rb +1 -1
  22. data/lib/ynab/models/budget_detail_response.rb +1 -1
  23. data/lib/ynab/models/budget_detail_response_data.rb +1 -1
  24. data/lib/ynab/models/budget_settings.rb +1 -1
  25. data/lib/ynab/models/budget_settings_response.rb +1 -1
  26. data/lib/ynab/models/budget_settings_response_data.rb +1 -1
  27. data/lib/ynab/models/budget_summary.rb +1 -1
  28. data/lib/ynab/models/budget_summary_response.rb +1 -1
  29. data/lib/ynab/models/budget_summary_response_data.rb +1 -1
  30. data/lib/ynab/models/bulk_response.rb +1 -1
  31. data/lib/ynab/models/bulk_response_data.rb +1 -1
  32. data/lib/ynab/models/bulk_response_data_bulk.rb +1 -1
  33. data/lib/ynab/models/bulk_transactions.rb +1 -1
  34. data/lib/ynab/models/categories_response.rb +1 -1
  35. data/lib/ynab/models/categories_response_data.rb +1 -1
  36. data/lib/ynab/models/category.rb +1 -1
  37. data/lib/ynab/models/category_group.rb +1 -1
  38. data/lib/ynab/models/category_group_with_categories.rb +1 -1
  39. data/lib/ynab/models/category_response.rb +1 -1
  40. data/lib/ynab/models/category_response_data.rb +1 -1
  41. data/lib/ynab/models/currency_format.rb +1 -1
  42. data/lib/ynab/models/date_format.rb +1 -1
  43. data/lib/ynab/models/error_detail.rb +1 -1
  44. data/lib/ynab/models/error_response.rb +1 -1
  45. data/lib/ynab/models/hybrid_transaction.rb +2 -31
  46. data/lib/ynab/models/hybrid_transactions_response.rb +1 -1
  47. data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -1
  48. data/lib/ynab/models/loan_account_periodic_value.rb +1 -1
  49. data/lib/ynab/models/month_detail.rb +1 -1
  50. data/lib/ynab/models/month_detail_response.rb +1 -1
  51. data/lib/ynab/models/month_detail_response_data.rb +1 -1
  52. data/lib/ynab/models/month_summaries_response.rb +1 -1
  53. data/lib/ynab/models/month_summaries_response_data.rb +1 -1
  54. data/lib/ynab/models/month_summary.rb +1 -1
  55. data/lib/ynab/models/patch_month_category_wrapper.rb +1 -1
  56. data/lib/ynab/models/patch_transactions_wrapper.rb +1 -1
  57. data/lib/ynab/models/payee.rb +1 -1
  58. data/lib/ynab/models/payee_location.rb +1 -1
  59. data/lib/ynab/models/payee_location_response.rb +1 -1
  60. data/lib/ynab/models/payee_location_response_data.rb +1 -1
  61. data/lib/ynab/models/payee_locations_response.rb +1 -1
  62. data/lib/ynab/models/payee_locations_response_data.rb +1 -1
  63. data/lib/ynab/models/payee_response.rb +1 -1
  64. data/lib/ynab/models/payee_response_data.rb +1 -1
  65. data/lib/ynab/models/payees_response.rb +1 -1
  66. data/lib/ynab/models/payees_response_data.rb +1 -1
  67. data/lib/ynab/models/post_account_wrapper.rb +1 -1
  68. data/lib/ynab/models/post_transactions_wrapper.rb +1 -1
  69. data/lib/ynab/models/put_transaction_wrapper.rb +1 -1
  70. data/lib/ynab/models/save_account.rb +1 -1
  71. data/lib/ynab/models/save_category_response.rb +1 -1
  72. data/lib/ynab/models/save_category_response_data.rb +1 -1
  73. data/lib/ynab/models/save_month_category.rb +1 -1
  74. data/lib/ynab/models/save_sub_transaction.rb +1 -1
  75. data/lib/ynab/models/save_transaction.rb +1 -1
  76. data/lib/ynab/models/save_transaction_with_id.rb +1 -1
  77. data/lib/ynab/models/save_transaction_with_optional_fields.rb +1 -1
  78. data/lib/ynab/models/save_transactions_response.rb +1 -1
  79. data/lib/ynab/models/save_transactions_response_data.rb +1 -1
  80. data/lib/ynab/models/scheduled_sub_transaction.rb +1 -1
  81. data/lib/ynab/models/scheduled_transaction_detail.rb +2 -1
  82. data/lib/ynab/models/scheduled_transaction_response.rb +1 -1
  83. data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -1
  84. data/lib/ynab/models/scheduled_transaction_summary.rb +1 -1
  85. data/lib/ynab/models/scheduled_transactions_response.rb +1 -1
  86. data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -1
  87. data/lib/ynab/models/sub_transaction.rb +1 -1
  88. data/lib/ynab/models/transaction_detail.rb +2 -31
  89. data/lib/ynab/models/transaction_response.rb +1 -1
  90. data/lib/ynab/models/transaction_response_data.rb +1 -1
  91. data/lib/ynab/models/transaction_summary.rb +1 -31
  92. data/lib/ynab/models/transactions_import_response.rb +1 -1
  93. data/lib/ynab/models/transactions_import_response_data.rb +1 -1
  94. data/lib/ynab/models/transactions_response.rb +1 -1
  95. data/lib/ynab/models/transactions_response_data.rb +1 -1
  96. data/lib/ynab/models/user.rb +1 -1
  97. data/lib/ynab/models/user_response.rb +1 -1
  98. data/lib/ynab/models/user_response_data.rb +1 -1
  99. data/lib/ynab/version.rb +1 -1
  100. data/lib/ynab.rb +2 -2
  101. metadata +37 -37
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #YNAB API Endpoints
3
3
 
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #YNAB API Endpoints
3
3
 
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #YNAB API Endpoints
3
3
 
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #YNAB API Endpoints
3
3
 
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #YNAB API Endpoints
3
3
 
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
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.31.0'
15
15
  end
data/lib/ynab.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #YNAB API Endpoints
3
3
 
4
- #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
4
+ #Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -118,7 +118,7 @@ require 'ynab/overrides/transactions_api'
118
118
 
119
119
  module YNAB
120
120
  class API
121
- def initialize(access_token, host = 'api.youneedabudget.com', useHttps = true)
121
+ def initialize(access_token, host = 'api.ynab.com', useHttps = true)
122
122
  config = Configuration.default
123
123
  config.api_key['Authorization'] = access_token
124
124
  config.api_key_prefix['Authorization'] = 'Bearer'
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.31.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-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -90,9 +90,9 @@ dependencies:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 3.0.1
93
- description: Ruby gem wrapper for the YNAB API. Read the documentation at https://api.youneedabudget.com
93
+ description: Ruby gem wrapper for the YNAB API. Read the documentation at https://api.ynab.com
94
94
  email:
95
- - api@youneedabudget.com
95
+ - api@ynab.com
96
96
  executables: []
97
97
  extensions: []
98
98
  extra_rdoc_files: []
@@ -270,54 +270,54 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.4.7
273
+ rubygems_version: 3.4.10
274
274
  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
278
  - spec/api/budgets_spec.rb
279
+ - spec/api/months_spec.rb
280
+ - spec/api/payees_spec.rb
282
281
  - spec/api/accounts_spec.rb
282
+ - spec/api/categories_spec.rb
283
283
  - spec/api/transactions_spec.rb
284
- - spec/api/months_spec.rb
284
+ - spec/api/scheduled_transactions_spec.rb
285
285
  - spec/api/payee_locations_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
289
- - spec/fixtures/vcr_cassettes/bulk_transactions.yml
290
- - spec/fixtures/vcr_cassettes/categories.yml
291
- - spec/fixtures/vcr_cassettes/categories_unauthorized.yml
287
+ - spec/fixtures/vcr_cassettes/payee_transactions.yml
292
288
  - spec/fixtures/vcr_cassettes/payees.yml
293
- - spec/fixtures/vcr_cassettes/update_transactions.yml
294
- - spec/fixtures/vcr_cassettes/create_account.yml
295
- - spec/fixtures/vcr_cassettes/budget.yml
296
- - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
297
- - 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
289
+ - spec/fixtures/vcr_cassettes/account.yml
304
290
  - spec/fixtures/vcr_cassettes/months.yml
305
- - 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
309
- - spec/fixtures/vcr_cassettes/payee_locations.yml
310
291
  - spec/fixtures/vcr_cassettes/months_unauthorized.yml
311
- - spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
312
- - spec/fixtures/vcr_cassettes/transactions.yml
313
- - spec/fixtures/vcr_cassettes/account.yml
314
292
  - spec/fixtures/vcr_cassettes/accounts.yml
293
+ - spec/fixtures/vcr_cassettes/budgets.yml
294
+ - spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
295
+ - spec/fixtures/vcr_cassettes/scheduled_transactions.yml
296
+ - spec/fixtures/vcr_cassettes/update_transactions.yml
297
+ - spec/fixtures/vcr_cassettes/patch_month_category.yml
298
+ - spec/fixtures/vcr_cassettes/category_transactions.yml
299
+ - spec/fixtures/vcr_cassettes/payee_location.yml
315
300
  - spec/fixtures/vcr_cassettes/payees_unauthorized.yml
301
+ - spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
302
+ - spec/fixtures/vcr_cassettes/bulk_transactions.yml
303
+ - spec/fixtures/vcr_cassettes/month.yml
304
+ - spec/fixtures/vcr_cassettes/transactions.yml
305
+ - spec/fixtures/vcr_cassettes/payee_locations.yml
306
+ - spec/fixtures/vcr_cassettes/budget.yml
307
+ - spec/fixtures/vcr_cassettes/categories_unauthorized.yml
308
+ - spec/fixtures/vcr_cassettes/scheduled_transactions_unauthorized.yml
309
+ - spec/fixtures/vcr_cassettes/scheduled_transaction.yml
310
+ - spec/fixtures/vcr_cassettes/create_account.yml
311
+ - spec/fixtures/vcr_cassettes/categories.yml
312
+ - spec/fixtures/vcr_cassettes/category.yml
313
+ - spec/fixtures/vcr_cassettes/update_transaction.yml
314
+ - spec/fixtures/vcr_cassettes/budgets_unauthorized.yml
315
+ - spec/fixtures/vcr_cassettes/create_transaction.yml
316
+ - spec/fixtures/vcr_cassettes/create_transactions.yml
316
317
  - spec/fixtures/vcr_cassettes/payee.yml
317
- - spec/fixtures/vcr_cassettes/payee_locations_unauthorized.yml
318
- - spec/fixtures/vcr_cassettes/payee_transactions.yml
318
+ - spec/fixtures/vcr_cassettes/accounts_unauthorized.yml
319
319
  - spec/fixtures/vcr_cassettes/import_transactions.yml
320
- - spec/fixtures/vcr_cassettes/category.yml
321
- - spec/fixtures/vcr_cassettes/budgets.yml
320
+ - spec/fixtures/vcr_cassettes/multiple_transactions.yml
321
+ - spec/fixtures/vcr_cassettes/transaction.yml
322
322
  - spec/models/transaction_detail_spec.rb
323
323
  - spec/spec_helper.rb