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
|
[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
|
|
@@ -92,7 +92,6 @@ module YNAB
|
|
92
92
|
def hash
|
93
93
|
[budgets, default_budget].hash
|
94
94
|
end
|
95
|
-
|
96
95
|
# Builds the object from hash
|
97
96
|
# @param [Hash] attributes Model attributes in the form of hash
|
98
97
|
# @return [Object] Returns the model itself
|
@@ -100,7 +99,7 @@ module YNAB
|
|
100
99
|
return nil unless attributes.is_a?(Hash)
|
101
100
|
self.class.swagger_types.each_pair do |key, type|
|
102
101
|
if type =~ /\AArray<(.*)>/i
|
103
|
-
# check to ensure the input is an array given that the
|
102
|
+
# check to ensure the input is an array given that the attribute
|
104
103
|
# is documented as an array but the input is not
|
105
104
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
106
105
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -196,5 +195,7 @@ module YNAB
|
|
196
195
|
value
|
197
196
|
end
|
198
197
|
end
|
198
|
+
|
199
199
|
end
|
200
|
+
|
200
201
|
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
|
[bulk].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
|
|
@@ -17,7 +17,7 @@ module YNAB
|
|
17
17
|
# The list of Transaction ids that were created.
|
18
18
|
attr_accessor :transaction_ids
|
19
19
|
|
20
|
-
# If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list.
|
20
|
+
# If any Transactions were not created because they had an `import_id` matching a transaction already on the same account, the specified import_id(s) will be included in this list.
|
21
21
|
attr_accessor :duplicate_import_ids
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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
|
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.
|
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
|
@@ -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
|
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.
|
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
|
[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
|
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
|
data/lib/ynab/models/category.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
|
|
@@ -37,7 +37,7 @@ module YNAB
|
|
37
37
|
# Balance in milliunits format
|
38
38
|
attr_accessor :balance
|
39
39
|
|
40
|
-
# The type of goal, if the category has a goal (TB=Target Category Balance, TBD=Target Category Balance by Date, MF=Monthly Funding)
|
40
|
+
# The type of goal, if the category has a goal (TB='Target Category Balance', TBD='Target Category Balance by Date', MF='Monthly Funding', NEED='Plan Your Spending')
|
41
41
|
attr_accessor :goal_type
|
42
42
|
|
43
43
|
# The month a goal was created
|
@@ -46,7 +46,7 @@ module YNAB
|
|
46
46
|
# The goal target amount in milliunits
|
47
47
|
attr_accessor :goal_target
|
48
48
|
|
49
|
-
#
|
49
|
+
# The 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
|
@@ -208,10 +208,6 @@ module YNAB
|
|
208
208
|
invalid_properties.push('invalid value for "hidden", hidden cannot be nil.')
|
209
209
|
end
|
210
210
|
|
211
|
-
if @note.nil?
|
212
|
-
invalid_properties.push('invalid value for "note", note cannot be nil.')
|
213
|
-
end
|
214
|
-
|
215
211
|
if @budgeted.nil?
|
216
212
|
invalid_properties.push('invalid value for "budgeted", budgeted cannot be nil.')
|
217
213
|
end
|
@@ -224,26 +220,6 @@ module YNAB
|
|
224
220
|
invalid_properties.push('invalid value for "balance", balance cannot be nil.')
|
225
221
|
end
|
226
222
|
|
227
|
-
if @goal_type.nil?
|
228
|
-
invalid_properties.push('invalid value for "goal_type", goal_type cannot be nil.')
|
229
|
-
end
|
230
|
-
|
231
|
-
if @goal_creation_month.nil?
|
232
|
-
invalid_properties.push('invalid value for "goal_creation_month", goal_creation_month cannot be nil.')
|
233
|
-
end
|
234
|
-
|
235
|
-
if @goal_target.nil?
|
236
|
-
invalid_properties.push('invalid value for "goal_target", goal_target cannot be nil.')
|
237
|
-
end
|
238
|
-
|
239
|
-
if @goal_target_month.nil?
|
240
|
-
invalid_properties.push('invalid value for "goal_target_month", goal_target_month cannot be nil.')
|
241
|
-
end
|
242
|
-
|
243
|
-
if @goal_percentage_complete.nil?
|
244
|
-
invalid_properties.push('invalid value for "goal_percentage_complete", goal_percentage_complete cannot be nil.')
|
245
|
-
end
|
246
|
-
|
247
223
|
if @deleted.nil?
|
248
224
|
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
249
225
|
end
|
@@ -258,17 +234,11 @@ module YNAB
|
|
258
234
|
return false if @category_group_id.nil?
|
259
235
|
return false if @name.nil?
|
260
236
|
return false if @hidden.nil?
|
261
|
-
return false if @note.nil?
|
262
237
|
return false if @budgeted.nil?
|
263
238
|
return false if @activity.nil?
|
264
239
|
return false if @balance.nil?
|
265
|
-
return false if @goal_type.nil?
|
266
240
|
goal_type_validator = EnumAttributeValidator.new('String', ['TB', 'TBD', 'MF', 'NEED'])
|
267
241
|
return false unless goal_type_validator.valid?(@goal_type)
|
268
|
-
return false if @goal_creation_month.nil?
|
269
|
-
return false if @goal_target.nil?
|
270
|
-
return false if @goal_target_month.nil?
|
271
|
-
return false if @goal_percentage_complete.nil?
|
272
242
|
return false if @deleted.nil?
|
273
243
|
true
|
274
244
|
end
|
@@ -276,10 +246,6 @@ module YNAB
|
|
276
246
|
# Custom attribute writer method checking allowed values (enum).
|
277
247
|
# @param [Object] goal_type Object to be assigned
|
278
248
|
def goal_type=(goal_type)
|
279
|
-
validator = EnumAttributeValidator.new('String', ['TB', 'TBD', 'MF', 'NEED'])
|
280
|
-
unless validator.valid?(goal_type)
|
281
|
-
fail ArgumentError, 'invalid value for "goal_type", must be one of #{validator.allowable_values}.'
|
282
|
-
end
|
283
249
|
@goal_type = goal_type
|
284
250
|
end
|
285
251
|
|
@@ -316,7 +282,6 @@ module YNAB
|
|
316
282
|
def hash
|
317
283
|
[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
|
318
284
|
end
|
319
|
-
|
320
285
|
# Builds the object from hash
|
321
286
|
# @param [Hash] attributes Model attributes in the form of hash
|
322
287
|
# @return [Object] Returns the model itself
|
@@ -324,7 +289,7 @@ module YNAB
|
|
324
289
|
return nil unless attributes.is_a?(Hash)
|
325
290
|
self.class.swagger_types.each_pair do |key, type|
|
326
291
|
if type =~ /\AArray<(.*)>/i
|
327
|
-
# check to ensure the input is an array given that the
|
292
|
+
# check to ensure the input is an array given that the attribute
|
328
293
|
# is documented as an array but the input is not
|
329
294
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
330
295
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -420,5 +385,7 @@ module YNAB
|
|
420
385
|
value
|
421
386
|
end
|
422
387
|
end
|
388
|
+
|
423
389
|
end
|
390
|
+
|
424
391
|
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
|
|
@@ -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
|
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.
|
9
|
+
Swagger Codegen version: 2.4.15
|
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
|
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
|