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
 
@@ -100,7 +100,6 @@ module YNAB
100
100
  def hash
101
101
  [transaction_ids, duplicate_import_ids].hash
102
102
  end
103
-
104
103
  # Builds the object from hash
105
104
  # @param [Hash] attributes Model attributes in the form of hash
106
105
  # @return [Object] Returns the model itself
@@ -108,7 +107,7 @@ module YNAB
108
107
  return nil unless attributes.is_a?(Hash)
109
108
  self.class.swagger_types.each_pair do |key, type|
110
109
  if type =~ /\AArray<(.*)>/i
111
- # check to ensure the input is an array given that the the attribute
110
+ # check to ensure the input is an array given that the attribute
112
111
  # is documented as an array but the input is not
113
112
  if attributes[self.class.attribute_map[key]].is_a?(Array)
114
113
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -204,5 +203,7 @@ module YNAB
204
203
  value
205
204
  end
206
205
  end
206
+
207
207
  end
208
+
208
209
  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
 
@@ -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
@@ -90,7 +89,7 @@ module YNAB
90
89
  return nil unless attributes.is_a?(Hash)
91
90
  self.class.swagger_types.each_pair do |key, type|
92
91
  if type =~ /\AArray<(.*)>/i
93
- # check to ensure the input is an array given that the the attribute
92
+ # check to ensure the input is an array given that the attribute
94
93
  # is documented as an array but the input is not
95
94
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
95
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -186,5 +185,7 @@ module YNAB
186
185
  value
187
186
  end
188
187
  end
188
+
189
189
  end
190
+
190
191
  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
  [category_groups, 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
 
@@ -46,12 +46,24 @@ module YNAB
46
46
  # The goal target amount in milliunits
47
47
  attr_accessor :goal_target
48
48
 
49
- # The target month for the goal to be completed. Only some goal types specify this date.
49
+ # The original target month for the goal to be completed. Only some goal types specify this date.
50
50
  attr_accessor :goal_target_month
51
51
 
52
52
  # The percentage completion of the goal
53
53
  attr_accessor :goal_percentage_complete
54
54
 
55
+ # The number of months, including the current month, left in the current goal period.
56
+ attr_accessor :goal_months_to_budget
57
+
58
+ # The amount of funding still needed in the current month to stay on track towards completing the goal within the current goal period. This amount will generally correspond to the 'Underfunded' amount in the web and mobile clients except when viewing a category with a Needed for Spending Goal in a future month. The web and mobile clients will ignore any funding from a prior goal period when viewing category with a Needed for Spending Goal in a future month.
59
+ attr_accessor :goal_under_funded
60
+
61
+ # The total amount funded towards the goal within the current goal period.
62
+ attr_accessor :goal_overall_funded
63
+
64
+ # The amount of funding still needed to complete the goal within the current goal period.
65
+ attr_accessor :goal_overall_left
66
+
55
67
  # Whether or not the category has been deleted. Deleted categories will only be included in delta requests.
56
68
  attr_accessor :deleted
57
69
 
@@ -94,6 +106,10 @@ module YNAB
94
106
  :'goal_target' => :'goal_target',
95
107
  :'goal_target_month' => :'goal_target_month',
96
108
  :'goal_percentage_complete' => :'goal_percentage_complete',
109
+ :'goal_months_to_budget' => :'goal_months_to_budget',
110
+ :'goal_under_funded' => :'goal_under_funded',
111
+ :'goal_overall_funded' => :'goal_overall_funded',
112
+ :'goal_overall_left' => :'goal_overall_left',
97
113
  :'deleted' => :'deleted'
98
114
  }
99
115
  end
@@ -115,6 +131,10 @@ module YNAB
115
131
  :'goal_target' => :'Integer',
116
132
  :'goal_target_month' => :'Date',
117
133
  :'goal_percentage_complete' => :'Integer',
134
+ :'goal_months_to_budget' => :'Integer',
135
+ :'goal_under_funded' => :'Integer',
136
+ :'goal_overall_funded' => :'Integer',
137
+ :'goal_overall_left' => :'Integer',
118
138
  :'deleted' => :'BOOLEAN'
119
139
  }
120
140
  end
@@ -183,6 +203,22 @@ module YNAB
183
203
  self.goal_percentage_complete = attributes[:'goal_percentage_complete']
184
204
  end
185
205
 
206
+ if attributes.has_key?(:'goal_months_to_budget')
207
+ self.goal_months_to_budget = attributes[:'goal_months_to_budget']
208
+ end
209
+
210
+ if attributes.has_key?(:'goal_under_funded')
211
+ self.goal_under_funded = attributes[:'goal_under_funded']
212
+ end
213
+
214
+ if attributes.has_key?(:'goal_overall_funded')
215
+ self.goal_overall_funded = attributes[:'goal_overall_funded']
216
+ end
217
+
218
+ if attributes.has_key?(:'goal_overall_left')
219
+ self.goal_overall_left = attributes[:'goal_overall_left']
220
+ end
221
+
186
222
  if attributes.has_key?(:'deleted')
187
223
  self.deleted = attributes[:'deleted']
188
224
  end
@@ -246,10 +282,6 @@ module YNAB
246
282
  # Custom attribute writer method checking allowed values (enum).
247
283
  # @param [Object] goal_type Object to be assigned
248
284
  def goal_type=(goal_type)
249
- validator = EnumAttributeValidator.new('String', ['TB', 'TBD', 'MF', 'NEED'])
250
- unless validator.valid?(goal_type)
251
- fail ArgumentError, 'invalid value for "goal_type", must be one of #{validator.allowable_values}.'
252
- end
253
285
  @goal_type = goal_type
254
286
  end
255
287
 
@@ -272,6 +304,10 @@ module YNAB
272
304
  goal_target == o.goal_target &&
273
305
  goal_target_month == o.goal_target_month &&
274
306
  goal_percentage_complete == o.goal_percentage_complete &&
307
+ goal_months_to_budget == o.goal_months_to_budget &&
308
+ goal_under_funded == o.goal_under_funded &&
309
+ goal_overall_funded == o.goal_overall_funded &&
310
+ goal_overall_left == o.goal_overall_left &&
275
311
  deleted == o.deleted
276
312
  end
277
313
 
@@ -284,9 +320,8 @@ module YNAB
284
320
  # Calculates hash code according to all attributes.
285
321
  # @return [Fixnum] Hash code
286
322
  def hash
287
- [id, category_group_id, name, hidden, original_category_group_id, note, budgeted, activity, balance, goal_type, goal_creation_month, goal_target, goal_target_month, goal_percentage_complete, deleted].hash
323
+ [id, category_group_id, name, hidden, original_category_group_id, note, budgeted, activity, balance, goal_type, goal_creation_month, goal_target, goal_target_month, goal_percentage_complete, goal_months_to_budget, goal_under_funded, goal_overall_funded, goal_overall_left, deleted].hash
288
324
  end
289
-
290
325
  # Builds the object from hash
291
326
  # @param [Hash] attributes Model attributes in the form of hash
292
327
  # @return [Object] Returns the model itself
@@ -294,7 +329,7 @@ module YNAB
294
329
  return nil unless attributes.is_a?(Hash)
295
330
  self.class.swagger_types.each_pair do |key, type|
296
331
  if type =~ /\AArray<(.*)>/i
297
- # check to ensure the input is an array given that the the attribute
332
+ # check to ensure the input is an array given that the attribute
298
333
  # is documented as an array but the input is not
299
334
  if attributes[self.class.attribute_map[key]].is_a?(Array)
300
335
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -390,5 +425,7 @@ module YNAB
390
425
  value
391
426
  end
392
427
  end
428
+
393
429
  end
430
+
394
431
  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
 
@@ -124,7 +124,6 @@ module YNAB
124
124
  def hash
125
125
  [id, name, hidden, deleted].hash
126
126
  end
127
-
128
127
  # Builds the object from hash
129
128
  # @param [Hash] attributes Model attributes in the form of hash
130
129
  # @return [Object] Returns the model itself
@@ -132,7 +131,7 @@ module YNAB
132
131
  return nil unless attributes.is_a?(Hash)
133
132
  self.class.swagger_types.each_pair do |key, type|
134
133
  if type =~ /\AArray<(.*)>/i
135
- # check to ensure the input is an array given that the the attribute
134
+ # check to ensure the input is an array given that the attribute
136
135
  # is documented as an array but the input is not
137
136
  if attributes[self.class.attribute_map[key]].is_a?(Array)
138
137
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -228,5 +227,7 @@ module YNAB
228
227
  value
229
228
  end
230
229
  end
230
+
231
231
  end
232
+
232
233
  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
 
@@ -141,7 +141,6 @@ module YNAB
141
141
  def hash
142
142
  [id, name, hidden, deleted, categories].hash
143
143
  end
144
-
145
144
  # Builds the object from hash
146
145
  # @param [Hash] attributes Model attributes in the form of hash
147
146
  # @return [Object] Returns the model itself
@@ -149,7 +148,7 @@ module YNAB
149
148
  return nil unless attributes.is_a?(Hash)
150
149
  self.class.swagger_types.each_pair do |key, type|
151
150
  if type =~ /\AArray<(.*)>/i
152
- # check to ensure the input is an array given that the the attribute
151
+ # check to ensure the input is an array given that the attribute
153
152
  # is documented as an array but the input is not
154
153
  if attributes[self.class.attribute_map[key]].is_a?(Array)
155
154
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -245,5 +244,7 @@ module YNAB
245
244
  value
246
245
  end
247
246
  end
247
+
248
248
  end
249
+
249
250
  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
  [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
@@ -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
 
@@ -179,7 +179,6 @@ module YNAB
179
179
  def hash
180
180
  [iso_code, example_format, decimal_digits, decimal_separator, symbol_first, group_separator, currency_symbol, display_symbol].hash
181
181
  end
182
-
183
182
  # Builds the object from hash
184
183
  # @param [Hash] attributes Model attributes in the form of hash
185
184
  # @return [Object] Returns the model itself
@@ -187,7 +186,7 @@ module YNAB
187
186
  return nil unless attributes.is_a?(Hash)
188
187
  self.class.swagger_types.each_pair do |key, type|
189
188
  if type =~ /\AArray<(.*)>/i
190
- # check to ensure the input is an array given that the the attribute
189
+ # check to ensure the input is an array given that the attribute
191
190
  # is documented as an array but the input is not
192
191
  if attributes[self.class.attribute_map[key]].is_a?(Array)
193
192
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -283,5 +282,7 @@ module YNAB
283
282
  value
284
283
  end
285
284
  end
285
+
286
286
  end
287
+
287
288
  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
 
@@ -81,7 +81,6 @@ module YNAB
81
81
  def hash
82
82
  [format].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
@@ -89,7 +88,7 @@ module YNAB
89
88
  return nil unless attributes.is_a?(Hash)
90
89
  self.class.swagger_types.each_pair do |key, type|
91
90
  if type =~ /\AArray<(.*)>/i
92
- # check to ensure the input is an array given that the the attribute
91
+ # check to ensure the input is an array given that the attribute
93
92
  # is documented as an array but the input is not
94
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
95
94
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -185,5 +184,7 @@ module YNAB
185
184
  value
186
185
  end
187
186
  end
187
+
188
188
  end
189
+
189
190
  end