budgea_client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +17 -0
  4. data/Rakefile +1 -5
  5. data/budgea_openapi.json +748 -63
  6. data/docs/Account.md +2 -0
  7. data/docs/AdministrationApi.md +497 -4
  8. data/docs/AuthenticationApi.md +2 -0
  9. data/docs/BanksApi.md +165 -48
  10. data/docs/ConnectionsApi.md +14 -12
  11. data/docs/Connector.md +2 -0
  12. data/docs/DocumentsApi.md +26 -26
  13. data/docs/InlineResponse20013.md +1 -1
  14. data/docs/InlineResponse20014.md +1 -1
  15. data/docs/InlineResponse20015.md +1 -1
  16. data/docs/InlineResponse20016.md +1 -1
  17. data/docs/InlineResponse20017.md +1 -1
  18. data/docs/InlineResponse20018.md +1 -1
  19. data/docs/InlineResponse20019.md +1 -1
  20. data/docs/InlineResponse20020.md +1 -1
  21. data/docs/InlineResponse20021.md +1 -1
  22. data/docs/InlineResponse20022.md +1 -1
  23. data/docs/InlineResponse20023.md +1 -1
  24. data/docs/InlineResponse20024.md +1 -1
  25. data/docs/InlineResponse20025.md +1 -1
  26. data/docs/InlineResponse20026.md +1 -1
  27. data/docs/InlineResponse20027.md +1 -1
  28. data/docs/InlineResponse20028.md +1 -1
  29. data/docs/InlineResponse20029.md +1 -1
  30. data/docs/InlineResponse20030.md +1 -1
  31. data/docs/InlineResponse20031.md +1 -1
  32. data/docs/InlineResponse20032.md +1 -1
  33. data/docs/InlineResponse20033.md +1 -1
  34. data/docs/InlineResponse20034.md +1 -1
  35. data/docs/InlineResponse20035.md +1 -1
  36. data/docs/InlineResponse20036.md +1 -1
  37. data/docs/PFMApi.md +10 -10
  38. data/docs/ProvidersApi.md +38 -38
  39. data/docs/TermsApi.md +4 -4
  40. data/docs/Transaction.md +1 -1
  41. data/docs/TransfersApi.md +43 -25
  42. data/docs/UsersManagementApi.md +4 -4
  43. data/docs/WealthApi.md +18 -18
  44. data/docs/Webhook.md +2 -0
  45. data/lib/budgea_client/api/administration_api.rb +506 -6
  46. data/lib/budgea_client/api/authentication_api.rb +3 -0
  47. data/lib/budgea_client/api/banks_api.rb +183 -72
  48. data/lib/budgea_client/api/connections_api.rb +21 -18
  49. data/lib/budgea_client/api/documents_api.rb +39 -39
  50. data/lib/budgea_client/api/pfm_api.rb +15 -15
  51. data/lib/budgea_client/api/providers_api.rb +57 -57
  52. data/lib/budgea_client/api/terms_api.rb +6 -6
  53. data/lib/budgea_client/api/transfers_api.rb +63 -36
  54. data/lib/budgea_client/api/users_management_api.rb +6 -6
  55. data/lib/budgea_client/api/wealth_api.rb +27 -27
  56. data/lib/budgea_client/models/account.rb +24 -4
  57. data/lib/budgea_client/models/connector.rb +26 -1
  58. data/lib/budgea_client/models/inline_response_200_13.rb +11 -11
  59. data/lib/budgea_client/models/inline_response_200_14.rb +11 -11
  60. data/lib/budgea_client/models/inline_response_200_15.rb +11 -11
  61. data/lib/budgea_client/models/inline_response_200_16.rb +11 -11
  62. data/lib/budgea_client/models/inline_response_200_17.rb +11 -11
  63. data/lib/budgea_client/models/inline_response_200_18.rb +11 -11
  64. data/lib/budgea_client/models/inline_response_200_19.rb +11 -11
  65. data/lib/budgea_client/models/inline_response_200_20.rb +11 -11
  66. data/lib/budgea_client/models/inline_response_200_21.rb +11 -11
  67. data/lib/budgea_client/models/inline_response_200_22.rb +11 -11
  68. data/lib/budgea_client/models/inline_response_200_23.rb +11 -11
  69. data/lib/budgea_client/models/inline_response_200_24.rb +11 -11
  70. data/lib/budgea_client/models/inline_response_200_25.rb +11 -11
  71. data/lib/budgea_client/models/inline_response_200_26.rb +11 -11
  72. data/lib/budgea_client/models/inline_response_200_27.rb +11 -11
  73. data/lib/budgea_client/models/inline_response_200_28.rb +11 -11
  74. data/lib/budgea_client/models/inline_response_200_29.rb +11 -11
  75. data/lib/budgea_client/models/inline_response_200_30.rb +11 -11
  76. data/lib/budgea_client/models/inline_response_200_31.rb +11 -11
  77. data/lib/budgea_client/models/inline_response_200_32.rb +11 -11
  78. data/lib/budgea_client/models/inline_response_200_33.rb +11 -11
  79. data/lib/budgea_client/models/inline_response_200_34.rb +11 -11
  80. data/lib/budgea_client/models/inline_response_200_35.rb +11 -11
  81. data/lib/budgea_client/models/inline_response_200_36.rb +11 -11
  82. data/lib/budgea_client/models/transaction.rb +11 -18
  83. data/lib/budgea_client/models/webhook.rb +24 -4
  84. data/lib/budgea_client/version.rb +1 -1
  85. data/lib/budgea_client.rb +7 -0
  86. data/original_budgea_openapi.json +771 -142
  87. data/pkg/budgea_client-2.0.1.gem +0 -0
  88. metadata +4 -3
@@ -504,6 +504,69 @@ module BudgeaClient
504
504
  end
505
505
  return data, status_code, headers
506
506
  end
507
+ # Get configuration change history of the API.
508
+ # <br><br>
509
+ # @param [Hash] opts the optional parameters
510
+ # @option opts [String] :search limit the results to keys matching the given value
511
+ # @option opts [String] :type type of change done on the configuration
512
+ # @option opts [Date] :min_date minimal date of the change
513
+ # @option opts [Date] :max_date maximum date of the change
514
+ # @option opts [String] :expand
515
+ # @return [InlineResponse20013]
516
+ def config_logs_get(opts = {})
517
+ data, _status_code, _headers = config_logs_get_with_http_info(opts)
518
+ data
519
+ end
520
+
521
+ # Get configuration change history of the API.
522
+ # &lt;br&gt;&lt;br&gt;
523
+ # @param [Hash] opts the optional parameters
524
+ # @option opts [String] :search limit the results to keys matching the given value
525
+ # @option opts [String] :type type of change done on the configuration
526
+ # @option opts [Date] :min_date minimal date of the change
527
+ # @option opts [Date] :max_date maximum date of the change
528
+ # @option opts [String] :expand
529
+ # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
530
+ def config_logs_get_with_http_info(opts = {})
531
+ if @api_client.config.debugging
532
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.config_logs_get ...'
533
+ end
534
+ # resource path
535
+ local_var_path = '/config/logs'
536
+
537
+ # query parameters
538
+ query_params = {}
539
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
540
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
541
+ query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
542
+ query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
543
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
544
+
545
+ # header parameters
546
+ header_params = {}
547
+ # HTTP header 'Accept' (if needed)
548
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
549
+ # HTTP header 'Content-Type'
550
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
551
+
552
+ # form parameters
553
+ form_params = {}
554
+
555
+ # http body (model)
556
+ post_body = nil
557
+ auth_names = ['api_key']
558
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
559
+ :header_params => header_params,
560
+ :query_params => query_params,
561
+ :form_params => form_params,
562
+ :body => post_body,
563
+ :auth_names => auth_names,
564
+ :return_type => 'InlineResponse20013')
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug "API called: AdministrationApi#config_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
507
570
  # Set a configuration value on the API.
508
571
  # Request: { \"connection.disable_new\": \"0\", \"search\": \"connection.disable_new\" }<br><br>
509
572
  # @param [Hash] opts the optional parameters
@@ -936,6 +999,381 @@ module BudgeaClient
936
999
  end
937
1000
  return data, status_code, headers
938
1001
  end
1002
+ # Deletes all webhook authentication types
1003
+ #
1004
+ # @param [Hash] opts the optional parameters
1005
+ # @option opts [String] :expand
1006
+ # @return [AuthProvider]
1007
+ def webhooks_auth_delete(opts = {})
1008
+ data, _status_code, _headers = webhooks_auth_delete_with_http_info(opts)
1009
+ data
1010
+ end
1011
+
1012
+ # Deletes all webhook authentication types
1013
+ #
1014
+ # @param [Hash] opts the optional parameters
1015
+ # @option opts [String] :expand
1016
+ # @return [Array<(AuthProvider, Fixnum, Hash)>] AuthProvider data, response status code and response headers
1017
+ def webhooks_auth_delete_with_http_info(opts = {})
1018
+ if @api_client.config.debugging
1019
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_auth_delete ...'
1020
+ end
1021
+ # resource path
1022
+ local_var_path = '/webhooks/auth'
1023
+
1024
+ # query parameters
1025
+ query_params = {}
1026
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1027
+
1028
+ # header parameters
1029
+ header_params = {}
1030
+ # HTTP header 'Accept' (if needed)
1031
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1032
+ # HTTP header 'Content-Type'
1033
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1034
+
1035
+ # form parameters
1036
+ form_params = {}
1037
+
1038
+ # http body (model)
1039
+ post_body = nil
1040
+ auth_names = ['api_key']
1041
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1042
+ :header_params => header_params,
1043
+ :query_params => query_params,
1044
+ :form_params => form_params,
1045
+ :body => post_body,
1046
+ :auth_names => auth_names,
1047
+ :return_type => 'AuthProvider')
1048
+ if @api_client.config.debugging
1049
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_auth_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1050
+ end
1051
+ return data, status_code, headers
1052
+ end
1053
+ # Get webhooks authentication types
1054
+ #
1055
+ # @param [Hash] opts the optional parameters
1056
+ # @option opts [String] :expand
1057
+ # @return [InlineResponse20037]
1058
+ def webhooks_auth_get(opts = {})
1059
+ data, _status_code, _headers = webhooks_auth_get_with_http_info(opts)
1060
+ data
1061
+ end
1062
+
1063
+ # Get webhooks authentication types
1064
+ #
1065
+ # @param [Hash] opts the optional parameters
1066
+ # @option opts [String] :expand
1067
+ # @return [Array<(InlineResponse20037, Fixnum, Hash)>] InlineResponse20037 data, response status code and response headers
1068
+ def webhooks_auth_get_with_http_info(opts = {})
1069
+ if @api_client.config.debugging
1070
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_auth_get ...'
1071
+ end
1072
+ # resource path
1073
+ local_var_path = '/webhooks/auth'
1074
+
1075
+ # query parameters
1076
+ query_params = {}
1077
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1078
+
1079
+ # header parameters
1080
+ header_params = {}
1081
+ # HTTP header 'Accept' (if needed)
1082
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1083
+ # HTTP header 'Content-Type'
1084
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1085
+
1086
+ # form parameters
1087
+ form_params = {}
1088
+
1089
+ # http body (model)
1090
+ post_body = nil
1091
+ auth_names = ['api_key']
1092
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1093
+ :header_params => header_params,
1094
+ :query_params => query_params,
1095
+ :form_params => form_params,
1096
+ :body => post_body,
1097
+ :auth_names => auth_names,
1098
+ :return_type => 'InlineResponse20037')
1099
+ if @api_client.config.debugging
1100
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_auth_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1101
+ end
1102
+ return data, status_code, headers
1103
+ end
1104
+ # Deletes the webhook authentication type
1105
+ # Updates the deleted field with the date of the deletion<br><br>
1106
+ # @param id_auth
1107
+ # @param [Hash] opts the optional parameters
1108
+ # @option opts [String] :expand
1109
+ # @return [AuthProvider]
1110
+ def webhooks_auth_id_auth_delete(id_auth, opts = {})
1111
+ data, _status_code, _headers = webhooks_auth_id_auth_delete_with_http_info(id_auth, opts)
1112
+ data
1113
+ end
1114
+
1115
+ # Deletes the webhook authentication type
1116
+ # Updates the deleted field with the date of the deletion&lt;br&gt;&lt;br&gt;
1117
+ # @param id_auth
1118
+ # @param [Hash] opts the optional parameters
1119
+ # @option opts [String] :expand
1120
+ # @return [Array<(AuthProvider, Fixnum, Hash)>] AuthProvider data, response status code and response headers
1121
+ def webhooks_auth_id_auth_delete_with_http_info(id_auth, opts = {})
1122
+ if @api_client.config.debugging
1123
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_auth_id_auth_delete ...'
1124
+ end
1125
+ # verify the required parameter 'id_auth' is set
1126
+ if @api_client.config.client_side_validation && id_auth.nil?
1127
+ fail ArgumentError, "Missing the required parameter 'id_auth' when calling AdministrationApi.webhooks_auth_id_auth_delete"
1128
+ end
1129
+ # resource path
1130
+ local_var_path = '/webhooks/auth/{id_auth}'.sub('{' + 'id_auth' + '}', id_auth.to_s)
1131
+
1132
+ # query parameters
1133
+ query_params = {}
1134
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1135
+
1136
+ # header parameters
1137
+ header_params = {}
1138
+ # HTTP header 'Accept' (if needed)
1139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1140
+ # HTTP header 'Content-Type'
1141
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1142
+
1143
+ # form parameters
1144
+ form_params = {}
1145
+
1146
+ # http body (model)
1147
+ post_body = nil
1148
+ auth_names = ['api_key']
1149
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1150
+ :header_params => header_params,
1151
+ :query_params => query_params,
1152
+ :form_params => form_params,
1153
+ :body => post_body,
1154
+ :auth_names => auth_names,
1155
+ :return_type => 'AuthProvider')
1156
+ if @api_client.config.debugging
1157
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_auth_id_auth_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1158
+ end
1159
+ return data, status_code, headers
1160
+ end
1161
+ # Updates the webhook authentication type
1162
+ #
1163
+ # @param id_auth
1164
+ # @param type The type of the authentication process (oauth, certificate, token, etc...)
1165
+ # @param name The name of the authentication process to differentiate
1166
+ # @param [Hash] opts the optional parameters
1167
+ # @option opts [String] :config The authentication process configuration. A dict containing either the certificate
1168
+ # @option opts [String] :expand
1169
+ # @return [AuthProvider]
1170
+ def webhooks_auth_id_auth_post(id_auth, type, name, opts = {})
1171
+ data, _status_code, _headers = webhooks_auth_id_auth_post_with_http_info(id_auth, type, name, opts)
1172
+ data
1173
+ end
1174
+
1175
+ # Updates the webhook authentication type
1176
+ #
1177
+ # @param id_auth
1178
+ # @param type The type of the authentication process (oauth, certificate, token, etc...)
1179
+ # @param name The name of the authentication process to differentiate
1180
+ # @param [Hash] opts the optional parameters
1181
+ # @option opts [String] :config The authentication process configuration. A dict containing either the certificate
1182
+ # @option opts [String] :expand
1183
+ # @return [Array<(AuthProvider, Fixnum, Hash)>] AuthProvider data, response status code and response headers
1184
+ def webhooks_auth_id_auth_post_with_http_info(id_auth, type, name, opts = {})
1185
+ if @api_client.config.debugging
1186
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_auth_id_auth_post ...'
1187
+ end
1188
+ # verify the required parameter 'id_auth' is set
1189
+ if @api_client.config.client_side_validation && id_auth.nil?
1190
+ fail ArgumentError, "Missing the required parameter 'id_auth' when calling AdministrationApi.webhooks_auth_id_auth_post"
1191
+ end
1192
+ # verify the required parameter 'type' is set
1193
+ if @api_client.config.client_side_validation && type.nil?
1194
+ fail ArgumentError, "Missing the required parameter 'type' when calling AdministrationApi.webhooks_auth_id_auth_post"
1195
+ end
1196
+ # verify the required parameter 'name' is set
1197
+ if @api_client.config.client_side_validation && name.nil?
1198
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdministrationApi.webhooks_auth_id_auth_post"
1199
+ end
1200
+ # resource path
1201
+ local_var_path = '/webhooks/auth/{id_auth}'.sub('{' + 'id_auth' + '}', id_auth.to_s)
1202
+
1203
+ # query parameters
1204
+ query_params = {}
1205
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1206
+
1207
+ # header parameters
1208
+ header_params = {}
1209
+ # HTTP header 'Accept' (if needed)
1210
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1211
+ # HTTP header 'Content-Type'
1212
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1213
+
1214
+ # form parameters
1215
+ form_params = {}
1216
+ form_params['type'] = type
1217
+ form_params['name'] = name
1218
+ form_params['config'] = opts[:'config'] if !opts[:'config'].nil?
1219
+
1220
+ # http body (model)
1221
+ post_body = nil
1222
+ auth_names = ['api_key']
1223
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1224
+ :header_params => header_params,
1225
+ :query_params => query_params,
1226
+ :form_params => form_params,
1227
+ :body => post_body,
1228
+ :auth_names => auth_names,
1229
+ :return_type => 'AuthProvider')
1230
+ if @api_client.config.debugging
1231
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_auth_id_auth_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1232
+ end
1233
+ return data, status_code, headers
1234
+ end
1235
+ # Updates the webhook authentication type
1236
+ #
1237
+ # @param id_auth
1238
+ # @param type The type of the authentication process (oauth, certificate, token, etc...)
1239
+ # @param name The name of the authentication process to differentiate
1240
+ # @param [Hash] opts the optional parameters
1241
+ # @option opts [String] :config The authentication process configuration. A dict containt either the certificate
1242
+ # @option opts [String] :expand
1243
+ # @return [AuthProvider]
1244
+ def webhooks_auth_id_auth_put(id_auth, type, name, opts = {})
1245
+ data, _status_code, _headers = webhooks_auth_id_auth_put_with_http_info(id_auth, type, name, opts)
1246
+ data
1247
+ end
1248
+
1249
+ # Updates the webhook authentication type
1250
+ #
1251
+ # @param id_auth
1252
+ # @param type The type of the authentication process (oauth, certificate, token, etc...)
1253
+ # @param name The name of the authentication process to differentiate
1254
+ # @param [Hash] opts the optional parameters
1255
+ # @option opts [String] :config The authentication process configuration. A dict containt either the certificate
1256
+ # @option opts [String] :expand
1257
+ # @return [Array<(AuthProvider, Fixnum, Hash)>] AuthProvider data, response status code and response headers
1258
+ def webhooks_auth_id_auth_put_with_http_info(id_auth, type, name, opts = {})
1259
+ if @api_client.config.debugging
1260
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_auth_id_auth_put ...'
1261
+ end
1262
+ # verify the required parameter 'id_auth' is set
1263
+ if @api_client.config.client_side_validation && id_auth.nil?
1264
+ fail ArgumentError, "Missing the required parameter 'id_auth' when calling AdministrationApi.webhooks_auth_id_auth_put"
1265
+ end
1266
+ # verify the required parameter 'type' is set
1267
+ if @api_client.config.client_side_validation && type.nil?
1268
+ fail ArgumentError, "Missing the required parameter 'type' when calling AdministrationApi.webhooks_auth_id_auth_put"
1269
+ end
1270
+ # verify the required parameter 'name' is set
1271
+ if @api_client.config.client_side_validation && name.nil?
1272
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdministrationApi.webhooks_auth_id_auth_put"
1273
+ end
1274
+ # resource path
1275
+ local_var_path = '/webhooks/auth/{id_auth}'.sub('{' + 'id_auth' + '}', id_auth.to_s)
1276
+
1277
+ # query parameters
1278
+ query_params = {}
1279
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1280
+
1281
+ # header parameters
1282
+ header_params = {}
1283
+ # HTTP header 'Accept' (if needed)
1284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1285
+ # HTTP header 'Content-Type'
1286
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1287
+
1288
+ # form parameters
1289
+ form_params = {}
1290
+ form_params['type'] = type
1291
+ form_params['name'] = name
1292
+ form_params['config'] = opts[:'config'] if !opts[:'config'].nil?
1293
+
1294
+ # http body (model)
1295
+ post_body = nil
1296
+ auth_names = ['api_key']
1297
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1298
+ :header_params => header_params,
1299
+ :query_params => query_params,
1300
+ :form_params => form_params,
1301
+ :body => post_body,
1302
+ :auth_names => auth_names,
1303
+ :return_type => 'AuthProvider')
1304
+ if @api_client.config.debugging
1305
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_auth_id_auth_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1306
+ end
1307
+ return data, status_code, headers
1308
+ end
1309
+ # Adds a new webhook authentication type
1310
+ #
1311
+ # @param type The type of the authentication process (oauth, certificate, token, etc...)
1312
+ # @param name The name of the authentication process to differentiate
1313
+ # @param [Hash] opts the optional parameters
1314
+ # @option opts [String] :config The authentication process configuration. A dict contains either the certificate
1315
+ # @option opts [String] :expand
1316
+ # @return [AuthProvider]
1317
+ def webhooks_auth_post(type, name, opts = {})
1318
+ data, _status_code, _headers = webhooks_auth_post_with_http_info(type, name, opts)
1319
+ data
1320
+ end
1321
+
1322
+ # Adds a new webhook authentication type
1323
+ #
1324
+ # @param type The type of the authentication process (oauth, certificate, token, etc...)
1325
+ # @param name The name of the authentication process to differentiate
1326
+ # @param [Hash] opts the optional parameters
1327
+ # @option opts [String] :config The authentication process configuration. A dict contains either the certificate
1328
+ # @option opts [String] :expand
1329
+ # @return [Array<(AuthProvider, Fixnum, Hash)>] AuthProvider data, response status code and response headers
1330
+ def webhooks_auth_post_with_http_info(type, name, opts = {})
1331
+ if @api_client.config.debugging
1332
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_auth_post ...'
1333
+ end
1334
+ # verify the required parameter 'type' is set
1335
+ if @api_client.config.client_side_validation && type.nil?
1336
+ fail ArgumentError, "Missing the required parameter 'type' when calling AdministrationApi.webhooks_auth_post"
1337
+ end
1338
+ # verify the required parameter 'name' is set
1339
+ if @api_client.config.client_side_validation && name.nil?
1340
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdministrationApi.webhooks_auth_post"
1341
+ end
1342
+ # resource path
1343
+ local_var_path = '/webhooks/auth'
1344
+
1345
+ # query parameters
1346
+ query_params = {}
1347
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1348
+
1349
+ # header parameters
1350
+ header_params = {}
1351
+ # HTTP header 'Accept' (if needed)
1352
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1353
+ # HTTP header 'Content-Type'
1354
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1355
+
1356
+ # form parameters
1357
+ form_params = {}
1358
+ form_params['type'] = type
1359
+ form_params['name'] = name
1360
+ form_params['config'] = opts[:'config'] if !opts[:'config'].nil?
1361
+
1362
+ # http body (model)
1363
+ post_body = nil
1364
+ auth_names = ['api_key']
1365
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1366
+ :header_params => header_params,
1367
+ :query_params => query_params,
1368
+ :form_params => form_params,
1369
+ :body => post_body,
1370
+ :auth_names => auth_names,
1371
+ :return_type => 'AuthProvider')
1372
+ if @api_client.config.debugging
1373
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_auth_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1374
+ end
1375
+ return data, status_code, headers
1376
+ end
939
1377
  # Deletes all webhooks
940
1378
  # Updates the deleted field with the date of the deletion<br><br>
941
1379
  # @param [Hash] opts the optional parameters
@@ -991,7 +1429,7 @@ module BudgeaClient
991
1429
  #
992
1430
  # @param [Hash] opts the optional parameters
993
1431
  # @option opts [String] :expand
994
- # @return [InlineResponse20035]
1432
+ # @return [InlineResponse20036]
995
1433
  def webhooks_get(opts = {})
996
1434
  data, _status_code, _headers = webhooks_get_with_http_info(opts)
997
1435
  data
@@ -1001,7 +1439,7 @@ module BudgeaClient
1001
1439
  #
1002
1440
  # @param [Hash] opts the optional parameters
1003
1441
  # @option opts [String] :expand
1004
- # @return [Array<(InlineResponse20035, Fixnum, Hash)>] InlineResponse20035 data, response status code and response headers
1442
+ # @return [Array<(InlineResponse20036, Fixnum, Hash)>] InlineResponse20036 data, response status code and response headers
1005
1443
  def webhooks_get_with_http_info(opts = {})
1006
1444
  if @api_client.config.debugging
1007
1445
  @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_get ...'
@@ -1032,12 +1470,65 @@ module BudgeaClient
1032
1470
  :form_params => form_params,
1033
1471
  :body => post_body,
1034
1472
  :auth_names => auth_names,
1035
- :return_type => 'InlineResponse20035')
1473
+ :return_type => 'InlineResponse20036')
1036
1474
  if @api_client.config.debugging
1037
1475
  @api_client.config.logger.debug "API called: AdministrationApi#webhooks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1038
1476
  end
1039
1477
  return data, status_code, headers
1040
1478
  end
1479
+ # retrieve the list of the value to add in webhooks when sending the requested webhook
1480
+ #
1481
+ # @param id_webhook
1482
+ # @param [Hash] opts the optional parameters
1483
+ # @return [nil]
1484
+ def webhooks_id_webhook_add_to_data_get(id_webhook, opts = {})
1485
+ webhooks_id_webhook_add_to_data_get_with_http_info(id_webhook, opts)
1486
+ nil
1487
+ end
1488
+
1489
+ # retrieve the list of the value to add in webhooks when sending the requested webhook
1490
+ #
1491
+ # @param id_webhook
1492
+ # @param [Hash] opts the optional parameters
1493
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1494
+ def webhooks_id_webhook_add_to_data_get_with_http_info(id_webhook, opts = {})
1495
+ if @api_client.config.debugging
1496
+ @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_id_webhook_add_to_data_get ...'
1497
+ end
1498
+ # verify the required parameter 'id_webhook' is set
1499
+ if @api_client.config.client_side_validation && id_webhook.nil?
1500
+ fail ArgumentError, "Missing the required parameter 'id_webhook' when calling AdministrationApi.webhooks_id_webhook_add_to_data_get"
1501
+ end
1502
+ # resource path
1503
+ local_var_path = '/webhooks/{id_webhook}/add_to_data'.sub('{' + 'id_webhook' + '}', id_webhook.to_s)
1504
+
1505
+ # query parameters
1506
+ query_params = {}
1507
+
1508
+ # header parameters
1509
+ header_params = {}
1510
+ # HTTP header 'Accept' (if needed)
1511
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1512
+ # HTTP header 'Content-Type'
1513
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1514
+
1515
+ # form parameters
1516
+ form_params = {}
1517
+
1518
+ # http body (model)
1519
+ post_body = nil
1520
+ auth_names = ['api_key']
1521
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1522
+ :header_params => header_params,
1523
+ :query_params => query_params,
1524
+ :form_params => form_params,
1525
+ :body => post_body,
1526
+ :auth_names => auth_names)
1527
+ if @api_client.config.debugging
1528
+ @api_client.config.logger.debug "API called: AdministrationApi#webhooks_id_webhook_add_to_data_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1529
+ end
1530
+ return data, status_code, headers
1531
+ end
1041
1532
  # Deletes a webhook
1042
1533
  # Updates the deleted field with the date of the deletion<br><br>
1043
1534
  # @param id_webhook
@@ -1104,7 +1595,7 @@ module BudgeaClient
1104
1595
  # @option opts [Date] :min_date minimal (inclusive) date
1105
1596
  # @option opts [Date] :max_date maximum (inclusive) date
1106
1597
  # @option opts [String] :expand
1107
- # @return [InlineResponse20036]
1598
+ # @return [InlineResponse20038]
1108
1599
  def webhooks_id_webhook_logs_get(id_webhook, opts = {})
1109
1600
  data, _status_code, _headers = webhooks_id_webhook_logs_get_with_http_info(id_webhook, opts)
1110
1601
  data
@@ -1119,7 +1610,7 @@ module BudgeaClient
1119
1610
  # @option opts [Date] :min_date minimal (inclusive) date
1120
1611
  # @option opts [Date] :max_date maximum (inclusive) date
1121
1612
  # @option opts [String] :expand
1122
- # @return [Array<(InlineResponse20036, Fixnum, Hash)>] InlineResponse20036 data, response status code and response headers
1613
+ # @return [Array<(InlineResponse20038, Fixnum, Hash)>] InlineResponse20038 data, response status code and response headers
1123
1614
  def webhooks_id_webhook_logs_get_with_http_info(id_webhook, opts = {})
1124
1615
  if @api_client.config.debugging
1125
1616
  @api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_id_webhook_logs_get ...'
@@ -1158,7 +1649,7 @@ module BudgeaClient
1158
1649
  :form_params => form_params,
1159
1650
  :body => post_body,
1160
1651
  :auth_names => auth_names,
1161
- :return_type => 'InlineResponse20036')
1652
+ :return_type => 'InlineResponse20038')
1162
1653
  if @api_client.config.debugging
1163
1654
  @api_client.config.logger.debug "API called: AdministrationApi#webhooks_id_webhook_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1164
1655
  end
@@ -1171,6 +1662,7 @@ module BudgeaClient
1171
1662
  # @option opts [String] :deleted a date to delete the webhook or &#39;null&#39; to enable it
1172
1663
  # @option opts [Integer] :id_user The user ID to associate with the webhook
1173
1664
  # @option opts [Integer] :id_service The service ID to associate with the webhook
1665
+ # @option opts [Integer] :id_auth The webhook authentication process to use
1174
1666
  # @option opts [Float] :url The webhook callback url
1175
1667
  # @option opts [String] :event The webhook event
1176
1668
  # @option opts [String] :expand
@@ -1187,6 +1679,7 @@ module BudgeaClient
1187
1679
  # @option opts [String] :deleted a date to delete the webhook or &#39;null&#39; to enable it
1188
1680
  # @option opts [Integer] :id_user The user ID to associate with the webhook
1189
1681
  # @option opts [Integer] :id_service The service ID to associate with the webhook
1682
+ # @option opts [Integer] :id_auth The webhook authentication process to use
1190
1683
  # @option opts [Float] :url The webhook callback url
1191
1684
  # @option opts [String] :event The webhook event
1192
1685
  # @option opts [String] :expand
@@ -1218,6 +1711,7 @@ module BudgeaClient
1218
1711
  form_params['deleted'] = opts[:'deleted'] if !opts[:'deleted'].nil?
1219
1712
  form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
1220
1713
  form_params['id_service'] = opts[:'id_service'] if !opts[:'id_service'].nil?
1714
+ form_params['id_auth'] = opts[:'id_auth'] if !opts[:'id_auth'].nil?
1221
1715
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1222
1716
  form_params['event'] = opts[:'event'] if !opts[:'event'].nil?
1223
1717
 
@@ -1243,6 +1737,7 @@ module BudgeaClient
1243
1737
  # @option opts [String] :deleted a date to delete the webhook or &#39;null&#39; to enable it
1244
1738
  # @option opts [Integer] :id_user The user ID to associate with the webhook
1245
1739
  # @option opts [Integer] :id_service The service ID to associate with the webhook
1740
+ # @option opts [Integer] :id_auth The webhook authentication process to use
1246
1741
  # @option opts [Float] :url The webhook callback url
1247
1742
  # @option opts [String] :event The webhook event
1248
1743
  # @option opts [String] :expand
@@ -1259,6 +1754,7 @@ module BudgeaClient
1259
1754
  # @option opts [String] :deleted a date to delete the webhook or &#39;null&#39; to enable it
1260
1755
  # @option opts [Integer] :id_user The user ID to associate with the webhook
1261
1756
  # @option opts [Integer] :id_service The service ID to associate with the webhook
1757
+ # @option opts [Integer] :id_auth The webhook authentication process to use
1262
1758
  # @option opts [Float] :url The webhook callback url
1263
1759
  # @option opts [String] :event The webhook event
1264
1760
  # @option opts [String] :expand
@@ -1290,6 +1786,7 @@ module BudgeaClient
1290
1786
  form_params['deleted'] = opts[:'deleted'] if !opts[:'deleted'].nil?
1291
1787
  form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
1292
1788
  form_params['id_service'] = opts[:'id_service'] if !opts[:'id_service'].nil?
1789
+ form_params['id_auth'] = opts[:'id_auth'] if !opts[:'id_auth'].nil?
1293
1790
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1294
1791
  form_params['event'] = opts[:'event'] if !opts[:'event'].nil?
1295
1792
 
@@ -1313,6 +1810,7 @@ module BudgeaClient
1313
1810
  # @param [Hash] opts the optional parameters
1314
1811
  # @option opts [Integer] :id_user The user ID to associate with the webhook
1315
1812
  # @option opts [Integer] :id_service The service ID to associate with the webhook
1813
+ # @option opts [String] :id_auth The webhook authentication process to use (its ID or its name)
1316
1814
  # @option opts [Float] :url The webhook callback url
1317
1815
  # @option opts [String] :event The webhook event
1318
1816
  # @option opts [String] :params The webhook parameters as an object with three keys: type, key and value
@@ -1328,6 +1826,7 @@ module BudgeaClient
1328
1826
  # @param [Hash] opts the optional parameters
1329
1827
  # @option opts [Integer] :id_user The user ID to associate with the webhook
1330
1828
  # @option opts [Integer] :id_service The service ID to associate with the webhook
1829
+ # @option opts [String] :id_auth The webhook authentication process to use (its ID or its name)
1331
1830
  # @option opts [Float] :url The webhook callback url
1332
1831
  # @option opts [String] :event The webhook event
1333
1832
  # @option opts [String] :params The webhook parameters as an object with three keys: type, key and value
@@ -1355,6 +1854,7 @@ module BudgeaClient
1355
1854
  form_params = {}
1356
1855
  form_params['id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
1357
1856
  form_params['id_service'] = opts[:'id_service'] if !opts[:'id_service'].nil?
1857
+ form_params['id_auth'] = opts[:'id_auth'] if !opts[:'id_auth'].nil?
1358
1858
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
1359
1859
  form_params['event'] = opts[:'event'] if !opts[:'event'].nil?
1360
1860
  form_params['params'] = opts[:'params'] if !opts[:'params'].nil?
@@ -643,6 +643,7 @@ module BudgeaClient
643
643
  #
644
644
  # @param [Hash] opts the optional parameters
645
645
  # @option opts [Integer] :id_connector ID of the connector
646
+ # @option opts [String] :connector_uuid Optional unique ID of the connector (replaces id_connector)
646
647
  # @option opts [Integer] :client_id Client Application ID
647
648
  # @option opts [String] :redirect_uri Redirect URI
648
649
  # @option opts [String] :state Optional state
@@ -658,6 +659,7 @@ module BudgeaClient
658
659
  #
659
660
  # @param [Hash] opts the optional parameters
660
661
  # @option opts [Integer] :id_connector ID of the connector
662
+ # @option opts [String] :connector_uuid Optional unique ID of the connector (replaces id_connector)
661
663
  # @option opts [Integer] :client_id Client Application ID
662
664
  # @option opts [String] :redirect_uri Redirect URI
663
665
  # @option opts [String] :state Optional state
@@ -684,6 +686,7 @@ module BudgeaClient
684
686
  # form parameters
685
687
  form_params = {}
686
688
  form_params['id_connector'] = opts[:'id_connector'] if !opts[:'id_connector'].nil?
689
+ form_params['connector_uuid'] = opts[:'connector_uuid'] if !opts[:'connector_uuid'].nil?
687
690
  form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
688
691
  form_params['redirect_uri'] = opts[:'redirect_uri'] if !opts[:'redirect_uri'].nil?
689
692
  form_params['state'] = opts[:'state'] if !opts[:'state'].nil?