budgea_client 5.0.0 → 5.1.2
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/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +19 -6
- data/budgea_openapi.json +1690 -1377
- data/config.json +1 -1
- data/docs/Account.md +1 -0
- data/docs/AdministrationApi.md +48 -48
- data/docs/AuthenticationApi.md +9 -9
- data/docs/BanksApi.md +392 -145
- data/docs/Connection.md +3 -0
- data/docs/ConnectionsApi.md +277 -30
- data/docs/DocumentsApi.md +48 -48
- 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/OIDCApi.md +3 -3
- data/docs/PFMApi.md +42 -42
- data/docs/ProvidersApi.md +343 -96
- data/docs/RecipientsApi.md +4 -4
- data/docs/TermsApi.md +74 -9
- data/docs/TransferApi.md +1 -1
- data/docs/TransfersApi.md +63 -63
- data/docs/UsersManagementApi.md +13 -13
- data/docs/WealthApi.md +75 -59
- data/lib/budgea_client/api/administration_api.rb +49 -49
- data/lib/budgea_client/api/authentication_api.rb +9 -9
- data/lib/budgea_client/api/banks_api.rb +403 -154
- data/lib/budgea_client/api/connections_api.rb +282 -33
- data/lib/budgea_client/api/documents_api.rb +49 -49
- data/lib/budgea_client/api/oidc_api.rb +3 -3
- data/lib/budgea_client/api/pfm_api.rb +44 -44
- data/lib/budgea_client/api/providers_api.rb +349 -100
- data/lib/budgea_client/api/recipients_api.rb +4 -4
- data/lib/budgea_client/api/terms_api.rb +77 -11
- data/lib/budgea_client/api/transfer_api.rb +1 -1
- data/lib/budgea_client/api/transfers_api.rb +75 -75
- data/lib/budgea_client/api/users_management_api.rb +14 -14
- data/lib/budgea_client/api/wealth_api.rb +99 -75
- data/lib/budgea_client/api_client.rb +2 -0
- data/lib/budgea_client/models/access.rb +2 -1
- data/lib/budgea_client/models/account.rb +14 -2
- data/lib/budgea_client/models/account_log.rb +2 -1
- data/lib/budgea_client/models/account_type.rb +2 -1
- data/lib/budgea_client/models/alert.rb +2 -1
- data/lib/budgea_client/models/auth_provider.rb +2 -1
- data/lib/budgea_client/models/category.rb +2 -1
- data/lib/budgea_client/models/certificate.rb +2 -1
- data/lib/budgea_client/models/client.rb +2 -1
- data/lib/budgea_client/models/config_log.rb +2 -1
- data/lib/budgea_client/models/connection.rb +70 -5
- data/lib/budgea_client/models/connection_log.rb +2 -1
- data/lib/budgea_client/models/connection_source.rb +2 -1
- data/lib/budgea_client/models/connector.rb +2 -1
- data/lib/budgea_client/models/connector_category.rb +2 -1
- data/lib/budgea_client/models/connector_logo.rb +2 -1
- data/lib/budgea_client/models/connector_source.rb +2 -1
- data/lib/budgea_client/models/currency.rb +2 -1
- data/lib/budgea_client/models/device.rb +2 -1
- data/lib/budgea_client/models/document.rb +2 -1
- data/lib/budgea_client/models/document_type.rb +2 -1
- data/lib/budgea_client/models/field.rb +2 -1
- data/lib/budgea_client/models/field_value.rb +2 -1
- data/lib/budgea_client/models/file.rb +2 -1
- data/lib/budgea_client/models/group.rb +2 -1
- data/lib/budgea_client/models/hash_table.rb +2 -1
- data/lib/budgea_client/models/inline_response_200.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_1.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_10.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_11.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_12.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_13.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_14.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_15.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_16.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_17.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_18.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_19.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_2.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_20.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_21.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_22.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_23.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_24.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_25.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_26.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_27.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_28.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_29.rb +20 -19
- data/lib/budgea_client/models/inline_response_200_3.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_30.rb +13 -12
- data/lib/budgea_client/models/inline_response_200_31.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_32.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_33.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_34.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_35.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_36.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_37.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_38.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_39.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_4.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_40.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_41.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_42.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_5.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_6.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_7.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_8.rb +2 -1
- data/lib/budgea_client/models/inline_response_200_9.rb +2 -1
- data/lib/budgea_client/models/investment.rb +2 -1
- data/lib/budgea_client/models/investment_value.rb +2 -1
- data/lib/budgea_client/models/keyword.rb +2 -1
- data/lib/budgea_client/models/locked_user.rb +2 -1
- data/lib/budgea_client/models/oidc_whitelist.rb +2 -1
- data/lib/budgea_client/models/order.rb +2 -1
- data/lib/budgea_client/models/pocket.rb +2 -1
- data/lib/budgea_client/models/profile.rb +2 -1
- data/lib/budgea_client/models/project.rb +2 -1
- data/lib/budgea_client/models/project_type.rb +2 -1
- data/lib/budgea_client/models/recipient.rb +2 -1
- data/lib/budgea_client/models/recipient_log.rb +2 -1
- data/lib/budgea_client/models/security.rb +2 -1
- data/lib/budgea_client/models/subscription.rb +2 -1
- data/lib/budgea_client/models/subscription_log.rb +2 -1
- data/lib/budgea_client/models/terms_of_service.rb +2 -1
- data/lib/budgea_client/models/transaction.rb +2 -1
- data/lib/budgea_client/models/transaction_information.rb +2 -1
- data/lib/budgea_client/models/transactions_cluster.rb +2 -1
- data/lib/budgea_client/models/transfer.rb +2 -1
- data/lib/budgea_client/models/transfer_log.rb +2 -1
- data/lib/budgea_client/models/user.rb +2 -1
- data/lib/budgea_client/models/user_alert.rb +2 -1
- data/lib/budgea_client/models/webhook.rb +2 -1
- data/lib/budgea_client/models/webhook_data.rb +2 -1
- data/lib/budgea_client/models/webhook_log.rb +2 -1
- data/lib/budgea_client/version.rb +1 -1
- data/original_budgea_openapi.json +1559 -1474
- data/pkg/budgea_client-5.1.2.gem +0 -0
- data/spec/.!78900!.DS_Store +0 -0
- data/spec/.!79301!.DS_Store +0 -0
- data/spec/.!79684!.DS_Store +0 -0
- data/spec/.!83764!.DS_Store +0 -0
- data/spec/.DS_Store +0 -0
- metadata +9 -7
- data/pkg/budgea_client-2.0.0.gem +0 -0
- data/pkg/budgea_client-3.0.1.gem +0 -0
- data/pkg/budgea_client-4.0.0.gem +0 -0
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -53,6 +58,30 @@ module BudgeaClient
|
|
|
53
58
|
|
|
54
59
|
attr_accessor :connection
|
|
55
60
|
|
|
61
|
+
attr_accessor :message
|
|
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
|
+
|
|
56
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
86
|
def self.attribute_map
|
|
58
87
|
{
|
|
@@ -66,10 +95,13 @@ module BudgeaClient
|
|
|
66
95
|
:'expire' => :'expire',
|
|
67
96
|
:'active' => :'active',
|
|
68
97
|
:'last_push' => :'last_push',
|
|
98
|
+
:'state' => :'state',
|
|
99
|
+
:'fields' => :'fields',
|
|
69
100
|
:'next_try' => :'next_try',
|
|
70
101
|
:'accounts' => :'accounts',
|
|
71
102
|
:'subscriptions' => :'subscriptions',
|
|
72
|
-
:'connection' => :'connection'
|
|
103
|
+
:'connection' => :'connection',
|
|
104
|
+
:'message' => :'message'
|
|
73
105
|
}
|
|
74
106
|
end
|
|
75
107
|
|
|
@@ -86,10 +118,13 @@ module BudgeaClient
|
|
|
86
118
|
:'expire' => :'DateTime',
|
|
87
119
|
:'active' => :'BOOLEAN',
|
|
88
120
|
:'last_push' => :'DateTime',
|
|
121
|
+
:'state' => :'String',
|
|
122
|
+
:'fields' => :'Array<Field>',
|
|
89
123
|
:'next_try' => :'DateTime',
|
|
90
124
|
:'accounts' => :'Array<Account>',
|
|
91
125
|
:'subscriptions' => :'Array<Subscription>',
|
|
92
|
-
:'connection' => :'Connection'
|
|
126
|
+
:'connection' => :'Connection',
|
|
127
|
+
:'message' => :'String'
|
|
93
128
|
}
|
|
94
129
|
end
|
|
95
130
|
|
|
@@ -143,6 +178,16 @@ module BudgeaClient
|
|
|
143
178
|
self.last_push = attributes[:'last_push']
|
|
144
179
|
end
|
|
145
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
|
+
|
|
146
191
|
if attributes.has_key?(:'next_try')
|
|
147
192
|
self.next_try = attributes[:'next_try']
|
|
148
193
|
end
|
|
@@ -162,6 +207,10 @@ module BudgeaClient
|
|
|
162
207
|
if attributes.has_key?(:'connection')
|
|
163
208
|
self.connection = attributes[:'connection']
|
|
164
209
|
end
|
|
210
|
+
|
|
211
|
+
if attributes.has_key?(:'message')
|
|
212
|
+
self.message = attributes[:'message']
|
|
213
|
+
end
|
|
165
214
|
end
|
|
166
215
|
|
|
167
216
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -189,9 +238,21 @@ module BudgeaClient
|
|
|
189
238
|
return false if @id.nil?
|
|
190
239
|
return false if @id_connector.nil?
|
|
191
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)
|
|
192
243
|
true
|
|
193
244
|
end
|
|
194
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
|
+
|
|
195
256
|
# Checks equality by comparing each attribute.
|
|
196
257
|
# @param [Object] Object to be compared
|
|
197
258
|
def ==(o)
|
|
@@ -207,10 +268,13 @@ module BudgeaClient
|
|
|
207
268
|
expire == o.expire &&
|
|
208
269
|
active == o.active &&
|
|
209
270
|
last_push == o.last_push &&
|
|
271
|
+
state == o.state &&
|
|
272
|
+
fields == o.fields &&
|
|
210
273
|
next_try == o.next_try &&
|
|
211
274
|
accounts == o.accounts &&
|
|
212
275
|
subscriptions == o.subscriptions &&
|
|
213
|
-
connection == o.connection
|
|
276
|
+
connection == o.connection &&
|
|
277
|
+
message == o.message
|
|
214
278
|
end
|
|
215
279
|
|
|
216
280
|
# @see the `==` method
|
|
@@ -222,7 +286,7 @@ module BudgeaClient
|
|
|
222
286
|
# Calculates hash code according to all attributes.
|
|
223
287
|
# @return [Fixnum] Hash code
|
|
224
288
|
def hash
|
|
225
|
-
[id, id_user, id_connector, last_update, created, error, error_message, expire, active, last_push, next_try, accounts, subscriptions, connection].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
|
|
226
290
|
end
|
|
227
291
|
|
|
228
292
|
# Builds the object from hash
|
|
@@ -232,7 +296,7 @@ module BudgeaClient
|
|
|
232
296
|
return nil unless attributes.is_a?(Hash)
|
|
233
297
|
self.class.swagger_types.each_pair do |key, type|
|
|
234
298
|
if type =~ /\AArray<(.*)>/i
|
|
235
|
-
# check to ensure the input is an array given that the
|
|
299
|
+
# check to ensure the input is an array given that the attribute
|
|
236
300
|
# is documented as an array but the input is not
|
|
237
301
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
238
302
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -328,5 +392,6 @@ module BudgeaClient
|
|
|
328
392
|
value
|
|
329
393
|
end
|
|
330
394
|
end
|
|
395
|
+
|
|
331
396
|
end
|
|
332
397
|
end
|
|
@@ -259,7 +259,7 @@ module BudgeaClient
|
|
|
259
259
|
return nil unless attributes.is_a?(Hash)
|
|
260
260
|
self.class.swagger_types.each_pair do |key, type|
|
|
261
261
|
if type =~ /\AArray<(.*)>/i
|
|
262
|
-
# check to ensure the input is an array given that the
|
|
262
|
+
# check to ensure the input is an array given that the attribute
|
|
263
263
|
# is documented as an array but the input is not
|
|
264
264
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
265
265
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -355,5 +355,6 @@ module BudgeaClient
|
|
|
355
355
|
value
|
|
356
356
|
end
|
|
357
357
|
end
|
|
358
|
+
|
|
358
359
|
end
|
|
359
360
|
end
|
|
@@ -209,7 +209,7 @@ module BudgeaClient
|
|
|
209
209
|
return nil unless attributes.is_a?(Hash)
|
|
210
210
|
self.class.swagger_types.each_pair do |key, type|
|
|
211
211
|
if type =~ /\AArray<(.*)>/i
|
|
212
|
-
# check to ensure the input is an array given that the
|
|
212
|
+
# check to ensure the input is an array given that the attribute
|
|
213
213
|
# is documented as an array but the input is not
|
|
214
214
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
215
215
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -305,5 +305,6 @@ module BudgeaClient
|
|
|
305
305
|
value
|
|
306
306
|
end
|
|
307
307
|
end
|
|
308
|
+
|
|
308
309
|
end
|
|
309
310
|
end
|
|
@@ -284,7 +284,7 @@ module BudgeaClient
|
|
|
284
284
|
return nil unless attributes.is_a?(Hash)
|
|
285
285
|
self.class.swagger_types.each_pair do |key, type|
|
|
286
286
|
if type =~ /\AArray<(.*)>/i
|
|
287
|
-
# check to ensure the input is an array given that the
|
|
287
|
+
# check to ensure the input is an array given that the attribute
|
|
288
288
|
# is documented as an array but the input is not
|
|
289
289
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
290
290
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -380,5 +380,6 @@ module BudgeaClient
|
|
|
380
380
|
value
|
|
381
381
|
end
|
|
382
382
|
end
|
|
383
|
+
|
|
383
384
|
end
|
|
384
385
|
end
|
|
@@ -106,7 +106,7 @@ module BudgeaClient
|
|
|
106
106
|
return nil unless attributes.is_a?(Hash)
|
|
107
107
|
self.class.swagger_types.each_pair do |key, type|
|
|
108
108
|
if type =~ /\AArray<(.*)>/i
|
|
109
|
-
# check to ensure the input is an array given that the
|
|
109
|
+
# check to ensure the input is an array given that the attribute
|
|
110
110
|
# is documented as an array but the input is not
|
|
111
111
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
112
112
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -202,5 +202,6 @@ module BudgeaClient
|
|
|
202
202
|
value
|
|
203
203
|
end
|
|
204
204
|
end
|
|
205
|
+
|
|
205
206
|
end
|
|
206
207
|
end
|