budgea_client 1.4.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,12 @@
1
+ # BudgeaClient::Certificate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **id_public_key_file** | **Integer** | |
8
+ **id_private_key_file** | **Integer** | |
9
+ **type** | **String** | |
10
+ **created** | **DateTime** | |
11
+
12
+
data/docs/Client.md CHANGED
@@ -4,9 +4,11 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **Integer** | |
7
- **name** | **String** | | [default to ""]
7
+ **name** | **String** | | [default to '']
8
8
  **secret** | **String** | |
9
- **redirect_uri** | **String** | | [default to ""]
9
+ **public_key** | **String** | | [optional]
10
+ **private_key** | **String** | | [optional]
11
+ **redirect_uri** | **String** | | [default to '']
10
12
  **primary_color** | **String** | Primary color of client | [optional]
11
13
  **secondary_color** | **String** | Secondary color of client | [optional]
12
14
  **pro** | **BOOLEAN** | Should the client display the company manager page. | [default to false]
@@ -14,5 +16,6 @@ Name | Type | Description | Notes
14
16
  **description_banks** | **String** | Text to display as a description for banks. | [optional]
15
17
  **description_providers** | **String** | Text to display as a description for providers. | [optional]
16
18
  **id_logo** | **Integer** | | [optional]
19
+ **information** | **String** | customizable information | [optional]
17
20
 
18
21
 
data/docs/Connection.md CHANGED
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **Integer** | ID of connection |
7
7
  **id_user** | **Integer** | ID of the related user | [optional]
8
- **id_bank** | **Integer** | ID of the related bank or provider |
8
+ **id_connector** | **Integer** | ID of the related connector |
9
9
  **last_update** | **DateTime** | Last successful update | [optional]
10
10
  **error** | **String** | If the last update has failed, the error code | [optional]
11
11
  **expire** | **DateTime** | Expiration of the connection. Used during add of a two-factor authentication, to purge the connection if the user abort | [optional]
@@ -6,16 +6,17 @@ Name | Type | Description | Notes
6
6
  **id** | **Integer** | ID of the log |
7
7
  **id_user** | **Integer** | ID of the user | [optional]
8
8
  **id_connection** | **Integer** | ID of the connection |
9
- **id_bank** | **Integer** | ID of the bank | [optional]
9
+ **id_connector** | **Integer** | ID of the connector | [optional]
10
10
  **login** | **String** | bcrypt hash of the login | [optional]
11
11
  **error_uid** | **String** | MD5 hash of the exception backtrace | [optional]
12
12
  **timestamp** | **DateTime** | Timestamp of log, when the synchronization has finished |
13
13
  **next_try** | **DateTime** | If fail, the date represents the next try to connect | [optional]
14
14
  **error** | **String** | If fail, contains the error code | [optional]
15
- **error_message** | **String** | If fail, error message received from bank or provider | [optional]
15
+ **error_message** | **String** | If fail, error message received from connector | [optional]
16
16
  **statut** | **Integer** | Status of user (1 = charged user) | [optional]
17
17
  **nb_accounts** | **Integer** | In case of bank connection, number of accounts | [optional]
18
18
  **start** | **DateTime** | Timestamp when the synchronization has started | [optional]
19
19
  **worker** | **String** | Worker used to do synchronization | [optional]
20
+ **session_folder_id** | **String** | Session folder uid | [optional]
20
21
 
21
22
 
@@ -5,12 +5,13 @@ All URIs are relative to *https://demo.biapi.pro/2.0/*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**banks_get**](ConnectionsApi.md#banks_get) | **GET** /banks | Get list of connectors
8
- [**banks_id_bank_connections_get**](ConnectionsApi.md#banks_id_bank_connections_get) | **GET** /banks/{id_bank}/connections | Get a subset of id_connection with the largest diversity of account
8
+ [**banks_id_connector_connections_get**](ConnectionsApi.md#banks_id_connector_connections_get) | **GET** /banks/{id_connector}/connections | Get a subset of id_connection with the largest diversity of account
9
9
  [**connections_get**](ConnectionsApi.md#connections_get) | **GET** /connections | Get connections without a user
10
10
  [**connectors_get**](ConnectionsApi.md#connectors_get) | **GET** /connectors | Get list of connectors
11
11
  [**connectors_post**](ConnectionsApi.md#connectors_post) | **POST** /connectors | Request a new connector
12
12
  [**logs_get**](ConnectionsApi.md#logs_get) | **GET** /logs | Get connection logs
13
13
  [**providers_get**](ConnectionsApi.md#providers_get) | **GET** /providers | Get list of connectors
14
+ [**providers_id_connector_connections_get**](ConnectionsApi.md#providers_id_connector_connections_get) | **GET** /providers/{id_connector}/connections | Get a random subset of provider's id_connection
14
15
  [**users_id_user_connections_delete**](ConnectionsApi.md#users_id_user_connections_delete) | **DELETE** /users/{id_user}/connections | Delete all connections
15
16
  [**users_id_user_connections_get**](ConnectionsApi.md#users_id_user_connections_get) | **GET** /users/{id_user}/connections | Get connections
16
17
  [**users_id_user_connections_id_connection_delete**](ConnectionsApi.md#users_id_user_connections_id_connection_delete) | **DELETE** /users/{id_user}/connections/{id_connection} | Delete a connection.
@@ -23,7 +24,7 @@ Method | HTTP request | Description
23
24
 
24
25
 
25
26
  # **banks_get**
26
- > InlineResponse2007 banks_get(opts)
27
+ > InlineResponse2008 banks_get(opts)
27
28
 
28
29
  Get list of connectors
29
30
 
@@ -44,7 +45,7 @@ end
44
45
  api_instance = BudgeaClient::ConnectionsApi.new
45
46
 
46
47
  opts = {
47
- expand: "expand_example" # String |
48
+ expand: 'expand_example' # String |
48
49
  }
49
50
 
50
51
  begin
@@ -64,7 +65,7 @@ Name | Type | Description | Notes
64
65
 
65
66
  ### Return type
66
67
 
67
- [**InlineResponse2007**](InlineResponse2007.md)
68
+ [**InlineResponse2008**](InlineResponse2008.md)
68
69
 
69
70
  ### Authorization
70
71
 
@@ -77,8 +78,8 @@ Name | Type | Description | Notes
77
78
 
78
79
 
79
80
 
80
- # **banks_id_bank_connections_get**
81
- > InlineResponse2008 banks_id_bank_connections_get(id_bank, opts)
81
+ # **banks_id_connector_connections_get**
82
+ > InlineResponse2009 banks_id_connector_connections_get(id_connector, opts)
82
83
 
83
84
  Get a subset of id_connection with the largest diversity of account
84
85
 
@@ -98,20 +99,20 @@ end
98
99
 
99
100
  api_instance = BudgeaClient::ConnectionsApi.new
100
101
 
101
- id_bank = 56 # Integer |
102
+ id_connector = 56 # Integer |
102
103
 
103
104
  opts = {
104
105
  range: 56, # Integer | the length of the connection subset
105
106
  type: 56, # Integer | to target a specific account type which will be
106
- expand: "expand_example" # String |
107
+ expand: 'expand_example' # String |
107
108
  }
108
109
 
109
110
  begin
110
111
  #Get a subset of id_connection with the largest diversity of account
111
- result = api_instance.banks_id_bank_connections_get(id_bank, opts)
112
+ result = api_instance.banks_id_connector_connections_get(id_connector, opts)
112
113
  p result
113
114
  rescue BudgeaClient::ApiError => e
114
- puts "Exception when calling ConnectionsApi->banks_id_bank_connections_get: #{e}"
115
+ puts "Exception when calling ConnectionsApi->banks_id_connector_connections_get: #{e}"
115
116
  end
116
117
  ```
117
118
 
@@ -119,14 +120,14 @@ end
119
120
 
120
121
  Name | Type | Description | Notes
121
122
  ------------- | ------------- | ------------- | -------------
122
- **id_bank** | **Integer**| |
123
+ **id_connector** | **Integer**| |
123
124
  **range** | **Integer**| the length of the connection subset | [optional]
124
125
  **type** | **Integer**| to target a specific account type which will be | [optional]
125
126
  **expand** | **String**| | [optional]
126
127
 
127
128
  ### Return type
128
129
 
129
- [**InlineResponse2008**](InlineResponse2008.md)
130
+ [**InlineResponse2009**](InlineResponse2009.md)
130
131
 
131
132
  ### Authorization
132
133
 
@@ -140,7 +141,7 @@ Name | Type | Description | Notes
140
141
 
141
142
 
142
143
  # **connections_get**
143
- > InlineResponse2008 connections_get(opts)
144
+ > InlineResponse2009 connections_get(opts)
144
145
 
145
146
  Get connections without a user
146
147
 
@@ -161,7 +162,7 @@ end
161
162
  api_instance = BudgeaClient::ConnectionsApi.new
162
163
 
163
164
  opts = {
164
- expand: "expand_example" # String |
165
+ expand: 'expand_example' # String |
165
166
  }
166
167
 
167
168
  begin
@@ -181,7 +182,7 @@ Name | Type | Description | Notes
181
182
 
182
183
  ### Return type
183
184
 
184
- [**InlineResponse2008**](InlineResponse2008.md)
185
+ [**InlineResponse2009**](InlineResponse2009.md)
185
186
 
186
187
  ### Authorization
187
188
 
@@ -195,7 +196,7 @@ Name | Type | Description | Notes
195
196
 
196
197
 
197
198
  # **connectors_get**
198
- > InlineResponse20012 connectors_get(opts)
199
+ > InlineResponse20013 connectors_get(opts)
199
200
 
200
201
  Get list of connectors
201
202
 
@@ -216,7 +217,7 @@ end
216
217
  api_instance = BudgeaClient::ConnectionsApi.new
217
218
 
218
219
  opts = {
219
- expand: "expand_example" # String |
220
+ expand: 'expand_example' # String |
220
221
  }
221
222
 
222
223
  begin
@@ -236,7 +237,7 @@ Name | Type | Description | Notes
236
237
 
237
238
  ### Return type
238
239
 
239
- [**InlineResponse20012**](InlineResponse20012.md)
240
+ [**InlineResponse20013**](InlineResponse20013.md)
240
241
 
241
242
  ### Authorization
242
243
 
@@ -250,7 +251,7 @@ Name | Type | Description | Notes
250
251
 
251
252
 
252
253
  # **connectors_post**
253
- > Bank connectors_post(name, login, password, opts)
254
+ > Connector connectors_post(name, login, password, opts)
254
255
 
255
256
  Request a new connector
256
257
 
@@ -270,20 +271,20 @@ end
270
271
 
271
272
  api_instance = BudgeaClient::ConnectionsApi.new
272
273
 
273
- name = "name_example" # String | Name of the bank or provider
274
+ name = 'name_example' # String | Name of the bank or provider
274
275
 
275
- login = "login_example" # String | Users login
276
+ login = 'login_example' # String | Users login
276
277
 
277
- password = "password_example" # String | Users password
278
+ password = 'password_example' # String | Users password
278
279
 
279
280
  opts = {
280
- api: "api_example", # String | Name of the API
281
- url: "url_example", # String | Url of the bank
282
- email: "email_example", # String | Email of the user
283
- types: "types_example", # String | Type of connector, eg. banks or providers
284
- comment: "comment_example", # String | Optionnal comment
281
+ api: 'api_example', # String | Name of the API
282
+ url: 'url_example', # String | Url of the bank
283
+ email: 'email_example', # String | Email of the user
284
+ types: 'types_example', # String | Type of connector, eg. banks or providers
285
+ comment: 'comment_example', # String | Optionnal comment
285
286
  sendmail: true, # BOOLEAN | if set, send an email to user
286
- expand: "expand_example" # String |
287
+ expand: 'expand_example' # String |
287
288
  }
288
289
 
289
290
  begin
@@ -312,7 +313,7 @@ Name | Type | Description | Notes
312
313
 
313
314
  ### Return type
314
315
 
315
- [**Bank**](Bank.md)
316
+ [**Connector**](Connector.md)
316
317
 
317
318
  ### Authorization
318
319
 
@@ -320,13 +321,13 @@ Name | Type | Description | Notes
320
321
 
321
322
  ### HTTP request headers
322
323
 
323
- - **Content-Type**: multipart/form-data
324
+ - **Content-Type**: application/x-www-form-urlencoded
324
325
  - **Accept**: application/json
325
326
 
326
327
 
327
328
 
328
329
  # **logs_get**
329
- > InlineResponse20015 logs_get(opts)
330
+ > InlineResponse20016 logs_get(opts)
330
331
 
331
332
  Get connection logs
332
333
 
@@ -349,15 +350,15 @@ api_instance = BudgeaClient::ConnectionsApi.new
349
350
  opts = {
350
351
  limit: 56, # Integer | limit number of results
351
352
  offset: 56, # Integer | offset of first result
352
- min_date: Date.parse("2013-10-20"), # Date | minimal date
353
- max_date: Date.parse("2013-10-20"), # Date | maximum date
353
+ min_date: Date.parse('2013-10-20'), # Date | minimal date
354
+ max_date: Date.parse('2013-10-20'), # Date | maximum date
354
355
  state: 56, # Integer | state of user
355
- period: "period_example", # String | period to group logs
356
+ period: 'period_example', # String | period to group logs
356
357
  id_user: 56, # Integer | ID of a user
357
358
  id_connection: 56, # Integer | ID of a connection
358
- id_bank: 56, # Integer | ID of a bank
359
- charged: true, # BOOLEAN | consider only logs for charged banks
360
- expand: "expand_example" # String |
359
+ id_connector: 56, # Integer | ID of a connector
360
+ charged: true, # BOOLEAN | consider only logs for charged connectors
361
+ expand: 'expand_example' # String |
361
362
  }
362
363
 
363
364
  begin
@@ -381,13 +382,13 @@ Name | Type | Description | Notes
381
382
  **period** | **String**| period to group logs | [optional]
382
383
  **id_user** | **Integer**| ID of a user | [optional]
383
384
  **id_connection** | **Integer**| ID of a connection | [optional]
384
- **id_bank** | **Integer**| ID of a bank | [optional]
385
- **charged** | **BOOLEAN**| consider only logs for charged banks | [optional]
385
+ **id_connector** | **Integer**| ID of a connector | [optional]
386
+ **charged** | **BOOLEAN**| consider only logs for charged connectors | [optional]
386
387
  **expand** | **String**| | [optional]
387
388
 
388
389
  ### Return type
389
390
 
390
- [**InlineResponse20015**](InlineResponse20015.md)
391
+ [**InlineResponse20016**](InlineResponse20016.md)
391
392
 
392
393
  ### Authorization
393
394
 
@@ -401,7 +402,7 @@ Name | Type | Description | Notes
401
402
 
402
403
 
403
404
  # **providers_get**
404
- > InlineResponse2007 providers_get(opts)
405
+ > InlineResponse20017 providers_get(opts)
405
406
 
406
407
  Get list of connectors
407
408
 
@@ -422,7 +423,7 @@ end
422
423
  api_instance = BudgeaClient::ConnectionsApi.new
423
424
 
424
425
  opts = {
425
- expand: "expand_example" # String |
426
+ expand: 'expand_example' # String |
426
427
  }
427
428
 
428
429
  begin
@@ -442,7 +443,67 @@ Name | Type | Description | Notes
442
443
 
443
444
  ### Return type
444
445
 
445
- [**InlineResponse2007**](InlineResponse2007.md)
446
+ [**InlineResponse20017**](InlineResponse20017.md)
447
+
448
+ ### Authorization
449
+
450
+ [api_key](../README.md#api_key)
451
+
452
+ ### HTTP request headers
453
+
454
+ - **Content-Type**: application/json, multipart/form-data
455
+ - **Accept**: application/json
456
+
457
+
458
+
459
+ # **providers_id_connector_connections_get**
460
+ > InlineResponse2009 providers_id_connector_connections_get(id_connector, opts)
461
+
462
+ Get a random subset of provider's id_connection
463
+
464
+ By default, it selects a set of 3 connections.<br><br>
465
+
466
+ ### Example
467
+ ```ruby
468
+ # load the gem
469
+ require 'budgea_client'
470
+ # setup authorization
471
+ BudgeaClient.configure do |config|
472
+ # Configure API key authorization: api_key
473
+ config.api_key['Authorization'] = 'YOUR API KEY'
474
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
475
+ #config.api_key_prefix['Authorization'] = 'Bearer'
476
+ end
477
+
478
+ api_instance = BudgeaClient::ConnectionsApi.new
479
+
480
+ id_connector = 56 # Integer |
481
+
482
+ opts = {
483
+ range: 56, # Integer | the length of the connection subset
484
+ expand: 'expand_example' # String |
485
+ }
486
+
487
+ begin
488
+ #Get a random subset of provider's id_connection
489
+ result = api_instance.providers_id_connector_connections_get(id_connector, opts)
490
+ p result
491
+ rescue BudgeaClient::ApiError => e
492
+ puts "Exception when calling ConnectionsApi->providers_id_connector_connections_get: #{e}"
493
+ end
494
+ ```
495
+
496
+ ### Parameters
497
+
498
+ Name | Type | Description | Notes
499
+ ------------- | ------------- | ------------- | -------------
500
+ **id_connector** | **Integer**| |
501
+ **range** | **Integer**| the length of the connection subset | [optional]
502
+ **expand** | **String**| | [optional]
503
+
504
+ ### Return type
505
+
506
+ [**InlineResponse2009**](InlineResponse2009.md)
446
507
 
447
508
  ### Authorization
448
509
 
@@ -476,10 +537,10 @@ end
476
537
 
477
538
  api_instance = BudgeaClient::ConnectionsApi.new
478
539
 
479
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
540
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
480
541
 
481
542
  opts = {
482
- expand: "expand_example" # String |
543
+ expand: 'expand_example' # String |
483
544
  }
484
545
 
485
546
  begin
@@ -514,7 +575,7 @@ Name | Type | Description | Notes
514
575
 
515
576
 
516
577
  # **users_id_user_connections_get**
517
- > InlineResponse2008 users_id_user_connections_get(id_user, opts)
578
+ > InlineResponse2009 users_id_user_connections_get(id_user, opts)
518
579
 
519
580
  Get connections
520
581
 
@@ -534,10 +595,10 @@ end
534
595
 
535
596
  api_instance = BudgeaClient::ConnectionsApi.new
536
597
 
537
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
598
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
538
599
 
539
600
  opts = {
540
- expand: "expand_example" # String |
601
+ expand: 'expand_example' # String |
541
602
  }
542
603
 
543
604
  begin
@@ -558,7 +619,7 @@ Name | Type | Description | Notes
558
619
 
559
620
  ### Return type
560
621
 
561
- [**InlineResponse2008**](InlineResponse2008.md)
622
+ [**InlineResponse2009**](InlineResponse2009.md)
562
623
 
563
624
  ### Authorization
564
625
 
@@ -592,12 +653,12 @@ end
592
653
 
593
654
  api_instance = BudgeaClient::ConnectionsApi.new
594
655
 
595
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
656
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
596
657
 
597
658
  id_connection = 56 # Integer |
598
659
 
599
660
  opts = {
600
- expand: "expand_example" # String |
661
+ expand: 'expand_example' # String |
601
662
  }
602
663
 
603
664
  begin
@@ -633,7 +694,7 @@ Name | Type | Description | Notes
633
694
 
634
695
 
635
696
  # **users_id_user_connections_id_connection_informations_get**
636
- > InlineResponse2008 users_id_user_connections_id_connection_informations_get(id_user, id_connection, opts)
697
+ > InlineResponse2009 users_id_user_connections_id_connection_informations_get(id_user, id_connection, opts)
637
698
 
638
699
  Get connection additionnal informations
639
700
 
@@ -653,12 +714,12 @@ end
653
714
 
654
715
  api_instance = BudgeaClient::ConnectionsApi.new
655
716
 
656
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
717
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
657
718
 
658
719
  id_connection = 56 # Integer |
659
720
 
660
721
  opts = {
661
- expand: "expand_example" # String |
722
+ expand: 'expand_example' # String |
662
723
  }
663
724
 
664
725
  begin
@@ -680,7 +741,7 @@ Name | Type | Description | Notes
680
741
 
681
742
  ### Return type
682
743
 
683
- [**InlineResponse2008**](InlineResponse2008.md)
744
+ [**InlineResponse2009**](InlineResponse2009.md)
684
745
 
685
746
  ### Authorization
686
747
 
@@ -694,7 +755,7 @@ Name | Type | Description | Notes
694
755
 
695
756
 
696
757
  # **users_id_user_connections_id_connection_logs_get**
697
- > InlineResponse20015 users_id_user_connections_id_connection_logs_get(id_user, id_connection, opts)
758
+ > InlineResponse20016 users_id_user_connections_id_connection_logs_get(id_user, id_connection, opts)
698
759
 
699
760
  Get connection logs
700
761
 
@@ -714,22 +775,22 @@ end
714
775
 
715
776
  api_instance = BudgeaClient::ConnectionsApi.new
716
777
 
717
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
778
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
718
779
 
719
780
  id_connection = 56 # Integer |
720
781
 
721
782
  opts = {
722
783
  limit: 56, # Integer | limit number of results
723
784
  offset: 56, # Integer | offset of first result
724
- min_date: Date.parse("2013-10-20"), # Date | minimal date
725
- max_date: Date.parse("2013-10-20"), # Date | maximum date
785
+ min_date: Date.parse('2013-10-20'), # Date | minimal date
786
+ max_date: Date.parse('2013-10-20'), # Date | maximum date
726
787
  state: 56, # Integer | state of user
727
- period: "period_example", # String | period to group logs
788
+ period: 'period_example', # String | period to group logs
728
789
  id_user2: 56, # Integer | ID of a user
729
790
  id_connection2: 56, # Integer | ID of a connection
730
- id_bank: 56, # Integer | ID of a bank
731
- charged: true, # BOOLEAN | consider only logs for charged banks
732
- expand: "expand_example" # String |
791
+ id_connector: 56, # Integer | ID of a connector
792
+ charged: true, # BOOLEAN | consider only logs for charged connectors
793
+ expand: 'expand_example' # String |
733
794
  }
734
795
 
735
796
  begin
@@ -755,13 +816,13 @@ Name | Type | Description | Notes
755
816
  **period** | **String**| period to group logs | [optional]
756
817
  **id_user2** | **Integer**| ID of a user | [optional]
757
818
  **id_connection2** | **Integer**| ID of a connection | [optional]
758
- **id_bank** | **Integer**| ID of a bank | [optional]
759
- **charged** | **BOOLEAN**| consider only logs for charged banks | [optional]
819
+ **id_connector** | **Integer**| ID of a connector | [optional]
820
+ **charged** | **BOOLEAN**| consider only logs for charged connectors | [optional]
760
821
  **expand** | **String**| | [optional]
761
822
 
762
823
  ### Return type
763
824
 
764
- [**InlineResponse20015**](InlineResponse20015.md)
825
+ [**InlineResponse20016**](InlineResponse20016.md)
765
826
 
766
827
  ### Authorization
767
828
 
@@ -795,16 +856,16 @@ end
795
856
 
796
857
  api_instance = BudgeaClient::ConnectionsApi.new
797
858
 
798
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
859
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
799
860
 
800
861
  id_connection = 56 # Integer |
801
862
 
802
863
  opts = {
803
864
  active: true, # BOOLEAN | Set if the connection synchronisation is active
804
- expire: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Set expiration of the connection to this date
805
- login: "login_example", # String | Set login to this new login
806
- password: "password_example", # String | Set password to this new password
807
- expand: "expand_example" # String |
865
+ expire: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Set expiration of the connection to this date
866
+ login: 'login_example', # String | Set login to this new login
867
+ password: 'password_example', # String | Set password to this new password
868
+ expand: 'expand_example' # String |
808
869
  }
809
870
 
810
871
  begin
@@ -838,7 +899,7 @@ Name | Type | Description | Notes
838
899
 
839
900
  ### HTTP request headers
840
901
 
841
- - **Content-Type**: multipart/form-data
902
+ - **Content-Type**: application/x-www-form-urlencoded
842
903
  - **Accept**: application/json
843
904
 
844
905
 
@@ -864,12 +925,12 @@ end
864
925
 
865
926
  api_instance = BudgeaClient::ConnectionsApi.new
866
927
 
867
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
928
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
868
929
 
869
930
  id_connection = 56 # Integer |
870
931
 
871
932
  opts = {
872
- expand: "expand_example" # String |
933
+ expand: 'expand_example' # String |
873
934
  }
874
935
 
875
936
  begin
@@ -925,24 +986,23 @@ end
925
986
 
926
987
  api_instance = BudgeaClient::ConnectionsApi.new
927
988
 
928
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
989
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
929
990
 
930
991
  opts = {
931
- id_bank: 56, # Integer | ID of the bank
932
- birthday: "birthday_example", # String | bank additional login parameter
933
- password: "password_example", # String | bank additional login parameter
934
- oauth_token: "oauth_token_example", # String | bank additional login parameter
935
- oauth_token_secret: "oauth_token_secret_example", # String | bank additional login parameter
936
- auth_type: "auth_type_example", # String | bank additional login parameter
937
- secret: "secret_example", # String | bank additional login parameter
938
- type: "type_example", # String | bank additional login parameter
939
- birthdate: "birthdate_example", # String | bank additional login parameter
940
- nuser: "nuser_example", # String | bank additional login parameter
941
- website: "website_example", # String | bank additional login parameter
942
- password2: "password_example", # String | bank additional login parameter
943
- login: "login_example", # String | bank additional login parameter
992
+ id_connector: 56, # Integer | ID of the connector
993
+ birthday: 'birthday_example', # String | bank additional login parameter
994
+ password: 'password_example', # String | bank additional login parameter
995
+ oauth_token: 'oauth_token_example', # String | bank additional login parameter
996
+ oauth_token_secret: 'oauth_token_secret_example', # String | bank additional login parameter
997
+ auth_type: 'auth_type_example', # String | bank additional login parameter
998
+ secret: 'secret_example', # String | bank additional login parameter
999
+ type: 'type_example', # String | bank additional login parameter
1000
+ birthdate: 'birthdate_example', # String | bank additional login parameter
1001
+ nuser: 'nuser_example', # String | bank additional login parameter
1002
+ website: 'website_example', # String | bank additional login parameter
1003
+ login: 'login_example', # String | bank additional login parameter
944
1004
  id_provider: 56, # Integer | ID of the provider
945
- expand: "expand_example" # String |
1005
+ expand: 'expand_example' # String |
946
1006
  }
947
1007
 
948
1008
  begin
@@ -959,7 +1019,7 @@ end
959
1019
  Name | Type | Description | Notes
960
1020
  ------------- | ------------- | ------------- | -------------
961
1021
  **id_user** | **String**| Hint: you can use &#39;me&#39; or &#39;all&#39; |
962
- **id_bank** | **Integer**| ID of the bank | [optional]
1022
+ **id_connector** | **Integer**| ID of the connector | [optional]
963
1023
  **birthday** | **String**| bank additional login parameter | [optional]
964
1024
  **password** | **String**| bank additional login parameter | [optional]
965
1025
  **oauth_token** | **String**| bank additional login parameter | [optional]
@@ -970,7 +1030,6 @@ Name | Type | Description | Notes
970
1030
  **birthdate** | **String**| bank additional login parameter | [optional]
971
1031
  **nuser** | **String**| bank additional login parameter | [optional]
972
1032
  **website** | **String**| bank additional login parameter | [optional]
973
- **password2** | **String**| bank additional login parameter | [optional]
974
1033
  **login** | **String**| bank additional login parameter | [optional]
975
1034
  **id_provider** | **Integer**| ID of the provider | [optional]
976
1035
  **expand** | **String**| | [optional]
@@ -985,13 +1044,13 @@ Name | Type | Description | Notes
985
1044
 
986
1045
  ### HTTP request headers
987
1046
 
988
- - **Content-Type**: multipart/form-data
1047
+ - **Content-Type**: application/x-www-form-urlencoded
989
1048
  - **Accept**: application/json
990
1049
 
991
1050
 
992
1051
 
993
1052
  # **users_id_user_logs_get**
994
- > InlineResponse20015 users_id_user_logs_get(id_user, opts)
1053
+ > InlineResponse20016 users_id_user_logs_get(id_user, opts)
995
1054
 
996
1055
  Get connection logs
997
1056
 
@@ -1011,20 +1070,20 @@ end
1011
1070
 
1012
1071
  api_instance = BudgeaClient::ConnectionsApi.new
1013
1072
 
1014
- id_user = "id_user_example" # String | Hint: you can use 'me' or 'all'
1073
+ id_user = 'id_user_example' # String | Hint: you can use 'me' or 'all'
1015
1074
 
1016
1075
  opts = {
1017
1076
  limit: 56, # Integer | limit number of results
1018
1077
  offset: 56, # Integer | offset of first result
1019
- min_date: Date.parse("2013-10-20"), # Date | minimal date
1020
- max_date: Date.parse("2013-10-20"), # Date | maximum date
1078
+ min_date: Date.parse('2013-10-20'), # Date | minimal date
1079
+ max_date: Date.parse('2013-10-20'), # Date | maximum date
1021
1080
  state: 56, # Integer | state of user
1022
- period: "period_example", # String | period to group logs
1081
+ period: 'period_example', # String | period to group logs
1023
1082
  id_user2: 56, # Integer | ID of a user
1024
1083
  id_connection: 56, # Integer | ID of a connection
1025
- id_bank: 56, # Integer | ID of a bank
1026
- charged: true, # BOOLEAN | consider only logs for charged banks
1027
- expand: "expand_example" # String |
1084
+ id_connector: 56, # Integer | ID of a connector
1085
+ charged: true, # BOOLEAN | consider only logs for charged connectors
1086
+ expand: 'expand_example' # String |
1028
1087
  }
1029
1088
 
1030
1089
  begin
@@ -1049,13 +1108,13 @@ Name | Type | Description | Notes
1049
1108
  **period** | **String**| period to group logs | [optional]
1050
1109
  **id_user2** | **Integer**| ID of a user | [optional]
1051
1110
  **id_connection** | **Integer**| ID of a connection | [optional]
1052
- **id_bank** | **Integer**| ID of a bank | [optional]
1053
- **charged** | **BOOLEAN**| consider only logs for charged banks | [optional]
1111
+ **id_connector** | **Integer**| ID of a connector | [optional]
1112
+ **charged** | **BOOLEAN**| consider only logs for charged connectors | [optional]
1054
1113
  **expand** | **String**| | [optional]
1055
1114
 
1056
1115
  ### Return type
1057
1116
 
1058
- [**InlineResponse20015**](InlineResponse20015.md)
1117
+ [**InlineResponse20016**](InlineResponse20016.md)
1059
1118
 
1060
1119
  ### Authorization
1061
1120