budgea_client 1.4.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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 RecipientsApi
|
@@ -9,33 +19,34 @@ module BudgeaClient
|
|
9
19
|
def initialize(api_client = ApiClient.default)
|
10
20
|
@api_client = api_client
|
11
21
|
end
|
12
|
-
|
13
22
|
# Add a recipient.
|
14
|
-
#
|
23
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
15
24
|
# @param id_user Hint: you can use 'me' or 'all'
|
16
25
|
# @param id_account
|
17
26
|
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
18
28
|
# @option opts [String] :label label of recipient
|
19
29
|
# @option opts [String] :iban iban of recipient
|
20
30
|
# @option opts [String] :expand
|
21
31
|
# @return [Recipient]
|
22
32
|
def users_id_user_accounts_id_account_recipients_post(id_user, id_account, opts = {})
|
23
33
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_post_with_http_info(id_user, id_account, opts)
|
24
|
-
|
34
|
+
data
|
25
35
|
end
|
26
36
|
|
27
37
|
# Add a recipient.
|
28
|
-
#
|
38
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
29
39
|
# @param id_user Hint: you can use 'me' or 'all'
|
30
40
|
# @param id_account
|
31
41
|
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
32
43
|
# @option opts [String] :label label of recipient
|
33
44
|
# @option opts [String] :iban iban of recipient
|
34
45
|
# @option opts [String] :expand
|
35
46
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
36
47
|
def users_id_user_accounts_id_account_recipients_post_with_http_info(id_user, id_account, opts = {})
|
37
48
|
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug
|
49
|
+
@api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_accounts_id_account_recipients_post ...'
|
39
50
|
end
|
40
51
|
# verify the required parameter 'id_user' is set
|
41
52
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -46,10 +57,11 @@ module BudgeaClient
|
|
46
57
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling RecipientsApi.users_id_user_accounts_id_account_recipients_post"
|
47
58
|
end
|
48
59
|
# resource path
|
49
|
-
local_var_path =
|
60
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
50
61
|
|
51
62
|
# query parameters
|
52
63
|
query_params = {}
|
64
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
53
65
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
54
66
|
|
55
67
|
# header parameters
|
@@ -61,8 +73,8 @@ module BudgeaClient
|
|
61
73
|
|
62
74
|
# form parameters
|
63
75
|
form_params = {}
|
64
|
-
form_params[
|
65
|
-
form_params[
|
76
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
77
|
+
form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
|
66
78
|
|
67
79
|
# http body (model)
|
68
80
|
post_body = nil
|
@@ -79,35 +91,36 @@ module BudgeaClient
|
|
79
91
|
end
|
80
92
|
return data, status_code, headers
|
81
93
|
end
|
82
|
-
|
83
94
|
# Add a recipient.
|
84
|
-
#
|
95
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
85
96
|
# @param id_user Hint: you can use 'me' or 'all'
|
86
97
|
# @param id_connection
|
87
98
|
# @param id_account
|
88
99
|
# @param [Hash] opts the optional parameters
|
100
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
89
101
|
# @option opts [String] :label label of recipient
|
90
102
|
# @option opts [String] :iban iban of recipient
|
91
103
|
# @option opts [String] :expand
|
92
104
|
# @return [Recipient]
|
93
105
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_post(id_user, id_connection, id_account, opts = {})
|
94
106
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_post_with_http_info(id_user, id_connection, id_account, opts)
|
95
|
-
|
107
|
+
data
|
96
108
|
end
|
97
109
|
|
98
110
|
# Add a recipient.
|
99
|
-
#
|
111
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
100
112
|
# @param id_user Hint: you can use 'me' or 'all'
|
101
113
|
# @param id_connection
|
102
114
|
# @param id_account
|
103
115
|
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
104
117
|
# @option opts [String] :label label of recipient
|
105
118
|
# @option opts [String] :iban iban of recipient
|
106
119
|
# @option opts [String] :expand
|
107
120
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
108
121
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_post_with_http_info(id_user, id_connection, id_account, opts = {})
|
109
122
|
if @api_client.config.debugging
|
110
|
-
@api_client.config.logger.debug
|
123
|
+
@api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_connections_id_connection_accounts_id_account_recipients_post ...'
|
111
124
|
end
|
112
125
|
# verify the required parameter 'id_user' is set
|
113
126
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -122,10 +135,11 @@ module BudgeaClient
|
|
122
135
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling RecipientsApi.users_id_user_connections_id_connection_accounts_id_account_recipients_post"
|
123
136
|
end
|
124
137
|
# resource path
|
125
|
-
local_var_path =
|
138
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
126
139
|
|
127
140
|
# query parameters
|
128
141
|
query_params = {}
|
142
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
129
143
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
130
144
|
|
131
145
|
# header parameters
|
@@ -137,8 +151,8 @@ module BudgeaClient
|
|
137
151
|
|
138
152
|
# form parameters
|
139
153
|
form_params = {}
|
140
|
-
form_params[
|
141
|
-
form_params[
|
154
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
155
|
+
form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
|
142
156
|
|
143
157
|
# http body (model)
|
144
158
|
post_body = nil
|
@@ -155,33 +169,34 @@ module BudgeaClient
|
|
155
169
|
end
|
156
170
|
return data, status_code, headers
|
157
171
|
end
|
158
|
-
|
159
172
|
# Add a recipient.
|
160
|
-
#
|
173
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
161
174
|
# @param id_user Hint: you can use 'me' or 'all'
|
162
175
|
# @param id_connection
|
163
176
|
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
164
178
|
# @option opts [String] :label label of recipient
|
165
179
|
# @option opts [String] :iban iban of recipient
|
166
180
|
# @option opts [String] :expand
|
167
181
|
# @return [Recipient]
|
168
182
|
def users_id_user_connections_id_connection_recipients_post(id_user, id_connection, opts = {})
|
169
183
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_post_with_http_info(id_user, id_connection, opts)
|
170
|
-
|
184
|
+
data
|
171
185
|
end
|
172
186
|
|
173
187
|
# Add a recipient.
|
174
|
-
#
|
188
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
175
189
|
# @param id_user Hint: you can use 'me' or 'all'
|
176
190
|
# @param id_connection
|
177
191
|
# @param [Hash] opts the optional parameters
|
192
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
178
193
|
# @option opts [String] :label label of recipient
|
179
194
|
# @option opts [String] :iban iban of recipient
|
180
195
|
# @option opts [String] :expand
|
181
196
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
182
197
|
def users_id_user_connections_id_connection_recipients_post_with_http_info(id_user, id_connection, opts = {})
|
183
198
|
if @api_client.config.debugging
|
184
|
-
@api_client.config.logger.debug
|
199
|
+
@api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_connections_id_connection_recipients_post ...'
|
185
200
|
end
|
186
201
|
# verify the required parameter 'id_user' is set
|
187
202
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -192,10 +207,11 @@ module BudgeaClient
|
|
192
207
|
fail ArgumentError, "Missing the required parameter 'id_connection' when calling RecipientsApi.users_id_user_connections_id_connection_recipients_post"
|
193
208
|
end
|
194
209
|
# resource path
|
195
|
-
local_var_path =
|
210
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
196
211
|
|
197
212
|
# query parameters
|
198
213
|
query_params = {}
|
214
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
199
215
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
200
216
|
|
201
217
|
# header parameters
|
@@ -207,8 +223,8 @@ module BudgeaClient
|
|
207
223
|
|
208
224
|
# form parameters
|
209
225
|
form_params = {}
|
210
|
-
form_params[
|
211
|
-
form_params[
|
226
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
227
|
+
form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
|
212
228
|
|
213
229
|
# http body (model)
|
214
230
|
post_body = nil
|
@@ -225,41 +241,43 @@ module BudgeaClient
|
|
225
241
|
end
|
226
242
|
return data, status_code, headers
|
227
243
|
end
|
228
|
-
|
229
244
|
# Add a recipient.
|
230
|
-
#
|
245
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
231
246
|
# @param id_user Hint: you can use 'me' or 'all'
|
232
247
|
# @param [Hash] opts the optional parameters
|
248
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
233
249
|
# @option opts [String] :label label of recipient
|
234
250
|
# @option opts [String] :iban iban of recipient
|
235
251
|
# @option opts [String] :expand
|
236
252
|
# @return [Recipient]
|
237
253
|
def users_id_user_recipients_post(id_user, opts = {})
|
238
254
|
data, _status_code, _headers = users_id_user_recipients_post_with_http_info(id_user, opts)
|
239
|
-
|
255
|
+
data
|
240
256
|
end
|
241
257
|
|
242
258
|
# Add a recipient.
|
243
|
-
#
|
259
|
+
# if config key transfer.recipient.iban_white_list.enabled is set to 1, recipients whose IBAN are not from countries codes contained in transfer.recipient.iban_white_list.entries will be deleted<br><br>
|
244
260
|
# @param id_user Hint: you can use 'me' or 'all'
|
245
261
|
# @param [Hash] opts the optional parameters
|
262
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
246
263
|
# @option opts [String] :label label of recipient
|
247
264
|
# @option opts [String] :iban iban of recipient
|
248
265
|
# @option opts [String] :expand
|
249
266
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
250
267
|
def users_id_user_recipients_post_with_http_info(id_user, opts = {})
|
251
268
|
if @api_client.config.debugging
|
252
|
-
@api_client.config.logger.debug
|
269
|
+
@api_client.config.logger.debug 'Calling API: RecipientsApi.users_id_user_recipients_post ...'
|
253
270
|
end
|
254
271
|
# verify the required parameter 'id_user' is set
|
255
272
|
if @api_client.config.client_side_validation && id_user.nil?
|
256
273
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling RecipientsApi.users_id_user_recipients_post"
|
257
274
|
end
|
258
275
|
# resource path
|
259
|
-
local_var_path =
|
276
|
+
local_var_path = '/users/{id_user}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s)
|
260
277
|
|
261
278
|
# query parameters
|
262
279
|
query_params = {}
|
280
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
263
281
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
264
282
|
|
265
283
|
# header parameters
|
@@ -271,8 +289,8 @@ module BudgeaClient
|
|
271
289
|
|
272
290
|
# form parameters
|
273
291
|
form_params = {}
|
274
|
-
form_params[
|
275
|
-
form_params[
|
292
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
293
|
+
form_params['iban'] = opts[:'iban'] if !opts[:'iban'].nil?
|
276
294
|
|
277
295
|
# http body (model)
|
278
296
|
post_body = nil
|
@@ -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 TermsApi
|
@@ -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
|
# Return the current terms and the content of the associated file
|
14
23
|
#
|
15
24
|
# @param [Hash] opts the optional parameters
|
16
25
|
# @option opts [String] :expand
|
17
|
-
# @return [
|
26
|
+
# @return [InlineResponse20018]
|
18
27
|
def terms_get(opts = {})
|
19
28
|
data, _status_code, _headers = terms_get_with_http_info(opts)
|
20
|
-
|
29
|
+
data
|
21
30
|
end
|
22
31
|
|
23
32
|
# Return the current terms and the content of the associated file
|
24
33
|
#
|
25
34
|
# @param [Hash] opts the optional parameters
|
26
35
|
# @option opts [String] :expand
|
27
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
28
37
|
def terms_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: TermsApi.terms_get ...'
|
31
40
|
end
|
32
41
|
# resource path
|
33
|
-
local_var_path =
|
42
|
+
local_var_path = '/terms'
|
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 => 'InlineResponse20018')
|
59
68
|
if @api_client.config.debugging
|
60
69
|
@api_client.config.logger.debug "API called: TermsApi#terms_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
|
# Register a version of 'Terms of Service' in database
|
66
74
|
#
|
67
75
|
# @param [Hash] opts the optional parameters
|
@@ -71,7 +79,7 @@ module BudgeaClient
|
|
71
79
|
# @return [TermsOfService]
|
72
80
|
def terms_post(opts = {})
|
73
81
|
data, _status_code, _headers = terms_post_with_http_info(opts)
|
74
|
-
|
82
|
+
data
|
75
83
|
end
|
76
84
|
|
77
85
|
# Register a version of 'Terms of Service' in database
|
@@ -83,10 +91,10 @@ module BudgeaClient
|
|
83
91
|
# @return [Array<(TermsOfService, Fixnum, Hash)>] TermsOfService data, response status code and response headers
|
84
92
|
def terms_post_with_http_info(opts = {})
|
85
93
|
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug
|
94
|
+
@api_client.config.logger.debug 'Calling API: TermsApi.terms_post ...'
|
87
95
|
end
|
88
96
|
# resource path
|
89
|
-
local_var_path =
|
97
|
+
local_var_path = '/terms'
|
90
98
|
|
91
99
|
# query parameters
|
92
100
|
query_params = {}
|
@@ -101,8 +109,8 @@ module BudgeaClient
|
|
101
109
|
|
102
110
|
# form parameters
|
103
111
|
form_params = {}
|
104
|
-
form_params[
|
105
|
-
form_params[
|
112
|
+
form_params['version'] = opts[:'version'] if !opts[:'version'].nil?
|
113
|
+
form_params['file_content'] = opts[:'file_content'] if !opts[:'file_content'].nil?
|
106
114
|
|
107
115
|
# http body (model)
|
108
116
|
post_body = nil
|
@@ -119,16 +127,15 @@ module BudgeaClient
|
|
119
127
|
end
|
120
128
|
return data, status_code, headers
|
121
129
|
end
|
122
|
-
|
123
130
|
# Get active terms object for a specific user, only one terms can be active
|
124
131
|
#
|
125
132
|
# @param id_user Hint: you can use 'me' or 'all'
|
126
133
|
# @param [Hash] opts the optional parameters
|
127
134
|
# @option opts [String] :expand
|
128
|
-
# @return [
|
135
|
+
# @return [InlineResponse20018]
|
129
136
|
def users_id_user_terms_get(id_user, opts = {})
|
130
137
|
data, _status_code, _headers = users_id_user_terms_get_with_http_info(id_user, opts)
|
131
|
-
|
138
|
+
data
|
132
139
|
end
|
133
140
|
|
134
141
|
# Get active terms object for a specific user, only one terms can be active
|
@@ -136,17 +143,17 @@ module BudgeaClient
|
|
136
143
|
# @param id_user Hint: you can use 'me' or 'all'
|
137
144
|
# @param [Hash] opts the optional parameters
|
138
145
|
# @option opts [String] :expand
|
139
|
-
# @return [Array<(
|
146
|
+
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
140
147
|
def users_id_user_terms_get_with_http_info(id_user, opts = {})
|
141
148
|
if @api_client.config.debugging
|
142
|
-
@api_client.config.logger.debug
|
149
|
+
@api_client.config.logger.debug 'Calling API: TermsApi.users_id_user_terms_get ...'
|
143
150
|
end
|
144
151
|
# verify the required parameter 'id_user' is set
|
145
152
|
if @api_client.config.client_side_validation && id_user.nil?
|
146
153
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling TermsApi.users_id_user_terms_get"
|
147
154
|
end
|
148
155
|
# resource path
|
149
|
-
local_var_path =
|
156
|
+
local_var_path = '/users/{id_user}/terms'.sub('{' + 'id_user' + '}', id_user.to_s)
|
150
157
|
|
151
158
|
# query parameters
|
152
159
|
query_params = {}
|
@@ -171,44 +178,41 @@ module BudgeaClient
|
|
171
178
|
:form_params => form_params,
|
172
179
|
:body => post_body,
|
173
180
|
:auth_names => auth_names,
|
174
|
-
:return_type => '
|
181
|
+
:return_type => 'InlineResponse20018')
|
175
182
|
if @api_client.config.debugging
|
176
183
|
@api_client.config.logger.debug "API called: TermsApi#users_id_user_terms_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
184
|
end
|
178
185
|
return data, status_code, headers
|
179
186
|
end
|
180
|
-
|
181
187
|
# Register user's consent for a specific terms id
|
182
188
|
#
|
183
189
|
# @param id_user Hint: you can use 'me' or 'all'
|
184
190
|
# @param [Hash] opts the optional parameters
|
185
|
-
# @option opts [Integer] :id_user2 user id (optionnal)
|
186
191
|
# @option opts [Integer] :id_terms terms id
|
187
192
|
# @option opts [String] :expand
|
188
193
|
# @return [TermsOfService]
|
189
194
|
def users_id_user_terms_post(id_user, opts = {})
|
190
195
|
data, _status_code, _headers = users_id_user_terms_post_with_http_info(id_user, opts)
|
191
|
-
|
196
|
+
data
|
192
197
|
end
|
193
198
|
|
194
199
|
# Register user's consent for a specific terms id
|
195
200
|
#
|
196
201
|
# @param id_user Hint: you can use 'me' or 'all'
|
197
202
|
# @param [Hash] opts the optional parameters
|
198
|
-
# @option opts [Integer] :id_user2 user id (optionnal)
|
199
203
|
# @option opts [Integer] :id_terms terms id
|
200
204
|
# @option opts [String] :expand
|
201
205
|
# @return [Array<(TermsOfService, Fixnum, Hash)>] TermsOfService data, response status code and response headers
|
202
206
|
def users_id_user_terms_post_with_http_info(id_user, opts = {})
|
203
207
|
if @api_client.config.debugging
|
204
|
-
@api_client.config.logger.debug
|
208
|
+
@api_client.config.logger.debug 'Calling API: TermsApi.users_id_user_terms_post ...'
|
205
209
|
end
|
206
210
|
# verify the required parameter 'id_user' is set
|
207
211
|
if @api_client.config.client_side_validation && id_user.nil?
|
208
212
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling TermsApi.users_id_user_terms_post"
|
209
213
|
end
|
210
214
|
# resource path
|
211
|
-
local_var_path =
|
215
|
+
local_var_path = '/users/{id_user}/terms'.sub('{' + 'id_user' + '}', id_user.to_s)
|
212
216
|
|
213
217
|
# query parameters
|
214
218
|
query_params = {}
|
@@ -219,12 +223,11 @@ module BudgeaClient
|
|
219
223
|
# HTTP header 'Accept' (if needed)
|
220
224
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
221
225
|
# HTTP header 'Content-Type'
|
222
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
223
227
|
|
224
228
|
# form parameters
|
225
229
|
form_params = {}
|
226
|
-
form_params[
|
227
|
-
form_params["id_terms"] = opts[:'id_terms'] if !opts[:'id_terms'].nil?
|
230
|
+
form_params['id_terms'] = opts[:'id_terms'] if !opts[:'id_terms'].nil?
|
228
231
|
|
229
232
|
# http body (model)
|
230
233
|
post_body = nil
|