ynab 1.14.0 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/ynab.rb +11 -8
- data/lib/ynab/api/accounts_api.rb +3 -3
- data/lib/ynab/api/budgets_api.rb +6 -3
- data/lib/ynab/api/categories_api.rb +7 -7
- data/lib/ynab/api/deprecated_api.rb +1 -1
- data/lib/ynab/api/months_api.rb +3 -3
- data/lib/ynab/api/payee_locations_api.rb +1 -1
- data/lib/ynab/api/payees_api.rb +3 -3
- data/lib/ynab/api/scheduled_transactions_api.rb +3 -3
- data/lib/ynab/api/transactions_api.rb +77 -25
- data/lib/ynab/api/user_api.rb +1 -1
- data/lib/ynab/api_client.rb +3 -2
- data/lib/ynab/configuration.rb +2 -3
- data/lib/ynab/models/account.rb +4 -12
- data/lib/ynab/models/account_response.rb +4 -3
- data/lib/ynab/models/account_response_data.rb +4 -3
- data/lib/ynab/models/accounts_response.rb +4 -3
- data/lib/ynab/models/accounts_response_data.rb +4 -3
- data/lib/ynab/models/budget_detail.rb +4 -3
- data/lib/ynab/models/budget_detail_response.rb +4 -3
- data/lib/ynab/models/budget_detail_response_data.rb +4 -3
- data/lib/ynab/models/budget_settings.rb +4 -3
- data/lib/ynab/models/budget_settings_response.rb +4 -3
- data/lib/ynab/models/budget_settings_response_data.rb +4 -3
- data/lib/ynab/models/budget_summary.rb +20 -7
- data/lib/ynab/models/budget_summary_response.rb +4 -3
- data/lib/ynab/models/budget_summary_response_data.rb +4 -3
- data/lib/ynab/models/bulk_response.rb +4 -3
- data/lib/ynab/models/bulk_response_data.rb +4 -3
- data/lib/ynab/models/bulk_response_data_bulk.rb +5 -4
- data/lib/ynab/models/bulk_transactions.rb +4 -3
- data/lib/ynab/models/categories_response.rb +4 -3
- data/lib/ynab/models/categories_response_data.rb +4 -3
- data/lib/ynab/models/category.rb +6 -39
- data/lib/ynab/models/category_group.rb +4 -3
- data/lib/ynab/models/category_group_with_categories.rb +4 -3
- data/lib/ynab/models/category_response.rb +4 -3
- data/lib/ynab/models/category_response_data.rb +4 -3
- data/lib/ynab/models/currency_format.rb +4 -3
- data/lib/ynab/models/date_format.rb +4 -3
- data/lib/ynab/models/error_detail.rb +4 -3
- data/lib/ynab/models/error_response.rb +4 -3
- data/lib/ynab/models/hybrid_transaction.rb +4 -15
- data/lib/ynab/models/hybrid_transactions_response.rb +4 -3
- data/lib/ynab/models/hybrid_transactions_response_data.rb +4 -3
- data/lib/ynab/models/month_detail.rb +6 -5
- data/lib/ynab/models/month_detail_response.rb +4 -3
- data/lib/ynab/models/month_detail_response_data.rb +4 -3
- data/lib/ynab/models/month_summaries_response.rb +4 -3
- data/lib/ynab/models/month_summaries_response_data.rb +4 -3
- data/lib/ynab/models/month_summary.rb +6 -5
- data/lib/ynab/models/payee.rb +5 -4
- data/lib/ynab/models/payee_location.rb +4 -3
- data/lib/ynab/models/payee_location_response.rb +4 -3
- data/lib/ynab/models/payee_location_response_data.rb +4 -3
- data/lib/ynab/models/payee_locations_response.rb +4 -3
- data/lib/ynab/models/payee_locations_response_data.rb +4 -3
- data/lib/ynab/models/payee_response.rb +4 -3
- data/lib/ynab/models/payee_response_data.rb +4 -3
- data/lib/ynab/models/payees_response.rb +4 -3
- data/lib/ynab/models/payees_response_data.rb +4 -3
- data/lib/ynab/models/save_category_response.rb +4 -3
- data/lib/ynab/models/save_category_response_data.rb +4 -3
- data/lib/ynab/models/save_month_category.rb +4 -3
- data/lib/ynab/models/save_month_category_wrapper.rb +4 -3
- data/lib/ynab/models/save_sub_transaction.rb +259 -0
- data/lib/ynab/models/save_transaction.rb +24 -19
- data/lib/ynab/models/save_transaction_wrapper.rb +4 -3
- data/lib/ynab/models/save_transactions_response.rb +4 -3
- data/lib/ynab/models/save_transactions_response_data.rb +5 -4
- data/lib/ynab/models/save_transactions_wrapper.rb +4 -3
- data/lib/ynab/models/scheduled_sub_transaction.rb +4 -3
- data/lib/ynab/models/scheduled_transaction_detail.rb +4 -11
- data/lib/ynab/models/scheduled_transaction_response.rb +4 -3
- data/lib/ynab/models/scheduled_transaction_response_data.rb +4 -3
- data/lib/ynab/models/scheduled_transaction_summary.rb +4 -11
- data/lib/ynab/models/scheduled_transactions_response.rb +4 -3
- data/lib/ynab/models/scheduled_transactions_response_data.rb +4 -3
- data/lib/ynab/models/sub_transaction.rb +33 -4
- data/lib/ynab/models/transaction_detail.rb +4 -11
- data/lib/ynab/models/transaction_response.rb +4 -3
- data/lib/ynab/models/transaction_response_data.rb +4 -3
- data/lib/ynab/models/transaction_summary.rb +4 -11
- data/lib/ynab/models/transactions_import_response.rb +189 -0
- data/lib/ynab/models/transactions_import_response_data.rb +192 -0
- data/lib/ynab/models/transactions_response.rb +4 -3
- data/lib/ynab/models/transactions_response_data.rb +4 -3
- data/lib/ynab/models/update_transaction.rb +18 -27
- data/lib/ynab/models/update_transactions_wrapper.rb +4 -3
- data/lib/ynab/models/user.rb +4 -3
- data/lib/ynab/models/user_response.rb +4 -3
- data/lib/ynab/models/user_response_data.rb +4 -3
- data/lib/ynab/version.rb +1 -1
- data/spec/api/transactions_spec.rb +11 -0
- data/spec/fixtures/vcr_cassettes/import_transactions.yml +50 -0
- data/spec/models/transaction_detail_spec.rb +11 -0
- metadata +22 -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
|
|
@@ -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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,7 +23,7 @@ module YNAB
|
|
23
23
|
# If multiple transactions were specified, the transactions that were saved
|
24
24
|
attr_accessor :transactions
|
25
25
|
|
26
|
-
# If multiple transactions were specified, a list of import_ids that were not created because of an existing import_id found on the same account
|
26
|
+
# If multiple transactions were specified, a list of import_ids that were not created because of an existing `import_id` found on the same account
|
27
27
|
attr_accessor :duplicate_import_ids
|
28
28
|
|
29
29
|
# The knowledge of the server
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -25,11 +25,18 @@ module YNAB
|
|
25
25
|
|
26
26
|
attr_accessor :payee_id
|
27
27
|
|
28
|
+
attr_accessor :payee_name
|
29
|
+
|
28
30
|
attr_accessor :category_id
|
29
31
|
|
32
|
+
attr_accessor :category_name
|
33
|
+
|
30
34
|
# If a transfer, the account_id which the subtransaction transfers to
|
31
35
|
attr_accessor :transfer_account_id
|
32
36
|
|
37
|
+
# If a transfer, the id of transaction on the other side of the transfer
|
38
|
+
attr_accessor :transfer_transaction_id
|
39
|
+
|
33
40
|
# Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
|
34
41
|
attr_accessor :deleted
|
35
42
|
|
@@ -41,8 +48,11 @@ module YNAB
|
|
41
48
|
:'amount' => :'amount',
|
42
49
|
:'memo' => :'memo',
|
43
50
|
:'payee_id' => :'payee_id',
|
51
|
+
:'payee_name' => :'payee_name',
|
44
52
|
:'category_id' => :'category_id',
|
53
|
+
:'category_name' => :'category_name',
|
45
54
|
:'transfer_account_id' => :'transfer_account_id',
|
55
|
+
:'transfer_transaction_id' => :'transfer_transaction_id',
|
46
56
|
:'deleted' => :'deleted'
|
47
57
|
}
|
48
58
|
end
|
@@ -55,8 +65,11 @@ module YNAB
|
|
55
65
|
:'amount' => :'Integer',
|
56
66
|
:'memo' => :'String',
|
57
67
|
:'payee_id' => :'String',
|
68
|
+
:'payee_name' => :'String',
|
58
69
|
:'category_id' => :'String',
|
70
|
+
:'category_name' => :'String',
|
59
71
|
:'transfer_account_id' => :'String',
|
72
|
+
:'transfer_transaction_id' => :'String',
|
60
73
|
:'deleted' => :'BOOLEAN'
|
61
74
|
}
|
62
75
|
end
|
@@ -89,14 +102,26 @@ module YNAB
|
|
89
102
|
self.payee_id = attributes[:'payee_id']
|
90
103
|
end
|
91
104
|
|
105
|
+
if attributes.has_key?(:'payee_name')
|
106
|
+
self.payee_name = attributes[:'payee_name']
|
107
|
+
end
|
108
|
+
|
92
109
|
if attributes.has_key?(:'category_id')
|
93
110
|
self.category_id = attributes[:'category_id']
|
94
111
|
end
|
95
112
|
|
113
|
+
if attributes.has_key?(:'category_name')
|
114
|
+
self.category_name = attributes[:'category_name']
|
115
|
+
end
|
116
|
+
|
96
117
|
if attributes.has_key?(:'transfer_account_id')
|
97
118
|
self.transfer_account_id = attributes[:'transfer_account_id']
|
98
119
|
end
|
99
120
|
|
121
|
+
if attributes.has_key?(:'transfer_transaction_id')
|
122
|
+
self.transfer_transaction_id = attributes[:'transfer_transaction_id']
|
123
|
+
end
|
124
|
+
|
100
125
|
if attributes.has_key?(:'deleted')
|
101
126
|
self.deleted = attributes[:'deleted']
|
102
127
|
end
|
@@ -145,8 +170,11 @@ module YNAB
|
|
145
170
|
amount == o.amount &&
|
146
171
|
memo == o.memo &&
|
147
172
|
payee_id == o.payee_id &&
|
173
|
+
payee_name == o.payee_name &&
|
148
174
|
category_id == o.category_id &&
|
175
|
+
category_name == o.category_name &&
|
149
176
|
transfer_account_id == o.transfer_account_id &&
|
177
|
+
transfer_transaction_id == o.transfer_transaction_id &&
|
150
178
|
deleted == o.deleted
|
151
179
|
end
|
152
180
|
|
@@ -159,9 +187,8 @@ module YNAB
|
|
159
187
|
# Calculates hash code according to all attributes.
|
160
188
|
# @return [Fixnum] Hash code
|
161
189
|
def hash
|
162
|
-
[id, transaction_id, amount, memo, payee_id, category_id, 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
|
163
191
|
end
|
164
|
-
|
165
192
|
# Builds the object from hash
|
166
193
|
# @param [Hash] attributes Model attributes in the form of hash
|
167
194
|
# @return [Object] Returns the model itself
|
@@ -169,7 +196,7 @@ module YNAB
|
|
169
196
|
return nil unless attributes.is_a?(Hash)
|
170
197
|
self.class.swagger_types.each_pair do |key, type|
|
171
198
|
if type =~ /\AArray<(.*)>/i
|
172
|
-
# check to ensure the input is an array given that the
|
199
|
+
# check to ensure the input is an array given that the attribute
|
173
200
|
# is documented as an array but the input is not
|
174
201
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
175
202
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -265,5 +292,7 @@ module YNAB
|
|
265
292
|
value
|
266
293
|
end
|
267
294
|
end
|
295
|
+
|
268
296
|
end
|
297
|
+
|
269
298
|
end
|