ynab 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ynab.rb +2 -1
  3. data/lib/ynab/api/accounts_api.rb +3 -3
  4. data/lib/ynab/api/budgets_api.rb +6 -3
  5. data/lib/ynab/api/categories_api.rb +7 -7
  6. data/lib/ynab/api/deprecated_api.rb +1 -1
  7. data/lib/ynab/api/months_api.rb +3 -3
  8. data/lib/ynab/api/payee_locations_api.rb +1 -1
  9. data/lib/ynab/api/payees_api.rb +3 -3
  10. data/lib/ynab/api/scheduled_transactions_api.rb +3 -3
  11. data/lib/ynab/api/transactions_api.rb +25 -25
  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 +1 -1
  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/accounts_response.rb +1 -1
  19. data/lib/ynab/models/accounts_response_data.rb +1 -1
  20. data/lib/ynab/models/budget_detail.rb +1 -1
  21. data/lib/ynab/models/budget_detail_response.rb +1 -1
  22. data/lib/ynab/models/budget_detail_response_data.rb +1 -1
  23. data/lib/ynab/models/budget_settings.rb +1 -1
  24. data/lib/ynab/models/budget_settings_response.rb +1 -1
  25. data/lib/ynab/models/budget_settings_response_data.rb +1 -1
  26. data/lib/ynab/models/budget_summary.rb +17 -5
  27. data/lib/ynab/models/budget_summary_response.rb +1 -1
  28. data/lib/ynab/models/budget_summary_response_data.rb +1 -1
  29. data/lib/ynab/models/bulk_response.rb +1 -1
  30. data/lib/ynab/models/bulk_response_data.rb +1 -1
  31. data/lib/ynab/models/bulk_response_data_bulk.rb +2 -2
  32. data/lib/ynab/models/bulk_transactions.rb +1 -1
  33. data/lib/ynab/models/categories_response.rb +1 -1
  34. data/lib/ynab/models/categories_response_data.rb +1 -1
  35. data/lib/ynab/models/category.rb +3 -3
  36. data/lib/ynab/models/category_group.rb +1 -1
  37. data/lib/ynab/models/category_group_with_categories.rb +1 -1
  38. data/lib/ynab/models/category_response.rb +1 -1
  39. data/lib/ynab/models/category_response_data.rb +1 -1
  40. data/lib/ynab/models/currency_format.rb +1 -1
  41. data/lib/ynab/models/date_format.rb +1 -1
  42. data/lib/ynab/models/error_detail.rb +1 -1
  43. data/lib/ynab/models/error_response.rb +1 -1
  44. data/lib/ynab/models/hybrid_transaction.rb +1 -1
  45. data/lib/ynab/models/hybrid_transactions_response.rb +1 -1
  46. data/lib/ynab/models/hybrid_transactions_response_data.rb +1 -1
  47. data/lib/ynab/models/month_detail.rb +3 -3
  48. data/lib/ynab/models/month_detail_response.rb +1 -1
  49. data/lib/ynab/models/month_detail_response_data.rb +1 -1
  50. data/lib/ynab/models/month_summaries_response.rb +1 -1
  51. data/lib/ynab/models/month_summaries_response_data.rb +1 -1
  52. data/lib/ynab/models/month_summary.rb +3 -3
  53. data/lib/ynab/models/payee.rb +2 -2
  54. data/lib/ynab/models/payee_location.rb +1 -1
  55. data/lib/ynab/models/payee_location_response.rb +1 -1
  56. data/lib/ynab/models/payee_location_response_data.rb +1 -1
  57. data/lib/ynab/models/payee_locations_response.rb +1 -1
  58. data/lib/ynab/models/payee_locations_response_data.rb +1 -1
  59. data/lib/ynab/models/payee_response.rb +1 -1
  60. data/lib/ynab/models/payee_response_data.rb +1 -1
  61. data/lib/ynab/models/payees_response.rb +1 -1
  62. data/lib/ynab/models/payees_response_data.rb +1 -1
  63. data/lib/ynab/models/save_category_response.rb +1 -1
  64. data/lib/ynab/models/save_category_response_data.rb +1 -1
  65. data/lib/ynab/models/save_month_category.rb +1 -1
  66. data/lib/ynab/models/save_month_category_wrapper.rb +1 -1
  67. data/lib/ynab/models/save_sub_transaction.rb +258 -0
  68. data/lib/ynab/models/save_transaction.rb +21 -9
  69. data/lib/ynab/models/save_transaction_wrapper.rb +1 -1
  70. data/lib/ynab/models/save_transactions_response.rb +1 -1
  71. data/lib/ynab/models/save_transactions_response_data.rb +2 -2
  72. data/lib/ynab/models/save_transactions_wrapper.rb +1 -1
  73. data/lib/ynab/models/scheduled_sub_transaction.rb +1 -1
  74. data/lib/ynab/models/scheduled_transaction_detail.rb +1 -1
  75. data/lib/ynab/models/scheduled_transaction_response.rb +1 -1
  76. data/lib/ynab/models/scheduled_transaction_response_data.rb +1 -1
  77. data/lib/ynab/models/scheduled_transaction_summary.rb +1 -1
  78. data/lib/ynab/models/scheduled_transactions_response.rb +1 -1
  79. data/lib/ynab/models/scheduled_transactions_response_data.rb +1 -1
  80. data/lib/ynab/models/sub_transaction.rb +20 -2
  81. data/lib/ynab/models/transaction_detail.rb +1 -1
  82. data/lib/ynab/models/transaction_response.rb +1 -1
  83. data/lib/ynab/models/transaction_response_data.rb +1 -1
  84. data/lib/ynab/models/transaction_summary.rb +1 -1
  85. data/lib/ynab/models/transactions_response.rb +1 -1
  86. data/lib/ynab/models/transactions_response_data.rb +1 -1
  87. data/lib/ynab/models/update_transaction.rb +18 -6
  88. data/lib/ynab/models/update_transactions_wrapper.rb +1 -1
  89. data/lib/ynab/models/user.rb +1 -1
  90. data/lib/ynab/models/user_response.rb +1 -1
  91. data/lib/ynab/models/user_response_data.rb +1 -1
  92. data/lib/ynab/version.rb +1 -1
  93. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4163c8bedd6bd272ab35d15802ae2200407b218a18c18fc2749306b85f27e39b
4
- data.tar.gz: 40a59df0f9b6d91f7a3b35fec3bd2b9b5231516bc3a59c7bf8d16c4aff115925
3
+ metadata.gz: '08252a91b18ed28e79e2a266348ed18e5c3a9a5b03f068cfa881aa9d11da8ef1'
4
+ data.tar.gz: d6f42abcfa2eba23728010c39ea2fe0fb201e2d3ccc2f09044a11ce0c2e46268
5
5
  SHA512:
6
- metadata.gz: a84d1f7422db85a048bfcb3ac33f6c1142a7f1a0dd32e0300c07b702ebb9d680d4092f5891948fd9e389ed95394fd7b0990a4baf4bf135b1293568bb9a12d907
7
- data.tar.gz: 971c9132f00ddc5be982f9f4ff95474942d9788c0c0baded9c9e9c4bbe10fb3f204662b111a0682effed25379f1159bf3c779d86af5ff4fc58c041cb366b4044
6
+ metadata.gz: cb2d0fdd57827ba843ef8dc55b51703162d64dc3c24eaf533ba762068a4572dab1da05e74cec33085c227a1fe9dcbfd39a5a1372d1e8b127887f56b8f3b550c2
7
+ data.tar.gz: 0c3487430cd0691446ebaa57b8a8aaf1e24dc26c40d44822102cdef1682a65a86c04e7d6e33734fecae9ffcd417b9de672f28460882548cdbf6dd485a7e15a6c
data/lib/ynab.rb CHANGED
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -65,6 +65,7 @@ require 'ynab/models/save_category_response'
65
65
  require 'ynab/models/save_category_response_data'
66
66
  require 'ynab/models/save_month_category'
67
67
  require 'ynab/models/save_month_category_wrapper'
68
+ require 'ynab/models/save_sub_transaction'
68
69
  require 'ynab/models/save_transaction'
69
70
  require 'ynab/models/save_transaction_wrapper'
70
71
  require 'ynab/models/save_transactions_response'
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -81,7 +81,7 @@ module YNAB
81
81
  # Returns all accounts
82
82
  # @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
83
83
  # @param [Hash] opts the optional parameters
84
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
84
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
85
85
  # @return [AccountsResponse]
86
86
  def get_accounts(budget_id, opts = {})
87
87
  data, _status_code, _headers = get_accounts_with_http_info(budget_id, opts)
@@ -92,7 +92,7 @@ module YNAB
92
92
  # Returns all accounts
93
93
  # @param budget_id The id of the budget (\"last-used\" can be used to specify the last used budget and \"default\" can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
94
94
  # @param [Hash] opts the optional parameters
95
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
95
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since `last_knowledge_of_server` will be included.
96
96
  # @return [Array<(AccountsResponse, Fixnum, Hash)>] AccountsResponse data, response status code and response headers
97
97
  def get_accounts_with_http_info(budget_id, opts = {})
98
98
  if @api_client.config.debugging
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -23,7 +23,7 @@ module YNAB
23
23
  # Returns a single budget with all related entities. This resource is effectively a full budget export.
24
24
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
25
25
  # @param [Hash] opts the optional parameters
26
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
26
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
27
27
  # @return [BudgetDetailResponse]
28
28
  def get_budget_by_id(budget_id, opts = {})
29
29
  data, _status_code, _headers = get_budget_by_id_with_http_info(budget_id, opts)
@@ -34,7 +34,7 @@ module YNAB
34
34
  # Returns a single budget with all related entities. This resource is effectively a full budget export.
35
35
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
36
36
  # @param [Hash] opts the optional parameters
37
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
37
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
38
38
  # @return [Array<(BudgetDetailResponse, Fixnum, Hash)>] BudgetDetailResponse data, response status code and response headers
39
39
  def get_budget_by_id_with_http_info(budget_id, opts = {})
40
40
  if @api_client.config.debugging
@@ -129,6 +129,7 @@ module YNAB
129
129
  # List budgets
130
130
  # Returns budgets list with summary information
131
131
  # @param [Hash] opts the optional parameters
132
+ # @option opts [BOOLEAN] :include_accounts Whether to include the list of budget accounts
132
133
  # @return [BudgetSummaryResponse]
133
134
  def get_budgets(opts = {})
134
135
  data, _status_code, _headers = get_budgets_with_http_info(opts)
@@ -138,6 +139,7 @@ module YNAB
138
139
  # List budgets
139
140
  # Returns budgets list with summary information
140
141
  # @param [Hash] opts the optional parameters
142
+ # @option opts [BOOLEAN] :include_accounts Whether to include the list of budget accounts
141
143
  # @return [Array<(BudgetSummaryResponse, Fixnum, Hash)>] BudgetSummaryResponse data, response status code and response headers
142
144
  def get_budgets_with_http_info(opts = {})
143
145
  if @api_client.config.debugging
@@ -148,6 +150,7 @@ module YNAB
148
150
 
149
151
  # query parameters
150
152
  query_params = {}
153
+ query_params[:'include_accounts'] = opts[:'include_accounts'] if !opts[:'include_accounts'].nil?
151
154
 
152
155
  # header parameters
153
156
  header_params = {}
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -23,7 +23,7 @@ module YNAB
23
23
  # Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
24
24
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
25
25
  # @param [Hash] opts the optional parameters
26
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
26
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
27
27
  # @return [CategoriesResponse]
28
28
  def get_categories(budget_id, opts = {})
29
29
  data, _status_code, _headers = get_categories_with_http_info(budget_id, opts)
@@ -34,7 +34,7 @@ module YNAB
34
34
  # Returns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
35
35
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
36
36
  # @param [Hash] opts the optional parameters
37
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
37
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
38
38
  # @return [Array<(CategoriesResponse, Fixnum, Hash)>] CategoriesResponse data, response status code and response headers
39
39
  def get_categories_with_http_info(budget_id, opts = {})
40
40
  if @api_client.config.debugging
@@ -197,11 +197,11 @@ module YNAB
197
197
  return data, status_code, headers
198
198
  end
199
199
  # Update a category for a specific month
200
- # Update a category for a specific month
200
+ # Update a category for a specific month. Only `budgeted` amount can be updated.
201
201
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
202
202
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
203
203
  # @param category_id The id of the category
204
- # @param data The category to update
204
+ # @param data The category to update. Only &#x60;budgeted&#x60; amount can be updated and any other fields specified will be ignored.
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @return [SaveCategoryResponse]
207
207
  def update_month_category(budget_id, month, category_id, data, opts = {})
@@ -210,11 +210,11 @@ module YNAB
210
210
  end
211
211
 
212
212
  # Update a category for a specific month
213
- # Update a category for a specific month
213
+ # Update a category for a specific month. Only &#x60;budgeted&#x60; amount can be updated.
214
214
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
215
215
  # @param month The budget month in ISO format (e.g. 2016-12-01) (\&quot;current\&quot; can also be used to specify the current calendar month (UTC))
216
216
  # @param category_id The id of the category
217
- # @param data The category to update
217
+ # @param data The category to update. Only &#x60;budgeted&#x60; amount can be updated and any other fields specified will be ignored.
218
218
  # @param [Hash] opts the optional parameters
219
219
  # @return [Array<(SaveCategoryResponse, Fixnum, Hash)>] SaveCategoryResponse data, response status code and response headers
220
220
  def update_month_category_with_http_info(budget_id, month, category_id, data, opts = {})
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -81,7 +81,7 @@ module YNAB
81
81
  # Returns all budget months
82
82
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
83
83
  # @param [Hash] opts the optional parameters
84
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
84
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
85
  # @return [MonthSummariesResponse]
86
86
  def get_budget_months(budget_id, opts = {})
87
87
  data, _status_code, _headers = get_budget_months_with_http_info(budget_id, opts)
@@ -92,7 +92,7 @@ module YNAB
92
92
  # Returns all budget months
93
93
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
94
94
  # @param [Hash] opts the optional parameters
95
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
95
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
96
  # @return [Array<(MonthSummariesResponse, Fixnum, Hash)>] MonthSummariesResponse data, response status code and response headers
97
97
  def get_budget_months_with_http_info(budget_id, opts = {})
98
98
  if @api_client.config.debugging
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -81,7 +81,7 @@ module YNAB
81
81
  # Returns all payees
82
82
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
83
83
  # @param [Hash] opts the optional parameters
84
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
84
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
85
  # @return [PayeesResponse]
86
86
  def get_payees(budget_id, opts = {})
87
87
  data, _status_code, _headers = get_payees_with_http_info(budget_id, opts)
@@ -92,7 +92,7 @@ module YNAB
92
92
  # Returns all payees
93
93
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
94
94
  # @param [Hash] opts the optional parameters
95
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
95
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
96
  # @return [Array<(PayeesResponse, Fixnum, Hash)>] PayeesResponse data, response status code and response headers
97
97
  def get_payees_with_http_info(budget_id, opts = {})
98
98
  if @api_client.config.debugging
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -81,7 +81,7 @@ module YNAB
81
81
  # Returns all scheduled transactions
82
82
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
83
83
  # @param [Hash] opts the optional parameters
84
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
84
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
85
85
  # @return [ScheduledTransactionsResponse]
86
86
  def get_scheduled_transactions(budget_id, opts = {})
87
87
  data, _status_code, _headers = get_scheduled_transactions_with_http_info(budget_id, opts)
@@ -92,7 +92,7 @@ module YNAB
92
92
  # Returns all scheduled transactions
93
93
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
94
94
  # @param [Hash] opts the optional parameters
95
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
95
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
96
96
  # @return [Array<(ScheduledTransactionsResponse, Fixnum, Hash)>] ScheduledTransactionsResponse data, response status code and response headers
97
97
  def get_scheduled_transactions_with_http_info(budget_id, opts = {})
98
98
  if @api_client.config.debugging
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -20,9 +20,9 @@ module YNAB
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a single transaction or multiple transactions
23
- # Creates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
23
+ # Creates a single transaction or multiple transactions. If you provide a body containing a `transaction` object, a single transaction will be created and if you provide a body containing a `transactions` array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
24
24
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
25
- # @param data The transaction or transactions to create. To create a single transaction you can specify a value for the &#39;transaction&#39; object and to create multiple transactions you can specify an array of &#39;transactions&#39;. It is expected that you will only provide a value for one of these objects.
25
+ # @param data The transaction or transactions to create. To create a single transaction you can specify a value for the &#x60;transaction&#x60; object and to create multiple transactions you can specify an array of &#x60;transactions&#x60;. It is expected that you will only provide a value for one of these objects.
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [SaveTransactionsResponse]
28
28
  def create_transaction(budget_id, data, opts = {})
@@ -31,9 +31,9 @@ module YNAB
31
31
  end
32
32
 
33
33
  # Create a single transaction or multiple transactions
34
- # Creates a single transaction or multiple transactions. If you provide a body containing a &#39;transaction&#39; object, a single transaction will be created and if you provide a body containing a &#39;transactions&#39; array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
34
+ # Creates a single transaction or multiple transactions. If you provide a body containing a &#x60;transaction&#x60; object, a single transaction will be created and if you provide a body containing a &#x60;transactions&#x60; array, multiple transactions will be created. Scheduled transactions cannot be created on this endpoint.
35
35
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
36
- # @param data The transaction or transactions to create. To create a single transaction you can specify a value for the &#39;transaction&#39; object and to create multiple transactions you can specify an array of &#39;transactions&#39;. It is expected that you will only provide a value for one of these objects.
36
+ # @param data The transaction or transactions to create. To create a single transaction you can specify a value for the &#x60;transaction&#x60; object and to create multiple transactions you can specify an array of &#x60;transactions&#x60;. It is expected that you will only provide a value for one of these objects.
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
39
39
  def create_transaction_with_http_info(budget_id, data, opts = {})
@@ -140,8 +140,8 @@ module YNAB
140
140
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
141
141
  # @param [Hash] opts the optional parameters
142
142
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
143
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
144
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
143
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
144
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
145
145
  # @return [TransactionsResponse]
146
146
  def get_transactions(budget_id, opts = {})
147
147
  data, _status_code, _headers = get_transactions_with_http_info(budget_id, opts)
@@ -153,8 +153,8 @@ module YNAB
153
153
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
154
154
  # @param [Hash] opts the optional parameters
155
155
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
156
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
157
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
156
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
157
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
158
158
  # @return [Array<(TransactionsResponse, Fixnum, Hash)>] TransactionsResponse data, response status code and response headers
159
159
  def get_transactions_with_http_info(budget_id, opts = {})
160
160
  if @api_client.config.debugging
@@ -205,8 +205,8 @@ module YNAB
205
205
  # @param account_id The id of the account
206
206
  # @param [Hash] opts the optional parameters
207
207
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
208
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
209
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
208
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
209
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
210
210
  # @return [TransactionsResponse]
211
211
  def get_transactions_by_account(budget_id, account_id, opts = {})
212
212
  data, _status_code, _headers = get_transactions_by_account_with_http_info(budget_id, account_id, opts)
@@ -219,8 +219,8 @@ module YNAB
219
219
  # @param account_id The id of the account
220
220
  # @param [Hash] opts the optional parameters
221
221
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
222
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
223
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
222
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
223
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
224
224
  # @return [Array<(TransactionsResponse, Fixnum, Hash)>] TransactionsResponse data, response status code and response headers
225
225
  def get_transactions_by_account_with_http_info(budget_id, account_id, opts = {})
226
226
  if @api_client.config.debugging
@@ -275,8 +275,8 @@ module YNAB
275
275
  # @param category_id The id of the category
276
276
  # @param [Hash] opts the optional parameters
277
277
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
278
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
279
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
278
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
279
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
280
280
  # @return [HybridTransactionsResponse]
281
281
  def get_transactions_by_category(budget_id, category_id, opts = {})
282
282
  data, _status_code, _headers = get_transactions_by_category_with_http_info(budget_id, category_id, opts)
@@ -289,8 +289,8 @@ module YNAB
289
289
  # @param category_id The id of the category
290
290
  # @param [Hash] opts the optional parameters
291
291
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
292
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
293
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
292
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
293
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
294
294
  # @return [Array<(HybridTransactionsResponse, Fixnum, Hash)>] HybridTransactionsResponse data, response status code and response headers
295
295
  def get_transactions_by_category_with_http_info(budget_id, category_id, opts = {})
296
296
  if @api_client.config.debugging
@@ -345,8 +345,8 @@ module YNAB
345
345
  # @param payee_id The id of the payee
346
346
  # @param [Hash] opts the optional parameters
347
347
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
348
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
349
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
348
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
349
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
350
350
  # @return [HybridTransactionsResponse]
351
351
  def get_transactions_by_payee(budget_id, payee_id, opts = {})
352
352
  data, _status_code, _headers = get_transactions_by_payee_with_http_info(budget_id, payee_id, opts)
@@ -359,8 +359,8 @@ module YNAB
359
359
  # @param payee_id The id of the payee
360
360
  # @param [Hash] opts the optional parameters
361
361
  # @option opts [Date] :since_date If specified, only transactions on or after this date will be included. The date should be ISO formatted (e.g. 2016-12-30).
362
- # @option opts [String] :type If specified, only transactions of the specified type will be included. &#39;uncategorized&#39; and &#39;unapproved&#39; are currently supported.
363
- # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since last_knowledge_of_server will be included.
362
+ # @option opts [String] :type If specified, only transactions of the specified type will be included. \&quot;uncategorized\&quot; and \&quot;unapproved\&quot; are currently supported.
363
+ # @option opts [Integer] :last_knowledge_of_server The starting server knowledge. If provided, only entities that have changed since &#x60;last_knowledge_of_server&#x60; will be included.
364
364
  # @return [Array<(HybridTransactionsResponse, Fixnum, Hash)>] HybridTransactionsResponse data, response status code and response headers
365
365
  def get_transactions_by_payee_with_http_info(budget_id, payee_id, opts = {})
366
366
  if @api_client.config.debugging
@@ -474,9 +474,9 @@ module YNAB
474
474
  return data, status_code, headers
475
475
  end
476
476
  # Update multiple transactions
477
- # Updates multiple transactions, by 'id' or 'import_id'.
477
+ # Updates multiple transactions, by `id` or `import_id`.
478
478
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
479
- # @param data The transactions to update. Each transaction must have either an &#39;id&#39; or &#39;import_id&#39; specified. If &#39;id&#39; is specified as null an &#39;import_id&#39; value can be provided which will allow transaction(s) to be updated by their import_id. If an id is specified, it will always be used for lookup.
479
+ # @param data The transactions to update. Each transaction must have either an &#x60;id&#x60; or &#x60;import_id&#x60; specified. If &#x60;id&#x60; is specified as null an &#x60;import_id&#x60; value can be provided which will allow transaction(s) to be updated by their &#x60;import_id&#x60;. If an &#x60;id&#x60; is specified, it will always be used for lookup.
480
480
  # @param [Hash] opts the optional parameters
481
481
  # @return [SaveTransactionsResponse]
482
482
  def update_transactions(budget_id, data, opts = {})
@@ -485,9 +485,9 @@ module YNAB
485
485
  end
486
486
 
487
487
  # Update multiple transactions
488
- # Updates multiple transactions, by &#39;id&#39; or &#39;import_id&#39;.
488
+ # Updates multiple transactions, by &#x60;id&#x60; or &#x60;import_id&#x60;.
489
489
  # @param budget_id The id of the budget (\&quot;last-used\&quot; can be used to specify the last used budget and \&quot;default\&quot; can be used if default budget selection is enabled (see: https://api.youneedabudget.com/#oauth-default-budget)
490
- # @param data The transactions to update. Each transaction must have either an &#39;id&#39; or &#39;import_id&#39; specified. If &#39;id&#39; is specified as null an &#39;import_id&#39; value can be provided which will allow transaction(s) to be updated by their import_id. If an id is specified, it will always be used for lookup.
490
+ # @param data The transactions to update. Each transaction must have either an &#x60;id&#x60; or &#x60;import_id&#x60; specified. If &#x60;id&#x60; is specified as null an &#x60;import_id&#x60; value can be provided which will allow transaction(s) to be updated by their &#x60;import_id&#x60;. If an &#x60;id&#x60; is specified, it will always be used for lookup.
491
491
  # @param [Hash] opts the optional parameters
492
492
  # @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
493
493
  def update_transactions_with_http_info(budget_id, data, opts = {})
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -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.12
10
10
 
11
11
  =end
12
12
 
@@ -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.12
10
10
 
11
11
  =end
12
12