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 TransfersApi
|
@@ -9,29 +19,28 @@ module BudgeaClient
|
|
9
19
|
def initialize(api_client = ApiClient.default)
|
10
20
|
@api_client = api_client
|
11
21
|
end
|
12
|
-
|
13
|
-
# Returns the list of recipients
|
22
|
+
# Returns the list of recipients.
|
14
23
|
#
|
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
|
18
27
|
# @option opts [String] :expand
|
19
|
-
# @return [
|
28
|
+
# @return [InlineResponse20025]
|
20
29
|
def users_id_user_accounts_id_account_recipients_get(id_user, id_account, opts = {})
|
21
30
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts)
|
22
|
-
|
31
|
+
data
|
23
32
|
end
|
24
33
|
|
25
|
-
# Returns the list of recipients
|
34
|
+
# Returns the list of recipients.
|
26
35
|
#
|
27
36
|
# @param id_user Hint: you can use 'me' or 'all'
|
28
37
|
# @param id_account
|
29
38
|
# @param [Hash] opts the optional parameters
|
30
39
|
# @option opts [String] :expand
|
31
|
-
# @return [Array<(
|
40
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
32
41
|
def users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts = {})
|
33
42
|
if @api_client.config.debugging
|
34
|
-
@api_client.config.logger.debug
|
43
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_get ...'
|
35
44
|
end
|
36
45
|
# verify the required parameter 'id_user' is set
|
37
46
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -42,7 +51,7 @@ module BudgeaClient
|
|
42
51
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_get"
|
43
52
|
end
|
44
53
|
# resource path
|
45
|
-
local_var_path =
|
54
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
46
55
|
|
47
56
|
# query parameters
|
48
57
|
query_params = {}
|
@@ -67,24 +76,24 @@ module BudgeaClient
|
|
67
76
|
:form_params => form_params,
|
68
77
|
:body => post_body,
|
69
78
|
:auth_names => auth_names,
|
70
|
-
:return_type => '
|
79
|
+
:return_type => 'InlineResponse20025')
|
71
80
|
if @api_client.config.debugging
|
72
81
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
82
|
end
|
74
83
|
return data, status_code, headers
|
75
84
|
end
|
76
|
-
|
77
85
|
# Continue addition of a recipient.
|
78
86
|
#
|
79
87
|
# @param id_user Hint: you can use 'me' or 'all'
|
80
88
|
# @param id_account
|
81
89
|
# @param id_recipient
|
82
90
|
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
83
92
|
# @option opts [String] :expand
|
84
93
|
# @return [Recipient]
|
85
94
|
def users_id_user_accounts_id_account_recipients_id_recipient_post(id_user, id_account, id_recipient, opts = {})
|
86
95
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_account, id_recipient, opts)
|
87
|
-
|
96
|
+
data
|
88
97
|
end
|
89
98
|
|
90
99
|
# Continue addition of a recipient.
|
@@ -93,11 +102,12 @@ module BudgeaClient
|
|
93
102
|
# @param id_account
|
94
103
|
# @param id_recipient
|
95
104
|
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
96
106
|
# @option opts [String] :expand
|
97
107
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
98
108
|
def users_id_user_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_account, id_recipient, opts = {})
|
99
109
|
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug
|
110
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post ...'
|
101
111
|
end
|
102
112
|
# verify the required parameter 'id_user' is set
|
103
113
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -112,10 +122,11 @@ module BudgeaClient
|
|
112
122
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
|
113
123
|
end
|
114
124
|
# resource path
|
115
|
-
local_var_path =
|
125
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
116
126
|
|
117
127
|
# query parameters
|
118
128
|
query_params = {}
|
129
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
119
130
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
120
131
|
|
121
132
|
# header parameters
|
@@ -143,7 +154,6 @@ module BudgeaClient
|
|
143
154
|
end
|
144
155
|
return data, status_code, headers
|
145
156
|
end
|
146
|
-
|
147
157
|
# Get transfers
|
148
158
|
#
|
149
159
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -152,10 +162,10 @@ module BudgeaClient
|
|
152
162
|
# @param [Hash] opts the optional parameters
|
153
163
|
# @option opts [String] :period period to group logs
|
154
164
|
# @option opts [String] :expand
|
155
|
-
# @return [
|
165
|
+
# @return [InlineResponse20026]
|
156
166
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_account, id_recipient, opts = {})
|
157
167
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_account, id_recipient, opts)
|
158
|
-
|
168
|
+
data
|
159
169
|
end
|
160
170
|
|
161
171
|
# Get transfers
|
@@ -166,10 +176,10 @@ module BudgeaClient
|
|
166
176
|
# @param [Hash] opts the optional parameters
|
167
177
|
# @option opts [String] :period period to group logs
|
168
178
|
# @option opts [String] :expand
|
169
|
-
# @return [Array<(
|
179
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
170
180
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_account, id_recipient, opts = {})
|
171
181
|
if @api_client.config.debugging
|
172
|
-
@api_client.config.logger.debug
|
182
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get ...'
|
173
183
|
end
|
174
184
|
# verify the required parameter 'id_user' is set
|
175
185
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -184,7 +194,7 @@ module BudgeaClient
|
|
184
194
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
|
185
195
|
end
|
186
196
|
# resource path
|
187
|
-
local_var_path =
|
197
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
188
198
|
|
189
199
|
# query parameters
|
190
200
|
query_params = {}
|
@@ -210,13 +220,12 @@ module BudgeaClient
|
|
210
220
|
:form_params => form_params,
|
211
221
|
:body => post_body,
|
212
222
|
:auth_names => auth_names,
|
213
|
-
:return_type => '
|
223
|
+
:return_type => 'InlineResponse20026')
|
214
224
|
if @api_client.config.debugging
|
215
225
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
216
226
|
end
|
217
227
|
return data, status_code, headers
|
218
228
|
end
|
219
|
-
|
220
229
|
# Cancel a transfer.
|
221
230
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
222
231
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -228,7 +237,7 @@ module BudgeaClient
|
|
228
237
|
# @return [Transfer]
|
229
238
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_account, id_recipient, id_transfer, opts = {})
|
230
239
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_recipient, id_transfer, opts)
|
231
|
-
|
240
|
+
data
|
232
241
|
end
|
233
242
|
|
234
243
|
# Cancel a transfer.
|
@@ -242,7 +251,7 @@ module BudgeaClient
|
|
242
251
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
243
252
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_recipient, id_transfer, opts = {})
|
244
253
|
if @api_client.config.debugging
|
245
|
-
@api_client.config.logger.debug
|
254
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete ...'
|
246
255
|
end
|
247
256
|
# verify the required parameter 'id_user' is set
|
248
257
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -261,7 +270,7 @@ module BudgeaClient
|
|
261
270
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
|
262
271
|
end
|
263
272
|
# resource path
|
264
|
-
local_var_path =
|
273
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
265
274
|
|
266
275
|
# query parameters
|
267
276
|
query_params = {}
|
@@ -292,7 +301,6 @@ module BudgeaClient
|
|
292
301
|
end
|
293
302
|
return data, status_code, headers
|
294
303
|
end
|
295
|
-
|
296
304
|
# Execute or edit a Transfer.
|
297
305
|
#
|
298
306
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -301,11 +309,12 @@ module BudgeaClient
|
|
301
309
|
# @param id_transfer
|
302
310
|
# @param [Hash] opts the optional parameters
|
303
311
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
312
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
304
313
|
# @option opts [String] :expand
|
305
314
|
# @return [Transfer]
|
306
315
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_account, id_recipient, id_transfer, opts = {})
|
307
316
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_account, id_recipient, id_transfer, opts)
|
308
|
-
|
317
|
+
data
|
309
318
|
end
|
310
319
|
|
311
320
|
# Execute or edit a Transfer.
|
@@ -316,11 +325,12 @@ module BudgeaClient
|
|
316
325
|
# @param id_transfer
|
317
326
|
# @param [Hash] opts the optional parameters
|
318
327
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
328
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
319
329
|
# @option opts [String] :expand
|
320
330
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
321
331
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_account, id_recipient, id_transfer, opts = {})
|
322
332
|
if @api_client.config.debugging
|
323
|
-
@api_client.config.logger.debug
|
333
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post ...'
|
324
334
|
end
|
325
335
|
# verify the required parameter 'id_user' is set
|
326
336
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -339,7 +349,7 @@ module BudgeaClient
|
|
339
349
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
|
340
350
|
end
|
341
351
|
# resource path
|
342
|
-
local_var_path =
|
352
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
343
353
|
|
344
354
|
# query parameters
|
345
355
|
query_params = {}
|
@@ -354,7 +364,8 @@ module BudgeaClient
|
|
354
364
|
|
355
365
|
# form parameters
|
356
366
|
form_params = {}
|
357
|
-
form_params[
|
367
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
368
|
+
form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?
|
358
369
|
|
359
370
|
# http body (model)
|
360
371
|
post_body = nil
|
@@ -371,7 +382,6 @@ module BudgeaClient
|
|
371
382
|
end
|
372
383
|
return data, status_code, headers
|
373
384
|
end
|
374
|
-
|
375
385
|
# Create a transfer object.
|
376
386
|
#
|
377
387
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -385,7 +395,7 @@ module BudgeaClient
|
|
385
395
|
# @return [Transfer]
|
386
396
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_account, id_recipient, amount, opts = {})
|
387
397
|
data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_account, id_recipient, amount, opts)
|
388
|
-
|
398
|
+
data
|
389
399
|
end
|
390
400
|
|
391
401
|
# Create a transfer object.
|
@@ -401,7 +411,7 @@ module BudgeaClient
|
|
401
411
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
402
412
|
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_account, id_recipient, amount, opts = {})
|
403
413
|
if @api_client.config.debugging
|
404
|
-
@api_client.config.logger.debug
|
414
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post ...'
|
405
415
|
end
|
406
416
|
# verify the required parameter 'id_user' is set
|
407
417
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -420,7 +430,7 @@ module BudgeaClient
|
|
420
430
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
|
421
431
|
end
|
422
432
|
# resource path
|
423
|
-
local_var_path =
|
433
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
424
434
|
|
425
435
|
# query parameters
|
426
436
|
query_params = {}
|
@@ -435,9 +445,9 @@ module BudgeaClient
|
|
435
445
|
|
436
446
|
# form parameters
|
437
447
|
form_params = {}
|
438
|
-
form_params[
|
439
|
-
form_params[
|
440
|
-
form_params[
|
448
|
+
form_params['amount'] = amount
|
449
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
450
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
441
451
|
|
442
452
|
# http body (model)
|
443
453
|
post_body = nil
|
@@ -454,7 +464,6 @@ module BudgeaClient
|
|
454
464
|
end
|
455
465
|
return data, status_code, headers
|
456
466
|
end
|
457
|
-
|
458
467
|
# Get transfers
|
459
468
|
#
|
460
469
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -462,10 +471,10 @@ module BudgeaClient
|
|
462
471
|
# @param [Hash] opts the optional parameters
|
463
472
|
# @option opts [String] :period period to group logs
|
464
473
|
# @option opts [String] :expand
|
465
|
-
# @return [
|
474
|
+
# @return [InlineResponse20026]
|
466
475
|
def users_id_user_accounts_id_account_transfers_get(id_user, id_account, opts = {})
|
467
476
|
data, _status_code, _headers = users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts)
|
468
|
-
|
477
|
+
data
|
469
478
|
end
|
470
479
|
|
471
480
|
# Get transfers
|
@@ -475,10 +484,10 @@ module BudgeaClient
|
|
475
484
|
# @param [Hash] opts the optional parameters
|
476
485
|
# @option opts [String] :period period to group logs
|
477
486
|
# @option opts [String] :expand
|
478
|
-
# @return [Array<(
|
487
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
479
488
|
def users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts = {})
|
480
489
|
if @api_client.config.debugging
|
481
|
-
@api_client.config.logger.debug
|
490
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_get ...'
|
482
491
|
end
|
483
492
|
# verify the required parameter 'id_user' is set
|
484
493
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -489,7 +498,7 @@ module BudgeaClient
|
|
489
498
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_get"
|
490
499
|
end
|
491
500
|
# resource path
|
492
|
-
local_var_path =
|
501
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
493
502
|
|
494
503
|
# query parameters
|
495
504
|
query_params = {}
|
@@ -515,13 +524,12 @@ module BudgeaClient
|
|
515
524
|
:form_params => form_params,
|
516
525
|
:body => post_body,
|
517
526
|
:auth_names => auth_names,
|
518
|
-
:return_type => '
|
527
|
+
:return_type => 'InlineResponse20026')
|
519
528
|
if @api_client.config.debugging
|
520
529
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
521
530
|
end
|
522
531
|
return data, status_code, headers
|
523
532
|
end
|
524
|
-
|
525
533
|
# Cancel a transfer.
|
526
534
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
527
535
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -532,7 +540,7 @@ module BudgeaClient
|
|
532
540
|
# @return [Transfer]
|
533
541
|
def users_id_user_accounts_id_account_transfers_id_transfer_delete(id_user, id_account, id_transfer, opts = {})
|
534
542
|
data, _status_code, _headers = users_id_user_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_transfer, opts)
|
535
|
-
|
543
|
+
data
|
536
544
|
end
|
537
545
|
|
538
546
|
# Cancel a transfer.
|
@@ -545,7 +553,7 @@ module BudgeaClient
|
|
545
553
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
546
554
|
def users_id_user_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_transfer, opts = {})
|
547
555
|
if @api_client.config.debugging
|
548
|
-
@api_client.config.logger.debug
|
556
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete ...'
|
549
557
|
end
|
550
558
|
# verify the required parameter 'id_user' is set
|
551
559
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -560,7 +568,7 @@ module BudgeaClient
|
|
560
568
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
|
561
569
|
end
|
562
570
|
# resource path
|
563
|
-
local_var_path =
|
571
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
564
572
|
|
565
573
|
# query parameters
|
566
574
|
query_params = {}
|
@@ -591,7 +599,6 @@ module BudgeaClient
|
|
591
599
|
end
|
592
600
|
return data, status_code, headers
|
593
601
|
end
|
594
|
-
|
595
602
|
# Execute or edit a Transfer.
|
596
603
|
#
|
597
604
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -599,11 +606,12 @@ module BudgeaClient
|
|
599
606
|
# @param id_transfer
|
600
607
|
# @param [Hash] opts the optional parameters
|
601
608
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
609
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
602
610
|
# @option opts [String] :expand
|
603
611
|
# @return [Transfer]
|
604
612
|
def users_id_user_accounts_id_account_transfers_id_transfer_post(id_user, id_account, id_transfer, opts = {})
|
605
613
|
data, _status_code, _headers = users_id_user_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_account, id_transfer, opts)
|
606
|
-
|
614
|
+
data
|
607
615
|
end
|
608
616
|
|
609
617
|
# Execute or edit a Transfer.
|
@@ -613,11 +621,12 @@ module BudgeaClient
|
|
613
621
|
# @param id_transfer
|
614
622
|
# @param [Hash] opts the optional parameters
|
615
623
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
624
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
616
625
|
# @option opts [String] :expand
|
617
626
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
618
627
|
def users_id_user_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_account, id_transfer, opts = {})
|
619
628
|
if @api_client.config.debugging
|
620
|
-
@api_client.config.logger.debug
|
629
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post ...'
|
621
630
|
end
|
622
631
|
# verify the required parameter 'id_user' is set
|
623
632
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -632,7 +641,7 @@ module BudgeaClient
|
|
632
641
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
|
633
642
|
end
|
634
643
|
# resource path
|
635
|
-
local_var_path =
|
644
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
636
645
|
|
637
646
|
# query parameters
|
638
647
|
query_params = {}
|
@@ -647,7 +656,8 @@ module BudgeaClient
|
|
647
656
|
|
648
657
|
# form parameters
|
649
658
|
form_params = {}
|
650
|
-
form_params[
|
659
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
660
|
+
form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?
|
651
661
|
|
652
662
|
# http body (model)
|
653
663
|
post_body = nil
|
@@ -664,7 +674,6 @@ module BudgeaClient
|
|
664
674
|
end
|
665
675
|
return data, status_code, headers
|
666
676
|
end
|
667
|
-
|
668
677
|
# Create a transfer object.
|
669
678
|
#
|
670
679
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -677,7 +686,7 @@ module BudgeaClient
|
|
677
686
|
# @return [Transfer]
|
678
687
|
def users_id_user_accounts_id_account_transfers_post(id_user, id_account, amount, opts = {})
|
679
688
|
data, _status_code, _headers = users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts)
|
680
|
-
|
689
|
+
data
|
681
690
|
end
|
682
691
|
|
683
692
|
# Create a transfer object.
|
@@ -692,7 +701,7 @@ module BudgeaClient
|
|
692
701
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
693
702
|
def users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts = {})
|
694
703
|
if @api_client.config.debugging
|
695
|
-
@api_client.config.logger.debug
|
704
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_post ...'
|
696
705
|
end
|
697
706
|
# verify the required parameter 'id_user' is set
|
698
707
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -707,7 +716,7 @@ module BudgeaClient
|
|
707
716
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
|
708
717
|
end
|
709
718
|
# resource path
|
710
|
-
local_var_path =
|
719
|
+
local_var_path = '/users/{id_user}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
711
720
|
|
712
721
|
# query parameters
|
713
722
|
query_params = {}
|
@@ -722,9 +731,9 @@ module BudgeaClient
|
|
722
731
|
|
723
732
|
# form parameters
|
724
733
|
form_params = {}
|
725
|
-
form_params[
|
726
|
-
form_params[
|
727
|
-
form_params[
|
734
|
+
form_params['amount'] = amount
|
735
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
736
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
728
737
|
|
729
738
|
# http body (model)
|
730
739
|
post_body = nil
|
@@ -741,31 +750,30 @@ module BudgeaClient
|
|
741
750
|
end
|
742
751
|
return data, status_code, headers
|
743
752
|
end
|
744
|
-
|
745
|
-
# Returns the list of recipients
|
753
|
+
# Returns the list of recipients.
|
746
754
|
#
|
747
755
|
# @param id_user Hint: you can use 'me' or 'all'
|
748
756
|
# @param id_connection
|
749
757
|
# @param id_account
|
750
758
|
# @param [Hash] opts the optional parameters
|
751
759
|
# @option opts [String] :expand
|
752
|
-
# @return [
|
760
|
+
# @return [InlineResponse20025]
|
753
761
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_get(id_user, id_connection, id_account, opts = {})
|
754
762
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_get_with_http_info(id_user, id_connection, id_account, opts)
|
755
|
-
|
763
|
+
data
|
756
764
|
end
|
757
765
|
|
758
|
-
# Returns the list of recipients
|
766
|
+
# Returns the list of recipients.
|
759
767
|
#
|
760
768
|
# @param id_user Hint: you can use 'me' or 'all'
|
761
769
|
# @param id_connection
|
762
770
|
# @param id_account
|
763
771
|
# @param [Hash] opts the optional parameters
|
764
772
|
# @option opts [String] :expand
|
765
|
-
# @return [Array<(
|
773
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
766
774
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
767
775
|
if @api_client.config.debugging
|
768
|
-
@api_client.config.logger.debug
|
776
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get ...'
|
769
777
|
end
|
770
778
|
# verify the required parameter 'id_user' is set
|
771
779
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -780,7 +788,7 @@ module BudgeaClient
|
|
780
788
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
|
781
789
|
end
|
782
790
|
# resource path
|
783
|
-
local_var_path =
|
791
|
+
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)
|
784
792
|
|
785
793
|
# query parameters
|
786
794
|
query_params = {}
|
@@ -805,13 +813,12 @@ module BudgeaClient
|
|
805
813
|
:form_params => form_params,
|
806
814
|
:body => post_body,
|
807
815
|
:auth_names => auth_names,
|
808
|
-
:return_type => '
|
816
|
+
:return_type => 'InlineResponse20025')
|
809
817
|
if @api_client.config.debugging
|
810
818
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
811
819
|
end
|
812
820
|
return data, status_code, headers
|
813
821
|
end
|
814
|
-
|
815
822
|
# Continue addition of a recipient.
|
816
823
|
#
|
817
824
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -819,11 +826,12 @@ module BudgeaClient
|
|
819
826
|
# @param id_account
|
820
827
|
# @param id_recipient
|
821
828
|
# @param [Hash] opts the optional parameters
|
829
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
822
830
|
# @option opts [String] :expand
|
823
831
|
# @return [Recipient]
|
824
832
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post(id_user, id_connection, id_account, id_recipient, opts = {})
|
825
833
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_account, id_recipient, opts)
|
826
|
-
|
834
|
+
data
|
827
835
|
end
|
828
836
|
|
829
837
|
# Continue addition of a recipient.
|
@@ -833,11 +841,12 @@ module BudgeaClient
|
|
833
841
|
# @param id_account
|
834
842
|
# @param id_recipient
|
835
843
|
# @param [Hash] opts the optional parameters
|
844
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
836
845
|
# @option opts [String] :expand
|
837
846
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
838
847
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_account, id_recipient, opts = {})
|
839
848
|
if @api_client.config.debugging
|
840
|
-
@api_client.config.logger.debug
|
849
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post ...'
|
841
850
|
end
|
842
851
|
# verify the required parameter 'id_user' is set
|
843
852
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -856,10 +865,11 @@ module BudgeaClient
|
|
856
865
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
|
857
866
|
end
|
858
867
|
# resource path
|
859
|
-
local_var_path =
|
868
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
860
869
|
|
861
870
|
# query parameters
|
862
871
|
query_params = {}
|
872
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
863
873
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
864
874
|
|
865
875
|
# header parameters
|
@@ -887,7 +897,6 @@ module BudgeaClient
|
|
887
897
|
end
|
888
898
|
return data, status_code, headers
|
889
899
|
end
|
890
|
-
|
891
900
|
# Get transfers
|
892
901
|
#
|
893
902
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -897,10 +906,10 @@ module BudgeaClient
|
|
897
906
|
# @param [Hash] opts the optional parameters
|
898
907
|
# @option opts [String] :period period to group logs
|
899
908
|
# @option opts [String] :expand
|
900
|
-
# @return [
|
909
|
+
# @return [InlineResponse20026]
|
901
910
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_connection, id_account, id_recipient, opts = {})
|
902
911
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_account, id_recipient, opts)
|
903
|
-
|
912
|
+
data
|
904
913
|
end
|
905
914
|
|
906
915
|
# Get transfers
|
@@ -912,10 +921,10 @@ module BudgeaClient
|
|
912
921
|
# @param [Hash] opts the optional parameters
|
913
922
|
# @option opts [String] :period period to group logs
|
914
923
|
# @option opts [String] :expand
|
915
|
-
# @return [Array<(
|
924
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
916
925
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_account, id_recipient, opts = {})
|
917
926
|
if @api_client.config.debugging
|
918
|
-
@api_client.config.logger.debug
|
927
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get ...'
|
919
928
|
end
|
920
929
|
# verify the required parameter 'id_user' is set
|
921
930
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -934,7 +943,7 @@ module BudgeaClient
|
|
934
943
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
|
935
944
|
end
|
936
945
|
# resource path
|
937
|
-
local_var_path =
|
946
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
938
947
|
|
939
948
|
# query parameters
|
940
949
|
query_params = {}
|
@@ -960,13 +969,12 @@ module BudgeaClient
|
|
960
969
|
:form_params => form_params,
|
961
970
|
:body => post_body,
|
962
971
|
:auth_names => auth_names,
|
963
|
-
:return_type => '
|
972
|
+
:return_type => 'InlineResponse20026')
|
964
973
|
if @api_client.config.debugging
|
965
974
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
966
975
|
end
|
967
976
|
return data, status_code, headers
|
968
977
|
end
|
969
|
-
|
970
978
|
# Cancel a transfer.
|
971
979
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
972
980
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -979,7 +987,7 @@ module BudgeaClient
|
|
979
987
|
# @return [Transfer]
|
980
988
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
|
981
989
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts)
|
982
|
-
|
990
|
+
data
|
983
991
|
end
|
984
992
|
|
985
993
|
# Cancel a transfer.
|
@@ -994,7 +1002,7 @@ module BudgeaClient
|
|
994
1002
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
995
1003
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
|
996
1004
|
if @api_client.config.debugging
|
997
|
-
@api_client.config.logger.debug
|
1005
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete ...'
|
998
1006
|
end
|
999
1007
|
# verify the required parameter 'id_user' is set
|
1000
1008
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1017,7 +1025,7 @@ module BudgeaClient
|
|
1017
1025
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
|
1018
1026
|
end
|
1019
1027
|
# resource path
|
1020
|
-
local_var_path =
|
1028
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
1021
1029
|
|
1022
1030
|
# query parameters
|
1023
1031
|
query_params = {}
|
@@ -1048,7 +1056,6 @@ module BudgeaClient
|
|
1048
1056
|
end
|
1049
1057
|
return data, status_code, headers
|
1050
1058
|
end
|
1051
|
-
|
1052
1059
|
# Execute or edit a Transfer.
|
1053
1060
|
#
|
1054
1061
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1058,11 +1065,12 @@ module BudgeaClient
|
|
1058
1065
|
# @param id_transfer
|
1059
1066
|
# @param [Hash] opts the optional parameters
|
1060
1067
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
1068
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
1061
1069
|
# @option opts [String] :expand
|
1062
1070
|
# @return [Transfer]
|
1063
1071
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
|
1064
1072
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts)
|
1065
|
-
|
1073
|
+
data
|
1066
1074
|
end
|
1067
1075
|
|
1068
1076
|
# Execute or edit a Transfer.
|
@@ -1074,11 +1082,12 @@ module BudgeaClient
|
|
1074
1082
|
# @param id_transfer
|
1075
1083
|
# @param [Hash] opts the optional parameters
|
1076
1084
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
1085
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
1077
1086
|
# @option opts [String] :expand
|
1078
1087
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1079
1088
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
|
1080
1089
|
if @api_client.config.debugging
|
1081
|
-
@api_client.config.logger.debug
|
1090
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post ...'
|
1082
1091
|
end
|
1083
1092
|
# verify the required parameter 'id_user' is set
|
1084
1093
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1101,7 +1110,7 @@ module BudgeaClient
|
|
1101
1110
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
|
1102
1111
|
end
|
1103
1112
|
# resource path
|
1104
|
-
local_var_path =
|
1113
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
1105
1114
|
|
1106
1115
|
# query parameters
|
1107
1116
|
query_params = {}
|
@@ -1116,7 +1125,8 @@ module BudgeaClient
|
|
1116
1125
|
|
1117
1126
|
# form parameters
|
1118
1127
|
form_params = {}
|
1119
|
-
form_params[
|
1128
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
1129
|
+
form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?
|
1120
1130
|
|
1121
1131
|
# http body (model)
|
1122
1132
|
post_body = nil
|
@@ -1133,7 +1143,6 @@ module BudgeaClient
|
|
1133
1143
|
end
|
1134
1144
|
return data, status_code, headers
|
1135
1145
|
end
|
1136
|
-
|
1137
1146
|
# Create a transfer object.
|
1138
1147
|
#
|
1139
1148
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1148,7 +1157,7 @@ module BudgeaClient
|
|
1148
1157
|
# @return [Transfer]
|
1149
1158
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_connection, id_account, id_recipient, amount, opts = {})
|
1150
1159
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_account, id_recipient, amount, opts)
|
1151
|
-
|
1160
|
+
data
|
1152
1161
|
end
|
1153
1162
|
|
1154
1163
|
# Create a transfer object.
|
@@ -1165,7 +1174,7 @@ module BudgeaClient
|
|
1165
1174
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1166
1175
|
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_account, id_recipient, amount, opts = {})
|
1167
1176
|
if @api_client.config.debugging
|
1168
|
-
@api_client.config.logger.debug
|
1177
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post ...'
|
1169
1178
|
end
|
1170
1179
|
# verify the required parameter 'id_user' is set
|
1171
1180
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1188,7 +1197,7 @@ module BudgeaClient
|
|
1188
1197
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
|
1189
1198
|
end
|
1190
1199
|
# resource path
|
1191
|
-
local_var_path =
|
1200
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
1192
1201
|
|
1193
1202
|
# query parameters
|
1194
1203
|
query_params = {}
|
@@ -1203,9 +1212,9 @@ module BudgeaClient
|
|
1203
1212
|
|
1204
1213
|
# form parameters
|
1205
1214
|
form_params = {}
|
1206
|
-
form_params[
|
1207
|
-
form_params[
|
1208
|
-
form_params[
|
1215
|
+
form_params['amount'] = amount
|
1216
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
1217
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
1209
1218
|
|
1210
1219
|
# http body (model)
|
1211
1220
|
post_body = nil
|
@@ -1222,7 +1231,6 @@ module BudgeaClient
|
|
1222
1231
|
end
|
1223
1232
|
return data, status_code, headers
|
1224
1233
|
end
|
1225
|
-
|
1226
1234
|
# Get transfers
|
1227
1235
|
#
|
1228
1236
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1231,10 +1239,10 @@ module BudgeaClient
|
|
1231
1239
|
# @param [Hash] opts the optional parameters
|
1232
1240
|
# @option opts [String] :period period to group logs
|
1233
1241
|
# @option opts [String] :expand
|
1234
|
-
# @return [
|
1242
|
+
# @return [InlineResponse20026]
|
1235
1243
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_get(id_user, id_connection, id_account, opts = {})
|
1236
1244
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_get_with_http_info(id_user, id_connection, id_account, opts)
|
1237
|
-
|
1245
|
+
data
|
1238
1246
|
end
|
1239
1247
|
|
1240
1248
|
# Get transfers
|
@@ -1245,10 +1253,10 @@ module BudgeaClient
|
|
1245
1253
|
# @param [Hash] opts the optional parameters
|
1246
1254
|
# @option opts [String] :period period to group logs
|
1247
1255
|
# @option opts [String] :expand
|
1248
|
-
# @return [Array<(
|
1256
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
1249
1257
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
1250
1258
|
if @api_client.config.debugging
|
1251
|
-
@api_client.config.logger.debug
|
1259
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get ...'
|
1252
1260
|
end
|
1253
1261
|
# verify the required parameter 'id_user' is set
|
1254
1262
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1263,7 +1271,7 @@ module BudgeaClient
|
|
1263
1271
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
|
1264
1272
|
end
|
1265
1273
|
# resource path
|
1266
|
-
local_var_path =
|
1274
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
1267
1275
|
|
1268
1276
|
# query parameters
|
1269
1277
|
query_params = {}
|
@@ -1289,13 +1297,12 @@ module BudgeaClient
|
|
1289
1297
|
:form_params => form_params,
|
1290
1298
|
:body => post_body,
|
1291
1299
|
:auth_names => auth_names,
|
1292
|
-
:return_type => '
|
1300
|
+
:return_type => 'InlineResponse20026')
|
1293
1301
|
if @api_client.config.debugging
|
1294
1302
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1295
1303
|
end
|
1296
1304
|
return data, status_code, headers
|
1297
1305
|
end
|
1298
|
-
|
1299
1306
|
# Cancel a transfer.
|
1300
1307
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
1301
1308
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1307,7 +1314,7 @@ module BudgeaClient
|
|
1307
1314
|
# @return [Transfer]
|
1308
1315
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete(id_user, id_connection, id_account, id_transfer, opts = {})
|
1309
1316
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_transfer, opts)
|
1310
|
-
|
1317
|
+
data
|
1311
1318
|
end
|
1312
1319
|
|
1313
1320
|
# Cancel a transfer.
|
@@ -1321,7 +1328,7 @@ module BudgeaClient
|
|
1321
1328
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1322
1329
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_transfer, opts = {})
|
1323
1330
|
if @api_client.config.debugging
|
1324
|
-
@api_client.config.logger.debug
|
1331
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete ...'
|
1325
1332
|
end
|
1326
1333
|
# verify the required parameter 'id_user' is set
|
1327
1334
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1340,7 +1347,7 @@ module BudgeaClient
|
|
1340
1347
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
|
1341
1348
|
end
|
1342
1349
|
# resource path
|
1343
|
-
local_var_path =
|
1350
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
1344
1351
|
|
1345
1352
|
# query parameters
|
1346
1353
|
query_params = {}
|
@@ -1371,7 +1378,6 @@ module BudgeaClient
|
|
1371
1378
|
end
|
1372
1379
|
return data, status_code, headers
|
1373
1380
|
end
|
1374
|
-
|
1375
1381
|
# Execute or edit a Transfer.
|
1376
1382
|
#
|
1377
1383
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1380,11 +1386,12 @@ module BudgeaClient
|
|
1380
1386
|
# @param id_transfer
|
1381
1387
|
# @param [Hash] opts the optional parameters
|
1382
1388
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
1389
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
1383
1390
|
# @option opts [String] :expand
|
1384
1391
|
# @return [Transfer]
|
1385
1392
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post(id_user, id_connection, id_account, id_transfer, opts = {})
|
1386
1393
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_transfer, opts)
|
1387
|
-
|
1394
|
+
data
|
1388
1395
|
end
|
1389
1396
|
|
1390
1397
|
# Execute or edit a Transfer.
|
@@ -1395,11 +1402,12 @@ module BudgeaClient
|
|
1395
1402
|
# @param id_transfer
|
1396
1403
|
# @param [Hash] opts the optional parameters
|
1397
1404
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
1405
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
1398
1406
|
# @option opts [String] :expand
|
1399
1407
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1400
1408
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_transfer, opts = {})
|
1401
1409
|
if @api_client.config.debugging
|
1402
|
-
@api_client.config.logger.debug
|
1410
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post ...'
|
1403
1411
|
end
|
1404
1412
|
# verify the required parameter 'id_user' is set
|
1405
1413
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1418,7 +1426,7 @@ module BudgeaClient
|
|
1418
1426
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
|
1419
1427
|
end
|
1420
1428
|
# resource path
|
1421
|
-
local_var_path =
|
1429
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
1422
1430
|
|
1423
1431
|
# query parameters
|
1424
1432
|
query_params = {}
|
@@ -1433,7 +1441,8 @@ module BudgeaClient
|
|
1433
1441
|
|
1434
1442
|
# form parameters
|
1435
1443
|
form_params = {}
|
1436
|
-
form_params[
|
1444
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
1445
|
+
form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?
|
1437
1446
|
|
1438
1447
|
# http body (model)
|
1439
1448
|
post_body = nil
|
@@ -1450,7 +1459,6 @@ module BudgeaClient
|
|
1450
1459
|
end
|
1451
1460
|
return data, status_code, headers
|
1452
1461
|
end
|
1453
|
-
|
1454
1462
|
# Create a transfer object.
|
1455
1463
|
#
|
1456
1464
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1464,7 +1472,7 @@ module BudgeaClient
|
|
1464
1472
|
# @return [Transfer]
|
1465
1473
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_post(id_user, id_connection, id_account, amount, opts = {})
|
1466
1474
|
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_post_with_http_info(id_user, id_connection, id_account, amount, opts)
|
1467
|
-
|
1475
|
+
data
|
1468
1476
|
end
|
1469
1477
|
|
1470
1478
|
# Create a transfer object.
|
@@ -1480,7 +1488,7 @@ module BudgeaClient
|
|
1480
1488
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1481
1489
|
def users_id_user_connections_id_connection_accounts_id_account_transfers_post_with_http_info(id_user, id_connection, id_account, amount, opts = {})
|
1482
1490
|
if @api_client.config.debugging
|
1483
|
-
@api_client.config.logger.debug
|
1491
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post ...'
|
1484
1492
|
end
|
1485
1493
|
# verify the required parameter 'id_user' is set
|
1486
1494
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1499,7 +1507,7 @@ module BudgeaClient
|
|
1499
1507
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
|
1500
1508
|
end
|
1501
1509
|
# resource path
|
1502
|
-
local_var_path =
|
1510
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
1503
1511
|
|
1504
1512
|
# query parameters
|
1505
1513
|
query_params = {}
|
@@ -1514,9 +1522,9 @@ module BudgeaClient
|
|
1514
1522
|
|
1515
1523
|
# form parameters
|
1516
1524
|
form_params = {}
|
1517
|
-
form_params[
|
1518
|
-
form_params[
|
1519
|
-
form_params[
|
1525
|
+
form_params['amount'] = amount
|
1526
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
1527
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
1520
1528
|
|
1521
1529
|
# http body (model)
|
1522
1530
|
post_body = nil
|
@@ -1533,29 +1541,28 @@ module BudgeaClient
|
|
1533
1541
|
end
|
1534
1542
|
return data, status_code, headers
|
1535
1543
|
end
|
1536
|
-
|
1537
|
-
# Returns the list of recipients
|
1544
|
+
# Returns the list of recipients.
|
1538
1545
|
#
|
1539
1546
|
# @param id_user Hint: you can use 'me' or 'all'
|
1540
1547
|
# @param id_connection
|
1541
1548
|
# @param [Hash] opts the optional parameters
|
1542
1549
|
# @option opts [String] :expand
|
1543
|
-
# @return [
|
1550
|
+
# @return [InlineResponse20025]
|
1544
1551
|
def users_id_user_connections_id_connection_recipients_get(id_user, id_connection, opts = {})
|
1545
1552
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts)
|
1546
|
-
|
1553
|
+
data
|
1547
1554
|
end
|
1548
1555
|
|
1549
|
-
# Returns the list of recipients
|
1556
|
+
# Returns the list of recipients.
|
1550
1557
|
#
|
1551
1558
|
# @param id_user Hint: you can use 'me' or 'all'
|
1552
1559
|
# @param id_connection
|
1553
1560
|
# @param [Hash] opts the optional parameters
|
1554
1561
|
# @option opts [String] :expand
|
1555
|
-
# @return [Array<(
|
1562
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
1556
1563
|
def users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts = {})
|
1557
1564
|
if @api_client.config.debugging
|
1558
|
-
@api_client.config.logger.debug
|
1565
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_get ...'
|
1559
1566
|
end
|
1560
1567
|
# verify the required parameter 'id_user' is set
|
1561
1568
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1566,7 +1573,7 @@ module BudgeaClient
|
|
1566
1573
|
fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_get"
|
1567
1574
|
end
|
1568
1575
|
# resource path
|
1569
|
-
local_var_path =
|
1576
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
1570
1577
|
|
1571
1578
|
# query parameters
|
1572
1579
|
query_params = {}
|
@@ -1591,24 +1598,24 @@ module BudgeaClient
|
|
1591
1598
|
:form_params => form_params,
|
1592
1599
|
:body => post_body,
|
1593
1600
|
:auth_names => auth_names,
|
1594
|
-
:return_type => '
|
1601
|
+
:return_type => 'InlineResponse20025')
|
1595
1602
|
if @api_client.config.debugging
|
1596
1603
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1597
1604
|
end
|
1598
1605
|
return data, status_code, headers
|
1599
1606
|
end
|
1600
|
-
|
1601
1607
|
# Continue addition of a recipient.
|
1602
1608
|
#
|
1603
1609
|
# @param id_user Hint: you can use 'me' or 'all'
|
1604
1610
|
# @param id_connection
|
1605
1611
|
# @param id_recipient
|
1606
1612
|
# @param [Hash] opts the optional parameters
|
1613
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
1607
1614
|
# @option opts [String] :expand
|
1608
1615
|
# @return [Recipient]
|
1609
1616
|
def users_id_user_connections_id_connection_recipients_id_recipient_post(id_user, id_connection, id_recipient, opts = {})
|
1610
1617
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_recipient, opts)
|
1611
|
-
|
1618
|
+
data
|
1612
1619
|
end
|
1613
1620
|
|
1614
1621
|
# Continue addition of a recipient.
|
@@ -1617,11 +1624,12 @@ module BudgeaClient
|
|
1617
1624
|
# @param id_connection
|
1618
1625
|
# @param id_recipient
|
1619
1626
|
# @param [Hash] opts the optional parameters
|
1627
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
1620
1628
|
# @option opts [String] :expand
|
1621
1629
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
1622
1630
|
def users_id_user_connections_id_connection_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_recipient, opts = {})
|
1623
1631
|
if @api_client.config.debugging
|
1624
|
-
@api_client.config.logger.debug
|
1632
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post ...'
|
1625
1633
|
end
|
1626
1634
|
# verify the required parameter 'id_user' is set
|
1627
1635
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1636,10 +1644,11 @@ module BudgeaClient
|
|
1636
1644
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
|
1637
1645
|
end
|
1638
1646
|
# resource path
|
1639
|
-
local_var_path =
|
1647
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
1640
1648
|
|
1641
1649
|
# query parameters
|
1642
1650
|
query_params = {}
|
1651
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
1643
1652
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1644
1653
|
|
1645
1654
|
# header parameters
|
@@ -1667,7 +1676,6 @@ module BudgeaClient
|
|
1667
1676
|
end
|
1668
1677
|
return data, status_code, headers
|
1669
1678
|
end
|
1670
|
-
|
1671
1679
|
# Get transfers
|
1672
1680
|
#
|
1673
1681
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1676,10 +1684,10 @@ module BudgeaClient
|
|
1676
1684
|
# @param [Hash] opts the optional parameters
|
1677
1685
|
# @option opts [String] :period period to group logs
|
1678
1686
|
# @option opts [String] :expand
|
1679
|
-
# @return [
|
1687
|
+
# @return [InlineResponse20026]
|
1680
1688
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_get(id_user, id_connection, id_recipient, opts = {})
|
1681
1689
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_recipient, opts)
|
1682
|
-
|
1690
|
+
data
|
1683
1691
|
end
|
1684
1692
|
|
1685
1693
|
# Get transfers
|
@@ -1690,10 +1698,10 @@ module BudgeaClient
|
|
1690
1698
|
# @param [Hash] opts the optional parameters
|
1691
1699
|
# @option opts [String] :period period to group logs
|
1692
1700
|
# @option opts [String] :expand
|
1693
|
-
# @return [Array<(
|
1701
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
1694
1702
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_recipient, opts = {})
|
1695
1703
|
if @api_client.config.debugging
|
1696
|
-
@api_client.config.logger.debug
|
1704
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get ...'
|
1697
1705
|
end
|
1698
1706
|
# verify the required parameter 'id_user' is set
|
1699
1707
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1708,7 +1716,7 @@ module BudgeaClient
|
|
1708
1716
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
|
1709
1717
|
end
|
1710
1718
|
# resource path
|
1711
|
-
local_var_path =
|
1719
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
1712
1720
|
|
1713
1721
|
# query parameters
|
1714
1722
|
query_params = {}
|
@@ -1734,13 +1742,12 @@ module BudgeaClient
|
|
1734
1742
|
:form_params => form_params,
|
1735
1743
|
:body => post_body,
|
1736
1744
|
:auth_names => auth_names,
|
1737
|
-
:return_type => '
|
1745
|
+
:return_type => 'InlineResponse20026')
|
1738
1746
|
if @api_client.config.debugging
|
1739
1747
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1740
1748
|
end
|
1741
1749
|
return data, status_code, headers
|
1742
1750
|
end
|
1743
|
-
|
1744
1751
|
# Cancel a transfer.
|
1745
1752
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
1746
1753
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1752,7 +1759,7 @@ module BudgeaClient
|
|
1752
1759
|
# @return [Transfer]
|
1753
1760
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_recipient, id_transfer, opts = {})
|
1754
1761
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts)
|
1755
|
-
|
1762
|
+
data
|
1756
1763
|
end
|
1757
1764
|
|
1758
1765
|
# Cancel a transfer.
|
@@ -1766,7 +1773,7 @@ module BudgeaClient
|
|
1766
1773
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1767
1774
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts = {})
|
1768
1775
|
if @api_client.config.debugging
|
1769
|
-
@api_client.config.logger.debug
|
1776
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete ...'
|
1770
1777
|
end
|
1771
1778
|
# verify the required parameter 'id_user' is set
|
1772
1779
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1785,7 +1792,7 @@ module BudgeaClient
|
|
1785
1792
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
|
1786
1793
|
end
|
1787
1794
|
# resource path
|
1788
|
-
local_var_path =
|
1795
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
1789
1796
|
|
1790
1797
|
# query parameters
|
1791
1798
|
query_params = {}
|
@@ -1816,7 +1823,6 @@ module BudgeaClient
|
|
1816
1823
|
end
|
1817
1824
|
return data, status_code, headers
|
1818
1825
|
end
|
1819
|
-
|
1820
1826
|
# Execute or edit a Transfer.
|
1821
1827
|
#
|
1822
1828
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1825,11 +1831,12 @@ module BudgeaClient
|
|
1825
1831
|
# @param id_transfer
|
1826
1832
|
# @param [Hash] opts the optional parameters
|
1827
1833
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
1834
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
1828
1835
|
# @option opts [String] :expand
|
1829
1836
|
# @return [Transfer]
|
1830
1837
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_recipient, id_transfer, opts = {})
|
1831
1838
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts)
|
1832
|
-
|
1839
|
+
data
|
1833
1840
|
end
|
1834
1841
|
|
1835
1842
|
# Execute or edit a Transfer.
|
@@ -1840,11 +1847,12 @@ module BudgeaClient
|
|
1840
1847
|
# @param id_transfer
|
1841
1848
|
# @param [Hash] opts the optional parameters
|
1842
1849
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
1850
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
1843
1851
|
# @option opts [String] :expand
|
1844
1852
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1845
1853
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts = {})
|
1846
1854
|
if @api_client.config.debugging
|
1847
|
-
@api_client.config.logger.debug
|
1855
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post ...'
|
1848
1856
|
end
|
1849
1857
|
# verify the required parameter 'id_user' is set
|
1850
1858
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1863,7 +1871,7 @@ module BudgeaClient
|
|
1863
1871
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
|
1864
1872
|
end
|
1865
1873
|
# resource path
|
1866
|
-
local_var_path =
|
1874
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
1867
1875
|
|
1868
1876
|
# query parameters
|
1869
1877
|
query_params = {}
|
@@ -1878,7 +1886,8 @@ module BudgeaClient
|
|
1878
1886
|
|
1879
1887
|
# form parameters
|
1880
1888
|
form_params = {}
|
1881
|
-
form_params[
|
1889
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
1890
|
+
form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?
|
1882
1891
|
|
1883
1892
|
# http body (model)
|
1884
1893
|
post_body = nil
|
@@ -1895,7 +1904,6 @@ module BudgeaClient
|
|
1895
1904
|
end
|
1896
1905
|
return data, status_code, headers
|
1897
1906
|
end
|
1898
|
-
|
1899
1907
|
# Create a transfer object.
|
1900
1908
|
#
|
1901
1909
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1909,7 +1917,7 @@ module BudgeaClient
|
|
1909
1917
|
# @return [Transfer]
|
1910
1918
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_post(id_user, id_connection, id_recipient, amount, opts = {})
|
1911
1919
|
data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_recipient, amount, opts)
|
1912
|
-
|
1920
|
+
data
|
1913
1921
|
end
|
1914
1922
|
|
1915
1923
|
# Create a transfer object.
|
@@ -1925,7 +1933,7 @@ module BudgeaClient
|
|
1925
1933
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
1926
1934
|
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_recipient, amount, opts = {})
|
1927
1935
|
if @api_client.config.debugging
|
1928
|
-
@api_client.config.logger.debug
|
1936
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post ...'
|
1929
1937
|
end
|
1930
1938
|
# verify the required parameter 'id_user' is set
|
1931
1939
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1944,7 +1952,7 @@ module BudgeaClient
|
|
1944
1952
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
|
1945
1953
|
end
|
1946
1954
|
# resource path
|
1947
|
-
local_var_path =
|
1955
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
1948
1956
|
|
1949
1957
|
# query parameters
|
1950
1958
|
query_params = {}
|
@@ -1959,9 +1967,9 @@ module BudgeaClient
|
|
1959
1967
|
|
1960
1968
|
# form parameters
|
1961
1969
|
form_params = {}
|
1962
|
-
form_params[
|
1963
|
-
form_params[
|
1964
|
-
form_params[
|
1970
|
+
form_params['amount'] = amount
|
1971
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
1972
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
1965
1973
|
|
1966
1974
|
# http body (model)
|
1967
1975
|
post_body = nil
|
@@ -1978,7 +1986,6 @@ module BudgeaClient
|
|
1978
1986
|
end
|
1979
1987
|
return data, status_code, headers
|
1980
1988
|
end
|
1981
|
-
|
1982
1989
|
# Get transfers
|
1983
1990
|
#
|
1984
1991
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1986,10 +1993,10 @@ module BudgeaClient
|
|
1986
1993
|
# @param [Hash] opts the optional parameters
|
1987
1994
|
# @option opts [String] :period period to group logs
|
1988
1995
|
# @option opts [String] :expand
|
1989
|
-
# @return [
|
1996
|
+
# @return [InlineResponse20026]
|
1990
1997
|
def users_id_user_connections_id_connection_transfers_get(id_user, id_connection, opts = {})
|
1991
1998
|
data, _status_code, _headers = users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts)
|
1992
|
-
|
1999
|
+
data
|
1993
2000
|
end
|
1994
2001
|
|
1995
2002
|
# Get transfers
|
@@ -1999,10 +2006,10 @@ module BudgeaClient
|
|
1999
2006
|
# @param [Hash] opts the optional parameters
|
2000
2007
|
# @option opts [String] :period period to group logs
|
2001
2008
|
# @option opts [String] :expand
|
2002
|
-
# @return [Array<(
|
2009
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
2003
2010
|
def users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts = {})
|
2004
2011
|
if @api_client.config.debugging
|
2005
|
-
@api_client.config.logger.debug
|
2012
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_get ...'
|
2006
2013
|
end
|
2007
2014
|
# verify the required parameter 'id_user' is set
|
2008
2015
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2013,7 +2020,7 @@ module BudgeaClient
|
|
2013
2020
|
fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_get"
|
2014
2021
|
end
|
2015
2022
|
# resource path
|
2016
|
-
local_var_path =
|
2023
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
2017
2024
|
|
2018
2025
|
# query parameters
|
2019
2026
|
query_params = {}
|
@@ -2039,13 +2046,12 @@ module BudgeaClient
|
|
2039
2046
|
:form_params => form_params,
|
2040
2047
|
:body => post_body,
|
2041
2048
|
:auth_names => auth_names,
|
2042
|
-
:return_type => '
|
2049
|
+
:return_type => 'InlineResponse20026')
|
2043
2050
|
if @api_client.config.debugging
|
2044
2051
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2045
2052
|
end
|
2046
2053
|
return data, status_code, headers
|
2047
2054
|
end
|
2048
|
-
|
2049
2055
|
# Cancel a transfer.
|
2050
2056
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
2051
2057
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2056,7 +2062,7 @@ module BudgeaClient
|
|
2056
2062
|
# @return [Transfer]
|
2057
2063
|
def users_id_user_connections_id_connection_transfers_id_transfer_delete(id_user, id_connection, id_transfer, opts = {})
|
2058
2064
|
data, _status_code, _headers = users_id_user_connections_id_connection_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_transfer, opts)
|
2059
|
-
|
2065
|
+
data
|
2060
2066
|
end
|
2061
2067
|
|
2062
2068
|
# Cancel a transfer.
|
@@ -2069,7 +2075,7 @@ module BudgeaClient
|
|
2069
2075
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2070
2076
|
def users_id_user_connections_id_connection_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_transfer, opts = {})
|
2071
2077
|
if @api_client.config.debugging
|
2072
|
-
@api_client.config.logger.debug
|
2078
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete ...'
|
2073
2079
|
end
|
2074
2080
|
# verify the required parameter 'id_user' is set
|
2075
2081
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2084,7 +2090,7 @@ module BudgeaClient
|
|
2084
2090
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
|
2085
2091
|
end
|
2086
2092
|
# resource path
|
2087
|
-
local_var_path =
|
2093
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2088
2094
|
|
2089
2095
|
# query parameters
|
2090
2096
|
query_params = {}
|
@@ -2115,7 +2121,6 @@ module BudgeaClient
|
|
2115
2121
|
end
|
2116
2122
|
return data, status_code, headers
|
2117
2123
|
end
|
2118
|
-
|
2119
2124
|
# Execute or edit a Transfer.
|
2120
2125
|
#
|
2121
2126
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2123,11 +2128,12 @@ module BudgeaClient
|
|
2123
2128
|
# @param id_transfer
|
2124
2129
|
# @param [Hash] opts the optional parameters
|
2125
2130
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2131
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
2126
2132
|
# @option opts [String] :expand
|
2127
2133
|
# @return [Transfer]
|
2128
2134
|
def users_id_user_connections_id_connection_transfers_id_transfer_post(id_user, id_connection, id_transfer, opts = {})
|
2129
2135
|
data, _status_code, _headers = users_id_user_connections_id_connection_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_transfer, opts)
|
2130
|
-
|
2136
|
+
data
|
2131
2137
|
end
|
2132
2138
|
|
2133
2139
|
# Execute or edit a Transfer.
|
@@ -2137,11 +2143,12 @@ module BudgeaClient
|
|
2137
2143
|
# @param id_transfer
|
2138
2144
|
# @param [Hash] opts the optional parameters
|
2139
2145
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2146
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
2140
2147
|
# @option opts [String] :expand
|
2141
2148
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2142
2149
|
def users_id_user_connections_id_connection_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_transfer, opts = {})
|
2143
2150
|
if @api_client.config.debugging
|
2144
|
-
@api_client.config.logger.debug
|
2151
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post ...'
|
2145
2152
|
end
|
2146
2153
|
# verify the required parameter 'id_user' is set
|
2147
2154
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2156,7 +2163,7 @@ module BudgeaClient
|
|
2156
2163
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
|
2157
2164
|
end
|
2158
2165
|
# resource path
|
2159
|
-
local_var_path =
|
2166
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2160
2167
|
|
2161
2168
|
# query parameters
|
2162
2169
|
query_params = {}
|
@@ -2171,7 +2178,8 @@ module BudgeaClient
|
|
2171
2178
|
|
2172
2179
|
# form parameters
|
2173
2180
|
form_params = {}
|
2174
|
-
form_params[
|
2181
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
2182
|
+
form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?
|
2175
2183
|
|
2176
2184
|
# http body (model)
|
2177
2185
|
post_body = nil
|
@@ -2188,7 +2196,6 @@ module BudgeaClient
|
|
2188
2196
|
end
|
2189
2197
|
return data, status_code, headers
|
2190
2198
|
end
|
2191
|
-
|
2192
2199
|
# Create a transfer object.
|
2193
2200
|
#
|
2194
2201
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2201,7 +2208,7 @@ module BudgeaClient
|
|
2201
2208
|
# @return [Transfer]
|
2202
2209
|
def users_id_user_connections_id_connection_transfers_post(id_user, id_connection, amount, opts = {})
|
2203
2210
|
data, _status_code, _headers = users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts)
|
2204
|
-
|
2211
|
+
data
|
2205
2212
|
end
|
2206
2213
|
|
2207
2214
|
# Create a transfer object.
|
@@ -2216,7 +2223,7 @@ module BudgeaClient
|
|
2216
2223
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2217
2224
|
def users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts = {})
|
2218
2225
|
if @api_client.config.debugging
|
2219
|
-
@api_client.config.logger.debug
|
2226
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_post ...'
|
2220
2227
|
end
|
2221
2228
|
# verify the required parameter 'id_user' is set
|
2222
2229
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2231,7 +2238,7 @@ module BudgeaClient
|
|
2231
2238
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
|
2232
2239
|
end
|
2233
2240
|
# resource path
|
2234
|
-
local_var_path =
|
2241
|
+
local_var_path = '/users/{id_user}/connections/{id_connection}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
2235
2242
|
|
2236
2243
|
# query parameters
|
2237
2244
|
query_params = {}
|
@@ -2246,9 +2253,9 @@ module BudgeaClient
|
|
2246
2253
|
|
2247
2254
|
# form parameters
|
2248
2255
|
form_params = {}
|
2249
|
-
form_params[
|
2250
|
-
form_params[
|
2251
|
-
form_params[
|
2256
|
+
form_params['amount'] = amount
|
2257
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
2258
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
2252
2259
|
|
2253
2260
|
# http body (model)
|
2254
2261
|
post_body = nil
|
@@ -2265,34 +2272,33 @@ module BudgeaClient
|
|
2265
2272
|
end
|
2266
2273
|
return data, status_code, headers
|
2267
2274
|
end
|
2268
|
-
|
2269
|
-
# Returns the list of recipients
|
2275
|
+
# Returns the list of recipients.
|
2270
2276
|
#
|
2271
2277
|
# @param id_user Hint: you can use 'me' or 'all'
|
2272
2278
|
# @param [Hash] opts the optional parameters
|
2273
2279
|
# @option opts [String] :expand
|
2274
|
-
# @return [
|
2280
|
+
# @return [InlineResponse20025]
|
2275
2281
|
def users_id_user_recipients_get(id_user, opts = {})
|
2276
2282
|
data, _status_code, _headers = users_id_user_recipients_get_with_http_info(id_user, opts)
|
2277
|
-
|
2283
|
+
data
|
2278
2284
|
end
|
2279
2285
|
|
2280
|
-
# Returns the list of recipients
|
2286
|
+
# Returns the list of recipients.
|
2281
2287
|
#
|
2282
2288
|
# @param id_user Hint: you can use 'me' or 'all'
|
2283
2289
|
# @param [Hash] opts the optional parameters
|
2284
2290
|
# @option opts [String] :expand
|
2285
|
-
# @return [Array<(
|
2291
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
2286
2292
|
def users_id_user_recipients_get_with_http_info(id_user, opts = {})
|
2287
2293
|
if @api_client.config.debugging
|
2288
|
-
@api_client.config.logger.debug
|
2294
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_get ...'
|
2289
2295
|
end
|
2290
2296
|
# verify the required parameter 'id_user' is set
|
2291
2297
|
if @api_client.config.client_side_validation && id_user.nil?
|
2292
2298
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_get"
|
2293
2299
|
end
|
2294
2300
|
# resource path
|
2295
|
-
local_var_path =
|
2301
|
+
local_var_path = '/users/{id_user}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2296
2302
|
|
2297
2303
|
# query parameters
|
2298
2304
|
query_params = {}
|
@@ -2317,23 +2323,23 @@ module BudgeaClient
|
|
2317
2323
|
:form_params => form_params,
|
2318
2324
|
:body => post_body,
|
2319
2325
|
:auth_names => auth_names,
|
2320
|
-
:return_type => '
|
2326
|
+
:return_type => 'InlineResponse20025')
|
2321
2327
|
if @api_client.config.debugging
|
2322
2328
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2323
2329
|
end
|
2324
2330
|
return data, status_code, headers
|
2325
2331
|
end
|
2326
|
-
|
2327
2332
|
# Continue addition of a recipient.
|
2328
2333
|
#
|
2329
2334
|
# @param id_user Hint: you can use 'me' or 'all'
|
2330
2335
|
# @param id_recipient
|
2331
2336
|
# @param [Hash] opts the optional parameters
|
2337
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
2332
2338
|
# @option opts [String] :expand
|
2333
2339
|
# @return [Recipient]
|
2334
2340
|
def users_id_user_recipients_id_recipient_post(id_user, id_recipient, opts = {})
|
2335
2341
|
data, _status_code, _headers = users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts)
|
2336
|
-
|
2342
|
+
data
|
2337
2343
|
end
|
2338
2344
|
|
2339
2345
|
# Continue addition of a recipient.
|
@@ -2341,11 +2347,12 @@ module BudgeaClient
|
|
2341
2347
|
# @param id_user Hint: you can use 'me' or 'all'
|
2342
2348
|
# @param id_recipient
|
2343
2349
|
# @param [Hash] opts the optional parameters
|
2350
|
+
# @option opts [BOOLEAN] :background if true, do synchronization in background
|
2344
2351
|
# @option opts [String] :expand
|
2345
2352
|
# @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
|
2346
2353
|
def users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts = {})
|
2347
2354
|
if @api_client.config.debugging
|
2348
|
-
@api_client.config.logger.debug
|
2355
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_post ...'
|
2349
2356
|
end
|
2350
2357
|
# verify the required parameter 'id_user' is set
|
2351
2358
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2356,10 +2363,11 @@ module BudgeaClient
|
|
2356
2363
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_post"
|
2357
2364
|
end
|
2358
2365
|
# resource path
|
2359
|
-
local_var_path =
|
2366
|
+
local_var_path = '/users/{id_user}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
2360
2367
|
|
2361
2368
|
# query parameters
|
2362
2369
|
query_params = {}
|
2370
|
+
query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
|
2363
2371
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
2364
2372
|
|
2365
2373
|
# header parameters
|
@@ -2387,7 +2395,6 @@ module BudgeaClient
|
|
2387
2395
|
end
|
2388
2396
|
return data, status_code, headers
|
2389
2397
|
end
|
2390
|
-
|
2391
2398
|
# Get transfers
|
2392
2399
|
#
|
2393
2400
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2395,10 +2402,10 @@ module BudgeaClient
|
|
2395
2402
|
# @param [Hash] opts the optional parameters
|
2396
2403
|
# @option opts [String] :period period to group logs
|
2397
2404
|
# @option opts [String] :expand
|
2398
|
-
# @return [
|
2405
|
+
# @return [InlineResponse20026]
|
2399
2406
|
def users_id_user_recipients_id_recipient_transfers_get(id_user, id_recipient, opts = {})
|
2400
2407
|
data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts)
|
2401
|
-
|
2408
|
+
data
|
2402
2409
|
end
|
2403
2410
|
|
2404
2411
|
# Get transfers
|
@@ -2408,10 +2415,10 @@ module BudgeaClient
|
|
2408
2415
|
# @param [Hash] opts the optional parameters
|
2409
2416
|
# @option opts [String] :period period to group logs
|
2410
2417
|
# @option opts [String] :expand
|
2411
|
-
# @return [Array<(
|
2418
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
2412
2419
|
def users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts = {})
|
2413
2420
|
if @api_client.config.debugging
|
2414
|
-
@api_client.config.logger.debug
|
2421
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_get ...'
|
2415
2422
|
end
|
2416
2423
|
# verify the required parameter 'id_user' is set
|
2417
2424
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2422,7 +2429,7 @@ module BudgeaClient
|
|
2422
2429
|
fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_get"
|
2423
2430
|
end
|
2424
2431
|
# resource path
|
2425
|
-
local_var_path =
|
2432
|
+
local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
2426
2433
|
|
2427
2434
|
# query parameters
|
2428
2435
|
query_params = {}
|
@@ -2448,13 +2455,12 @@ module BudgeaClient
|
|
2448
2455
|
:form_params => form_params,
|
2449
2456
|
:body => post_body,
|
2450
2457
|
:auth_names => auth_names,
|
2451
|
-
:return_type => '
|
2458
|
+
:return_type => 'InlineResponse20026')
|
2452
2459
|
if @api_client.config.debugging
|
2453
2460
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2454
2461
|
end
|
2455
2462
|
return data, status_code, headers
|
2456
2463
|
end
|
2457
|
-
|
2458
2464
|
# Cancel a transfer.
|
2459
2465
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
2460
2466
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2465,7 +2471,7 @@ module BudgeaClient
|
|
2465
2471
|
# @return [Transfer]
|
2466
2472
|
def users_id_user_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_recipient, id_transfer, opts = {})
|
2467
2473
|
data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_recipient, id_transfer, opts)
|
2468
|
-
|
2474
|
+
data
|
2469
2475
|
end
|
2470
2476
|
|
2471
2477
|
# Cancel a transfer.
|
@@ -2478,7 +2484,7 @@ module BudgeaClient
|
|
2478
2484
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2479
2485
|
def users_id_user_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_recipient, id_transfer, opts = {})
|
2480
2486
|
if @api_client.config.debugging
|
2481
|
-
@api_client.config.logger.debug
|
2487
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete ...'
|
2482
2488
|
end
|
2483
2489
|
# verify the required parameter 'id_user' is set
|
2484
2490
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2493,7 +2499,7 @@ module BudgeaClient
|
|
2493
2499
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
|
2494
2500
|
end
|
2495
2501
|
# resource path
|
2496
|
-
local_var_path =
|
2502
|
+
local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2497
2503
|
|
2498
2504
|
# query parameters
|
2499
2505
|
query_params = {}
|
@@ -2524,7 +2530,6 @@ module BudgeaClient
|
|
2524
2530
|
end
|
2525
2531
|
return data, status_code, headers
|
2526
2532
|
end
|
2527
|
-
|
2528
2533
|
# Execute or edit a Transfer.
|
2529
2534
|
#
|
2530
2535
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2532,11 +2537,12 @@ module BudgeaClient
|
|
2532
2537
|
# @param id_transfer
|
2533
2538
|
# @param [Hash] opts the optional parameters
|
2534
2539
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2540
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
2535
2541
|
# @option opts [String] :expand
|
2536
2542
|
# @return [Transfer]
|
2537
2543
|
def users_id_user_recipients_id_recipient_transfers_id_transfer_post(id_user, id_recipient, id_transfer, opts = {})
|
2538
2544
|
data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_recipient, id_transfer, opts)
|
2539
|
-
|
2545
|
+
data
|
2540
2546
|
end
|
2541
2547
|
|
2542
2548
|
# Execute or edit a Transfer.
|
@@ -2546,11 +2552,12 @@ module BudgeaClient
|
|
2546
2552
|
# @param id_transfer
|
2547
2553
|
# @param [Hash] opts the optional parameters
|
2548
2554
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2555
|
+
# @option opts [Integer] :id_recipient2 set the recipient of the transfer
|
2549
2556
|
# @option opts [String] :expand
|
2550
2557
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2551
2558
|
def users_id_user_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_recipient, id_transfer, opts = {})
|
2552
2559
|
if @api_client.config.debugging
|
2553
|
-
@api_client.config.logger.debug
|
2560
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post ...'
|
2554
2561
|
end
|
2555
2562
|
# verify the required parameter 'id_user' is set
|
2556
2563
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2565,7 +2572,7 @@ module BudgeaClient
|
|
2565
2572
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
|
2566
2573
|
end
|
2567
2574
|
# resource path
|
2568
|
-
local_var_path =
|
2575
|
+
local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2569
2576
|
|
2570
2577
|
# query parameters
|
2571
2578
|
query_params = {}
|
@@ -2580,7 +2587,8 @@ module BudgeaClient
|
|
2580
2587
|
|
2581
2588
|
# form parameters
|
2582
2589
|
form_params = {}
|
2583
|
-
form_params[
|
2590
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
2591
|
+
form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?
|
2584
2592
|
|
2585
2593
|
# http body (model)
|
2586
2594
|
post_body = nil
|
@@ -2597,7 +2605,6 @@ module BudgeaClient
|
|
2597
2605
|
end
|
2598
2606
|
return data, status_code, headers
|
2599
2607
|
end
|
2600
|
-
|
2601
2608
|
# Create a transfer object.
|
2602
2609
|
#
|
2603
2610
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2610,7 +2617,7 @@ module BudgeaClient
|
|
2610
2617
|
# @return [Transfer]
|
2611
2618
|
def users_id_user_recipients_id_recipient_transfers_post(id_user, id_recipient, amount, opts = {})
|
2612
2619
|
data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts)
|
2613
|
-
|
2620
|
+
data
|
2614
2621
|
end
|
2615
2622
|
|
2616
2623
|
# Create a transfer object.
|
@@ -2625,7 +2632,7 @@ module BudgeaClient
|
|
2625
2632
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2626
2633
|
def users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts = {})
|
2627
2634
|
if @api_client.config.debugging
|
2628
|
-
@api_client.config.logger.debug
|
2635
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_post ...'
|
2629
2636
|
end
|
2630
2637
|
# verify the required parameter 'id_user' is set
|
2631
2638
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2640,7 +2647,7 @@ module BudgeaClient
|
|
2640
2647
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
|
2641
2648
|
end
|
2642
2649
|
# resource path
|
2643
|
-
local_var_path =
|
2650
|
+
local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
|
2644
2651
|
|
2645
2652
|
# query parameters
|
2646
2653
|
query_params = {}
|
@@ -2655,9 +2662,9 @@ module BudgeaClient
|
|
2655
2662
|
|
2656
2663
|
# form parameters
|
2657
2664
|
form_params = {}
|
2658
|
-
form_params[
|
2659
|
-
form_params[
|
2660
|
-
form_params[
|
2665
|
+
form_params['amount'] = amount
|
2666
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
2667
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
2661
2668
|
|
2662
2669
|
# http body (model)
|
2663
2670
|
post_body = nil
|
@@ -2674,17 +2681,16 @@ module BudgeaClient
|
|
2674
2681
|
end
|
2675
2682
|
return data, status_code, headers
|
2676
2683
|
end
|
2677
|
-
|
2678
2684
|
# Get transfers
|
2679
2685
|
#
|
2680
2686
|
# @param id_user Hint: you can use 'me' or 'all'
|
2681
2687
|
# @param [Hash] opts the optional parameters
|
2682
2688
|
# @option opts [String] :period period to group logs
|
2683
2689
|
# @option opts [String] :expand
|
2684
|
-
# @return [
|
2690
|
+
# @return [InlineResponse20026]
|
2685
2691
|
def users_id_user_transfers_get(id_user, opts = {})
|
2686
2692
|
data, _status_code, _headers = users_id_user_transfers_get_with_http_info(id_user, opts)
|
2687
|
-
|
2693
|
+
data
|
2688
2694
|
end
|
2689
2695
|
|
2690
2696
|
# Get transfers
|
@@ -2693,17 +2699,17 @@ module BudgeaClient
|
|
2693
2699
|
# @param [Hash] opts the optional parameters
|
2694
2700
|
# @option opts [String] :period period to group logs
|
2695
2701
|
# @option opts [String] :expand
|
2696
|
-
# @return [Array<(
|
2702
|
+
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
2697
2703
|
def users_id_user_transfers_get_with_http_info(id_user, opts = {})
|
2698
2704
|
if @api_client.config.debugging
|
2699
|
-
@api_client.config.logger.debug
|
2705
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_get ...'
|
2700
2706
|
end
|
2701
2707
|
# verify the required parameter 'id_user' is set
|
2702
2708
|
if @api_client.config.client_side_validation && id_user.nil?
|
2703
2709
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_get"
|
2704
2710
|
end
|
2705
2711
|
# resource path
|
2706
|
-
local_var_path =
|
2712
|
+
local_var_path = '/users/{id_user}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2707
2713
|
|
2708
2714
|
# query parameters
|
2709
2715
|
query_params = {}
|
@@ -2729,13 +2735,12 @@ module BudgeaClient
|
|
2729
2735
|
:form_params => form_params,
|
2730
2736
|
:body => post_body,
|
2731
2737
|
:auth_names => auth_names,
|
2732
|
-
:return_type => '
|
2738
|
+
:return_type => 'InlineResponse20026')
|
2733
2739
|
if @api_client.config.debugging
|
2734
2740
|
@api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2735
2741
|
end
|
2736
2742
|
return data, status_code, headers
|
2737
2743
|
end
|
2738
|
-
|
2739
2744
|
# Cancel a transfer.
|
2740
2745
|
# It is possible to cancel only a transfer in state 'created'.<br><br>
|
2741
2746
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2745,7 +2750,7 @@ module BudgeaClient
|
|
2745
2750
|
# @return [Transfer]
|
2746
2751
|
def users_id_user_transfers_id_transfer_delete(id_user, id_transfer, opts = {})
|
2747
2752
|
data, _status_code, _headers = users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts)
|
2748
|
-
|
2753
|
+
data
|
2749
2754
|
end
|
2750
2755
|
|
2751
2756
|
# Cancel a transfer.
|
@@ -2757,7 +2762,7 @@ module BudgeaClient
|
|
2757
2762
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2758
2763
|
def users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts = {})
|
2759
2764
|
if @api_client.config.debugging
|
2760
|
-
@api_client.config.logger.debug
|
2765
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_id_transfer_delete ...'
|
2761
2766
|
end
|
2762
2767
|
# verify the required parameter 'id_user' is set
|
2763
2768
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2768,7 +2773,7 @@ module BudgeaClient
|
|
2768
2773
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_delete"
|
2769
2774
|
end
|
2770
2775
|
# resource path
|
2771
|
-
local_var_path =
|
2776
|
+
local_var_path = '/users/{id_user}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2772
2777
|
|
2773
2778
|
# query parameters
|
2774
2779
|
query_params = {}
|
@@ -2799,18 +2804,18 @@ module BudgeaClient
|
|
2799
2804
|
end
|
2800
2805
|
return data, status_code, headers
|
2801
2806
|
end
|
2802
|
-
|
2803
2807
|
# Execute or edit a Transfer.
|
2804
2808
|
#
|
2805
2809
|
# @param id_user Hint: you can use 'me' or 'all'
|
2806
2810
|
# @param id_transfer
|
2807
2811
|
# @param [Hash] opts the optional parameters
|
2808
2812
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2813
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
2809
2814
|
# @option opts [String] :expand
|
2810
2815
|
# @return [Transfer]
|
2811
2816
|
def users_id_user_transfers_id_transfer_post(id_user, id_transfer, opts = {})
|
2812
2817
|
data, _status_code, _headers = users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, opts)
|
2813
|
-
|
2818
|
+
data
|
2814
2819
|
end
|
2815
2820
|
|
2816
2821
|
# Execute or edit a Transfer.
|
@@ -2819,11 +2824,12 @@ module BudgeaClient
|
|
2819
2824
|
# @param id_transfer
|
2820
2825
|
# @param [Hash] opts the optional parameters
|
2821
2826
|
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2827
|
+
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
2822
2828
|
# @option opts [String] :expand
|
2823
2829
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2824
2830
|
def users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, opts = {})
|
2825
2831
|
if @api_client.config.debugging
|
2826
|
-
@api_client.config.logger.debug
|
2832
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_id_transfer_post ...'
|
2827
2833
|
end
|
2828
2834
|
# verify the required parameter 'id_user' is set
|
2829
2835
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2834,7 +2840,7 @@ module BudgeaClient
|
|
2834
2840
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
|
2835
2841
|
end
|
2836
2842
|
# resource path
|
2837
|
-
local_var_path =
|
2843
|
+
local_var_path = '/users/{id_user}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2838
2844
|
|
2839
2845
|
# query parameters
|
2840
2846
|
query_params = {}
|
@@ -2849,7 +2855,8 @@ module BudgeaClient
|
|
2849
2855
|
|
2850
2856
|
# form parameters
|
2851
2857
|
form_params = {}
|
2852
|
-
form_params[
|
2858
|
+
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
2859
|
+
form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?
|
2853
2860
|
|
2854
2861
|
# http body (model)
|
2855
2862
|
post_body = nil
|
@@ -2866,7 +2873,6 @@ module BudgeaClient
|
|
2866
2873
|
end
|
2867
2874
|
return data, status_code, headers
|
2868
2875
|
end
|
2869
|
-
|
2870
2876
|
# Create a transfer object.
|
2871
2877
|
#
|
2872
2878
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2878,7 +2884,7 @@ module BudgeaClient
|
|
2878
2884
|
# @return [Transfer]
|
2879
2885
|
def users_id_user_transfers_post(id_user, amount, opts = {})
|
2880
2886
|
data, _status_code, _headers = users_id_user_transfers_post_with_http_info(id_user, amount, opts)
|
2881
|
-
|
2887
|
+
data
|
2882
2888
|
end
|
2883
2889
|
|
2884
2890
|
# Create a transfer object.
|
@@ -2892,7 +2898,7 @@ module BudgeaClient
|
|
2892
2898
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2893
2899
|
def users_id_user_transfers_post_with_http_info(id_user, amount, opts = {})
|
2894
2900
|
if @api_client.config.debugging
|
2895
|
-
@api_client.config.logger.debug
|
2901
|
+
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_post ...'
|
2896
2902
|
end
|
2897
2903
|
# verify the required parameter 'id_user' is set
|
2898
2904
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2903,7 +2909,7 @@ module BudgeaClient
|
|
2903
2909
|
fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_transfers_post"
|
2904
2910
|
end
|
2905
2911
|
# resource path
|
2906
|
-
local_var_path =
|
2912
|
+
local_var_path = '/users/{id_user}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2907
2913
|
|
2908
2914
|
# query parameters
|
2909
2915
|
query_params = {}
|
@@ -2914,13 +2920,13 @@ module BudgeaClient
|
|
2914
2920
|
# HTTP header 'Accept' (if needed)
|
2915
2921
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2916
2922
|
# HTTP header 'Content-Type'
|
2917
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
2923
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
2918
2924
|
|
2919
2925
|
# form parameters
|
2920
2926
|
form_params = {}
|
2921
|
-
form_params[
|
2922
|
-
form_params[
|
2923
|
-
form_params[
|
2927
|
+
form_params['amount'] = amount
|
2928
|
+
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
2929
|
+
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
2924
2930
|
|
2925
2931
|
# http body (model)
|
2926
2932
|
post_body = nil
|