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
|
|
@@ -287,20 +287,12 @@ module YNAB
|
|
287
287
|
# Custom attribute writer method checking allowed values (enum).
|
288
288
|
# @param [Object] cleared Object to be assigned
|
289
289
|
def cleared=(cleared)
|
290
|
-
validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
|
291
|
-
unless validator.valid?(cleared)
|
292
|
-
fail ArgumentError, 'invalid value for "cleared", must be one of #{validator.allowable_values}.'
|
293
|
-
end
|
294
290
|
@cleared = cleared
|
295
291
|
end
|
296
292
|
|
297
293
|
# Custom attribute writer method checking allowed values (enum).
|
298
294
|
# @param [Object] flag_color Object to be assigned
|
299
295
|
def flag_color=(flag_color)
|
300
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
301
|
-
unless validator.valid?(flag_color)
|
302
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
303
|
-
end
|
304
296
|
@flag_color = flag_color
|
305
297
|
end
|
306
298
|
|
@@ -341,7 +333,6 @@ module YNAB
|
|
341
333
|
def hash
|
342
334
|
[id, date, amount, memo, cleared, approved, flag_color, account_id, payee_id, category_id, transfer_account_id, transfer_transaction_id, matched_transaction_id, import_id, deleted, account_name, payee_name, category_name, subtransactions].hash
|
343
335
|
end
|
344
|
-
|
345
336
|
# Builds the object from hash
|
346
337
|
# @param [Hash] attributes Model attributes in the form of hash
|
347
338
|
# @return [Object] Returns the model itself
|
@@ -447,4 +438,5 @@ module YNAB
|
|
447
438
|
end
|
448
439
|
|
449
440
|
end
|
441
|
+
|
450
442
|
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
|
[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
|
|
@@ -242,20 +242,12 @@ module YNAB
|
|
242
242
|
# Custom attribute writer method checking allowed values (enum).
|
243
243
|
# @param [Object] cleared Object to be assigned
|
244
244
|
def cleared=(cleared)
|
245
|
-
validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
|
246
|
-
unless validator.valid?(cleared)
|
247
|
-
fail ArgumentError, 'invalid value for "cleared", must be one of #{validator.allowable_values}.'
|
248
|
-
end
|
249
245
|
@cleared = cleared
|
250
246
|
end
|
251
247
|
|
252
248
|
# Custom attribute writer method checking allowed values (enum).
|
253
249
|
# @param [Object] flag_color Object to be assigned
|
254
250
|
def flag_color=(flag_color)
|
255
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
256
|
-
unless validator.valid?(flag_color)
|
257
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
258
|
-
end
|
259
251
|
@flag_color = flag_color
|
260
252
|
end
|
261
253
|
|
@@ -292,7 +284,6 @@ module YNAB
|
|
292
284
|
def hash
|
293
285
|
[id, date, amount, memo, cleared, approved, flag_color, account_id, payee_id, category_id, transfer_account_id, transfer_transaction_id, matched_transaction_id, import_id, deleted].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
|
[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
|
|
@@ -83,7 +83,6 @@ module YNAB
|
|
83
83
|
def hash
|
84
84
|
[transaction_ids].hash
|
85
85
|
end
|
86
|
-
|
87
86
|
# Builds the object from hash
|
88
87
|
# @param [Hash] attributes Model attributes in the form of hash
|
89
88
|
# @return [Object] Returns the model itself
|
@@ -189,4 +188,5 @@ module YNAB
|
|
189
188
|
end
|
190
189
|
|
191
190
|
end
|
191
|
+
|
192
192
|
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
|
[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
|
|
@@ -48,8 +48,6 @@ module YNAB
|
|
48
48
|
# An array of subtransactions to configure a transaction as a split. Updating `subtransactions` on an existing split transaction is not supported.
|
49
49
|
attr_accessor :subtransactions
|
50
50
|
|
51
|
-
attr_accessor :id
|
52
|
-
|
53
51
|
class EnumAttributeValidator
|
54
52
|
attr_reader :datatype
|
55
53
|
attr_reader :allowable_values
|
@@ -86,8 +84,7 @@ module YNAB
|
|
86
84
|
:'approved' => :'approved',
|
87
85
|
:'flag_color' => :'flag_color',
|
88
86
|
:'import_id' => :'import_id',
|
89
|
-
:'subtransactions' => :'subtransactions'
|
90
|
-
:'id' => :'id'
|
87
|
+
:'subtransactions' => :'subtransactions'
|
91
88
|
}
|
92
89
|
end
|
93
90
|
|
@@ -105,8 +102,7 @@ module YNAB
|
|
105
102
|
:'approved' => :'BOOLEAN',
|
106
103
|
:'flag_color' => :'String',
|
107
104
|
:'import_id' => :'String',
|
108
|
-
:'subtransactions' => :'Array<SaveSubTransaction>'
|
109
|
-
:'id' => :'String'
|
105
|
+
:'subtransactions' => :'Array<SaveSubTransaction>'
|
110
106
|
}
|
111
107
|
end
|
112
108
|
|
@@ -167,10 +163,6 @@ module YNAB
|
|
167
163
|
self.subtransactions = value
|
168
164
|
end
|
169
165
|
end
|
170
|
-
|
171
|
-
if attributes.has_key?(:'id')
|
172
|
-
self.id = attributes[:'id']
|
173
|
-
end
|
174
166
|
end
|
175
167
|
|
176
168
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -201,10 +193,6 @@ module YNAB
|
|
201
193
|
invalid_properties.push('invalid value for "import_id", the character length must be smaller than or equal to 36.')
|
202
194
|
end
|
203
195
|
|
204
|
-
if @id.nil?
|
205
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
206
|
-
end
|
207
|
-
|
208
196
|
invalid_properties
|
209
197
|
end
|
210
198
|
|
@@ -221,7 +209,6 @@ module YNAB
|
|
221
209
|
flag_color_validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
222
210
|
return false unless flag_color_validator.valid?(@flag_color)
|
223
211
|
return false if !@import_id.nil? && @import_id.to_s.length > 36
|
224
|
-
return false if @id.nil?
|
225
212
|
true
|
226
213
|
end
|
227
214
|
|
@@ -248,20 +235,12 @@ module YNAB
|
|
248
235
|
# Custom attribute writer method checking allowed values (enum).
|
249
236
|
# @param [Object] cleared Object to be assigned
|
250
237
|
def cleared=(cleared)
|
251
|
-
validator = EnumAttributeValidator.new('String', ['cleared', 'uncleared', 'reconciled'])
|
252
|
-
unless validator.valid?(cleared)
|
253
|
-
fail ArgumentError, 'invalid value for "cleared", must be one of #{validator.allowable_values}.'
|
254
|
-
end
|
255
238
|
@cleared = cleared
|
256
239
|
end
|
257
240
|
|
258
241
|
# Custom attribute writer method checking allowed values (enum).
|
259
242
|
# @param [Object] flag_color Object to be assigned
|
260
243
|
def flag_color=(flag_color)
|
261
|
-
validator = EnumAttributeValidator.new('String', ['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
|
262
|
-
unless validator.valid?(flag_color)
|
263
|
-
fail ArgumentError, 'invalid value for "flag_color", must be one of #{validator.allowable_values}.'
|
264
|
-
end
|
265
244
|
@flag_color = flag_color
|
266
245
|
end
|
267
246
|
|
@@ -291,8 +270,7 @@ module YNAB
|
|
291
270
|
approved == o.approved &&
|
292
271
|
flag_color == o.flag_color &&
|
293
272
|
import_id == o.import_id &&
|
294
|
-
subtransactions == o.subtransactions
|
295
|
-
id == o.id
|
273
|
+
subtransactions == o.subtransactions
|
296
274
|
end
|
297
275
|
|
298
276
|
# @see the `==` method
|
@@ -304,9 +282,8 @@ module YNAB
|
|
304
282
|
# Calculates hash code according to all attributes.
|
305
283
|
# @return [Fixnum] Hash code
|
306
284
|
def hash
|
307
|
-
[account_id, date, amount, payee_id, payee_name, category_id, memo, cleared, approved, flag_color, import_id, subtransactions
|
285
|
+
[account_id, date, amount, payee_id, payee_name, category_id, memo, cleared, approved, flag_color, import_id, subtransactions].hash
|
308
286
|
end
|
309
|
-
|
310
287
|
# Builds the object from hash
|
311
288
|
# @param [Hash] attributes Model attributes in the form of hash
|
312
289
|
# @return [Object] Returns the model itself
|
@@ -412,4 +389,5 @@ module YNAB
|
|
412
389
|
end
|
413
390
|
|
414
391
|
end
|
392
|
+
|
415
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
|
|
@@ -82,7 +82,6 @@ module YNAB
|
|
82
82
|
def hash
|
83
83
|
[transactions].hash
|
84
84
|
end
|
85
|
-
|
86
85
|
# Builds the object from hash
|
87
86
|
# @param [Hash] attributes Model attributes in the form of hash
|
88
87
|
# @return [Object] Returns the model itself
|
@@ -188,4 +187,5 @@ module YNAB
|
|
188
187
|
end
|
189
188
|
|
190
189
|
end
|
190
|
+
|
191
191
|
end
|
data/lib/ynab/models/user.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
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
|
[id].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
|
|
@@ -80,7 +80,6 @@ module YNAB
|
|
80
80
|
def hash
|
81
81
|
[user].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
|
data/lib/ynab/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe YNAB::TransactionDetail do
|
4
|
+
subject(:transaction) { described_class.new() }
|
5
|
+
|
6
|
+
describe '#flag_color' do
|
7
|
+
it 'allows setting an unsupported value' do
|
8
|
+
expect { transaction.flag_color = 'invalidFlagName' }.not_to raise_error
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ynab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- You Need A Budget, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -34,42 +34,42 @@ dependencies:
|
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1.0
|
40
37
|
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: '2.1'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.1.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 2.1.0
|
50
47
|
- - "~>"
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: '2.1'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.1.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 3.6.0
|
60
57
|
- - "~>"
|
61
58
|
- !ruby/object:Gem::Version
|
62
59
|
version: '3.6'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 3.6.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 3.6.0
|
70
67
|
- - "~>"
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: '3.6'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 3.6.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: vcr
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -237,6 +237,7 @@ files:
|
|
237
237
|
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
238
238
|
- spec/fixtures/vcr_cassettes/update_transaction.yml
|
239
239
|
- spec/fixtures/vcr_cassettes/update_transactions.yml
|
240
|
+
- spec/models/transaction_detail_spec.rb
|
240
241
|
- spec/spec_helper.rb
|
241
242
|
homepage: https://github.com/ynab/ynab-sdk-ruby
|
242
243
|
licenses:
|
@@ -257,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
258
|
- !ruby/object:Gem::Version
|
258
259
|
version: '0'
|
259
260
|
requirements: []
|
260
|
-
rubygems_version: 3.
|
261
|
+
rubygems_version: 3.1.2
|
261
262
|
signing_key:
|
262
263
|
specification_version: 4
|
263
264
|
summary: YNAB API Endpoints Ruby Gem
|
@@ -305,4 +306,5 @@ test_files:
|
|
305
306
|
- spec/fixtures/vcr_cassettes/month.yml
|
306
307
|
- spec/fixtures/vcr_cassettes/categories_unauthorized.yml
|
307
308
|
- spec/fixtures/vcr_cassettes/transactions_unauthorized.yml
|
309
|
+
- spec/models/transaction_detail_spec.rb
|
308
310
|
- spec/spec_helper.rb
|