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,6 +1,16 @@
1
- # frozen_string_literal: true
1
+ =begin
2
+ #Budgea API Documentation
2
3
 
3
- require "uri"
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
12
+
13
+ require 'uri'
4
14
 
5
15
  module BudgeaClient
6
16
  class ConnectionsApi
@@ -9,28 +19,27 @@ module BudgeaClient
9
19
  def initialize(api_client = ApiClient.default)
10
20
  @api_client = api_client
11
21
  end
12
-
13
22
  # Get list of connectors
14
23
  #
15
24
  # @param [Hash] opts the optional parameters
16
25
  # @option opts [String] :expand
17
- # @return [InlineResponse2007]
26
+ # @return [InlineResponse2008]
18
27
  def banks_get(opts = {})
19
28
  data, _status_code, _headers = banks_get_with_http_info(opts)
20
- return data
29
+ data
21
30
  end
22
31
 
23
32
  # Get list of connectors
24
33
  #
25
34
  # @param [Hash] opts the optional parameters
26
35
  # @option opts [String] :expand
27
- # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
36
+ # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
28
37
  def banks_get_with_http_info(opts = {})
29
38
  if @api_client.config.debugging
30
- @api_client.config.logger.debug "Calling API: ConnectionsApi.banks_get ..."
39
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.banks_get ...'
31
40
  end
32
41
  # resource path
33
- local_var_path = "/banks"
42
+ local_var_path = '/banks'
34
43
 
35
44
  # query parameters
36
45
  query_params = {}
@@ -55,44 +64,43 @@ module BudgeaClient
55
64
  :form_params => form_params,
56
65
  :body => post_body,
57
66
  :auth_names => auth_names,
58
- :return_type => 'InlineResponse2007')
67
+ :return_type => 'InlineResponse2008')
59
68
  if @api_client.config.debugging
60
69
  @api_client.config.logger.debug "API called: ConnectionsApi#banks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
61
70
  end
62
71
  return data, status_code, headers
63
72
  end
64
-
65
73
  # Get a subset of id_connection with the largest diversity of account
66
74
  # By default, it selects a set of 3 connections.<br><br>
67
- # @param id_bank
75
+ # @param id_connector
68
76
  # @param [Hash] opts the optional parameters
69
77
  # @option opts [Integer] :range the length of the connection subset
70
78
  # @option opts [Integer] :type to target a specific account type which will be
71
79
  # @option opts [String] :expand
72
- # @return [InlineResponse2008]
73
- def banks_id_bank_connections_get(id_bank, opts = {})
74
- data, _status_code, _headers = banks_id_bank_connections_get_with_http_info(id_bank, opts)
75
- return data
80
+ # @return [InlineResponse2009]
81
+ def banks_id_connector_connections_get(id_connector, opts = {})
82
+ data, _status_code, _headers = banks_id_connector_connections_get_with_http_info(id_connector, opts)
83
+ data
76
84
  end
77
85
 
78
86
  # Get a subset of id_connection with the largest diversity of account
79
87
  # By default, it selects a set of 3 connections.&lt;br&gt;&lt;br&gt;
80
- # @param id_bank
88
+ # @param id_connector
81
89
  # @param [Hash] opts the optional parameters
82
90
  # @option opts [Integer] :range the length of the connection subset
83
91
  # @option opts [Integer] :type to target a specific account type which will be
84
92
  # @option opts [String] :expand
85
- # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
86
- def banks_id_bank_connections_get_with_http_info(id_bank, opts = {})
93
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
94
+ def banks_id_connector_connections_get_with_http_info(id_connector, opts = {})
87
95
  if @api_client.config.debugging
88
- @api_client.config.logger.debug "Calling API: ConnectionsApi.banks_id_bank_connections_get ..."
96
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.banks_id_connector_connections_get ...'
89
97
  end
90
- # verify the required parameter 'id_bank' is set
91
- if @api_client.config.client_side_validation && id_bank.nil?
92
- fail ArgumentError, "Missing the required parameter 'id_bank' when calling ConnectionsApi.banks_id_bank_connections_get"
98
+ # verify the required parameter 'id_connector' is set
99
+ if @api_client.config.client_side_validation && id_connector.nil?
100
+ fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.banks_id_connector_connections_get"
93
101
  end
94
102
  # resource path
95
- local_var_path = "/banks/{id_bank}/connections".sub('{' + 'id_bank' + '}', id_bank.to_s)
103
+ local_var_path = '/banks/{id_connector}/connections'.sub('{' + 'id_connector' + '}', id_connector.to_s)
96
104
 
97
105
  # query parameters
98
106
  query_params = {}
@@ -119,34 +127,33 @@ module BudgeaClient
119
127
  :form_params => form_params,
120
128
  :body => post_body,
121
129
  :auth_names => auth_names,
122
- :return_type => 'InlineResponse2008')
130
+ :return_type => 'InlineResponse2009')
123
131
  if @api_client.config.debugging
124
- @api_client.config.logger.debug "API called: ConnectionsApi#banks_id_bank_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ @api_client.config.logger.debug "API called: ConnectionsApi#banks_id_connector_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
125
133
  end
126
134
  return data, status_code, headers
127
135
  end
128
-
129
136
  # Get connections without a user
130
137
  #
131
138
  # @param [Hash] opts the optional parameters
132
139
  # @option opts [String] :expand
133
- # @return [InlineResponse2008]
140
+ # @return [InlineResponse2009]
134
141
  def connections_get(opts = {})
135
142
  data, _status_code, _headers = connections_get_with_http_info(opts)
136
- return data
143
+ data
137
144
  end
138
145
 
139
146
  # Get connections without a user
140
147
  #
141
148
  # @param [Hash] opts the optional parameters
142
149
  # @option opts [String] :expand
143
- # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
150
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
144
151
  def connections_get_with_http_info(opts = {})
145
152
  if @api_client.config.debugging
146
- @api_client.config.logger.debug "Calling API: ConnectionsApi.connections_get ..."
153
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.connections_get ...'
147
154
  end
148
155
  # resource path
149
- local_var_path = "/connections"
156
+ local_var_path = '/connections'
150
157
 
151
158
  # query parameters
152
159
  query_params = {}
@@ -171,34 +178,33 @@ module BudgeaClient
171
178
  :form_params => form_params,
172
179
  :body => post_body,
173
180
  :auth_names => auth_names,
174
- :return_type => 'InlineResponse2008')
181
+ :return_type => 'InlineResponse2009')
175
182
  if @api_client.config.debugging
176
183
  @api_client.config.logger.debug "API called: ConnectionsApi#connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
184
  end
178
185
  return data, status_code, headers
179
186
  end
180
-
181
187
  # Get list of connectors
182
188
  #
183
189
  # @param [Hash] opts the optional parameters
184
190
  # @option opts [String] :expand
185
- # @return [InlineResponse20012]
191
+ # @return [InlineResponse20013]
186
192
  def connectors_get(opts = {})
187
193
  data, _status_code, _headers = connectors_get_with_http_info(opts)
188
- return data
194
+ data
189
195
  end
190
196
 
191
197
  # Get list of connectors
192
198
  #
193
199
  # @param [Hash] opts the optional parameters
194
200
  # @option opts [String] :expand
195
- # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
201
+ # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
196
202
  def connectors_get_with_http_info(opts = {})
197
203
  if @api_client.config.debugging
198
- @api_client.config.logger.debug "Calling API: ConnectionsApi.connectors_get ..."
204
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.connectors_get ...'
199
205
  end
200
206
  # resource path
201
- local_var_path = "/connectors"
207
+ local_var_path = '/connectors'
202
208
 
203
209
  # query parameters
204
210
  query_params = {}
@@ -223,13 +229,12 @@ module BudgeaClient
223
229
  :form_params => form_params,
224
230
  :body => post_body,
225
231
  :auth_names => auth_names,
226
- :return_type => 'InlineResponse20012')
232
+ :return_type => 'InlineResponse20013')
227
233
  if @api_client.config.debugging
228
234
  @api_client.config.logger.debug "API called: ConnectionsApi#connectors_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
235
  end
230
236
  return data, status_code, headers
231
237
  end
232
-
233
238
  # Request a new connector
234
239
  # Send a request to add a new connector<br><br>
235
240
  # @param name Name of the bank or provider
@@ -243,10 +248,10 @@ module BudgeaClient
243
248
  # @option opts [String] :comment Optionnal comment
244
249
  # @option opts [BOOLEAN] :sendmail if set, send an email to user
245
250
  # @option opts [String] :expand
246
- # @return [Bank]
251
+ # @return [Connector]
247
252
  def connectors_post(name, login, password, opts = {})
248
253
  data, _status_code, _headers = connectors_post_with_http_info(name, login, password, opts)
249
- return data
254
+ data
250
255
  end
251
256
 
252
257
  # Request a new connector
@@ -262,10 +267,10 @@ module BudgeaClient
262
267
  # @option opts [String] :comment Optionnal comment
263
268
  # @option opts [BOOLEAN] :sendmail if set, send an email to user
264
269
  # @option opts [String] :expand
265
- # @return [Array<(Bank, Fixnum, Hash)>] Bank data, response status code and response headers
270
+ # @return [Array<(Connector, Fixnum, Hash)>] Connector data, response status code and response headers
266
271
  def connectors_post_with_http_info(name, login, password, opts = {})
267
272
  if @api_client.config.debugging
268
- @api_client.config.logger.debug "Calling API: ConnectionsApi.connectors_post ..."
273
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.connectors_post ...'
269
274
  end
270
275
  # verify the required parameter 'name' is set
271
276
  if @api_client.config.client_side_validation && name.nil?
@@ -280,7 +285,7 @@ module BudgeaClient
280
285
  fail ArgumentError, "Missing the required parameter 'password' when calling ConnectionsApi.connectors_post"
281
286
  end
282
287
  # resource path
283
- local_var_path = "/connectors"
288
+ local_var_path = '/connectors'
284
289
 
285
290
  # query parameters
286
291
  query_params = {}
@@ -291,19 +296,19 @@ module BudgeaClient
291
296
  # HTTP header 'Accept' (if needed)
292
297
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
293
298
  # HTTP header 'Content-Type'
294
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
299
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
295
300
 
296
301
  # form parameters
297
302
  form_params = {}
298
- form_params["name"] = name
299
- form_params["login"] = login
300
- form_params["password"] = password
301
- form_params["api"] = opts[:'api'] if !opts[:'api'].nil?
302
- form_params["url"] = opts[:'url'] if !opts[:'url'].nil?
303
- form_params["email"] = opts[:'email'] if !opts[:'email'].nil?
304
- form_params["types"] = opts[:'types'] if !opts[:'types'].nil?
305
- form_params["comment"] = opts[:'comment'] if !opts[:'comment'].nil?
306
- form_params["sendmail"] = opts[:'sendmail'] if !opts[:'sendmail'].nil?
303
+ form_params['name'] = name
304
+ form_params['login'] = login
305
+ form_params['password'] = password
306
+ form_params['api'] = opts[:'api'] if !opts[:'api'].nil?
307
+ form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
308
+ form_params['email'] = opts[:'email'] if !opts[:'email'].nil?
309
+ form_params['types'] = opts[:'types'] if !opts[:'types'].nil?
310
+ form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil?
311
+ form_params['sendmail'] = opts[:'sendmail'] if !opts[:'sendmail'].nil?
307
312
 
308
313
  # http body (model)
309
314
  post_body = nil
@@ -314,13 +319,12 @@ module BudgeaClient
314
319
  :form_params => form_params,
315
320
  :body => post_body,
316
321
  :auth_names => auth_names,
317
- :return_type => 'Bank')
322
+ :return_type => 'Connector')
318
323
  if @api_client.config.debugging
319
324
  @api_client.config.logger.debug "API called: ConnectionsApi#connectors_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
320
325
  end
321
326
  return data, status_code, headers
322
327
  end
323
-
324
328
  # Get connection logs
325
329
  # Get logs about connections.<br><br>
326
330
  # @param [Hash] opts the optional parameters
@@ -332,13 +336,13 @@ module BudgeaClient
332
336
  # @option opts [String] :period period to group logs
333
337
  # @option opts [Integer] :id_user ID of a user
334
338
  # @option opts [Integer] :id_connection ID of a connection
335
- # @option opts [Integer] :id_bank ID of a bank
336
- # @option opts [BOOLEAN] :charged consider only logs for charged banks
339
+ # @option opts [Integer] :id_connector ID of a connector
340
+ # @option opts [BOOLEAN] :charged consider only logs for charged connectors
337
341
  # @option opts [String] :expand
338
- # @return [InlineResponse20015]
342
+ # @return [InlineResponse20016]
339
343
  def logs_get(opts = {})
340
344
  data, _status_code, _headers = logs_get_with_http_info(opts)
341
- return data
345
+ data
342
346
  end
343
347
 
344
348
  # Get connection logs
@@ -352,16 +356,16 @@ module BudgeaClient
352
356
  # @option opts [String] :period period to group logs
353
357
  # @option opts [Integer] :id_user ID of a user
354
358
  # @option opts [Integer] :id_connection ID of a connection
355
- # @option opts [Integer] :id_bank ID of a bank
356
- # @option opts [BOOLEAN] :charged consider only logs for charged banks
359
+ # @option opts [Integer] :id_connector ID of a connector
360
+ # @option opts [BOOLEAN] :charged consider only logs for charged connectors
357
361
  # @option opts [String] :expand
358
- # @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
362
+ # @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
359
363
  def logs_get_with_http_info(opts = {})
360
364
  if @api_client.config.debugging
361
- @api_client.config.logger.debug "Calling API: ConnectionsApi.logs_get ..."
365
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.logs_get ...'
362
366
  end
363
367
  # resource path
364
- local_var_path = "/logs"
368
+ local_var_path = '/logs'
365
369
 
366
370
  # query parameters
367
371
  query_params = {}
@@ -373,7 +377,7 @@ module BudgeaClient
373
377
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
374
378
  query_params[:'id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
375
379
  query_params[:'id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
376
- query_params[:'id_bank'] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
380
+ query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
377
381
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
378
382
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
379
383
 
@@ -396,34 +400,33 @@ module BudgeaClient
396
400
  :form_params => form_params,
397
401
  :body => post_body,
398
402
  :auth_names => auth_names,
399
- :return_type => 'InlineResponse20015')
403
+ :return_type => 'InlineResponse20016')
400
404
  if @api_client.config.debugging
401
405
  @api_client.config.logger.debug "API called: ConnectionsApi#logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
402
406
  end
403
407
  return data, status_code, headers
404
408
  end
405
-
406
409
  # Get list of connectors
407
410
  #
408
411
  # @param [Hash] opts the optional parameters
409
412
  # @option opts [String] :expand
410
- # @return [InlineResponse2007]
413
+ # @return [InlineResponse20017]
411
414
  def providers_get(opts = {})
412
415
  data, _status_code, _headers = providers_get_with_http_info(opts)
413
- return data
416
+ data
414
417
  end
415
418
 
416
419
  # Get list of connectors
417
420
  #
418
421
  # @param [Hash] opts the optional parameters
419
422
  # @option opts [String] :expand
420
- # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
423
+ # @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
421
424
  def providers_get_with_http_info(opts = {})
422
425
  if @api_client.config.debugging
423
- @api_client.config.logger.debug "Calling API: ConnectionsApi.providers_get ..."
426
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.providers_get ...'
424
427
  end
425
428
  # resource path
426
- local_var_path = "/providers"
429
+ local_var_path = '/providers'
427
430
 
428
431
  # query parameters
429
432
  query_params = {}
@@ -448,13 +451,72 @@ module BudgeaClient
448
451
  :form_params => form_params,
449
452
  :body => post_body,
450
453
  :auth_names => auth_names,
451
- :return_type => 'InlineResponse2007')
454
+ :return_type => 'InlineResponse20017')
452
455
  if @api_client.config.debugging
453
456
  @api_client.config.logger.debug "API called: ConnectionsApi#providers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
454
457
  end
455
458
  return data, status_code, headers
456
459
  end
460
+ # Get a random subset of provider's id_connection
461
+ # By default, it selects a set of 3 connections.<br><br>
462
+ # @param id_connector
463
+ # @param [Hash] opts the optional parameters
464
+ # @option opts [Integer] :range the length of the connection subset
465
+ # @option opts [String] :expand
466
+ # @return [InlineResponse2009]
467
+ def providers_id_connector_connections_get(id_connector, opts = {})
468
+ data, _status_code, _headers = providers_id_connector_connections_get_with_http_info(id_connector, opts)
469
+ data
470
+ end
471
+
472
+ # Get a random subset of provider&#39;s id_connection
473
+ # By default, it selects a set of 3 connections.&lt;br&gt;&lt;br&gt;
474
+ # @param id_connector
475
+ # @param [Hash] opts the optional parameters
476
+ # @option opts [Integer] :range the length of the connection subset
477
+ # @option opts [String] :expand
478
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
479
+ def providers_id_connector_connections_get_with_http_info(id_connector, opts = {})
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.providers_id_connector_connections_get ...'
482
+ end
483
+ # verify the required parameter 'id_connector' is set
484
+ if @api_client.config.client_side_validation && id_connector.nil?
485
+ fail ArgumentError, "Missing the required parameter 'id_connector' when calling ConnectionsApi.providers_id_connector_connections_get"
486
+ end
487
+ # resource path
488
+ local_var_path = '/providers/{id_connector}/connections'.sub('{' + 'id_connector' + '}', id_connector.to_s)
489
+
490
+ # query parameters
491
+ query_params = {}
492
+ query_params[:'range'] = opts[:'range'] if !opts[:'range'].nil?
493
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
494
+
495
+ # header parameters
496
+ header_params = {}
497
+ # HTTP header 'Accept' (if needed)
498
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
499
+ # HTTP header 'Content-Type'
500
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
457
501
 
502
+ # form parameters
503
+ form_params = {}
504
+
505
+ # http body (model)
506
+ post_body = nil
507
+ auth_names = ['api_key']
508
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
509
+ :header_params => header_params,
510
+ :query_params => query_params,
511
+ :form_params => form_params,
512
+ :body => post_body,
513
+ :auth_names => auth_names,
514
+ :return_type => 'InlineResponse2009')
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug "API called: ConnectionsApi#providers_id_connector_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
+ end
518
+ return data, status_code, headers
519
+ end
458
520
  # Delete all connections
459
521
  #
460
522
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -463,7 +525,7 @@ module BudgeaClient
463
525
  # @return [Connection]
464
526
  def users_id_user_connections_delete(id_user, opts = {})
465
527
  data, _status_code, _headers = users_id_user_connections_delete_with_http_info(id_user, opts)
466
- return data
528
+ data
467
529
  end
468
530
 
469
531
  # Delete all connections
@@ -474,14 +536,14 @@ module BudgeaClient
474
536
  # @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
475
537
  def users_id_user_connections_delete_with_http_info(id_user, opts = {})
476
538
  if @api_client.config.debugging
477
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_delete ..."
539
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_delete ...'
478
540
  end
479
541
  # verify the required parameter 'id_user' is set
480
542
  if @api_client.config.client_side_validation && id_user.nil?
481
543
  fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_delete"
482
544
  end
483
545
  # resource path
484
- local_var_path = "/users/{id_user}/connections".sub('{' + 'id_user' + '}', id_user.to_s)
546
+ local_var_path = '/users/{id_user}/connections'.sub('{' + 'id_user' + '}', id_user.to_s)
485
547
 
486
548
  # query parameters
487
549
  query_params = {}
@@ -512,16 +574,15 @@ module BudgeaClient
512
574
  end
513
575
  return data, status_code, headers
514
576
  end
515
-
516
577
  # Get connections
517
578
  #
518
579
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
519
580
  # @param [Hash] opts the optional parameters
520
581
  # @option opts [String] :expand
521
- # @return [InlineResponse2008]
582
+ # @return [InlineResponse2009]
522
583
  def users_id_user_connections_get(id_user, opts = {})
523
584
  data, _status_code, _headers = users_id_user_connections_get_with_http_info(id_user, opts)
524
- return data
585
+ data
525
586
  end
526
587
 
527
588
  # Get connections
@@ -529,17 +590,17 @@ module BudgeaClient
529
590
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
530
591
  # @param [Hash] opts the optional parameters
531
592
  # @option opts [String] :expand
532
- # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
593
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
533
594
  def users_id_user_connections_get_with_http_info(id_user, opts = {})
534
595
  if @api_client.config.debugging
535
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_get ..."
596
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_get ...'
536
597
  end
537
598
  # verify the required parameter 'id_user' is set
538
599
  if @api_client.config.client_side_validation && id_user.nil?
539
600
  fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_get"
540
601
  end
541
602
  # resource path
542
- local_var_path = "/users/{id_user}/connections".sub('{' + 'id_user' + '}', id_user.to_s)
603
+ local_var_path = '/users/{id_user}/connections'.sub('{' + 'id_user' + '}', id_user.to_s)
543
604
 
544
605
  # query parameters
545
606
  query_params = {}
@@ -564,13 +625,12 @@ module BudgeaClient
564
625
  :form_params => form_params,
565
626
  :body => post_body,
566
627
  :auth_names => auth_names,
567
- :return_type => 'InlineResponse2008')
628
+ :return_type => 'InlineResponse2009')
568
629
  if @api_client.config.debugging
569
630
  @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
570
631
  end
571
632
  return data, status_code, headers
572
633
  end
573
-
574
634
  # Delete a connection.
575
635
  # This endpoint deletes a connection and all related accounts and transactions.<br><br>
576
636
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -580,7 +640,7 @@ module BudgeaClient
580
640
  # @return [Connection]
581
641
  def users_id_user_connections_id_connection_delete(id_user, id_connection, opts = {})
582
642
  data, _status_code, _headers = users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts)
583
- return data
643
+ data
584
644
  end
585
645
 
586
646
  # Delete a connection.
@@ -592,7 +652,7 @@ module BudgeaClient
592
652
  # @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
593
653
  def users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts = {})
594
654
  if @api_client.config.debugging
595
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_delete ..."
655
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_delete ...'
596
656
  end
597
657
  # verify the required parameter 'id_user' is set
598
658
  if @api_client.config.client_side_validation && id_user.nil?
@@ -603,7 +663,7 @@ module BudgeaClient
603
663
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_delete"
604
664
  end
605
665
  # resource path
606
- local_var_path = "/users/{id_user}/connections/{id_connection}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
666
+ local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
607
667
 
608
668
  # query parameters
609
669
  query_params = {}
@@ -634,17 +694,16 @@ module BudgeaClient
634
694
  end
635
695
  return data, status_code, headers
636
696
  end
637
-
638
697
  # Get connection additionnal informations
639
698
  # <br><br>
640
699
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
641
700
  # @param id_connection
642
701
  # @param [Hash] opts the optional parameters
643
702
  # @option opts [String] :expand
644
- # @return [InlineResponse2008]
703
+ # @return [InlineResponse2009]
645
704
  def users_id_user_connections_id_connection_informations_get(id_user, id_connection, opts = {})
646
705
  data, _status_code, _headers = users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts)
647
- return data
706
+ data
648
707
  end
649
708
 
650
709
  # Get connection additionnal informations
@@ -653,10 +712,10 @@ module BudgeaClient
653
712
  # @param id_connection
654
713
  # @param [Hash] opts the optional parameters
655
714
  # @option opts [String] :expand
656
- # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
715
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
657
716
  def users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts = {})
658
717
  if @api_client.config.debugging
659
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_informations_get ..."
718
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_informations_get ...'
660
719
  end
661
720
  # verify the required parameter 'id_user' is set
662
721
  if @api_client.config.client_side_validation && id_user.nil?
@@ -667,7 +726,7 @@ module BudgeaClient
667
726
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_informations_get"
668
727
  end
669
728
  # resource path
670
- local_var_path = "/users/{id_user}/connections/{id_connection}/informations".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
729
+ local_var_path = '/users/{id_user}/connections/{id_connection}/informations'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
671
730
 
672
731
  # query parameters
673
732
  query_params = {}
@@ -692,13 +751,12 @@ module BudgeaClient
692
751
  :form_params => form_params,
693
752
  :body => post_body,
694
753
  :auth_names => auth_names,
695
- :return_type => 'InlineResponse2008')
754
+ :return_type => 'InlineResponse2009')
696
755
  if @api_client.config.debugging
697
756
  @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_informations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
698
757
  end
699
758
  return data, status_code, headers
700
759
  end
701
-
702
760
  # Get connection logs
703
761
  # Get logs about connections.<br><br>
704
762
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -712,13 +770,13 @@ module BudgeaClient
712
770
  # @option opts [String] :period period to group logs
713
771
  # @option opts [Integer] :id_user2 ID of a user
714
772
  # @option opts [Integer] :id_connection2 ID of a connection
715
- # @option opts [Integer] :id_bank ID of a bank
716
- # @option opts [BOOLEAN] :charged consider only logs for charged banks
773
+ # @option opts [Integer] :id_connector ID of a connector
774
+ # @option opts [BOOLEAN] :charged consider only logs for charged connectors
717
775
  # @option opts [String] :expand
718
- # @return [InlineResponse20015]
776
+ # @return [InlineResponse20016]
719
777
  def users_id_user_connections_id_connection_logs_get(id_user, id_connection, opts = {})
720
778
  data, _status_code, _headers = users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts)
721
- return data
779
+ data
722
780
  end
723
781
 
724
782
  # Get connection logs
@@ -734,13 +792,13 @@ module BudgeaClient
734
792
  # @option opts [String] :period period to group logs
735
793
  # @option opts [Integer] :id_user2 ID of a user
736
794
  # @option opts [Integer] :id_connection2 ID of a connection
737
- # @option opts [Integer] :id_bank ID of a bank
738
- # @option opts [BOOLEAN] :charged consider only logs for charged banks
795
+ # @option opts [Integer] :id_connector ID of a connector
796
+ # @option opts [BOOLEAN] :charged consider only logs for charged connectors
739
797
  # @option opts [String] :expand
740
- # @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
798
+ # @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
741
799
  def users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts = {})
742
800
  if @api_client.config.debugging
743
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_logs_get ..."
801
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_logs_get ...'
744
802
  end
745
803
  # verify the required parameter 'id_user' is set
746
804
  if @api_client.config.client_side_validation && id_user.nil?
@@ -751,7 +809,7 @@ module BudgeaClient
751
809
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_logs_get"
752
810
  end
753
811
  # resource path
754
- local_var_path = "/users/{id_user}/connections/{id_connection}/logs".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
812
+ local_var_path = '/users/{id_user}/connections/{id_connection}/logs'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
755
813
 
756
814
  # query parameters
757
815
  query_params = {}
@@ -763,7 +821,7 @@ module BudgeaClient
763
821
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
764
822
  query_params[:'id_user'] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
765
823
  query_params[:'id_connection'] = opts[:'id_connection2'] if !opts[:'id_connection2'].nil?
766
- query_params[:'id_bank'] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
824
+ query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
767
825
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
768
826
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
769
827
 
@@ -786,13 +844,12 @@ module BudgeaClient
786
844
  :form_params => form_params,
787
845
  :body => post_body,
788
846
  :auth_names => auth_names,
789
- :return_type => 'InlineResponse20015')
847
+ :return_type => 'InlineResponse20016')
790
848
  if @api_client.config.debugging
791
849
  @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
792
850
  end
793
851
  return data, status_code, headers
794
852
  end
795
-
796
853
  # Update a connection.
797
854
  # Give new parameters to change on the configuration of this connection (for example \"password\").<br><br>It tests connection to website, and if it fails, a 400 response is given with the error code \"wrongpass\" or \"websiteUnavailable\".<br><br>You can also supply meta-parameters on connection, like 'active' or 'expire'.<br><br>
798
855
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -806,7 +863,7 @@ module BudgeaClient
806
863
  # @return [Connection]
807
864
  def users_id_user_connections_id_connection_post(id_user, id_connection, opts = {})
808
865
  data, _status_code, _headers = users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts)
809
- return data
866
+ data
810
867
  end
811
868
 
812
869
  # Update a connection.
@@ -822,7 +879,7 @@ module BudgeaClient
822
879
  # @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
823
880
  def users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts = {})
824
881
  if @api_client.config.debugging
825
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_post ..."
882
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_post ...'
826
883
  end
827
884
  # verify the required parameter 'id_user' is set
828
885
  if @api_client.config.client_side_validation && id_user.nil?
@@ -833,7 +890,7 @@ module BudgeaClient
833
890
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_post"
834
891
  end
835
892
  # resource path
836
- local_var_path = "/users/{id_user}/connections/{id_connection}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
893
+ local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
837
894
 
838
895
  # query parameters
839
896
  query_params = {}
@@ -844,14 +901,14 @@ module BudgeaClient
844
901
  # HTTP header 'Accept' (if needed)
845
902
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
846
903
  # HTTP header 'Content-Type'
847
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
904
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
848
905
 
849
906
  # form parameters
850
907
  form_params = {}
851
- form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
852
- form_params["expire"] = opts[:'expire'] if !opts[:'expire'].nil?
853
- form_params["login"] = opts[:'login'] if !opts[:'login'].nil?
854
- form_params["password"] = opts[:'password'] if !opts[:'password'].nil?
908
+ form_params['active'] = opts[:'active'] if !opts[:'active'].nil?
909
+ form_params['expire'] = opts[:'expire'] if !opts[:'expire'].nil?
910
+ form_params['login'] = opts[:'login'] if !opts[:'login'].nil?
911
+ form_params['password'] = opts[:'password'] if !opts[:'password'].nil?
855
912
 
856
913
  # http body (model)
857
914
  post_body = nil
@@ -868,7 +925,6 @@ module BudgeaClient
868
925
  end
869
926
  return data, status_code, headers
870
927
  end
871
-
872
928
  # Force synchronisation of a connection.
873
929
  # We suggest to pass parameter expand=accounts[transactions] to get all *new* and *updated* transactions.<br><br>Query params: - expand (string): fields to expand - last_update (dateTime): if supplied, get transactions inserted since this date<br><br>
874
930
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -878,7 +934,7 @@ module BudgeaClient
878
934
  # @return [Connection]
879
935
  def users_id_user_connections_id_connection_put(id_user, id_connection, opts = {})
880
936
  data, _status_code, _headers = users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts)
881
- return data
937
+ data
882
938
  end
883
939
 
884
940
  # Force synchronisation of a connection.
@@ -890,7 +946,7 @@ module BudgeaClient
890
946
  # @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
891
947
  def users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts = {})
892
948
  if @api_client.config.debugging
893
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_put ..."
949
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_id_connection_put ...'
894
950
  end
895
951
  # verify the required parameter 'id_user' is set
896
952
  if @api_client.config.client_side_validation && id_user.nil?
@@ -901,7 +957,7 @@ module BudgeaClient
901
957
  fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_put"
902
958
  end
903
959
  # resource path
904
- local_var_path = "/users/{id_user}/connections/{id_connection}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
960
+ local_var_path = '/users/{id_user}/connections/{id_connection}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
905
961
 
906
962
  # query parameters
907
963
  query_params = {}
@@ -932,12 +988,11 @@ module BudgeaClient
932
988
  end
933
989
  return data, status_code, headers
934
990
  end
935
-
936
991
  # Add a new connection.
937
992
  # Create a new connection to a given bank or provider. You have to give all needed parameters (use /banks/ID/fields or /providers/ID/fields to get them).<br><br>
938
993
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
939
994
  # @param [Hash] opts the optional parameters
940
- # @option opts [Integer] :id_bank ID of the bank
995
+ # @option opts [Integer] :id_connector ID of the connector
941
996
  # @option opts [String] :birthday bank additional login parameter
942
997
  # @option opts [String] :password bank additional login parameter
943
998
  # @option opts [String] :oauth_token bank additional login parameter
@@ -948,21 +1003,20 @@ module BudgeaClient
948
1003
  # @option opts [String] :birthdate bank additional login parameter
949
1004
  # @option opts [String] :nuser bank additional login parameter
950
1005
  # @option opts [String] :website bank additional login parameter
951
- # @option opts [String] :password2 bank additional login parameter
952
1006
  # @option opts [String] :login bank additional login parameter
953
1007
  # @option opts [Integer] :id_provider ID of the provider
954
1008
  # @option opts [String] :expand
955
1009
  # @return [Connection]
956
1010
  def users_id_user_connections_post(id_user, opts = {})
957
1011
  data, _status_code, _headers = users_id_user_connections_post_with_http_info(id_user, opts)
958
- return data
1012
+ data
959
1013
  end
960
1014
 
961
1015
  # Add a new connection.
962
1016
  # Create a new connection to a given bank or provider. You have to give all needed parameters (use /banks/ID/fields or /providers/ID/fields to get them).&lt;br&gt;&lt;br&gt;
963
1017
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
964
1018
  # @param [Hash] opts the optional parameters
965
- # @option opts [Integer] :id_bank ID of the bank
1019
+ # @option opts [Integer] :id_connector ID of the connector
966
1020
  # @option opts [String] :birthday bank additional login parameter
967
1021
  # @option opts [String] :password bank additional login parameter
968
1022
  # @option opts [String] :oauth_token bank additional login parameter
@@ -973,21 +1027,20 @@ module BudgeaClient
973
1027
  # @option opts [String] :birthdate bank additional login parameter
974
1028
  # @option opts [String] :nuser bank additional login parameter
975
1029
  # @option opts [String] :website bank additional login parameter
976
- # @option opts [String] :password2 bank additional login parameter
977
1030
  # @option opts [String] :login bank additional login parameter
978
1031
  # @option opts [Integer] :id_provider ID of the provider
979
1032
  # @option opts [String] :expand
980
1033
  # @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
981
1034
  def users_id_user_connections_post_with_http_info(id_user, opts = {})
982
1035
  if @api_client.config.debugging
983
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_post ..."
1036
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_connections_post ...'
984
1037
  end
985
1038
  # verify the required parameter 'id_user' is set
986
1039
  if @api_client.config.client_side_validation && id_user.nil?
987
1040
  fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_post"
988
1041
  end
989
1042
  # resource path
990
- local_var_path = "/users/{id_user}/connections".sub('{' + 'id_user' + '}', id_user.to_s)
1043
+ local_var_path = '/users/{id_user}/connections'.sub('{' + 'id_user' + '}', id_user.to_s)
991
1044
 
992
1045
  # query parameters
993
1046
  query_params = {}
@@ -998,24 +1051,23 @@ module BudgeaClient
998
1051
  # HTTP header 'Accept' (if needed)
999
1052
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1000
1053
  # HTTP header 'Content-Type'
1001
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1054
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1002
1055
 
1003
1056
  # form parameters
1004
1057
  form_params = {}
1005
- form_params["id_bank"] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
1006
- form_params["birthday"] = opts[:'birthday'] if !opts[:'birthday'].nil?
1007
- form_params["password"] = opts[:'password'] if !opts[:'password'].nil?
1008
- form_params["oauth_token"] = opts[:'oauth_token'] if !opts[:'oauth_token'].nil?
1009
- form_params["oauth_token_secret"] = opts[:'oauth_token_secret'] if !opts[:'oauth_token_secret'].nil?
1010
- form_params["auth_type"] = opts[:'auth_type'] if !opts[:'auth_type'].nil?
1011
- form_params["secret"] = opts[:'secret'] if !opts[:'secret'].nil?
1012
- form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
1013
- form_params["birthdate"] = opts[:'birthdate'] if !opts[:'birthdate'].nil?
1014
- form_params["nuser"] = opts[:'nuser'] if !opts[:'nuser'].nil?
1015
- form_params["website"] = opts[:'website'] if !opts[:'website'].nil?
1016
- form_params["password"] = opts[:'password2'] if !opts[:'password2'].nil?
1017
- form_params["login"] = opts[:'login'] if !opts[:'login'].nil?
1018
- form_params["id_provider"] = opts[:'id_provider'] if !opts[:'id_provider'].nil?
1058
+ form_params['id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
1059
+ form_params['birthday'] = opts[:'birthday'] if !opts[:'birthday'].nil?
1060
+ form_params['password'] = opts[:'password'] if !opts[:'password'].nil?
1061
+ form_params['oauth_token'] = opts[:'oauth_token'] if !opts[:'oauth_token'].nil?
1062
+ form_params['oauth_token_secret'] = opts[:'oauth_token_secret'] if !opts[:'oauth_token_secret'].nil?
1063
+ form_params['auth_type'] = opts[:'auth_type'] if !opts[:'auth_type'].nil?
1064
+ form_params['secret'] = opts[:'secret'] if !opts[:'secret'].nil?
1065
+ form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
1066
+ form_params['birthdate'] = opts[:'birthdate'] if !opts[:'birthdate'].nil?
1067
+ form_params['nuser'] = opts[:'nuser'] if !opts[:'nuser'].nil?
1068
+ form_params['website'] = opts[:'website'] if !opts[:'website'].nil?
1069
+ form_params['login'] = opts[:'login'] if !opts[:'login'].nil?
1070
+ form_params['id_provider'] = opts[:'id_provider'] if !opts[:'id_provider'].nil?
1019
1071
 
1020
1072
  # http body (model)
1021
1073
  post_body = nil
@@ -1032,7 +1084,6 @@ module BudgeaClient
1032
1084
  end
1033
1085
  return data, status_code, headers
1034
1086
  end
1035
-
1036
1087
  # Get connection logs
1037
1088
  # Get logs about connections.<br><br>
1038
1089
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -1045,13 +1096,13 @@ module BudgeaClient
1045
1096
  # @option opts [String] :period period to group logs
1046
1097
  # @option opts [Integer] :id_user2 ID of a user
1047
1098
  # @option opts [Integer] :id_connection ID of a connection
1048
- # @option opts [Integer] :id_bank ID of a bank
1049
- # @option opts [BOOLEAN] :charged consider only logs for charged banks
1099
+ # @option opts [Integer] :id_connector ID of a connector
1100
+ # @option opts [BOOLEAN] :charged consider only logs for charged connectors
1050
1101
  # @option opts [String] :expand
1051
- # @return [InlineResponse20015]
1102
+ # @return [InlineResponse20016]
1052
1103
  def users_id_user_logs_get(id_user, opts = {})
1053
1104
  data, _status_code, _headers = users_id_user_logs_get_with_http_info(id_user, opts)
1054
- return data
1105
+ data
1055
1106
  end
1056
1107
 
1057
1108
  # Get connection logs
@@ -1066,20 +1117,20 @@ module BudgeaClient
1066
1117
  # @option opts [String] :period period to group logs
1067
1118
  # @option opts [Integer] :id_user2 ID of a user
1068
1119
  # @option opts [Integer] :id_connection ID of a connection
1069
- # @option opts [Integer] :id_bank ID of a bank
1070
- # @option opts [BOOLEAN] :charged consider only logs for charged banks
1120
+ # @option opts [Integer] :id_connector ID of a connector
1121
+ # @option opts [BOOLEAN] :charged consider only logs for charged connectors
1071
1122
  # @option opts [String] :expand
1072
- # @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
1123
+ # @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
1073
1124
  def users_id_user_logs_get_with_http_info(id_user, opts = {})
1074
1125
  if @api_client.config.debugging
1075
- @api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_logs_get ..."
1126
+ @api_client.config.logger.debug 'Calling API: ConnectionsApi.users_id_user_logs_get ...'
1076
1127
  end
1077
1128
  # verify the required parameter 'id_user' is set
1078
1129
  if @api_client.config.client_side_validation && id_user.nil?
1079
1130
  fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_logs_get"
1080
1131
  end
1081
1132
  # resource path
1082
- local_var_path = "/users/{id_user}/logs".sub('{' + 'id_user' + '}', id_user.to_s)
1133
+ local_var_path = '/users/{id_user}/logs'.sub('{' + 'id_user' + '}', id_user.to_s)
1083
1134
 
1084
1135
  # query parameters
1085
1136
  query_params = {}
@@ -1091,7 +1142,7 @@ module BudgeaClient
1091
1142
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1092
1143
  query_params[:'id_user'] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
1093
1144
  query_params[:'id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
1094
- query_params[:'id_bank'] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
1145
+ query_params[:'id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
1095
1146
  query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
1096
1147
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1097
1148
 
@@ -1114,7 +1165,7 @@ module BudgeaClient
1114
1165
  :form_params => form_params,
1115
1166
  :body => post_body,
1116
1167
  :auth_names => auth_names,
1117
- :return_type => 'InlineResponse20015')
1168
+ :return_type => 'InlineResponse20016')
1118
1169
  if @api_client.config.debugging
1119
1170
  @api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1120
1171
  end