budgea_client 1.4.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +67 -725
  4. data/budgea_client.gemspec +15 -3
  5. data/budgea_openapi.json +2011 -524
  6. data/docs/Account.md +3 -1
  7. data/docs/AccountLog.md +2 -2
  8. data/docs/AdministrationApi.md +354 -34
  9. data/docs/AuthenticationApi.md +264 -18
  10. data/docs/BankCategory.md +1 -1
  11. data/docs/BanksApi.md +939 -550
  12. data/docs/Certificate.md +12 -0
  13. data/docs/Client.md +5 -2
  14. data/docs/Connection.md +1 -1
  15. data/docs/ConnectionLog.md +3 -2
  16. data/docs/ConnectionsApi.md +162 -103
  17. data/docs/Connector.md +21 -0
  18. data/docs/ConnectorCategory.md +9 -0
  19. data/docs/ConnectorLogo.md +1 -1
  20. data/docs/Currency.md +4 -0
  21. data/docs/DocumentsApi.md +350 -350
  22. data/docs/Field.md +3 -2
  23. data/docs/InlineResponse20010.md +1 -1
  24. data/docs/InlineResponse20011.md +1 -1
  25. data/docs/InlineResponse20012.md +1 -1
  26. data/docs/InlineResponse20013.md +1 -1
  27. data/docs/InlineResponse20014.md +1 -1
  28. data/docs/InlineResponse20015.md +1 -1
  29. data/docs/InlineResponse20016.md +1 -1
  30. data/docs/InlineResponse20017.md +1 -1
  31. data/docs/InlineResponse20018.md +1 -1
  32. data/docs/InlineResponse20019.md +1 -1
  33. data/docs/InlineResponse20020.md +1 -1
  34. data/docs/InlineResponse20021.md +1 -1
  35. data/docs/InlineResponse20022.md +1 -1
  36. data/docs/InlineResponse20023.md +1 -1
  37. data/docs/InlineResponse20024.md +1 -1
  38. data/docs/InlineResponse20025.md +1 -1
  39. data/docs/InlineResponse20026.md +1 -1
  40. data/docs/InlineResponse20027.md +1 -1
  41. data/docs/InlineResponse20028.md +1 -1
  42. data/docs/InlineResponse20029.md +1 -1
  43. data/docs/InlineResponse2003.md +2 -3
  44. data/docs/InlineResponse20030.md +1 -1
  45. data/docs/InlineResponse20031.md +1 -1
  46. data/docs/InlineResponse20032.md +1 -1
  47. data/docs/InlineResponse20033.md +1 -1
  48. data/docs/InlineResponse20034.md +8 -0
  49. data/docs/InlineResponse20035.md +8 -0
  50. data/docs/InlineResponse20036.md +8 -0
  51. data/docs/InlineResponse2004.md +0 -2
  52. data/docs/InlineResponse2005.md +5 -2
  53. data/docs/InlineResponse2006.md +2 -3
  54. data/docs/InlineResponse2007.md +3 -1
  55. data/docs/InlineResponse2008.md +1 -1
  56. data/docs/InlineResponse2009.md +1 -1
  57. data/docs/OCRApi.md +5 -5
  58. data/docs/OIDCApi.md +5 -5
  59. data/docs/PFMApi.md +122 -122
  60. data/docs/Pocket.md +1 -1
  61. data/docs/Profile.md +1 -1
  62. data/docs/Project.md +1 -1
  63. data/docs/ProvidersApi.md +602 -604
  64. data/docs/Recipient.md +3 -0
  65. data/docs/RecipientLog.md +14 -0
  66. data/docs/RecipientsApi.md +28 -20
  67. data/docs/Subscription.md +2 -1
  68. data/docs/TermsApi.md +13 -15
  69. data/docs/Transaction.md +8 -3
  70. data/docs/Transfer.md +1 -0
  71. data/docs/TransferLog.md +14 -0
  72. data/docs/TransfersApi.md +165 -141
  73. data/docs/UserAlert.md +2 -2
  74. data/docs/UsersManagementApi.md +24 -24
  75. data/docs/WealthApi.md +54 -54
  76. data/docs/WebhookLog.md +15 -0
  77. data/lib/budgea_client.rb +27 -3
  78. data/lib/budgea_client/api/administration_api.rb +425 -106
  79. data/lib/budgea_client/api/authentication_api.rb +287 -46
  80. data/lib/budgea_client/api/banks_api.rb +1271 -974
  81. data/lib/budgea_client/api/connections_api.rb +207 -156
  82. data/lib/budgea_client/api/documents_api.rb +627 -693
  83. data/lib/budgea_client/api/ocr_api.rb +24 -16
  84. data/lib/budgea_client/api/oidc_api.rb +23 -16
  85. data/lib/budgea_client/api/pfm_api.rb +219 -248
  86. data/lib/budgea_client/api/providers_api.rb +998 -1099
  87. data/lib/budgea_client/api/recipients_api.rb +52 -34
  88. data/lib/budgea_client/api/terms_api.rb +34 -31
  89. data/lib/budgea_client/api/transfers_api.rb +245 -239
  90. data/lib/budgea_client/api/users_management_api.rb +56 -58
  91. data/lib/budgea_client/api/wealth_api.rb +81 -85
  92. data/lib/budgea_client/api_client.rb +20 -11
  93. data/lib/budgea_client/api_error.rb +11 -1
  94. data/lib/budgea_client/configuration.rb +12 -2
  95. data/lib/budgea_client/models/access.rb +18 -13
  96. data/lib/budgea_client/models/account.rb +44 -23
  97. data/lib/budgea_client/models/account_log.rb +33 -28
  98. data/lib/budgea_client/models/account_type.rb +22 -17
  99. data/lib/budgea_client/models/alert.rb +21 -16
  100. data/lib/budgea_client/models/bank.rb +21 -16
  101. data/lib/budgea_client/models/bank_category.rb +19 -14
  102. data/lib/budgea_client/models/category.rb +22 -17
  103. data/lib/budgea_client/models/certificate.rb +244 -0
  104. data/lib/budgea_client/models/client.rb +53 -20
  105. data/lib/budgea_client/models/connection.rb +29 -24
  106. data/lib/budgea_client/models/connection_log.rb +39 -24
  107. data/lib/budgea_client/models/connector.rb +345 -0
  108. data/lib/budgea_client/models/connector_category.rb +206 -0
  109. data/lib/budgea_client/models/connector_logo.rb +29 -24
  110. data/lib/budgea_client/models/currency.rb +63 -16
  111. data/lib/budgea_client/models/device.rb +23 -18
  112. data/lib/budgea_client/models/document.rb +21 -16
  113. data/lib/budgea_client/models/document_type.rb +19 -14
  114. data/lib/budgea_client/models/field.rb +44 -27
  115. data/lib/budgea_client/models/field_value.rb +18 -13
  116. data/lib/budgea_client/models/file.rb +20 -15
  117. data/lib/budgea_client/models/group.rb +17 -12
  118. data/lib/budgea_client/models/hash_table.rb +20 -15
  119. data/lib/budgea_client/models/inline_response_200.rb +17 -12
  120. data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
  121. data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
  122. data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
  123. data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
  124. data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
  125. data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
  126. data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
  127. data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
  128. data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
  129. data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
  130. data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
  131. data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
  132. data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
  133. data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
  134. data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
  135. data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
  136. data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
  137. data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
  138. data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
  139. data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
  140. data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
  141. data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
  142. data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
  143. data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
  144. data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
  145. data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
  146. data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
  147. data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
  148. data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
  149. data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
  150. data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
  151. data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
  152. data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
  153. data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
  154. data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
  155. data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
  156. data/lib/budgea_client/models/investment.rb +20 -15
  157. data/lib/budgea_client/models/investment_value.rb +20 -15
  158. data/lib/budgea_client/models/invite.rb +18 -13
  159. data/lib/budgea_client/models/locked_user.rb +18 -13
  160. data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
  161. data/lib/budgea_client/models/pocket.rb +22 -17
  162. data/lib/budgea_client/models/profile.rb +26 -20
  163. data/lib/budgea_client/models/project.rb +26 -21
  164. data/lib/budgea_client/models/project_type.rb +18 -13
  165. data/lib/budgea_client/models/recipient.rb +52 -17
  166. data/lib/budgea_client/models/recipient_log.rb +254 -0
  167. data/lib/budgea_client/models/security.rb +18 -13
  168. data/lib/budgea_client/models/subscription.rb +31 -21
  169. data/lib/budgea_client/models/terms_of_service.rb +19 -14
  170. data/lib/budgea_client/models/transaction.rb +83 -33
  171. data/lib/budgea_client/models/transaction_information.rb +19 -14
  172. data/lib/budgea_client/models/transactions_cluster.rb +21 -16
  173. data/lib/budgea_client/models/transfer.rb +32 -16
  174. data/lib/budgea_client/models/transfer_log.rb +254 -0
  175. data/lib/budgea_client/models/user.rb +22 -16
  176. data/lib/budgea_client/models/user_alert.rb +22 -16
  177. data/lib/budgea_client/models/webhook.rb +19 -14
  178. data/lib/budgea_client/models/webhook_log.rb +264 -0
  179. data/lib/budgea_client/version.rb +12 -2
  180. data/original_budgea_openapi.json +23188 -0
  181. data/spec/models/certificate_spec.rb +65 -0
  182. data/spec/models/connector_category_spec.rb +47 -0
  183. data/spec/models/connector_spec.rb +119 -0
  184. data/spec/models/inline_response_200_34_spec.rb +41 -0
  185. data/spec/models/inline_response_200_35_spec.rb +41 -0
  186. data/spec/models/inline_response_200_36_spec.rb +41 -0
  187. data/spec/models/recipient_log_spec.rb +77 -0
  188. data/spec/models/transfer_log_spec.rb +77 -0
  189. data/spec/models/webhook_log_spec.rb +83 -0
  190. metadata +52 -18
  191. data/pkg/budgea_client-1.3.9.gem +0 -0
  192. data/pkg/budgea_client-1.4.2.gem +0 -0
  193. data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -0,0 +1,15 @@
1
+ # BudgeaClient::WebhookLog
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | ID of the log |
7
+ **id_webhook_data** | **Integer** | ID of the webhook data | [optional]
8
+ **id_service** | **Integer** | ID of the service | [optional]
9
+ **id_user** | **Integer** | ID of the user | [optional]
10
+ **timestamp** | **DateTime** | Timestamp when the hook was sent |
11
+ **response_date** | **DateTime** | Timestamp of the reply to the hook | [optional]
12
+ **response_code** | **Integer** | Return code of the reply to the hook | [optional]
13
+ **next_try** | **DateTime** | If the log is an error, do not retry to push before this timestamp | [optional]
14
+
15
+
data/lib/budgea_client.rb CHANGED
@@ -1,4 +1,14 @@
1
- # frozen_string_literal: true
1
+ =begin
2
+ #Budgea API Documentation
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.1
10
+
11
+ =end
2
12
 
3
13
  # Common files
4
14
  require 'budgea_client/api_client'
@@ -7,16 +17,18 @@ require 'budgea_client/version'
7
17
  require 'budgea_client/configuration'
8
18
 
9
19
  # Models
20
+ require 'budgea_client/models/access'
10
21
  require 'budgea_client/models/account'
11
22
  require 'budgea_client/models/account_log'
12
23
  require 'budgea_client/models/account_type'
13
24
  require 'budgea_client/models/alert'
14
- require 'budgea_client/models/bank'
15
- require 'budgea_client/models/bank_category'
16
25
  require 'budgea_client/models/category'
26
+ require 'budgea_client/models/certificate'
17
27
  require 'budgea_client/models/client'
18
28
  require 'budgea_client/models/connection'
19
29
  require 'budgea_client/models/connection_log'
30
+ require 'budgea_client/models/connector'
31
+ require 'budgea_client/models/connector_category'
20
32
  require 'budgea_client/models/connector_logo'
21
33
  require 'budgea_client/models/currency'
22
34
  require 'budgea_client/models/device'
@@ -25,6 +37,8 @@ require 'budgea_client/models/document_type'
25
37
  require 'budgea_client/models/field'
26
38
  require 'budgea_client/models/field_value'
27
39
  require 'budgea_client/models/file'
40
+ require 'budgea_client/models/group'
41
+ require 'budgea_client/models/hash_table'
28
42
  require 'budgea_client/models/inline_response_200'
29
43
  require 'budgea_client/models/inline_response_200_1'
30
44
  require 'budgea_client/models/inline_response_200_10'
@@ -53,6 +67,9 @@ require 'budgea_client/models/inline_response_200_30'
53
67
  require 'budgea_client/models/inline_response_200_31'
54
68
  require 'budgea_client/models/inline_response_200_32'
55
69
  require 'budgea_client/models/inline_response_200_33'
70
+ require 'budgea_client/models/inline_response_200_34'
71
+ require 'budgea_client/models/inline_response_200_35'
72
+ require 'budgea_client/models/inline_response_200_36'
56
73
  require 'budgea_client/models/inline_response_200_4'
57
74
  require 'budgea_client/models/inline_response_200_5'
58
75
  require 'budgea_client/models/inline_response_200_6'
@@ -61,10 +78,15 @@ require 'budgea_client/models/inline_response_200_8'
61
78
  require 'budgea_client/models/inline_response_200_9'
62
79
  require 'budgea_client/models/investment'
63
80
  require 'budgea_client/models/investment_value'
81
+ require 'budgea_client/models/invite'
64
82
  require 'budgea_client/models/locked_user'
65
83
  require 'budgea_client/models/oidc_whitelist'
84
+ require 'budgea_client/models/pocket'
66
85
  require 'budgea_client/models/profile'
86
+ require 'budgea_client/models/project'
87
+ require 'budgea_client/models/project_type'
67
88
  require 'budgea_client/models/recipient'
89
+ require 'budgea_client/models/recipient_log'
68
90
  require 'budgea_client/models/security'
69
91
  require 'budgea_client/models/subscription'
70
92
  require 'budgea_client/models/terms_of_service'
@@ -72,9 +94,11 @@ require 'budgea_client/models/transaction'
72
94
  require 'budgea_client/models/transaction_information'
73
95
  require 'budgea_client/models/transactions_cluster'
74
96
  require 'budgea_client/models/transfer'
97
+ require 'budgea_client/models/transfer_log'
75
98
  require 'budgea_client/models/user'
76
99
  require 'budgea_client/models/user_alert'
77
100
  require 'budgea_client/models/webhook'
101
+ require 'budgea_client/models/webhook_log'
78
102
 
79
103
  # APIs
80
104
  require 'budgea_client/api/administration_api'
@@ -1,6 +1,16 @@
1
- # frozen_string_literal: true
1
+ =begin
2
+ #Budgea API Documentation
2
3
 
3
- require "uri"
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.1
10
+
11
+ =end
12
+
13
+ require 'uri'
4
14
 
5
15
  module BudgeaClient
6
16
  class AdministrationApi
@@ -9,28 +19,27 @@ module BudgeaClient
9
19
  def initialize(api_client = ApiClient.default)
10
20
  @api_client = api_client
11
21
  end
12
-
13
22
  # List clients
14
23
  #
15
24
  # @param [Hash] opts the optional parameters
16
25
  # @option opts [String] :expand
17
- # @return [InlineResponse20011]
26
+ # @return [InlineResponse20012]
18
27
  def clients_get(opts = {})
19
28
  data, _status_code, _headers = clients_get_with_http_info(opts)
20
- return data
29
+ data
21
30
  end
22
31
 
23
32
  # List clients
24
33
  #
25
34
  # @param [Hash] opts the optional parameters
26
35
  # @option opts [String] :expand
27
- # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
36
+ # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
28
37
  def clients_get_with_http_info(opts = {})
29
38
  if @api_client.config.debugging
30
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_get ..."
39
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_get ...'
31
40
  end
32
41
  # resource path
33
- local_var_path = "/clients"
42
+ local_var_path = '/clients'
34
43
 
35
44
  # query parameters
36
45
  query_params = {}
@@ -55,13 +64,12 @@ module BudgeaClient
55
64
  :form_params => form_params,
56
65
  :body => post_body,
57
66
  :auth_names => auth_names,
58
- :return_type => 'InlineResponse20011')
67
+ :return_type => 'InlineResponse20012')
59
68
  if @api_client.config.debugging
60
69
  @api_client.config.logger.debug "API called: AdministrationApi#clients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
61
70
  end
62
71
  return data, status_code, headers
63
72
  end
64
-
65
73
  # Delete a client
66
74
  #
67
75
  # @param id_client
@@ -70,7 +78,7 @@ module BudgeaClient
70
78
  # @return [Client]
71
79
  def clients_id_client_delete(id_client, opts = {})
72
80
  data, _status_code, _headers = clients_id_client_delete_with_http_info(id_client, opts)
73
- return data
81
+ data
74
82
  end
75
83
 
76
84
  # Delete a client
@@ -81,14 +89,14 @@ module BudgeaClient
81
89
  # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers
82
90
  def clients_id_client_delete_with_http_info(id_client, opts = {})
83
91
  if @api_client.config.debugging
84
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_id_client_delete ..."
92
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_id_client_delete ...'
85
93
  end
86
94
  # verify the required parameter 'id_client' is set
87
95
  if @api_client.config.client_side_validation && id_client.nil?
88
96
  fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.clients_id_client_delete"
89
97
  end
90
98
  # resource path
91
- local_var_path = "/clients/{id_client}".sub('{' + 'id_client' + '}', id_client.to_s)
99
+ local_var_path = '/clients/{id_client}'.sub('{' + 'id_client' + '}', id_client.to_s)
92
100
 
93
101
  # query parameters
94
102
  query_params = {}
@@ -119,34 +127,33 @@ module BudgeaClient
119
127
  end
120
128
  return data, status_code, headers
121
129
  end
122
-
123
130
  # Get information about a client
124
- # If you use the manage_token, you will get also the client_secret.<br><br>
131
+ # If you use the manage_token or a configuration token, you will get also the client_secret<br><br>
125
132
  # @param id_client
126
133
  # @param [Hash] opts the optional parameters
127
134
  # @option opts [String] :expand
128
135
  # @return [Client]
129
136
  def clients_id_client_get(id_client, opts = {})
130
137
  data, _status_code, _headers = clients_id_client_get_with_http_info(id_client, opts)
131
- return data
138
+ data
132
139
  end
133
140
 
134
141
  # Get information about a client
135
- # If you use the manage_token, you will get also the client_secret.&lt;br&gt;&lt;br&gt;
142
+ # If you use the manage_token or a configuration token, you will get also the client_secret&lt;br&gt;&lt;br&gt;
136
143
  # @param id_client
137
144
  # @param [Hash] opts the optional parameters
138
145
  # @option opts [String] :expand
139
146
  # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers
140
147
  def clients_id_client_get_with_http_info(id_client, opts = {})
141
148
  if @api_client.config.debugging
142
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_id_client_get ..."
149
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_id_client_get ...'
143
150
  end
144
151
  # verify the required parameter 'id_client' is set
145
152
  if @api_client.config.client_side_validation && id_client.nil?
146
153
  fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.clients_id_client_get"
147
154
  end
148
155
  # resource path
149
- local_var_path = "/clients/{id_client}".sub('{' + 'id_client' + '}', id_client.to_s)
156
+ local_var_path = '/clients/{id_client}'.sub('{' + 'id_client' + '}', id_client.to_s)
150
157
 
151
158
  # query parameters
152
159
  query_params = {}
@@ -177,7 +184,6 @@ module BudgeaClient
177
184
  end
178
185
  return data, status_code, headers
179
186
  end
180
-
181
187
  # Delete the client logo
182
188
  #
183
189
  # @param id_client
@@ -186,7 +192,7 @@ module BudgeaClient
186
192
  # @return [File]
187
193
  def clients_id_client_logo_delete(id_client, opts = {})
188
194
  data, _status_code, _headers = clients_id_client_logo_delete_with_http_info(id_client, opts)
189
- return data
195
+ data
190
196
  end
191
197
 
192
198
  # Delete the client logo
@@ -197,14 +203,14 @@ module BudgeaClient
197
203
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
198
204
  def clients_id_client_logo_delete_with_http_info(id_client, opts = {})
199
205
  if @api_client.config.debugging
200
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_id_client_logo_delete ..."
206
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_id_client_logo_delete ...'
201
207
  end
202
208
  # verify the required parameter 'id_client' is set
203
209
  if @api_client.config.client_side_validation && id_client.nil?
204
210
  fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.clients_id_client_logo_delete"
205
211
  end
206
212
  # resource path
207
- local_var_path = "/clients/{id_client}/logo".sub('{' + 'id_client' + '}', id_client.to_s)
213
+ local_var_path = '/clients/{id_client}/logo'.sub('{' + 'id_client' + '}', id_client.to_s)
208
214
 
209
215
  # query parameters
210
216
  query_params = {}
@@ -235,7 +241,6 @@ module BudgeaClient
235
241
  end
236
242
  return data, status_code, headers
237
243
  end
238
-
239
244
  # Update the client logo
240
245
  #
241
246
  # @param id_client
@@ -244,7 +249,7 @@ module BudgeaClient
244
249
  # @return [File]
245
250
  def clients_id_client_logo_post(id_client, opts = {})
246
251
  data, _status_code, _headers = clients_id_client_logo_post_with_http_info(id_client, opts)
247
- return data
252
+ data
248
253
  end
249
254
 
250
255
  # Update the client logo
@@ -255,14 +260,14 @@ module BudgeaClient
255
260
  # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
256
261
  def clients_id_client_logo_post_with_http_info(id_client, opts = {})
257
262
  if @api_client.config.debugging
258
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_id_client_logo_post ..."
263
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_id_client_logo_post ...'
259
264
  end
260
265
  # verify the required parameter 'id_client' is set
261
266
  if @api_client.config.client_side_validation && id_client.nil?
262
267
  fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.clients_id_client_logo_post"
263
268
  end
264
269
  # resource path
265
- local_var_path = "/clients/{id_client}/logo".sub('{' + 'id_client' + '}', id_client.to_s)
270
+ local_var_path = '/clients/{id_client}/logo'.sub('{' + 'id_client' + '}', id_client.to_s)
266
271
 
267
272
  # query parameters
268
273
  query_params = {}
@@ -293,11 +298,11 @@ module BudgeaClient
293
298
  end
294
299
  return data, status_code, headers
295
300
  end
296
-
297
301
  # Update a client
298
302
  #
299
303
  # @param id_client
300
304
  # @param [Hash] opts the optional parameters
305
+ # @option opts [BOOLEAN] :generate_keys set a rsa key pair for the client, which make it possible to generate a jwt user token using this client. No effect if the client already has a set of keys(default: False)
301
306
  # @option opts [String] :name name of client
302
307
  # @option opts [BOOLEAN] :secret reset the secret
303
308
  # @option opts [String] :redirect_uri redirect_uri
@@ -307,17 +312,20 @@ module BudgeaClient
307
312
  # @option opts [String] :description_banks text to display as a description for banks
308
313
  # @option opts [String] :description_providers text to display as a description for providers
309
314
  # @option opts [BOOLEAN] :pro Wether the client should display the company manager page
315
+ # @option opts [String] :information custom information about the client
316
+ # @option opts [BOOLEAN] :update_information update the custom information about the client instead of replacing the existing one (default: True)
310
317
  # @option opts [String] :expand
311
318
  # @return [Client]
312
319
  def clients_id_client_put(id_client, opts = {})
313
320
  data, _status_code, _headers = clients_id_client_put_with_http_info(id_client, opts)
314
- return data
321
+ data
315
322
  end
316
323
 
317
324
  # Update a client
318
325
  #
319
326
  # @param id_client
320
327
  # @param [Hash] opts the optional parameters
328
+ # @option opts [BOOLEAN] :generate_keys set a rsa key pair for the client, which make it possible to generate a jwt user token using this client. No effect if the client already has a set of keys(default: False)
321
329
  # @option opts [String] :name name of client
322
330
  # @option opts [BOOLEAN] :secret reset the secret
323
331
  # @option opts [String] :redirect_uri redirect_uri
@@ -327,18 +335,20 @@ module BudgeaClient
327
335
  # @option opts [String] :description_banks text to display as a description for banks
328
336
  # @option opts [String] :description_providers text to display as a description for providers
329
337
  # @option opts [BOOLEAN] :pro Wether the client should display the company manager page
338
+ # @option opts [String] :information custom information about the client
339
+ # @option opts [BOOLEAN] :update_information update the custom information about the client instead of replacing the existing one (default: True)
330
340
  # @option opts [String] :expand
331
341
  # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers
332
342
  def clients_id_client_put_with_http_info(id_client, opts = {})
333
343
  if @api_client.config.debugging
334
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_id_client_put ..."
344
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_id_client_put ...'
335
345
  end
336
346
  # verify the required parameter 'id_client' is set
337
347
  if @api_client.config.client_side_validation && id_client.nil?
338
348
  fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.clients_id_client_put"
339
349
  end
340
350
  # resource path
341
- local_var_path = "/clients/{id_client}".sub('{' + 'id_client' + '}', id_client.to_s)
351
+ local_var_path = '/clients/{id_client}'.sub('{' + 'id_client' + '}', id_client.to_s)
342
352
 
343
353
  # query parameters
344
354
  query_params = {}
@@ -353,15 +363,18 @@ module BudgeaClient
353
363
 
354
364
  # form parameters
355
365
  form_params = {}
356
- form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
357
- form_params["secret"] = opts[:'secret'] if !opts[:'secret'].nil?
358
- form_params["redirect_uri"] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
359
- form_params["primary_color"] = opts[:'primary_color'] if !opts[:'primary_color'].nil?
360
- form_params["secondary_color"] = opts[:'secondary_color'] if !opts[:'secondary_color'].nil?
361
- form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
362
- form_params["description_banks"] = opts[:'description_banks'] if !opts[:'description_banks'].nil?
363
- form_params["description_providers"] = opts[:'description_providers'] if !opts[:'description_providers'].nil?
364
- form_params["pro"] = opts[:'pro'] if !opts[:'pro'].nil?
366
+ form_params['generate_keys'] = opts[:'generate_keys'] if !opts[:'generate_keys'].nil?
367
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
368
+ form_params['secret'] = opts[:'secret'] if !opts[:'secret'].nil?
369
+ form_params['redirect_uri'] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
370
+ form_params['primary_color'] = opts[:'primary_color'] if !opts[:'primary_color'].nil?
371
+ form_params['secondary_color'] = opts[:'secondary_color'] if !opts[:'secondary_color'].nil?
372
+ form_params['description'] = opts[:'description'] if !opts[:'description'].nil?
373
+ form_params['description_banks'] = opts[:'description_banks'] if !opts[:'description_banks'].nil?
374
+ form_params['description_providers'] = opts[:'description_providers'] if !opts[:'description_providers'].nil?
375
+ form_params['pro'] = opts[:'pro'] if !opts[:'pro'].nil?
376
+ form_params['information'] = opts[:'information'] if !opts[:'information'].nil?
377
+ form_params['update_information'] = opts[:'update_information'] if !opts[:'update_information'].nil?
365
378
 
366
379
  # http body (model)
367
380
  post_body = nil
@@ -378,28 +391,35 @@ module BudgeaClient
378
391
  end
379
392
  return data, status_code, headers
380
393
  end
381
-
382
394
  # Create a client
383
395
  #
384
396
  # @param [Hash] opts the optional parameters
397
+ # @option opts [BOOLEAN] :generate_keys if True, generate a rsa pair of keys so the client can be used to generate jwt user tokens (default: False)
398
+ # @option opts [String] :name name of client
399
+ # @option opts [String] :redirect_uri redirect_uri
400
+ # @option opts [String] :information custom information about the client
385
401
  # @option opts [String] :expand
386
402
  # @return [Client]
387
403
  def clients_post(opts = {})
388
404
  data, _status_code, _headers = clients_post_with_http_info(opts)
389
- return data
405
+ data
390
406
  end
391
407
 
392
408
  # Create a client
393
409
  #
394
410
  # @param [Hash] opts the optional parameters
411
+ # @option opts [BOOLEAN] :generate_keys if True, generate a rsa pair of keys so the client can be used to generate jwt user tokens (default: False)
412
+ # @option opts [String] :name name of client
413
+ # @option opts [String] :redirect_uri redirect_uri
414
+ # @option opts [String] :information custom information about the client
395
415
  # @option opts [String] :expand
396
416
  # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers
397
417
  def clients_post_with_http_info(opts = {})
398
418
  if @api_client.config.debugging
399
- @api_client.config.logger.debug "Calling API: AdministrationApi.clients_post ..."
419
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.clients_post ...'
400
420
  end
401
421
  # resource path
402
- local_var_path = "/clients"
422
+ local_var_path = '/clients'
403
423
 
404
424
  # query parameters
405
425
  query_params = {}
@@ -414,6 +434,10 @@ module BudgeaClient
414
434
 
415
435
  # form parameters
416
436
  form_params = {}
437
+ form_params['generate_keys'] = opts[:'generate_keys'] if !opts[:'generate_keys'].nil?
438
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
439
+ form_params['redirect_uri'] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
440
+ form_params['information'] = opts[:'information'] if !opts[:'information'].nil?
417
441
 
418
442
  # http body (model)
419
443
  post_body = nil
@@ -430,7 +454,6 @@ module BudgeaClient
430
454
  end
431
455
  return data, status_code, headers
432
456
  end
433
-
434
457
  # Get configuration of the API.
435
458
  # <br><br>
436
459
  # @param [Hash] opts the optional parameters
@@ -438,7 +461,7 @@ module BudgeaClient
438
461
  # @return [nil]
439
462
  def config_get(opts = {})
440
463
  config_get_with_http_info(opts)
441
- return nil
464
+ nil
442
465
  end
443
466
 
444
467
  # Get configuration of the API.
@@ -448,10 +471,10 @@ module BudgeaClient
448
471
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
449
472
  def config_get_with_http_info(opts = {})
450
473
  if @api_client.config.debugging
451
- @api_client.config.logger.debug "Calling API: AdministrationApi.config_get ..."
474
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.config_get ...'
452
475
  end
453
476
  # resource path
454
- local_var_path = "/config"
477
+ local_var_path = '/config'
455
478
 
456
479
  # query parameters
457
480
  query_params = {}
@@ -481,28 +504,27 @@ module BudgeaClient
481
504
  end
482
505
  return data, status_code, headers
483
506
  end
484
-
485
507
  # Set a configuration value on the API.
486
- # Request: { \"bank.connection.disable_new\": \"0\", \"search\": \"bank.connection.disable_new\" }<br><br>
508
+ # Request: { \"connection.disable_new\": \"0\", \"search\": \"connection.disable_new\" }<br><br>
487
509
  # @param [Hash] opts the optional parameters
488
510
  # @option opts [String] :search limit the results to keys matching the given value
489
511
  # @return [Object]
490
512
  def config_post(opts = {})
491
513
  data, _status_code, _headers = config_post_with_http_info(opts)
492
- return data
514
+ data
493
515
  end
494
516
 
495
517
  # Set a configuration value on the API.
496
- # Request: { \&quot;bank.connection.disable_new\&quot;: \&quot;0\&quot;, \&quot;search\&quot;: \&quot;bank.connection.disable_new\&quot; }&lt;br&gt;&lt;br&gt;
518
+ # Request: { \&quot;connection.disable_new\&quot;: \&quot;0\&quot;, \&quot;search\&quot;: \&quot;connection.disable_new\&quot; }&lt;br&gt;&lt;br&gt;
497
519
  # @param [Hash] opts the optional parameters
498
520
  # @option opts [String] :search limit the results to keys matching the given value
499
521
  # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
500
522
  def config_post_with_http_info(opts = {})
501
523
  if @api_client.config.debugging
502
- @api_client.config.logger.debug "Calling API: AdministrationApi.config_post ..."
524
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.config_post ...'
503
525
  end
504
526
  # resource path
505
- local_var_path = "/config"
527
+ local_var_path = '/config'
506
528
 
507
529
  # query parameters
508
530
  query_params = {}
@@ -533,7 +555,243 @@ module BudgeaClient
533
555
  end
534
556
  return data, status_code, headers
535
557
  end
558
+ # List clients
559
+ #
560
+ # @param [Hash] opts the optional parameters
561
+ # @option opts [String] :expand
562
+ # @return [InlineResponse20012]
563
+ def merchants_get(opts = {})
564
+ data, _status_code, _headers = merchants_get_with_http_info(opts)
565
+ data
566
+ end
567
+
568
+ # List clients
569
+ #
570
+ # @param [Hash] opts the optional parameters
571
+ # @option opts [String] :expand
572
+ # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
573
+ def merchants_get_with_http_info(opts = {})
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.merchants_get ...'
576
+ end
577
+ # resource path
578
+ local_var_path = '/merchants'
579
+
580
+ # query parameters
581
+ query_params = {}
582
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
583
+
584
+ # header parameters
585
+ header_params = {}
586
+ # HTTP header 'Accept' (if needed)
587
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
588
+ # HTTP header 'Content-Type'
589
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
590
+
591
+ # form parameters
592
+ form_params = {}
593
+
594
+ # http body (model)
595
+ post_body = nil
596
+ auth_names = ['api_key']
597
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
598
+ :header_params => header_params,
599
+ :query_params => query_params,
600
+ :form_params => form_params,
601
+ :body => post_body,
602
+ :auth_names => auth_names,
603
+ :return_type => 'InlineResponse20012')
604
+ if @api_client.config.debugging
605
+ @api_client.config.logger.debug "API called: AdministrationApi#merchants_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+ # Delete the client logo
610
+ #
611
+ # @param id_client
612
+ # @param [Hash] opts the optional parameters
613
+ # @option opts [String] :expand
614
+ # @return [File]
615
+ def merchants_id_client_logo_delete(id_client, opts = {})
616
+ data, _status_code, _headers = merchants_id_client_logo_delete_with_http_info(id_client, opts)
617
+ data
618
+ end
619
+
620
+ # Delete the client logo
621
+ #
622
+ # @param id_client
623
+ # @param [Hash] opts the optional parameters
624
+ # @option opts [String] :expand
625
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
626
+ def merchants_id_client_logo_delete_with_http_info(id_client, opts = {})
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.merchants_id_client_logo_delete ...'
629
+ end
630
+ # verify the required parameter 'id_client' is set
631
+ if @api_client.config.client_side_validation && id_client.nil?
632
+ fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.merchants_id_client_logo_delete"
633
+ end
634
+ # resource path
635
+ local_var_path = '/merchants/{id_client}/logo'.sub('{' + 'id_client' + '}', id_client.to_s)
636
+
637
+ # query parameters
638
+ query_params = {}
639
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
640
+
641
+ # header parameters
642
+ header_params = {}
643
+ # HTTP header 'Accept' (if needed)
644
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
645
+ # HTTP header 'Content-Type'
646
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
647
+
648
+ # form parameters
649
+ form_params = {}
650
+
651
+ # http body (model)
652
+ post_body = nil
653
+ auth_names = ['api_key']
654
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
655
+ :header_params => header_params,
656
+ :query_params => query_params,
657
+ :form_params => form_params,
658
+ :body => post_body,
659
+ :auth_names => auth_names,
660
+ :return_type => 'File')
661
+ if @api_client.config.debugging
662
+ @api_client.config.logger.debug "API called: AdministrationApi#merchants_id_client_logo_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
663
+ end
664
+ return data, status_code, headers
665
+ end
666
+ # Update the client logo
667
+ #
668
+ # @param id_client
669
+ # @param [Hash] opts the optional parameters
670
+ # @option opts [String] :expand
671
+ # @return [File]
672
+ def merchants_id_client_logo_post(id_client, opts = {})
673
+ data, _status_code, _headers = merchants_id_client_logo_post_with_http_info(id_client, opts)
674
+ data
675
+ end
676
+
677
+ # Update the client logo
678
+ #
679
+ # @param id_client
680
+ # @param [Hash] opts the optional parameters
681
+ # @option opts [String] :expand
682
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
683
+ def merchants_id_client_logo_post_with_http_info(id_client, opts = {})
684
+ if @api_client.config.debugging
685
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.merchants_id_client_logo_post ...'
686
+ end
687
+ # verify the required parameter 'id_client' is set
688
+ if @api_client.config.client_side_validation && id_client.nil?
689
+ fail ArgumentError, "Missing the required parameter 'id_client' when calling AdministrationApi.merchants_id_client_logo_post"
690
+ end
691
+ # resource path
692
+ local_var_path = '/merchants/{id_client}/logo'.sub('{' + 'id_client' + '}', id_client.to_s)
693
+
694
+ # query parameters
695
+ query_params = {}
696
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
697
+
698
+ # header parameters
699
+ header_params = {}
700
+ # HTTP header 'Accept' (if needed)
701
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
702
+ # HTTP header 'Content-Type'
703
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
704
+
705
+ # form parameters
706
+ form_params = {}
707
+
708
+ # http body (model)
709
+ post_body = nil
710
+ auth_names = ['api_key']
711
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
712
+ :header_params => header_params,
713
+ :query_params => query_params,
714
+ :form_params => form_params,
715
+ :body => post_body,
716
+ :auth_names => auth_names,
717
+ :return_type => 'File')
718
+ if @api_client.config.debugging
719
+ @api_client.config.logger.debug "API called: AdministrationApi#merchants_id_client_logo_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
720
+ end
721
+ return data, status_code, headers
722
+ end
723
+ # Create a merchant. Needs a user identified in bearer to be used
724
+ #
725
+ # @param name name of merchant
726
+ # @param redirect_uri regexp to check if given redirect_uri are authorized
727
+ # @param iban payments initiated by this merchant will be done to this IBAN
728
+ # @param [Hash] opts the optional parameters
729
+ # @option opts [String] :expand
730
+ # @return [Client]
731
+ def merchants_post(name, redirect_uri, iban, opts = {})
732
+ data, _status_code, _headers = merchants_post_with_http_info(name, redirect_uri, iban, opts)
733
+ data
734
+ end
735
+
736
+ # Create a merchant. Needs a user identified in bearer to be used
737
+ #
738
+ # @param name name of merchant
739
+ # @param redirect_uri regexp to check if given redirect_uri are authorized
740
+ # @param iban payments initiated by this merchant will be done to this IBAN
741
+ # @param [Hash] opts the optional parameters
742
+ # @option opts [String] :expand
743
+ # @return [Array<(Client, Fixnum, Hash)>] Client data, response status code and response headers
744
+ def merchants_post_with_http_info(name, redirect_uri, iban, opts = {})
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.merchants_post ...'
747
+ end
748
+ # verify the required parameter 'name' is set
749
+ if @api_client.config.client_side_validation && name.nil?
750
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdministrationApi.merchants_post"
751
+ end
752
+ # verify the required parameter 'redirect_uri' is set
753
+ if @api_client.config.client_side_validation && redirect_uri.nil?
754
+ fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling AdministrationApi.merchants_post"
755
+ end
756
+ # verify the required parameter 'iban' is set
757
+ if @api_client.config.client_side_validation && iban.nil?
758
+ fail ArgumentError, "Missing the required parameter 'iban' when calling AdministrationApi.merchants_post"
759
+ end
760
+ # resource path
761
+ local_var_path = '/merchants'
762
+
763
+ # query parameters
764
+ query_params = {}
765
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
766
+
767
+ # header parameters
768
+ header_params = {}
769
+ # HTTP header 'Accept' (if needed)
770
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
771
+ # HTTP header 'Content-Type'
772
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
773
+
774
+ # form parameters
775
+ form_params = {}
776
+ form_params['name'] = name
777
+ form_params['redirect_uri'] = redirect_uri
778
+ form_params['iban'] = iban
536
779
 
780
+ # http body (model)
781
+ post_body = nil
782
+ auth_names = ['api_key']
783
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
784
+ :header_params => header_params,
785
+ :query_params => query_params,
786
+ :form_params => form_params,
787
+ :body => post_body,
788
+ :auth_names => auth_names,
789
+ :return_type => 'Client')
790
+ if @api_client.config.debugging
791
+ @api_client.config.logger.debug "API called: AdministrationApi#merchants_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
792
+ end
793
+ return data, status_code, headers
794
+ end
537
795
  # get performances stats on this instance
538
796
  #
539
797
  # @param [Hash] opts the optional parameters
@@ -541,7 +799,7 @@ module BudgeaClient
541
799
  # @return [nil]
542
800
  def monitoring_get(opts = {})
543
801
  monitoring_get_with_http_info(opts)
544
- return nil
802
+ nil
545
803
  end
546
804
 
547
805
  # get performances stats on this instance
@@ -551,10 +809,10 @@ module BudgeaClient
551
809
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
552
810
  def monitoring_get_with_http_info(opts = {})
553
811
  if @api_client.config.debugging
554
- @api_client.config.logger.debug "Calling API: AdministrationApi.monitoring_get ..."
812
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.monitoring_get ...'
555
813
  end
556
814
  # resource path
557
- local_var_path = "/monitoring"
815
+ local_var_path = '/monitoring'
558
816
 
559
817
  # query parameters
560
818
  query_params = {}
@@ -584,14 +842,13 @@ module BudgeaClient
584
842
  end
585
843
  return data, status_code, headers
586
844
  end
587
-
588
845
  # Test synchronization on a random connection.
589
846
  # It can be used to test receiving data on your webhooks.<br><br>
590
847
  # @param [Hash] opts the optional parameters
591
848
  # @return [nil]
592
849
  def test_sync_post(opts = {})
593
850
  test_sync_post_with_http_info(opts)
594
- return nil
851
+ nil
595
852
  end
596
853
 
597
854
  # Test synchronization on a random connection.
@@ -600,10 +857,10 @@ module BudgeaClient
600
857
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
601
858
  def test_sync_post_with_http_info(opts = {})
602
859
  if @api_client.config.debugging
603
- @api_client.config.logger.debug "Calling API: AdministrationApi.test_sync_post ..."
860
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.test_sync_post ...'
604
861
  end
605
862
  # resource path
606
- local_var_path = "/test/sync"
863
+ local_var_path = '/test/sync'
607
864
 
608
865
  # query parameters
609
866
  query_params = {}
@@ -632,14 +889,13 @@ module BudgeaClient
632
889
  end
633
890
  return data, status_code, headers
634
891
  end
635
-
636
892
  # Test synchronization on a random connection.
637
893
  # It can be used to test receiving data on your webhooks.<br><br>
638
894
  # @param [Hash] opts the optional parameters
639
895
  # @return [nil]
640
896
  def test_webhooks_post(opts = {})
641
897
  test_webhooks_post_with_http_info(opts)
642
- return nil
898
+ nil
643
899
  end
644
900
 
645
901
  # Test synchronization on a random connection.
@@ -648,10 +904,10 @@ module BudgeaClient
648
904
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
649
905
  def test_webhooks_post_with_http_info(opts = {})
650
906
  if @api_client.config.debugging
651
- @api_client.config.logger.debug "Calling API: AdministrationApi.test_webhooks_post ..."
907
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.test_webhooks_post ...'
652
908
  end
653
909
  # resource path
654
- local_var_path = "/test/webhooks"
910
+ local_var_path = '/test/webhooks'
655
911
 
656
912
  # query parameters
657
913
  query_params = {}
@@ -680,7 +936,6 @@ module BudgeaClient
680
936
  end
681
937
  return data, status_code, headers
682
938
  end
683
-
684
939
  # Deletes all webhooks
685
940
  # Updates the deleted field with the date of the deletion<br><br>
686
941
  # @param [Hash] opts the optional parameters
@@ -688,7 +943,7 @@ module BudgeaClient
688
943
  # @return [Webhook]
689
944
  def webhooks_delete(opts = {})
690
945
  data, _status_code, _headers = webhooks_delete_with_http_info(opts)
691
- return data
946
+ data
692
947
  end
693
948
 
694
949
  # Deletes all webhooks
@@ -698,10 +953,10 @@ module BudgeaClient
698
953
  # @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
699
954
  def webhooks_delete_with_http_info(opts = {})
700
955
  if @api_client.config.debugging
701
- @api_client.config.logger.debug "Calling API: AdministrationApi.webhooks_delete ..."
956
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_delete ...'
702
957
  end
703
958
  # resource path
704
- local_var_path = "/webhooks"
959
+ local_var_path = '/webhooks'
705
960
 
706
961
  # query parameters
707
962
  query_params = {}
@@ -732,28 +987,27 @@ module BudgeaClient
732
987
  end
733
988
  return data, status_code, headers
734
989
  end
735
-
736
990
  # Get webhooks
737
991
  #
738
992
  # @param [Hash] opts the optional parameters
739
993
  # @option opts [String] :expand
740
- # @return [InlineResponse20033]
994
+ # @return [InlineResponse20035]
741
995
  def webhooks_get(opts = {})
742
996
  data, _status_code, _headers = webhooks_get_with_http_info(opts)
743
- return data
997
+ data
744
998
  end
745
999
 
746
1000
  # Get webhooks
747
1001
  #
748
1002
  # @param [Hash] opts the optional parameters
749
1003
  # @option opts [String] :expand
750
- # @return [Array<(InlineResponse20033, Fixnum, Hash)>] InlineResponse20033 data, response status code and response headers
1004
+ # @return [Array<(InlineResponse20035, Fixnum, Hash)>] InlineResponse20035 data, response status code and response headers
751
1005
  def webhooks_get_with_http_info(opts = {})
752
1006
  if @api_client.config.debugging
753
- @api_client.config.logger.debug "Calling API: AdministrationApi.webhooks_get ..."
1007
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_get ...'
754
1008
  end
755
1009
  # resource path
756
- local_var_path = "/webhooks"
1010
+ local_var_path = '/webhooks'
757
1011
 
758
1012
  # query parameters
759
1013
  query_params = {}
@@ -778,13 +1032,12 @@ module BudgeaClient
778
1032
  :form_params => form_params,
779
1033
  :body => post_body,
780
1034
  :auth_names => auth_names,
781
- :return_type => 'InlineResponse20033')
1035
+ :return_type => 'InlineResponse20035')
782
1036
  if @api_client.config.debugging
783
1037
  @api_client.config.logger.debug "API called: AdministrationApi#webhooks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
784
1038
  end
785
1039
  return data, status_code, headers
786
1040
  end
787
-
788
1041
  # Deletes a webhook
789
1042
  # Updates the deleted field with the date of the deletion<br><br>
790
1043
  # @param id_webhook
@@ -793,7 +1046,7 @@ module BudgeaClient
793
1046
  # @return [Webhook]
794
1047
  def webhooks_id_webhook_delete(id_webhook, opts = {})
795
1048
  data, _status_code, _headers = webhooks_id_webhook_delete_with_http_info(id_webhook, opts)
796
- return data
1049
+ data
797
1050
  end
798
1051
 
799
1052
  # Deletes a webhook
@@ -804,14 +1057,14 @@ module BudgeaClient
804
1057
  # @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
805
1058
  def webhooks_id_webhook_delete_with_http_info(id_webhook, opts = {})
806
1059
  if @api_client.config.debugging
807
- @api_client.config.logger.debug "Calling API: AdministrationApi.webhooks_id_webhook_delete ..."
1060
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_id_webhook_delete ...'
808
1061
  end
809
1062
  # verify the required parameter 'id_webhook' is set
810
1063
  if @api_client.config.client_side_validation && id_webhook.nil?
811
1064
  fail ArgumentError, "Missing the required parameter 'id_webhook' when calling AdministrationApi.webhooks_id_webhook_delete"
812
1065
  end
813
1066
  # resource path
814
- local_var_path = "/webhooks/{id_webhook}".sub('{' + 'id_webhook' + '}', id_webhook.to_s)
1067
+ local_var_path = '/webhooks/{id_webhook}'.sub('{' + 'id_webhook' + '}', id_webhook.to_s)
815
1068
 
816
1069
  # query parameters
817
1070
  query_params = {}
@@ -842,7 +1095,75 @@ module BudgeaClient
842
1095
  end
843
1096
  return data, status_code, headers
844
1097
  end
1098
+ # Get webhooks logs.
1099
+ # Get logs of the webhooks.<br><br>By default, it selects logs for the last month. You can use \"min_date\" and \"max_date\" to change boundary dates.<br><br>
1100
+ # @param id_webhook
1101
+ # @param [Hash] opts the optional parameters
1102
+ # @option opts [Integer] :limit limit number of results
1103
+ # @option opts [Integer] :offset offset of first result
1104
+ # @option opts [Date] :min_date minimal (inclusive) date
1105
+ # @option opts [Date] :max_date maximum (inclusive) date
1106
+ # @option opts [String] :expand
1107
+ # @return [InlineResponse20036]
1108
+ def webhooks_id_webhook_logs_get(id_webhook, opts = {})
1109
+ data, _status_code, _headers = webhooks_id_webhook_logs_get_with_http_info(id_webhook, opts)
1110
+ data
1111
+ end
1112
+
1113
+ # Get webhooks logs.
1114
+ # Get logs of the webhooks.&lt;br&gt;&lt;br&gt;By default, it selects logs for the last month. You can use \&quot;min_date\&quot; and \&quot;max_date\&quot; to change boundary dates.&lt;br&gt;&lt;br&gt;
1115
+ # @param id_webhook
1116
+ # @param [Hash] opts the optional parameters
1117
+ # @option opts [Integer] :limit limit number of results
1118
+ # @option opts [Integer] :offset offset of first result
1119
+ # @option opts [Date] :min_date minimal (inclusive) date
1120
+ # @option opts [Date] :max_date maximum (inclusive) date
1121
+ # @option opts [String] :expand
1122
+ # @return [Array<(InlineResponse20036, Fixnum, Hash)>] InlineResponse20036 data, response status code and response headers
1123
+ def webhooks_id_webhook_logs_get_with_http_info(id_webhook, opts = {})
1124
+ if @api_client.config.debugging
1125
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_id_webhook_logs_get ...'
1126
+ end
1127
+ # verify the required parameter 'id_webhook' is set
1128
+ if @api_client.config.client_side_validation && id_webhook.nil?
1129
+ fail ArgumentError, "Missing the required parameter 'id_webhook' when calling AdministrationApi.webhooks_id_webhook_logs_get"
1130
+ end
1131
+ # resource path
1132
+ local_var_path = '/webhooks/{id_webhook}/logs'.sub('{' + 'id_webhook' + '}', id_webhook.to_s)
1133
+
1134
+ # query parameters
1135
+ query_params = {}
1136
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1137
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1138
+ query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
1139
+ query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
1140
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1141
+
1142
+ # header parameters
1143
+ header_params = {}
1144
+ # HTTP header 'Accept' (if needed)
1145
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1146
+ # HTTP header 'Content-Type'
1147
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1148
+
1149
+ # form parameters
1150
+ form_params = {}
845
1151
 
1152
+ # http body (model)
1153
+ post_body = nil
1154
+ auth_names = ['api_key']
1155
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1156
+ :header_params => header_params,
1157
+ :query_params => query_params,
1158
+ :form_params => form_params,
1159
+ :body => post_body,
1160
+ :auth_names => auth_names,
1161
+ :return_type => 'InlineResponse20036')
1162
+ if @api_client.config.debugging
1163
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_id_webhook_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1164
+ end
1165
+ return data, status_code, headers
1166
+ end
846
1167
  # Updates a webhook
847
1168
  #
848
1169
  # @param id_webhook
@@ -856,7 +1177,7 @@ module BudgeaClient
856
1177
  # @return [Webhook]
857
1178
  def webhooks_id_webhook_post(id_webhook, opts = {})
858
1179
  data, _status_code, _headers = webhooks_id_webhook_post_with_http_info(id_webhook, opts)
859
- return data
1180
+ data
860
1181
  end
861
1182
 
862
1183
  # Updates a webhook
@@ -872,14 +1193,14 @@ module BudgeaClient
872
1193
  # @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
873
1194
  def webhooks_id_webhook_post_with_http_info(id_webhook, opts = {})
874
1195
  if @api_client.config.debugging
875
- @api_client.config.logger.debug "Calling API: AdministrationApi.webhooks_id_webhook_post ..."
1196
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_id_webhook_post ...'
876
1197
  end
877
1198
  # verify the required parameter 'id_webhook' is set
878
1199
  if @api_client.config.client_side_validation && id_webhook.nil?
879
1200
  fail ArgumentError, "Missing the required parameter 'id_webhook' when calling AdministrationApi.webhooks_id_webhook_post"
880
1201
  end
881
1202
  # resource path
882
- local_var_path = "/webhooks/{id_webhook}".sub('{' + 'id_webhook' + '}', id_webhook.to_s)
1203
+ local_var_path = '/webhooks/{id_webhook}'.sub('{' + 'id_webhook' + '}', id_webhook.to_s)
883
1204
 
884
1205
  # query parameters
885
1206
  query_params = {}
@@ -894,11 +1215,11 @@ module BudgeaClient
894
1215
 
895
1216
  # form parameters
896
1217
  form_params = {}
897
- form_params["deleted"] = opts[:'deleted'] if !opts[:'deleted'].nil?
898
- form_params["id_user"] = opts[:'id_user'] if !opts[:'id_user'].nil?
899
- form_params["id_service"] = opts[:'id_service'] if !opts[:'id_service'].nil?
900
- form_params["url"] = opts[:'url'] if !opts[:'url'].nil?
901
- form_params["event"] = opts[:'event'] if !opts[:'event'].nil?
1218
+ form_params['deleted'] = opts[:'deleted'] if !opts[:'deleted'].nil?
1219
+ form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
1220
+ form_params['id_service'] = opts[:'id_service'] if !opts[:'id_service'].nil?
1221
+ form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1222
+ form_params['event'] = opts[:'event'] if !opts[:'event'].nil?
902
1223
 
903
1224
  # http body (model)
904
1225
  post_body = nil
@@ -915,7 +1236,6 @@ module BudgeaClient
915
1236
  end
916
1237
  return data, status_code, headers
917
1238
  end
918
-
919
1239
  # Updates a webhook
920
1240
  #
921
1241
  # @param id_webhook
@@ -929,7 +1249,7 @@ module BudgeaClient
929
1249
  # @return [Webhook]
930
1250
  def webhooks_id_webhook_put(id_webhook, opts = {})
931
1251
  data, _status_code, _headers = webhooks_id_webhook_put_with_http_info(id_webhook, opts)
932
- return data
1252
+ data
933
1253
  end
934
1254
 
935
1255
  # Updates a webhook
@@ -945,14 +1265,14 @@ module BudgeaClient
945
1265
  # @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
946
1266
  def webhooks_id_webhook_put_with_http_info(id_webhook, opts = {})
947
1267
  if @api_client.config.debugging
948
- @api_client.config.logger.debug "Calling API: AdministrationApi.webhooks_id_webhook_put ..."
1268
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_id_webhook_put ...'
949
1269
  end
950
1270
  # verify the required parameter 'id_webhook' is set
951
1271
  if @api_client.config.client_side_validation && id_webhook.nil?
952
1272
  fail ArgumentError, "Missing the required parameter 'id_webhook' when calling AdministrationApi.webhooks_id_webhook_put"
953
1273
  end
954
1274
  # resource path
955
- local_var_path = "/webhooks/{id_webhook}".sub('{' + 'id_webhook' + '}', id_webhook.to_s)
1275
+ local_var_path = '/webhooks/{id_webhook}'.sub('{' + 'id_webhook' + '}', id_webhook.to_s)
956
1276
 
957
1277
  # query parameters
958
1278
  query_params = {}
@@ -967,11 +1287,11 @@ module BudgeaClient
967
1287
 
968
1288
  # form parameters
969
1289
  form_params = {}
970
- form_params["deleted"] = opts[:'deleted'] if !opts[:'deleted'].nil?
971
- form_params["id_user"] = opts[:'id_user'] if !opts[:'id_user'].nil?
972
- form_params["id_service"] = opts[:'id_service'] if !opts[:'id_service'].nil?
973
- form_params["url"] = opts[:'url'] if !opts[:'url'].nil?
974
- form_params["event"] = opts[:'event'] if !opts[:'event'].nil?
1290
+ form_params['deleted'] = opts[:'deleted'] if !opts[:'deleted'].nil?
1291
+ form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
1292
+ form_params['id_service'] = opts[:'id_service'] if !opts[:'id_service'].nil?
1293
+ form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1294
+ form_params['event'] = opts[:'event'] if !opts[:'event'].nil?
975
1295
 
976
1296
  # http body (model)
977
1297
  post_body = nil
@@ -988,7 +1308,6 @@ module BudgeaClient
988
1308
  end
989
1309
  return data, status_code, headers
990
1310
  end
991
-
992
1311
  # Adds a new webhook
993
1312
  #
994
1313
  # @param [Hash] opts the optional parameters
@@ -1001,7 +1320,7 @@ module BudgeaClient
1001
1320
  # @return [Webhook]
1002
1321
  def webhooks_post(opts = {})
1003
1322
  data, _status_code, _headers = webhooks_post_with_http_info(opts)
1004
- return data
1323
+ data
1005
1324
  end
1006
1325
 
1007
1326
  # Adds a new webhook
@@ -1016,10 +1335,10 @@ module BudgeaClient
1016
1335
  # @return [Array<(Webhook, Fixnum, Hash)>] Webhook data, response status code and response headers
1017
1336
  def webhooks_post_with_http_info(opts = {})
1018
1337
  if @api_client.config.debugging
1019
- @api_client.config.logger.debug "Calling API: AdministrationApi.webhooks_post ..."
1338
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_post ...'
1020
1339
  end
1021
1340
  # resource path
1022
- local_var_path = "/webhooks"
1341
+ local_var_path = '/webhooks'
1023
1342
 
1024
1343
  # query parameters
1025
1344
  query_params = {}
@@ -1034,11 +1353,11 @@ module BudgeaClient
1034
1353
 
1035
1354
  # form parameters
1036
1355
  form_params = {}
1037
- form_params["id_user"] = opts[:'id_user'] if !opts[:'id_user'].nil?
1038
- form_params["id_service"] = opts[:'id_service'] if !opts[:'id_service'].nil?
1039
- form_params["url"] = opts[:'url'] if !opts[:'url'].nil?
1040
- form_params["event"] = opts[:'event'] if !opts[:'event'].nil?
1041
- form_params["params"] = opts[:'params'] if !opts[:'params'].nil?
1356
+ form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
1357
+ form_params['id_service'] = opts[:'id_service'] if !opts[:'id_service'].nil?
1358
+ form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1359
+ form_params['event'] = opts[:'event'] if !opts[:'event'].nil?
1360
+ form_params['params'] = opts[:'params'] if !opts[:'params'].nil?
1042
1361
 
1043
1362
  # http body (model)
1044
1363
  post_body = nil