budgea_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +89 -0
  4. data/README.md +619 -0
  5. data/Rakefile +13 -0
  6. data/budgea_client.gemspec +35 -0
  7. data/docs/Access.md +12 -0
  8. data/docs/Account.md +25 -0
  9. data/docs/AccountLog.md +15 -0
  10. data/docs/AccountType.md +15 -0
  11. data/docs/AdministrationApi.md +944 -0
  12. data/docs/Alert.md +15 -0
  13. data/docs/AuthenticationApi.md +398 -0
  14. data/docs/Bank.md +18 -0
  15. data/docs/BankCategory.md +9 -0
  16. data/docs/BanksApi.md +6558 -0
  17. data/docs/Category.md +17 -0
  18. data/docs/Client.md +18 -0
  19. data/docs/Connection.md +16 -0
  20. data/docs/ConnectionContact.md +17 -0
  21. data/docs/ConnectionLog.md +21 -0
  22. data/docs/ConnectionsApi.md +934 -0
  23. data/docs/ConnectorLogo.md +11 -0
  24. data/docs/Currency.md +10 -0
  25. data/docs/Device.md +14 -0
  26. data/docs/Document.md +29 -0
  27. data/docs/DocumentType.md +10 -0
  28. data/docs/DocumentsApi.md +5228 -0
  29. data/docs/Field.md +15 -0
  30. data/docs/File.md +11 -0
  31. data/docs/Group.md +15 -0
  32. data/docs/HashTable.md +11 -0
  33. data/docs/InlineResponse200.md +8 -0
  34. data/docs/InlineResponse2001.md +9 -0
  35. data/docs/InlineResponse20010.md +8 -0
  36. data/docs/InlineResponse20011.md +8 -0
  37. data/docs/InlineResponse20012.md +8 -0
  38. data/docs/InlineResponse20013.md +8 -0
  39. data/docs/InlineResponse20014.md +8 -0
  40. data/docs/InlineResponse20015.md +8 -0
  41. data/docs/InlineResponse20016.md +8 -0
  42. data/docs/InlineResponse20017.md +8 -0
  43. data/docs/InlineResponse20018.md +8 -0
  44. data/docs/InlineResponse20019.md +8 -0
  45. data/docs/InlineResponse2002.md +10 -0
  46. data/docs/InlineResponse20020.md +8 -0
  47. data/docs/InlineResponse20021.md +8 -0
  48. data/docs/InlineResponse20022.md +8 -0
  49. data/docs/InlineResponse20023.md +8 -0
  50. data/docs/InlineResponse20024.md +8 -0
  51. data/docs/InlineResponse20025.md +8 -0
  52. data/docs/InlineResponse20026.md +8 -0
  53. data/docs/InlineResponse20027.md +8 -0
  54. data/docs/InlineResponse20028.md +8 -0
  55. data/docs/InlineResponse20029.md +8 -0
  56. data/docs/InlineResponse2003.md +10 -0
  57. data/docs/InlineResponse20030.md +8 -0
  58. data/docs/InlineResponse20031.md +8 -0
  59. data/docs/InlineResponse20032.md +8 -0
  60. data/docs/InlineResponse20033.md +8 -0
  61. data/docs/InlineResponse2004.md +12 -0
  62. data/docs/InlineResponse2005.md +9 -0
  63. data/docs/InlineResponse2006.md +10 -0
  64. data/docs/InlineResponse2007.md +8 -0
  65. data/docs/InlineResponse2008.md +8 -0
  66. data/docs/InlineResponse2009.md +8 -0
  67. data/docs/Investment.md +32 -0
  68. data/docs/InvestmentValue.md +13 -0
  69. data/docs/Invite.md +13 -0
  70. data/docs/LockedUser.md +10 -0
  71. data/docs/OCRApi.md +117 -0
  72. data/docs/OIDCApi.md +167 -0
  73. data/docs/OidcWhitelist.md +9 -0
  74. data/docs/PFMApi.md +2204 -0
  75. data/docs/Pocket.md +17 -0
  76. data/docs/Profile.md +15 -0
  77. data/docs/Project.md +16 -0
  78. data/docs/ProjectType.md +10 -0
  79. data/docs/ProvidersApi.md +7014 -0
  80. data/docs/Recipient.md +22 -0
  81. data/docs/RecipientsApi.md +244 -0
  82. data/docs/Security.md +12 -0
  83. data/docs/Subscription.md +18 -0
  84. data/docs/TermsApi.md +218 -0
  85. data/docs/TermsOfService.md +12 -0
  86. data/docs/Transaction.md +33 -0
  87. data/docs/TransactionInformation.md +11 -0
  88. data/docs/TransactionsCluster.md +16 -0
  89. data/docs/Transfer.md +23 -0
  90. data/docs/TransfersApi.md +2404 -0
  91. data/docs/User.md +10 -0
  92. data/docs/UserAlert.md +21 -0
  93. data/docs/UsersManagementApi.md +608 -0
  94. data/docs/WealthApi.md +828 -0
  95. data/docs/Webhook.md +15 -0
  96. data/git_push.sh +55 -0
  97. data/lib/budgea_client.rb +118 -0
  98. data/lib/budgea_client/api/administration_api.rb +1059 -0
  99. data/lib/budgea_client/api/authentication_api.rb +467 -0
  100. data/lib/budgea_client/api/banks_api.rb +7837 -0
  101. data/lib/budgea_client/api/connections_api.rb +1088 -0
  102. data/lib/budgea_client/api/documents_api.rb +6637 -0
  103. data/lib/budgea_client/api/ocr_api.rb +141 -0
  104. data/lib/budgea_client/api/oidc_api.rb +195 -0
  105. data/lib/budgea_client/api/pfm_api.rb +2630 -0
  106. data/lib/budgea_client/api/providers_api.rb +8694 -0
  107. data/lib/budgea_client/api/recipients_api.rb +293 -0
  108. data/lib/budgea_client/api/terms_api.rb +245 -0
  109. data/lib/budgea_client/api/transfers_api.rb +2941 -0
  110. data/lib/budgea_client/api/users_management_api.rb +695 -0
  111. data/lib/budgea_client/api/wealth_api.rb +994 -0
  112. data/lib/budgea_client/api_client.rb +378 -0
  113. data/lib/budgea_client/api_error.rb +28 -0
  114. data/lib/budgea_client/configuration.rb +192 -0
  115. data/lib/budgea_client/models/access.rb +224 -0
  116. data/lib/budgea_client/models/account.rb +383 -0
  117. data/lib/budgea_client/models/account_log.rb +266 -0
  118. data/lib/budgea_client/models/account_type.rb +281 -0
  119. data/lib/budgea_client/models/alert.rb +273 -0
  120. data/lib/budgea_client/models/bank.rb +308 -0
  121. data/lib/budgea_client/models/bank_category.rb +201 -0
  122. data/lib/budgea_client/models/category.rb +299 -0
  123. data/lib/budgea_client/models/client.rb +305 -0
  124. data/lib/budgea_client/models/connection.rb +276 -0
  125. data/lib/budgea_client/models/connection_contact.rb +274 -0
  126. data/lib/budgea_client/models/connection_log.rb +324 -0
  127. data/lib/budgea_client/models/connector_logo.rb +223 -0
  128. data/lib/budgea_client/models/currency.rb +216 -0
  129. data/lib/budgea_client/models/device.rb +269 -0
  130. data/lib/budgea_client/models/document.rb +398 -0
  131. data/lib/budgea_client/models/document_type.rb +213 -0
  132. data/lib/budgea_client/models/field.rb +273 -0
  133. data/lib/budgea_client/models/file.rb +225 -0
  134. data/lib/budgea_client/models/group.rb +246 -0
  135. data/lib/budgea_client/models/hash_table.rb +227 -0
  136. data/lib/budgea_client/models/inline_response_200.rb +185 -0
  137. data/lib/budgea_client/models/inline_response_200_1.rb +199 -0
  138. data/lib/budgea_client/models/inline_response_200_10.rb +185 -0
  139. data/lib/budgea_client/models/inline_response_200_11.rb +185 -0
  140. data/lib/budgea_client/models/inline_response_200_12.rb +185 -0
  141. data/lib/budgea_client/models/inline_response_200_13.rb +185 -0
  142. data/lib/budgea_client/models/inline_response_200_14.rb +185 -0
  143. data/lib/budgea_client/models/inline_response_200_15.rb +185 -0
  144. data/lib/budgea_client/models/inline_response_200_16.rb +185 -0
  145. data/lib/budgea_client/models/inline_response_200_17.rb +185 -0
  146. data/lib/budgea_client/models/inline_response_200_18.rb +185 -0
  147. data/lib/budgea_client/models/inline_response_200_19.rb +185 -0
  148. data/lib/budgea_client/models/inline_response_200_2.rb +209 -0
  149. data/lib/budgea_client/models/inline_response_200_20.rb +185 -0
  150. data/lib/budgea_client/models/inline_response_200_21.rb +185 -0
  151. data/lib/budgea_client/models/inline_response_200_22.rb +185 -0
  152. data/lib/budgea_client/models/inline_response_200_23.rb +185 -0
  153. data/lib/budgea_client/models/inline_response_200_24.rb +185 -0
  154. data/lib/budgea_client/models/inline_response_200_25.rb +185 -0
  155. data/lib/budgea_client/models/inline_response_200_26.rb +185 -0
  156. data/lib/budgea_client/models/inline_response_200_27.rb +185 -0
  157. data/lib/budgea_client/models/inline_response_200_28.rb +185 -0
  158. data/lib/budgea_client/models/inline_response_200_29.rb +185 -0
  159. data/lib/budgea_client/models/inline_response_200_3.rb +214 -0
  160. data/lib/budgea_client/models/inline_response_200_30.rb +185 -0
  161. data/lib/budgea_client/models/inline_response_200_31.rb +185 -0
  162. data/lib/budgea_client/models/inline_response_200_32.rb +185 -0
  163. data/lib/budgea_client/models/inline_response_200_33.rb +185 -0
  164. data/lib/budgea_client/models/inline_response_200_4.rb +239 -0
  165. data/lib/budgea_client/models/inline_response_200_5.rb +199 -0
  166. data/lib/budgea_client/models/inline_response_200_6.rb +214 -0
  167. data/lib/budgea_client/models/inline_response_200_7.rb +185 -0
  168. data/lib/budgea_client/models/inline_response_200_8.rb +185 -0
  169. data/lib/budgea_client/models/inline_response_200_9.rb +185 -0
  170. data/lib/budgea_client/models/investment.rb +449 -0
  171. data/lib/budgea_client/models/investment_value.rb +249 -0
  172. data/lib/budgea_client/models/invite.rb +233 -0
  173. data/lib/budgea_client/models/locked_user.rb +206 -0
  174. data/lib/budgea_client/models/oidc_whitelist.rb +198 -0
  175. data/lib/budgea_client/models/pocket.rb +298 -0
  176. data/lib/budgea_client/models/profile.rb +308 -0
  177. data/lib/budgea_client/models/project.rb +301 -0
  178. data/lib/budgea_client/models/project_type.rb +206 -0
  179. data/lib/budgea_client/models/recipient.rb +343 -0
  180. data/lib/budgea_client/models/security.rb +229 -0
  181. data/lib/budgea_client/models/subscription.rb +299 -0
  182. data/lib/budgea_client/models/terms_of_service.rb +229 -0
  183. data/lib/budgea_client/models/transaction.rb +507 -0
  184. data/lib/budgea_client/models/transaction_information.rb +224 -0
  185. data/lib/budgea_client/models/transactions_cluster.rb +277 -0
  186. data/lib/budgea_client/models/transfer.rb +354 -0
  187. data/lib/budgea_client/models/user.rb +244 -0
  188. data/lib/budgea_client/models/user_alert.rb +333 -0
  189. data/lib/budgea_client/models/webhook.rb +264 -0
  190. data/lib/budgea_client/version.rb +5 -0
  191. data/pkg/budgea_client-1.0.0.gem +0 -0
  192. data/spec/api/administration_api_spec.rb +271 -0
  193. data/spec/api/authentication_api_spec.rb +126 -0
  194. data/spec/api/banks_api_spec.rb +1787 -0
  195. data/spec/api/connections_api_spec.rb +279 -0
  196. data/spec/api/documents_api_spec.rb +1557 -0
  197. data/spec/api/ocr_api_spec.rb +54 -0
  198. data/spec/api/oidc_api_spec.rb +65 -0
  199. data/spec/api/pfm_api_spec.rb +613 -0
  200. data/spec/api/providers_api_spec.rb +2029 -0
  201. data/spec/api/recipients_api_spec.rb +89 -0
  202. data/spec/api/terms_api_spec.rb +79 -0
  203. data/spec/api/transfers_api_spec.rb +661 -0
  204. data/spec/api/users_management_api_spec.rb +177 -0
  205. data/spec/api/wealth_api_spec.rb +246 -0
  206. data/spec/api_client_spec.rb +216 -0
  207. data/spec/configuration_spec.rb +32 -0
  208. data/spec/models/access_spec.rb +56 -0
  209. data/spec/models/account_log_spec.rb +74 -0
  210. data/spec/models/account_spec.rb +134 -0
  211. data/spec/models/account_type_spec.rb +74 -0
  212. data/spec/models/alert_spec.rb +74 -0
  213. data/spec/models/bank_category_spec.rb +38 -0
  214. data/spec/models/bank_spec.rb +92 -0
  215. data/spec/models/category_spec.rb +86 -0
  216. data/spec/models/client_spec.rb +92 -0
  217. data/spec/models/connection_contact_spec.rb +86 -0
  218. data/spec/models/connection_log_spec.rb +110 -0
  219. data/spec/models/connection_spec.rb +80 -0
  220. data/spec/models/connector_logo_spec.rb +50 -0
  221. data/spec/models/currency_spec.rb +44 -0
  222. data/spec/models/device_spec.rb +68 -0
  223. data/spec/models/document_spec.rb +158 -0
  224. data/spec/models/document_type_spec.rb +44 -0
  225. data/spec/models/field_spec.rb +74 -0
  226. data/spec/models/file_spec.rb +50 -0
  227. data/spec/models/group_spec.rb +74 -0
  228. data/spec/models/hash_table_spec.rb +50 -0
  229. data/spec/models/inline_response_200_10_spec.rb +32 -0
  230. data/spec/models/inline_response_200_11_spec.rb +32 -0
  231. data/spec/models/inline_response_200_12_spec.rb +32 -0
  232. data/spec/models/inline_response_200_13_spec.rb +32 -0
  233. data/spec/models/inline_response_200_14_spec.rb +32 -0
  234. data/spec/models/inline_response_200_15_spec.rb +32 -0
  235. data/spec/models/inline_response_200_16_spec.rb +32 -0
  236. data/spec/models/inline_response_200_17_spec.rb +32 -0
  237. data/spec/models/inline_response_200_18_spec.rb +32 -0
  238. data/spec/models/inline_response_200_19_spec.rb +32 -0
  239. data/spec/models/inline_response_200_1_spec.rb +38 -0
  240. data/spec/models/inline_response_200_20_spec.rb +32 -0
  241. data/spec/models/inline_response_200_21_spec.rb +32 -0
  242. data/spec/models/inline_response_200_22_spec.rb +32 -0
  243. data/spec/models/inline_response_200_23_spec.rb +32 -0
  244. data/spec/models/inline_response_200_24_spec.rb +32 -0
  245. data/spec/models/inline_response_200_25_spec.rb +32 -0
  246. data/spec/models/inline_response_200_26_spec.rb +32 -0
  247. data/spec/models/inline_response_200_27_spec.rb +32 -0
  248. data/spec/models/inline_response_200_28_spec.rb +32 -0
  249. data/spec/models/inline_response_200_29_spec.rb +32 -0
  250. data/spec/models/inline_response_200_2_spec.rb +44 -0
  251. data/spec/models/inline_response_200_30_spec.rb +32 -0
  252. data/spec/models/inline_response_200_31_spec.rb +32 -0
  253. data/spec/models/inline_response_200_32_spec.rb +32 -0
  254. data/spec/models/inline_response_200_33_spec.rb +32 -0
  255. data/spec/models/inline_response_200_3_spec.rb +44 -0
  256. data/spec/models/inline_response_200_4_spec.rb +56 -0
  257. data/spec/models/inline_response_200_5_spec.rb +38 -0
  258. data/spec/models/inline_response_200_6_spec.rb +44 -0
  259. data/spec/models/inline_response_200_7_spec.rb +32 -0
  260. data/spec/models/inline_response_200_8_spec.rb +32 -0
  261. data/spec/models/inline_response_200_9_spec.rb +32 -0
  262. data/spec/models/inline_response_200_spec.rb +32 -0
  263. data/spec/models/investment_spec.rb +176 -0
  264. data/spec/models/investment_value_spec.rb +62 -0
  265. data/spec/models/invite_spec.rb +62 -0
  266. data/spec/models/locked_user_spec.rb +44 -0
  267. data/spec/models/oidc_whitelist_spec.rb +38 -0
  268. data/spec/models/pocket_spec.rb +86 -0
  269. data/spec/models/profile_spec.rb +78 -0
  270. data/spec/models/project_spec.rb +80 -0
  271. data/spec/models/project_type_spec.rb +44 -0
  272. data/spec/models/recipient_spec.rb +116 -0
  273. data/spec/models/security_spec.rb +56 -0
  274. data/spec/models/subscription_spec.rb +92 -0
  275. data/spec/models/terms_of_service_spec.rb +56 -0
  276. data/spec/models/transaction_information_spec.rb +50 -0
  277. data/spec/models/transaction_spec.rb +182 -0
  278. data/spec/models/transactions_cluster_spec.rb +80 -0
  279. data/spec/models/transfer_spec.rb +122 -0
  280. data/spec/models/user_alert_spec.rb +110 -0
  281. data/spec/models/user_spec.rb +48 -0
  282. data/spec/models/webhook_spec.rb +74 -0
  283. data/spec/spec_helper.rb +51 -0
  284. metadata +599 -0
@@ -0,0 +1,13 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
9
+ begin
10
+ require 'bundler/gem_tasks'
11
+ rescue LoadError
12
+ # no rspec available
13
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
+ require 'budgea_client/version'
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = 'budgea_client'
8
+ s.version = BudgeaClient::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ['Chaker Nakhli']
11
+ s.email = ['chaker.nakhli@cashbee.fr']
12
+ s.homepage = 'https://github.com/cashbee-team/budgea_client'
13
+ s.summary = 'Budgea API Documentation Ruby Gem'
14
+ s.description = 'Budgea API Documentation Ruby Gem'
15
+ s.license = 'Apache 2.0'
16
+ s.required_ruby_version = '>= 1.9'
17
+
18
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
19
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
20
+
21
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
22
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
23
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
24
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
25
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
26
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
27
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
28
+
29
+ s.files = `find *`.split("\n").uniq.sort.reject(&:empty?)
30
+ s.test_files = `find spec/*`.split("\n")
31
+ s.executables = []
32
+ s.require_paths = ['lib']
33
+
34
+ s.metadata['yard.run'] = 'yri' # use "yard" to build full HTML docs.
35
+ end
@@ -0,0 +1,12 @@
1
+ # BudgeaClient::Access
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **id_user** | **Integer** | | [optional]
8
+ **id_profile** | **Integer** | |
9
+ **id_role** | **Integer** | | [optional]
10
+ **email** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,25 @@
1
+ # BudgeaClient::Account
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | ID of the account |
7
+ **id_connection** | **Integer** | ID of the related connection | [optional]
8
+ **id_user** | **Integer** | ID of the related user |
9
+ **id_parent** | **Integer** | Id of the parent account | [optional]
10
+ **number** | **String** | Account number | [optional]
11
+ **original_name** | **String** | Original name of the account on the bank |
12
+ **balance** | **Float** | Balance of the account |
13
+ **coming** | **Float** | Amount of coming operations not yet debited | [optional] [default to 0.0]
14
+ **display** | **BOOLEAN** | Display this account in accounts list | [default to true]
15
+ **last_update** | **DateTime** | Last successful update of the account | [optional]
16
+ **deleted** | **DateTime** | This account is not found on the website anymore | [optional]
17
+ **disabled** | **DateTime** | This account has been deleted by user and will not be synchronized anymore | [optional]
18
+ **iban** | **String** | Account IBAN | [optional]
19
+ **currency** | **Object** | Account currency | [optional]
20
+ **id_type** | **Integer** | ID of the account type | [optional]
21
+ **bookmarked** | **Integer** | This account has been bookmarked by user |
22
+ **name** | **String** | Name of the account | [optional]
23
+ **error** | **String** | If the last update has failed, the error code | [optional]
24
+
25
+
@@ -0,0 +1,15 @@
1
+ # BudgeaClient::AccountLog
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id_account** | **Integer** | ID of the related account |
7
+ **id_bank** | **Integer** | provider id | [optional]
8
+ **balance** | **Float** | Balanced recorded |
9
+ **coming** | **Float** | Coming debit recorded | [optional] [default to 0.0]
10
+ **timestamp** | **DateTime** | Timestamp of log |
11
+ **error** | **String** | If fail, contains the error code | [optional]
12
+ **error_message** | **String** | If fail, error message received from bank or provider | [optional]
13
+ **id_connection** | **Integer** | ID of the related connection | [optional]
14
+
15
+
@@ -0,0 +1,15 @@
1
+ # BudgeaClient::AccountType
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | ID of the account type |
7
+ **name** | **String** | Name of the account type |
8
+ **is_invest** | **BOOLEAN** | Is it an investment account | [default to false]
9
+ **weboob_type_id** | **Integer** | Map to the weboob_type_id |
10
+ **display_name_p** | **String** | Name to display in plurial |
11
+ **display_name** | **String** | Name to display in singular |
12
+ **color** | **String** | Color of the account type (hexdecimal) | [optional]
13
+ **id_parent** | **Integer** | Id of the parent type | [optional]
14
+
15
+
@@ -0,0 +1,944 @@
1
+ # BudgeaClient::AdministrationApi
2
+
3
+ All URIs are relative to *https://demo.biapi.pro/2.0/*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**clients_get**](AdministrationApi.md#clients_get) | **GET** /clients | List clients
8
+ [**clients_id_client_delete**](AdministrationApi.md#clients_id_client_delete) | **DELETE** /clients/{id_client} | Delete a client
9
+ [**clients_id_client_get**](AdministrationApi.md#clients_id_client_get) | **GET** /clients/{id_client} | Get information about a client
10
+ [**clients_id_client_logo_delete**](AdministrationApi.md#clients_id_client_logo_delete) | **DELETE** /clients/{id_client}/logo | Delete the client logo
11
+ [**clients_id_client_logo_post**](AdministrationApi.md#clients_id_client_logo_post) | **POST** /clients/{id_client}/logo | Update the client logo
12
+ [**clients_id_client_put**](AdministrationApi.md#clients_id_client_put) | **PUT** /clients/{id_client} | Update a client
13
+ [**clients_post**](AdministrationApi.md#clients_post) | **POST** /clients | Create a client
14
+ [**config_get**](AdministrationApi.md#config_get) | **GET** /config | Get configuration of the API.
15
+ [**config_post**](AdministrationApi.md#config_post) | **POST** /config | Set a configuration value on the API.
16
+ [**monitoring_get**](AdministrationApi.md#monitoring_get) | **GET** /monitoring | get performances stats on this instance
17
+ [**test_sync_post**](AdministrationApi.md#test_sync_post) | **POST** /test/sync | Test synchronization on a random connection.
18
+ [**test_webhooks_post**](AdministrationApi.md#test_webhooks_post) | **POST** /test/webhooks | Test synchronization on a random connection.
19
+ [**webhooks_delete**](AdministrationApi.md#webhooks_delete) | **DELETE** /webhooks | Deletes all webhooks
20
+ [**webhooks_get**](AdministrationApi.md#webhooks_get) | **GET** /webhooks | Get webhooks
21
+ [**webhooks_id_webhook_delete**](AdministrationApi.md#webhooks_id_webhook_delete) | **DELETE** /webhooks/{id_webhook} | Deletes a webhook
22
+ [**webhooks_id_webhook_post**](AdministrationApi.md#webhooks_id_webhook_post) | **POST** /webhooks/{id_webhook} | Updates a webhook
23
+ [**webhooks_id_webhook_put**](AdministrationApi.md#webhooks_id_webhook_put) | **PUT** /webhooks/{id_webhook} | Updates a webhook
24
+ [**webhooks_post**](AdministrationApi.md#webhooks_post) | **POST** /webhooks | Adds a new webhook
25
+
26
+
27
+ # **clients_get**
28
+ > InlineResponse20011 clients_get(opts)
29
+
30
+ List clients
31
+
32
+
33
+
34
+ ### Example
35
+ ```ruby
36
+ # load the gem
37
+ require 'budgea_client'
38
+
39
+ api_instance = BudgeaClient::AdministrationApi.new
40
+
41
+ opts = {
42
+ expand: "expand_example" # String |
43
+ }
44
+
45
+ begin
46
+ #List clients
47
+ result = api_instance.clients_get(opts)
48
+ p result
49
+ rescue BudgeaClient::ApiError => e
50
+ puts "Exception when calling AdministrationApi->clients_get: #{e}"
51
+ end
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **expand** | **String**| | [optional]
59
+
60
+ ### Return type
61
+
62
+ [**InlineResponse20011**](InlineResponse20011.md)
63
+
64
+ ### Authorization
65
+
66
+ No authorization required
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json, multipart/form-data
71
+ - **Accept**: application/json
72
+
73
+
74
+
75
+ # **clients_id_client_delete**
76
+ > Client clients_id_client_delete(id_client, opts)
77
+
78
+ Delete a client
79
+
80
+
81
+
82
+ ### Example
83
+ ```ruby
84
+ # load the gem
85
+ require 'budgea_client'
86
+
87
+ api_instance = BudgeaClient::AdministrationApi.new
88
+
89
+ id_client = 56 # Integer |
90
+
91
+ opts = {
92
+ expand: "expand_example" # String |
93
+ }
94
+
95
+ begin
96
+ #Delete a client
97
+ result = api_instance.clients_id_client_delete(id_client, opts)
98
+ p result
99
+ rescue BudgeaClient::ApiError => e
100
+ puts "Exception when calling AdministrationApi->clients_id_client_delete: #{e}"
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **id_client** | **Integer**| |
109
+ **expand** | **String**| | [optional]
110
+
111
+ ### Return type
112
+
113
+ [**Client**](Client.md)
114
+
115
+ ### Authorization
116
+
117
+ No authorization required
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/json, multipart/form-data
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **clients_id_client_get**
127
+ > Client clients_id_client_get(id_client, opts)
128
+
129
+ Get information about a client
130
+
131
+ If you use the manage_token, you will get also the client_secret.<br><br>
132
+
133
+ ### Example
134
+ ```ruby
135
+ # load the gem
136
+ require 'budgea_client'
137
+
138
+ api_instance = BudgeaClient::AdministrationApi.new
139
+
140
+ id_client = 56 # Integer |
141
+
142
+ opts = {
143
+ expand: "expand_example" # String |
144
+ }
145
+
146
+ begin
147
+ #Get information about a client
148
+ result = api_instance.clients_id_client_get(id_client, opts)
149
+ p result
150
+ rescue BudgeaClient::ApiError => e
151
+ puts "Exception when calling AdministrationApi->clients_id_client_get: #{e}"
152
+ end
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ Name | Type | Description | Notes
158
+ ------------- | ------------- | ------------- | -------------
159
+ **id_client** | **Integer**| |
160
+ **expand** | **String**| | [optional]
161
+
162
+ ### Return type
163
+
164
+ [**Client**](Client.md)
165
+
166
+ ### Authorization
167
+
168
+ No authorization required
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: application/json, multipart/form-data
173
+ - **Accept**: application/json
174
+
175
+
176
+
177
+ # **clients_id_client_logo_delete**
178
+ > File clients_id_client_logo_delete(id_client, opts)
179
+
180
+ Delete the client logo
181
+
182
+
183
+
184
+ ### Example
185
+ ```ruby
186
+ # load the gem
187
+ require 'budgea_client'
188
+
189
+ api_instance = BudgeaClient::AdministrationApi.new
190
+
191
+ id_client = 56 # Integer |
192
+
193
+ opts = {
194
+ expand: "expand_example" # String |
195
+ }
196
+
197
+ begin
198
+ #Delete the client logo
199
+ result = api_instance.clients_id_client_logo_delete(id_client, opts)
200
+ p result
201
+ rescue BudgeaClient::ApiError => e
202
+ puts "Exception when calling AdministrationApi->clients_id_client_logo_delete: #{e}"
203
+ end
204
+ ```
205
+
206
+ ### Parameters
207
+
208
+ Name | Type | Description | Notes
209
+ ------------- | ------------- | ------------- | -------------
210
+ **id_client** | **Integer**| |
211
+ **expand** | **String**| | [optional]
212
+
213
+ ### Return type
214
+
215
+ **File**
216
+
217
+ ### Authorization
218
+
219
+ No authorization required
220
+
221
+ ### HTTP request headers
222
+
223
+ - **Content-Type**: application/json, multipart/form-data
224
+ - **Accept**: application/json
225
+
226
+
227
+
228
+ # **clients_id_client_logo_post**
229
+ > File clients_id_client_logo_post(id_client, opts)
230
+
231
+ Update the client logo
232
+
233
+
234
+
235
+ ### Example
236
+ ```ruby
237
+ # load the gem
238
+ require 'budgea_client'
239
+
240
+ api_instance = BudgeaClient::AdministrationApi.new
241
+
242
+ id_client = 56 # Integer |
243
+
244
+ opts = {
245
+ expand: "expand_example" # String |
246
+ }
247
+
248
+ begin
249
+ #Update the client logo
250
+ result = api_instance.clients_id_client_logo_post(id_client, opts)
251
+ p result
252
+ rescue BudgeaClient::ApiError => e
253
+ puts "Exception when calling AdministrationApi->clients_id_client_logo_post: #{e}"
254
+ end
255
+ ```
256
+
257
+ ### Parameters
258
+
259
+ Name | Type | Description | Notes
260
+ ------------- | ------------- | ------------- | -------------
261
+ **id_client** | **Integer**| |
262
+ **expand** | **String**| | [optional]
263
+
264
+ ### Return type
265
+
266
+ **File**
267
+
268
+ ### Authorization
269
+
270
+ No authorization required
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: application/json, multipart/form-data
275
+ - **Accept**: application/json
276
+
277
+
278
+
279
+ # **clients_id_client_put**
280
+ > Client clients_id_client_put(id_client, opts)
281
+
282
+ Update a client
283
+
284
+
285
+
286
+ ### Example
287
+ ```ruby
288
+ # load the gem
289
+ require 'budgea_client'
290
+
291
+ api_instance = BudgeaClient::AdministrationApi.new
292
+
293
+ id_client = 56 # Integer |
294
+
295
+ opts = {
296
+ name: "name_example", # String | name of client
297
+ secret: true, # BOOLEAN | reset the secret
298
+ redirect_uri: "redirect_uri_example", # String | redirect_uri
299
+ primary_color: "primary_color_example", # String | hexadecimal code of the client primary color (e.g F45B9A)
300
+ secondary_color: "secondary_color_example", # String | hexadecimal code of the client secondary color (e.g F45B9A)
301
+ description: "description_example", # String | text to display as a default description
302
+ description_banks: "description_banks_example", # String | text to display as a description for banks
303
+ description_providers: "description_providers_example", # String | text to display as a description for providers
304
+ pro: true, # BOOLEAN | Wether the client should display the company manager page
305
+ expand: "expand_example" # String |
306
+ }
307
+
308
+ begin
309
+ #Update a client
310
+ result = api_instance.clients_id_client_put(id_client, opts)
311
+ p result
312
+ rescue BudgeaClient::ApiError => e
313
+ puts "Exception when calling AdministrationApi->clients_id_client_put: #{e}"
314
+ end
315
+ ```
316
+
317
+ ### Parameters
318
+
319
+ Name | Type | Description | Notes
320
+ ------------- | ------------- | ------------- | -------------
321
+ **id_client** | **Integer**| |
322
+ **name** | **String**| name of client | [optional]
323
+ **secret** | **BOOLEAN**| reset the secret | [optional]
324
+ **redirect_uri** | **String**| redirect_uri | [optional]
325
+ **primary_color** | **String**| hexadecimal code of the client primary color (e.g F45B9A) | [optional]
326
+ **secondary_color** | **String**| hexadecimal code of the client secondary color (e.g F45B9A) | [optional]
327
+ **description** | **String**| text to display as a default description | [optional]
328
+ **description_banks** | **String**| text to display as a description for banks | [optional]
329
+ **description_providers** | **String**| text to display as a description for providers | [optional]
330
+ **pro** | **BOOLEAN**| Wether the client should display the company manager page | [optional]
331
+ **expand** | **String**| | [optional]
332
+
333
+ ### Return type
334
+
335
+ [**Client**](Client.md)
336
+
337
+ ### Authorization
338
+
339
+ No authorization required
340
+
341
+ ### HTTP request headers
342
+
343
+ - **Content-Type**: application/json, multipart/form-data
344
+ - **Accept**: application/json
345
+
346
+
347
+
348
+ # **clients_post**
349
+ > Client clients_post(opts)
350
+
351
+ Create a client
352
+
353
+
354
+
355
+ ### Example
356
+ ```ruby
357
+ # load the gem
358
+ require 'budgea_client'
359
+
360
+ api_instance = BudgeaClient::AdministrationApi.new
361
+
362
+ opts = {
363
+ expand: "expand_example" # String |
364
+ }
365
+
366
+ begin
367
+ #Create a client
368
+ result = api_instance.clients_post(opts)
369
+ p result
370
+ rescue BudgeaClient::ApiError => e
371
+ puts "Exception when calling AdministrationApi->clients_post: #{e}"
372
+ end
373
+ ```
374
+
375
+ ### Parameters
376
+
377
+ Name | Type | Description | Notes
378
+ ------------- | ------------- | ------------- | -------------
379
+ **expand** | **String**| | [optional]
380
+
381
+ ### Return type
382
+
383
+ [**Client**](Client.md)
384
+
385
+ ### Authorization
386
+
387
+ No authorization required
388
+
389
+ ### HTTP request headers
390
+
391
+ - **Content-Type**: application/json, multipart/form-data
392
+ - **Accept**: application/json
393
+
394
+
395
+
396
+ # **config_get**
397
+ > config_get(opts)
398
+
399
+ Get configuration of the API.
400
+
401
+ <br><br>
402
+
403
+ ### Example
404
+ ```ruby
405
+ # load the gem
406
+ require 'budgea_client'
407
+
408
+ api_instance = BudgeaClient::AdministrationApi.new
409
+
410
+ opts = {
411
+ search: "search_example" # String | limit the results to keys matching the given value
412
+ }
413
+
414
+ begin
415
+ #Get configuration of the API.
416
+ api_instance.config_get(opts)
417
+ rescue BudgeaClient::ApiError => e
418
+ puts "Exception when calling AdministrationApi->config_get: #{e}"
419
+ end
420
+ ```
421
+
422
+ ### Parameters
423
+
424
+ Name | Type | Description | Notes
425
+ ------------- | ------------- | ------------- | -------------
426
+ **search** | **String**| limit the results to keys matching the given value | [optional]
427
+
428
+ ### Return type
429
+
430
+ nil (empty response body)
431
+
432
+ ### Authorization
433
+
434
+ No authorization required
435
+
436
+ ### HTTP request headers
437
+
438
+ - **Content-Type**: application/json, multipart/form-data
439
+ - **Accept**: application/json
440
+
441
+
442
+
443
+ # **config_post**
444
+ > Object config_post(opts)
445
+
446
+ Set a configuration value on the API.
447
+
448
+ Request: { \"bank.connection.disable_new\": \"0\", \"search\": \"bank.connection.disable_new\" }<br><br>
449
+
450
+ ### Example
451
+ ```ruby
452
+ # load the gem
453
+ require 'budgea_client'
454
+
455
+ api_instance = BudgeaClient::AdministrationApi.new
456
+
457
+ opts = {
458
+ search: "search_example" # String | limit the results to keys matching the given value
459
+ }
460
+
461
+ begin
462
+ #Set a configuration value on the API.
463
+ result = api_instance.config_post(opts)
464
+ p result
465
+ rescue BudgeaClient::ApiError => e
466
+ puts "Exception when calling AdministrationApi->config_post: #{e}"
467
+ end
468
+ ```
469
+
470
+ ### Parameters
471
+
472
+ Name | Type | Description | Notes
473
+ ------------- | ------------- | ------------- | -------------
474
+ **search** | **String**| limit the results to keys matching the given value | [optional]
475
+
476
+ ### Return type
477
+
478
+ **Object**
479
+
480
+ ### Authorization
481
+
482
+ No authorization required
483
+
484
+ ### HTTP request headers
485
+
486
+ - **Content-Type**: application/json, multipart/form-data
487
+ - **Accept**: application/json
488
+
489
+
490
+
491
+ # **monitoring_get**
492
+ > monitoring_get(opts)
493
+
494
+ get performances stats on this instance
495
+
496
+
497
+
498
+ ### Example
499
+ ```ruby
500
+ # load the gem
501
+ require 'budgea_client'
502
+
503
+ api_instance = BudgeaClient::AdministrationApi.new
504
+
505
+ opts = {
506
+ period: 56 # Integer | number on days on which stats on synchronization have to be done per worker (Default: 1)
507
+ }
508
+
509
+ begin
510
+ #get performances stats on this instance
511
+ api_instance.monitoring_get(opts)
512
+ rescue BudgeaClient::ApiError => e
513
+ puts "Exception when calling AdministrationApi->monitoring_get: #{e}"
514
+ end
515
+ ```
516
+
517
+ ### Parameters
518
+
519
+ Name | Type | Description | Notes
520
+ ------------- | ------------- | ------------- | -------------
521
+ **period** | **Integer**| number on days on which stats on synchronization have to be done per worker (Default: 1) | [optional]
522
+
523
+ ### Return type
524
+
525
+ nil (empty response body)
526
+
527
+ ### Authorization
528
+
529
+ No authorization required
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: application/json, multipart/form-data
534
+ - **Accept**: application/json
535
+
536
+
537
+
538
+ # **test_sync_post**
539
+ > test_sync_post
540
+
541
+ Test synchronization on a random connection.
542
+
543
+ It can be used to test receiving data on your webhooks.<br><br>
544
+
545
+ ### Example
546
+ ```ruby
547
+ # load the gem
548
+ require 'budgea_client'
549
+
550
+ api_instance = BudgeaClient::AdministrationApi.new
551
+
552
+ begin
553
+ #Test synchronization on a random connection.
554
+ api_instance.test_sync_post
555
+ rescue BudgeaClient::ApiError => e
556
+ puts "Exception when calling AdministrationApi->test_sync_post: #{e}"
557
+ end
558
+ ```
559
+
560
+ ### Parameters
561
+ This endpoint does not need any parameter.
562
+
563
+ ### Return type
564
+
565
+ nil (empty response body)
566
+
567
+ ### Authorization
568
+
569
+ No authorization required
570
+
571
+ ### HTTP request headers
572
+
573
+ - **Content-Type**: application/json, multipart/form-data
574
+ - **Accept**: application/json
575
+
576
+
577
+
578
+ # **test_webhooks_post**
579
+ > test_webhooks_post
580
+
581
+ Test synchronization on a random connection.
582
+
583
+ It can be used to test receiving data on your webhooks.<br><br>
584
+
585
+ ### Example
586
+ ```ruby
587
+ # load the gem
588
+ require 'budgea_client'
589
+
590
+ api_instance = BudgeaClient::AdministrationApi.new
591
+
592
+ begin
593
+ #Test synchronization on a random connection.
594
+ api_instance.test_webhooks_post
595
+ rescue BudgeaClient::ApiError => e
596
+ puts "Exception when calling AdministrationApi->test_webhooks_post: #{e}"
597
+ end
598
+ ```
599
+
600
+ ### Parameters
601
+ This endpoint does not need any parameter.
602
+
603
+ ### Return type
604
+
605
+ nil (empty response body)
606
+
607
+ ### Authorization
608
+
609
+ No authorization required
610
+
611
+ ### HTTP request headers
612
+
613
+ - **Content-Type**: application/json, multipart/form-data
614
+ - **Accept**: application/json
615
+
616
+
617
+
618
+ # **webhooks_delete**
619
+ > Webhook webhooks_delete(opts)
620
+
621
+ Deletes all webhooks
622
+
623
+ Updates the deleted field with the date of the deletion<br><br>
624
+
625
+ ### Example
626
+ ```ruby
627
+ # load the gem
628
+ require 'budgea_client'
629
+
630
+ api_instance = BudgeaClient::AdministrationApi.new
631
+
632
+ opts = {
633
+ expand: "expand_example" # String |
634
+ }
635
+
636
+ begin
637
+ #Deletes all webhooks
638
+ result = api_instance.webhooks_delete(opts)
639
+ p result
640
+ rescue BudgeaClient::ApiError => e
641
+ puts "Exception when calling AdministrationApi->webhooks_delete: #{e}"
642
+ end
643
+ ```
644
+
645
+ ### Parameters
646
+
647
+ Name | Type | Description | Notes
648
+ ------------- | ------------- | ------------- | -------------
649
+ **expand** | **String**| | [optional]
650
+
651
+ ### Return type
652
+
653
+ [**Webhook**](Webhook.md)
654
+
655
+ ### Authorization
656
+
657
+ No authorization required
658
+
659
+ ### HTTP request headers
660
+
661
+ - **Content-Type**: application/json, multipart/form-data
662
+ - **Accept**: application/json
663
+
664
+
665
+
666
+ # **webhooks_get**
667
+ > InlineResponse20033 webhooks_get(opts)
668
+
669
+ Get webhooks
670
+
671
+
672
+
673
+ ### Example
674
+ ```ruby
675
+ # load the gem
676
+ require 'budgea_client'
677
+
678
+ api_instance = BudgeaClient::AdministrationApi.new
679
+
680
+ opts = {
681
+ expand: "expand_example" # String |
682
+ }
683
+
684
+ begin
685
+ #Get webhooks
686
+ result = api_instance.webhooks_get(opts)
687
+ p result
688
+ rescue BudgeaClient::ApiError => e
689
+ puts "Exception when calling AdministrationApi->webhooks_get: #{e}"
690
+ end
691
+ ```
692
+
693
+ ### Parameters
694
+
695
+ Name | Type | Description | Notes
696
+ ------------- | ------------- | ------------- | -------------
697
+ **expand** | **String**| | [optional]
698
+
699
+ ### Return type
700
+
701
+ [**InlineResponse20033**](InlineResponse20033.md)
702
+
703
+ ### Authorization
704
+
705
+ No authorization required
706
+
707
+ ### HTTP request headers
708
+
709
+ - **Content-Type**: application/json, multipart/form-data
710
+ - **Accept**: application/json
711
+
712
+
713
+
714
+ # **webhooks_id_webhook_delete**
715
+ > Webhook webhooks_id_webhook_delete(id_webhook, opts)
716
+
717
+ Deletes a webhook
718
+
719
+ Updates the deleted field with the date of the deletion<br><br>
720
+
721
+ ### Example
722
+ ```ruby
723
+ # load the gem
724
+ require 'budgea_client'
725
+
726
+ api_instance = BudgeaClient::AdministrationApi.new
727
+
728
+ id_webhook = 56 # Integer |
729
+
730
+ opts = {
731
+ expand: "expand_example" # String |
732
+ }
733
+
734
+ begin
735
+ #Deletes a webhook
736
+ result = api_instance.webhooks_id_webhook_delete(id_webhook, opts)
737
+ p result
738
+ rescue BudgeaClient::ApiError => e
739
+ puts "Exception when calling AdministrationApi->webhooks_id_webhook_delete: #{e}"
740
+ end
741
+ ```
742
+
743
+ ### Parameters
744
+
745
+ Name | Type | Description | Notes
746
+ ------------- | ------------- | ------------- | -------------
747
+ **id_webhook** | **Integer**| |
748
+ **expand** | **String**| | [optional]
749
+
750
+ ### Return type
751
+
752
+ [**Webhook**](Webhook.md)
753
+
754
+ ### Authorization
755
+
756
+ No authorization required
757
+
758
+ ### HTTP request headers
759
+
760
+ - **Content-Type**: application/json, multipart/form-data
761
+ - **Accept**: application/json
762
+
763
+
764
+
765
+ # **webhooks_id_webhook_post**
766
+ > Webhook webhooks_id_webhook_post(id_webhook, opts)
767
+
768
+ Updates a webhook
769
+
770
+
771
+
772
+ ### Example
773
+ ```ruby
774
+ # load the gem
775
+ require 'budgea_client'
776
+
777
+ api_instance = BudgeaClient::AdministrationApi.new
778
+
779
+ id_webhook = 56 # Integer |
780
+
781
+ opts = {
782
+ deleted: "deleted_example", # String | a date to delete the webhook or 'null' to enable it
783
+ id_user: 56, # Integer | The user ID to associate with the webhook
784
+ id_service: 56, # Integer | The service ID to associate with the webhook
785
+ url: 3.4, # Float | The webhook callback url
786
+ event: "event_example", # String | The webhook event
787
+ expand: "expand_example" # String |
788
+ }
789
+
790
+ begin
791
+ #Updates a webhook
792
+ result = api_instance.webhooks_id_webhook_post(id_webhook, opts)
793
+ p result
794
+ rescue BudgeaClient::ApiError => e
795
+ puts "Exception when calling AdministrationApi->webhooks_id_webhook_post: #{e}"
796
+ end
797
+ ```
798
+
799
+ ### Parameters
800
+
801
+ Name | Type | Description | Notes
802
+ ------------- | ------------- | ------------- | -------------
803
+ **id_webhook** | **Integer**| |
804
+ **deleted** | **String**| a date to delete the webhook or &#39;null&#39; to enable it | [optional]
805
+ **id_user** | **Integer**| The user ID to associate with the webhook | [optional]
806
+ **id_service** | **Integer**| The service ID to associate with the webhook | [optional]
807
+ **url** | **Float**| The webhook callback url | [optional]
808
+ **event** | **String**| The webhook event | [optional]
809
+ **expand** | **String**| | [optional]
810
+
811
+ ### Return type
812
+
813
+ [**Webhook**](Webhook.md)
814
+
815
+ ### Authorization
816
+
817
+ No authorization required
818
+
819
+ ### HTTP request headers
820
+
821
+ - **Content-Type**: application/json, multipart/form-data
822
+ - **Accept**: application/json
823
+
824
+
825
+
826
+ # **webhooks_id_webhook_put**
827
+ > Webhook webhooks_id_webhook_put(id_webhook, opts)
828
+
829
+ Updates a webhook
830
+
831
+
832
+
833
+ ### Example
834
+ ```ruby
835
+ # load the gem
836
+ require 'budgea_client'
837
+
838
+ api_instance = BudgeaClient::AdministrationApi.new
839
+
840
+ id_webhook = 56 # Integer |
841
+
842
+ opts = {
843
+ deleted: "deleted_example", # String | a date to delete the webhook or 'null' to enable it
844
+ id_user: 56, # Integer | The user ID to associate with the webhook
845
+ id_service: 56, # Integer | The service ID to associate with the webhook
846
+ url: 3.4, # Float | The webhook callback url
847
+ event: "event_example", # String | The webhook event
848
+ expand: "expand_example" # String |
849
+ }
850
+
851
+ begin
852
+ #Updates a webhook
853
+ result = api_instance.webhooks_id_webhook_put(id_webhook, opts)
854
+ p result
855
+ rescue BudgeaClient::ApiError => e
856
+ puts "Exception when calling AdministrationApi->webhooks_id_webhook_put: #{e}"
857
+ end
858
+ ```
859
+
860
+ ### Parameters
861
+
862
+ Name | Type | Description | Notes
863
+ ------------- | ------------- | ------------- | -------------
864
+ **id_webhook** | **Integer**| |
865
+ **deleted** | **String**| a date to delete the webhook or &#39;null&#39; to enable it | [optional]
866
+ **id_user** | **Integer**| The user ID to associate with the webhook | [optional]
867
+ **id_service** | **Integer**| The service ID to associate with the webhook | [optional]
868
+ **url** | **Float**| The webhook callback url | [optional]
869
+ **event** | **String**| The webhook event | [optional]
870
+ **expand** | **String**| | [optional]
871
+
872
+ ### Return type
873
+
874
+ [**Webhook**](Webhook.md)
875
+
876
+ ### Authorization
877
+
878
+ No authorization required
879
+
880
+ ### HTTP request headers
881
+
882
+ - **Content-Type**: application/json, multipart/form-data
883
+ - **Accept**: application/json
884
+
885
+
886
+
887
+ # **webhooks_post**
888
+ > Webhook webhooks_post(opts)
889
+
890
+ Adds a new webhook
891
+
892
+
893
+
894
+ ### Example
895
+ ```ruby
896
+ # load the gem
897
+ require 'budgea_client'
898
+
899
+ api_instance = BudgeaClient::AdministrationApi.new
900
+
901
+ opts = {
902
+ id_user: 56, # Integer | The user ID to associate with the webhook
903
+ id_service: 56, # Integer | The service ID to associate with the webhook
904
+ url: 3.4, # Float | The webhook callback url
905
+ event: "event_example", # String | The webhook event
906
+ params: "params_example", # String | The webhook parameters as an object with three keys: type, key and value
907
+ expand: "expand_example" # String |
908
+ }
909
+
910
+ begin
911
+ #Adds a new webhook
912
+ result = api_instance.webhooks_post(opts)
913
+ p result
914
+ rescue BudgeaClient::ApiError => e
915
+ puts "Exception when calling AdministrationApi->webhooks_post: #{e}"
916
+ end
917
+ ```
918
+
919
+ ### Parameters
920
+
921
+ Name | Type | Description | Notes
922
+ ------------- | ------------- | ------------- | -------------
923
+ **id_user** | **Integer**| The user ID to associate with the webhook | [optional]
924
+ **id_service** | **Integer**| The service ID to associate with the webhook | [optional]
925
+ **url** | **Float**| The webhook callback url | [optional]
926
+ **event** | **String**| The webhook event | [optional]
927
+ **params** | **String**| The webhook parameters as an object with three keys: type, key and value | [optional]
928
+ **expand** | **String**| | [optional]
929
+
930
+ ### Return type
931
+
932
+ [**Webhook**](Webhook.md)
933
+
934
+ ### Authorization
935
+
936
+ No authorization required
937
+
938
+ ### HTTP request headers
939
+
940
+ - **Content-Type**: application/json, multipart/form-data
941
+ - **Accept**: application/json
942
+
943
+
944
+