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.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +67 -725
  4. data/budgea_client.gemspec +15 -3
  5. data/budgea_openapi.json +2011 -524
  6. data/docs/Account.md +3 -1
  7. data/docs/AccountLog.md +2 -2
  8. data/docs/AdministrationApi.md +354 -34
  9. data/docs/AuthenticationApi.md +264 -18
  10. data/docs/BankCategory.md +1 -1
  11. data/docs/BanksApi.md +939 -550
  12. data/docs/Certificate.md +12 -0
  13. data/docs/Client.md +5 -2
  14. data/docs/Connection.md +1 -1
  15. data/docs/ConnectionLog.md +3 -2
  16. data/docs/ConnectionsApi.md +162 -103
  17. data/docs/Connector.md +21 -0
  18. data/docs/ConnectorCategory.md +9 -0
  19. data/docs/ConnectorLogo.md +1 -1
  20. data/docs/Currency.md +4 -0
  21. data/docs/DocumentsApi.md +350 -350
  22. data/docs/Field.md +3 -2
  23. data/docs/InlineResponse20010.md +1 -1
  24. data/docs/InlineResponse20011.md +1 -1
  25. data/docs/InlineResponse20012.md +1 -1
  26. data/docs/InlineResponse20013.md +1 -1
  27. data/docs/InlineResponse20014.md +1 -1
  28. data/docs/InlineResponse20015.md +1 -1
  29. data/docs/InlineResponse20016.md +1 -1
  30. data/docs/InlineResponse20017.md +1 -1
  31. data/docs/InlineResponse20018.md +1 -1
  32. data/docs/InlineResponse20019.md +1 -1
  33. data/docs/InlineResponse20020.md +1 -1
  34. data/docs/InlineResponse20021.md +1 -1
  35. data/docs/InlineResponse20022.md +1 -1
  36. data/docs/InlineResponse20023.md +1 -1
  37. data/docs/InlineResponse20024.md +1 -1
  38. data/docs/InlineResponse20025.md +1 -1
  39. data/docs/InlineResponse20026.md +1 -1
  40. data/docs/InlineResponse20027.md +1 -1
  41. data/docs/InlineResponse20028.md +1 -1
  42. data/docs/InlineResponse20029.md +1 -1
  43. data/docs/InlineResponse2003.md +2 -3
  44. data/docs/InlineResponse20030.md +1 -1
  45. data/docs/InlineResponse20031.md +1 -1
  46. data/docs/InlineResponse20032.md +1 -1
  47. data/docs/InlineResponse20033.md +1 -1
  48. data/docs/InlineResponse20034.md +8 -0
  49. data/docs/InlineResponse20035.md +8 -0
  50. data/docs/InlineResponse20036.md +8 -0
  51. data/docs/InlineResponse2004.md +0 -2
  52. data/docs/InlineResponse2005.md +5 -2
  53. data/docs/InlineResponse2006.md +2 -3
  54. data/docs/InlineResponse2007.md +3 -1
  55. data/docs/InlineResponse2008.md +1 -1
  56. data/docs/InlineResponse2009.md +1 -1
  57. data/docs/OCRApi.md +5 -5
  58. data/docs/OIDCApi.md +5 -5
  59. data/docs/PFMApi.md +122 -122
  60. data/docs/Pocket.md +1 -1
  61. data/docs/Profile.md +1 -1
  62. data/docs/Project.md +1 -1
  63. data/docs/ProvidersApi.md +602 -604
  64. data/docs/Recipient.md +3 -0
  65. data/docs/RecipientLog.md +14 -0
  66. data/docs/RecipientsApi.md +28 -20
  67. data/docs/Subscription.md +2 -1
  68. data/docs/TermsApi.md +13 -15
  69. data/docs/Transaction.md +8 -3
  70. data/docs/Transfer.md +1 -0
  71. data/docs/TransferLog.md +14 -0
  72. data/docs/TransfersApi.md +165 -141
  73. data/docs/UserAlert.md +2 -2
  74. data/docs/UsersManagementApi.md +24 -24
  75. data/docs/WealthApi.md +54 -54
  76. data/docs/WebhookLog.md +15 -0
  77. data/lib/budgea_client.rb +27 -3
  78. data/lib/budgea_client/api/administration_api.rb +425 -106
  79. data/lib/budgea_client/api/authentication_api.rb +287 -46
  80. data/lib/budgea_client/api/banks_api.rb +1271 -974
  81. data/lib/budgea_client/api/connections_api.rb +207 -156
  82. data/lib/budgea_client/api/documents_api.rb +627 -693
  83. data/lib/budgea_client/api/ocr_api.rb +24 -16
  84. data/lib/budgea_client/api/oidc_api.rb +23 -16
  85. data/lib/budgea_client/api/pfm_api.rb +219 -248
  86. data/lib/budgea_client/api/providers_api.rb +998 -1099
  87. data/lib/budgea_client/api/recipients_api.rb +52 -34
  88. data/lib/budgea_client/api/terms_api.rb +34 -31
  89. data/lib/budgea_client/api/transfers_api.rb +245 -239
  90. data/lib/budgea_client/api/users_management_api.rb +56 -58
  91. data/lib/budgea_client/api/wealth_api.rb +81 -85
  92. data/lib/budgea_client/api_client.rb +20 -11
  93. data/lib/budgea_client/api_error.rb +11 -1
  94. data/lib/budgea_client/configuration.rb +12 -2
  95. data/lib/budgea_client/models/access.rb +18 -13
  96. data/lib/budgea_client/models/account.rb +44 -23
  97. data/lib/budgea_client/models/account_log.rb +33 -28
  98. data/lib/budgea_client/models/account_type.rb +22 -17
  99. data/lib/budgea_client/models/alert.rb +21 -16
  100. data/lib/budgea_client/models/bank.rb +21 -16
  101. data/lib/budgea_client/models/bank_category.rb +19 -14
  102. data/lib/budgea_client/models/category.rb +22 -17
  103. data/lib/budgea_client/models/certificate.rb +244 -0
  104. data/lib/budgea_client/models/client.rb +53 -20
  105. data/lib/budgea_client/models/connection.rb +29 -24
  106. data/lib/budgea_client/models/connection_log.rb +39 -24
  107. data/lib/budgea_client/models/connector.rb +345 -0
  108. data/lib/budgea_client/models/connector_category.rb +206 -0
  109. data/lib/budgea_client/models/connector_logo.rb +29 -24
  110. data/lib/budgea_client/models/currency.rb +63 -16
  111. data/lib/budgea_client/models/device.rb +23 -18
  112. data/lib/budgea_client/models/document.rb +21 -16
  113. data/lib/budgea_client/models/document_type.rb +19 -14
  114. data/lib/budgea_client/models/field.rb +44 -27
  115. data/lib/budgea_client/models/field_value.rb +18 -13
  116. data/lib/budgea_client/models/file.rb +20 -15
  117. data/lib/budgea_client/models/group.rb +17 -12
  118. data/lib/budgea_client/models/hash_table.rb +20 -15
  119. data/lib/budgea_client/models/inline_response_200.rb +17 -12
  120. data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
  121. data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
  122. data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
  123. data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
  124. data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
  125. data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
  126. data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
  127. data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
  128. data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
  129. data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
  130. data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
  131. data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
  132. data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
  133. data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
  134. data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
  135. data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
  136. data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
  137. data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
  138. data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
  139. data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
  140. data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
  141. data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
  142. data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
  143. data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
  144. data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
  145. data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
  146. data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
  147. data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
  148. data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
  149. data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
  150. data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
  151. data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
  152. data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
  153. data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
  154. data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
  155. data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
  156. data/lib/budgea_client/models/investment.rb +20 -15
  157. data/lib/budgea_client/models/investment_value.rb +20 -15
  158. data/lib/budgea_client/models/invite.rb +18 -13
  159. data/lib/budgea_client/models/locked_user.rb +18 -13
  160. data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
  161. data/lib/budgea_client/models/pocket.rb +22 -17
  162. data/lib/budgea_client/models/profile.rb +26 -20
  163. data/lib/budgea_client/models/project.rb +26 -21
  164. data/lib/budgea_client/models/project_type.rb +18 -13
  165. data/lib/budgea_client/models/recipient.rb +52 -17
  166. data/lib/budgea_client/models/recipient_log.rb +254 -0
  167. data/lib/budgea_client/models/security.rb +18 -13
  168. data/lib/budgea_client/models/subscription.rb +31 -21
  169. data/lib/budgea_client/models/terms_of_service.rb +19 -14
  170. data/lib/budgea_client/models/transaction.rb +83 -33
  171. data/lib/budgea_client/models/transaction_information.rb +19 -14
  172. data/lib/budgea_client/models/transactions_cluster.rb +21 -16
  173. data/lib/budgea_client/models/transfer.rb +32 -16
  174. data/lib/budgea_client/models/transfer_log.rb +254 -0
  175. data/lib/budgea_client/models/user.rb +22 -16
  176. data/lib/budgea_client/models/user_alert.rb +22 -16
  177. data/lib/budgea_client/models/webhook.rb +19 -14
  178. data/lib/budgea_client/models/webhook_log.rb +264 -0
  179. data/lib/budgea_client/version.rb +12 -2
  180. data/original_budgea_openapi.json +23188 -0
  181. data/spec/models/certificate_spec.rb +65 -0
  182. data/spec/models/connector_category_spec.rb +47 -0
  183. data/spec/models/connector_spec.rb +119 -0
  184. data/spec/models/inline_response_200_34_spec.rb +41 -0
  185. data/spec/models/inline_response_200_35_spec.rb +41 -0
  186. data/spec/models/inline_response_200_36_spec.rb +41 -0
  187. data/spec/models/recipient_log_spec.rb +77 -0
  188. data/spec/models/transfer_log_spec.rb +77 -0
  189. data/spec/models/webhook_log_spec.rb +83 -0
  190. metadata +52 -18
  191. data/pkg/budgea_client-1.3.9.gem +0 -0
  192. data/pkg/budgea_client-1.4.2.gem +0 -0
  193. data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -1,4 +1,14 @@
1
- # frozen_string_literal: true
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' => "application/json",
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
- (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
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 and content_disposition =~ /filename=/i
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
- return json_accept || accepts.join(',')
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
- return json_content_type || content_types.first
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
- # frozen_string_literal: true
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
- # frozen_string_literal: true
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 = "" if @base_path == "/"
173
+ @base_path = '' if @base_path == '/'
164
174
  end
165
175
 
166
176
  def base_url
@@ -1,9 +1,18 @@
1
- # frozen_string_literal: true
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("invalid value for 'id', id cannot be nil.")
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("invalid value for 'id_profile', id_profile cannot be nil.")
87
+ invalid_properties.push('invalid value for "id_profile", id_profile cannot be nil.')
81
88
  end
82
89
 
83
- return invalid_properties
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
- return true
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
- # frozen_string_literal: true
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
- :'error' => :'error'
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
- :'error' => :'String'
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("invalid value for 'id', id cannot be nil.")
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("invalid value for 'original_name', original_name cannot be nil.")
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("invalid value for 'balance', balance cannot be nil.")
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("invalid value for 'display', display cannot be nil.")
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("invalid value for 'bookmarked', bookmarked cannot be nil.")
253
+ invalid_properties.push('invalid value for "bookmarked", bookmarked cannot be nil.')
232
254
  end
233
255
 
234
- return invalid_properties
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
- return true
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
- error == o.error
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
- # frozen_string_literal: true
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 :id_bank
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 :id_connection
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
- :'id_bank' => :'id_bank',
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
- :'id_connection' => :'id_connection'
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
- :'id_bank' => :'Integer',
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
- :'id_connection' => :'Integer'
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?(:'id_bank')
74
- self.id_bank = attributes[:'id_bank']
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?(:'id_connection')
100
- self.id_connection = attributes[:'id_connection']
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("invalid value for 'id_account', id_account cannot be nil.")
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("invalid value for 'balance', balance cannot be nil.")
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("invalid value for 'timestamp', timestamp cannot be nil.")
125
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
119
126
  end
120
127
 
121
- return invalid_properties
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
- return true
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
- id_bank == o.id_bank &&
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
- id_connection == o.id_connection
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, id_bank, balance, coming, timestamp, error, error_message, id_connection].hash
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