budgea_client 1.4.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +67 -725
- data/budgea_client.gemspec +15 -3
- data/budgea_openapi.json +2011 -524
- data/docs/Account.md +3 -1
- data/docs/AccountLog.md +2 -2
- data/docs/AdministrationApi.md +354 -34
- data/docs/AuthenticationApi.md +264 -18
- data/docs/BankCategory.md +1 -1
- data/docs/BanksApi.md +939 -550
- data/docs/Certificate.md +12 -0
- data/docs/Client.md +5 -2
- data/docs/Connection.md +1 -1
- data/docs/ConnectionLog.md +3 -2
- data/docs/ConnectionsApi.md +162 -103
- data/docs/Connector.md +21 -0
- data/docs/ConnectorCategory.md +9 -0
- data/docs/ConnectorLogo.md +1 -1
- data/docs/Currency.md +4 -0
- data/docs/DocumentsApi.md +350 -350
- data/docs/Field.md +3 -2
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse20029.md +1 -1
- data/docs/InlineResponse2003.md +2 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +1 -1
- data/docs/InlineResponse20032.md +1 -1
- data/docs/InlineResponse20033.md +1 -1
- data/docs/InlineResponse20034.md +8 -0
- data/docs/InlineResponse20035.md +8 -0
- data/docs/InlineResponse20036.md +8 -0
- data/docs/InlineResponse2004.md +0 -2
- data/docs/InlineResponse2005.md +5 -2
- data/docs/InlineResponse2006.md +2 -3
- data/docs/InlineResponse2007.md +3 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/OCRApi.md +5 -5
- data/docs/OIDCApi.md +5 -5
- data/docs/PFMApi.md +122 -122
- data/docs/Pocket.md +1 -1
- data/docs/Profile.md +1 -1
- data/docs/Project.md +1 -1
- data/docs/ProvidersApi.md +602 -604
- data/docs/Recipient.md +3 -0
- data/docs/RecipientLog.md +14 -0
- data/docs/RecipientsApi.md +28 -20
- data/docs/Subscription.md +2 -1
- data/docs/TermsApi.md +13 -15
- data/docs/Transaction.md +8 -3
- data/docs/Transfer.md +1 -0
- data/docs/TransferLog.md +14 -0
- data/docs/TransfersApi.md +165 -141
- data/docs/UserAlert.md +2 -2
- data/docs/UsersManagementApi.md +24 -24
- data/docs/WealthApi.md +54 -54
- data/docs/WebhookLog.md +15 -0
- data/lib/budgea_client.rb +27 -3
- data/lib/budgea_client/api/administration_api.rb +425 -106
- data/lib/budgea_client/api/authentication_api.rb +287 -46
- data/lib/budgea_client/api/banks_api.rb +1271 -974
- data/lib/budgea_client/api/connections_api.rb +207 -156
- data/lib/budgea_client/api/documents_api.rb +627 -693
- data/lib/budgea_client/api/ocr_api.rb +24 -16
- data/lib/budgea_client/api/oidc_api.rb +23 -16
- data/lib/budgea_client/api/pfm_api.rb +219 -248
- data/lib/budgea_client/api/providers_api.rb +998 -1099
- data/lib/budgea_client/api/recipients_api.rb +52 -34
- data/lib/budgea_client/api/terms_api.rb +34 -31
- data/lib/budgea_client/api/transfers_api.rb +245 -239
- data/lib/budgea_client/api/users_management_api.rb +56 -58
- data/lib/budgea_client/api/wealth_api.rb +81 -85
- data/lib/budgea_client/api_client.rb +20 -11
- data/lib/budgea_client/api_error.rb +11 -1
- data/lib/budgea_client/configuration.rb +12 -2
- data/lib/budgea_client/models/access.rb +18 -13
- data/lib/budgea_client/models/account.rb +44 -23
- data/lib/budgea_client/models/account_log.rb +33 -28
- data/lib/budgea_client/models/account_type.rb +22 -17
- data/lib/budgea_client/models/alert.rb +21 -16
- data/lib/budgea_client/models/bank.rb +21 -16
- data/lib/budgea_client/models/bank_category.rb +19 -14
- data/lib/budgea_client/models/category.rb +22 -17
- data/lib/budgea_client/models/certificate.rb +244 -0
- data/lib/budgea_client/models/client.rb +53 -20
- data/lib/budgea_client/models/connection.rb +29 -24
- data/lib/budgea_client/models/connection_log.rb +39 -24
- data/lib/budgea_client/models/connector.rb +345 -0
- data/lib/budgea_client/models/connector_category.rb +206 -0
- data/lib/budgea_client/models/connector_logo.rb +29 -24
- data/lib/budgea_client/models/currency.rb +63 -16
- data/lib/budgea_client/models/device.rb +23 -18
- data/lib/budgea_client/models/document.rb +21 -16
- data/lib/budgea_client/models/document_type.rb +19 -14
- data/lib/budgea_client/models/field.rb +44 -27
- data/lib/budgea_client/models/field_value.rb +18 -13
- data/lib/budgea_client/models/file.rb +20 -15
- data/lib/budgea_client/models/group.rb +17 -12
- data/lib/budgea_client/models/hash_table.rb +20 -15
- data/lib/budgea_client/models/inline_response_200.rb +17 -12
- data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
- data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
- data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
- data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
- data/lib/budgea_client/models/investment.rb +20 -15
- data/lib/budgea_client/models/investment_value.rb +20 -15
- data/lib/budgea_client/models/invite.rb +18 -13
- data/lib/budgea_client/models/locked_user.rb +18 -13
- data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
- data/lib/budgea_client/models/pocket.rb +22 -17
- data/lib/budgea_client/models/profile.rb +26 -20
- data/lib/budgea_client/models/project.rb +26 -21
- data/lib/budgea_client/models/project_type.rb +18 -13
- data/lib/budgea_client/models/recipient.rb +52 -17
- data/lib/budgea_client/models/recipient_log.rb +254 -0
- data/lib/budgea_client/models/security.rb +18 -13
- data/lib/budgea_client/models/subscription.rb +31 -21
- data/lib/budgea_client/models/terms_of_service.rb +19 -14
- data/lib/budgea_client/models/transaction.rb +83 -33
- data/lib/budgea_client/models/transaction_information.rb +19 -14
- data/lib/budgea_client/models/transactions_cluster.rb +21 -16
- data/lib/budgea_client/models/transfer.rb +32 -16
- data/lib/budgea_client/models/transfer_log.rb +254 -0
- data/lib/budgea_client/models/user.rb +22 -16
- data/lib/budgea_client/models/user_alert.rb +22 -16
- data/lib/budgea_client/models/webhook.rb +19 -14
- data/lib/budgea_client/models/webhook_log.rb +264 -0
- data/lib/budgea_client/version.rb +12 -2
- data/original_budgea_openapi.json +23188 -0
- data/spec/models/certificate_spec.rb +65 -0
- data/spec/models/connector_category_spec.rb +47 -0
- data/spec/models/connector_spec.rb +119 -0
- data/spec/models/inline_response_200_34_spec.rb +41 -0
- data/spec/models/inline_response_200_35_spec.rb +41 -0
- data/spec/models/inline_response_200_36_spec.rb +41 -0
- data/spec/models/recipient_log_spec.rb +77 -0
- data/spec/models/transfer_log_spec.rb +77 -0
- data/spec/models/webhook_log_spec.rb +83 -0
- metadata +52 -18
- data/pkg/budgea_client-1.3.9.gem +0 -0
- data/pkg/budgea_client-1.4.2.gem +0 -0
- data/pkg/budgea_client-1.4.3.gem +0 -0
data/docs/WebhookLog.md
ADDED
|
@@ -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
|
-
|
|
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
|
-
|
|
1
|
+
=begin
|
|
2
|
+
#Budgea API Documentation
|
|
2
3
|
|
|
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
|
|
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 [
|
|
26
|
+
# @return [InlineResponse20012]
|
|
18
27
|
def clients_get(opts = {})
|
|
19
28
|
data, _status_code, _headers = clients_get_with_http_info(opts)
|
|
20
|
-
|
|
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<(
|
|
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
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.clients_get ...'
|
|
31
40
|
end
|
|
32
41
|
# resource path
|
|
33
|
-
local_var_path =
|
|
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 => '
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
|
142
|
+
# If you use the manage_token or a configuration token, you will get also the client_secret<br><br>
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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[
|
|
357
|
-
form_params[
|
|
358
|
-
form_params[
|
|
359
|
-
form_params[
|
|
360
|
-
form_params[
|
|
361
|
-
form_params[
|
|
362
|
-
form_params[
|
|
363
|
-
form_params[
|
|
364
|
-
form_params[
|
|
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
|
-
|
|
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
|
|
419
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.clients_post ...'
|
|
400
420
|
end
|
|
401
421
|
# resource path
|
|
402
|
-
local_var_path =
|
|
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
|
-
|
|
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
|
|
474
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.config_get ...'
|
|
452
475
|
end
|
|
453
476
|
# resource path
|
|
454
|
-
local_var_path =
|
|
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: { \"
|
|
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
|
-
|
|
514
|
+
data
|
|
493
515
|
end
|
|
494
516
|
|
|
495
517
|
# Set a configuration value on the API.
|
|
496
|
-
# Request: { \"
|
|
518
|
+
# Request: { \"connection.disable_new\": \"0\", \"search\": \"connection.disable_new\" }<br><br>
|
|
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
|
|
524
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.config_post ...'
|
|
503
525
|
end
|
|
504
526
|
# resource path
|
|
505
|
-
local_var_path =
|
|
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
|
-
|
|
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
|
|
812
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.monitoring_get ...'
|
|
555
813
|
end
|
|
556
814
|
# resource path
|
|
557
|
-
local_var_path =
|
|
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
|
-
|
|
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
|
|
860
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.test_sync_post ...'
|
|
604
861
|
end
|
|
605
862
|
# resource path
|
|
606
|
-
local_var_path =
|
|
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
|
-
|
|
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
|
|
907
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.test_webhooks_post ...'
|
|
652
908
|
end
|
|
653
909
|
# resource path
|
|
654
|
-
local_var_path =
|
|
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
|
-
|
|
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
|
|
956
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_delete ...'
|
|
702
957
|
end
|
|
703
958
|
# resource path
|
|
704
|
-
local_var_path =
|
|
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 [
|
|
994
|
+
# @return [InlineResponse20035]
|
|
741
995
|
def webhooks_get(opts = {})
|
|
742
996
|
data, _status_code, _headers = webhooks_get_with_http_info(opts)
|
|
743
|
-
|
|
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<(
|
|
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
|
|
1007
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_get ...'
|
|
754
1008
|
end
|
|
755
1009
|
# resource path
|
|
756
|
-
local_var_path =
|
|
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 => '
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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.<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>
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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[
|
|
898
|
-
form_params[
|
|
899
|
-
form_params[
|
|
900
|
-
form_params[
|
|
901
|
-
form_params[
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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[
|
|
971
|
-
form_params[
|
|
972
|
-
form_params[
|
|
973
|
-
form_params[
|
|
974
|
-
form_params[
|
|
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
|
-
|
|
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
|
|
1338
|
+
@api_client.config.logger.debug 'Calling API: AdministrationApi.webhooks_post ...'
|
|
1020
1339
|
end
|
|
1021
1340
|
# resource path
|
|
1022
|
-
local_var_path =
|
|
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[
|
|
1038
|
-
form_params[
|
|
1039
|
-
form_params[
|
|
1040
|
-
form_params[
|
|
1041
|
-
form_params[
|
|
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
|