ynab 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ynab.rb +8 -8
- data/lib/ynab/api/accounts_api.rb +1 -1
- data/lib/ynab/api/budgets_api.rb +1 -1
- data/lib/ynab/api/categories_api.rb +1 -1
- data/lib/ynab/api/deprecated_api.rb +1 -1
- data/lib/ynab/api/months_api.rb +1 -1
- data/lib/ynab/api/payee_locations_api.rb +1 -1
- data/lib/ynab/api/payees_api.rb +1 -1
- data/lib/ynab/api/scheduled_transactions_api.rb +1 -1
- data/lib/ynab/api/transactions_api.rb +1 -1
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +1 -1
- data/lib/ynab/configuration.rb +1 -1
- data/lib/ynab/models/account.rb +2 -6
- data/lib/ynab/models/account_response.rb +2 -2
- data/lib/ynab/models/account_response_data.rb +2 -2
- data/lib/ynab/models/accounts_response.rb +2 -2
- data/lib/ynab/models/accounts_response_data.rb +2 -2
- data/lib/ynab/models/budget_detail.rb +2 -2
- data/lib/ynab/models/budget_detail_response.rb +2 -2
- data/lib/ynab/models/budget_detail_response_data.rb +2 -2
- data/lib/ynab/models/budget_settings.rb +2 -2
- data/lib/ynab/models/budget_settings_response.rb +2 -2
- data/lib/ynab/models/budget_settings_response_data.rb +2 -2
- data/lib/ynab/models/budget_summary.rb +2 -2
- data/lib/ynab/models/budget_summary_response.rb +2 -2
- data/lib/ynab/models/budget_summary_response_data.rb +2 -2
- data/lib/ynab/models/bulk_response.rb +2 -2
- data/lib/ynab/models/bulk_response_data.rb +2 -2
- data/lib/ynab/models/bulk_response_data_bulk.rb +2 -2
- data/lib/ynab/models/bulk_transactions.rb +2 -2
- data/lib/ynab/models/categories_response.rb +2 -2
- data/lib/ynab/models/categories_response_data.rb +2 -2
- data/lib/ynab/models/category.rb +2 -6
- data/lib/ynab/models/category_group.rb +2 -2
- data/lib/ynab/models/category_group_with_categories.rb +2 -2
- data/lib/ynab/models/category_response.rb +2 -2
- data/lib/ynab/models/category_response_data.rb +2 -2
- data/lib/ynab/models/currency_format.rb +2 -2
- data/lib/ynab/models/date_format.rb +2 -2
- data/lib/ynab/models/error_detail.rb +2 -2
- data/lib/ynab/models/error_response.rb +2 -2
- data/lib/ynab/models/hybrid_transaction.rb +2 -14
- data/lib/ynab/models/hybrid_transactions_response.rb +2 -2
- data/lib/ynab/models/hybrid_transactions_response_data.rb +2 -2
- data/lib/ynab/models/month_detail.rb +2 -2
- data/lib/ynab/models/month_detail_response.rb +2 -2
- data/lib/ynab/models/month_detail_response_data.rb +2 -2
- data/lib/ynab/models/month_summaries_response.rb +2 -2
- data/lib/ynab/models/month_summaries_response_data.rb +2 -2
- data/lib/ynab/models/month_summary.rb +2 -2
- data/lib/ynab/models/payee.rb +2 -2
- data/lib/ynab/models/payee_location.rb +2 -2
- data/lib/ynab/models/payee_location_response.rb +2 -2
- data/lib/ynab/models/payee_location_response_data.rb +2 -2
- data/lib/ynab/models/payee_locations_response.rb +2 -2
- data/lib/ynab/models/payee_locations_response_data.rb +2 -2
- data/lib/ynab/models/payee_response.rb +2 -2
- data/lib/ynab/models/payee_response_data.rb +2 -2
- data/lib/ynab/models/payees_response.rb +2 -2
- data/lib/ynab/models/payees_response_data.rb +2 -2
- data/lib/ynab/models/save_category_response.rb +2 -2
- data/lib/ynab/models/save_category_response_data.rb +2 -2
- data/lib/ynab/models/save_month_category.rb +2 -2
- data/lib/ynab/models/save_month_category_wrapper.rb +2 -2
- data/lib/ynab/models/save_sub_transaction.rb +2 -2
- data/lib/ynab/models/save_transaction.rb +2 -10
- data/lib/ynab/models/save_transaction_wrapper.rb +2 -2
- data/lib/ynab/models/save_transactions_response.rb +2 -2
- data/lib/ynab/models/save_transactions_response_data.rb +2 -2
- data/lib/ynab/models/save_transactions_wrapper.rb +2 -2
- data/lib/ynab/models/scheduled_sub_transaction.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_detail.rb +2 -10
- data/lib/ynab/models/scheduled_transaction_response.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_response_data.rb +2 -2
- data/lib/ynab/models/scheduled_transaction_summary.rb +2 -10
- data/lib/ynab/models/scheduled_transactions_response.rb +2 -2
- data/lib/ynab/models/scheduled_transactions_response_data.rb +2 -2
- data/lib/ynab/models/sub_transaction.rb +13 -3
- data/lib/ynab/models/transaction_detail.rb +2 -10
- data/lib/ynab/models/transaction_response.rb +2 -2
- data/lib/ynab/models/transaction_response_data.rb +2 -2
- data/lib/ynab/models/transaction_summary.rb +2 -10
- data/lib/ynab/models/transactions_import_response.rb +2 -2
- data/lib/ynab/models/transactions_import_response_data.rb +2 -2
- data/lib/ynab/models/transactions_response.rb +2 -2
- data/lib/ynab/models/transactions_response_data.rb +2 -2
- data/lib/ynab/models/update_transaction.rb +6 -28
- data/lib/ynab/models/update_transactions_wrapper.rb +2 -2
- data/lib/ynab/models/user.rb +2 -2
- data/lib/ynab/models/user_response.rb +2 -2
- data/lib/ynab/models/user_response_data.rb +2 -2
- data/lib/ynab/version.rb +1 -1
- data/spec/models/transaction_detail_spec.rb +11 -0
- metadata +17 -15
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,6 @@ module YNAB
|
|
81
81
|
def hash
|
82
82
|
[budgeted].hash
|
83
83
|
end
|
84
|
-
|
85
84
|
# Builds the object from hash
|
86
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
86
|
# @return [Object] Returns the model itself
|
@@ -187,4 +186,5 @@ module YNAB
|
|
187
186
|
end
|
188
187
|
|
189
188
|
end
|
189
|
+
|
190
190
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[category].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -186,4 +185,5 @@ module YNAB
|
|
186
185
|
end
|
187
186
|
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -150,7 +150,6 @@ module YNAB
|
|
150
150
|
def hash
|
151
151
|
[amount, payee_id, payee_name, category_id, memo].hash
|
152
152
|
end
|
153
|
-
|
154
153
|
# Builds the object from hash
|
155
154
|
# @param [Hash] attributes Model attributes in the form of hash
|
156
155
|
# @return [Object] Returns the model itself
|
@@ -256,4 +255,5 @@ module YNAB
|
|
256
255
|
end
|
257
256
|
|
258
257
|
end
|
258
|
+
|
259
259
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -235,20 +235,12 @@ module YNAB
|
|
235
235
|
# Custom attribute writer method checking allowed values (enum).
|
236
236
|
# @param [Object] cleared Object to be assigned
|
237
237
|
def cleared=(cleared)
|
238
|
-
validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
|
239
|
-
unless validator.valid?(cleared)
|
240
|
-
fail ArgumentError, 'invalid value for "cleared", must be one of #{validator.allowable_values}.'
|
241
|
-
end
|
242
238
|
@cleared = cleared
|
243
239
|
end
|
244
240
|
|
245
241
|
# Custom attribute writer method checking allowed values (enum).
|
246
242
|
# @param [Object] flag_color Object to be assigned
|
247
243
|
def flag_color=(flag_color)
|
248
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
249
|
-
unless validator.valid?(flag_color)
|
250
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
251
|
-
end
|
252
244
|
@flag_color = flag_color
|
253
245
|
end
|
254
246
|
|
@@ -292,7 +284,6 @@ module YNAB
|
|
292
284
|
def hash
|
293
285
|
[account_id, date, amount, payee_id, payee_name, category_id, memo, cleared, approved, flag_color, import_id, subtransactions].hash
|
294
286
|
end
|
295
|
-
|
296
287
|
# Builds the object from hash
|
297
288
|
# @param [Hash] attributes Model attributes in the form of hash
|
298
289
|
# @return [Object] Returns the model itself
|
@@ -398,4 +389,5 @@ module YNAB
|
|
398
389
|
end
|
399
390
|
|
400
391
|
end
|
392
|
+
|
401
393
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[transaction].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -186,4 +185,5 @@ module YNAB
|
|
186
185
|
end
|
187
186
|
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[data].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -186,4 +185,5 @@ module YNAB
|
|
186
185
|
end
|
187
186
|
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -132,7 +132,6 @@ module YNAB
|
|
132
132
|
def hash
|
133
133
|
[transaction_ids, transaction, transactions, duplicate_import_ids, server_knowledge].hash
|
134
134
|
end
|
135
|
-
|
136
135
|
# Builds the object from hash
|
137
136
|
# @param [Hash] attributes Model attributes in the form of hash
|
138
137
|
# @return [Object] Returns the model itself
|
@@ -238,4 +237,5 @@ module YNAB
|
|
238
237
|
end
|
239
238
|
|
240
239
|
end
|
240
|
+
|
241
241
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,7 +86,6 @@ module YNAB
|
|
86
86
|
def hash
|
87
87
|
[transaction, transactions].hash
|
88
88
|
end
|
89
|
-
|
90
89
|
# Builds the object from hash
|
91
90
|
# @param [Hash] attributes Model attributes in the form of hash
|
92
91
|
# @return [Object] Returns the model itself
|
@@ -192,4 +191,5 @@ module YNAB
|
|
192
191
|
end
|
193
192
|
|
194
193
|
end
|
194
|
+
|
195
195
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -161,7 +161,6 @@ module YNAB
|
|
161
161
|
def hash
|
162
162
|
[id, scheduled_transaction_id, amount, memo, payee_id, category_id, transfer_account_id, deleted].hash
|
163
163
|
end
|
164
|
-
|
165
164
|
# Builds the object from hash
|
166
165
|
# @param [Hash] attributes Model attributes in the form of hash
|
167
166
|
# @return [Object] Returns the model itself
|
@@ -267,4 +266,5 @@ module YNAB
|
|
267
266
|
end
|
268
267
|
|
269
268
|
end
|
269
|
+
|
270
270
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -259,20 +259,12 @@ module YNAB
|
|
259
259
|
# Custom attribute writer method checking allowed values (enum).
|
260
260
|
# @param [Object] frequency Object to be assigned
|
261
261
|
def frequency=(frequency)
|
262
|
-
validator = EnumAttributeValidator.new('String', ['never', 'daily', 'weekly', 'everyOtherWeek', 'twiceAMonth', 'every4Weeks', 'monthly', 'everyOtherMonth', 'every3Months', 'every4Months', 'twiceAYear', 'yearly', 'everyOtherYear'])
|
263
|
-
unless validator.valid?(frequency)
|
264
|
-
fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
|
265
|
-
end
|
266
262
|
@frequency = frequency
|
267
263
|
end
|
268
264
|
|
269
265
|
# Custom attribute writer method checking allowed values (enum).
|
270
266
|
# @param [Object] flag_color Object to be assigned
|
271
267
|
def flag_color=(flag_color)
|
272
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
273
|
-
unless validator.valid?(flag_color)
|
274
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
275
|
-
end
|
276
268
|
@flag_color = flag_color
|
277
269
|
end
|
278
270
|
|
@@ -310,7 +302,6 @@ module YNAB
|
|
310
302
|
def hash
|
311
303
|
[id, date_first, date_next, frequency, amount, memo, flag_color, account_id, payee_id, category_id, transfer_account_id, deleted, account_name, payee_name, category_name, subtransactions].hash
|
312
304
|
end
|
313
|
-
|
314
305
|
# Builds the object from hash
|
315
306
|
# @param [Hash] attributes Model attributes in the form of hash
|
316
307
|
# @return [Object] Returns the model itself
|
@@ -416,4 +407,5 @@ module YNAB
|
|
416
407
|
end
|
417
408
|
|
418
409
|
end
|
410
|
+
|
419
411
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[data].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -186,4 +185,5 @@ module YNAB
|
|
186
185
|
end
|
187
186
|
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[scheduled_transaction].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -186,4 +185,5 @@ module YNAB
|
|
186
185
|
end
|
187
186
|
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -214,20 +214,12 @@ module YNAB
|
|
214
214
|
# Custom attribute writer method checking allowed values (enum).
|
215
215
|
# @param [Object] frequency Object to be assigned
|
216
216
|
def frequency=(frequency)
|
217
|
-
validator = EnumAttributeValidator.new('String', ['never', 'daily', 'weekly', 'everyOtherWeek', 'twiceAMonth', 'every4Weeks', 'monthly', 'everyOtherMonth', 'every3Months', 'every4Months', 'twiceAYear', 'yearly', 'everyOtherYear'])
|
218
|
-
unless validator.valid?(frequency)
|
219
|
-
fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
|
220
|
-
end
|
221
217
|
@frequency = frequency
|
222
218
|
end
|
223
219
|
|
224
220
|
# Custom attribute writer method checking allowed values (enum).
|
225
221
|
# @param [Object] flag_color Object to be assigned
|
226
222
|
def flag_color=(flag_color)
|
227
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
228
|
-
unless validator.valid?(flag_color)
|
229
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
230
|
-
end
|
231
223
|
@flag_color = flag_color
|
232
224
|
end
|
233
225
|
|
@@ -261,7 +253,6 @@ module YNAB
|
|
261
253
|
def hash
|
262
254
|
[id, date_first, date_next, frequency, amount, memo, flag_color, account_id, payee_id, category_id, transfer_account_id, deleted].hash
|
263
255
|
end
|
264
|
-
|
265
256
|
# Builds the object from hash
|
266
257
|
# @param [Hash] attributes Model attributes in the form of hash
|
267
258
|
# @return [Object] Returns the model itself
|
@@ -367,4 +358,5 @@ module YNAB
|
|
367
358
|
end
|
368
359
|
|
369
360
|
end
|
361
|
+
|
370
362
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[data].hash
|
82
82
|
end
|
83
|
-
|
84
83
|
# Builds the object from hash
|
85
84
|
# @param [Hash] attributes Model attributes in the form of hash
|
86
85
|
# @return [Object] Returns the model itself
|
@@ -186,4 +185,5 @@ module YNAB
|
|
186
185
|
end
|
187
186
|
|
188
187
|
end
|
188
|
+
|
189
189
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -97,7 +97,6 @@ module YNAB
|
|
97
97
|
def hash
|
98
98
|
[scheduled_transactions, server_knowledge].hash
|
99
99
|
end
|
100
|
-
|
101
100
|
# Builds the object from hash
|
102
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
103
102
|
# @return [Object] Returns the model itself
|
@@ -203,4 +202,5 @@ module YNAB
|
|
203
202
|
end
|
204
203
|
|
205
204
|
end
|
205
|
+
|
206
206
|
end
|
@@ -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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,6 +34,9 @@ module YNAB
|
|
34
34
|
# If a transfer, the account_id which the subtransaction transfers to
|
35
35
|
attr_accessor :transfer_account_id
|
36
36
|
|
37
|
+
# If a transfer, the id of transaction on the other side of the transfer
|
38
|
+
attr_accessor :transfer_transaction_id
|
39
|
+
|
37
40
|
# Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
|
38
41
|
attr_accessor :deleted
|
39
42
|
|
@@ -49,6 +52,7 @@ module YNAB
|
|
49
52
|
:'category_id' => :'category_id',
|
50
53
|
:'category_name' => :'category_name',
|
51
54
|
:'transfer_account_id' => :'transfer_account_id',
|
55
|
+
:'transfer_transaction_id' => :'transfer_transaction_id',
|
52
56
|
:'deleted' => :'deleted'
|
53
57
|
}
|
54
58
|
end
|
@@ -65,6 +69,7 @@ module YNAB
|
|
65
69
|
:'category_id' => :'String',
|
66
70
|
:'category_name' => :'String',
|
67
71
|
:'transfer_account_id' => :'String',
|
72
|
+
:'transfer_transaction_id' => :'String',
|
68
73
|
:'deleted' => :'BOOLEAN'
|
69
74
|
}
|
70
75
|
end
|
@@ -113,6 +118,10 @@ module YNAB
|
|
113
118
|
self.transfer_account_id = attributes[:'transfer_account_id']
|
114
119
|
end
|
115
120
|
|
121
|
+
if attributes.has_key?(:'transfer_transaction_id')
|
122
|
+
self.transfer_transaction_id = attributes[:'transfer_transaction_id']
|
123
|
+
end
|
124
|
+
|
116
125
|
if attributes.has_key?(:'deleted')
|
117
126
|
self.deleted = attributes[:'deleted']
|
118
127
|
end
|
@@ -165,6 +174,7 @@ module YNAB
|
|
165
174
|
category_id == o.category_id &&
|
166
175
|
category_name == o.category_name &&
|
167
176
|
transfer_account_id == o.transfer_account_id &&
|
177
|
+
transfer_transaction_id == o.transfer_transaction_id &&
|
168
178
|
deleted == o.deleted
|
169
179
|
end
|
170
180
|
|
@@ -177,9 +187,8 @@ module YNAB
|
|
177
187
|
# Calculates hash code according to all attributes.
|
178
188
|
# @return [Fixnum] Hash code
|
179
189
|
def hash
|
180
|
-
[id, transaction_id, amount, memo, payee_id, payee_name, category_id, category_name, transfer_account_id, deleted].hash
|
190
|
+
[id, transaction_id, amount, memo, payee_id, payee_name, category_id, category_name, transfer_account_id, transfer_transaction_id, deleted].hash
|
181
191
|
end
|
182
|
-
|
183
192
|
# Builds the object from hash
|
184
193
|
# @param [Hash] attributes Model attributes in the form of hash
|
185
194
|
# @return [Object] Returns the model itself
|
@@ -285,4 +294,5 @@ module YNAB
|
|
285
294
|
end
|
286
295
|
|
287
296
|
end
|
297
|
+
|
288
298
|
end
|