budgea_client 5.0.3 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/README.md +19 -6
- data/budgea_client.gemspec +1 -1
- data/budgea_openapi.json +1624 -1420
- data/config.json +1 -1
- data/docs/Account.md +1 -0
- data/docs/AdministrationApi.md +12 -12
- data/docs/BanksApi.md +267 -52
- data/docs/Connection.md +2 -0
- data/docs/ConnectionsApi.md +255 -40
- data/docs/DocumentsApi.md +2 -2
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse20029.md +1 -1
- data/docs/InlineResponse20030.md +1 -1
- data/docs/PFMApi.md +9 -9
- data/docs/ProvidersApi.md +257 -42
- data/docs/TermsApi.md +72 -7
- data/docs/TransfersApi.md +24 -24
- data/docs/UsersManagementApi.md +2 -2
- data/docs/WealthApi.md +53 -37
- data/lib/budgea_client.rb +1 -1
- data/lib/budgea_client/api/administration_api.rb +14 -14
- data/lib/budgea_client/api/authentication_api.rb +1 -1
- data/lib/budgea_client/api/banks_api.rb +278 -78
- data/lib/budgea_client/api/connections_api.rb +260 -60
- data/lib/budgea_client/api/documents_api.rb +4 -4
- data/lib/budgea_client/api/ocr_api.rb +1 -1
- data/lib/budgea_client/api/oidc_api.rb +1 -1
- data/lib/budgea_client/api/pfm_api.rb +12 -12
- data/lib/budgea_client/api/providers_api.rb +263 -63
- data/lib/budgea_client/api/recipients_api.rb +1 -1
- data/lib/budgea_client/api/terms_api.rb +76 -10
- data/lib/budgea_client/api/transfer_api.rb +1 -1
- data/lib/budgea_client/api/transfers_api.rb +37 -37
- data/lib/budgea_client/api/users_management_api.rb +4 -4
- data/lib/budgea_client/api/wealth_api.rb +78 -54
- data/lib/budgea_client/api_client.rb +3 -1
- data/lib/budgea_client/api_error.rb +1 -1
- data/lib/budgea_client/configuration.rb +1 -1
- data/lib/budgea_client/models/access.rb +3 -2
- data/lib/budgea_client/models/account.rb +15 -3
- data/lib/budgea_client/models/account_log.rb +3 -2
- data/lib/budgea_client/models/account_type.rb +3 -2
- data/lib/budgea_client/models/alert.rb +3 -2
- data/lib/budgea_client/models/auth_provider.rb +3 -2
- data/lib/budgea_client/models/category.rb +3 -2
- data/lib/budgea_client/models/certificate.rb +3 -2
- data/lib/budgea_client/models/client.rb +3 -2
- data/lib/budgea_client/models/config_log.rb +3 -2
- data/lib/budgea_client/models/connection.rb +59 -3
- data/lib/budgea_client/models/connection_log.rb +3 -2
- data/lib/budgea_client/models/connection_source.rb +3 -2
- data/lib/budgea_client/models/connector.rb +3 -2
- data/lib/budgea_client/models/connector_category.rb +3 -2
- data/lib/budgea_client/models/connector_logo.rb +3 -2
- data/lib/budgea_client/models/connector_source.rb +3 -2
- data/lib/budgea_client/models/currency.rb +3 -2
- data/lib/budgea_client/models/device.rb +3 -2
- data/lib/budgea_client/models/document.rb +3 -2
- data/lib/budgea_client/models/document_type.rb +3 -2
- data/lib/budgea_client/models/field.rb +3 -2
- data/lib/budgea_client/models/field_value.rb +3 -2
- data/lib/budgea_client/models/file.rb +3 -2
- data/lib/budgea_client/models/group.rb +3 -2
- data/lib/budgea_client/models/hash_table.rb +3 -2
- data/lib/budgea_client/models/inline_response_200.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_1.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_10.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_11.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_12.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_13.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_14.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_15.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_16.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_17.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_18.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_19.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_2.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_20.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_21.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_22.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_23.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_24.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_25.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_26.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_27.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_28.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_29.rb +21 -20
- data/lib/budgea_client/models/inline_response_200_3.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_30.rb +14 -13
- data/lib/budgea_client/models/inline_response_200_31.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_32.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_33.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_34.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_35.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_36.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_37.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_38.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_39.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_4.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_40.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_41.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_42.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_5.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_6.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_7.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_8.rb +3 -2
- data/lib/budgea_client/models/inline_response_200_9.rb +3 -2
- data/lib/budgea_client/models/investment.rb +3 -2
- data/lib/budgea_client/models/investment_value.rb +3 -2
- data/lib/budgea_client/models/keyword.rb +3 -2
- data/lib/budgea_client/models/locked_user.rb +3 -2
- data/lib/budgea_client/models/oidc_whitelist.rb +3 -2
- data/lib/budgea_client/models/order.rb +3 -2
- data/lib/budgea_client/models/pocket.rb +3 -2
- data/lib/budgea_client/models/profile.rb +3 -2
- data/lib/budgea_client/models/project.rb +3 -2
- data/lib/budgea_client/models/project_type.rb +3 -2
- data/lib/budgea_client/models/recipient.rb +3 -2
- data/lib/budgea_client/models/recipient_log.rb +3 -2
- data/lib/budgea_client/models/security.rb +3 -2
- data/lib/budgea_client/models/subscription.rb +3 -2
- data/lib/budgea_client/models/subscription_log.rb +3 -2
- data/lib/budgea_client/models/terms_of_service.rb +3 -2
- data/lib/budgea_client/models/transaction.rb +3 -2
- data/lib/budgea_client/models/transaction_information.rb +3 -2
- data/lib/budgea_client/models/transactions_cluster.rb +3 -2
- data/lib/budgea_client/models/transfer.rb +3 -2
- data/lib/budgea_client/models/transfer_log.rb +3 -2
- data/lib/budgea_client/models/user.rb +3 -2
- data/lib/budgea_client/models/user_alert.rb +3 -2
- data/lib/budgea_client/models/webhook.rb +3 -2
- data/lib/budgea_client/models/webhook_data.rb +3 -2
- data/lib/budgea_client/models/webhook_log.rb +3 -2
- data/lib/budgea_client/version.rb +2 -2
- data/original_budgea_openapi.json +1559 -1474
- data/pkg/budgea_client-5.0.3.gem +0 -0
- metadata +3 -4
- data/lib/budgea_client/api/hub_api.rb +0 -76
- data/lib/budgea_client/models/invite.rb +0 -238
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -112,6 +112,8 @@ module BudgeaClient
|
|
112
112
|
:verbose => @config.debugging
|
113
113
|
}
|
114
114
|
|
115
|
+
req_opts.merge!(multipart: true) if header_params['Content-Type'].start_with? "multipart/"
|
116
|
+
|
115
117
|
# set custom cert, if provided
|
116
118
|
req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
|
117
119
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -129,7 +129,7 @@ module BudgeaClient
|
|
129
129
|
return nil unless attributes.is_a?(Hash)
|
130
130
|
self.class.swagger_types.each_pair do |key, type|
|
131
131
|
if type =~ /\AArray<(.*)>/i
|
132
|
-
# check to ensure the input is an array given that the
|
132
|
+
# check to ensure the input is an array given that the attribute
|
133
133
|
# is documented as an array but the input is not
|
134
134
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
135
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -225,5 +225,6 @@ module BudgeaClient
|
|
225
225
|
value
|
226
226
|
end
|
227
227
|
end
|
228
|
+
|
228
229
|
end
|
229
230
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -78,6 +78,8 @@ module BudgeaClient
|
|
78
78
|
|
79
79
|
attr_accessor :transactions
|
80
80
|
|
81
|
+
attr_accessor :transfers
|
82
|
+
|
81
83
|
# If the last update has failed, the error code
|
82
84
|
attr_accessor :error
|
83
85
|
|
@@ -115,6 +117,7 @@ module BudgeaClient
|
|
115
117
|
:'name' => :'name',
|
116
118
|
:'recipients' => :'recipients',
|
117
119
|
:'transactions' => :'transactions',
|
120
|
+
:'transfers' => :'transfers',
|
118
121
|
:'error' => :'error',
|
119
122
|
:'usage' => :'usage',
|
120
123
|
:'ownership' => :'ownership',
|
@@ -147,6 +150,7 @@ module BudgeaClient
|
|
147
150
|
:'name' => :'String',
|
148
151
|
:'recipients' => :'Array<Recipient>',
|
149
152
|
:'transactions' => :'Array<Transaction>',
|
153
|
+
:'transfers' => :'Array<Transfer>',
|
150
154
|
:'error' => :'String',
|
151
155
|
:'usage' => :'String',
|
152
156
|
:'ownership' => :'String',
|
@@ -258,6 +262,12 @@ module BudgeaClient
|
|
258
262
|
end
|
259
263
|
end
|
260
264
|
|
265
|
+
if attributes.has_key?(:'transfers')
|
266
|
+
if (value = attributes[:'transfers']).is_a?(Array)
|
267
|
+
self.transfers = value
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
261
271
|
if attributes.has_key?(:'error')
|
262
272
|
self.error = attributes[:'error']
|
263
273
|
end
|
@@ -340,6 +350,7 @@ module BudgeaClient
|
|
340
350
|
name == o.name &&
|
341
351
|
recipients == o.recipients &&
|
342
352
|
transactions == o.transactions &&
|
353
|
+
transfers == o.transfers &&
|
343
354
|
error == o.error &&
|
344
355
|
usage == o.usage &&
|
345
356
|
ownership == o.ownership &&
|
@@ -355,7 +366,7 @@ module BudgeaClient
|
|
355
366
|
# Calculates hash code according to all attributes.
|
356
367
|
# @return [Fixnum] Hash code
|
357
368
|
def hash
|
358
|
-
[id, id_connection, id_user, id_source, id_parent, number, webid, original_name, balance, coming, display, last_update, deleted, disabled, iban, bic, currency, id_type, bookmarked, name, recipients, transactions, error, usage, ownership, company_name].hash
|
369
|
+
[id, id_connection, id_user, id_source, id_parent, number, webid, original_name, balance, coming, display, last_update, deleted, disabled, iban, bic, currency, id_type, bookmarked, name, recipients, transactions, transfers, error, usage, ownership, company_name].hash
|
359
370
|
end
|
360
371
|
|
361
372
|
# Builds the object from hash
|
@@ -365,7 +376,7 @@ module BudgeaClient
|
|
365
376
|
return nil unless attributes.is_a?(Hash)
|
366
377
|
self.class.swagger_types.each_pair do |key, type|
|
367
378
|
if type =~ /\AArray<(.*)>/i
|
368
|
-
# check to ensure the input is an array given that the
|
379
|
+
# check to ensure the input is an array given that the attribute
|
369
380
|
# is documented as an array but the input is not
|
370
381
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
371
382
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -461,5 +472,6 @@ module BudgeaClient
|
|
461
472
|
value
|
462
473
|
end
|
463
474
|
end
|
475
|
+
|
464
476
|
end
|
465
477
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -186,7 +186,7 @@ module BudgeaClient
|
|
186
186
|
return nil unless attributes.is_a?(Hash)
|
187
187
|
self.class.swagger_types.each_pair do |key, type|
|
188
188
|
if type =~ /\AArray<(.*)>/i
|
189
|
-
# check to ensure the input is an array given that the
|
189
|
+
# check to ensure the input is an array given that the attribute
|
190
190
|
# is documented as an array but the input is not
|
191
191
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
192
192
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -282,5 +282,6 @@ module BudgeaClient
|
|
282
282
|
value
|
283
283
|
end
|
284
284
|
end
|
285
|
+
|
285
286
|
end
|
286
287
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -186,7 +186,7 @@ module BudgeaClient
|
|
186
186
|
return nil unless attributes.is_a?(Hash)
|
187
187
|
self.class.swagger_types.each_pair do |key, type|
|
188
188
|
if type =~ /\AArray<(.*)>/i
|
189
|
-
# check to ensure the input is an array given that the
|
189
|
+
# check to ensure the input is an array given that the attribute
|
190
190
|
# is documented as an array but the input is not
|
191
191
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
192
192
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -282,5 +282,6 @@ module BudgeaClient
|
|
282
282
|
value
|
283
283
|
end
|
284
284
|
end
|
285
|
+
|
285
286
|
end
|
286
287
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -178,7 +178,7 @@ module BudgeaClient
|
|
178
178
|
return nil unless attributes.is_a?(Hash)
|
179
179
|
self.class.swagger_types.each_pair do |key, type|
|
180
180
|
if type =~ /\AArray<(.*)>/i
|
181
|
-
# check to ensure the input is an array given that the
|
181
|
+
# check to ensure the input is an array given that the attribute
|
182
182
|
# is documented as an array but the input is not
|
183
183
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
184
184
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -274,5 +274,6 @@ module BudgeaClient
|
|
274
274
|
value
|
275
275
|
end
|
276
276
|
end
|
277
|
+
|
277
278
|
end
|
278
279
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -118,7 +118,7 @@ module BudgeaClient
|
|
118
118
|
return nil unless attributes.is_a?(Hash)
|
119
119
|
self.class.swagger_types.each_pair do |key, type|
|
120
120
|
if type =~ /\AArray<(.*)>/i
|
121
|
-
# check to ensure the input is an array given that the
|
121
|
+
# check to ensure the input is an array given that the attribute
|
122
122
|
# is documented as an array but the input is not
|
123
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
124
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -214,5 +214,6 @@ module BudgeaClient
|
|
214
214
|
value
|
215
215
|
end
|
216
216
|
end
|
217
|
+
|
217
218
|
end
|
218
219
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -204,7 +204,7 @@ module BudgeaClient
|
|
204
204
|
return nil unless attributes.is_a?(Hash)
|
205
205
|
self.class.swagger_types.each_pair do |key, type|
|
206
206
|
if type =~ /\AArray<(.*)>/i
|
207
|
-
# check to ensure the input is an array given that the
|
207
|
+
# check to ensure the input is an array given that the attribute
|
208
208
|
# is documented as an array but the input is not
|
209
209
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
210
210
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -300,5 +300,6 @@ module BudgeaClient
|
|
300
300
|
value
|
301
301
|
end
|
302
302
|
end
|
303
|
+
|
303
304
|
end
|
304
305
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -144,7 +144,7 @@ module BudgeaClient
|
|
144
144
|
return nil unless attributes.is_a?(Hash)
|
145
145
|
self.class.swagger_types.each_pair do |key, type|
|
146
146
|
if type =~ /\AArray<(.*)>/i
|
147
|
-
# check to ensure the input is an array given that the
|
147
|
+
# check to ensure the input is an array given that the attribute
|
148
148
|
# is documented as an array but the input is not
|
149
149
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
150
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -240,5 +240,6 @@ module BudgeaClient
|
|
240
240
|
value
|
241
241
|
end
|
242
242
|
end
|
243
|
+
|
243
244
|
end
|
244
245
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -188,7 +188,7 @@ module BudgeaClient
|
|
188
188
|
return nil unless attributes.is_a?(Hash)
|
189
189
|
self.class.swagger_types.each_pair do |key, type|
|
190
190
|
if type =~ /\AArray<(.*)>/i
|
191
|
-
# check to ensure the input is an array given that the
|
191
|
+
# check to ensure the input is an array given that the attribute
|
192
192
|
# is documented as an array but the input is not
|
193
193
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
194
194
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -284,5 +284,6 @@ module BudgeaClient
|
|
284
284
|
value
|
285
285
|
end
|
286
286
|
end
|
287
|
+
|
287
288
|
end
|
288
289
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -150,7 +150,7 @@ module BudgeaClient
|
|
150
150
|
return nil unless attributes.is_a?(Hash)
|
151
151
|
self.class.swagger_types.each_pair do |key, type|
|
152
152
|
if type =~ /\AArray<(.*)>/i
|
153
|
-
# check to ensure the input is an array given that the
|
153
|
+
# check to ensure the input is an array given that the attribute
|
154
154
|
# is documented as an array but the input is not
|
155
155
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
156
156
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -246,5 +246,6 @@ module BudgeaClient
|
|
246
246
|
value
|
247
247
|
end
|
248
248
|
end
|
249
|
+
|
249
250
|
end
|
250
251
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.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.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -44,6 +44,11 @@ module BudgeaClient
|
|
44
44
|
# Last successful push
|
45
45
|
attr_accessor :last_push
|
46
46
|
|
47
|
+
# State of Connection
|
48
|
+
attr_accessor :state
|
49
|
+
|
50
|
+
attr_accessor :fields
|
51
|
+
|
47
52
|
# Date of next synchronization
|
48
53
|
attr_accessor :next_try
|
49
54
|
|
@@ -55,6 +60,28 @@ module BudgeaClient
|
|
55
60
|
|
56
61
|
attr_accessor :message
|
57
62
|
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
58
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
86
|
def self.attribute_map
|
60
87
|
{
|
@@ -68,6 +95,8 @@ module BudgeaClient
|
|
68
95
|
:'expire' => :'expire',
|
69
96
|
:'active' => :'active',
|
70
97
|
:'last_push' => :'last_push',
|
98
|
+
:'state' => :'state',
|
99
|
+
:'fields' => :'fields',
|
71
100
|
:'next_try' => :'next_try',
|
72
101
|
:'accounts' => :'accounts',
|
73
102
|
:'subscriptions' => :'subscriptions',
|
@@ -89,6 +118,8 @@ module BudgeaClient
|
|
89
118
|
:'expire' => :'DateTime',
|
90
119
|
:'active' => :'BOOLEAN',
|
91
120
|
:'last_push' => :'DateTime',
|
121
|
+
:'state' => :'String',
|
122
|
+
:'fields' => :'Array<Field>',
|
92
123
|
:'next_try' => :'DateTime',
|
93
124
|
:'accounts' => :'Array<Account>',
|
94
125
|
:'subscriptions' => :'Array<Subscription>',
|
@@ -147,6 +178,16 @@ module BudgeaClient
|
|
147
178
|
self.last_push = attributes[:'last_push']
|
148
179
|
end
|
149
180
|
|
181
|
+
if attributes.has_key?(:'state')
|
182
|
+
self.state = attributes[:'state']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.has_key?(:'fields')
|
186
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
187
|
+
self.fields = value
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
150
191
|
if attributes.has_key?(:'next_try')
|
151
192
|
self.next_try = attributes[:'next_try']
|
152
193
|
end
|
@@ -197,9 +238,21 @@ module BudgeaClient
|
|
197
238
|
return false if @id.nil?
|
198
239
|
return false if @id_connector.nil?
|
199
240
|
return false if @active.nil?
|
241
|
+
state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'bug'])
|
242
|
+
return false unless state_validator.valid?(@state)
|
200
243
|
true
|
201
244
|
end
|
202
245
|
|
246
|
+
# Custom attribute writer method checking allowed values (enum).
|
247
|
+
# @param [Object] state Object to be assigned
|
248
|
+
def state=(state)
|
249
|
+
validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'bug'])
|
250
|
+
unless validator.valid?(state)
|
251
|
+
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
252
|
+
end
|
253
|
+
@state = state
|
254
|
+
end
|
255
|
+
|
203
256
|
# Checks equality by comparing each attribute.
|
204
257
|
# @param [Object] Object to be compared
|
205
258
|
def ==(o)
|
@@ -215,6 +268,8 @@ module BudgeaClient
|
|
215
268
|
expire == o.expire &&
|
216
269
|
active == o.active &&
|
217
270
|
last_push == o.last_push &&
|
271
|
+
state == o.state &&
|
272
|
+
fields == o.fields &&
|
218
273
|
next_try == o.next_try &&
|
219
274
|
accounts == o.accounts &&
|
220
275
|
subscriptions == o.subscriptions &&
|
@@ -231,7 +286,7 @@ module BudgeaClient
|
|
231
286
|
# Calculates hash code according to all attributes.
|
232
287
|
# @return [Fixnum] Hash code
|
233
288
|
def hash
|
234
|
-
[id, id_user, id_connector, last_update, created, error, error_message, expire, active, last_push, next_try, accounts, subscriptions, connection, message].hash
|
289
|
+
[id, id_user, id_connector, last_update, created, error, error_message, expire, active, last_push, state, fields, next_try, accounts, subscriptions, connection, message].hash
|
235
290
|
end
|
236
291
|
|
237
292
|
# Builds the object from hash
|
@@ -241,7 +296,7 @@ module BudgeaClient
|
|
241
296
|
return nil unless attributes.is_a?(Hash)
|
242
297
|
self.class.swagger_types.each_pair do |key, type|
|
243
298
|
if type =~ /\AArray<(.*)>/i
|
244
|
-
# check to ensure the input is an array given that the
|
299
|
+
# check to ensure the input is an array given that the attribute
|
245
300
|
# is documented as an array but the input is not
|
246
301
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
247
302
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -337,5 +392,6 @@ module BudgeaClient
|
|
337
392
|
value
|
338
393
|
end
|
339
394
|
end
|
395
|
+
|
340
396
|
end
|
341
397
|
end
|