ynab 1.16.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/ynab.rb +12 -8
  4. data/lib/ynab/api/accounts_api.rb +63 -5
  5. data/lib/ynab/api/budgets_api.rb +5 -5
  6. data/lib/ynab/api/categories_api.rb +9 -9
  7. data/lib/ynab/api/deprecated_api.rb +3 -3
  8. data/lib/ynab/api/months_api.rb +5 -5
  9. data/lib/ynab/api/payee_locations_api.rb +9 -9
  10. data/lib/ynab/api/payees_api.rb +7 -7
  11. data/lib/ynab/api/scheduled_transactions_api.rb +5 -5
  12. data/lib/ynab/api/transactions_api.rb +71 -19
  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 +25 -8
  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 +4 -3
  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 +4 -3
  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 +46 -9
  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 +4 -3
  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 +4 -3
  54. data/lib/ynab/models/payee.rb +4 -3
  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_account.rb +250 -0
  65. data/lib/ynab/models/save_account_wrapper.rb +189 -0
  66. data/lib/ynab/models/save_category_response.rb +4 -3
  67. data/lib/ynab/models/save_category_response_data.rb +4 -3
  68. data/lib/ynab/models/save_month_category.rb +4 -3
  69. data/lib/ynab/models/save_month_category_wrapper.rb +4 -3
  70. data/lib/ynab/models/save_sub_transaction.rb +5 -4
  71. data/lib/ynab/models/save_transaction.rb +4 -11
  72. data/lib/ynab/models/save_transaction_wrapper.rb +4 -3
  73. data/lib/ynab/models/save_transactions_response.rb +4 -3
  74. data/lib/ynab/models/save_transactions_response_data.rb +4 -3
  75. data/lib/ynab/models/save_transactions_wrapper.rb +4 -3
  76. data/lib/ynab/models/scheduled_sub_transaction.rb +4 -3
  77. data/lib/ynab/models/scheduled_transaction_detail.rb +4 -11
  78. data/lib/ynab/models/scheduled_transaction_response.rb +4 -3
  79. data/lib/ynab/models/scheduled_transaction_response_data.rb +4 -3
  80. data/lib/ynab/models/scheduled_transaction_summary.rb +4 -11
  81. data/lib/ynab/models/scheduled_transactions_response.rb +4 -3
  82. data/lib/ynab/models/scheduled_transactions_response_data.rb +4 -3
  83. data/lib/ynab/models/sub_transaction.rb +15 -4
  84. data/lib/ynab/models/transaction_detail.rb +4 -11
  85. data/lib/ynab/models/transaction_response.rb +4 -3
  86. data/lib/ynab/models/transaction_response_data.rb +4 -3
  87. data/lib/ynab/models/transaction_summary.rb +4 -11
  88. data/lib/ynab/models/transactions_import_response.rb +189 -0
  89. data/lib/ynab/models/transactions_import_response_data.rb +192 -0
  90. data/lib/ynab/models/transactions_response.rb +4 -3
  91. data/lib/ynab/models/transactions_response_data.rb +4 -3
  92. data/lib/ynab/models/update_transaction.rb +8 -29
  93. data/lib/ynab/models/update_transactions_wrapper.rb +4 -3
  94. data/lib/ynab/models/user.rb +4 -3
  95. data/lib/ynab/models/user_response.rb +4 -3
  96. data/lib/ynab/models/user_response_data.rb +4 -3
  97. data/lib/ynab/version.rb +1 -1
  98. data/spec/api/accounts_spec.rb +19 -10
  99. data/spec/api/budgets_spec.rb +4 -4
  100. data/spec/api/categories_spec.rb +5 -5
  101. data/spec/api/months_spec.rb +4 -4
  102. data/spec/api/payee_locations_spec.rb +4 -4
  103. data/spec/api/payees_spec.rb +4 -4
  104. data/spec/api/scheduled_transactions_spec.rb +4 -4
  105. data/spec/api/transactions_spec.rb +23 -13
  106. data/spec/fixtures/vcr_cassettes/create_account.yml +51 -0
  107. data/spec/fixtures/vcr_cassettes/import_transactions.yml +50 -0
  108. data/spec/models/transaction_detail_spec.rb +11 -0
  109. metadata +12 -2
@@ -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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -88,7 +87,7 @@ module YNAB
88
87
  return nil unless attributes.is_a?(Hash)
89
88
  self.class.swagger_types.each_pair do |key, type|
90
89
  if type =~ /\AArray<(.*)>/i
91
- # check to ensure the input is an array given that the the attribute
90
+ # check to ensure the input is an array given that the attribute
92
91
  # is documented as an array but the input is not
93
92
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
93
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -184,5 +183,7 @@ module YNAB
184
183
  value
185
184
  end
186
185
  end
186
+
187
187
  end
188
+
188
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -140,7 +139,7 @@ module YNAB
140
139
  return nil unless attributes.is_a?(Hash)
141
140
  self.class.swagger_types.each_pair do |key, type|
142
141
  if type =~ /\AArray<(.*)>/i
143
- # check to ensure the input is an array given that the the attribute
142
+ # check to ensure the input is an array given that the attribute
144
143
  # is documented as an array but the input is not
145
144
  if attributes[self.class.attribute_map[key]].is_a?(Array)
146
145
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -236,5 +235,7 @@ module YNAB
236
235
  value
237
236
  end
238
237
  end
238
+
239
239
  end
240
+
240
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -94,7 +93,7 @@ module YNAB
94
93
  return nil unless attributes.is_a?(Hash)
95
94
  self.class.swagger_types.each_pair do |key, type|
96
95
  if type =~ /\AArray<(.*)>/i
97
- # check to ensure the input is an array given that the the attribute
96
+ # check to ensure the input is an array given that the attribute
98
97
  # is documented as an array but the input is not
99
98
  if attributes[self.class.attribute_map[key]].is_a?(Array)
100
99
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -190,5 +189,7 @@ module YNAB
190
189
  value
191
190
  end
192
191
  end
192
+
193
193
  end
194
+
194
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -169,7 +168,7 @@ module YNAB
169
168
  return nil unless attributes.is_a?(Hash)
170
169
  self.class.swagger_types.each_pair do |key, type|
171
170
  if type =~ /\AArray<(.*)>/i
172
- # check to ensure the input is an array given that the the attribute
171
+ # check to ensure the input is an array given that the attribute
173
172
  # is documented as an array but the input is not
174
173
  if attributes[self.class.attribute_map[key]].is_a?(Array)
175
174
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -265,5 +264,7 @@ module YNAB
265
264
  value
266
265
  end
267
266
  end
267
+
268
268
  end
269
+
269
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -318,7 +309,7 @@ module YNAB
318
309
  return nil unless attributes.is_a?(Hash)
319
310
  self.class.swagger_types.each_pair do |key, type|
320
311
  if type =~ /\AArray<(.*)>/i
321
- # check to ensure the input is an array given that the the attribute
312
+ # check to ensure the input is an array given that the attribute
322
313
  # is documented as an array but the input is not
323
314
  if attributes[self.class.attribute_map[key]].is_a?(Array)
324
315
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -414,5 +405,7 @@ module YNAB
414
405
  value
415
406
  end
416
407
  end
408
+
417
409
  end
410
+
418
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -88,7 +87,7 @@ module YNAB
88
87
  return nil unless attributes.is_a?(Hash)
89
88
  self.class.swagger_types.each_pair do |key, type|
90
89
  if type =~ /\AArray<(.*)>/i
91
- # check to ensure the input is an array given that the the attribute
90
+ # check to ensure the input is an array given that the attribute
92
91
  # is documented as an array but the input is not
93
92
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
93
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -184,5 +183,7 @@ module YNAB
184
183
  value
185
184
  end
186
185
  end
186
+
187
187
  end
188
+
188
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -88,7 +87,7 @@ module YNAB
88
87
  return nil unless attributes.is_a?(Hash)
89
88
  self.class.swagger_types.each_pair do |key, type|
90
89
  if type =~ /\AArray<(.*)>/i
91
- # check to ensure the input is an array given that the the attribute
90
+ # check to ensure the input is an array given that the attribute
92
91
  # is documented as an array but the input is not
93
92
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
93
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -184,5 +183,7 @@ module YNAB
184
183
  value
185
184
  end
186
185
  end
186
+
187
187
  end
188
+
188
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -269,7 +260,7 @@ module YNAB
269
260
  return nil unless attributes.is_a?(Hash)
270
261
  self.class.swagger_types.each_pair do |key, type|
271
262
  if type =~ /\AArray<(.*)>/i
272
- # check to ensure the input is an array given that the the attribute
263
+ # check to ensure the input is an array given that the attribute
273
264
  # is documented as an array but the input is not
274
265
  if attributes[self.class.attribute_map[key]].is_a?(Array)
275
266
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -365,5 +356,7 @@ module YNAB
365
356
  value
366
357
  end
367
358
  end
359
+
368
360
  end
361
+
369
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -88,7 +87,7 @@ module YNAB
88
87
  return nil unless attributes.is_a?(Hash)
89
88
  self.class.swagger_types.each_pair do |key, type|
90
89
  if type =~ /\AArray<(.*)>/i
91
- # check to ensure the input is an array given that the the attribute
90
+ # check to ensure the input is an array given that the attribute
92
91
  # is documented as an array but the input is not
93
92
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
93
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -184,5 +183,7 @@ module YNAB
184
183
  value
185
184
  end
186
185
  end
186
+
187
187
  end
188
+
188
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -105,7 +104,7 @@ module YNAB
105
104
  return nil unless attributes.is_a?(Hash)
106
105
  self.class.swagger_types.each_pair do |key, type|
107
106
  if type =~ /\AArray<(.*)>/i
108
- # check to ensure the input is an array given that the the attribute
107
+ # check to ensure the input is an array given that the attribute
109
108
  # is documented as an array but the input is not
110
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
111
110
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -201,5 +200,7 @@ module YNAB
201
200
  value
202
201
  end
203
202
  end
203
+
204
204
  end
205
+
205
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.12
9
+ Swagger Codegen version: 2.4.19
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
@@ -187,7 +196,7 @@ module YNAB
187
196
  return nil unless attributes.is_a?(Hash)
188
197
  self.class.swagger_types.each_pair do |key, type|
189
198
  if type =~ /\AArray<(.*)>/i
190
- # check to ensure the input is an array given that the the attribute
199
+ # check to ensure the input is an array given that the attribute
191
200
  # is documented as an array but the input is not
192
201
  if attributes[self.class.attribute_map[key]].is_a?(Array)
193
202
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -283,5 +292,7 @@ module YNAB
283
292
  value
284
293
  end
285
294
  end
295
+
286
296
  end
297
+
287
298
  end