budgea_client 1.4.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +67 -725
- data/budgea_client.gemspec +15 -3
- data/budgea_openapi.json +2011 -524
- data/docs/Account.md +3 -1
- data/docs/AccountLog.md +2 -2
- data/docs/AdministrationApi.md +354 -34
- data/docs/AuthenticationApi.md +264 -18
- data/docs/BankCategory.md +1 -1
- data/docs/BanksApi.md +939 -550
- data/docs/Certificate.md +12 -0
- data/docs/Client.md +5 -2
- data/docs/Connection.md +1 -1
- data/docs/ConnectionLog.md +3 -2
- data/docs/ConnectionsApi.md +162 -103
- data/docs/Connector.md +21 -0
- data/docs/ConnectorCategory.md +9 -0
- data/docs/ConnectorLogo.md +1 -1
- data/docs/Currency.md +4 -0
- data/docs/DocumentsApi.md +350 -350
- data/docs/Field.md +3 -2
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- 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/InlineResponse2003.md +2 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +1 -1
- data/docs/InlineResponse20032.md +1 -1
- data/docs/InlineResponse20033.md +1 -1
- data/docs/InlineResponse20034.md +8 -0
- data/docs/InlineResponse20035.md +8 -0
- data/docs/InlineResponse20036.md +8 -0
- data/docs/InlineResponse2004.md +0 -2
- data/docs/InlineResponse2005.md +5 -2
- data/docs/InlineResponse2006.md +2 -3
- data/docs/InlineResponse2007.md +3 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/OCRApi.md +5 -5
- data/docs/OIDCApi.md +5 -5
- data/docs/PFMApi.md +122 -122
- data/docs/Pocket.md +1 -1
- data/docs/Profile.md +1 -1
- data/docs/Project.md +1 -1
- data/docs/ProvidersApi.md +602 -604
- data/docs/Recipient.md +3 -0
- data/docs/RecipientLog.md +14 -0
- data/docs/RecipientsApi.md +28 -20
- data/docs/Subscription.md +2 -1
- data/docs/TermsApi.md +13 -15
- data/docs/Transaction.md +8 -3
- data/docs/Transfer.md +1 -0
- data/docs/TransferLog.md +14 -0
- data/docs/TransfersApi.md +165 -141
- data/docs/UserAlert.md +2 -2
- data/docs/UsersManagementApi.md +24 -24
- data/docs/WealthApi.md +54 -54
- data/docs/WebhookLog.md +15 -0
- data/lib/budgea_client.rb +27 -3
- data/lib/budgea_client/api/administration_api.rb +425 -106
- data/lib/budgea_client/api/authentication_api.rb +287 -46
- data/lib/budgea_client/api/banks_api.rb +1271 -974
- data/lib/budgea_client/api/connections_api.rb +207 -156
- data/lib/budgea_client/api/documents_api.rb +627 -693
- data/lib/budgea_client/api/ocr_api.rb +24 -16
- data/lib/budgea_client/api/oidc_api.rb +23 -16
- data/lib/budgea_client/api/pfm_api.rb +219 -248
- data/lib/budgea_client/api/providers_api.rb +998 -1099
- data/lib/budgea_client/api/recipients_api.rb +52 -34
- data/lib/budgea_client/api/terms_api.rb +34 -31
- data/lib/budgea_client/api/transfers_api.rb +245 -239
- data/lib/budgea_client/api/users_management_api.rb +56 -58
- data/lib/budgea_client/api/wealth_api.rb +81 -85
- data/lib/budgea_client/api_client.rb +20 -11
- data/lib/budgea_client/api_error.rb +11 -1
- data/lib/budgea_client/configuration.rb +12 -2
- data/lib/budgea_client/models/access.rb +18 -13
- data/lib/budgea_client/models/account.rb +44 -23
- data/lib/budgea_client/models/account_log.rb +33 -28
- data/lib/budgea_client/models/account_type.rb +22 -17
- data/lib/budgea_client/models/alert.rb +21 -16
- data/lib/budgea_client/models/bank.rb +21 -16
- data/lib/budgea_client/models/bank_category.rb +19 -14
- data/lib/budgea_client/models/category.rb +22 -17
- data/lib/budgea_client/models/certificate.rb +244 -0
- data/lib/budgea_client/models/client.rb +53 -20
- data/lib/budgea_client/models/connection.rb +29 -24
- data/lib/budgea_client/models/connection_log.rb +39 -24
- data/lib/budgea_client/models/connector.rb +345 -0
- data/lib/budgea_client/models/connector_category.rb +206 -0
- data/lib/budgea_client/models/connector_logo.rb +29 -24
- data/lib/budgea_client/models/currency.rb +63 -16
- data/lib/budgea_client/models/device.rb +23 -18
- data/lib/budgea_client/models/document.rb +21 -16
- data/lib/budgea_client/models/document_type.rb +19 -14
- data/lib/budgea_client/models/field.rb +44 -27
- data/lib/budgea_client/models/field_value.rb +18 -13
- data/lib/budgea_client/models/file.rb +20 -15
- data/lib/budgea_client/models/group.rb +17 -12
- data/lib/budgea_client/models/hash_table.rb +20 -15
- data/lib/budgea_client/models/inline_response_200.rb +17 -12
- data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
- data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
- data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
- data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
- data/lib/budgea_client/models/investment.rb +20 -15
- data/lib/budgea_client/models/investment_value.rb +20 -15
- data/lib/budgea_client/models/invite.rb +18 -13
- data/lib/budgea_client/models/locked_user.rb +18 -13
- data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
- data/lib/budgea_client/models/pocket.rb +22 -17
- data/lib/budgea_client/models/profile.rb +26 -20
- data/lib/budgea_client/models/project.rb +26 -21
- data/lib/budgea_client/models/project_type.rb +18 -13
- data/lib/budgea_client/models/recipient.rb +52 -17
- data/lib/budgea_client/models/recipient_log.rb +254 -0
- data/lib/budgea_client/models/security.rb +18 -13
- data/lib/budgea_client/models/subscription.rb +31 -21
- data/lib/budgea_client/models/terms_of_service.rb +19 -14
- data/lib/budgea_client/models/transaction.rb +83 -33
- data/lib/budgea_client/models/transaction_information.rb +19 -14
- data/lib/budgea_client/models/transactions_cluster.rb +21 -16
- data/lib/budgea_client/models/transfer.rb +32 -16
- data/lib/budgea_client/models/transfer_log.rb +254 -0
- data/lib/budgea_client/models/user.rb +22 -16
- data/lib/budgea_client/models/user_alert.rb +22 -16
- data/lib/budgea_client/models/webhook.rb +19 -14
- data/lib/budgea_client/models/webhook_log.rb +264 -0
- data/lib/budgea_client/version.rb +12 -2
- data/original_budgea_openapi.json +23188 -0
- data/spec/models/certificate_spec.rb +65 -0
- data/spec/models/connector_category_spec.rb +47 -0
- data/spec/models/connector_spec.rb +119 -0
- data/spec/models/inline_response_200_34_spec.rb +41 -0
- data/spec/models/inline_response_200_35_spec.rb +41 -0
- data/spec/models/inline_response_200_36_spec.rb +41 -0
- data/spec/models/recipient_log_spec.rb +77 -0
- data/spec/models/transfer_log_spec.rb +77 -0
- data/spec/models/webhook_log_spec.rb +83 -0
- metadata +52 -18
- data/pkg/budgea_client-1.3.9.gem +0 -0
- data/pkg/budgea_client-1.4.2.gem +0 -0
- data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -1,4 +1,14 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
require 'json'
|
@@ -23,7 +33,7 @@ module BudgeaClient
|
|
23
33
|
@config = config
|
24
34
|
@user_agent = "Swagger-Codegen/#{VERSION}/ruby"
|
25
35
|
@default_headers = {
|
26
|
-
'Content-Type' =>
|
36
|
+
'Content-Type' => 'application/json',
|
27
37
|
'User-Agent' => @user_agent
|
28
38
|
}
|
29
39
|
end
|
@@ -99,8 +109,7 @@ module BudgeaClient
|
|
99
109
|
:ssl_verifyhost => _verify_ssl_host,
|
100
110
|
:sslcert => @config.cert_file,
|
101
111
|
:sslkey => @config.key_file,
|
102
|
-
:verbose => @config.debugging
|
103
|
-
:multipart => header_params['Content-Type'] == 'multipart/form-data'
|
112
|
+
:verbose => @config.debugging
|
104
113
|
}
|
105
114
|
|
106
115
|
# set custom cert, if provided
|
@@ -128,7 +137,7 @@ module BudgeaClient
|
|
128
137
|
# @param [String] mime MIME
|
129
138
|
# @return [Boolean] True if the MIME is application/json
|
130
139
|
def json_mime?(mime)
|
131
|
-
|
140
|
+
(mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
|
132
141
|
end
|
133
142
|
|
134
143
|
# Deserialize the response to the given return type.
|
@@ -192,12 +201,12 @@ module BudgeaClient
|
|
192
201
|
when /\AArray<(.+)>\z/
|
193
202
|
# e.g. Array<Pet>
|
194
203
|
sub_type = $1
|
195
|
-
data.map {|item| convert_to_type(item, sub_type) }
|
204
|
+
data.map { |item| convert_to_type(item, sub_type) }
|
196
205
|
when /\AHash\<String, (.+)\>\z/
|
197
206
|
# e.g. Hash<String, Integer>
|
198
207
|
sub_type = $1
|
199
208
|
{}.tap do |hash|
|
200
|
-
data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
|
209
|
+
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
201
210
|
end
|
202
211
|
else
|
203
212
|
# models, e.g. Pet
|
@@ -219,7 +228,7 @@ module BudgeaClient
|
|
219
228
|
encoding = nil
|
220
229
|
request.on_headers do |response|
|
221
230
|
content_disposition = response.headers['Content-Disposition']
|
222
|
-
if content_disposition
|
231
|
+
if content_disposition && content_disposition =~ /filename=/i
|
223
232
|
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
224
233
|
prefix = sanitize_filename(filename)
|
225
234
|
else
|
@@ -318,7 +327,7 @@ module BudgeaClient
|
|
318
327
|
return nil if accepts.nil? || accepts.empty?
|
319
328
|
# use JSON when present, otherwise use all of the provided
|
320
329
|
json_accept = accepts.find { |s| json_mime?(s) }
|
321
|
-
|
330
|
+
json_accept || accepts.join(',')
|
322
331
|
end
|
323
332
|
|
324
333
|
# Return Content-Type header based on an array of content types provided.
|
@@ -329,7 +338,7 @@ module BudgeaClient
|
|
329
338
|
return 'application/json' if content_types.nil? || content_types.empty?
|
330
339
|
# use JSON when present, otherwise use the first one
|
331
340
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
332
|
-
|
341
|
+
json_content_type || content_types.first
|
333
342
|
end
|
334
343
|
|
335
344
|
# Convert object (array, hash, object, etc) to JSON string.
|
@@ -339,7 +348,7 @@ module BudgeaClient
|
|
339
348
|
return model if model.nil? || model.is_a?(String)
|
340
349
|
local_body = nil
|
341
350
|
if model.is_a?(Array)
|
342
|
-
local_body = model.map{|m| object_to_hash(m) }
|
351
|
+
local_body = model.map { |m| object_to_hash(m) }
|
343
352
|
else
|
344
353
|
local_body = object_to_hash(model)
|
345
354
|
end
|
@@ -1,4 +1,14 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
module BudgeaClient
|
4
14
|
class ApiError < StandardError
|
@@ -1,4 +1,14 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'uri'
|
4
14
|
|
@@ -160,7 +170,7 @@ module BudgeaClient
|
|
160
170
|
def base_path=(base_path)
|
161
171
|
# Add leading and trailing slashes to base_path
|
162
172
|
@base_path = "/#{base_path}".gsub(/\/+/, '/')
|
163
|
-
@base_path =
|
173
|
+
@base_path = '' if @base_path == '/'
|
164
174
|
end
|
165
175
|
|
166
176
|
def base_url
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class Access
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -15,7 +24,6 @@ module BudgeaClient
|
|
15
24
|
|
16
25
|
attr_accessor :email
|
17
26
|
|
18
|
-
|
19
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
28
|
def self.attribute_map
|
21
29
|
{
|
@@ -44,7 +52,7 @@ module BudgeaClient
|
|
44
52
|
return unless attributes.is_a?(Hash)
|
45
53
|
|
46
54
|
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
56
|
|
49
57
|
if attributes.has_key?(:'id')
|
50
58
|
self.id = attributes[:'id']
|
@@ -65,7 +73,6 @@ module BudgeaClient
|
|
65
73
|
if attributes.has_key?(:'email')
|
66
74
|
self.email = attributes[:'email']
|
67
75
|
end
|
68
|
-
|
69
76
|
end
|
70
77
|
|
71
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -73,14 +80,14 @@ module BudgeaClient
|
|
73
80
|
def list_invalid_properties
|
74
81
|
invalid_properties = Array.new
|
75
82
|
if @id.nil?
|
76
|
-
invalid_properties.push(
|
83
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
77
84
|
end
|
78
85
|
|
79
86
|
if @id_profile.nil?
|
80
|
-
invalid_properties.push(
|
87
|
+
invalid_properties.push('invalid value for "id_profile", id_profile cannot be nil.')
|
81
88
|
end
|
82
89
|
|
83
|
-
|
90
|
+
invalid_properties
|
84
91
|
end
|
85
92
|
|
86
93
|
# Check to see if the all the properties in the model are valid
|
@@ -88,7 +95,7 @@ module BudgeaClient
|
|
88
95
|
def valid?
|
89
96
|
return false if @id.nil?
|
90
97
|
return false if @id_profile.nil?
|
91
|
-
|
98
|
+
true
|
92
99
|
end
|
93
100
|
|
94
101
|
# Checks equality by comparing each attribute.
|
@@ -125,7 +132,7 @@ module BudgeaClient
|
|
125
132
|
# check to ensure the input is an array given that the the attribute
|
126
133
|
# is documented as an array but the input is not
|
127
134
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
135
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
136
|
end
|
130
137
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
138
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -207,7 +214,7 @@ module BudgeaClient
|
|
207
214
|
# @return [Hash] Returns the value in the form of hash
|
208
215
|
def _to_hash(value)
|
209
216
|
if value.is_a?(Array)
|
210
|
-
value.compact.map{ |v| _to_hash(v) }
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
211
218
|
elsif value.is_a?(Hash)
|
212
219
|
{}.tap do |hash|
|
213
220
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -218,7 +225,5 @@ module BudgeaClient
|
|
218
225
|
value
|
219
226
|
end
|
220
227
|
end
|
221
|
-
|
222
228
|
end
|
223
|
-
|
224
229
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class Account
|
8
17
|
# ID of the account
|
9
18
|
attr_accessor :id
|
@@ -59,9 +68,13 @@ module BudgeaClient
|
|
59
68
|
# Name of the account
|
60
69
|
attr_accessor :name
|
61
70
|
|
71
|
+
attr_accessor :transactions
|
72
|
+
|
62
73
|
# If the last update has failed, the error code
|
63
74
|
attr_accessor :error
|
64
75
|
|
76
|
+
# Account usage
|
77
|
+
attr_accessor :usage
|
65
78
|
|
66
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
67
80
|
def self.attribute_map
|
@@ -84,7 +97,9 @@ module BudgeaClient
|
|
84
97
|
:'id_type' => :'id_type',
|
85
98
|
:'bookmarked' => :'bookmarked',
|
86
99
|
:'name' => :'name',
|
87
|
-
:'
|
100
|
+
:'transactions' => :'transactions',
|
101
|
+
:'error' => :'error',
|
102
|
+
:'usage' => :'usage'
|
88
103
|
}
|
89
104
|
end
|
90
105
|
|
@@ -109,7 +124,9 @@ module BudgeaClient
|
|
109
124
|
:'id_type' => :'Integer',
|
110
125
|
:'bookmarked' => :'Integer',
|
111
126
|
:'name' => :'String',
|
112
|
-
:'
|
127
|
+
:'transactions' => :'Array<Transaction>',
|
128
|
+
:'error' => :'String',
|
129
|
+
:'usage' => :'String'
|
113
130
|
}
|
114
131
|
end
|
115
132
|
|
@@ -119,7 +136,7 @@ module BudgeaClient
|
|
119
136
|
return unless attributes.is_a?(Hash)
|
120
137
|
|
121
138
|
# convert string to symbol for hash key
|
122
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
139
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
123
140
|
|
124
141
|
if attributes.has_key?(:'id')
|
125
142
|
self.id = attributes[:'id']
|
@@ -197,10 +214,19 @@ module BudgeaClient
|
|
197
214
|
self.name = attributes[:'name']
|
198
215
|
end
|
199
216
|
|
217
|
+
if attributes.has_key?(:'transactions')
|
218
|
+
if (value = attributes[:'transactions']).is_a?(Array)
|
219
|
+
self.transactions = value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
200
223
|
if attributes.has_key?(:'error')
|
201
224
|
self.error = attributes[:'error']
|
202
225
|
end
|
203
226
|
|
227
|
+
if attributes.has_key?(:'usage')
|
228
|
+
self.usage = attributes[:'usage']
|
229
|
+
end
|
204
230
|
end
|
205
231
|
|
206
232
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -208,42 +234,37 @@ module BudgeaClient
|
|
208
234
|
def list_invalid_properties
|
209
235
|
invalid_properties = Array.new
|
210
236
|
if @id.nil?
|
211
|
-
invalid_properties.push(
|
212
|
-
end
|
213
|
-
|
214
|
-
if @id_user.nil?
|
215
|
-
invalid_properties.push("invalid value for 'id_user', id_user cannot be nil.")
|
237
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
216
238
|
end
|
217
239
|
|
218
240
|
if @original_name.nil?
|
219
|
-
invalid_properties.push(
|
241
|
+
invalid_properties.push('invalid value for "original_name", original_name cannot be nil.')
|
220
242
|
end
|
221
243
|
|
222
244
|
if @balance.nil?
|
223
|
-
invalid_properties.push(
|
245
|
+
invalid_properties.push('invalid value for "balance", balance cannot be nil.')
|
224
246
|
end
|
225
247
|
|
226
248
|
if @display.nil?
|
227
|
-
invalid_properties.push(
|
249
|
+
invalid_properties.push('invalid value for "display", display cannot be nil.')
|
228
250
|
end
|
229
251
|
|
230
252
|
if @bookmarked.nil?
|
231
|
-
invalid_properties.push(
|
253
|
+
invalid_properties.push('invalid value for "bookmarked", bookmarked cannot be nil.')
|
232
254
|
end
|
233
255
|
|
234
|
-
|
256
|
+
invalid_properties
|
235
257
|
end
|
236
258
|
|
237
259
|
# Check to see if the all the properties in the model are valid
|
238
260
|
# @return true if the model is valid
|
239
261
|
def valid?
|
240
262
|
return false if @id.nil?
|
241
|
-
return false if @id_user.nil?
|
242
263
|
return false if @original_name.nil?
|
243
264
|
return false if @balance.nil?
|
244
265
|
return false if @display.nil?
|
245
266
|
return false if @bookmarked.nil?
|
246
|
-
|
267
|
+
true
|
247
268
|
end
|
248
269
|
|
249
270
|
# Checks equality by comparing each attribute.
|
@@ -269,7 +290,9 @@ module BudgeaClient
|
|
269
290
|
id_type == o.id_type &&
|
270
291
|
bookmarked == o.bookmarked &&
|
271
292
|
name == o.name &&
|
272
|
-
|
293
|
+
transactions == o.transactions &&
|
294
|
+
error == o.error &&
|
295
|
+
usage == o.usage
|
273
296
|
end
|
274
297
|
|
275
298
|
# @see the `==` method
|
@@ -281,7 +304,7 @@ module BudgeaClient
|
|
281
304
|
# Calculates hash code according to all attributes.
|
282
305
|
# @return [Fixnum] Hash code
|
283
306
|
def hash
|
284
|
-
[id, id_connection, id_user, id_parent, number, original_name, balance, coming, display, last_update, deleted, disabled, iban, bic, currency, id_type, bookmarked, name, error].hash
|
307
|
+
[id, id_connection, id_user, id_parent, number, original_name, balance, coming, display, last_update, deleted, disabled, iban, bic, currency, id_type, bookmarked, name, transactions, error, usage].hash
|
285
308
|
end
|
286
309
|
|
287
310
|
# Builds the object from hash
|
@@ -294,7 +317,7 @@ module BudgeaClient
|
|
294
317
|
# check to ensure the input is an array given that the the attribute
|
295
318
|
# is documented as an array but the input is not
|
296
319
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
297
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
320
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
298
321
|
end
|
299
322
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
300
323
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -376,7 +399,7 @@ module BudgeaClient
|
|
376
399
|
# @return [Hash] Returns the value in the form of hash
|
377
400
|
def _to_hash(value)
|
378
401
|
if value.is_a?(Array)
|
379
|
-
value.compact.map{ |v| _to_hash(v) }
|
402
|
+
value.compact.map { |v| _to_hash(v) }
|
380
403
|
elsif value.is_a?(Hash)
|
381
404
|
{}.tap do |hash|
|
382
405
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -387,7 +410,5 @@ module BudgeaClient
|
|
387
410
|
value
|
388
411
|
end
|
389
412
|
end
|
390
|
-
|
391
413
|
end
|
392
|
-
|
393
414
|
end
|
@@ -1,15 +1,24 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class AccountLog
|
8
17
|
# ID of the related account
|
9
18
|
attr_accessor :id_account
|
10
19
|
|
11
20
|
# provider id
|
12
|
-
attr_accessor :
|
21
|
+
attr_accessor :id_connector
|
13
22
|
|
14
23
|
# Balanced recorded
|
15
24
|
attr_accessor :balance
|
@@ -26,21 +35,20 @@ module BudgeaClient
|
|
26
35
|
# If fail, error message received from bank or provider
|
27
36
|
attr_accessor :error_message
|
28
37
|
|
29
|
-
# ID of the related connection
|
30
|
-
attr_accessor :
|
31
|
-
|
38
|
+
# ID of the related connection log
|
39
|
+
attr_accessor :id_connection_log
|
32
40
|
|
33
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
42
|
def self.attribute_map
|
35
43
|
{
|
36
44
|
:'id_account' => :'id_account',
|
37
|
-
:'
|
45
|
+
:'id_connector' => :'id_connector',
|
38
46
|
:'balance' => :'balance',
|
39
47
|
:'coming' => :'coming',
|
40
48
|
:'timestamp' => :'timestamp',
|
41
49
|
:'error' => :'error',
|
42
50
|
:'error_message' => :'error_message',
|
43
|
-
:'
|
51
|
+
:'id_connection_log' => :'id_connection_log'
|
44
52
|
}
|
45
53
|
end
|
46
54
|
|
@@ -48,13 +56,13 @@ module BudgeaClient
|
|
48
56
|
def self.swagger_types
|
49
57
|
{
|
50
58
|
:'id_account' => :'Integer',
|
51
|
-
:'
|
59
|
+
:'id_connector' => :'Integer',
|
52
60
|
:'balance' => :'Float',
|
53
61
|
:'coming' => :'Float',
|
54
62
|
:'timestamp' => :'DateTime',
|
55
63
|
:'error' => :'String',
|
56
64
|
:'error_message' => :'String',
|
57
|
-
:'
|
65
|
+
:'id_connection_log' => :'Integer'
|
58
66
|
}
|
59
67
|
end
|
60
68
|
|
@@ -64,14 +72,14 @@ module BudgeaClient
|
|
64
72
|
return unless attributes.is_a?(Hash)
|
65
73
|
|
66
74
|
# convert string to symbol for hash key
|
67
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
76
|
|
69
77
|
if attributes.has_key?(:'id_account')
|
70
78
|
self.id_account = attributes[:'id_account']
|
71
79
|
end
|
72
80
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
81
|
+
if attributes.has_key?(:'id_connector')
|
82
|
+
self.id_connector = attributes[:'id_connector']
|
75
83
|
end
|
76
84
|
|
77
85
|
if attributes.has_key?(:'balance')
|
@@ -96,10 +104,9 @@ module BudgeaClient
|
|
96
104
|
self.error_message = attributes[:'error_message']
|
97
105
|
end
|
98
106
|
|
99
|
-
if attributes.has_key?(:'
|
100
|
-
self.
|
107
|
+
if attributes.has_key?(:'id_connection_log')
|
108
|
+
self.id_connection_log = attributes[:'id_connection_log']
|
101
109
|
end
|
102
|
-
|
103
110
|
end
|
104
111
|
|
105
112
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -107,18 +114,18 @@ module BudgeaClient
|
|
107
114
|
def list_invalid_properties
|
108
115
|
invalid_properties = Array.new
|
109
116
|
if @id_account.nil?
|
110
|
-
invalid_properties.push(
|
117
|
+
invalid_properties.push('invalid value for "id_account", id_account cannot be nil.')
|
111
118
|
end
|
112
119
|
|
113
120
|
if @balance.nil?
|
114
|
-
invalid_properties.push(
|
121
|
+
invalid_properties.push('invalid value for "balance", balance cannot be nil.')
|
115
122
|
end
|
116
123
|
|
117
124
|
if @timestamp.nil?
|
118
|
-
invalid_properties.push(
|
125
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
119
126
|
end
|
120
127
|
|
121
|
-
|
128
|
+
invalid_properties
|
122
129
|
end
|
123
130
|
|
124
131
|
# Check to see if the all the properties in the model are valid
|
@@ -127,7 +134,7 @@ module BudgeaClient
|
|
127
134
|
return false if @id_account.nil?
|
128
135
|
return false if @balance.nil?
|
129
136
|
return false if @timestamp.nil?
|
130
|
-
|
137
|
+
true
|
131
138
|
end
|
132
139
|
|
133
140
|
# Checks equality by comparing each attribute.
|
@@ -136,13 +143,13 @@ module BudgeaClient
|
|
136
143
|
return true if self.equal?(o)
|
137
144
|
self.class == o.class &&
|
138
145
|
id_account == o.id_account &&
|
139
|
-
|
146
|
+
id_connector == o.id_connector &&
|
140
147
|
balance == o.balance &&
|
141
148
|
coming == o.coming &&
|
142
149
|
timestamp == o.timestamp &&
|
143
150
|
error == o.error &&
|
144
151
|
error_message == o.error_message &&
|
145
|
-
|
152
|
+
id_connection_log == o.id_connection_log
|
146
153
|
end
|
147
154
|
|
148
155
|
# @see the `==` method
|
@@ -154,7 +161,7 @@ module BudgeaClient
|
|
154
161
|
# Calculates hash code according to all attributes.
|
155
162
|
# @return [Fixnum] Hash code
|
156
163
|
def hash
|
157
|
-
[id_account,
|
164
|
+
[id_account, id_connector, balance, coming, timestamp, error, error_message, id_connection_log].hash
|
158
165
|
end
|
159
166
|
|
160
167
|
# Builds the object from hash
|
@@ -167,7 +174,7 @@ module BudgeaClient
|
|
167
174
|
# check to ensure the input is an array given that the the attribute
|
168
175
|
# is documented as an array but the input is not
|
169
176
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
170
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
177
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
171
178
|
end
|
172
179
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
180
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -249,7 +256,7 @@ module BudgeaClient
|
|
249
256
|
# @return [Hash] Returns the value in the form of hash
|
250
257
|
def _to_hash(value)
|
251
258
|
if value.is_a?(Array)
|
252
|
-
value.compact.map{ |v| _to_hash(v) }
|
259
|
+
value.compact.map { |v| _to_hash(v) }
|
253
260
|
elsif value.is_a?(Hash)
|
254
261
|
{}.tap do |hash|
|
255
262
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -260,7 +267,5 @@ module BudgeaClient
|
|
260
267
|
value
|
261
268
|
end
|
262
269
|
end
|
263
|
-
|
264
270
|
end
|
265
|
-
|
266
271
|
end
|