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 AuthenticationApi
@@ -9,7 +19,60 @@ module BudgeaClient
9
19
  def initialize(api_client = ApiClient.default)
10
20
  @api_client = api_client
11
21
  end
22
+ # Generate a jwt manage token
23
+ # This endpoint generates a new jwt manage token. It requires an admin manage token to be used<br><br>
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :scope scope requested for the token (default: config)
26
+ # @option opts [Integer] :duration number of minute before the token expiration (0 for token that won&#39;t expire unless the client application is deleted) (default: 1)
27
+ # @return [Object]
28
+ def admin_jwt_post(opts = {})
29
+ data, _status_code, _headers = admin_jwt_post_with_http_info(opts)
30
+ data
31
+ end
12
32
 
33
+ # Generate a jwt manage token
34
+ # This endpoint generates a new jwt manage token. It requires an admin manage token to be used&lt;br&gt;&lt;br&gt;
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :scope scope requested for the token (default: config)
37
+ # @option opts [Integer] :duration number of minute before the token expiration (0 for token that won&#39;t expire unless the client application is deleted) (default: 1)
38
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
39
+ def admin_jwt_post_with_http_info(opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.admin_jwt_post ...'
42
+ end
43
+ # resource path
44
+ local_var_path = '/admin/jwt'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
55
+
56
+ # form parameters
57
+ form_params = {}
58
+ form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
59
+ form_params['duration'] = opts[:'duration'] if !opts[:'duration'].nil?
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = ['api_key']
64
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'Object')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: AuthenticationApi#admin_jwt_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
13
76
  # Create a new anonymous user
14
77
  # This endpoint creates a new temporary token related to a new anonymous user.<br><br>It will expire 30 minutes after.<br><br>Note: if you supply client_id and client_secret, or if you call this endpoint with the manage_token, the token will be permanent.<br><br>
15
78
  # @param [Hash] opts the optional parameters
@@ -18,7 +81,7 @@ module BudgeaClient
18
81
  # @return [InlineResponse2002]
19
82
  def auth_init_post(opts = {})
20
83
  data, _status_code, _headers = auth_init_post_with_http_info(opts)
21
- return data
84
+ data
22
85
  end
23
86
 
24
87
  # Create a new anonymous user
@@ -29,10 +92,10 @@ module BudgeaClient
29
92
  # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
30
93
  def auth_init_post_with_http_info(opts = {})
31
94
  if @api_client.config.debugging
32
- @api_client.config.logger.debug "Calling API: AuthenticationApi.auth_init_post ..."
95
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_init_post ...'
33
96
  end
34
97
  # resource path
35
- local_var_path = "/auth/init"
98
+ local_var_path = '/auth/init'
36
99
 
37
100
  # query parameters
38
101
  query_params = {}
@@ -46,8 +109,8 @@ module BudgeaClient
46
109
 
47
110
  # form parameters
48
111
  form_params = {}
49
- form_params["client_id"] = opts[:'client_id'] if !opts[:'client_id'].nil?
50
- form_params["client_secret"] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
112
+ form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
113
+ form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
51
114
 
52
115
  # http body (model)
53
116
  post_body = nil
@@ -64,7 +127,69 @@ module BudgeaClient
64
127
  end
65
128
  return data, status_code, headers
66
129
  end
130
+ # Generate a user jwt token
131
+ # This endpoint generates a new jwt token for the user. This token will last the time in minutes given by the config key auth.default_token_expire (permanent if this the parameter expire=False is given)<br><br>
132
+ # @param [Hash] opts the optional parameters
133
+ # @option opts [String] :client_id id of the client
134
+ # @option opts [String] :client_secret secret for the client
135
+ # @option opts [String] :scope scope requested for the token
136
+ # @option opts [Integer] :id_user user for whom the token has to be generated. If not supplied, a user will be created
137
+ # @option opts [BOOLEAN] :expire if set to True, the token will expire n minutes after its creation, n being the value of configuration key auth.default_token_expire (default: True)
138
+ # @return [InlineResponse2003]
139
+ def auth_jwt_post(opts = {})
140
+ data, _status_code, _headers = auth_jwt_post_with_http_info(opts)
141
+ data
142
+ end
143
+
144
+ # Generate a user jwt token
145
+ # This endpoint generates a new jwt token for the user. This token will last the time in minutes given by the config key auth.default_token_expire (permanent if this the parameter expire&#x3D;False is given)&lt;br&gt;&lt;br&gt;
146
+ # @param [Hash] opts the optional parameters
147
+ # @option opts [String] :client_id id of the client
148
+ # @option opts [String] :client_secret secret for the client
149
+ # @option opts [String] :scope scope requested for the token
150
+ # @option opts [Integer] :id_user user for whom the token has to be generated. If not supplied, a user will be created
151
+ # @option opts [BOOLEAN] :expire if set to True, the token will expire n minutes after its creation, n being the value of configuration key auth.default_token_expire (default: True)
152
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
153
+ def auth_jwt_post_with_http_info(opts = {})
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_jwt_post ...'
156
+ end
157
+ # resource path
158
+ local_var_path = '/auth/jwt'
159
+
160
+ # query parameters
161
+ query_params = {}
162
+
163
+ # header parameters
164
+ header_params = {}
165
+ # HTTP header 'Accept' (if needed)
166
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
167
+ # HTTP header 'Content-Type'
168
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
67
169
 
170
+ # form parameters
171
+ form_params = {}
172
+ form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
173
+ form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
174
+ form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
175
+ form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
176
+ form_params['expire'] = opts[:'expire'] if !opts[:'expire'].nil?
177
+
178
+ # http body (model)
179
+ post_body = nil
180
+ auth_names = ['api_key']
181
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
182
+ :header_params => header_params,
183
+ :query_params => query_params,
184
+ :form_params => form_params,
185
+ :body => post_body,
186
+ :auth_names => auth_names,
187
+ :return_type => 'InlineResponse2003')
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug "API called: AuthenticationApi#auth_jwt_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
+ end
191
+ return data, status_code, headers
192
+ end
68
193
  # Transform a temporary code to a access_token
69
194
  # In order to register a new user with the OAuth 2 process, the client has to call this endpoint to request a granted access_token with the received temporary code.<br><br>
70
195
  # @param client_id ID of the client
@@ -73,10 +198,10 @@ module BudgeaClient
73
198
  # @param [Hash] opts the optional parameters
74
199
  # @option opts [String] :grant_type default is \&quot;authorization_code\&quot;
75
200
  # @option opts [String] :redirect_uri redirect uri used by user
76
- # @return [InlineResponse2005]
201
+ # @return [InlineResponse2006]
77
202
  def auth_token_access_post(client_id, client_secret, code, opts = {})
78
203
  data, _status_code, _headers = auth_token_access_post_with_http_info(client_id, client_secret, code, opts)
79
- return data
204
+ data
80
205
  end
81
206
 
82
207
  # Transform a temporary code to a access_token
@@ -87,10 +212,10 @@ module BudgeaClient
87
212
  # @param [Hash] opts the optional parameters
88
213
  # @option opts [String] :grant_type default is \&quot;authorization_code\&quot;
89
214
  # @option opts [String] :redirect_uri redirect uri used by user
90
- # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
215
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
91
216
  def auth_token_access_post_with_http_info(client_id, client_secret, code, opts = {})
92
217
  if @api_client.config.debugging
93
- @api_client.config.logger.debug "Calling API: AuthenticationApi.auth_token_access_post ..."
218
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_token_access_post ...'
94
219
  end
95
220
  # verify the required parameter 'client_id' is set
96
221
  if @api_client.config.client_side_validation && client_id.nil?
@@ -105,7 +230,7 @@ module BudgeaClient
105
230
  fail ArgumentError, "Missing the required parameter 'code' when calling AuthenticationApi.auth_token_access_post"
106
231
  end
107
232
  # resource path
108
- local_var_path = "/auth/token/access"
233
+ local_var_path = '/auth/token/access'
109
234
 
110
235
  # query parameters
111
236
  query_params = {}
@@ -119,11 +244,11 @@ module BudgeaClient
119
244
 
120
245
  # form parameters
121
246
  form_params = {}
122
- form_params["client_id"] = client_id
123
- form_params["client_secret"] = client_secret
124
- form_params["code"] = code
125
- form_params["grant_type"] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
126
- form_params["redirect_uri"] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
247
+ form_params['client_id'] = client_id
248
+ form_params['client_secret'] = client_secret
249
+ form_params['code'] = code
250
+ form_params['grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
251
+ form_params['redirect_uri'] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
127
252
 
128
253
  # http body (model)
129
254
  post_body = nil
@@ -134,32 +259,31 @@ module BudgeaClient
134
259
  :form_params => form_params,
135
260
  :body => post_body,
136
261
  :auth_names => auth_names,
137
- :return_type => 'InlineResponse2005')
262
+ :return_type => 'InlineResponse2006')
138
263
  if @api_client.config.debugging
139
264
  @api_client.config.logger.debug "API called: AuthenticationApi#auth_token_access_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
265
  end
141
266
  return data, status_code, headers
142
267
  end
143
-
144
268
  # Generate a user temporary token
145
269
  # This endpoint generates a new temporary token for the user.<br><br>In case the access_token is used by a trusted device, and you want to let another one (for example a web browser) access to user resources, use this service to create a token which will expire in 30 minutes.<br><br>
146
270
  # @param [Hash] opts the optional parameters
147
- # @return [InlineResponse2006]
271
+ # @return [InlineResponse2007]
148
272
  def auth_token_code_get(opts = {})
149
273
  data, _status_code, _headers = auth_token_code_get_with_http_info(opts)
150
- return data
274
+ data
151
275
  end
152
276
 
153
277
  # Generate a user temporary token
154
278
  # This endpoint generates a new temporary token for the user.&lt;br&gt;&lt;br&gt;In case the access_token is used by a trusted device, and you want to let another one (for example a web browser) access to user resources, use this service to create a token which will expire in 30 minutes.&lt;br&gt;&lt;br&gt;
155
279
  # @param [Hash] opts the optional parameters
156
- # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
280
+ # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
157
281
  def auth_token_code_get_with_http_info(opts = {})
158
282
  if @api_client.config.debugging
159
- @api_client.config.logger.debug "Calling API: AuthenticationApi.auth_token_code_get ..."
283
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_token_code_get ...'
160
284
  end
161
285
  # resource path
162
- local_var_path = "/auth/token/code"
286
+ local_var_path = '/auth/token/code'
163
287
 
164
288
  # query parameters
165
289
  query_params = {}
@@ -183,20 +307,19 @@ module BudgeaClient
183
307
  :form_params => form_params,
184
308
  :body => post_body,
185
309
  :auth_names => auth_names,
186
- :return_type => 'InlineResponse2006')
310
+ :return_type => 'InlineResponse2007')
187
311
  if @api_client.config.debugging
188
312
  @api_client.config.logger.debug "API called: AuthenticationApi#auth_token_code_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
313
  end
190
314
  return data, status_code, headers
191
315
  end
192
-
193
316
  # Remove user access
194
317
  # This endpoint removes the token in use.<br><br>
195
318
  # @param [Hash] opts the optional parameters
196
319
  # @return [nil]
197
320
  def auth_token_delete(opts = {})
198
321
  auth_token_delete_with_http_info(opts)
199
- return nil
322
+ nil
200
323
  end
201
324
 
202
325
  # Remove user access
@@ -205,10 +328,10 @@ module BudgeaClient
205
328
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
206
329
  def auth_token_delete_with_http_info(opts = {})
207
330
  if @api_client.config.debugging
208
- @api_client.config.logger.debug "Calling API: AuthenticationApi.auth_token_delete ..."
331
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_token_delete ...'
209
332
  end
210
333
  # resource path
211
- local_var_path = "/auth/token"
334
+ local_var_path = '/auth/token'
212
335
 
213
336
  # query parameters
214
337
  query_params = {}
@@ -237,14 +360,70 @@ module BudgeaClient
237
360
  end
238
361
  return data, status_code, headers
239
362
  end
363
+ # Get the latest certificate of a type
364
+ #
365
+ # @param type
366
+ # @param [Hash] opts the optional parameters
367
+ # @option opts [String] :expand
368
+ # @return [Certificate]
369
+ def certificate_type_get(type, opts = {})
370
+ data, _status_code, _headers = certificate_type_get_with_http_info(type, opts)
371
+ data
372
+ end
240
373
 
374
+ # Get the latest certificate of a type
375
+ #
376
+ # @param type
377
+ # @param [Hash] opts the optional parameters
378
+ # @option opts [String] :expand
379
+ # @return [Array<(Certificate, Fixnum, Hash)>] Certificate data, response status code and response headers
380
+ def certificate_type_get_with_http_info(type, opts = {})
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.certificate_type_get ...'
383
+ end
384
+ # verify the required parameter 'type' is set
385
+ if @api_client.config.client_side_validation && type.nil?
386
+ fail ArgumentError, "Missing the required parameter 'type' when calling AuthenticationApi.certificate_type_get"
387
+ end
388
+ # resource path
389
+ local_var_path = '/certificate/{type}'.sub('{' + 'type' + '}', type.to_s)
390
+
391
+ # query parameters
392
+ query_params = {}
393
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
394
+
395
+ # header parameters
396
+ header_params = {}
397
+ # HTTP header 'Accept' (if needed)
398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
399
+ # HTTP header 'Content-Type'
400
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
401
+
402
+ # form parameters
403
+ form_params = {}
404
+
405
+ # http body (model)
406
+ post_body = nil
407
+ auth_names = ['api_key']
408
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
409
+ :header_params => header_params,
410
+ :query_params => query_params,
411
+ :form_params => form_params,
412
+ :body => post_body,
413
+ :auth_names => auth_names,
414
+ :return_type => 'Certificate')
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "API called: AuthenticationApi#certificate_type_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
+ end
418
+ return data, status_code, headers
419
+ end
241
420
  # Delete the user's connections
242
421
  # deletes all connections of the user given his hash<br><br>
243
422
  # @param [Hash] opts the optional parameters
244
423
  # @return [nil]
245
424
  def hash_delete(opts = {})
246
425
  hash_delete_with_http_info(opts)
247
- return nil
426
+ nil
248
427
  end
249
428
 
250
429
  # Delete the user&#39;s connections
@@ -253,10 +432,10 @@ module BudgeaClient
253
432
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
254
433
  def hash_delete_with_http_info(opts = {})
255
434
  if @api_client.config.debugging
256
- @api_client.config.logger.debug "Calling API: AuthenticationApi.hash_delete ..."
435
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.hash_delete ...'
257
436
  end
258
437
  # resource path
259
- local_var_path = "/hash"
438
+ local_var_path = '/hash'
260
439
 
261
440
  # query parameters
262
441
  query_params = {}
@@ -285,7 +464,6 @@ module BudgeaClient
285
464
  end
286
465
  return data, status_code, headers
287
466
  end
288
-
289
467
  # Delete the user
290
468
  # This endpoint deletes the user.<br><br>
291
469
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -294,7 +472,7 @@ module BudgeaClient
294
472
  # @return [User]
295
473
  def users_id_user_delete(id_user, opts = {})
296
474
  data, _status_code, _headers = users_id_user_delete_with_http_info(id_user, opts)
297
- return data
475
+ data
298
476
  end
299
477
 
300
478
  # Delete the user
@@ -305,14 +483,14 @@ module BudgeaClient
305
483
  # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
306
484
  def users_id_user_delete_with_http_info(id_user, opts = {})
307
485
  if @api_client.config.debugging
308
- @api_client.config.logger.debug "Calling API: AuthenticationApi.users_id_user_delete ..."
486
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.users_id_user_delete ...'
309
487
  end
310
488
  # verify the required parameter 'id_user' is set
311
489
  if @api_client.config.client_side_validation && id_user.nil?
312
490
  fail ArgumentError, "Missing the required parameter 'id_user' when calling AuthenticationApi.users_id_user_delete"
313
491
  end
314
492
  # resource path
315
- local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
493
+ local_var_path = '/users/{id_user}'.sub('{' + 'id_user' + '}', id_user.to_s)
316
494
 
317
495
  # query parameters
318
496
  query_params = {}
@@ -343,7 +521,6 @@ module BudgeaClient
343
521
  end
344
522
  return data, status_code, headers
345
523
  end
346
-
347
524
  # Get a user
348
525
  #
349
526
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -352,7 +529,7 @@ module BudgeaClient
352
529
  # @return [User]
353
530
  def users_id_user_get(id_user, opts = {})
354
531
  data, _status_code, _headers = users_id_user_get_with_http_info(id_user, opts)
355
- return data
532
+ data
356
533
  end
357
534
 
358
535
  # Get a user
@@ -363,14 +540,14 @@ module BudgeaClient
363
540
  # @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
364
541
  def users_id_user_get_with_http_info(id_user, opts = {})
365
542
  if @api_client.config.debugging
366
- @api_client.config.logger.debug "Calling API: AuthenticationApi.users_id_user_get ..."
543
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.users_id_user_get ...'
367
544
  end
368
545
  # verify the required parameter 'id_user' is set
369
546
  if @api_client.config.client_side_validation && id_user.nil?
370
547
  fail ArgumentError, "Missing the required parameter 'id_user' when calling AuthenticationApi.users_id_user_get"
371
548
  end
372
549
  # resource path
373
- local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
550
+ local_var_path = '/users/{id_user}'.sub('{' + 'id_user' + '}', id_user.to_s)
374
551
 
375
552
  # query parameters
376
553
  query_params = {}
@@ -401,7 +578,6 @@ module BudgeaClient
401
578
  end
402
579
  return data, status_code, headers
403
580
  end
404
-
405
581
  # Create a token
406
582
  # Create an access_token for this user and get it.<br><br>
407
583
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -410,7 +586,7 @@ module BudgeaClient
410
586
  # @return [Object]
411
587
  def users_id_user_token_post(id_user, application, opts = {})
412
588
  data, _status_code, _headers = users_id_user_token_post_with_http_info(id_user, application, opts)
413
- return data
589
+ data
414
590
  end
415
591
 
416
592
  # Create a token
@@ -421,7 +597,7 @@ module BudgeaClient
421
597
  # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
422
598
  def users_id_user_token_post_with_http_info(id_user, application, opts = {})
423
599
  if @api_client.config.debugging
424
- @api_client.config.logger.debug "Calling API: AuthenticationApi.users_id_user_token_post ..."
600
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.users_id_user_token_post ...'
425
601
  end
426
602
  # verify the required parameter 'id_user' is set
427
603
  if @api_client.config.client_side_validation && id_user.nil?
@@ -432,7 +608,7 @@ module BudgeaClient
432
608
  fail ArgumentError, "Missing the required parameter 'application' when calling AuthenticationApi.users_id_user_token_post"
433
609
  end
434
610
  # resource path
435
- local_var_path = "/users/{id_user}/token".sub('{' + 'id_user' + '}', id_user.to_s)
611
+ local_var_path = '/users/{id_user}/token'.sub('{' + 'id_user' + '}', id_user.to_s)
436
612
 
437
613
  # query parameters
438
614
  query_params = {}
@@ -442,11 +618,11 @@ module BudgeaClient
442
618
  # HTTP header 'Accept' (if needed)
443
619
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
444
620
  # HTTP header 'Content-Type'
445
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
621
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
446
622
 
447
623
  # form parameters
448
624
  form_params = {}
449
- form_params["application"] = application
625
+ form_params['application'] = application
450
626
 
451
627
  # http body (model)
452
628
  post_body = nil
@@ -463,5 +639,70 @@ module BudgeaClient
463
639
  end
464
640
  return data, status_code, headers
465
641
  end
642
+ # Initialize a new OAuth2 proxy session.
643
+ #
644
+ # @param [Hash] opts the optional parameters
645
+ # @option opts [Integer] :id_connector ID of the connector
646
+ # @option opts [Integer] :client_id Client Application ID
647
+ # @option opts [String] :redirect_uri Redirect URI
648
+ # @option opts [String] :state Optional state
649
+ # @option opts [String] :fields Optional fields
650
+ # @option opts [Integer] :id_connection Optional already existing connection to update
651
+ # @return [nil]
652
+ def webauth_get(opts = {})
653
+ webauth_get_with_http_info(opts)
654
+ nil
655
+ end
656
+
657
+ # Initialize a new OAuth2 proxy session.
658
+ #
659
+ # @param [Hash] opts the optional parameters
660
+ # @option opts [Integer] :id_connector ID of the connector
661
+ # @option opts [Integer] :client_id Client Application ID
662
+ # @option opts [String] :redirect_uri Redirect URI
663
+ # @option opts [String] :state Optional state
664
+ # @option opts [String] :fields Optional fields
665
+ # @option opts [Integer] :id_connection Optional already existing connection to update
666
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
667
+ def webauth_get_with_http_info(opts = {})
668
+ if @api_client.config.debugging
669
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.webauth_get ...'
670
+ end
671
+ # resource path
672
+ local_var_path = '/webauth'
673
+
674
+ # query parameters
675
+ query_params = {}
676
+
677
+ # header parameters
678
+ header_params = {}
679
+ # HTTP header 'Accept' (if needed)
680
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
681
+ # HTTP header 'Content-Type'
682
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
683
+
684
+ # form parameters
685
+ form_params = {}
686
+ form_params['id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
687
+ form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
688
+ form_params['redirect_uri'] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
689
+ form_params['state'] = opts[:'state'] if !opts[:'state'].nil?
690
+ form_params['fields'] = opts[:'fields'] if !opts[:'fields'].nil?
691
+ form_params['id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
692
+
693
+ # http body (model)
694
+ post_body = nil
695
+ auth_names = ['api_key']
696
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
697
+ :header_params => header_params,
698
+ :query_params => query_params,
699
+ :form_params => form_params,
700
+ :body => post_body,
701
+ :auth_names => auth_names)
702
+ if @api_client.config.debugging
703
+ @api_client.config.logger.debug "API called: AuthenticationApi#webauth_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
704
+ end
705
+ return data, status_code, headers
706
+ end
466
707
  end
467
708
  end