ynab 1.14.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/ynab.rb +11 -8
  4. data/lib/ynab/api/accounts_api.rb +3 -3
  5. data/lib/ynab/api/budgets_api.rb +6 -3
  6. data/lib/ynab/api/categories_api.rb +7 -7
  7. data/lib/ynab/api/deprecated_api.rb +1 -1
  8. data/lib/ynab/api/months_api.rb +3 -3
  9. data/lib/ynab/api/payee_locations_api.rb +1 -1
  10. data/lib/ynab/api/payees_api.rb +3 -3
  11. data/lib/ynab/api/scheduled_transactions_api.rb +3 -3
  12. data/lib/ynab/api/transactions_api.rb +77 -25
  13. data/lib/ynab/api/user_api.rb +1 -1
  14. data/lib/ynab/api_client.rb +3 -2
  15. data/lib/ynab/configuration.rb +2 -3
  16. data/lib/ynab/models/account.rb +4 -12
  17. data/lib/ynab/models/account_response.rb +4 -3
  18. data/lib/ynab/models/account_response_data.rb +4 -3
  19. data/lib/ynab/models/accounts_response.rb +4 -3
  20. data/lib/ynab/models/accounts_response_data.rb +4 -3
  21. data/lib/ynab/models/budget_detail.rb +4 -3
  22. data/lib/ynab/models/budget_detail_response.rb +4 -3
  23. data/lib/ynab/models/budget_detail_response_data.rb +4 -3
  24. data/lib/ynab/models/budget_settings.rb +4 -3
  25. data/lib/ynab/models/budget_settings_response.rb +4 -3
  26. data/lib/ynab/models/budget_settings_response_data.rb +4 -3
  27. data/lib/ynab/models/budget_summary.rb +20 -7
  28. data/lib/ynab/models/budget_summary_response.rb +4 -3
  29. data/lib/ynab/models/budget_summary_response_data.rb +4 -3
  30. data/lib/ynab/models/bulk_response.rb +4 -3
  31. data/lib/ynab/models/bulk_response_data.rb +4 -3
  32. data/lib/ynab/models/bulk_response_data_bulk.rb +5 -4
  33. data/lib/ynab/models/bulk_transactions.rb +4 -3
  34. data/lib/ynab/models/categories_response.rb +4 -3
  35. data/lib/ynab/models/categories_response_data.rb +4 -3
  36. data/lib/ynab/models/category.rb +6 -39
  37. data/lib/ynab/models/category_group.rb +4 -3
  38. data/lib/ynab/models/category_group_with_categories.rb +4 -3
  39. data/lib/ynab/models/category_response.rb +4 -3
  40. data/lib/ynab/models/category_response_data.rb +4 -3
  41. data/lib/ynab/models/currency_format.rb +4 -3
  42. data/lib/ynab/models/date_format.rb +4 -3
  43. data/lib/ynab/models/error_detail.rb +4 -3
  44. data/lib/ynab/models/error_response.rb +4 -3
  45. data/lib/ynab/models/hybrid_transaction.rb +4 -15
  46. data/lib/ynab/models/hybrid_transactions_response.rb +4 -3
  47. data/lib/ynab/models/hybrid_transactions_response_data.rb +4 -3
  48. data/lib/ynab/models/month_detail.rb +6 -5
  49. data/lib/ynab/models/month_detail_response.rb +4 -3
  50. data/lib/ynab/models/month_detail_response_data.rb +4 -3
  51. data/lib/ynab/models/month_summaries_response.rb +4 -3
  52. data/lib/ynab/models/month_summaries_response_data.rb +4 -3
  53. data/lib/ynab/models/month_summary.rb +6 -5
  54. data/lib/ynab/models/payee.rb +5 -4
  55. data/lib/ynab/models/payee_location.rb +4 -3
  56. data/lib/ynab/models/payee_location_response.rb +4 -3
  57. data/lib/ynab/models/payee_location_response_data.rb +4 -3
  58. data/lib/ynab/models/payee_locations_response.rb +4 -3
  59. data/lib/ynab/models/payee_locations_response_data.rb +4 -3
  60. data/lib/ynab/models/payee_response.rb +4 -3
  61. data/lib/ynab/models/payee_response_data.rb +4 -3
  62. data/lib/ynab/models/payees_response.rb +4 -3
  63. data/lib/ynab/models/payees_response_data.rb +4 -3
  64. data/lib/ynab/models/save_category_response.rb +4 -3
  65. data/lib/ynab/models/save_category_response_data.rb +4 -3
  66. data/lib/ynab/models/save_month_category.rb +4 -3
  67. data/lib/ynab/models/save_month_category_wrapper.rb +4 -3
  68. data/lib/ynab/models/save_sub_transaction.rb +259 -0
  69. data/lib/ynab/models/save_transaction.rb +24 -19
  70. data/lib/ynab/models/save_transaction_wrapper.rb +4 -3
  71. data/lib/ynab/models/save_transactions_response.rb +4 -3
  72. data/lib/ynab/models/save_transactions_response_data.rb +5 -4
  73. data/lib/ynab/models/save_transactions_wrapper.rb +4 -3
  74. data/lib/ynab/models/scheduled_sub_transaction.rb +4 -3
  75. data/lib/ynab/models/scheduled_transaction_detail.rb +4 -11
  76. data/lib/ynab/models/scheduled_transaction_response.rb +4 -3
  77. data/lib/ynab/models/scheduled_transaction_response_data.rb +4 -3
  78. data/lib/ynab/models/scheduled_transaction_summary.rb +4 -11
  79. data/lib/ynab/models/scheduled_transactions_response.rb +4 -3
  80. data/lib/ynab/models/scheduled_transactions_response_data.rb +4 -3
  81. data/lib/ynab/models/sub_transaction.rb +33 -4
  82. data/lib/ynab/models/transaction_detail.rb +4 -11
  83. data/lib/ynab/models/transaction_response.rb +4 -3
  84. data/lib/ynab/models/transaction_response_data.rb +4 -3
  85. data/lib/ynab/models/transaction_summary.rb +4 -11
  86. data/lib/ynab/models/transactions_import_response.rb +189 -0
  87. data/lib/ynab/models/transactions_import_response_data.rb +192 -0
  88. data/lib/ynab/models/transactions_response.rb +4 -3
  89. data/lib/ynab/models/transactions_response_data.rb +4 -3
  90. data/lib/ynab/models/update_transaction.rb +18 -27
  91. data/lib/ynab/models/update_transactions_wrapper.rb +4 -3
  92. data/lib/ynab/models/user.rb +4 -3
  93. data/lib/ynab/models/user_response.rb +4 -3
  94. data/lib/ynab/models/user_response_data.rb +4 -3
  95. data/lib/ynab/version.rb +1 -1
  96. data/spec/api/transactions_spec.rb +11 -0
  97. data/spec/fixtures/vcr_cassettes/import_transactions.yml +50 -0
  98. data/spec/models/transaction_detail_spec.rb +11 -0
  99. metadata +22 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc50ba196fdd409a7569cd1fe7b2200d97f2dedc297b6205736c39c03ea7bed8
4
- data.tar.gz: 9c37e8bbdd4f441081fa0deb5cd52c5c8ace84174137d03ab5453585dd90acb1
3
+ metadata.gz: 35449c67dfda4654fc34d34788605b3bf86d6e4bcbf46886669fcfd3c2e0388d
4
+ data.tar.gz: 985b6590906244ec3a54086ccfb8f708c3e012500c05e50d26644bc455f4e84a
5
5
  SHA512:
6
- metadata.gz: 6eb7e523ffd9daf2e2804064c58a2e15bae7eee3892a64b0cf0a36ab685524d9cd81bcb941d52641a0b0089b6192f49d62d01ab5514e6b26612b7ea335082a09
7
- data.tar.gz: b867e688d20cab6bea63f792257244afb94bcce89455d620164d0dbde74076992a1a2479c66dde71ef161e081e9d6eb8350244ace5ff37cdb69ac6f171f01e22
6
+ metadata.gz: 859803774748aaf17a35f76469b1d492660e414d3690e7fccffa6df97378bebb8d197607b3222f082e6aacfbabbb0aea1f85f8702746a78eca0ff0443c39c95c
7
+ data.tar.gz: b118379b5530965699fd5c38ff0cdc4f553647ea9a15fb7c957f1c19731bee2062247a9fb7a4f03dd051baf1b3746b7a63b47d5e6325af875cd6bec6a753db2d
data/README.md CHANGED
@@ -71,6 +71,7 @@ The following methods are available in this library.
71
71
  | | [transactions.create_transactions(budget_id, data)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#create_transaction) | Creates multiple transactions |
72
72
  | | [transactions.update_transaction(budget_id, id, data)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#update_transaction) | Updates a single transaction |
73
73
  | | [transactions.update_transactions(budget_id, data)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#update_transactions) | Updates multiple transactions |
74
+ | | [transactions.import_transactions(budget_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/TransactionsApi.md#import_transactions) | Imports transactions |
74
75
  | **Scheduled Transactions** | [scheduled_transactions.get_scheduled_transactions(budget_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/ScheduledTransactionsApi.md#get_scheduled_transactions) | Returns all scheduled transactions |
75
76
  | | [scheduled_transactions.get_scheduled_transaction_by_id(budget_id, scheduled_transaction_id)](https://github.com/ynab/ynab-sdk-ruby/blob/master/docs/ScheduledTransactionsApi.md#get_scheduled_transaction_by_id) | Returns a single scheduled transaction |
76
77
 
@@ -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.15
10
10
 
11
11
  =end
12
12
 
@@ -22,6 +22,7 @@ require 'ynab/models/account_response'
22
22
  require 'ynab/models/account_response_data'
23
23
  require 'ynab/models/accounts_response'
24
24
  require 'ynab/models/accounts_response_data'
25
+ require 'ynab/models/budget_detail'
25
26
  require 'ynab/models/budget_detail_response'
26
27
  require 'ynab/models/budget_detail_response_data'
27
28
  require 'ynab/models/budget_settings'
@@ -38,14 +39,17 @@ require 'ynab/models/categories_response'
38
39
  require 'ynab/models/categories_response_data'
39
40
  require 'ynab/models/category'
40
41
  require 'ynab/models/category_group'
42
+ require 'ynab/models/category_group_with_categories'
41
43
  require 'ynab/models/category_response'
42
44
  require 'ynab/models/category_response_data'
43
45
  require 'ynab/models/currency_format'
44
46
  require 'ynab/models/date_format'
45
47
  require 'ynab/models/error_detail'
46
48
  require 'ynab/models/error_response'
49
+ require 'ynab/models/hybrid_transaction'
47
50
  require 'ynab/models/hybrid_transactions_response'
48
51
  require 'ynab/models/hybrid_transactions_response_data'
52
+ require 'ynab/models/month_detail'
49
53
  require 'ynab/models/month_detail_response'
50
54
  require 'ynab/models/month_detail_response_data'
51
55
  require 'ynab/models/month_summaries_response'
@@ -65,34 +69,33 @@ require 'ynab/models/save_category_response'
65
69
  require 'ynab/models/save_category_response_data'
66
70
  require 'ynab/models/save_month_category'
67
71
  require 'ynab/models/save_month_category_wrapper'
72
+ require 'ynab/models/save_sub_transaction'
68
73
  require 'ynab/models/save_transaction'
69
74
  require 'ynab/models/save_transaction_wrapper'
70
75
  require 'ynab/models/save_transactions_response'
71
76
  require 'ynab/models/save_transactions_response_data'
72
77
  require 'ynab/models/save_transactions_wrapper'
73
78
  require 'ynab/models/scheduled_sub_transaction'
79
+ require 'ynab/models/scheduled_transaction_detail'
74
80
  require 'ynab/models/scheduled_transaction_response'
75
81
  require 'ynab/models/scheduled_transaction_response_data'
76
82
  require 'ynab/models/scheduled_transaction_summary'
77
83
  require 'ynab/models/scheduled_transactions_response'
78
84
  require 'ynab/models/scheduled_transactions_response_data'
79
85
  require 'ynab/models/sub_transaction'
86
+ require 'ynab/models/transaction_detail'
80
87
  require 'ynab/models/transaction_response'
81
88
  require 'ynab/models/transaction_response_data'
82
89
  require 'ynab/models/transaction_summary'
90
+ require 'ynab/models/transactions_import_response'
91
+ require 'ynab/models/transactions_import_response_data'
83
92
  require 'ynab/models/transactions_response'
84
93
  require 'ynab/models/transactions_response_data'
94
+ require 'ynab/models/update_transaction'
85
95
  require 'ynab/models/update_transactions_wrapper'
86
96
  require 'ynab/models/user'
87
97
  require 'ynab/models/user_response'
88
98
  require 'ynab/models/user_response_data'
89
- require 'ynab/models/budget_detail'
90
- require 'ynab/models/category_group_with_categories'
91
- require 'ynab/models/hybrid_transaction'
92
- require 'ynab/models/month_detail'
93
- require 'ynab/models/scheduled_transaction_detail'
94
- require 'ynab/models/transaction_detail'
95
- require 'ynab/models/update_transaction'
96
99
 
97
100
  # APIs
98
101
  require 'ynab/api/accounts_api'
@@ -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.15
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.15
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.15
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.15
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.15
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.15
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.15
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.15
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.15
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
@@ -409,6 +409,58 @@ module YNAB
409
409
  end
410
410
  return data, status_code, headers
411
411
  end
412
+ # Import transactions
413
+ # Imports transactions.
414
+ # @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)
415
+ # @param [Hash] opts the optional parameters
416
+ # @return [TransactionsImportResponse]
417
+ def import_transactions(budget_id, opts = {})
418
+ data, _status_code, _headers = import_transactions_with_http_info(budget_id, opts)
419
+ data
420
+ end
421
+
422
+ # Import transactions
423
+ # Imports transactions.
424
+ # @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)
425
+ # @param [Hash] opts the optional parameters
426
+ # @return [Array<(TransactionsImportResponse, Fixnum, Hash)>] TransactionsImportResponse data, response status code and response headers
427
+ def import_transactions_with_http_info(budget_id, opts = {})
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug 'Calling API: TransactionsApi.import_transactions ...'
430
+ end
431
+ # verify the required parameter 'budget_id' is set
432
+ if @api_client.config.client_side_validation && budget_id.nil?
433
+ fail ArgumentError, "Missing the required parameter 'budget_id' when calling TransactionsApi.import_transactions"
434
+ end
435
+ # resource path
436
+ local_var_path = '/budgets/{budget_id}/transactions/import'.sub('{' + 'budget_id' + '}', budget_id.to_s)
437
+
438
+ # query parameters
439
+ query_params = {}
440
+
441
+ # header parameters
442
+ header_params = {}
443
+ # HTTP header 'Accept' (if needed)
444
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
445
+
446
+ # form parameters
447
+ form_params = {}
448
+
449
+ # http body (model)
450
+ post_body = nil
451
+ auth_names = ['bearer']
452
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
453
+ :header_params => header_params,
454
+ :query_params => query_params,
455
+ :form_params => form_params,
456
+ :body => post_body,
457
+ :auth_names => auth_names,
458
+ :return_type => 'TransactionsImportResponse')
459
+ if @api_client.config.debugging
460
+ @api_client.config.logger.debug "API called: TransactionsApi#import_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
461
+ end
462
+ return data, status_code, headers
463
+ end
412
464
  # Updates an existing transaction
413
465
  # Updates a transaction
414
466
  # @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)
@@ -474,9 +526,9 @@ module YNAB
474
526
  return data, status_code, headers
475
527
  end
476
528
  # Update multiple transactions
477
- # Updates multiple transactions, by 'id' or 'import_id'.
529
+ # Updates multiple transactions, by `id` or `import_id`.
478
530
  # @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.
531
+ # @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
532
  # @param [Hash] opts the optional parameters
481
533
  # @return [SaveTransactionsResponse]
482
534
  def update_transactions(budget_id, data, opts = {})
@@ -485,9 +537,9 @@ module YNAB
485
537
  end
486
538
 
487
539
  # Update multiple transactions
488
- # Updates multiple transactions, by &#39;id&#39; or &#39;import_id&#39;.
540
+ # Updates multiple transactions, by &#x60;id&#x60; or &#x60;import_id&#x60;.
489
541
  # @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.
542
+ # @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
543
  # @param [Hash] opts the optional parameters
492
544
  # @return [Array<(SaveTransactionsResponse, Fixnum, Hash)>] SaveTransactionsResponse data, response status code and response headers
493
545
  def update_transactions_with_http_info(budget_id, data, opts = {})