budgea_client 5.0.4 → 5.1.1

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +19 -6
  4. data/budgea_openapi.json +1605 -1319
  5. data/config.json +1 -1
  6. data/docs/Account.md +1 -0
  7. data/docs/AdministrationApi.md +12 -12
  8. data/docs/BanksApi.md +263 -18
  9. data/docs/ConnectionsApi.md +251 -6
  10. data/docs/DocumentsApi.md +2 -2
  11. data/docs/InlineResponse20016.md +1 -1
  12. data/docs/InlineResponse20017.md +1 -1
  13. data/docs/InlineResponse20018.md +1 -1
  14. data/docs/InlineResponse20019.md +1 -1
  15. data/docs/InlineResponse20020.md +1 -1
  16. data/docs/InlineResponse20021.md +1 -1
  17. data/docs/InlineResponse20022.md +1 -1
  18. data/docs/InlineResponse20023.md +1 -1
  19. data/docs/InlineResponse20024.md +1 -1
  20. data/docs/InlineResponse20025.md +1 -1
  21. data/docs/InlineResponse20026.md +1 -1
  22. data/docs/InlineResponse20027.md +1 -1
  23. data/docs/InlineResponse20028.md +1 -1
  24. data/docs/InlineResponse20029.md +1 -1
  25. data/docs/InlineResponse20030.md +1 -1
  26. data/docs/PFMApi.md +9 -9
  27. data/docs/ProvidersApi.md +253 -8
  28. data/docs/TermsApi.md +72 -7
  29. data/docs/TransfersApi.md +24 -24
  30. data/docs/UsersManagementApi.md +2 -2
  31. data/docs/WealthApi.md +53 -37
  32. data/lib/budgea_client/api/administration_api.rb +13 -13
  33. data/lib/budgea_client/api/banks_api.rb +273 -27
  34. data/lib/budgea_client/api/connections_api.rb +255 -9
  35. data/lib/budgea_client/api/documents_api.rb +3 -3
  36. data/lib/budgea_client/api/pfm_api.rb +11 -11
  37. data/lib/budgea_client/api/providers_api.rb +258 -12
  38. data/lib/budgea_client/api/terms_api.rb +75 -9
  39. data/lib/budgea_client/api/transfers_api.rb +36 -36
  40. data/lib/budgea_client/api/users_management_api.rb +3 -3
  41. data/lib/budgea_client/api/wealth_api.rb +77 -53
  42. data/lib/budgea_client/models/account.rb +12 -1
  43. data/lib/budgea_client/models/inline_response_200_16.rb +11 -11
  44. data/lib/budgea_client/models/inline_response_200_17.rb +18 -18
  45. data/lib/budgea_client/models/inline_response_200_18.rb +18 -18
  46. data/lib/budgea_client/models/inline_response_200_19.rb +18 -18
  47. data/lib/budgea_client/models/inline_response_200_20.rb +18 -18
  48. data/lib/budgea_client/models/inline_response_200_21.rb +18 -18
  49. data/lib/budgea_client/models/inline_response_200_22.rb +11 -11
  50. data/lib/budgea_client/models/inline_response_200_23.rb +11 -11
  51. data/lib/budgea_client/models/inline_response_200_24.rb +18 -18
  52. data/lib/budgea_client/models/inline_response_200_25.rb +18 -18
  53. data/lib/budgea_client/models/inline_response_200_26.rb +11 -11
  54. data/lib/budgea_client/models/inline_response_200_27.rb +11 -11
  55. data/lib/budgea_client/models/inline_response_200_28.rb +11 -11
  56. data/lib/budgea_client/models/inline_response_200_29.rb +18 -18
  57. data/lib/budgea_client/models/inline_response_200_30.rb +11 -11
  58. data/lib/budgea_client/version.rb +1 -1
  59. data/original_budgea_openapi.json +1559 -1474
  60. metadata +2 -9
  61. data/config.yaml +0 -15
  62. data/pkg/budgea_client-2.0.1.gem +0 -0
  63. data/pkg/budgea_client-2.0.2.gem +0 -0
  64. data/pkg/budgea_client-3.0.0.gem +0 -0
  65. data/pkg/budgea_client-4.0.1.gem +0 -0
  66. data/pkg/budgea_client-4.0.2.gem +0 -0
  67. data/pkg/budgea_client-4.0.3.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6e6113e116feffbaf40a67ac60f4ac86db4da8f0061b7600b833b2eddaeed9a
4
- data.tar.gz: 3fd23f678b1145553c2b4cab82a4411f9dc233b19ef42ccc3ca24f87dc2a3634
3
+ metadata.gz: 1e71b2c1d720e8ba1ee1c98eb18680819d764185c06295c896d68e75fa2347c1
4
+ data.tar.gz: 05c54a315b8dbd0340fa4da5d84c1eb37579737e0ad0a78b3f03b4611bbe2396
5
5
  SHA512:
6
- metadata.gz: a3d392db9d9d248d9f5dcc1ff02a7a1262661e2d0c865e9de7e11621f8bd63b262f24ee6f59b34890a3bb08cd4335ebab594485a37349022cd54e834b2a5dd0a
7
- data.tar.gz: 1967406f4ee5bef08f670cecd4723049424ff6d935caf45b5a171f950cf1edea44ffaeadd40138fddda81b2730618438166d04dc1c1e349139f81bf098fea45a
6
+ metadata.gz: ea848b1135c9a54caa4e7e118ac387dc989956686bfb2c30cfcf01f5ae48698c1d0af61358705c2d08953558c2c727507eea832729903ec2538ef3620350634b
7
+ data.tar.gz: 886e68342ffe2044e4016654d7e700b127aac12ad30d8f2bb0a9216e2a619bba641492d0e054875162c6505d47d7238a071c73072a9da108a69c407e4b465079
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- budgea_client (5.0.4)
4
+ budgea_client (5.1.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0
10
- - Package version: 5.0.4
10
+ - Package version: 5.1.1
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build budgea_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./budgea_client-5.0.4.gem
26
+ gem install ./budgea_client-5.1.1.gem
27
27
  ```
28
- (for development, run `gem install --dev ./budgea_client-5.0.4.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./budgea_client-5.1.1.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'budgea_client', '~> 5.0.4'
34
+ gem 'budgea_client', '~> 5.1.1'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -149,6 +149,10 @@ Class | Method | HTTP request | Description
149
149
  *BudgeaClient::BanksApi* | [**categorize_post**](docs/BanksApi.md#categorize_post) | **POST** /categorize | categorize transactions without storing them
150
150
  *BudgeaClient::BanksApi* | [**connections_get**](docs/BanksApi.md#connections_get) | **GET** /connections | Get connections without a user
151
151
  *BudgeaClient::BanksApi* | [**connections_id_connection_logs_get**](docs/BanksApi.md#connections_id_connection_logs_get) | **GET** /connections/{id_connection}/logs | Get connection logs
152
+ *BudgeaClient::BanksApi* | [**connections_id_connection_sources_get**](docs/BanksApi.md#connections_id_connection_sources_get) | **GET** /connections/{id_connection}/sources | Get connection sources
153
+ *BudgeaClient::BanksApi* | [**connections_id_connection_sources_id_source_delete**](docs/BanksApi.md#connections_id_connection_sources_id_source_delete) | **DELETE** /connections/{id_connection}/sources/{id_source} | Disable a connection source
154
+ *BudgeaClient::BanksApi* | [**connections_id_connection_sources_id_source_post**](docs/BanksApi.md#connections_id_connection_sources_id_source_post) | **POST** /connections/{id_connection}/sources/{id_source} | Enable connection source
155
+ *BudgeaClient::BanksApi* | [**connections_id_connection_sources_id_source_put**](docs/BanksApi.md#connections_id_connection_sources_id_source_put) | **PUT** /connections/{id_connection}/sources/{id_source} | Enable connection source
152
156
  *BudgeaClient::BanksApi* | [**connectors_get**](docs/BanksApi.md#connectors_get) | **GET** /connectors | Get list of connectors
153
157
  *BudgeaClient::BanksApi* | [**connectors_id_connector_logos_get**](docs/BanksApi.md#connectors_id_connector_logos_get) | **GET** /connectors/{id_connector}/logos | Get all links to the files associated with this connector.
154
158
  *BudgeaClient::BanksApi* | [**connectors_id_connector_logos_id_logo_delete**](docs/BanksApi.md#connectors_id_connector_logos_id_logo_delete) | **DELETE** /connectors/{id_connector}/logos/{id_logo} | Delete a single Logo object.
@@ -270,6 +274,10 @@ Class | Method | HTTP request | Description
270
274
  *BudgeaClient::ConnectionsApi* | [**banks_id_connector_sources_get**](docs/ConnectionsApi.md#banks_id_connector_sources_get) | **GET** /banks/{id_connector}/sources | Get list of connector sources
271
275
  *BudgeaClient::ConnectionsApi* | [**connections_get**](docs/ConnectionsApi.md#connections_get) | **GET** /connections | Get connections without a user
272
276
  *BudgeaClient::ConnectionsApi* | [**connections_id_connection_logs_get**](docs/ConnectionsApi.md#connections_id_connection_logs_get) | **GET** /connections/{id_connection}/logs | Get connection logs
277
+ *BudgeaClient::ConnectionsApi* | [**connections_id_connection_sources_get**](docs/ConnectionsApi.md#connections_id_connection_sources_get) | **GET** /connections/{id_connection}/sources | Get connection sources
278
+ *BudgeaClient::ConnectionsApi* | [**connections_id_connection_sources_id_source_delete**](docs/ConnectionsApi.md#connections_id_connection_sources_id_source_delete) | **DELETE** /connections/{id_connection}/sources/{id_source} | Disable a connection source
279
+ *BudgeaClient::ConnectionsApi* | [**connections_id_connection_sources_id_source_post**](docs/ConnectionsApi.md#connections_id_connection_sources_id_source_post) | **POST** /connections/{id_connection}/sources/{id_source} | Enable connection source
280
+ *BudgeaClient::ConnectionsApi* | [**connections_id_connection_sources_id_source_put**](docs/ConnectionsApi.md#connections_id_connection_sources_id_source_put) | **PUT** /connections/{id_connection}/sources/{id_source} | Enable connection source
273
281
  *BudgeaClient::ConnectionsApi* | [**connectors_get**](docs/ConnectionsApi.md#connectors_get) | **GET** /connectors | Get list of connectors
274
282
  *BudgeaClient::ConnectionsApi* | [**connectors_id_connector_sources_get**](docs/ConnectionsApi.md#connectors_id_connector_sources_get) | **GET** /connectors/{id_connector}/sources | Get list of connector sources
275
283
  *BudgeaClient::ConnectionsApi* | [**connectors_id_connector_sources_id_source_put**](docs/ConnectionsApi.md#connectors_id_connector_sources_id_source_put) | **PUT** /connectors/{id_connector}/sources/{id_source} | Edit the provided connector source
@@ -392,7 +400,7 @@ Class | Method | HTTP request | Description
392
400
  *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_accounts_id_account_balances_get**](docs/PFMApi.md#users_id_user_connections_id_connection_accounts_id_account_balances_get) | **GET** /users/{id_user}/connections/{id_connection}/accounts/{id_account}/balances | Get balances of accounts
393
401
  *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_accounts_id_account_operationsalert_get**](docs/PFMApi.md#users_id_user_connections_id_connection_accounts_id_account_operationsalert_get) | **GET** /users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert | Get a list of configurated alerts
394
402
  *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete**](docs/PFMApi.md#users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete) | **DELETE** /users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert/{id_operationsalert} | Delete an alert on transactions or investments
395
- *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put**](docs/PFMApi.md#users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put) | **PUT** /users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert/{id_operationsalert} | Edit an alert on transactions or investements
403
+ *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put**](docs/PFMApi.md#users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put) | **PUT** /users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert/{id_operationsalert} | Edit an alert on transactions or investments
396
404
  *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_accounts_id_account_operationsalert_post**](docs/PFMApi.md#users_id_user_connections_id_connection_accounts_id_account_operationsalert_post) | **POST** /users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert | Create an alert on transactions or investments of a given user
397
405
  *BudgeaClient::PFMApi* | [**users_id_user_connections_id_connection_balances_get**](docs/PFMApi.md#users_id_user_connections_id_connection_balances_get) | **GET** /users/{id_user}/connections/{id_connection}/balances | Get balances of accounts
398
406
  *BudgeaClient::PFMApi* | [**users_id_user_devices_get**](docs/PFMApi.md#users_id_user_devices_get) | **GET** /users/{id_user}/devices | Get devices
@@ -420,6 +428,10 @@ Class | Method | HTTP request | Description
420
428
  *BudgeaClient::ProvidersApi* | [**banks_id_connector_sources_get**](docs/ProvidersApi.md#banks_id_connector_sources_get) | **GET** /banks/{id_connector}/sources | Get list of connector sources
421
429
  *BudgeaClient::ProvidersApi* | [**connections_get**](docs/ProvidersApi.md#connections_get) | **GET** /connections | Get connections without a user
422
430
  *BudgeaClient::ProvidersApi* | [**connections_id_connection_logs_get**](docs/ProvidersApi.md#connections_id_connection_logs_get) | **GET** /connections/{id_connection}/logs | Get connection logs
431
+ *BudgeaClient::ProvidersApi* | [**connections_id_connection_sources_get**](docs/ProvidersApi.md#connections_id_connection_sources_get) | **GET** /connections/{id_connection}/sources | Get connection sources
432
+ *BudgeaClient::ProvidersApi* | [**connections_id_connection_sources_id_source_delete**](docs/ProvidersApi.md#connections_id_connection_sources_id_source_delete) | **DELETE** /connections/{id_connection}/sources/{id_source} | Disable a connection source
433
+ *BudgeaClient::ProvidersApi* | [**connections_id_connection_sources_id_source_post**](docs/ProvidersApi.md#connections_id_connection_sources_id_source_post) | **POST** /connections/{id_connection}/sources/{id_source} | Enable connection source
434
+ *BudgeaClient::ProvidersApi* | [**connections_id_connection_sources_id_source_put**](docs/ProvidersApi.md#connections_id_connection_sources_id_source_put) | **PUT** /connections/{id_connection}/sources/{id_source} | Enable connection source
423
435
  *BudgeaClient::ProvidersApi* | [**connectors_get**](docs/ProvidersApi.md#connectors_get) | **GET** /connectors | Get list of connectors
424
436
  *BudgeaClient::ProvidersApi* | [**connectors_id_connector_logos_get**](docs/ProvidersApi.md#connectors_id_connector_logos_get) | **GET** /connectors/{id_connector}/logos | Get all links to the files associated with this connector.
425
437
  *BudgeaClient::ProvidersApi* | [**connectors_id_connector_logos_id_logo_delete**](docs/ProvidersApi.md#connectors_id_connector_logos_id_logo_delete) | **DELETE** /connectors/{id_connector}/logos/{id_logo} | Delete a single Logo object.
@@ -540,6 +552,7 @@ Class | Method | HTTP request | Description
540
552
  *BudgeaClient::RecipientsApi* | [**users_id_user_connections_id_connection_recipients_post**](docs/RecipientsApi.md#users_id_user_connections_id_connection_recipients_post) | **POST** /users/{id_user}/connections/{id_connection}/recipients | Add a recipient.
541
553
  *BudgeaClient::RecipientsApi* | [**users_id_user_recipients_post**](docs/RecipientsApi.md#users_id_user_recipients_post) | **POST** /users/{id_user}/recipients | Add a recipient.
542
554
  *BudgeaClient::TermsApi* | [**terms_get**](docs/TermsApi.md#terms_get) | **GET** /terms | Return the current terms and the content of the associated file
555
+ *BudgeaClient::TermsApi* | [**terms_id_term_post**](docs/TermsApi.md#terms_id_term_post) | **POST** /terms/{id_term} | Add terms content for a language. Only for the active terms, there is no use to update obsolete terms
543
556
  *BudgeaClient::TermsApi* | [**terms_post**](docs/TermsApi.md#terms_post) | **POST** /terms | Register a version of 'Terms of Service' in database
544
557
  *BudgeaClient::TermsApi* | [**users_id_user_terms_get**](docs/TermsApi.md#users_id_user_terms_get) | **GET** /users/{id_user}/terms | Get active terms object for a specific user, only one terms can be active
545
558
  *BudgeaClient::TermsApi* | [**users_id_user_terms_post**](docs/TermsApi.md#users_id_user_terms_post) | **POST** /users/{id_user}/terms | Register user's consent for a specific terms id
@@ -596,7 +609,7 @@ Class | Method | HTTP request | Description
596
609
  *BudgeaClient::UsersManagementApi* | [**users_id_user_profiles_main_get**](docs/UsersManagementApi.md#users_id_user_profiles_main_get) | **GET** /users/{id_user}/profiles/main | Get the main profile
597
610
  *BudgeaClient::UsersManagementApi* | [**users_id_user_profiles_me_get**](docs/UsersManagementApi.md#users_id_user_profiles_me_get) | **GET** /users/{id_user}/profiles/me | Get my profile
598
611
  *BudgeaClient::UsersManagementApi* | [**users_id_user_token_post**](docs/UsersManagementApi.md#users_id_user_token_post) | **POST** /users/{id_user}/token | Create a token
599
- *BudgeaClient::WealthApi* | [**finance_securities_get**](docs/WealthApi.md#finance_securities_get) | **GET** /finance/securities | Get securities
612
+ *BudgeaClient::WealthApi* | [**finance_securities_get**](docs/WealthApi.md#finance_securities_get) | **GET** /finance/securities | Get finance securities
600
613
  *BudgeaClient::WealthApi* | [**finance_securities_id_security_history_get**](docs/WealthApi.md#finance_securities_id_security_history_get) | **GET** /finance/securities/{id_security}/history | Get connection logs
601
614
  *BudgeaClient::WealthApi* | [**users_id_user_accounts_id_account_investments_get**](docs/WealthApi.md#users_id_user_accounts_id_account_investments_get) | **GET** /users/{id_user}/accounts/{id_account}/investments | Get investments
602
615
  *BudgeaClient::WealthApi* | [**users_id_user_accounts_id_account_investments_id_investment_history_get**](docs/WealthApi.md#users_id_user_accounts_id_account_investments_id_investment_history_get) | **GET** /users/{id_user}/accounts/{id_account}/investments/{id_investment}/history | Get investment values
data/budgea_openapi.json CHANGED
@@ -1370,7 +1370,7 @@
1370
1370
  {
1371
1371
  "required": false,
1372
1372
  "in": "formData",
1373
- "type": "array",
1373
+ "type": "string",
1374
1374
  "name": "redirect_uris",
1375
1375
  "description": "list of allowed redirect uris"
1376
1376
  },
@@ -1467,7 +1467,7 @@
1467
1467
  {
1468
1468
  "required": false,
1469
1469
  "in": "formData",
1470
- "type": "array",
1470
+ "type": "string",
1471
1471
  "name": "redirect_uris",
1472
1472
  "description": "list of allowed redirect uris"
1473
1473
  },
@@ -1922,6 +1922,174 @@
1922
1922
  "summary": "Get connection logs"
1923
1923
  }
1924
1924
  },
1925
+ "/connections/{id_connection}/sources": {
1926
+ "get": {
1927
+ "responses": {
1928
+ "200": {
1929
+ "description": "sources",
1930
+ "schema": {
1931
+ "required": [
1932
+ "sources"
1933
+ ],
1934
+ "type": "object",
1935
+ "properties": {
1936
+ "sources": {
1937
+ "items": {
1938
+ "$ref": "#/definitions/ConnectionSource"
1939
+ },
1940
+ "type": "array"
1941
+ },
1942
+ "total": {
1943
+ "type": "number",
1944
+ "description": "total number of results"
1945
+ }
1946
+ }
1947
+ }
1948
+ }
1949
+ },
1950
+ "tags": [
1951
+ "Connections",
1952
+ "Banks",
1953
+ "Providers"
1954
+ ],
1955
+ "description": "",
1956
+ "parameters": [
1957
+ {
1958
+ "required": true,
1959
+ "in": "path",
1960
+ "type": "integer",
1961
+ "name": "id_connection",
1962
+ "description": ""
1963
+ },
1964
+ {
1965
+ "required": false,
1966
+ "type": "string",
1967
+ "name": "expand",
1968
+ "in": "query"
1969
+ }
1970
+ ],
1971
+ "summary": "Get connection sources"
1972
+ }
1973
+ },
1974
+ "/connections/{id_connection}/sources/{id_source}": {
1975
+ "post": {
1976
+ "responses": {
1977
+ "200": {
1978
+ "description": "Successful POST on ConnectionSource resource",
1979
+ "schema": {
1980
+ "$ref": "#/definitions/ConnectionSource"
1981
+ }
1982
+ }
1983
+ },
1984
+ "tags": [
1985
+ "Connections",
1986
+ "Banks",
1987
+ "Providers"
1988
+ ],
1989
+ "description": "This will make it so the specified source will be able to be synchronized.<br><br>",
1990
+ "parameters": [
1991
+ {
1992
+ "required": true,
1993
+ "in": "path",
1994
+ "type": "integer",
1995
+ "name": "id_connection",
1996
+ "description": ""
1997
+ },
1998
+ {
1999
+ "required": true,
2000
+ "in": "path",
2001
+ "type": "integer",
2002
+ "name": "id_source",
2003
+ "description": ""
2004
+ },
2005
+ {
2006
+ "required": false,
2007
+ "type": "string",
2008
+ "name": "expand",
2009
+ "in": "query"
2010
+ }
2011
+ ],
2012
+ "summary": "Enable connection source"
2013
+ },
2014
+ "put": {
2015
+ "responses": {
2016
+ "200": {
2017
+ "description": "Successful PUT on ConnectionSource resource",
2018
+ "schema": {
2019
+ "$ref": "#/definitions/ConnectionSource"
2020
+ }
2021
+ }
2022
+ },
2023
+ "tags": [
2024
+ "Connections",
2025
+ "Banks",
2026
+ "Providers"
2027
+ ],
2028
+ "description": "This will make it so the specified source will be able to be synchronized.<br><br>",
2029
+ "parameters": [
2030
+ {
2031
+ "required": true,
2032
+ "in": "path",
2033
+ "type": "integer",
2034
+ "name": "id_connection",
2035
+ "description": ""
2036
+ },
2037
+ {
2038
+ "required": true,
2039
+ "in": "path",
2040
+ "type": "integer",
2041
+ "name": "id_source",
2042
+ "description": ""
2043
+ },
2044
+ {
2045
+ "required": false,
2046
+ "type": "string",
2047
+ "name": "expand",
2048
+ "in": "query"
2049
+ }
2050
+ ],
2051
+ "summary": "Enable connection source"
2052
+ },
2053
+ "delete": {
2054
+ "responses": {
2055
+ "200": {
2056
+ "description": "Successful DELETE on ConnectionSource resource",
2057
+ "schema": {
2058
+ "$ref": "#/definitions/ConnectionSource"
2059
+ }
2060
+ }
2061
+ },
2062
+ "tags": [
2063
+ "Connections",
2064
+ "Banks",
2065
+ "Providers"
2066
+ ],
2067
+ "description": "This will make it so the specified source will not be synchronized anymore.<br><br>",
2068
+ "parameters": [
2069
+ {
2070
+ "required": true,
2071
+ "in": "path",
2072
+ "type": "integer",
2073
+ "name": "id_connection",
2074
+ "description": ""
2075
+ },
2076
+ {
2077
+ "required": true,
2078
+ "in": "path",
2079
+ "type": "integer",
2080
+ "name": "id_source",
2081
+ "description": ""
2082
+ },
2083
+ {
2084
+ "required": false,
2085
+ "type": "string",
2086
+ "name": "expand",
2087
+ "in": "query"
2088
+ }
2089
+ ],
2090
+ "summary": "Disable a connection source"
2091
+ }
2092
+ },
1925
2093
  "/connectors": {
1926
2094
  "get": {
1927
2095
  "responses": {
@@ -2675,7 +2843,7 @@
2675
2843
  "in": "query"
2676
2844
  }
2677
2845
  ],
2678
- "summary": "Get securities"
2846
+ "summary": "Get finance securities"
2679
2847
  }
2680
2848
  },
2681
2849
  "/finance/securities/{id_security}/history": {
@@ -3041,7 +3209,7 @@
3041
3209
  {
3042
3210
  "required": true,
3043
3211
  "in": "formData",
3044
- "type": "array",
3212
+ "type": "string",
3045
3213
  "name": "redirect_uris",
3046
3214
  "description": "list of allowed redirect uris"
3047
3215
  },
@@ -3628,10 +3796,6 @@
3628
3796
  }
3629
3797
  }
3630
3798
  },
3631
- "tags": [
3632
- "Terms"
3633
- ],
3634
- "description": "",
3635
3799
  "parameters": [
3636
3800
  {
3637
3801
  "required": false,
@@ -3643,10 +3807,66 @@
3643
3807
  {
3644
3808
  "required": false,
3645
3809
  "in": "formData",
3646
- "type": "string",
3810
+ "type": "file",
3647
3811
  "name": "file_content",
3648
3812
  "description": "file containing the terms, optional"
3649
3813
  },
3814
+ {
3815
+ "required": false,
3816
+ "in": "formData",
3817
+ "type": "string",
3818
+ "name": "language",
3819
+ "description": "two letters code of the language of the inserted terms if provided. default: 'fr'"
3820
+ },
3821
+ {
3822
+ "required": false,
3823
+ "type": "string",
3824
+ "name": "expand",
3825
+ "in": "query"
3826
+ }
3827
+ ],
3828
+ "tags": [
3829
+ "Terms"
3830
+ ],
3831
+ "summary": "Register a version of 'Terms of Service' in database",
3832
+ "consumes": [
3833
+ "multipart/form-data"
3834
+ ],
3835
+ "description": ""
3836
+ }
3837
+ },
3838
+ "/terms/{id_term}": {
3839
+ "post": {
3840
+ "responses": {
3841
+ "200": {
3842
+ "description": "Successful POST on TermsOfService resource",
3843
+ "schema": {
3844
+ "$ref": "#/definitions/TermsOfService"
3845
+ }
3846
+ }
3847
+ },
3848
+ "parameters": [
3849
+ {
3850
+ "required": true,
3851
+ "in": "path",
3852
+ "type": "integer",
3853
+ "name": "id_term",
3854
+ "description": ""
3855
+ },
3856
+ {
3857
+ "required": false,
3858
+ "in": "formData",
3859
+ "type": "string",
3860
+ "name": "language",
3861
+ "description": "two letter code of the language to inserted"
3862
+ },
3863
+ {
3864
+ "required": false,
3865
+ "in": "formData",
3866
+ "type": "file",
3867
+ "name": "file_content",
3868
+ "description": "file containing the terms"
3869
+ },
3650
3870
  {
3651
3871
  "required": false,
3652
3872
  "type": "string",
@@ -3654,7 +3874,14 @@
3654
3874
  "in": "query"
3655
3875
  }
3656
3876
  ],
3657
- "summary": "Register a version of 'Terms of Service' in database"
3877
+ "tags": [
3878
+ "Terms"
3879
+ ],
3880
+ "summary": "Add terms content for a language. Only for the active terms, there is no use to update obsolete terms",
3881
+ "consumes": [
3882
+ "multipart/form-data"
3883
+ ],
3884
+ "description": ""
3658
3885
  }
3659
3886
  },
3660
3887
  "/test/sync": {
@@ -4371,6 +4598,20 @@
4371
4598
  "name": "id_account",
4372
4599
  "description": ""
4373
4600
  },
4601
+ {
4602
+ "required": false,
4603
+ "in": "query",
4604
+ "type": "string",
4605
+ "name": "label",
4606
+ "description": "filter investments using keywords in labels"
4607
+ },
4608
+ {
4609
+ "required": false,
4610
+ "in": "query",
4611
+ "type": "string",
4612
+ "name": "code",
4613
+ "description": "filter investments by ISIN codes"
4614
+ },
4374
4615
  {
4375
4616
  "required": false,
4376
4617
  "type": "string",
@@ -9178,6 +9419,20 @@
9178
9419
  "name": "id_account",
9179
9420
  "description": ""
9180
9421
  },
9422
+ {
9423
+ "required": false,
9424
+ "in": "query",
9425
+ "type": "string",
9426
+ "name": "label",
9427
+ "description": "filter investments using keywords in labels"
9428
+ },
9429
+ {
9430
+ "required": false,
9431
+ "in": "query",
9432
+ "type": "string",
9433
+ "name": "code",
9434
+ "description": "filter investments by ISIN codes"
9435
+ },
9181
9436
  {
9182
9437
  "required": false,
9183
9438
  "type": "string",
@@ -9742,7 +9997,7 @@
9742
9997
  "in": "query"
9743
9998
  }
9744
9999
  ],
9745
- "summary": "Edit an alert on transactions or investements",
10000
+ "summary": "Edit an alert on transactions or investments",
9746
10001
  "consumes": [
9747
10002
  "application/x-www-form-urlencoded"
9748
10003
  ]
@@ -13426,10 +13681,24 @@
13426
13681
  },
13427
13682
  {
13428
13683
  "required": false,
13684
+ "in": "query",
13429
13685
  "type": "string",
13430
- "name": "expand",
13431
- "in": "query"
13432
- }
13686
+ "name": "label",
13687
+ "description": "filter investments using keywords in labels"
13688
+ },
13689
+ {
13690
+ "required": false,
13691
+ "in": "query",
13692
+ "type": "string",
13693
+ "name": "code",
13694
+ "description": "filter investments by ISIN codes"
13695
+ },
13696
+ {
13697
+ "required": false,
13698
+ "type": "string",
13699
+ "name": "expand",
13700
+ "in": "query"
13701
+ }
13433
13702
  ],
13434
13703
  "summary": "Get investments"
13435
13704
  }
@@ -18138,6 +18407,20 @@
18138
18407
  "name": "id_user",
18139
18408
  "description": "Hint: you can use 'me' or 'all'"
18140
18409
  },
18410
+ {
18411
+ "required": false,
18412
+ "in": "query",
18413
+ "type": "string",
18414
+ "name": "label",
18415
+ "description": "filter investments using keywords in labels"
18416
+ },
18417
+ {
18418
+ "required": false,
18419
+ "in": "query",
18420
+ "type": "string",
18421
+ "name": "code",
18422
+ "description": "filter investments by ISIN codes"
18423
+ },
18141
18424
  {
18142
18425
  "required": false,
18143
18426
  "type": "string",
@@ -22447,11 +22730,10 @@
22447
22730
  "description": "The webhook authentication process to use (its ID or its name)"
22448
22731
  },
22449
22732
  {
22450
- "name": "url",
22451
- "format": "float",
22452
22733
  "required": false,
22453
22734
  "in": "formData",
22454
- "type": "number",
22735
+ "type": "string",
22736
+ "name": "url",
22455
22737
  "description": "The webhook callback url"
22456
22738
  },
22457
22739
  {
@@ -22793,11 +23075,10 @@
22793
23075
  "description": "The webhook authentication process to use"
22794
23076
  },
22795
23077
  {
22796
- "name": "url",
22797
- "format": "float",
22798
23078
  "required": false,
22799
23079
  "in": "formData",
22800
- "type": "number",
23080
+ "type": "string",
23081
+ "name": "url",
22801
23082
  "description": "The webhook callback url"
22802
23083
  },
22803
23084
  {
@@ -22866,11 +23147,10 @@
22866
23147
  "description": "The webhook authentication process to use"
22867
23148
  },
22868
23149
  {
22869
- "name": "url",
22870
- "format": "float",
22871
23150
  "required": false,
22872
23151
  "in": "formData",
22873
- "type": "number",
23152
+ "type": "string",
23153
+ "name": "url",
22874
23154
  "description": "The webhook callback url"
22875
23155
  },
22876
23156
  {
@@ -23338,6 +23618,37 @@
23338
23618
  "restricted": false
23339
23619
  }
23340
23620
  },
23621
+ "ConnectorLogo": {
23622
+ "required": [
23623
+ "id",
23624
+ "id_connector",
23625
+ "id_file"
23626
+ ],
23627
+ "type": "object",
23628
+ "properties": {
23629
+ "id": {
23630
+ "type": "integer"
23631
+ },
23632
+ "id_connector": {
23633
+ "type": "integer",
23634
+ "description": "ID of the connector"
23635
+ },
23636
+ "id_file": {
23637
+ "type": "integer",
23638
+ "description": "Id of the Bank/Provider Logo"
23639
+ },
23640
+ "type": {
23641
+ "type": "string",
23642
+ "description": "Logo's type"
23643
+ }
23644
+ },
23645
+ "example": {
23646
+ "id": 0,
23647
+ "id_connector": 0,
23648
+ "id_file": 0,
23649
+ "type": ""
23650
+ }
23651
+ },
23341
23652
  "ConnectorSource": {
23342
23653
  "required": [
23343
23654
  "id",
@@ -23478,37 +23789,6 @@
23478
23789
  }
23479
23790
  }
23480
23791
  },
23481
- "ConnectorLogo": {
23482
- "required": [
23483
- "id",
23484
- "id_connector",
23485
- "id_file"
23486
- ],
23487
- "type": "object",
23488
- "properties": {
23489
- "id": {
23490
- "type": "integer"
23491
- },
23492
- "id_connector": {
23493
- "type": "integer",
23494
- "description": "ID of the connector"
23495
- },
23496
- "id_file": {
23497
- "type": "integer",
23498
- "description": "Id of the Bank/Provider Logo"
23499
- },
23500
- "type": {
23501
- "type": "string",
23502
- "description": "Logo's type"
23503
- }
23504
- },
23505
- "example": {
23506
- "id": 0,
23507
- "id_connector": 0,
23508
- "id_file": 0,
23509
- "type": ""
23510
- }
23511
- },
23512
23792
  "User": {
23513
23793
  "required": [
23514
23794
  "id",
@@ -23606,223 +23886,271 @@
23606
23886
  "type": ""
23607
23887
  }
23608
23888
  },
23609
- "TermsOfService": {
23889
+ "Connection": {
23610
23890
  "required": [
23611
23891
  "id",
23612
- "version",
23613
- "created"
23892
+ "id_connector",
23893
+ "active"
23614
23894
  ],
23615
23895
  "type": "object",
23616
23896
  "properties": {
23617
23897
  "id": {
23618
- "type": "integer"
23898
+ "type": "integer",
23899
+ "description": "ID of connection"
23619
23900
  },
23620
- "version": {
23621
- "type": "string"
23901
+ "id_user": {
23902
+ "type": "integer",
23903
+ "description": "ID of the related user"
23622
23904
  },
23623
- "id_file": {
23624
- "type": "integer"
23905
+ "id_connector": {
23906
+ "type": "integer",
23907
+ "description": "ID of the related connector"
23908
+ },
23909
+ "last_update": {
23910
+ "type": "string",
23911
+ "description": "Last successful update",
23912
+ "format": "date-time"
23625
23913
  },
23626
23914
  "created": {
23915
+ "default": "<function <lambda> at 0x7f8894ce1aa0>",
23627
23916
  "type": "string",
23917
+ "description": "Creation date",
23628
23918
  "format": "date-time"
23629
23919
  },
23630
- "deleted": {
23920
+ "error": {
23921
+ "type": "string",
23922
+ "description": "If the last update has failed, the error code"
23923
+ },
23924
+ "error_message": {
23925
+ "type": "string",
23926
+ "description": "If fail, error message received from connector"
23927
+ },
23928
+ "expire": {
23929
+ "type": "string",
23930
+ "description": "Expiration of the connection. Used during add of a two-factor authentication, to purge the connection if the user abort",
23931
+ "format": "date-time"
23932
+ },
23933
+ "active": {
23934
+ "default": true,
23935
+ "type": "boolean",
23936
+ "description": "This connection is active and will be automatically synced"
23937
+ },
23938
+ "last_push": {
23939
+ "type": "string",
23940
+ "description": "Last successful push",
23941
+ "format": "date-time"
23942
+ },
23943
+ "next_try": {
23631
23944
  "type": "string",
23945
+ "description": "Date of next synchronization",
23632
23946
  "format": "date-time"
23947
+ },
23948
+ "accounts": {
23949
+ "type": "array",
23950
+ "items": {
23951
+ "$ref": "#/definitions/Account"
23952
+ }
23953
+ },
23954
+ "subscriptions": {
23955
+ "type": "array",
23956
+ "items": {
23957
+ "$ref": "#/definitions/Subscription"
23958
+ }
23959
+ },
23960
+ "connection": {
23961
+ "$ref": "#/definitions/Connection"
23962
+ },
23963
+ "message": {
23964
+ "type": "string"
23633
23965
  }
23634
23966
  },
23635
23967
  "example": {
23636
23968
  "id": 0,
23637
- "version": "",
23638
- "id_file": 0,
23639
- "created": "2019-03-12 13:08:00.680453",
23640
- "deleted": "2019-03-12 13:08:00.680558"
23969
+ "id_user": 0,
23970
+ "id_connector": 0,
23971
+ "last_update": "2019-08-02 17:21:59.365076",
23972
+ "created": "<function <lambda> at 0x7f8894ce1aa0>",
23973
+ "error": "",
23974
+ "expire": "2019-08-02 17:21:59.365257",
23975
+ "active": true,
23976
+ "last_push": "2019-08-02 17:21:59.365378",
23977
+ "next_try": "2019-08-02 17:21:59.365554"
23641
23978
  }
23642
23979
  },
23643
- "Category": {
23980
+ "ConnectionSource": {
23644
23981
  "required": [
23645
23982
  "id",
23646
- "id_parent_category",
23983
+ "id_connection",
23984
+ "id_connector_source",
23647
23985
  "name",
23648
- "color",
23649
- "id_parent_category_in_menu",
23650
- "refundable"
23986
+ "created"
23651
23987
  ],
23652
23988
  "type": "object",
23653
23989
  "properties": {
23654
23990
  "id": {
23655
23991
  "type": "integer",
23656
- "description": "ID of the category"
23992
+ "description": "ID of connection"
23657
23993
  },
23658
- "id_parent_category": {
23994
+ "id_connection": {
23659
23995
  "type": "integer",
23660
- "description": "ID of the parent category. If this is a parent category, it will be equal to its own ID"
23996
+ "description": "ID of the related connection"
23997
+ },
23998
+ "id_connector_source": {
23999
+ "type": "integer",
24000
+ "description": "ID of the related connector source"
23661
24001
  },
23662
24002
  "name": {
23663
24003
  "type": "string",
23664
- "description": "Name of the category"
24004
+ "description": "Name of the connection source"
23665
24005
  },
23666
- "income": {
23667
- "type": "boolean",
23668
- "description": "Is an income category. If null, this is both an income and an expense category"
24006
+ "last_update": {
24007
+ "type": "string",
24008
+ "description": "Last successful update",
24009
+ "format": "date-time"
23669
24010
  },
23670
- "color": {
24011
+ "disabled": {
23671
24012
  "type": "string",
23672
- "description": "Color of the category"
24013
+ "description": "This source is not used to synchronize the connection",
24014
+ "format": "date-time"
23673
24015
  },
23674
- "id_parent_category_in_menu": {
23675
- "type": "integer",
23676
- "description": "ID of the parent category to be displayed"
24016
+ "created": {
24017
+ "default": "<function <lambda> at 0x7f8894cfe7d0>",
24018
+ "type": "string",
24019
+ "description": "Creation date of the connection source",
24020
+ "format": "date-time"
23677
24021
  },
23678
- "name_displayed": {
24022
+ "state": {
23679
24023
  "type": "string",
23680
- "description": "Displayed name, with HTML tags"
24024
+ "description": "If the last update has failed, the state code"
23681
24025
  },
23682
- "refundable": {
23683
- "type": "boolean",
23684
- "description": "This category accepts opposite sign of transactions"
24026
+ "access_expire": {
24027
+ "type": "string",
24028
+ "description": "Expiration date of the access",
24029
+ "format": "date-time"
23685
24030
  },
23686
- "id_user": {
23687
- "type": "integer",
23688
- "description": "If not null, this category is specific to a user"
24031
+ "expire": {
24032
+ "type": "string",
24033
+ "description": "Expiration of the connection source. Used to purge the connection in case completion was not finished",
24034
+ "format": "date-time"
23689
24035
  },
23690
- "id_logo": {
23691
- "type": "integer",
23692
- "description": "ID of the logo"
24036
+ "next_try": {
24037
+ "type": "string",
24038
+ "description": "Date of next synchronization",
24039
+ "format": "date-time"
23693
24040
  }
23694
24041
  },
23695
24042
  "example": {
23696
24043
  "id": 0,
23697
- "id_parent_category": 0,
24044
+ "id_connection": 0,
24045
+ "id_connector_source": 0,
23698
24046
  "name": "",
23699
- "income": false,
23700
- "color": "",
23701
- "id_parent_category_in_menu": 0,
23702
- "name_displayed": "",
23703
- "refundable": false,
23704
- "id_user": 0,
23705
- "id_logo": 0
24047
+ "last_update": "2019-12-27 16:17:55.317583",
24048
+ "disabled": "2019-12-27 16:17:55.317658",
24049
+ "created": "<function <lambda> at 0x7f8894cfe7d0>",
24050
+ "state": "",
24051
+ "access_expire": "2019-12-27 16:17:55.317849",
24052
+ "expire": "2019-12-27 16:17:55.317911",
24053
+ "next_try": "2019-12-27 16:17:55.318118"
23706
24054
  }
23707
24055
  },
23708
- "Client": {
24056
+ "ConnectionLog": {
23709
24057
  "required": [
23710
24058
  "id",
23711
- "name",
23712
- "secret",
23713
- "redirect_uris",
23714
- "pro"
24059
+ "id_connection",
24060
+ "timestamp"
23715
24061
  ],
23716
24062
  "type": "object",
23717
24063
  "properties": {
23718
24064
  "id": {
23719
- "type": "integer"
24065
+ "type": "integer",
24066
+ "description": "ID of the log"
23720
24067
  },
23721
- "name": {
23722
- "default": "",
23723
- "type": "string"
24068
+ "id_user": {
24069
+ "type": "integer",
24070
+ "description": "ID of the user"
23724
24071
  },
23725
- "secret": {
23726
- "type": "string"
24072
+ "id_connection": {
24073
+ "type": "integer",
24074
+ "description": "ID of the connection"
23727
24075
  },
23728
- "public_key": {
23729
- "type": "string"
24076
+ "id_connector": {
24077
+ "type": "integer",
24078
+ "description": "ID of the connector"
23730
24079
  },
23731
- "private_key": {
23732
- "type": "string"
24080
+ "id_source": {
24081
+ "type": "integer",
24082
+ "description": "ID of the related connection source"
23733
24083
  },
23734
- "redirect_uris": {
23735
- "default": "",
23736
- "type": "string"
24084
+ "login": {
24085
+ "type": "string",
24086
+ "description": "bcrypt hash of the login"
23737
24087
  },
23738
- "pro": {
23739
- "default": false,
23740
- "type": "boolean",
23741
- "description": "Should the client display the company manager page."
24088
+ "error_uid": {
24089
+ "type": "string",
24090
+ "description": "MD5 hash of the exception backtrace"
23742
24091
  },
23743
- "id_logo": {
23744
- "type": "integer"
24092
+ "timestamp": {
24093
+ "default": "CURRENT_TIMESTAMP",
24094
+ "type": "string",
24095
+ "description": "Timestamp of log, when the synchronization has finished",
24096
+ "format": "date-time"
23745
24097
  },
23746
- "config": {
24098
+ "next_try": {
23747
24099
  "type": "string",
23748
- "description": "customizable config"
23749
- }
23750
- },
23751
- "example": {
23752
- "id": 0,
23753
- "name": "",
23754
- "secret": "",
23755
- "public_key": "",
23756
- "private_key": "",
23757
- "redirect_uris": "",
23758
- "pro": false,
23759
- "id_logo": 0
23760
- }
23761
- },
23762
- "File": {
23763
- "required": [
23764
- "id",
23765
- "content_type",
23766
- "filename",
23767
- "file_size"
23768
- ],
23769
- "type": "object",
23770
- "properties": {
23771
- "id": {
23772
- "type": "integer"
24100
+ "description": "If fail, the date represents the next try to connect",
24101
+ "format": "date-time"
23773
24102
  },
23774
- "content_type": {
23775
- "type": "string"
24103
+ "error": {
24104
+ "type": "string",
24105
+ "description": "If fail, contains the error code"
23776
24106
  },
23777
- "filename": {
23778
- "type": "string"
24107
+ "error_message": {
24108
+ "type": "string",
24109
+ "description": "If fail, error message received from connector"
23779
24110
  },
23780
- "file_size": {
23781
- "type": "integer"
23782
- }
23783
- },
23784
- "example": {
23785
- "id": 0,
23786
- "content_type": "",
23787
- "filename": "",
23788
- "file_size": 0
23789
- }
23790
- },
23791
- "Security": {
23792
- "required": [
23793
- "id",
23794
- "name"
23795
- ],
23796
- "type": "object",
23797
- "properties": {
23798
- "id": {
24111
+ "statut": {
23799
24112
  "type": "integer",
23800
- "description": "ID of the security"
24113
+ "description": "Status of user (1 = charged user)"
23801
24114
  },
23802
- "code": {
24115
+ "nb_accounts": {
24116
+ "type": "integer",
24117
+ "description": "In case of bank connection, number of accounts"
24118
+ },
24119
+ "start": {
23803
24120
  "type": "string",
23804
- "description": "ISIN code of the security"
24121
+ "description": "Timestamp when the synchronization has started",
24122
+ "format": "date-time"
23805
24123
  },
23806
- "name": {
24124
+ "worker": {
23807
24125
  "type": "string",
23808
- "description": "Name of the security"
24126
+ "description": "Worker used to do synchronization"
23809
24127
  },
23810
- "id_type": {
23811
- "type": "integer",
23812
- "description": "ID of the security type"
24128
+ "session_folder_id": {
24129
+ "type": "string",
24130
+ "description": "Session folder uid"
23813
24131
  },
23814
- "last_update": {
24132
+ "fields": {
23815
24133
  "type": "string",
23816
- "description": "Last update of the security",
23817
- "format": "date-time"
24134
+ "description": "Fields for connection in additionalInformationNeeded state with background option"
23818
24135
  }
23819
24136
  },
23820
24137
  "example": {
23821
24138
  "id": 0,
23822
- "code": "",
23823
- "name": "",
23824
- "id_type": 0,
23825
- "last_update": "2019-08-02 17:21:59.346961"
24139
+ "id_user": 0,
24140
+ "id_connection": 0,
24141
+ "id_connector": 0,
24142
+ "id_source": 0,
24143
+ "login": "",
24144
+ "error_uid": "",
24145
+ "timestamp": "CURRENT_TIMESTAMP",
24146
+ "next_try": "2019-08-02 17:21:59.374222",
24147
+ "error": "",
24148
+ "error_message": "",
24149
+ "statut": 0,
24150
+ "nb_accounts": 0,
24151
+ "start": "2019-08-02 17:21:59.374490",
24152
+ "worker": "",
24153
+ "session_folder_id": ""
23826
24154
  }
23827
24155
  },
23828
24156
  "Webhook": {
@@ -24002,250 +24330,223 @@
24002
24330
  "next_try": "2019-08-02 17:21:59.353228"
24003
24331
  }
24004
24332
  },
24005
- "DocumentType": {
24333
+ "TermsOfService": {
24006
24334
  "required": [
24007
24335
  "id",
24008
- "name",
24009
- "attacheable"
24336
+ "version",
24337
+ "created"
24010
24338
  ],
24011
24339
  "type": "object",
24012
24340
  "properties": {
24013
24341
  "id": {
24014
24342
  "type": "integer"
24015
24343
  },
24016
- "name": {
24017
- "type": "string"
24018
- },
24019
- "attacheable": {
24020
- "default": true,
24021
- "type": "boolean"
24022
- }
24023
- },
24024
- "example": {
24025
- "id": 0,
24026
- "name": "",
24027
- "attacheable": true
24028
- }
24029
- },
24030
- "HashTable": {
24031
- "required": [
24032
- "wording",
24033
- "income",
24034
- "display",
24035
- "nature"
24036
- ],
24037
- "type": "object",
24038
- "properties": {
24039
- "wording": {
24344
+ "version": {
24040
24345
  "type": "string"
24041
24346
  },
24042
- "income": {
24043
- "type": "boolean"
24347
+ "id_file": {
24348
+ "type": "integer"
24044
24349
  },
24045
- "display": {
24046
- "default": true,
24047
- "type": "boolean"
24350
+ "created": {
24351
+ "type": "string",
24352
+ "format": "date-time"
24048
24353
  },
24049
- "nature": {
24050
- "type": "string"
24354
+ "deleted": {
24355
+ "type": "string",
24356
+ "format": "date-time"
24051
24357
  }
24052
24358
  },
24053
24359
  "example": {
24054
- "wording": "",
24055
- "income": false,
24056
- "display": true,
24057
- "nature": ""
24360
+ "id": 0,
24361
+ "version": "",
24362
+ "id_file": 0,
24363
+ "created": "2019-03-12 13:08:00.680453",
24364
+ "deleted": "2019-03-12 13:08:00.680558"
24058
24365
  }
24059
24366
  },
24060
- "Connection": {
24367
+ "Category": {
24061
24368
  "required": [
24062
24369
  "id",
24063
- "id_connector",
24064
- "active"
24370
+ "id_parent_category",
24371
+ "name",
24372
+ "color",
24373
+ "id_parent_category_in_menu",
24374
+ "refundable"
24065
24375
  ],
24066
24376
  "type": "object",
24067
24377
  "properties": {
24068
24378
  "id": {
24069
24379
  "type": "integer",
24070
- "description": "ID of connection"
24071
- },
24072
- "id_user": {
24073
- "type": "integer",
24074
- "description": "ID of the related user"
24380
+ "description": "ID of the category"
24075
24381
  },
24076
- "id_connector": {
24382
+ "id_parent_category": {
24077
24383
  "type": "integer",
24078
- "description": "ID of the related connector"
24384
+ "description": "ID of the parent category. If this is a parent category, it will be equal to its own ID"
24079
24385
  },
24080
- "last_update": {
24386
+ "name": {
24081
24387
  "type": "string",
24082
- "description": "Last successful update",
24083
- "format": "date-time"
24388
+ "description": "Name of the category"
24084
24389
  },
24085
- "created": {
24086
- "default": "<function <lambda> at 0x7f8894ce1aa0>",
24087
- "type": "string",
24088
- "description": "Creation date",
24089
- "format": "date-time"
24390
+ "income": {
24391
+ "type": "boolean",
24392
+ "description": "Is an income category. If null, this is both an income and an expense category"
24090
24393
  },
24091
- "error": {
24394
+ "color": {
24092
24395
  "type": "string",
24093
- "description": "If the last update has failed, the error code"
24396
+ "description": "Color of the category"
24094
24397
  },
24095
- "error_message": {
24096
- "type": "string",
24097
- "description": "If fail, error message received from connector"
24398
+ "id_parent_category_in_menu": {
24399
+ "type": "integer",
24400
+ "description": "ID of the parent category to be displayed"
24098
24401
  },
24099
- "expire": {
24402
+ "name_displayed": {
24100
24403
  "type": "string",
24101
- "description": "Expiration of the connection. Used during add of a two-factor authentication, to purge the connection if the user abort",
24102
- "format": "date-time"
24404
+ "description": "Displayed name, with HTML tags"
24103
24405
  },
24104
- "active": {
24105
- "default": true,
24406
+ "refundable": {
24106
24407
  "type": "boolean",
24107
- "description": "This connection is active and will be automatically synced"
24108
- },
24109
- "last_push": {
24110
- "type": "string",
24111
- "description": "Last successful push",
24112
- "format": "date-time"
24113
- },
24114
- "next_try": {
24115
- "type": "string",
24116
- "description": "Date of next synchronization",
24117
- "format": "date-time"
24118
- },
24119
- "accounts": {
24120
- "type": "array",
24121
- "items": {
24122
- "$ref": "#/definitions/Account"
24123
- }
24124
- },
24125
- "subscriptions": {
24126
- "type": "array",
24127
- "items": {
24128
- "$ref": "#/definitions/Subscription"
24129
- }
24408
+ "description": "This category accepts opposite sign of transactions"
24130
24409
  },
24131
- "connection": {
24132
- "$ref": "#/definitions/Connection"
24410
+ "id_user": {
24411
+ "type": "integer",
24412
+ "description": "If not null, this category is specific to a user"
24133
24413
  },
24134
- "message": {
24135
- "type": "string"
24414
+ "id_logo": {
24415
+ "type": "integer",
24416
+ "description": "ID of the logo"
24136
24417
  }
24137
24418
  },
24138
24419
  "example": {
24139
24420
  "id": 0,
24421
+ "id_parent_category": 0,
24422
+ "name": "",
24423
+ "income": false,
24424
+ "color": "",
24425
+ "id_parent_category_in_menu": 0,
24426
+ "name_displayed": "",
24427
+ "refundable": false,
24140
24428
  "id_user": 0,
24141
- "id_connector": 0,
24142
- "last_update": "2019-08-02 17:21:59.365076",
24143
- "created": "<function <lambda> at 0x7f8894ce1aa0>",
24144
- "error": "",
24145
- "expire": "2019-08-02 17:21:59.365257",
24146
- "active": true,
24147
- "last_push": "2019-08-02 17:21:59.365378",
24148
- "next_try": "2019-08-02 17:21:59.365554"
24429
+ "id_logo": 0
24149
24430
  }
24150
24431
  },
24151
- "ConnectionLog": {
24432
+ "Client": {
24152
24433
  "required": [
24153
24434
  "id",
24154
- "id_connection",
24155
- "timestamp"
24435
+ "name",
24436
+ "secret",
24437
+ "redirect_uris",
24438
+ "pro"
24156
24439
  ],
24157
24440
  "type": "object",
24158
24441
  "properties": {
24159
24442
  "id": {
24160
- "type": "integer",
24161
- "description": "ID of the log"
24162
- },
24163
- "id_user": {
24164
- "type": "integer",
24165
- "description": "ID of the user"
24443
+ "type": "integer"
24166
24444
  },
24167
- "id_connection": {
24168
- "type": "integer",
24169
- "description": "ID of the connection"
24445
+ "name": {
24446
+ "default": "",
24447
+ "type": "string"
24170
24448
  },
24171
- "id_connector": {
24172
- "type": "integer",
24173
- "description": "ID of the connector"
24449
+ "secret": {
24450
+ "type": "string"
24174
24451
  },
24175
- "id_source": {
24176
- "type": "integer",
24177
- "description": "ID of the related connection source"
24452
+ "public_key": {
24453
+ "type": "string"
24178
24454
  },
24179
- "login": {
24180
- "type": "string",
24181
- "description": "bcrypt hash of the login"
24455
+ "private_key": {
24456
+ "type": "string"
24182
24457
  },
24183
- "error_uid": {
24184
- "type": "string",
24185
- "description": "MD5 hash of the exception backtrace"
24458
+ "redirect_uris": {
24459
+ "default": "",
24460
+ "type": "string"
24186
24461
  },
24187
- "timestamp": {
24188
- "default": "CURRENT_TIMESTAMP",
24189
- "type": "string",
24190
- "description": "Timestamp of log, when the synchronization has finished",
24191
- "format": "date-time"
24462
+ "pro": {
24463
+ "default": false,
24464
+ "type": "boolean",
24465
+ "description": "Should the client display the company manager page."
24192
24466
  },
24193
- "next_try": {
24194
- "type": "string",
24195
- "description": "If fail, the date represents the next try to connect",
24196
- "format": "date-time"
24467
+ "id_logo": {
24468
+ "type": "integer"
24197
24469
  },
24198
- "error": {
24470
+ "config": {
24199
24471
  "type": "string",
24200
- "description": "If fail, contains the error code"
24472
+ "description": "customizable config"
24473
+ }
24474
+ },
24475
+ "example": {
24476
+ "id": 0,
24477
+ "name": "",
24478
+ "secret": "",
24479
+ "public_key": "",
24480
+ "private_key": "",
24481
+ "redirect_uris": "",
24482
+ "pro": false,
24483
+ "id_logo": 0
24484
+ }
24485
+ },
24486
+ "File": {
24487
+ "required": [
24488
+ "id",
24489
+ "content_type",
24490
+ "filename",
24491
+ "file_size"
24492
+ ],
24493
+ "type": "object",
24494
+ "properties": {
24495
+ "id": {
24496
+ "type": "integer"
24201
24497
  },
24202
- "error_message": {
24203
- "type": "string",
24204
- "description": "If fail, error message received from connector"
24498
+ "content_type": {
24499
+ "type": "string"
24205
24500
  },
24206
- "statut": {
24207
- "type": "integer",
24208
- "description": "Status of user (1 = charged user)"
24501
+ "filename": {
24502
+ "type": "string"
24209
24503
  },
24210
- "nb_accounts": {
24504
+ "file_size": {
24505
+ "type": "integer"
24506
+ }
24507
+ },
24508
+ "example": {
24509
+ "id": 0,
24510
+ "content_type": "",
24511
+ "filename": "",
24512
+ "file_size": 0
24513
+ }
24514
+ },
24515
+ "Security": {
24516
+ "required": [
24517
+ "id",
24518
+ "name"
24519
+ ],
24520
+ "type": "object",
24521
+ "properties": {
24522
+ "id": {
24211
24523
  "type": "integer",
24212
- "description": "In case of bank connection, number of accounts"
24524
+ "description": "ID of the security"
24213
24525
  },
24214
- "start": {
24526
+ "code": {
24215
24527
  "type": "string",
24216
- "description": "Timestamp when the synchronization has started",
24217
- "format": "date-time"
24528
+ "description": "ISIN code of the security"
24218
24529
  },
24219
- "worker": {
24530
+ "name": {
24220
24531
  "type": "string",
24221
- "description": "Worker used to do synchronization"
24532
+ "description": "Name of the security"
24222
24533
  },
24223
- "session_folder_id": {
24224
- "type": "string",
24225
- "description": "Session folder uid"
24534
+ "id_type": {
24535
+ "type": "integer",
24536
+ "description": "ID of the security type"
24226
24537
  },
24227
- "fields": {
24538
+ "last_update": {
24228
24539
  "type": "string",
24229
- "description": "Fields for connection in additionalInformationNeeded state with background option"
24540
+ "description": "Last update of the security",
24541
+ "format": "date-time"
24230
24542
  }
24231
24543
  },
24232
24544
  "example": {
24233
24545
  "id": 0,
24234
- "id_user": 0,
24235
- "id_connection": 0,
24236
- "id_connector": 0,
24237
- "id_source": 0,
24238
- "login": "",
24239
- "error_uid": "",
24240
- "timestamp": "CURRENT_TIMESTAMP",
24241
- "next_try": "2019-08-02 17:21:59.374222",
24242
- "error": "",
24243
- "error_message": "",
24244
- "statut": 0,
24245
- "nb_accounts": 0,
24246
- "start": "2019-08-02 17:21:59.374490",
24247
- "worker": "",
24248
- "session_folder_id": ""
24546
+ "code": "",
24547
+ "name": "",
24548
+ "id_type": 0,
24549
+ "last_update": "2019-08-02 17:21:59.346961"
24249
24550
  }
24250
24551
  },
24251
24552
  "Transfer": {
@@ -24423,422 +24724,285 @@
24423
24724
  "refund_value": 0
24424
24725
  }
24425
24726
  },
24426
- "Certificate": {
24727
+ "OidcWhitelist": {
24427
24728
  "required": [
24428
24729
  "id",
24429
- "id_public_key_file",
24430
- "id_private_key_file",
24431
- "type",
24432
- "created"
24730
+ "redirect_uri"
24433
24731
  ],
24434
24732
  "type": "object",
24435
24733
  "properties": {
24436
24734
  "id": {
24437
24735
  "type": "integer"
24438
24736
  },
24439
- "id_public_key_file": {
24440
- "type": "integer"
24441
- },
24442
- "id_private_key_file": {
24443
- "type": "integer"
24444
- },
24445
- "type": {
24446
- "type": "string"
24447
- },
24448
- "created": {
24737
+ "redirect_uri": {
24449
24738
  "type": "string",
24450
- "format": "date-time"
24739
+ "description": "authorized redirect uri"
24451
24740
  }
24452
24741
  },
24453
24742
  "example": {
24454
24743
  "id": 0,
24455
- "id_public_key_file": 0,
24456
- "id_private_key_file": 0,
24457
- "type": "",
24458
- "created": "2019-12-27 16:17:55.226500"
24744
+ "redirect_uri": ""
24459
24745
  }
24460
24746
  },
24461
- "ProjectType": {
24747
+ "HashTable": {
24462
24748
  "required": [
24463
- "id",
24464
- "name"
24465
- ],
24466
- "type": "object",
24467
- "properties": {
24468
- "id": {
24469
- "type": "integer"
24470
- },
24471
- "name": {
24749
+ "wording",
24750
+ "income",
24751
+ "display",
24752
+ "nature"
24753
+ ],
24754
+ "type": "object",
24755
+ "properties": {
24756
+ "wording": {
24472
24757
  "type": "string"
24473
24758
  },
24474
- "icon_url": {
24759
+ "income": {
24760
+ "type": "boolean"
24761
+ },
24762
+ "display": {
24763
+ "default": true,
24764
+ "type": "boolean"
24765
+ },
24766
+ "nature": {
24475
24767
  "type": "string"
24476
24768
  }
24477
24769
  },
24478
24770
  "example": {
24479
- "id": 0,
24480
- "name": "",
24481
- "icon_url": ""
24771
+ "wording": "",
24772
+ "income": false,
24773
+ "display": true,
24774
+ "nature": ""
24482
24775
  }
24483
24776
  },
24484
- "Access": {
24777
+ "Certificate": {
24485
24778
  "required": [
24486
24779
  "id",
24487
- "id_profile"
24780
+ "id_public_key_file",
24781
+ "id_private_key_file",
24782
+ "type",
24783
+ "created"
24488
24784
  ],
24489
24785
  "type": "object",
24490
24786
  "properties": {
24491
24787
  "id": {
24492
24788
  "type": "integer"
24493
24789
  },
24494
- "id_user": {
24495
- "type": "integer"
24496
- },
24497
- "id_profile": {
24790
+ "id_public_key_file": {
24498
24791
  "type": "integer"
24499
24792
  },
24500
- "id_role": {
24793
+ "id_private_key_file": {
24501
24794
  "type": "integer"
24502
24795
  },
24503
- "email": {
24796
+ "type": {
24504
24797
  "type": "string"
24798
+ },
24799
+ "created": {
24800
+ "type": "string",
24801
+ "format": "date-time"
24505
24802
  }
24506
24803
  },
24507
24804
  "example": {
24508
24805
  "id": 0,
24509
- "id_user": 0,
24510
- "id_profile": 0,
24511
- "id_role": 0,
24512
- "email": ""
24806
+ "id_public_key_file": 0,
24807
+ "id_private_key_file": 0,
24808
+ "type": "",
24809
+ "created": "2019-12-27 16:17:55.226500"
24513
24810
  }
24514
24811
  },
24515
- "Profile": {
24812
+ "Document": {
24516
24813
  "required": [
24517
24814
  "id",
24518
24815
  "id_user",
24519
- "role",
24520
- "email",
24521
- "statut",
24522
- "admin"
24816
+ "timestamp",
24817
+ "readonly",
24818
+ "has_file_on_website"
24523
24819
  ],
24524
24820
  "type": "object",
24525
24821
  "properties": {
24526
24822
  "id": {
24527
24823
  "type": "integer"
24528
24824
  },
24825
+ "id_type": {
24826
+ "type": "integer"
24827
+ },
24828
+ "id_category": {
24829
+ "type": "integer"
24830
+ },
24529
24831
  "id_user": {
24530
24832
  "type": "integer"
24531
24833
  },
24532
- "role": {
24533
- "default": "admin",
24534
- "enum": [
24535
- "admin",
24536
- "ser"
24537
- ],
24538
- "type": "string"
24834
+ "id_subscription": {
24835
+ "type": "integer"
24539
24836
  },
24540
- "email": {
24541
- "type": "string"
24837
+ "id_file": {
24838
+ "type": "integer"
24542
24839
  },
24543
- "statut": {
24544
- "default": 0,
24840
+ "id_thumbnail": {
24545
24841
  "type": "integer"
24546
24842
  },
24547
- "admin": {
24548
- "default": false,
24843
+ "name": {
24844
+ "type": "string"
24845
+ },
24846
+ "timestamp": {
24847
+ "default": "CURRENT_TIMESTAMP",
24848
+ "type": "string",
24849
+ "format": "date-time"
24850
+ },
24851
+ "date": {
24852
+ "type": "string",
24853
+ "format": "date-time"
24854
+ },
24855
+ "duedate": {
24856
+ "type": "string",
24857
+ "format": "date"
24858
+ },
24859
+ "total_amount": {
24860
+ "type": "number",
24861
+ "format": "float"
24862
+ },
24863
+ "untaxed_amount": {
24864
+ "type": "number",
24865
+ "format": "float"
24866
+ },
24867
+ "vat": {
24868
+ "type": "number",
24869
+ "format": "float"
24870
+ },
24871
+ "income": {
24872
+ "default": true,
24549
24873
  "type": "boolean"
24550
24874
  },
24551
- "conf": {
24875
+ "readonly": {
24876
+ "default": true,
24877
+ "type": "boolean"
24878
+ },
24879
+ "number": {
24552
24880
  "type": "string"
24553
24881
  },
24554
- "lang": {
24882
+ "issuer": {
24555
24883
  "type": "string"
24884
+ },
24885
+ "last_update": {
24886
+ "type": "string",
24887
+ "description": "Last successful update of the document",
24888
+ "format": "date-time"
24889
+ },
24890
+ "has_file_on_website": {
24891
+ "default": true,
24892
+ "type": "boolean",
24893
+ "description": "Boolean to set if file is available on website"
24894
+ },
24895
+ "currency": {
24896
+ "type": "object",
24897
+ "description": "Document currency"
24556
24898
  }
24557
24899
  },
24558
24900
  "example": {
24559
24901
  "id": 0,
24902
+ "id_type": 0,
24903
+ "id_category": 0,
24560
24904
  "id_user": 0,
24561
- "role": "admin",
24562
- "statut": 0,
24563
- "admin": false,
24564
- "conf": "",
24565
- "lang": ""
24905
+ "id_subscription": 0,
24906
+ "id_file": 0,
24907
+ "id_thumbnail": 0,
24908
+ "name": "",
24909
+ "timestamp": "CURRENT_TIMESTAMP",
24910
+ "date": "2019-08-02 17:21:59.435173",
24911
+ "duedate": "2019-08-02",
24912
+ "total_amount": 0,
24913
+ "untaxed_amount": 0,
24914
+ "vat": 0,
24915
+ "income": true,
24916
+ "readonly": true,
24917
+ "number": "",
24918
+ "issuer": "",
24919
+ "last_update": "2019-08-02 17:21:59.435734",
24920
+ "has_file_on_website": true,
24921
+ "currency": ""
24566
24922
  }
24567
24923
  },
24568
- "TransactionsCluster": {
24924
+ "TransferLog": {
24569
24925
  "required": [
24570
24926
  "id",
24571
- "id_account",
24572
- "mean_amount",
24573
- "enabled",
24574
- "wording"
24927
+ "timestamp"
24575
24928
  ],
24576
24929
  "type": "object",
24577
24930
  "properties": {
24578
24931
  "id": {
24579
- "type": "integer"
24580
- },
24581
- "id_account": {
24582
- "type": "integer"
24932
+ "type": "integer",
24933
+ "description": "ID of the transfer log entry"
24583
24934
  },
24584
- "mean_amount": {
24585
- "type": "number",
24586
- "format": "float"
24935
+ "id_transfer": {
24936
+ "type": "integer",
24937
+ "description": "ID of the related transfer"
24587
24938
  },
24588
- "median_increment": {
24589
- "type": "integer"
24939
+ "id_file": {
24940
+ "type": "integer",
24941
+ "description": "ID of the related file"
24590
24942
  },
24591
- "enabled": {
24592
- "default": true,
24593
- "type": "boolean"
24943
+ "request_data": {
24944
+ "type": "string",
24945
+ "description": "Data stored related to user who has requested the transfer"
24594
24946
  },
24595
- "next_date": {
24947
+ "state": {
24596
24948
  "type": "string",
24597
- "format": "date"
24949
+ "description": "State of the transfer (created, scheduled, validating, pending, done, canceled, error, bug)"
24598
24950
  },
24599
- "wording": {
24600
- "type": "string"
24951
+ "error": {
24952
+ "type": "string",
24953
+ "description": "Error message during transfer, if any"
24601
24954
  },
24602
- "id_category": {
24603
- "type": "integer"
24955
+ "timestamp": {
24956
+ "default": "CURRENT_TIMESTAMP",
24957
+ "type": "string",
24958
+ "description": "Timestamp of the log",
24959
+ "format": "date-time"
24604
24960
  },
24605
- "created_by": {
24606
- "type": "string"
24961
+ "fields": {
24962
+ "type": "string",
24963
+ "description": "Fields for transfer in additionalInformationNeeded state with background option"
24607
24964
  }
24608
24965
  },
24609
24966
  "example": {
24610
24967
  "id": 0,
24611
- "id_account": 0,
24612
- "mean_amount": 0,
24613
- "median_increment": 0,
24614
- "enabled": true,
24615
- "next_date": "2019-08-02",
24616
- "wording": "",
24617
- "id_category": 0,
24618
- "created_by": ""
24968
+ "id_transfer": 0,
24969
+ "id_file": 0,
24970
+ "request_data": "",
24971
+ "state": "",
24972
+ "error": "",
24973
+ "timestamp": "CURRENT_TIMESTAMP"
24619
24974
  }
24620
24975
  },
24621
- "UserAlert": {
24622
- "description": "/!\\ Careful we use default value from database if present\n\n For more information see AlertsPlugin.init",
24976
+ "TransactionInformation": {
24623
24977
  "required": [
24624
24978
  "id",
24625
- "value_type",
24626
- "type",
24627
- "resume_frequency"
24979
+ "id_transaction",
24980
+ "key"
24628
24981
  ],
24629
24982
  "type": "object",
24630
24983
  "properties": {
24631
24984
  "id": {
24632
- "type": "integer"
24985
+ "type": "integer",
24986
+ "description": "ID of this transaction information"
24633
24987
  },
24634
- "income_max": {
24635
- "default": 500,
24636
- "type": "number",
24637
- "format": "float"
24988
+ "id_transaction": {
24989
+ "type": "integer",
24990
+ "description": "ID of the related transaction"
24638
24991
  },
24639
- "expense_max": {
24640
- "default": 500,
24641
- "type": "number",
24642
- "format": "float"
24992
+ "key": {
24993
+ "type": "string",
24994
+ "description": "Key of the transaction information"
24643
24995
  },
24644
- "balance_min1": {
24645
- "default": 500,
24646
- "type": "number",
24647
- "format": "float"
24648
- },
24649
- "balance_min2": {
24650
- "default": 0,
24651
- "type": "number",
24652
- "format": "float"
24653
- },
24654
- "balance_max": {
24655
- "default": 10000,
24656
- "type": "number",
24657
- "format": "float"
24658
- },
24659
- "resume_enabled": {
24660
- "default": true,
24661
- "type": "boolean"
24662
- },
24663
- "enabled": {
24664
- "default": true,
24665
- "type": "boolean"
24666
- },
24667
- "value_type": {
24668
- "default": "flat",
24669
- "type": "string"
24670
- },
24671
- "type": {
24672
- "default": "transactions",
24673
- "type": "string"
24674
- },
24675
- "transaction_types": {
24676
- "type": "string"
24677
- },
24678
- "date_range": {
24679
- "type": "integer"
24680
- },
24681
- "apply": {
24682
- "type": "string"
24683
- },
24684
- "resume_frequency": {
24685
- "default": 7,
24686
- "type": "integer"
24687
- }
24688
- },
24689
- "example": {
24690
- "id": 0,
24691
- "income_max": 500,
24692
- "expense_max": 500,
24693
- "balance_min1": 500,
24694
- "balance_min2": 0,
24695
- "balance_max": 10000,
24696
- "resume_enabled": true,
24697
- "enabled": true,
24698
- "value_type": "flat",
24699
- "type": "transactions",
24700
- "transaction_types": "",
24701
- "date_range": 0,
24702
- "apply": "",
24703
- "resume_frequency": 7
24704
- }
24705
- },
24706
- "AccountType": {
24707
- "required": [
24708
- "id",
24709
- "name",
24710
- "is_invest",
24711
- "weboob_type_id",
24712
- "display_name_p",
24713
- "display_name"
24714
- ],
24715
- "type": "object",
24716
- "properties": {
24717
- "id": {
24718
- "type": "integer",
24719
- "description": "ID of the account type"
24720
- },
24721
- "name": {
24722
- "type": "string",
24723
- "description": "Name of the account type"
24724
- },
24725
- "is_invest": {
24726
- "default": false,
24727
- "type": "boolean",
24728
- "description": "Is it an investment account"
24729
- },
24730
- "weboob_type_id": {
24731
- "type": "integer",
24732
- "description": "Map to the weboob_type_id"
24733
- },
24734
- "display_name_p": {
24735
- "type": "string",
24736
- "description": "Name to display in plurial"
24737
- },
24738
- "display_name": {
24739
- "type": "string",
24740
- "description": "Name to display in singular"
24741
- },
24742
- "color": {
24743
- "type": "string",
24744
- "description": "Color of the account type (hexdecimal)"
24745
- },
24746
- "id_parent": {
24747
- "type": "integer",
24748
- "description": "Id of the parent type"
24749
- }
24750
- },
24751
- "example": {
24752
- "id": 0,
24753
- "name": "",
24754
- "is_invest": false,
24755
- "weboob_type_id": 0,
24756
- "display_name_p": "",
24757
- "display_name": "",
24758
- "color": "",
24759
- "id_parent": 0
24760
- }
24761
- },
24762
- "Subscription": {
24763
- "required": [
24764
- "id",
24765
- "number",
24766
- "label"
24767
- ],
24768
- "type": "object",
24769
- "properties": {
24770
- "id": {
24771
- "type": "integer",
24772
- "description": "ID of subscription"
24773
- },
24774
- "id_connection": {
24775
- "type": "integer",
24776
- "description": "ID of related connection"
24777
- },
24778
- "id_user": {
24779
- "type": "integer",
24780
- "description": "ID of related user"
24781
- },
24782
- "id_source": {
24783
- "type": "integer",
24784
- "description": "ID of the related connection source"
24785
- },
24786
- "number": {
24787
- "type": "string",
24788
- "description": "Subscription's number"
24789
- },
24790
- "label": {
24791
- "type": "string",
24792
- "description": "Label of the subscription"
24793
- },
24794
- "subscriber": {
24795
- "type": "string",
24796
- "description": "Name of the subscriber"
24797
- },
24798
- "validity": {
24799
- "type": "string",
24800
- "description": "The subscription is valid until this date, if any",
24801
- "format": "date"
24802
- },
24803
- "renewdate": {
24804
- "type": "string",
24805
- "description": "Next renew date, if any",
24806
- "format": "date"
24807
- },
24808
- "last_update": {
24809
- "type": "string",
24810
- "description": "Last successful update of the subscription",
24811
- "format": "date-time"
24812
- },
24813
- "deleted": {
24814
- "type": "string",
24815
- "description": "This subscription is not found on the website anymore",
24816
- "format": "date-time"
24817
- },
24818
- "disabled": {
24819
- "type": "string",
24820
- "description": "This subscription has been deleted by user and will not be synchronized anymore",
24821
- "format": "date-time"
24822
- },
24823
- "error": {
24996
+ "value": {
24824
24997
  "type": "string",
24825
- "description": "If the last update has failed, the error code"
24998
+ "description": "Value of the transaction information"
24826
24999
  }
24827
25000
  },
24828
25001
  "example": {
24829
25002
  "id": 0,
24830
- "id_connection": 0,
24831
- "id_user": 0,
24832
- "id_source": 0,
24833
- "number": "",
24834
- "label": "",
24835
- "subscriber": "",
24836
- "validity": "2019-08-02",
24837
- "renewdate": "2019-08-02",
24838
- "last_update": "2019-08-02 17:21:59.421714",
24839
- "deleted": "2019-08-02 17:21:59.421772",
24840
- "disabled": "2019-08-02 17:21:59.421828",
24841
- "error": ""
25003
+ "id_transaction": 0,
25004
+ "key": "",
25005
+ "value": ""
24842
25006
  }
24843
25007
  },
24844
25008
  "Transaction": {
@@ -25035,65 +25199,426 @@
25035
25199
  "card": ""
25036
25200
  }
25037
25201
  },
25038
- "Investment": {
25202
+ "InvestmentValue": {
25039
25203
  "required": [
25040
25204
  "id",
25041
- "id_account",
25042
- "label",
25043
- "code"
25205
+ "id_investment",
25206
+ "vdate",
25207
+ "unitvalue"
25044
25208
  ],
25045
25209
  "type": "object",
25046
25210
  "properties": {
25047
25211
  "id": {
25048
25212
  "type": "integer",
25049
- "description": "ID of the investment"
25213
+ "description": "ID of the value"
25050
25214
  },
25051
- "id_account": {
25215
+ "id_investment": {
25052
25216
  "type": "integer",
25053
- "description": "ID of the related account"
25054
- },
25055
- "label": {
25056
- "type": "string",
25057
- "description": "Label of the investment"
25058
- },
25059
- "code": {
25060
- "type": "string",
25061
- "description": "Investment code"
25062
- },
25063
- "code_type": {
25064
- "type": "string",
25065
- "description": "Code type (ISIN of AMF)"
25066
- },
25067
- "source": {
25068
- "type": "string",
25069
- "description": "Source of the ISIN code (website, notFound)"
25217
+ "description": "ID of the related investment"
25070
25218
  },
25071
- "description": {
25219
+ "vdate": {
25072
25220
  "type": "string",
25073
- "description": "Description of the investment"
25074
- },
25075
- "quantity": {
25076
- "default": 0,
25077
- "type": "number",
25078
- "description": "Quantity",
25079
- "format": "float"
25080
- },
25081
- "unitprice": {
25082
- "default": 0,
25083
- "type": "number",
25084
- "description": "Average buy price",
25085
- "format": "float"
25221
+ "description": "Date of this value",
25222
+ "format": "date"
25086
25223
  },
25087
25224
  "unitvalue": {
25088
- "default": 0,
25089
25225
  "type": "number",
25090
- "description": "Current unit value",
25226
+ "description": "Value on this date",
25091
25227
  "format": "float"
25092
25228
  },
25093
- "valuation": {
25094
- "default": 0,
25229
+ "original_currency": {
25230
+ "type": "object",
25231
+ "description": "Original currency"
25232
+ },
25233
+ "original_unitvalue": {
25095
25234
  "type": "number",
25096
- "description": "Current valuation",
25235
+ "description": "Value on this date, in the original currency",
25236
+ "format": "float"
25237
+ }
25238
+ },
25239
+ "example": {
25240
+ "id": 0,
25241
+ "id_investment": 0,
25242
+ "vdate": "2019-08-02",
25243
+ "unitvalue": 0,
25244
+ "original_currency": "",
25245
+ "original_unitvalue": 0
25246
+ }
25247
+ },
25248
+ "Pocket": {
25249
+ "required": [
25250
+ "id",
25251
+ "id_account",
25252
+ "id_investment",
25253
+ "value",
25254
+ "condition"
25255
+ ],
25256
+ "type": "object",
25257
+ "properties": {
25258
+ "id": {
25259
+ "type": "integer",
25260
+ "description": "ID of the pocket"
25261
+ },
25262
+ "id_account": {
25263
+ "type": "integer",
25264
+ "description": "ID of the related account"
25265
+ },
25266
+ "id_investment": {
25267
+ "type": "integer",
25268
+ "description": "ID of the related investment"
25269
+ },
25270
+ "label": {
25271
+ "type": "string",
25272
+ "description": "Label of the pocket"
25273
+ },
25274
+ "value": {
25275
+ "type": "number",
25276
+ "description": "Value of the pocket",
25277
+ "format": "float"
25278
+ },
25279
+ "quantity": {
25280
+ "default": 0,
25281
+ "type": "number",
25282
+ "description": "Quantity of stocks",
25283
+ "format": "float"
25284
+ },
25285
+ "availability_date": {
25286
+ "type": "string",
25287
+ "description": "Availability date of the pocket",
25288
+ "format": "date"
25289
+ },
25290
+ "condition": {
25291
+ "default": "inconnu",
25292
+ "type": "string",
25293
+ "description": "Withdrawal condition of the pocket"
25294
+ },
25295
+ "last_update": {
25296
+ "type": "string",
25297
+ "description": "Last update of the pocket",
25298
+ "format": "date-time"
25299
+ },
25300
+ "deleted": {
25301
+ "type": "string",
25302
+ "description": "If set, this pocket has been removed from the website",
25303
+ "format": "date-time"
25304
+ }
25305
+ },
25306
+ "example": {
25307
+ "id": 0,
25308
+ "id_account": 0,
25309
+ "id_investment": 0,
25310
+ "label": "",
25311
+ "value": 0,
25312
+ "quantity": 0,
25313
+ "availability_date": "2019-08-02",
25314
+ "condition": "inconnu",
25315
+ "last_update": "2019-08-02 17:21:59.448433",
25316
+ "deleted": "2019-08-02 17:21:59.448498"
25317
+ }
25318
+ },
25319
+ "RecipientLog": {
25320
+ "required": [
25321
+ "id",
25322
+ "timestamp"
25323
+ ],
25324
+ "type": "object",
25325
+ "properties": {
25326
+ "id": {
25327
+ "type": "integer",
25328
+ "description": "ID of the transfer log entry"
25329
+ },
25330
+ "id_recipient": {
25331
+ "type": "integer",
25332
+ "description": "ID of the related recipient"
25333
+ },
25334
+ "id_file": {
25335
+ "type": "integer",
25336
+ "description": "ID of the related file"
25337
+ },
25338
+ "request_data": {
25339
+ "type": "string",
25340
+ "description": "Data stored related to user who has requested the recipient addition"
25341
+ },
25342
+ "step": {
25343
+ "type": "string",
25344
+ "description": "Step of recipient addition, (add_recipient, asking_field, recipient addition validated, creation, storing_files)"
25345
+ },
25346
+ "error": {
25347
+ "type": "string",
25348
+ "description": "Error message during recipient addition, if any"
25349
+ },
25350
+ "timestamp": {
25351
+ "default": "CURRENT_TIMESTAMP",
25352
+ "type": "string",
25353
+ "description": "Timestamp of the log",
25354
+ "format": "date-time"
25355
+ },
25356
+ "fields": {
25357
+ "type": "string",
25358
+ "description": "Fields for recipient in additionalInformationNeeded state with background option"
25359
+ }
25360
+ },
25361
+ "example": {
25362
+ "id": 0,
25363
+ "id_recipient": 0,
25364
+ "id_file": 0,
25365
+ "request_data": "",
25366
+ "step": "",
25367
+ "error": "",
25368
+ "timestamp": "CURRENT_TIMESTAMP"
25369
+ }
25370
+ },
25371
+ "SubscriptionLog": {
25372
+ "required": [
25373
+ "id",
25374
+ "id_subscription",
25375
+ "timestamp"
25376
+ ],
25377
+ "type": "object",
25378
+ "properties": {
25379
+ "id": {
25380
+ "type": "integer",
25381
+ "description": "ID of the log"
25382
+ },
25383
+ "id_subscription": {
25384
+ "type": "integer",
25385
+ "description": "ID of the related subscription"
25386
+ },
25387
+ "timestamp": {
25388
+ "default": "CURRENT_TIMESTAMP",
25389
+ "type": "string",
25390
+ "description": "Timestamp of log",
25391
+ "format": "date-time"
25392
+ },
25393
+ "nb_docs": {
25394
+ "type": "integer",
25395
+ "description": "Number of docs on the subscription"
25396
+ },
25397
+ "id_connection_log": {
25398
+ "type": "integer",
25399
+ "description": "ID of the related connection log"
25400
+ },
25401
+ "error": {
25402
+ "type": "string",
25403
+ "description": "If fail, contains the error code"
25404
+ },
25405
+ "error_message": {
25406
+ "type": "string",
25407
+ "description": "If fail, error message received from provider"
25408
+ },
25409
+ "id_source": {
25410
+ "type": "integer",
25411
+ "description": "ID of the related connection source"
25412
+ }
25413
+ },
25414
+ "example": {
25415
+ "id": 0,
25416
+ "id_subscription": 0,
25417
+ "timestamp": "CURRENT_TIMESTAMP",
25418
+ "nb_docs": 0,
25419
+ "id_connection_log": 0,
25420
+ "error": "",
25421
+ "error_message": "",
25422
+ "id_source": 0
25423
+ }
25424
+ },
25425
+ "TransactionsCluster": {
25426
+ "required": [
25427
+ "id",
25428
+ "id_account",
25429
+ "mean_amount",
25430
+ "enabled",
25431
+ "wording"
25432
+ ],
25433
+ "type": "object",
25434
+ "properties": {
25435
+ "id": {
25436
+ "type": "integer"
25437
+ },
25438
+ "id_account": {
25439
+ "type": "integer"
25440
+ },
25441
+ "mean_amount": {
25442
+ "type": "number",
25443
+ "format": "float"
25444
+ },
25445
+ "median_increment": {
25446
+ "type": "integer"
25447
+ },
25448
+ "enabled": {
25449
+ "default": true,
25450
+ "type": "boolean"
25451
+ },
25452
+ "next_date": {
25453
+ "type": "string",
25454
+ "format": "date"
25455
+ },
25456
+ "wording": {
25457
+ "type": "string"
25458
+ },
25459
+ "id_category": {
25460
+ "type": "integer"
25461
+ },
25462
+ "created_by": {
25463
+ "type": "string"
25464
+ }
25465
+ },
25466
+ "example": {
25467
+ "id": 0,
25468
+ "id_account": 0,
25469
+ "mean_amount": 0,
25470
+ "median_increment": 0,
25471
+ "enabled": true,
25472
+ "next_date": "2019-08-02",
25473
+ "wording": "",
25474
+ "id_category": 0,
25475
+ "created_by": ""
25476
+ }
25477
+ },
25478
+ "UserAlert": {
25479
+ "description": "/!\\ Careful we use default value from database if present\n\n For more information see AlertsPlugin.init",
25480
+ "required": [
25481
+ "id",
25482
+ "value_type",
25483
+ "type",
25484
+ "resume_frequency"
25485
+ ],
25486
+ "type": "object",
25487
+ "properties": {
25488
+ "id": {
25489
+ "type": "integer"
25490
+ },
25491
+ "income_max": {
25492
+ "default": 500,
25493
+ "type": "number",
25494
+ "format": "float"
25495
+ },
25496
+ "expense_max": {
25497
+ "default": 500,
25498
+ "type": "number",
25499
+ "format": "float"
25500
+ },
25501
+ "balance_min1": {
25502
+ "default": 500,
25503
+ "type": "number",
25504
+ "format": "float"
25505
+ },
25506
+ "balance_min2": {
25507
+ "default": 0,
25508
+ "type": "number",
25509
+ "format": "float"
25510
+ },
25511
+ "balance_max": {
25512
+ "default": 10000,
25513
+ "type": "number",
25514
+ "format": "float"
25515
+ },
25516
+ "resume_enabled": {
25517
+ "default": true,
25518
+ "type": "boolean"
25519
+ },
25520
+ "enabled": {
25521
+ "default": true,
25522
+ "type": "boolean"
25523
+ },
25524
+ "value_type": {
25525
+ "default": "flat",
25526
+ "type": "string"
25527
+ },
25528
+ "type": {
25529
+ "default": "transactions",
25530
+ "type": "string"
25531
+ },
25532
+ "transaction_types": {
25533
+ "type": "string"
25534
+ },
25535
+ "date_range": {
25536
+ "type": "integer"
25537
+ },
25538
+ "apply": {
25539
+ "type": "string"
25540
+ },
25541
+ "resume_frequency": {
25542
+ "default": 7,
25543
+ "type": "integer"
25544
+ }
25545
+ },
25546
+ "example": {
25547
+ "id": 0,
25548
+ "income_max": 500,
25549
+ "expense_max": 500,
25550
+ "balance_min1": 500,
25551
+ "balance_min2": 0,
25552
+ "balance_max": 10000,
25553
+ "resume_enabled": true,
25554
+ "enabled": true,
25555
+ "value_type": "flat",
25556
+ "type": "transactions",
25557
+ "transaction_types": "",
25558
+ "date_range": 0,
25559
+ "apply": "",
25560
+ "resume_frequency": 7
25561
+ }
25562
+ },
25563
+ "Investment": {
25564
+ "required": [
25565
+ "id",
25566
+ "id_account",
25567
+ "label",
25568
+ "code"
25569
+ ],
25570
+ "type": "object",
25571
+ "properties": {
25572
+ "id": {
25573
+ "type": "integer",
25574
+ "description": "ID of the investment"
25575
+ },
25576
+ "id_account": {
25577
+ "type": "integer",
25578
+ "description": "ID of the related account"
25579
+ },
25580
+ "label": {
25581
+ "type": "string",
25582
+ "description": "Label of the investment"
25583
+ },
25584
+ "code": {
25585
+ "type": "string",
25586
+ "description": "Investment code"
25587
+ },
25588
+ "code_type": {
25589
+ "type": "string",
25590
+ "description": "Code type (ISIN of AMF)"
25591
+ },
25592
+ "source": {
25593
+ "type": "string",
25594
+ "description": "Source of the ISIN code (website, notFound)"
25595
+ },
25596
+ "description": {
25597
+ "type": "string",
25598
+ "description": "Description of the investment"
25599
+ },
25600
+ "quantity": {
25601
+ "default": 0,
25602
+ "type": "number",
25603
+ "description": "Quantity",
25604
+ "format": "float"
25605
+ },
25606
+ "unitprice": {
25607
+ "default": 0,
25608
+ "type": "number",
25609
+ "description": "Average buy price",
25610
+ "format": "float"
25611
+ },
25612
+ "unitvalue": {
25613
+ "default": 0,
25614
+ "type": "number",
25615
+ "description": "Current unit value",
25616
+ "format": "float"
25617
+ },
25618
+ "valuation": {
25619
+ "default": 0,
25620
+ "type": "number",
25621
+ "description": "Current valuation",
25097
25622
  "format": "float"
25098
25623
  },
25099
25624
  "diff": {
@@ -25301,116 +25826,180 @@
25301
25826
  "currency": ""
25302
25827
  }
25303
25828
  },
25304
- "Document": {
25829
+ "AccountLog": {
25305
25830
  "required": [
25306
25831
  "id",
25307
- "id_user",
25308
- "timestamp",
25309
- "readonly",
25310
- "has_file_on_website"
25832
+ "id_account",
25833
+ "balance",
25834
+ "timestamp"
25311
25835
  ],
25312
25836
  "type": "object",
25313
25837
  "properties": {
25314
25838
  "id": {
25315
- "type": "integer"
25316
- },
25317
- "id_type": {
25318
- "type": "integer"
25319
- },
25320
- "id_category": {
25321
- "type": "integer"
25322
- },
25323
- "id_user": {
25324
- "type": "integer"
25839
+ "type": "integer",
25840
+ "description": "ID of the log"
25325
25841
  },
25326
- "id_subscription": {
25327
- "type": "integer"
25842
+ "id_account": {
25843
+ "type": "integer",
25844
+ "description": "ID of the related account"
25328
25845
  },
25329
- "id_file": {
25330
- "type": "integer"
25846
+ "id_connector": {
25847
+ "type": "integer",
25848
+ "description": "provider id"
25331
25849
  },
25332
- "id_thumbnail": {
25333
- "type": "integer"
25850
+ "balance": {
25851
+ "type": "number",
25852
+ "description": "Balanced recorded",
25853
+ "format": "float"
25334
25854
  },
25335
- "name": {
25336
- "type": "string"
25855
+ "coming": {
25856
+ "default": 0,
25857
+ "type": "number",
25858
+ "description": "Coming debit recorded",
25859
+ "format": "float"
25337
25860
  },
25338
25861
  "timestamp": {
25339
25862
  "default": "CURRENT_TIMESTAMP",
25340
25863
  "type": "string",
25864
+ "description": "Timestamp of log",
25341
25865
  "format": "date-time"
25342
25866
  },
25343
- "date": {
25867
+ "error": {
25344
25868
  "type": "string",
25345
- "format": "date-time"
25869
+ "description": "If fail, contains the error code"
25346
25870
  },
25347
- "duedate": {
25871
+ "error_message": {
25348
25872
  "type": "string",
25349
- "format": "date"
25873
+ "description": "If fail, error message received from bank or provider"
25350
25874
  },
25351
- "total_amount": {
25352
- "type": "number",
25353
- "format": "float"
25875
+ "id_connection_log": {
25876
+ "type": "integer",
25877
+ "description": "ID of the related connection log"
25878
+ }
25879
+ },
25880
+ "example": {
25881
+ "id": 0,
25882
+ "id_account": 0,
25883
+ "id_connector": 0,
25884
+ "balance": 0,
25885
+ "coming": 0,
25886
+ "timestamp": "CURRENT_TIMESTAMP",
25887
+ "error": "",
25888
+ "error_message": "",
25889
+ "id_connection_log": 0
25890
+ }
25891
+ },
25892
+ "Access": {
25893
+ "required": [
25894
+ "id",
25895
+ "id_profile"
25896
+ ],
25897
+ "type": "object",
25898
+ "properties": {
25899
+ "id": {
25900
+ "type": "integer"
25354
25901
  },
25355
- "untaxed_amount": {
25356
- "type": "number",
25357
- "format": "float"
25902
+ "id_user": {
25903
+ "type": "integer"
25358
25904
  },
25359
- "vat": {
25360
- "type": "number",
25361
- "format": "float"
25905
+ "id_profile": {
25906
+ "type": "integer"
25362
25907
  },
25363
- "income": {
25364
- "default": true,
25365
- "type": "boolean"
25908
+ "id_role": {
25909
+ "type": "integer"
25366
25910
  },
25367
- "readonly": {
25368
- "default": true,
25369
- "type": "boolean"
25911
+ "email": {
25912
+ "type": "string"
25913
+ }
25914
+ },
25915
+ "example": {
25916
+ "id": 0,
25917
+ "id_user": 0,
25918
+ "id_profile": 0,
25919
+ "id_role": 0,
25920
+ "email": ""
25921
+ }
25922
+ },
25923
+ "Subscription": {
25924
+ "required": [
25925
+ "id",
25926
+ "number",
25927
+ "label"
25928
+ ],
25929
+ "type": "object",
25930
+ "properties": {
25931
+ "id": {
25932
+ "type": "integer",
25933
+ "description": "ID of subscription"
25934
+ },
25935
+ "id_connection": {
25936
+ "type": "integer",
25937
+ "description": "ID of related connection"
25938
+ },
25939
+ "id_user": {
25940
+ "type": "integer",
25941
+ "description": "ID of related user"
25942
+ },
25943
+ "id_source": {
25944
+ "type": "integer",
25945
+ "description": "ID of the related connection source"
25370
25946
  },
25371
25947
  "number": {
25372
- "type": "string"
25948
+ "type": "string",
25949
+ "description": "Subscription's number"
25373
25950
  },
25374
- "issuer": {
25375
- "type": "string"
25951
+ "label": {
25952
+ "type": "string",
25953
+ "description": "Label of the subscription"
25954
+ },
25955
+ "subscriber": {
25956
+ "type": "string",
25957
+ "description": "Name of the subscriber"
25958
+ },
25959
+ "validity": {
25960
+ "type": "string",
25961
+ "description": "The subscription is valid until this date, if any",
25962
+ "format": "date"
25963
+ },
25964
+ "renewdate": {
25965
+ "type": "string",
25966
+ "description": "Next renew date, if any",
25967
+ "format": "date"
25376
25968
  },
25377
25969
  "last_update": {
25378
25970
  "type": "string",
25379
- "description": "Last successful update of the document",
25971
+ "description": "Last successful update of the subscription",
25380
25972
  "format": "date-time"
25381
25973
  },
25382
- "has_file_on_website": {
25383
- "default": true,
25384
- "type": "boolean",
25385
- "description": "Boolean to set if file is available on website"
25974
+ "deleted": {
25975
+ "type": "string",
25976
+ "description": "This subscription is not found on the website anymore",
25977
+ "format": "date-time"
25386
25978
  },
25387
- "currency": {
25388
- "type": "object",
25389
- "description": "Document currency"
25979
+ "disabled": {
25980
+ "type": "string",
25981
+ "description": "This subscription has been deleted by user and will not be synchronized anymore",
25982
+ "format": "date-time"
25983
+ },
25984
+ "error": {
25985
+ "type": "string",
25986
+ "description": "If the last update has failed, the error code"
25390
25987
  }
25391
25988
  },
25392
25989
  "example": {
25393
25990
  "id": 0,
25394
- "id_type": 0,
25395
- "id_category": 0,
25991
+ "id_connection": 0,
25396
25992
  "id_user": 0,
25397
- "id_subscription": 0,
25398
- "id_file": 0,
25399
- "id_thumbnail": 0,
25400
- "name": "",
25401
- "timestamp": "CURRENT_TIMESTAMP",
25402
- "date": "2019-08-02 17:21:59.435173",
25403
- "duedate": "2019-08-02",
25404
- "total_amount": 0,
25405
- "untaxed_amount": 0,
25406
- "vat": 0,
25407
- "income": true,
25408
- "readonly": true,
25993
+ "id_source": 0,
25409
25994
  "number": "",
25410
- "issuer": "",
25411
- "last_update": "2019-08-02 17:21:59.435734",
25412
- "has_file_on_website": true,
25413
- "currency": ""
25995
+ "label": "",
25996
+ "subscriber": "",
25997
+ "validity": "2019-08-02",
25998
+ "renewdate": "2019-08-02",
25999
+ "last_update": "2019-08-02 17:21:59.421714",
26000
+ "deleted": "2019-08-02 17:21:59.421772",
26001
+ "disabled": "2019-08-02 17:21:59.421828",
26002
+ "error": ""
25414
26003
  }
25415
26004
  },
25416
26005
  "Account": {
@@ -25523,6 +26112,12 @@
25523
26112
  "$ref": "#/definitions/Transaction"
25524
26113
  }
25525
26114
  },
26115
+ "transfers": {
26116
+ "type": "array",
26117
+ "items": {
26118
+ "$ref": "#/definitions/Transfer"
26119
+ }
26120
+ },
25526
26121
  "error": {
25527
26122
  "type": "string",
25528
26123
  "description": "If the last update has failed, the error code"
@@ -25542,679 +26137,365 @@
25542
26137
  },
25543
26138
  "example": {
25544
26139
  "id": 0,
25545
- "id_connection": 0,
25546
- "id_user": 0,
25547
- "id_source": 0,
25548
- "id_parent": 0,
25549
- "number": "",
25550
- "webid": "",
25551
- "original_name": "",
25552
- "balance": 0,
25553
- "coming": 0,
25554
- "display": true,
25555
- "last_update": "2019-08-02 17:21:59.440223",
25556
- "deleted": "2019-08-02 17:21:59.440285",
25557
- "disabled": "2019-08-02 17:21:59.440342",
25558
- "iban": "",
25559
- "currency": "",
25560
- "id_type": 0,
25561
- "bookmarked": false,
25562
- "name": "",
25563
- "error": "",
25564
- "usage": "",
25565
- "ownership": "",
25566
- "company_name": ""
25567
- }
25568
- },
25569
- "Project": {
25570
- "required": [
25571
- "id",
25572
- "id_user",
25573
- "id_type",
25574
- "name",
25575
- "target",
25576
- "saved",
25577
- "monthly_savings",
25578
- "comment",
25579
- "active"
25580
- ],
25581
- "type": "object",
25582
- "properties": {
25583
- "id": {
25584
- "type": "integer"
25585
- },
25586
- "id_user": {
25587
- "type": "integer"
25588
- },
25589
- "id_type": {
25590
- "type": "integer"
25591
- },
25592
- "name": {
25593
- "type": "string"
25594
- },
25595
- "target": {
25596
- "type": "number",
25597
- "format": "float"
25598
- },
25599
- "saved": {
25600
- "default": 0,
25601
- "type": "number",
25602
- "format": "float"
25603
- },
25604
- "monthly_savings": {
25605
- "type": "number",
25606
- "format": "float"
25607
- },
25608
- "comment": {
25609
- "default": "",
25610
- "type": "string"
25611
- },
25612
- "active": {
25613
- "default": true,
25614
- "type": "boolean"
25615
- }
25616
- },
25617
- "example": {
25618
- "id": 0,
25619
- "id_user": 0,
25620
- "id_type": 0,
25621
- "name": "",
25622
- "target": 0,
25623
- "saved": 0,
25624
- "monthly_savings": 0,
25625
- "comment": "",
25626
- "active": true
25627
- }
25628
- },
25629
- "Device": {
25630
- "required": [
25631
- "id",
25632
- "id_token",
25633
- "type",
25634
- "notification_token",
25635
- "last_update",
25636
- "version",
25637
- "debug"
25638
- ],
25639
- "type": "object",
25640
- "properties": {
25641
- "id": {
25642
- "type": "integer"
25643
- },
25644
- "id_token": {
25645
- "type": "integer"
25646
- },
25647
- "type": {
25648
- "type": "string"
25649
- },
25650
- "notification_token": {
25651
- "type": "string"
25652
- },
25653
- "last_update": {
25654
- "default": "CURRENT_TIMESTAMP",
25655
- "type": "string",
25656
- "format": "date-time"
25657
- },
25658
- "version": {
25659
- "type": "string"
25660
- },
25661
- "debug": {
25662
- "default": false,
25663
- "type": "boolean"
25664
- }
25665
- },
25666
- "example": {
25667
- "id": 0,
25668
- "id_token": 0,
25669
- "type": "",
25670
- "notification_token": "",
25671
- "last_update": "CURRENT_TIMESTAMP",
25672
- "version": "",
25673
- "debug": false
25674
- }
25675
- },
25676
- "Pocket": {
25677
- "required": [
25678
- "id",
25679
- "id_account",
25680
- "id_investment",
25681
- "value",
25682
- "condition"
25683
- ],
25684
- "type": "object",
25685
- "properties": {
25686
- "id": {
25687
- "type": "integer",
25688
- "description": "ID of the pocket"
25689
- },
25690
- "id_account": {
25691
- "type": "integer",
25692
- "description": "ID of the related account"
25693
- },
25694
- "id_investment": {
25695
- "type": "integer",
25696
- "description": "ID of the related investment"
25697
- },
25698
- "label": {
25699
- "type": "string",
25700
- "description": "Label of the pocket"
25701
- },
25702
- "value": {
25703
- "type": "number",
25704
- "description": "Value of the pocket",
25705
- "format": "float"
25706
- },
25707
- "quantity": {
25708
- "default": 0,
25709
- "type": "number",
25710
- "description": "Quantity of stocks",
25711
- "format": "float"
25712
- },
25713
- "availability_date": {
25714
- "type": "string",
25715
- "description": "Availability date of the pocket",
25716
- "format": "date"
25717
- },
25718
- "condition": {
25719
- "default": "inconnu",
25720
- "type": "string",
25721
- "description": "Withdrawal condition of the pocket"
25722
- },
25723
- "last_update": {
25724
- "type": "string",
25725
- "description": "Last update of the pocket",
25726
- "format": "date-time"
25727
- },
25728
- "deleted": {
25729
- "type": "string",
25730
- "description": "If set, this pocket has been removed from the website",
25731
- "format": "date-time"
25732
- }
25733
- },
25734
- "example": {
25735
- "id": 0,
25736
- "id_account": 0,
25737
- "id_investment": 0,
25738
- "label": "",
25739
- "value": 0,
25740
- "quantity": 0,
25741
- "availability_date": "2019-08-02",
25742
- "condition": "inconnu",
25743
- "last_update": "2019-08-02 17:21:59.448433",
25744
- "deleted": "2019-08-02 17:21:59.448498"
25745
- }
25746
- },
25747
- "Alert": {
25748
- "required": [
25749
- "id",
25750
- "id_user",
25751
- "timestamp",
25752
- "type",
25753
- "value"
25754
- ],
25755
- "type": "object",
25756
- "properties": {
25757
- "id": {
25758
- "type": "integer"
25759
- },
25760
- "id_user": {
25761
- "type": "integer",
25762
- "description": "ID of the related user"
25763
- },
25764
- "timestamp": {
25765
- "default": "CURRENT_TIMESTAMP",
25766
- "type": "string",
25767
- "description": "Date of the alerts emission",
25768
- "format": "date-time"
25769
- },
25770
- "type": {
25771
- "type": "string",
25772
- "description": "Type of the alert"
25773
- },
25774
- "id_transaction": {
25775
- "type": "integer",
25776
- "description": "ID of the related transaction"
25777
- },
25778
- "id_account": {
25779
- "type": "integer",
25780
- "description": "ID of the related account"
25781
- },
25782
- "value": {
25783
- "type": "number",
25784
- "description": "Amount related to the alert",
25785
- "format": "float"
25786
- },
25787
- "id_investment": {
25788
- "type": "integer",
25789
- "description": "ID of the related investment"
25790
- }
25791
- },
25792
- "example": {
25793
- "id": 0,
26140
+ "id_connection": 0,
25794
26141
  "id_user": 0,
25795
- "timestamp": "CURRENT_TIMESTAMP",
25796
- "type": "",
25797
- "id_transaction": 0,
25798
- "id_account": 0,
25799
- "value": 0,
25800
- "id_investment": 0
26142
+ "id_source": 0,
26143
+ "id_parent": 0,
26144
+ "number": "",
26145
+ "webid": "",
26146
+ "original_name": "",
26147
+ "balance": 0,
26148
+ "coming": 0,
26149
+ "display": true,
26150
+ "last_update": "2019-08-02 17:21:59.440223",
26151
+ "deleted": "2019-08-02 17:21:59.440285",
26152
+ "disabled": "2019-08-02 17:21:59.440342",
26153
+ "iban": "",
26154
+ "currency": "",
26155
+ "id_type": 0,
26156
+ "bookmarked": false,
26157
+ "name": "",
26158
+ "error": "",
26159
+ "usage": "",
26160
+ "ownership": "",
26161
+ "company_name": ""
25801
26162
  }
25802
26163
  },
25803
- "Group": {
26164
+ "Profile": {
25804
26165
  "required": [
25805
- "id"
26166
+ "id",
26167
+ "id_user",
26168
+ "role",
26169
+ "email",
26170
+ "statut",
26171
+ "admin"
25806
26172
  ],
25807
26173
  "type": "object",
25808
26174
  "properties": {
25809
26175
  "id": {
25810
26176
  "type": "integer"
25811
26177
  },
25812
- "id_parent_group": {
25813
- "type": "integer"
25814
- },
25815
- "id_logo": {
26178
+ "id_user": {
25816
26179
  "type": "integer"
25817
26180
  },
25818
- "name": {
26181
+ "role": {
26182
+ "default": "admin",
26183
+ "enum": [
26184
+ "admin",
26185
+ "ser"
26186
+ ],
25819
26187
  "type": "string"
25820
26188
  },
25821
- "url": {
26189
+ "email": {
25822
26190
  "type": "string"
25823
26191
  },
25824
- "color": {
25825
- "type": "string"
26192
+ "statut": {
26193
+ "default": 0,
26194
+ "type": "integer"
25826
26195
  },
25827
- "email": {
25828
- "type": "string"
26196
+ "admin": {
26197
+ "default": false,
26198
+ "type": "boolean"
25829
26199
  },
25830
26200
  "conf": {
25831
26201
  "type": "string"
26202
+ },
26203
+ "lang": {
26204
+ "type": "string"
25832
26205
  }
25833
26206
  },
25834
26207
  "example": {
25835
26208
  "id": 0,
25836
- "id_parent_group": 0,
25837
- "id_logo": 0,
25838
- "name": "",
25839
- "url": "",
25840
- "color": "",
25841
- "email": "",
25842
- "conf": ""
26209
+ "id_user": 0,
26210
+ "role": "admin",
26211
+ "statut": 0,
26212
+ "admin": false,
26213
+ "conf": "",
26214
+ "lang": ""
25843
26215
  }
25844
26216
  },
25845
- "TransferLog": {
26217
+ "AccountType": {
25846
26218
  "required": [
25847
26219
  "id",
25848
- "timestamp"
26220
+ "name",
26221
+ "is_invest",
26222
+ "weboob_type_id",
26223
+ "display_name_p",
26224
+ "display_name"
25849
26225
  ],
25850
26226
  "type": "object",
25851
26227
  "properties": {
25852
26228
  "id": {
25853
26229
  "type": "integer",
25854
- "description": "ID of the transfer log entry"
25855
- },
25856
- "id_transfer": {
25857
- "type": "integer",
25858
- "description": "ID of the related transfer"
25859
- },
25860
- "id_file": {
25861
- "type": "integer",
25862
- "description": "ID of the related file"
26230
+ "description": "ID of the account type"
25863
26231
  },
25864
- "request_data": {
26232
+ "name": {
25865
26233
  "type": "string",
25866
- "description": "Data stored related to user who has requested the transfer"
26234
+ "description": "Name of the account type"
25867
26235
  },
25868
- "state": {
25869
- "type": "string",
25870
- "description": "State of the transfer (created, scheduled, validating, pending, done, canceled, error, bug)"
26236
+ "is_invest": {
26237
+ "default": false,
26238
+ "type": "boolean",
26239
+ "description": "Is it an investment account"
25871
26240
  },
25872
- "error": {
25873
- "type": "string",
25874
- "description": "Error message during transfer, if any"
26241
+ "weboob_type_id": {
26242
+ "type": "integer",
26243
+ "description": "Map to the weboob_type_id"
25875
26244
  },
25876
- "timestamp": {
25877
- "default": "CURRENT_TIMESTAMP",
26245
+ "display_name_p": {
25878
26246
  "type": "string",
25879
- "description": "Timestamp of the log",
25880
- "format": "date-time"
26247
+ "description": "Name to display in plurial"
25881
26248
  },
25882
- "fields": {
26249
+ "display_name": {
25883
26250
  "type": "string",
25884
- "description": "Fields for transfer in additionalInformationNeeded state with background option"
25885
- }
25886
- },
25887
- "example": {
25888
- "id": 0,
25889
- "id_transfer": 0,
25890
- "id_file": 0,
25891
- "request_data": "",
25892
- "state": "",
25893
- "error": "",
25894
- "timestamp": "CURRENT_TIMESTAMP"
25895
- }
25896
- },
25897
- "TransactionInformation": {
25898
- "required": [
25899
- "id",
25900
- "id_transaction",
25901
- "key"
25902
- ],
25903
- "type": "object",
25904
- "properties": {
25905
- "id": {
25906
- "type": "integer",
25907
- "description": "ID of this transaction information"
25908
- },
25909
- "id_transaction": {
25910
- "type": "integer",
25911
- "description": "ID of the related transaction"
26251
+ "description": "Name to display in singular"
25912
26252
  },
25913
- "key": {
26253
+ "color": {
25914
26254
  "type": "string",
25915
- "description": "Key of the transaction information"
26255
+ "description": "Color of the account type (hexdecimal)"
25916
26256
  },
25917
- "value": {
25918
- "type": "string",
25919
- "description": "Value of the transaction information"
26257
+ "id_parent": {
26258
+ "type": "integer",
26259
+ "description": "Id of the parent type"
25920
26260
  }
25921
26261
  },
25922
26262
  "example": {
25923
26263
  "id": 0,
25924
- "id_transaction": 0,
25925
- "key": "",
25926
- "value": ""
26264
+ "name": "",
26265
+ "is_invest": false,
26266
+ "weboob_type_id": 0,
26267
+ "display_name_p": "",
26268
+ "display_name": "",
26269
+ "color": "",
26270
+ "id_parent": 0
25927
26271
  }
25928
26272
  },
25929
- "InvestmentValue": {
26273
+ "Project": {
25930
26274
  "required": [
25931
26275
  "id",
25932
- "id_investment",
25933
- "vdate",
25934
- "unitvalue"
26276
+ "id_user",
26277
+ "id_type",
26278
+ "name",
26279
+ "target",
26280
+ "saved",
26281
+ "monthly_savings",
26282
+ "comment",
26283
+ "active"
25935
26284
  ],
25936
26285
  "type": "object",
25937
26286
  "properties": {
25938
26287
  "id": {
25939
- "type": "integer",
25940
- "description": "ID of the value"
26288
+ "type": "integer"
25941
26289
  },
25942
- "id_investment": {
25943
- "type": "integer",
25944
- "description": "ID of the related investment"
26290
+ "id_user": {
26291
+ "type": "integer"
25945
26292
  },
25946
- "vdate": {
25947
- "type": "string",
25948
- "description": "Date of this value",
25949
- "format": "date"
26293
+ "id_type": {
26294
+ "type": "integer"
25950
26295
  },
25951
- "unitvalue": {
26296
+ "name": {
26297
+ "type": "string"
26298
+ },
26299
+ "target": {
25952
26300
  "type": "number",
25953
- "description": "Value on this date",
25954
26301
  "format": "float"
25955
26302
  },
25956
- "original_currency": {
25957
- "type": "object",
25958
- "description": "Original currency"
26303
+ "saved": {
26304
+ "default": 0,
26305
+ "type": "number",
26306
+ "format": "float"
25959
26307
  },
25960
- "original_unitvalue": {
26308
+ "monthly_savings": {
25961
26309
  "type": "number",
25962
- "description": "Value on this date, in the original currency",
25963
26310
  "format": "float"
26311
+ },
26312
+ "comment": {
26313
+ "default": "",
26314
+ "type": "string"
26315
+ },
26316
+ "active": {
26317
+ "default": true,
26318
+ "type": "boolean"
25964
26319
  }
25965
26320
  },
25966
26321
  "example": {
25967
26322
  "id": 0,
25968
- "id_investment": 0,
25969
- "vdate": "2019-08-02",
25970
- "unitvalue": 0,
25971
- "original_currency": "",
25972
- "original_unitvalue": 0
26323
+ "id_user": 0,
26324
+ "id_type": 0,
26325
+ "name": "",
26326
+ "target": 0,
26327
+ "saved": 0,
26328
+ "monthly_savings": 0,
26329
+ "comment": "",
26330
+ "active": true
25973
26331
  }
25974
26332
  },
25975
- "RecipientLog": {
26333
+ "Device": {
25976
26334
  "required": [
25977
26335
  "id",
25978
- "timestamp"
26336
+ "id_token",
26337
+ "type",
26338
+ "notification_token",
26339
+ "last_update",
26340
+ "version",
26341
+ "debug"
25979
26342
  ],
25980
26343
  "type": "object",
25981
26344
  "properties": {
25982
26345
  "id": {
25983
- "type": "integer",
25984
- "description": "ID of the transfer log entry"
25985
- },
25986
- "id_recipient": {
25987
- "type": "integer",
25988
- "description": "ID of the related recipient"
25989
- },
25990
- "id_file": {
25991
- "type": "integer",
25992
- "description": "ID of the related file"
26346
+ "type": "integer"
25993
26347
  },
25994
- "request_data": {
25995
- "type": "string",
25996
- "description": "Data stored related to user who has requested the recipient addition"
26348
+ "id_token": {
26349
+ "type": "integer"
25997
26350
  },
25998
- "step": {
25999
- "type": "string",
26000
- "description": "Step of recipient addition, (add_recipient, asking_field, recipient addition validated, creation, storing_files)"
26351
+ "type": {
26352
+ "type": "string"
26001
26353
  },
26002
- "error": {
26003
- "type": "string",
26004
- "description": "Error message during recipient addition, if any"
26354
+ "notification_token": {
26355
+ "type": "string"
26005
26356
  },
26006
- "timestamp": {
26357
+ "last_update": {
26007
26358
  "default": "CURRENT_TIMESTAMP",
26008
26359
  "type": "string",
26009
- "description": "Timestamp of the log",
26010
26360
  "format": "date-time"
26011
26361
  },
26012
- "fields": {
26013
- "type": "string",
26014
- "description": "Fields for recipient in additionalInformationNeeded state with background option"
26362
+ "version": {
26363
+ "type": "string"
26364
+ },
26365
+ "debug": {
26366
+ "default": false,
26367
+ "type": "boolean"
26015
26368
  }
26016
26369
  },
26017
26370
  "example": {
26018
26371
  "id": 0,
26019
- "id_recipient": 0,
26020
- "id_file": 0,
26021
- "request_data": "",
26022
- "step": "",
26023
- "error": "",
26024
- "timestamp": "CURRENT_TIMESTAMP"
26372
+ "id_token": 0,
26373
+ "type": "",
26374
+ "notification_token": "",
26375
+ "last_update": "CURRENT_TIMESTAMP",
26376
+ "version": "",
26377
+ "debug": false
26025
26378
  }
26026
26379
  },
26027
- "SubscriptionLog": {
26380
+ "Group": {
26028
26381
  "required": [
26029
- "id",
26030
- "id_subscription",
26031
- "timestamp"
26382
+ "id"
26032
26383
  ],
26033
26384
  "type": "object",
26034
26385
  "properties": {
26035
26386
  "id": {
26036
- "type": "integer",
26037
- "description": "ID of the log"
26387
+ "type": "integer"
26038
26388
  },
26039
- "id_subscription": {
26040
- "type": "integer",
26041
- "description": "ID of the related subscription"
26389
+ "id_parent_group": {
26390
+ "type": "integer"
26042
26391
  },
26043
- "timestamp": {
26044
- "default": "CURRENT_TIMESTAMP",
26045
- "type": "string",
26046
- "description": "Timestamp of log",
26047
- "format": "date-time"
26392
+ "id_logo": {
26393
+ "type": "integer"
26048
26394
  },
26049
- "nb_docs": {
26050
- "type": "integer",
26051
- "description": "Number of docs on the subscription"
26395
+ "name": {
26396
+ "type": "string"
26052
26397
  },
26053
- "id_connection_log": {
26054
- "type": "integer",
26055
- "description": "ID of the related connection log"
26398
+ "url": {
26399
+ "type": "string"
26056
26400
  },
26057
- "error": {
26058
- "type": "string",
26059
- "description": "If fail, contains the error code"
26401
+ "color": {
26402
+ "type": "string"
26060
26403
  },
26061
- "error_message": {
26062
- "type": "string",
26063
- "description": "If fail, error message received from provider"
26404
+ "email": {
26405
+ "type": "string"
26064
26406
  },
26065
- "id_source": {
26066
- "type": "integer",
26067
- "description": "ID of the related connection source"
26407
+ "conf": {
26408
+ "type": "string"
26068
26409
  }
26069
26410
  },
26070
26411
  "example": {
26071
26412
  "id": 0,
26072
- "id_subscription": 0,
26073
- "timestamp": "CURRENT_TIMESTAMP",
26074
- "nb_docs": 0,
26075
- "id_connection_log": 0,
26076
- "error": "",
26077
- "error_message": "",
26078
- "id_source": 0
26413
+ "id_parent_group": 0,
26414
+ "id_logo": 0,
26415
+ "name": "",
26416
+ "url": "",
26417
+ "color": "",
26418
+ "email": "",
26419
+ "conf": ""
26079
26420
  }
26080
26421
  },
26081
- "ConnectionSource": {
26422
+ "Alert": {
26082
26423
  "required": [
26083
26424
  "id",
26084
- "id_connection",
26085
- "id_connector_source",
26086
- "name",
26087
- "created"
26425
+ "id_user",
26426
+ "timestamp",
26427
+ "type",
26428
+ "value"
26088
26429
  ],
26089
26430
  "type": "object",
26090
26431
  "properties": {
26091
26432
  "id": {
26092
- "type": "integer",
26093
- "description": "ID of connection"
26094
- },
26095
- "id_connection": {
26096
- "type": "integer",
26097
- "description": "ID of the related connection"
26433
+ "type": "integer"
26098
26434
  },
26099
- "id_connector_source": {
26435
+ "id_user": {
26100
26436
  "type": "integer",
26101
- "description": "ID of the related connector source"
26102
- },
26103
- "name": {
26104
- "type": "string",
26105
- "description": "Name of the connection source"
26106
- },
26107
- "last_update": {
26108
- "type": "string",
26109
- "description": "Last successful update",
26110
- "format": "date-time"
26437
+ "description": "ID of the related user"
26111
26438
  },
26112
- "disabled": {
26439
+ "timestamp": {
26440
+ "default": "CURRENT_TIMESTAMP",
26113
26441
  "type": "string",
26114
- "description": "This source is not used to synchronize the connection",
26442
+ "description": "Date of the alerts emission",
26115
26443
  "format": "date-time"
26116
26444
  },
26117
- "created": {
26118
- "default": "<function <lambda> at 0x7f8894cfe7d0>",
26445
+ "type": {
26119
26446
  "type": "string",
26120
- "description": "Creation date of the connection source",
26121
- "format": "date-time"
26447
+ "description": "Type of the alert"
26122
26448
  },
26123
- "state": {
26124
- "type": "string",
26125
- "description": "If the last update has failed, the state code"
26449
+ "id_transaction": {
26450
+ "type": "integer",
26451
+ "description": "ID of the related transaction"
26126
26452
  },
26127
- "access_expire": {
26128
- "type": "string",
26129
- "description": "Expiration date of the access",
26130
- "format": "date-time"
26453
+ "id_account": {
26454
+ "type": "integer",
26455
+ "description": "ID of the related account"
26131
26456
  },
26132
- "expire": {
26133
- "type": "string",
26134
- "description": "Expiration of the connection source. Used to purge the connection in case completion was not finished",
26135
- "format": "date-time"
26457
+ "value": {
26458
+ "type": "number",
26459
+ "description": "Amount related to the alert",
26460
+ "format": "float"
26136
26461
  },
26137
- "next_try": {
26138
- "type": "string",
26139
- "description": "Date of next synchronization",
26140
- "format": "date-time"
26462
+ "id_investment": {
26463
+ "type": "integer",
26464
+ "description": "ID of the related investment"
26141
26465
  }
26142
26466
  },
26143
26467
  "example": {
26144
26468
  "id": 0,
26145
- "id_connection": 0,
26146
- "id_connector_source": 0,
26147
- "name": "",
26148
- "last_update": "2019-12-27 16:17:55.317583",
26149
- "disabled": "2019-12-27 16:17:55.317658",
26150
- "created": "<function <lambda> at 0x7f8894cfe7d0>",
26151
- "state": "",
26152
- "access_expire": "2019-12-27 16:17:55.317849",
26153
- "expire": "2019-12-27 16:17:55.317911",
26154
- "next_try": "2019-12-27 16:17:55.318118"
26469
+ "id_user": 0,
26470
+ "timestamp": "CURRENT_TIMESTAMP",
26471
+ "type": "",
26472
+ "id_transaction": 0,
26473
+ "id_account": 0,
26474
+ "value": 0,
26475
+ "id_investment": 0
26155
26476
  }
26156
26477
  },
26157
- "AccountLog": {
26478
+ "ProjectType": {
26158
26479
  "required": [
26159
26480
  "id",
26160
- "id_account",
26161
- "balance",
26162
- "timestamp"
26481
+ "name"
26163
26482
  ],
26164
26483
  "type": "object",
26165
26484
  "properties": {
26166
26485
  "id": {
26167
- "type": "integer",
26168
- "description": "ID of the log"
26169
- },
26170
- "id_account": {
26171
- "type": "integer",
26172
- "description": "ID of the related account"
26173
- },
26174
- "id_connector": {
26175
- "type": "integer",
26176
- "description": "provider id"
26177
- },
26178
- "balance": {
26179
- "type": "number",
26180
- "description": "Balanced recorded",
26181
- "format": "float"
26182
- },
26183
- "coming": {
26184
- "default": 0,
26185
- "type": "number",
26186
- "description": "Coming debit recorded",
26187
- "format": "float"
26188
- },
26189
- "timestamp": {
26190
- "default": "CURRENT_TIMESTAMP",
26191
- "type": "string",
26192
- "description": "Timestamp of log",
26193
- "format": "date-time"
26194
- },
26195
- "error": {
26196
- "type": "string",
26197
- "description": "If fail, contains the error code"
26486
+ "type": "integer"
26198
26487
  },
26199
- "error_message": {
26200
- "type": "string",
26201
- "description": "If fail, error message received from bank or provider"
26488
+ "name": {
26489
+ "type": "string"
26202
26490
  },
26203
- "id_connection_log": {
26204
- "type": "integer",
26205
- "description": "ID of the related connection log"
26491
+ "icon_url": {
26492
+ "type": "string"
26206
26493
  }
26207
26494
  },
26208
26495
  "example": {
26209
26496
  "id": 0,
26210
- "id_account": 0,
26211
- "id_connector": 0,
26212
- "balance": 0,
26213
- "coming": 0,
26214
- "timestamp": "CURRENT_TIMESTAMP",
26215
- "error": "",
26216
- "error_message": "",
26217
- "id_connection_log": 0
26497
+ "name": "",
26498
+ "icon_url": ""
26218
26499
  }
26219
26500
  },
26220
26501
  "Currency": {
@@ -26357,24 +26638,29 @@
26357
26638
  "timestamp": "CURRENT_TIMESTAMP"
26358
26639
  }
26359
26640
  },
26360
- "OidcWhitelist": {
26641
+ "DocumentType": {
26361
26642
  "required": [
26362
26643
  "id",
26363
- "redirect_uri"
26644
+ "name",
26645
+ "attacheable"
26364
26646
  ],
26365
26647
  "type": "object",
26366
26648
  "properties": {
26367
26649
  "id": {
26368
26650
  "type": "integer"
26369
26651
  },
26370
- "redirect_uri": {
26371
- "type": "string",
26372
- "description": "authorized redirect uri"
26652
+ "name": {
26653
+ "type": "string"
26654
+ },
26655
+ "attacheable": {
26656
+ "default": true,
26657
+ "type": "boolean"
26373
26658
  }
26374
26659
  },
26375
26660
  "example": {
26376
26661
  "id": 0,
26377
- "redirect_uri": ""
26662
+ "name": "",
26663
+ "attacheable": true
26378
26664
  }
26379
26665
  }
26380
26666
  },