budgea_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +89 -0
  4. data/README.md +619 -0
  5. data/Rakefile +13 -0
  6. data/budgea_client.gemspec +35 -0
  7. data/docs/Access.md +12 -0
  8. data/docs/Account.md +25 -0
  9. data/docs/AccountLog.md +15 -0
  10. data/docs/AccountType.md +15 -0
  11. data/docs/AdministrationApi.md +944 -0
  12. data/docs/Alert.md +15 -0
  13. data/docs/AuthenticationApi.md +398 -0
  14. data/docs/Bank.md +18 -0
  15. data/docs/BankCategory.md +9 -0
  16. data/docs/BanksApi.md +6558 -0
  17. data/docs/Category.md +17 -0
  18. data/docs/Client.md +18 -0
  19. data/docs/Connection.md +16 -0
  20. data/docs/ConnectionContact.md +17 -0
  21. data/docs/ConnectionLog.md +21 -0
  22. data/docs/ConnectionsApi.md +934 -0
  23. data/docs/ConnectorLogo.md +11 -0
  24. data/docs/Currency.md +10 -0
  25. data/docs/Device.md +14 -0
  26. data/docs/Document.md +29 -0
  27. data/docs/DocumentType.md +10 -0
  28. data/docs/DocumentsApi.md +5228 -0
  29. data/docs/Field.md +15 -0
  30. data/docs/File.md +11 -0
  31. data/docs/Group.md +15 -0
  32. data/docs/HashTable.md +11 -0
  33. data/docs/InlineResponse200.md +8 -0
  34. data/docs/InlineResponse2001.md +9 -0
  35. data/docs/InlineResponse20010.md +8 -0
  36. data/docs/InlineResponse20011.md +8 -0
  37. data/docs/InlineResponse20012.md +8 -0
  38. data/docs/InlineResponse20013.md +8 -0
  39. data/docs/InlineResponse20014.md +8 -0
  40. data/docs/InlineResponse20015.md +8 -0
  41. data/docs/InlineResponse20016.md +8 -0
  42. data/docs/InlineResponse20017.md +8 -0
  43. data/docs/InlineResponse20018.md +8 -0
  44. data/docs/InlineResponse20019.md +8 -0
  45. data/docs/InlineResponse2002.md +10 -0
  46. data/docs/InlineResponse20020.md +8 -0
  47. data/docs/InlineResponse20021.md +8 -0
  48. data/docs/InlineResponse20022.md +8 -0
  49. data/docs/InlineResponse20023.md +8 -0
  50. data/docs/InlineResponse20024.md +8 -0
  51. data/docs/InlineResponse20025.md +8 -0
  52. data/docs/InlineResponse20026.md +8 -0
  53. data/docs/InlineResponse20027.md +8 -0
  54. data/docs/InlineResponse20028.md +8 -0
  55. data/docs/InlineResponse20029.md +8 -0
  56. data/docs/InlineResponse2003.md +10 -0
  57. data/docs/InlineResponse20030.md +8 -0
  58. data/docs/InlineResponse20031.md +8 -0
  59. data/docs/InlineResponse20032.md +8 -0
  60. data/docs/InlineResponse20033.md +8 -0
  61. data/docs/InlineResponse2004.md +12 -0
  62. data/docs/InlineResponse2005.md +9 -0
  63. data/docs/InlineResponse2006.md +10 -0
  64. data/docs/InlineResponse2007.md +8 -0
  65. data/docs/InlineResponse2008.md +8 -0
  66. data/docs/InlineResponse2009.md +8 -0
  67. data/docs/Investment.md +32 -0
  68. data/docs/InvestmentValue.md +13 -0
  69. data/docs/Invite.md +13 -0
  70. data/docs/LockedUser.md +10 -0
  71. data/docs/OCRApi.md +117 -0
  72. data/docs/OIDCApi.md +167 -0
  73. data/docs/OidcWhitelist.md +9 -0
  74. data/docs/PFMApi.md +2204 -0
  75. data/docs/Pocket.md +17 -0
  76. data/docs/Profile.md +15 -0
  77. data/docs/Project.md +16 -0
  78. data/docs/ProjectType.md +10 -0
  79. data/docs/ProvidersApi.md +7014 -0
  80. data/docs/Recipient.md +22 -0
  81. data/docs/RecipientsApi.md +244 -0
  82. data/docs/Security.md +12 -0
  83. data/docs/Subscription.md +18 -0
  84. data/docs/TermsApi.md +218 -0
  85. data/docs/TermsOfService.md +12 -0
  86. data/docs/Transaction.md +33 -0
  87. data/docs/TransactionInformation.md +11 -0
  88. data/docs/TransactionsCluster.md +16 -0
  89. data/docs/Transfer.md +23 -0
  90. data/docs/TransfersApi.md +2404 -0
  91. data/docs/User.md +10 -0
  92. data/docs/UserAlert.md +21 -0
  93. data/docs/UsersManagementApi.md +608 -0
  94. data/docs/WealthApi.md +828 -0
  95. data/docs/Webhook.md +15 -0
  96. data/git_push.sh +55 -0
  97. data/lib/budgea_client.rb +118 -0
  98. data/lib/budgea_client/api/administration_api.rb +1059 -0
  99. data/lib/budgea_client/api/authentication_api.rb +467 -0
  100. data/lib/budgea_client/api/banks_api.rb +7837 -0
  101. data/lib/budgea_client/api/connections_api.rb +1088 -0
  102. data/lib/budgea_client/api/documents_api.rb +6637 -0
  103. data/lib/budgea_client/api/ocr_api.rb +141 -0
  104. data/lib/budgea_client/api/oidc_api.rb +195 -0
  105. data/lib/budgea_client/api/pfm_api.rb +2630 -0
  106. data/lib/budgea_client/api/providers_api.rb +8694 -0
  107. data/lib/budgea_client/api/recipients_api.rb +293 -0
  108. data/lib/budgea_client/api/terms_api.rb +245 -0
  109. data/lib/budgea_client/api/transfers_api.rb +2941 -0
  110. data/lib/budgea_client/api/users_management_api.rb +695 -0
  111. data/lib/budgea_client/api/wealth_api.rb +994 -0
  112. data/lib/budgea_client/api_client.rb +378 -0
  113. data/lib/budgea_client/api_error.rb +28 -0
  114. data/lib/budgea_client/configuration.rb +192 -0
  115. data/lib/budgea_client/models/access.rb +224 -0
  116. data/lib/budgea_client/models/account.rb +383 -0
  117. data/lib/budgea_client/models/account_log.rb +266 -0
  118. data/lib/budgea_client/models/account_type.rb +281 -0
  119. data/lib/budgea_client/models/alert.rb +273 -0
  120. data/lib/budgea_client/models/bank.rb +308 -0
  121. data/lib/budgea_client/models/bank_category.rb +201 -0
  122. data/lib/budgea_client/models/category.rb +299 -0
  123. data/lib/budgea_client/models/client.rb +305 -0
  124. data/lib/budgea_client/models/connection.rb +276 -0
  125. data/lib/budgea_client/models/connection_contact.rb +274 -0
  126. data/lib/budgea_client/models/connection_log.rb +324 -0
  127. data/lib/budgea_client/models/connector_logo.rb +223 -0
  128. data/lib/budgea_client/models/currency.rb +216 -0
  129. data/lib/budgea_client/models/device.rb +269 -0
  130. data/lib/budgea_client/models/document.rb +398 -0
  131. data/lib/budgea_client/models/document_type.rb +213 -0
  132. data/lib/budgea_client/models/field.rb +273 -0
  133. data/lib/budgea_client/models/file.rb +225 -0
  134. data/lib/budgea_client/models/group.rb +246 -0
  135. data/lib/budgea_client/models/hash_table.rb +227 -0
  136. data/lib/budgea_client/models/inline_response_200.rb +185 -0
  137. data/lib/budgea_client/models/inline_response_200_1.rb +199 -0
  138. data/lib/budgea_client/models/inline_response_200_10.rb +185 -0
  139. data/lib/budgea_client/models/inline_response_200_11.rb +185 -0
  140. data/lib/budgea_client/models/inline_response_200_12.rb +185 -0
  141. data/lib/budgea_client/models/inline_response_200_13.rb +185 -0
  142. data/lib/budgea_client/models/inline_response_200_14.rb +185 -0
  143. data/lib/budgea_client/models/inline_response_200_15.rb +185 -0
  144. data/lib/budgea_client/models/inline_response_200_16.rb +185 -0
  145. data/lib/budgea_client/models/inline_response_200_17.rb +185 -0
  146. data/lib/budgea_client/models/inline_response_200_18.rb +185 -0
  147. data/lib/budgea_client/models/inline_response_200_19.rb +185 -0
  148. data/lib/budgea_client/models/inline_response_200_2.rb +209 -0
  149. data/lib/budgea_client/models/inline_response_200_20.rb +185 -0
  150. data/lib/budgea_client/models/inline_response_200_21.rb +185 -0
  151. data/lib/budgea_client/models/inline_response_200_22.rb +185 -0
  152. data/lib/budgea_client/models/inline_response_200_23.rb +185 -0
  153. data/lib/budgea_client/models/inline_response_200_24.rb +185 -0
  154. data/lib/budgea_client/models/inline_response_200_25.rb +185 -0
  155. data/lib/budgea_client/models/inline_response_200_26.rb +185 -0
  156. data/lib/budgea_client/models/inline_response_200_27.rb +185 -0
  157. data/lib/budgea_client/models/inline_response_200_28.rb +185 -0
  158. data/lib/budgea_client/models/inline_response_200_29.rb +185 -0
  159. data/lib/budgea_client/models/inline_response_200_3.rb +214 -0
  160. data/lib/budgea_client/models/inline_response_200_30.rb +185 -0
  161. data/lib/budgea_client/models/inline_response_200_31.rb +185 -0
  162. data/lib/budgea_client/models/inline_response_200_32.rb +185 -0
  163. data/lib/budgea_client/models/inline_response_200_33.rb +185 -0
  164. data/lib/budgea_client/models/inline_response_200_4.rb +239 -0
  165. data/lib/budgea_client/models/inline_response_200_5.rb +199 -0
  166. data/lib/budgea_client/models/inline_response_200_6.rb +214 -0
  167. data/lib/budgea_client/models/inline_response_200_7.rb +185 -0
  168. data/lib/budgea_client/models/inline_response_200_8.rb +185 -0
  169. data/lib/budgea_client/models/inline_response_200_9.rb +185 -0
  170. data/lib/budgea_client/models/investment.rb +449 -0
  171. data/lib/budgea_client/models/investment_value.rb +249 -0
  172. data/lib/budgea_client/models/invite.rb +233 -0
  173. data/lib/budgea_client/models/locked_user.rb +206 -0
  174. data/lib/budgea_client/models/oidc_whitelist.rb +198 -0
  175. data/lib/budgea_client/models/pocket.rb +298 -0
  176. data/lib/budgea_client/models/profile.rb +308 -0
  177. data/lib/budgea_client/models/project.rb +301 -0
  178. data/lib/budgea_client/models/project_type.rb +206 -0
  179. data/lib/budgea_client/models/recipient.rb +343 -0
  180. data/lib/budgea_client/models/security.rb +229 -0
  181. data/lib/budgea_client/models/subscription.rb +299 -0
  182. data/lib/budgea_client/models/terms_of_service.rb +229 -0
  183. data/lib/budgea_client/models/transaction.rb +507 -0
  184. data/lib/budgea_client/models/transaction_information.rb +224 -0
  185. data/lib/budgea_client/models/transactions_cluster.rb +277 -0
  186. data/lib/budgea_client/models/transfer.rb +354 -0
  187. data/lib/budgea_client/models/user.rb +244 -0
  188. data/lib/budgea_client/models/user_alert.rb +333 -0
  189. data/lib/budgea_client/models/webhook.rb +264 -0
  190. data/lib/budgea_client/version.rb +5 -0
  191. data/pkg/budgea_client-1.0.0.gem +0 -0
  192. data/spec/api/administration_api_spec.rb +271 -0
  193. data/spec/api/authentication_api_spec.rb +126 -0
  194. data/spec/api/banks_api_spec.rb +1787 -0
  195. data/spec/api/connections_api_spec.rb +279 -0
  196. data/spec/api/documents_api_spec.rb +1557 -0
  197. data/spec/api/ocr_api_spec.rb +54 -0
  198. data/spec/api/oidc_api_spec.rb +65 -0
  199. data/spec/api/pfm_api_spec.rb +613 -0
  200. data/spec/api/providers_api_spec.rb +2029 -0
  201. data/spec/api/recipients_api_spec.rb +89 -0
  202. data/spec/api/terms_api_spec.rb +79 -0
  203. data/spec/api/transfers_api_spec.rb +661 -0
  204. data/spec/api/users_management_api_spec.rb +177 -0
  205. data/spec/api/wealth_api_spec.rb +246 -0
  206. data/spec/api_client_spec.rb +216 -0
  207. data/spec/configuration_spec.rb +32 -0
  208. data/spec/models/access_spec.rb +56 -0
  209. data/spec/models/account_log_spec.rb +74 -0
  210. data/spec/models/account_spec.rb +134 -0
  211. data/spec/models/account_type_spec.rb +74 -0
  212. data/spec/models/alert_spec.rb +74 -0
  213. data/spec/models/bank_category_spec.rb +38 -0
  214. data/spec/models/bank_spec.rb +92 -0
  215. data/spec/models/category_spec.rb +86 -0
  216. data/spec/models/client_spec.rb +92 -0
  217. data/spec/models/connection_contact_spec.rb +86 -0
  218. data/spec/models/connection_log_spec.rb +110 -0
  219. data/spec/models/connection_spec.rb +80 -0
  220. data/spec/models/connector_logo_spec.rb +50 -0
  221. data/spec/models/currency_spec.rb +44 -0
  222. data/spec/models/device_spec.rb +68 -0
  223. data/spec/models/document_spec.rb +158 -0
  224. data/spec/models/document_type_spec.rb +44 -0
  225. data/spec/models/field_spec.rb +74 -0
  226. data/spec/models/file_spec.rb +50 -0
  227. data/spec/models/group_spec.rb +74 -0
  228. data/spec/models/hash_table_spec.rb +50 -0
  229. data/spec/models/inline_response_200_10_spec.rb +32 -0
  230. data/spec/models/inline_response_200_11_spec.rb +32 -0
  231. data/spec/models/inline_response_200_12_spec.rb +32 -0
  232. data/spec/models/inline_response_200_13_spec.rb +32 -0
  233. data/spec/models/inline_response_200_14_spec.rb +32 -0
  234. data/spec/models/inline_response_200_15_spec.rb +32 -0
  235. data/spec/models/inline_response_200_16_spec.rb +32 -0
  236. data/spec/models/inline_response_200_17_spec.rb +32 -0
  237. data/spec/models/inline_response_200_18_spec.rb +32 -0
  238. data/spec/models/inline_response_200_19_spec.rb +32 -0
  239. data/spec/models/inline_response_200_1_spec.rb +38 -0
  240. data/spec/models/inline_response_200_20_spec.rb +32 -0
  241. data/spec/models/inline_response_200_21_spec.rb +32 -0
  242. data/spec/models/inline_response_200_22_spec.rb +32 -0
  243. data/spec/models/inline_response_200_23_spec.rb +32 -0
  244. data/spec/models/inline_response_200_24_spec.rb +32 -0
  245. data/spec/models/inline_response_200_25_spec.rb +32 -0
  246. data/spec/models/inline_response_200_26_spec.rb +32 -0
  247. data/spec/models/inline_response_200_27_spec.rb +32 -0
  248. data/spec/models/inline_response_200_28_spec.rb +32 -0
  249. data/spec/models/inline_response_200_29_spec.rb +32 -0
  250. data/spec/models/inline_response_200_2_spec.rb +44 -0
  251. data/spec/models/inline_response_200_30_spec.rb +32 -0
  252. data/spec/models/inline_response_200_31_spec.rb +32 -0
  253. data/spec/models/inline_response_200_32_spec.rb +32 -0
  254. data/spec/models/inline_response_200_33_spec.rb +32 -0
  255. data/spec/models/inline_response_200_3_spec.rb +44 -0
  256. data/spec/models/inline_response_200_4_spec.rb +56 -0
  257. data/spec/models/inline_response_200_5_spec.rb +38 -0
  258. data/spec/models/inline_response_200_6_spec.rb +44 -0
  259. data/spec/models/inline_response_200_7_spec.rb +32 -0
  260. data/spec/models/inline_response_200_8_spec.rb +32 -0
  261. data/spec/models/inline_response_200_9_spec.rb +32 -0
  262. data/spec/models/inline_response_200_spec.rb +32 -0
  263. data/spec/models/investment_spec.rb +176 -0
  264. data/spec/models/investment_value_spec.rb +62 -0
  265. data/spec/models/invite_spec.rb +62 -0
  266. data/spec/models/locked_user_spec.rb +44 -0
  267. data/spec/models/oidc_whitelist_spec.rb +38 -0
  268. data/spec/models/pocket_spec.rb +86 -0
  269. data/spec/models/profile_spec.rb +78 -0
  270. data/spec/models/project_spec.rb +80 -0
  271. data/spec/models/project_type_spec.rb +44 -0
  272. data/spec/models/recipient_spec.rb +116 -0
  273. data/spec/models/security_spec.rb +56 -0
  274. data/spec/models/subscription_spec.rb +92 -0
  275. data/spec/models/terms_of_service_spec.rb +56 -0
  276. data/spec/models/transaction_information_spec.rb +50 -0
  277. data/spec/models/transaction_spec.rb +182 -0
  278. data/spec/models/transactions_cluster_spec.rb +80 -0
  279. data/spec/models/transfer_spec.rb +122 -0
  280. data/spec/models/user_alert_spec.rb +110 -0
  281. data/spec/models/user_spec.rb +48 -0
  282. data/spec/models/webhook_spec.rb +74 -0
  283. data/spec/spec_helper.rb +51 -0
  284. metadata +599 -0
@@ -0,0 +1,2941 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "uri"
4
+
5
+ module BudgeaClient
6
+ class TransfersApi
7
+ attr_accessor :api_client
8
+
9
+ def initialize(api_client = ApiClient.default)
10
+ @api_client = api_client
11
+ end
12
+
13
+ # Returns the list of recipients
14
+ #
15
+ # @param id_user Hint: you can use 'me' or 'all'
16
+ # @param id_account
17
+ # @param [Hash] opts the optional parameters
18
+ # @option opts [String] :expand
19
+ # @return [InlineResponse20023]
20
+ def users_id_user_accounts_id_account_recipients_get(id_user, id_account, opts = {})
21
+ data, _status_code, _headers = users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts)
22
+ return data
23
+ end
24
+
25
+ # Returns the list of recipients
26
+ #
27
+ # @param id_user Hint: you can use 'me' or 'all'
28
+ # @param id_account
29
+ # @param [Hash] opts the optional parameters
30
+ # @option opts [String] :expand
31
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
32
+ def users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts = {})
33
+ if @api_client.config.debugging
34
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_get ..."
35
+ end
36
+ # verify the required parameter 'id_user' is set
37
+ if @api_client.config.client_side_validation && id_user.nil?
38
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_get"
39
+ end
40
+ # verify the required parameter 'id_account' is set
41
+ if @api_client.config.client_side_validation && id_account.nil?
42
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_get"
43
+ end
44
+ # resource path
45
+ 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
+
47
+ # query parameters
48
+ query_params = {}
49
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = []
64
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'InlineResponse20023')
71
+ if @api_client.config.debugging
72
+ @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
+ end
74
+ return data, status_code, headers
75
+ end
76
+
77
+ # Continue addition of a recipient.
78
+ #
79
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
80
+ # @param id_account
81
+ # @param id_recipient
82
+ # @param [Hash] opts the optional parameters
83
+ # @option opts [String] :expand
84
+ # @return [Recipient]
85
+ def users_id_user_accounts_id_account_recipients_id_recipient_post(id_user, id_account, id_recipient, opts = {})
86
+ 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
+ return data
88
+ end
89
+
90
+ # Continue addition of a recipient.
91
+ #
92
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
93
+ # @param id_account
94
+ # @param id_recipient
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [String] :expand
97
+ # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
98
+ def users_id_user_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_account, id_recipient, opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post ..."
101
+ end
102
+ # verify the required parameter 'id_user' is set
103
+ if @api_client.config.client_side_validation && id_user.nil?
104
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
105
+ end
106
+ # verify the required parameter 'id_account' is set
107
+ if @api_client.config.client_side_validation && id_account.nil?
108
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
109
+ end
110
+ # verify the required parameter 'id_recipient' is set
111
+ if @api_client.config.client_side_validation && id_recipient.nil?
112
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
113
+ end
114
+ # resource path
115
+ 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
+
117
+ # query parameters
118
+ query_params = {}
119
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
120
+
121
+ # header parameters
122
+ header_params = {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
125
+ # HTTP header 'Content-Type'
126
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
127
+
128
+ # form parameters
129
+ form_params = {}
130
+
131
+ # http body (model)
132
+ post_body = nil
133
+ auth_names = []
134
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => 'Recipient')
141
+ if @api_client.config.debugging
142
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
143
+ end
144
+ return data, status_code, headers
145
+ end
146
+
147
+ # Get transfers
148
+ #
149
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
150
+ # @param id_account
151
+ # @param id_recipient
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [String] :period period to group logs
154
+ # @option opts [String] :expand
155
+ # @return [InlineResponse20024]
156
+ def users_id_user_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_account, id_recipient, opts = {})
157
+ 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
+ return data
159
+ end
160
+
161
+ # Get transfers
162
+ #
163
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
164
+ # @param id_account
165
+ # @param id_recipient
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [String] :period period to group logs
168
+ # @option opts [String] :expand
169
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
170
+ def users_id_user_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_account, id_recipient, opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get ..."
173
+ end
174
+ # verify the required parameter 'id_user' is set
175
+ if @api_client.config.client_side_validation && id_user.nil?
176
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
177
+ end
178
+ # verify the required parameter 'id_account' is set
179
+ if @api_client.config.client_side_validation && id_account.nil?
180
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
181
+ end
182
+ # verify the required parameter 'id_recipient' is set
183
+ if @api_client.config.client_side_validation && id_recipient.nil?
184
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
185
+ end
186
+ # resource path
187
+ 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
+
189
+ # query parameters
190
+ query_params = {}
191
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
192
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
193
+
194
+ # header parameters
195
+ header_params = {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+ # HTTP header 'Content-Type'
199
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
200
+
201
+ # form parameters
202
+ form_params = {}
203
+
204
+ # http body (model)
205
+ post_body = nil
206
+ auth_names = []
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => 'InlineResponse20024')
214
+ if @api_client.config.debugging
215
+ @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
+ end
217
+ return data, status_code, headers
218
+ end
219
+
220
+ # Cancel a transfer.
221
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
222
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
223
+ # @param id_account
224
+ # @param id_recipient
225
+ # @param id_transfer
226
+ # @param [Hash] opts the optional parameters
227
+ # @option opts [String] :expand
228
+ # @return [Transfer]
229
+ def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_account, id_recipient, id_transfer, opts = {})
230
+ 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
+ return data
232
+ end
233
+
234
+ # Cancel a transfer.
235
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
236
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
237
+ # @param id_account
238
+ # @param id_recipient
239
+ # @param id_transfer
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [String] :expand
242
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
243
+ 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
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete ..."
246
+ end
247
+ # verify the required parameter 'id_user' is set
248
+ if @api_client.config.client_side_validation && id_user.nil?
249
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
250
+ end
251
+ # verify the required parameter 'id_account' is set
252
+ if @api_client.config.client_side_validation && id_account.nil?
253
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
254
+ end
255
+ # verify the required parameter 'id_recipient' is set
256
+ if @api_client.config.client_side_validation && id_recipient.nil?
257
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
258
+ end
259
+ # verify the required parameter 'id_transfer' is set
260
+ if @api_client.config.client_side_validation && id_transfer.nil?
261
+ 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
+ end
263
+ # resource path
264
+ 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
+
266
+ # query parameters
267
+ query_params = {}
268
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
269
+
270
+ # header parameters
271
+ header_params = {}
272
+ # HTTP header 'Accept' (if needed)
273
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
274
+ # HTTP header 'Content-Type'
275
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
276
+
277
+ # form parameters
278
+ form_params = {}
279
+
280
+ # http body (model)
281
+ post_body = nil
282
+ auth_names = []
283
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
284
+ :header_params => header_params,
285
+ :query_params => query_params,
286
+ :form_params => form_params,
287
+ :body => post_body,
288
+ :auth_names => auth_names,
289
+ :return_type => 'Transfer')
290
+ if @api_client.config.debugging
291
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
292
+ end
293
+ return data, status_code, headers
294
+ end
295
+
296
+ # Execute or edit a Transfer.
297
+ #
298
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
299
+ # @param id_account
300
+ # @param id_recipient
301
+ # @param id_transfer
302
+ # @param [Hash] opts the optional parameters
303
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
304
+ # @option opts [String] :expand
305
+ # @return [Transfer]
306
+ def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_account, id_recipient, id_transfer, opts = {})
307
+ 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
+ return data
309
+ end
310
+
311
+ # Execute or edit a Transfer.
312
+ #
313
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
314
+ # @param id_account
315
+ # @param id_recipient
316
+ # @param id_transfer
317
+ # @param [Hash] opts the optional parameters
318
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
319
+ # @option opts [String] :expand
320
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
321
+ 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
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post ..."
324
+ end
325
+ # verify the required parameter 'id_user' is set
326
+ if @api_client.config.client_side_validation && id_user.nil?
327
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
328
+ end
329
+ # verify the required parameter 'id_account' is set
330
+ if @api_client.config.client_side_validation && id_account.nil?
331
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
332
+ end
333
+ # verify the required parameter 'id_recipient' is set
334
+ if @api_client.config.client_side_validation && id_recipient.nil?
335
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
336
+ end
337
+ # verify the required parameter 'id_transfer' is set
338
+ if @api_client.config.client_side_validation && id_transfer.nil?
339
+ 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
+ end
341
+ # resource path
342
+ 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
+
344
+ # query parameters
345
+ query_params = {}
346
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
347
+
348
+ # header parameters
349
+ header_params = {}
350
+ # HTTP header 'Accept' (if needed)
351
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
352
+ # HTTP header 'Content-Type'
353
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
354
+
355
+ # form parameters
356
+ form_params = {}
357
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
358
+
359
+ # http body (model)
360
+ post_body = nil
361
+ auth_names = []
362
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
363
+ :header_params => header_params,
364
+ :query_params => query_params,
365
+ :form_params => form_params,
366
+ :body => post_body,
367
+ :auth_names => auth_names,
368
+ :return_type => 'Transfer')
369
+ if @api_client.config.debugging
370
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
371
+ end
372
+ return data, status_code, headers
373
+ end
374
+
375
+ # Create a transfer object.
376
+ #
377
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
378
+ # @param id_account
379
+ # @param id_recipient
380
+ # @param amount amount of transfer
381
+ # @param [Hash] opts the optional parameters
382
+ # @option opts [String] :label reason of transfer
383
+ # @option opts [Date] :exec_date excution date of transfer
384
+ # @option opts [String] :expand
385
+ # @return [Transfer]
386
+ def users_id_user_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_account, id_recipient, amount, opts = {})
387
+ 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
+ return data
389
+ end
390
+
391
+ # Create a transfer object.
392
+ #
393
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
394
+ # @param id_account
395
+ # @param id_recipient
396
+ # @param amount amount of transfer
397
+ # @param [Hash] opts the optional parameters
398
+ # @option opts [String] :label reason of transfer
399
+ # @option opts [Date] :exec_date excution date of transfer
400
+ # @option opts [String] :expand
401
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
402
+ def users_id_user_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_account, id_recipient, amount, opts = {})
403
+ if @api_client.config.debugging
404
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post ..."
405
+ end
406
+ # verify the required parameter 'id_user' is set
407
+ if @api_client.config.client_side_validation && id_user.nil?
408
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
409
+ end
410
+ # verify the required parameter 'id_account' is set
411
+ if @api_client.config.client_side_validation && id_account.nil?
412
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
413
+ end
414
+ # verify the required parameter 'id_recipient' is set
415
+ if @api_client.config.client_side_validation && id_recipient.nil?
416
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
417
+ end
418
+ # verify the required parameter 'amount' is set
419
+ if @api_client.config.client_side_validation && amount.nil?
420
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
421
+ end
422
+ # resource path
423
+ 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
+
425
+ # query parameters
426
+ query_params = {}
427
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
428
+
429
+ # header parameters
430
+ header_params = {}
431
+ # HTTP header 'Accept' (if needed)
432
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
433
+ # HTTP header 'Content-Type'
434
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
435
+
436
+ # form parameters
437
+ form_params = {}
438
+ form_params["amount"] = amount
439
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
440
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
441
+
442
+ # http body (model)
443
+ post_body = nil
444
+ auth_names = []
445
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
446
+ :header_params => header_params,
447
+ :query_params => query_params,
448
+ :form_params => form_params,
449
+ :body => post_body,
450
+ :auth_names => auth_names,
451
+ :return_type => 'Transfer')
452
+ if @api_client.config.debugging
453
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
454
+ end
455
+ return data, status_code, headers
456
+ end
457
+
458
+ # Get transfers
459
+ #
460
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
461
+ # @param id_account
462
+ # @param [Hash] opts the optional parameters
463
+ # @option opts [String] :period period to group logs
464
+ # @option opts [String] :expand
465
+ # @return [InlineResponse20024]
466
+ def users_id_user_accounts_id_account_transfers_get(id_user, id_account, opts = {})
467
+ data, _status_code, _headers = users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts)
468
+ return data
469
+ end
470
+
471
+ # Get transfers
472
+ #
473
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
474
+ # @param id_account
475
+ # @param [Hash] opts the optional parameters
476
+ # @option opts [String] :period period to group logs
477
+ # @option opts [String] :expand
478
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
479
+ def users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts = {})
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_get ..."
482
+ end
483
+ # verify the required parameter 'id_user' is set
484
+ if @api_client.config.client_side_validation && id_user.nil?
485
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_get"
486
+ end
487
+ # verify the required parameter 'id_account' is set
488
+ if @api_client.config.client_side_validation && id_account.nil?
489
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_get"
490
+ end
491
+ # resource path
492
+ 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
+
494
+ # query parameters
495
+ query_params = {}
496
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
497
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
498
+
499
+ # header parameters
500
+ header_params = {}
501
+ # HTTP header 'Accept' (if needed)
502
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
503
+ # HTTP header 'Content-Type'
504
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
505
+
506
+ # form parameters
507
+ form_params = {}
508
+
509
+ # http body (model)
510
+ post_body = nil
511
+ auth_names = []
512
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
513
+ :header_params => header_params,
514
+ :query_params => query_params,
515
+ :form_params => form_params,
516
+ :body => post_body,
517
+ :auth_names => auth_names,
518
+ :return_type => 'InlineResponse20024')
519
+ if @api_client.config.debugging
520
+ @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
+ end
522
+ return data, status_code, headers
523
+ end
524
+
525
+ # Cancel a transfer.
526
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
527
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
528
+ # @param id_account
529
+ # @param id_transfer
530
+ # @param [Hash] opts the optional parameters
531
+ # @option opts [String] :expand
532
+ # @return [Transfer]
533
+ def users_id_user_accounts_id_account_transfers_id_transfer_delete(id_user, id_account, id_transfer, opts = {})
534
+ 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
+ return data
536
+ end
537
+
538
+ # Cancel a transfer.
539
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
540
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
541
+ # @param id_account
542
+ # @param id_transfer
543
+ # @param [Hash] opts the optional parameters
544
+ # @option opts [String] :expand
545
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
546
+ def users_id_user_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_transfer, opts = {})
547
+ if @api_client.config.debugging
548
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete ..."
549
+ end
550
+ # verify the required parameter 'id_user' is set
551
+ if @api_client.config.client_side_validation && id_user.nil?
552
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
553
+ end
554
+ # verify the required parameter 'id_account' is set
555
+ if @api_client.config.client_side_validation && id_account.nil?
556
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
557
+ end
558
+ # verify the required parameter 'id_transfer' is set
559
+ if @api_client.config.client_side_validation && id_transfer.nil?
560
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
561
+ end
562
+ # resource path
563
+ 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
+
565
+ # query parameters
566
+ query_params = {}
567
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
568
+
569
+ # header parameters
570
+ header_params = {}
571
+ # HTTP header 'Accept' (if needed)
572
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
573
+ # HTTP header 'Content-Type'
574
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
575
+
576
+ # form parameters
577
+ form_params = {}
578
+
579
+ # http body (model)
580
+ post_body = nil
581
+ auth_names = []
582
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
583
+ :header_params => header_params,
584
+ :query_params => query_params,
585
+ :form_params => form_params,
586
+ :body => post_body,
587
+ :auth_names => auth_names,
588
+ :return_type => 'Transfer')
589
+ if @api_client.config.debugging
590
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
591
+ end
592
+ return data, status_code, headers
593
+ end
594
+
595
+ # Execute or edit a Transfer.
596
+ #
597
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
598
+ # @param id_account
599
+ # @param id_transfer
600
+ # @param [Hash] opts the optional parameters
601
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
602
+ # @option opts [String] :expand
603
+ # @return [Transfer]
604
+ def users_id_user_accounts_id_account_transfers_id_transfer_post(id_user, id_account, id_transfer, opts = {})
605
+ 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
+ return data
607
+ end
608
+
609
+ # Execute or edit a Transfer.
610
+ #
611
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
612
+ # @param id_account
613
+ # @param id_transfer
614
+ # @param [Hash] opts the optional parameters
615
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
616
+ # @option opts [String] :expand
617
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
618
+ def users_id_user_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_account, id_transfer, opts = {})
619
+ if @api_client.config.debugging
620
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post ..."
621
+ end
622
+ # verify the required parameter 'id_user' is set
623
+ if @api_client.config.client_side_validation && id_user.nil?
624
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
625
+ end
626
+ # verify the required parameter 'id_account' is set
627
+ if @api_client.config.client_side_validation && id_account.nil?
628
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
629
+ end
630
+ # verify the required parameter 'id_transfer' is set
631
+ if @api_client.config.client_side_validation && id_transfer.nil?
632
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
633
+ end
634
+ # resource path
635
+ 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
+
637
+ # query parameters
638
+ query_params = {}
639
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
640
+
641
+ # header parameters
642
+ header_params = {}
643
+ # HTTP header 'Accept' (if needed)
644
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
645
+ # HTTP header 'Content-Type'
646
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
647
+
648
+ # form parameters
649
+ form_params = {}
650
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
651
+
652
+ # http body (model)
653
+ post_body = nil
654
+ auth_names = []
655
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
656
+ :header_params => header_params,
657
+ :query_params => query_params,
658
+ :form_params => form_params,
659
+ :body => post_body,
660
+ :auth_names => auth_names,
661
+ :return_type => 'Transfer')
662
+ if @api_client.config.debugging
663
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
664
+ end
665
+ return data, status_code, headers
666
+ end
667
+
668
+ # Create a transfer object.
669
+ #
670
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
671
+ # @param id_account
672
+ # @param amount amount of transfer
673
+ # @param [Hash] opts the optional parameters
674
+ # @option opts [String] :label reason of transfer
675
+ # @option opts [Date] :exec_date excution date of transfer
676
+ # @option opts [String] :expand
677
+ # @return [Transfer]
678
+ def users_id_user_accounts_id_account_transfers_post(id_user, id_account, amount, opts = {})
679
+ data, _status_code, _headers = users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts)
680
+ return data
681
+ end
682
+
683
+ # Create a transfer object.
684
+ #
685
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
686
+ # @param id_account
687
+ # @param amount amount of transfer
688
+ # @param [Hash] opts the optional parameters
689
+ # @option opts [String] :label reason of transfer
690
+ # @option opts [Date] :exec_date excution date of transfer
691
+ # @option opts [String] :expand
692
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
693
+ def users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts = {})
694
+ if @api_client.config.debugging
695
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_post ..."
696
+ end
697
+ # verify the required parameter 'id_user' is set
698
+ if @api_client.config.client_side_validation && id_user.nil?
699
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
700
+ end
701
+ # verify the required parameter 'id_account' is set
702
+ if @api_client.config.client_side_validation && id_account.nil?
703
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
704
+ end
705
+ # verify the required parameter 'amount' is set
706
+ if @api_client.config.client_side_validation && amount.nil?
707
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
708
+ end
709
+ # resource path
710
+ 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
+
712
+ # query parameters
713
+ query_params = {}
714
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
715
+
716
+ # header parameters
717
+ header_params = {}
718
+ # HTTP header 'Accept' (if needed)
719
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
720
+ # HTTP header 'Content-Type'
721
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
722
+
723
+ # form parameters
724
+ form_params = {}
725
+ form_params["amount"] = amount
726
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
727
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
728
+
729
+ # http body (model)
730
+ post_body = nil
731
+ auth_names = []
732
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
733
+ :header_params => header_params,
734
+ :query_params => query_params,
735
+ :form_params => form_params,
736
+ :body => post_body,
737
+ :auth_names => auth_names,
738
+ :return_type => 'Transfer')
739
+ if @api_client.config.debugging
740
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
741
+ end
742
+ return data, status_code, headers
743
+ end
744
+
745
+ # Returns the list of recipients
746
+ #
747
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
748
+ # @param id_connection
749
+ # @param id_account
750
+ # @param [Hash] opts the optional parameters
751
+ # @option opts [String] :expand
752
+ # @return [InlineResponse20023]
753
+ def users_id_user_connections_id_connection_accounts_id_account_recipients_get(id_user, id_connection, id_account, opts = {})
754
+ 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
+ return data
756
+ end
757
+
758
+ # Returns the list of recipients
759
+ #
760
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
761
+ # @param id_connection
762
+ # @param id_account
763
+ # @param [Hash] opts the optional parameters
764
+ # @option opts [String] :expand
765
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
766
+ def users_id_user_connections_id_connection_accounts_id_account_recipients_get_with_http_info(id_user, id_connection, id_account, opts = {})
767
+ if @api_client.config.debugging
768
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get ..."
769
+ end
770
+ # verify the required parameter 'id_user' is set
771
+ if @api_client.config.client_side_validation && id_user.nil?
772
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
773
+ end
774
+ # verify the required parameter 'id_connection' is set
775
+ if @api_client.config.client_side_validation && id_connection.nil?
776
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
777
+ end
778
+ # verify the required parameter 'id_account' is set
779
+ if @api_client.config.client_side_validation && id_account.nil?
780
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
781
+ end
782
+ # resource path
783
+ 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
+
785
+ # query parameters
786
+ query_params = {}
787
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
788
+
789
+ # header parameters
790
+ header_params = {}
791
+ # HTTP header 'Accept' (if needed)
792
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
793
+ # HTTP header 'Content-Type'
794
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
795
+
796
+ # form parameters
797
+ form_params = {}
798
+
799
+ # http body (model)
800
+ post_body = nil
801
+ auth_names = []
802
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
803
+ :header_params => header_params,
804
+ :query_params => query_params,
805
+ :form_params => form_params,
806
+ :body => post_body,
807
+ :auth_names => auth_names,
808
+ :return_type => 'InlineResponse20023')
809
+ if @api_client.config.debugging
810
+ @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
+ end
812
+ return data, status_code, headers
813
+ end
814
+
815
+ # Continue addition of a recipient.
816
+ #
817
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
818
+ # @param id_connection
819
+ # @param id_account
820
+ # @param id_recipient
821
+ # @param [Hash] opts the optional parameters
822
+ # @option opts [String] :expand
823
+ # @return [Recipient]
824
+ def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post(id_user, id_connection, id_account, id_recipient, opts = {})
825
+ 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
+ return data
827
+ end
828
+
829
+ # Continue addition of a recipient.
830
+ #
831
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
832
+ # @param id_connection
833
+ # @param id_account
834
+ # @param id_recipient
835
+ # @param [Hash] opts the optional parameters
836
+ # @option opts [String] :expand
837
+ # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
838
+ 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
+ if @api_client.config.debugging
840
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post ..."
841
+ end
842
+ # verify the required parameter 'id_user' is set
843
+ if @api_client.config.client_side_validation && id_user.nil?
844
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
845
+ end
846
+ # verify the required parameter 'id_connection' is set
847
+ if @api_client.config.client_side_validation && id_connection.nil?
848
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
849
+ end
850
+ # verify the required parameter 'id_account' is set
851
+ if @api_client.config.client_side_validation && id_account.nil?
852
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
853
+ end
854
+ # verify the required parameter 'id_recipient' is set
855
+ if @api_client.config.client_side_validation && id_recipient.nil?
856
+ 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
+ end
858
+ # resource path
859
+ 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
+
861
+ # query parameters
862
+ query_params = {}
863
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
864
+
865
+ # header parameters
866
+ header_params = {}
867
+ # HTTP header 'Accept' (if needed)
868
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
869
+ # HTTP header 'Content-Type'
870
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
871
+
872
+ # form parameters
873
+ form_params = {}
874
+
875
+ # http body (model)
876
+ post_body = nil
877
+ auth_names = []
878
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
879
+ :header_params => header_params,
880
+ :query_params => query_params,
881
+ :form_params => form_params,
882
+ :body => post_body,
883
+ :auth_names => auth_names,
884
+ :return_type => 'Recipient')
885
+ if @api_client.config.debugging
886
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
887
+ end
888
+ return data, status_code, headers
889
+ end
890
+
891
+ # Get transfers
892
+ #
893
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
894
+ # @param id_connection
895
+ # @param id_account
896
+ # @param id_recipient
897
+ # @param [Hash] opts the optional parameters
898
+ # @option opts [String] :period period to group logs
899
+ # @option opts [String] :expand
900
+ # @return [InlineResponse20024]
901
+ 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
+ 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
+ return data
904
+ end
905
+
906
+ # Get transfers
907
+ #
908
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
909
+ # @param id_connection
910
+ # @param id_account
911
+ # @param id_recipient
912
+ # @param [Hash] opts the optional parameters
913
+ # @option opts [String] :period period to group logs
914
+ # @option opts [String] :expand
915
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
916
+ 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
+ if @api_client.config.debugging
918
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get ..."
919
+ end
920
+ # verify the required parameter 'id_user' is set
921
+ if @api_client.config.client_side_validation && id_user.nil?
922
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
923
+ end
924
+ # verify the required parameter 'id_connection' is set
925
+ if @api_client.config.client_side_validation && id_connection.nil?
926
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
927
+ end
928
+ # verify the required parameter 'id_account' is set
929
+ if @api_client.config.client_side_validation && id_account.nil?
930
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
931
+ end
932
+ # verify the required parameter 'id_recipient' is set
933
+ if @api_client.config.client_side_validation && id_recipient.nil?
934
+ 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
+ end
936
+ # resource path
937
+ 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
+
939
+ # query parameters
940
+ query_params = {}
941
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
942
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
943
+
944
+ # header parameters
945
+ header_params = {}
946
+ # HTTP header 'Accept' (if needed)
947
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
948
+ # HTTP header 'Content-Type'
949
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
950
+
951
+ # form parameters
952
+ form_params = {}
953
+
954
+ # http body (model)
955
+ post_body = nil
956
+ auth_names = []
957
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
958
+ :header_params => header_params,
959
+ :query_params => query_params,
960
+ :form_params => form_params,
961
+ :body => post_body,
962
+ :auth_names => auth_names,
963
+ :return_type => 'InlineResponse20024')
964
+ if @api_client.config.debugging
965
+ @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
+ end
967
+ return data, status_code, headers
968
+ end
969
+
970
+ # Cancel a transfer.
971
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
972
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
973
+ # @param id_connection
974
+ # @param id_account
975
+ # @param id_recipient
976
+ # @param id_transfer
977
+ # @param [Hash] opts the optional parameters
978
+ # @option opts [String] :expand
979
+ # @return [Transfer]
980
+ 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
+ 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
+ return data
983
+ end
984
+
985
+ # Cancel a transfer.
986
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
987
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
988
+ # @param id_connection
989
+ # @param id_account
990
+ # @param id_recipient
991
+ # @param id_transfer
992
+ # @param [Hash] opts the optional parameters
993
+ # @option opts [String] :expand
994
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
995
+ 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
+ if @api_client.config.debugging
997
+ @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
+ end
999
+ # verify the required parameter 'id_user' is set
1000
+ if @api_client.config.client_side_validation && id_user.nil?
1001
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
1002
+ end
1003
+ # verify the required parameter 'id_connection' is set
1004
+ if @api_client.config.client_side_validation && id_connection.nil?
1005
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
1006
+ end
1007
+ # verify the required parameter 'id_account' is set
1008
+ if @api_client.config.client_side_validation && id_account.nil?
1009
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
1010
+ end
1011
+ # verify the required parameter 'id_recipient' is set
1012
+ if @api_client.config.client_side_validation && id_recipient.nil?
1013
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
1014
+ end
1015
+ # verify the required parameter 'id_transfer' is set
1016
+ if @api_client.config.client_side_validation && id_transfer.nil?
1017
+ 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
+ end
1019
+ # resource path
1020
+ 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
+
1022
+ # query parameters
1023
+ query_params = {}
1024
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1025
+
1026
+ # header parameters
1027
+ header_params = {}
1028
+ # HTTP header 'Accept' (if needed)
1029
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1030
+ # HTTP header 'Content-Type'
1031
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1032
+
1033
+ # form parameters
1034
+ form_params = {}
1035
+
1036
+ # http body (model)
1037
+ post_body = nil
1038
+ auth_names = []
1039
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1040
+ :header_params => header_params,
1041
+ :query_params => query_params,
1042
+ :form_params => form_params,
1043
+ :body => post_body,
1044
+ :auth_names => auth_names,
1045
+ :return_type => 'Transfer')
1046
+ if @api_client.config.debugging
1047
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1048
+ end
1049
+ return data, status_code, headers
1050
+ end
1051
+
1052
+ # Execute or edit a Transfer.
1053
+ #
1054
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1055
+ # @param id_connection
1056
+ # @param id_account
1057
+ # @param id_recipient
1058
+ # @param id_transfer
1059
+ # @param [Hash] opts the optional parameters
1060
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
1061
+ # @option opts [String] :expand
1062
+ # @return [Transfer]
1063
+ 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
+ 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
+ return data
1066
+ end
1067
+
1068
+ # Execute or edit a Transfer.
1069
+ #
1070
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1071
+ # @param id_connection
1072
+ # @param id_account
1073
+ # @param id_recipient
1074
+ # @param id_transfer
1075
+ # @param [Hash] opts the optional parameters
1076
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
1077
+ # @option opts [String] :expand
1078
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1079
+ 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
+ if @api_client.config.debugging
1081
+ @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
+ end
1083
+ # verify the required parameter 'id_user' is set
1084
+ if @api_client.config.client_side_validation && id_user.nil?
1085
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
1086
+ end
1087
+ # verify the required parameter 'id_connection' is set
1088
+ if @api_client.config.client_side_validation && id_connection.nil?
1089
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
1090
+ end
1091
+ # verify the required parameter 'id_account' is set
1092
+ if @api_client.config.client_side_validation && id_account.nil?
1093
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
1094
+ end
1095
+ # verify the required parameter 'id_recipient' is set
1096
+ if @api_client.config.client_side_validation && id_recipient.nil?
1097
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
1098
+ end
1099
+ # verify the required parameter 'id_transfer' is set
1100
+ if @api_client.config.client_side_validation && id_transfer.nil?
1101
+ 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
+ end
1103
+ # resource path
1104
+ 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
+
1106
+ # query parameters
1107
+ query_params = {}
1108
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1109
+
1110
+ # header parameters
1111
+ header_params = {}
1112
+ # HTTP header 'Accept' (if needed)
1113
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1114
+ # HTTP header 'Content-Type'
1115
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1116
+
1117
+ # form parameters
1118
+ form_params = {}
1119
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
1120
+
1121
+ # http body (model)
1122
+ post_body = nil
1123
+ auth_names = []
1124
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1125
+ :header_params => header_params,
1126
+ :query_params => query_params,
1127
+ :form_params => form_params,
1128
+ :body => post_body,
1129
+ :auth_names => auth_names,
1130
+ :return_type => 'Transfer')
1131
+ if @api_client.config.debugging
1132
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1133
+ end
1134
+ return data, status_code, headers
1135
+ end
1136
+
1137
+ # Create a transfer object.
1138
+ #
1139
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1140
+ # @param id_connection
1141
+ # @param id_account
1142
+ # @param id_recipient
1143
+ # @param amount amount of transfer
1144
+ # @param [Hash] opts the optional parameters
1145
+ # @option opts [String] :label reason of transfer
1146
+ # @option opts [Date] :exec_date excution date of transfer
1147
+ # @option opts [String] :expand
1148
+ # @return [Transfer]
1149
+ 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
+ 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
+ return data
1152
+ end
1153
+
1154
+ # Create a transfer object.
1155
+ #
1156
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1157
+ # @param id_connection
1158
+ # @param id_account
1159
+ # @param id_recipient
1160
+ # @param amount amount of transfer
1161
+ # @param [Hash] opts the optional parameters
1162
+ # @option opts [String] :label reason of transfer
1163
+ # @option opts [Date] :exec_date excution date of transfer
1164
+ # @option opts [String] :expand
1165
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1166
+ 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
+ if @api_client.config.debugging
1168
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post ..."
1169
+ end
1170
+ # verify the required parameter 'id_user' is set
1171
+ if @api_client.config.client_side_validation && id_user.nil?
1172
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
1173
+ end
1174
+ # verify the required parameter 'id_connection' is set
1175
+ if @api_client.config.client_side_validation && id_connection.nil?
1176
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
1177
+ end
1178
+ # verify the required parameter 'id_account' is set
1179
+ if @api_client.config.client_side_validation && id_account.nil?
1180
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
1181
+ end
1182
+ # verify the required parameter 'id_recipient' is set
1183
+ if @api_client.config.client_side_validation && id_recipient.nil?
1184
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
1185
+ end
1186
+ # verify the required parameter 'amount' is set
1187
+ if @api_client.config.client_side_validation && amount.nil?
1188
+ 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
+ end
1190
+ # resource path
1191
+ 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
+
1193
+ # query parameters
1194
+ query_params = {}
1195
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1196
+
1197
+ # header parameters
1198
+ header_params = {}
1199
+ # HTTP header 'Accept' (if needed)
1200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1201
+ # HTTP header 'Content-Type'
1202
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1203
+
1204
+ # form parameters
1205
+ form_params = {}
1206
+ form_params["amount"] = amount
1207
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
1208
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
1209
+
1210
+ # http body (model)
1211
+ post_body = nil
1212
+ auth_names = []
1213
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1214
+ :header_params => header_params,
1215
+ :query_params => query_params,
1216
+ :form_params => form_params,
1217
+ :body => post_body,
1218
+ :auth_names => auth_names,
1219
+ :return_type => 'Transfer')
1220
+ if @api_client.config.debugging
1221
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1222
+ end
1223
+ return data, status_code, headers
1224
+ end
1225
+
1226
+ # Get transfers
1227
+ #
1228
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1229
+ # @param id_connection
1230
+ # @param id_account
1231
+ # @param [Hash] opts the optional parameters
1232
+ # @option opts [String] :period period to group logs
1233
+ # @option opts [String] :expand
1234
+ # @return [InlineResponse20024]
1235
+ def users_id_user_connections_id_connection_accounts_id_account_transfers_get(id_user, id_connection, id_account, opts = {})
1236
+ 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
+ return data
1238
+ end
1239
+
1240
+ # Get transfers
1241
+ #
1242
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1243
+ # @param id_connection
1244
+ # @param id_account
1245
+ # @param [Hash] opts the optional parameters
1246
+ # @option opts [String] :period period to group logs
1247
+ # @option opts [String] :expand
1248
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
1249
+ def users_id_user_connections_id_connection_accounts_id_account_transfers_get_with_http_info(id_user, id_connection, id_account, opts = {})
1250
+ if @api_client.config.debugging
1251
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get ..."
1252
+ end
1253
+ # verify the required parameter 'id_user' is set
1254
+ if @api_client.config.client_side_validation && id_user.nil?
1255
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
1256
+ end
1257
+ # verify the required parameter 'id_connection' is set
1258
+ if @api_client.config.client_side_validation && id_connection.nil?
1259
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
1260
+ end
1261
+ # verify the required parameter 'id_account' is set
1262
+ if @api_client.config.client_side_validation && id_account.nil?
1263
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
1264
+ end
1265
+ # resource path
1266
+ 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
+
1268
+ # query parameters
1269
+ query_params = {}
1270
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1271
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1272
+
1273
+ # header parameters
1274
+ header_params = {}
1275
+ # HTTP header 'Accept' (if needed)
1276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1277
+ # HTTP header 'Content-Type'
1278
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1279
+
1280
+ # form parameters
1281
+ form_params = {}
1282
+
1283
+ # http body (model)
1284
+ post_body = nil
1285
+ auth_names = []
1286
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1287
+ :header_params => header_params,
1288
+ :query_params => query_params,
1289
+ :form_params => form_params,
1290
+ :body => post_body,
1291
+ :auth_names => auth_names,
1292
+ :return_type => 'InlineResponse20024')
1293
+ if @api_client.config.debugging
1294
+ @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
+ end
1296
+ return data, status_code, headers
1297
+ end
1298
+
1299
+ # Cancel a transfer.
1300
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
1301
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1302
+ # @param id_connection
1303
+ # @param id_account
1304
+ # @param id_transfer
1305
+ # @param [Hash] opts the optional parameters
1306
+ # @option opts [String] :expand
1307
+ # @return [Transfer]
1308
+ def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete(id_user, id_connection, id_account, id_transfer, opts = {})
1309
+ 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
+ return data
1311
+ end
1312
+
1313
+ # Cancel a transfer.
1314
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
1315
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1316
+ # @param id_connection
1317
+ # @param id_account
1318
+ # @param id_transfer
1319
+ # @param [Hash] opts the optional parameters
1320
+ # @option opts [String] :expand
1321
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1322
+ 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
+ if @api_client.config.debugging
1324
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete ..."
1325
+ end
1326
+ # verify the required parameter 'id_user' is set
1327
+ if @api_client.config.client_side_validation && id_user.nil?
1328
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
1329
+ end
1330
+ # verify the required parameter 'id_connection' is set
1331
+ if @api_client.config.client_side_validation && id_connection.nil?
1332
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
1333
+ end
1334
+ # verify the required parameter 'id_account' is set
1335
+ if @api_client.config.client_side_validation && id_account.nil?
1336
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
1337
+ end
1338
+ # verify the required parameter 'id_transfer' is set
1339
+ if @api_client.config.client_side_validation && id_transfer.nil?
1340
+ 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
+ end
1342
+ # resource path
1343
+ 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
+
1345
+ # query parameters
1346
+ query_params = {}
1347
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1348
+
1349
+ # header parameters
1350
+ header_params = {}
1351
+ # HTTP header 'Accept' (if needed)
1352
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1353
+ # HTTP header 'Content-Type'
1354
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1355
+
1356
+ # form parameters
1357
+ form_params = {}
1358
+
1359
+ # http body (model)
1360
+ post_body = nil
1361
+ auth_names = []
1362
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1363
+ :header_params => header_params,
1364
+ :query_params => query_params,
1365
+ :form_params => form_params,
1366
+ :body => post_body,
1367
+ :auth_names => auth_names,
1368
+ :return_type => 'Transfer')
1369
+ if @api_client.config.debugging
1370
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1371
+ end
1372
+ return data, status_code, headers
1373
+ end
1374
+
1375
+ # Execute or edit a Transfer.
1376
+ #
1377
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1378
+ # @param id_connection
1379
+ # @param id_account
1380
+ # @param id_transfer
1381
+ # @param [Hash] opts the optional parameters
1382
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
1383
+ # @option opts [String] :expand
1384
+ # @return [Transfer]
1385
+ def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post(id_user, id_connection, id_account, id_transfer, opts = {})
1386
+ 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
+ return data
1388
+ end
1389
+
1390
+ # Execute or edit a Transfer.
1391
+ #
1392
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1393
+ # @param id_connection
1394
+ # @param id_account
1395
+ # @param id_transfer
1396
+ # @param [Hash] opts the optional parameters
1397
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
1398
+ # @option opts [String] :expand
1399
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1400
+ 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
+ if @api_client.config.debugging
1402
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post ..."
1403
+ end
1404
+ # verify the required parameter 'id_user' is set
1405
+ if @api_client.config.client_side_validation && id_user.nil?
1406
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
1407
+ end
1408
+ # verify the required parameter 'id_connection' is set
1409
+ if @api_client.config.client_side_validation && id_connection.nil?
1410
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
1411
+ end
1412
+ # verify the required parameter 'id_account' is set
1413
+ if @api_client.config.client_side_validation && id_account.nil?
1414
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
1415
+ end
1416
+ # verify the required parameter 'id_transfer' is set
1417
+ if @api_client.config.client_side_validation && id_transfer.nil?
1418
+ 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
+ end
1420
+ # resource path
1421
+ 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
+
1423
+ # query parameters
1424
+ query_params = {}
1425
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1426
+
1427
+ # header parameters
1428
+ header_params = {}
1429
+ # HTTP header 'Accept' (if needed)
1430
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1431
+ # HTTP header 'Content-Type'
1432
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1433
+
1434
+ # form parameters
1435
+ form_params = {}
1436
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
1437
+
1438
+ # http body (model)
1439
+ post_body = nil
1440
+ auth_names = []
1441
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1442
+ :header_params => header_params,
1443
+ :query_params => query_params,
1444
+ :form_params => form_params,
1445
+ :body => post_body,
1446
+ :auth_names => auth_names,
1447
+ :return_type => 'Transfer')
1448
+ if @api_client.config.debugging
1449
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1450
+ end
1451
+ return data, status_code, headers
1452
+ end
1453
+
1454
+ # Create a transfer object.
1455
+ #
1456
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1457
+ # @param id_connection
1458
+ # @param id_account
1459
+ # @param amount amount of transfer
1460
+ # @param [Hash] opts the optional parameters
1461
+ # @option opts [String] :label reason of transfer
1462
+ # @option opts [Date] :exec_date excution date of transfer
1463
+ # @option opts [String] :expand
1464
+ # @return [Transfer]
1465
+ def users_id_user_connections_id_connection_accounts_id_account_transfers_post(id_user, id_connection, id_account, amount, opts = {})
1466
+ 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
+ return data
1468
+ end
1469
+
1470
+ # Create a transfer object.
1471
+ #
1472
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1473
+ # @param id_connection
1474
+ # @param id_account
1475
+ # @param amount amount of transfer
1476
+ # @param [Hash] opts the optional parameters
1477
+ # @option opts [String] :label reason of transfer
1478
+ # @option opts [Date] :exec_date excution date of transfer
1479
+ # @option opts [String] :expand
1480
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1481
+ def users_id_user_connections_id_connection_accounts_id_account_transfers_post_with_http_info(id_user, id_connection, id_account, amount, opts = {})
1482
+ if @api_client.config.debugging
1483
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post ..."
1484
+ end
1485
+ # verify the required parameter 'id_user' is set
1486
+ if @api_client.config.client_side_validation && id_user.nil?
1487
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
1488
+ end
1489
+ # verify the required parameter 'id_connection' is set
1490
+ if @api_client.config.client_side_validation && id_connection.nil?
1491
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
1492
+ end
1493
+ # verify the required parameter 'id_account' is set
1494
+ if @api_client.config.client_side_validation && id_account.nil?
1495
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
1496
+ end
1497
+ # verify the required parameter 'amount' is set
1498
+ if @api_client.config.client_side_validation && amount.nil?
1499
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
1500
+ end
1501
+ # resource path
1502
+ 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
+
1504
+ # query parameters
1505
+ query_params = {}
1506
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1507
+
1508
+ # header parameters
1509
+ header_params = {}
1510
+ # HTTP header 'Accept' (if needed)
1511
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1512
+ # HTTP header 'Content-Type'
1513
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1514
+
1515
+ # form parameters
1516
+ form_params = {}
1517
+ form_params["amount"] = amount
1518
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
1519
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
1520
+
1521
+ # http body (model)
1522
+ post_body = nil
1523
+ auth_names = []
1524
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1525
+ :header_params => header_params,
1526
+ :query_params => query_params,
1527
+ :form_params => form_params,
1528
+ :body => post_body,
1529
+ :auth_names => auth_names,
1530
+ :return_type => 'Transfer')
1531
+ if @api_client.config.debugging
1532
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1533
+ end
1534
+ return data, status_code, headers
1535
+ end
1536
+
1537
+ # Returns the list of recipients
1538
+ #
1539
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1540
+ # @param id_connection
1541
+ # @param [Hash] opts the optional parameters
1542
+ # @option opts [String] :expand
1543
+ # @return [InlineResponse20023]
1544
+ def users_id_user_connections_id_connection_recipients_get(id_user, id_connection, opts = {})
1545
+ data, _status_code, _headers = users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts)
1546
+ return data
1547
+ end
1548
+
1549
+ # Returns the list of recipients
1550
+ #
1551
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1552
+ # @param id_connection
1553
+ # @param [Hash] opts the optional parameters
1554
+ # @option opts [String] :expand
1555
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
1556
+ def users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts = {})
1557
+ if @api_client.config.debugging
1558
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_get ..."
1559
+ end
1560
+ # verify the required parameter 'id_user' is set
1561
+ if @api_client.config.client_side_validation && id_user.nil?
1562
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_get"
1563
+ end
1564
+ # verify the required parameter 'id_connection' is set
1565
+ if @api_client.config.client_side_validation && id_connection.nil?
1566
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_get"
1567
+ end
1568
+ # resource path
1569
+ 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
+
1571
+ # query parameters
1572
+ query_params = {}
1573
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1574
+
1575
+ # header parameters
1576
+ header_params = {}
1577
+ # HTTP header 'Accept' (if needed)
1578
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1579
+ # HTTP header 'Content-Type'
1580
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1581
+
1582
+ # form parameters
1583
+ form_params = {}
1584
+
1585
+ # http body (model)
1586
+ post_body = nil
1587
+ auth_names = []
1588
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1589
+ :header_params => header_params,
1590
+ :query_params => query_params,
1591
+ :form_params => form_params,
1592
+ :body => post_body,
1593
+ :auth_names => auth_names,
1594
+ :return_type => 'InlineResponse20023')
1595
+ if @api_client.config.debugging
1596
+ @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
+ end
1598
+ return data, status_code, headers
1599
+ end
1600
+
1601
+ # Continue addition of a recipient.
1602
+ #
1603
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1604
+ # @param id_connection
1605
+ # @param id_recipient
1606
+ # @param [Hash] opts the optional parameters
1607
+ # @option opts [String] :expand
1608
+ # @return [Recipient]
1609
+ def users_id_user_connections_id_connection_recipients_id_recipient_post(id_user, id_connection, id_recipient, opts = {})
1610
+ 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
+ return data
1612
+ end
1613
+
1614
+ # Continue addition of a recipient.
1615
+ #
1616
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1617
+ # @param id_connection
1618
+ # @param id_recipient
1619
+ # @param [Hash] opts the optional parameters
1620
+ # @option opts [String] :expand
1621
+ # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
1622
+ def users_id_user_connections_id_connection_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_recipient, opts = {})
1623
+ if @api_client.config.debugging
1624
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post ..."
1625
+ end
1626
+ # verify the required parameter 'id_user' is set
1627
+ if @api_client.config.client_side_validation && id_user.nil?
1628
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
1629
+ end
1630
+ # verify the required parameter 'id_connection' is set
1631
+ if @api_client.config.client_side_validation && id_connection.nil?
1632
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
1633
+ end
1634
+ # verify the required parameter 'id_recipient' is set
1635
+ if @api_client.config.client_side_validation && id_recipient.nil?
1636
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
1637
+ end
1638
+ # resource path
1639
+ 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
+
1641
+ # query parameters
1642
+ query_params = {}
1643
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1644
+
1645
+ # header parameters
1646
+ header_params = {}
1647
+ # HTTP header 'Accept' (if needed)
1648
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1649
+ # HTTP header 'Content-Type'
1650
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1651
+
1652
+ # form parameters
1653
+ form_params = {}
1654
+
1655
+ # http body (model)
1656
+ post_body = nil
1657
+ auth_names = []
1658
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1659
+ :header_params => header_params,
1660
+ :query_params => query_params,
1661
+ :form_params => form_params,
1662
+ :body => post_body,
1663
+ :auth_names => auth_names,
1664
+ :return_type => 'Recipient')
1665
+ if @api_client.config.debugging
1666
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1667
+ end
1668
+ return data, status_code, headers
1669
+ end
1670
+
1671
+ # Get transfers
1672
+ #
1673
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1674
+ # @param id_connection
1675
+ # @param id_recipient
1676
+ # @param [Hash] opts the optional parameters
1677
+ # @option opts [String] :period period to group logs
1678
+ # @option opts [String] :expand
1679
+ # @return [InlineResponse20024]
1680
+ def users_id_user_connections_id_connection_recipients_id_recipient_transfers_get(id_user, id_connection, id_recipient, opts = {})
1681
+ 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
+ return data
1683
+ end
1684
+
1685
+ # Get transfers
1686
+ #
1687
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1688
+ # @param id_connection
1689
+ # @param id_recipient
1690
+ # @param [Hash] opts the optional parameters
1691
+ # @option opts [String] :period period to group logs
1692
+ # @option opts [String] :expand
1693
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
1694
+ def users_id_user_connections_id_connection_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_recipient, opts = {})
1695
+ if @api_client.config.debugging
1696
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get ..."
1697
+ end
1698
+ # verify the required parameter 'id_user' is set
1699
+ if @api_client.config.client_side_validation && id_user.nil?
1700
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
1701
+ end
1702
+ # verify the required parameter 'id_connection' is set
1703
+ if @api_client.config.client_side_validation && id_connection.nil?
1704
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
1705
+ end
1706
+ # verify the required parameter 'id_recipient' is set
1707
+ if @api_client.config.client_side_validation && id_recipient.nil?
1708
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
1709
+ end
1710
+ # resource path
1711
+ 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
+
1713
+ # query parameters
1714
+ query_params = {}
1715
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
1716
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1717
+
1718
+ # header parameters
1719
+ header_params = {}
1720
+ # HTTP header 'Accept' (if needed)
1721
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1722
+ # HTTP header 'Content-Type'
1723
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1724
+
1725
+ # form parameters
1726
+ form_params = {}
1727
+
1728
+ # http body (model)
1729
+ post_body = nil
1730
+ auth_names = []
1731
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1732
+ :header_params => header_params,
1733
+ :query_params => query_params,
1734
+ :form_params => form_params,
1735
+ :body => post_body,
1736
+ :auth_names => auth_names,
1737
+ :return_type => 'InlineResponse20024')
1738
+ if @api_client.config.debugging
1739
+ @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
+ end
1741
+ return data, status_code, headers
1742
+ end
1743
+
1744
+ # Cancel a transfer.
1745
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
1746
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1747
+ # @param id_connection
1748
+ # @param id_recipient
1749
+ # @param id_transfer
1750
+ # @param [Hash] opts the optional parameters
1751
+ # @option opts [String] :expand
1752
+ # @return [Transfer]
1753
+ def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_recipient, id_transfer, opts = {})
1754
+ 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
+ return data
1756
+ end
1757
+
1758
+ # Cancel a transfer.
1759
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
1760
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1761
+ # @param id_connection
1762
+ # @param id_recipient
1763
+ # @param id_transfer
1764
+ # @param [Hash] opts the optional parameters
1765
+ # @option opts [String] :expand
1766
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1767
+ 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
+ if @api_client.config.debugging
1769
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete ..."
1770
+ end
1771
+ # verify the required parameter 'id_user' is set
1772
+ if @api_client.config.client_side_validation && id_user.nil?
1773
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
1774
+ end
1775
+ # verify the required parameter 'id_connection' is set
1776
+ if @api_client.config.client_side_validation && id_connection.nil?
1777
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
1778
+ end
1779
+ # verify the required parameter 'id_recipient' is set
1780
+ if @api_client.config.client_side_validation && id_recipient.nil?
1781
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
1782
+ end
1783
+ # verify the required parameter 'id_transfer' is set
1784
+ if @api_client.config.client_side_validation && id_transfer.nil?
1785
+ 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
+ end
1787
+ # resource path
1788
+ 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
+
1790
+ # query parameters
1791
+ query_params = {}
1792
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1793
+
1794
+ # header parameters
1795
+ header_params = {}
1796
+ # HTTP header 'Accept' (if needed)
1797
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1798
+ # HTTP header 'Content-Type'
1799
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1800
+
1801
+ # form parameters
1802
+ form_params = {}
1803
+
1804
+ # http body (model)
1805
+ post_body = nil
1806
+ auth_names = []
1807
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1808
+ :header_params => header_params,
1809
+ :query_params => query_params,
1810
+ :form_params => form_params,
1811
+ :body => post_body,
1812
+ :auth_names => auth_names,
1813
+ :return_type => 'Transfer')
1814
+ if @api_client.config.debugging
1815
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1816
+ end
1817
+ return data, status_code, headers
1818
+ end
1819
+
1820
+ # Execute or edit a Transfer.
1821
+ #
1822
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1823
+ # @param id_connection
1824
+ # @param id_recipient
1825
+ # @param id_transfer
1826
+ # @param [Hash] opts the optional parameters
1827
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
1828
+ # @option opts [String] :expand
1829
+ # @return [Transfer]
1830
+ def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_recipient, id_transfer, opts = {})
1831
+ 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
+ return data
1833
+ end
1834
+
1835
+ # Execute or edit a Transfer.
1836
+ #
1837
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1838
+ # @param id_connection
1839
+ # @param id_recipient
1840
+ # @param id_transfer
1841
+ # @param [Hash] opts the optional parameters
1842
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
1843
+ # @option opts [String] :expand
1844
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1845
+ 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
+ if @api_client.config.debugging
1847
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post ..."
1848
+ end
1849
+ # verify the required parameter 'id_user' is set
1850
+ if @api_client.config.client_side_validation && id_user.nil?
1851
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
1852
+ end
1853
+ # verify the required parameter 'id_connection' is set
1854
+ if @api_client.config.client_side_validation && id_connection.nil?
1855
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
1856
+ end
1857
+ # verify the required parameter 'id_recipient' is set
1858
+ if @api_client.config.client_side_validation && id_recipient.nil?
1859
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
1860
+ end
1861
+ # verify the required parameter 'id_transfer' is set
1862
+ if @api_client.config.client_side_validation && id_transfer.nil?
1863
+ 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
+ end
1865
+ # resource path
1866
+ 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
+
1868
+ # query parameters
1869
+ query_params = {}
1870
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1871
+
1872
+ # header parameters
1873
+ header_params = {}
1874
+ # HTTP header 'Accept' (if needed)
1875
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1876
+ # HTTP header 'Content-Type'
1877
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1878
+
1879
+ # form parameters
1880
+ form_params = {}
1881
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
1882
+
1883
+ # http body (model)
1884
+ post_body = nil
1885
+ auth_names = []
1886
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1887
+ :header_params => header_params,
1888
+ :query_params => query_params,
1889
+ :form_params => form_params,
1890
+ :body => post_body,
1891
+ :auth_names => auth_names,
1892
+ :return_type => 'Transfer')
1893
+ if @api_client.config.debugging
1894
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1895
+ end
1896
+ return data, status_code, headers
1897
+ end
1898
+
1899
+ # Create a transfer object.
1900
+ #
1901
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1902
+ # @param id_connection
1903
+ # @param id_recipient
1904
+ # @param amount amount of transfer
1905
+ # @param [Hash] opts the optional parameters
1906
+ # @option opts [String] :label reason of transfer
1907
+ # @option opts [Date] :exec_date excution date of transfer
1908
+ # @option opts [String] :expand
1909
+ # @return [Transfer]
1910
+ def users_id_user_connections_id_connection_recipients_id_recipient_transfers_post(id_user, id_connection, id_recipient, amount, opts = {})
1911
+ 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
+ return data
1913
+ end
1914
+
1915
+ # Create a transfer object.
1916
+ #
1917
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1918
+ # @param id_connection
1919
+ # @param id_recipient
1920
+ # @param amount amount of transfer
1921
+ # @param [Hash] opts the optional parameters
1922
+ # @option opts [String] :label reason of transfer
1923
+ # @option opts [Date] :exec_date excution date of transfer
1924
+ # @option opts [String] :expand
1925
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
1926
+ def users_id_user_connections_id_connection_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_recipient, amount, opts = {})
1927
+ if @api_client.config.debugging
1928
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post ..."
1929
+ end
1930
+ # verify the required parameter 'id_user' is set
1931
+ if @api_client.config.client_side_validation && id_user.nil?
1932
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
1933
+ end
1934
+ # verify the required parameter 'id_connection' is set
1935
+ if @api_client.config.client_side_validation && id_connection.nil?
1936
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
1937
+ end
1938
+ # verify the required parameter 'id_recipient' is set
1939
+ if @api_client.config.client_side_validation && id_recipient.nil?
1940
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
1941
+ end
1942
+ # verify the required parameter 'amount' is set
1943
+ if @api_client.config.client_side_validation && amount.nil?
1944
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
1945
+ end
1946
+ # resource path
1947
+ 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
+
1949
+ # query parameters
1950
+ query_params = {}
1951
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1952
+
1953
+ # header parameters
1954
+ header_params = {}
1955
+ # HTTP header 'Accept' (if needed)
1956
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1957
+ # HTTP header 'Content-Type'
1958
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
1959
+
1960
+ # form parameters
1961
+ form_params = {}
1962
+ form_params["amount"] = amount
1963
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
1964
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
1965
+
1966
+ # http body (model)
1967
+ post_body = nil
1968
+ auth_names = []
1969
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1970
+ :header_params => header_params,
1971
+ :query_params => query_params,
1972
+ :form_params => form_params,
1973
+ :body => post_body,
1974
+ :auth_names => auth_names,
1975
+ :return_type => 'Transfer')
1976
+ if @api_client.config.debugging
1977
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1978
+ end
1979
+ return data, status_code, headers
1980
+ end
1981
+
1982
+ # Get transfers
1983
+ #
1984
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1985
+ # @param id_connection
1986
+ # @param [Hash] opts the optional parameters
1987
+ # @option opts [String] :period period to group logs
1988
+ # @option opts [String] :expand
1989
+ # @return [InlineResponse20024]
1990
+ def users_id_user_connections_id_connection_transfers_get(id_user, id_connection, opts = {})
1991
+ data, _status_code, _headers = users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts)
1992
+ return data
1993
+ end
1994
+
1995
+ # Get transfers
1996
+ #
1997
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1998
+ # @param id_connection
1999
+ # @param [Hash] opts the optional parameters
2000
+ # @option opts [String] :period period to group logs
2001
+ # @option opts [String] :expand
2002
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
2003
+ def users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts = {})
2004
+ if @api_client.config.debugging
2005
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_get ..."
2006
+ end
2007
+ # verify the required parameter 'id_user' is set
2008
+ if @api_client.config.client_side_validation && id_user.nil?
2009
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_get"
2010
+ end
2011
+ # verify the required parameter 'id_connection' is set
2012
+ if @api_client.config.client_side_validation && id_connection.nil?
2013
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_get"
2014
+ end
2015
+ # resource path
2016
+ 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
+
2018
+ # query parameters
2019
+ query_params = {}
2020
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2021
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2022
+
2023
+ # header parameters
2024
+ header_params = {}
2025
+ # HTTP header 'Accept' (if needed)
2026
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2027
+ # HTTP header 'Content-Type'
2028
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2029
+
2030
+ # form parameters
2031
+ form_params = {}
2032
+
2033
+ # http body (model)
2034
+ post_body = nil
2035
+ auth_names = []
2036
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2037
+ :header_params => header_params,
2038
+ :query_params => query_params,
2039
+ :form_params => form_params,
2040
+ :body => post_body,
2041
+ :auth_names => auth_names,
2042
+ :return_type => 'InlineResponse20024')
2043
+ if @api_client.config.debugging
2044
+ @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
+ end
2046
+ return data, status_code, headers
2047
+ end
2048
+
2049
+ # Cancel a transfer.
2050
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
2051
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2052
+ # @param id_connection
2053
+ # @param id_transfer
2054
+ # @param [Hash] opts the optional parameters
2055
+ # @option opts [String] :expand
2056
+ # @return [Transfer]
2057
+ def users_id_user_connections_id_connection_transfers_id_transfer_delete(id_user, id_connection, id_transfer, opts = {})
2058
+ 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
+ return data
2060
+ end
2061
+
2062
+ # Cancel a transfer.
2063
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
2064
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2065
+ # @param id_connection
2066
+ # @param id_transfer
2067
+ # @param [Hash] opts the optional parameters
2068
+ # @option opts [String] :expand
2069
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2070
+ def users_id_user_connections_id_connection_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_transfer, opts = {})
2071
+ if @api_client.config.debugging
2072
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete ..."
2073
+ end
2074
+ # verify the required parameter 'id_user' is set
2075
+ if @api_client.config.client_side_validation && id_user.nil?
2076
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
2077
+ end
2078
+ # verify the required parameter 'id_connection' is set
2079
+ if @api_client.config.client_side_validation && id_connection.nil?
2080
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
2081
+ end
2082
+ # verify the required parameter 'id_transfer' is set
2083
+ if @api_client.config.client_side_validation && id_transfer.nil?
2084
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
2085
+ end
2086
+ # resource path
2087
+ 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
+
2089
+ # query parameters
2090
+ query_params = {}
2091
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2092
+
2093
+ # header parameters
2094
+ header_params = {}
2095
+ # HTTP header 'Accept' (if needed)
2096
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2097
+ # HTTP header 'Content-Type'
2098
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2099
+
2100
+ # form parameters
2101
+ form_params = {}
2102
+
2103
+ # http body (model)
2104
+ post_body = nil
2105
+ auth_names = []
2106
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2107
+ :header_params => header_params,
2108
+ :query_params => query_params,
2109
+ :form_params => form_params,
2110
+ :body => post_body,
2111
+ :auth_names => auth_names,
2112
+ :return_type => 'Transfer')
2113
+ if @api_client.config.debugging
2114
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2115
+ end
2116
+ return data, status_code, headers
2117
+ end
2118
+
2119
+ # Execute or edit a Transfer.
2120
+ #
2121
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2122
+ # @param id_connection
2123
+ # @param id_transfer
2124
+ # @param [Hash] opts the optional parameters
2125
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
2126
+ # @option opts [String] :expand
2127
+ # @return [Transfer]
2128
+ def users_id_user_connections_id_connection_transfers_id_transfer_post(id_user, id_connection, id_transfer, opts = {})
2129
+ 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
+ return data
2131
+ end
2132
+
2133
+ # Execute or edit a Transfer.
2134
+ #
2135
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2136
+ # @param id_connection
2137
+ # @param id_transfer
2138
+ # @param [Hash] opts the optional parameters
2139
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
2140
+ # @option opts [String] :expand
2141
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2142
+ def users_id_user_connections_id_connection_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_transfer, opts = {})
2143
+ if @api_client.config.debugging
2144
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post ..."
2145
+ end
2146
+ # verify the required parameter 'id_user' is set
2147
+ if @api_client.config.client_side_validation && id_user.nil?
2148
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
2149
+ end
2150
+ # verify the required parameter 'id_connection' is set
2151
+ if @api_client.config.client_side_validation && id_connection.nil?
2152
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
2153
+ end
2154
+ # verify the required parameter 'id_transfer' is set
2155
+ if @api_client.config.client_side_validation && id_transfer.nil?
2156
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
2157
+ end
2158
+ # resource path
2159
+ 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
+
2161
+ # query parameters
2162
+ query_params = {}
2163
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2164
+
2165
+ # header parameters
2166
+ header_params = {}
2167
+ # HTTP header 'Accept' (if needed)
2168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2169
+ # HTTP header 'Content-Type'
2170
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2171
+
2172
+ # form parameters
2173
+ form_params = {}
2174
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
2175
+
2176
+ # http body (model)
2177
+ post_body = nil
2178
+ auth_names = []
2179
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2180
+ :header_params => header_params,
2181
+ :query_params => query_params,
2182
+ :form_params => form_params,
2183
+ :body => post_body,
2184
+ :auth_names => auth_names,
2185
+ :return_type => 'Transfer')
2186
+ if @api_client.config.debugging
2187
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2188
+ end
2189
+ return data, status_code, headers
2190
+ end
2191
+
2192
+ # Create a transfer object.
2193
+ #
2194
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2195
+ # @param id_connection
2196
+ # @param amount amount of transfer
2197
+ # @param [Hash] opts the optional parameters
2198
+ # @option opts [String] :label reason of transfer
2199
+ # @option opts [Date] :exec_date excution date of transfer
2200
+ # @option opts [String] :expand
2201
+ # @return [Transfer]
2202
+ def users_id_user_connections_id_connection_transfers_post(id_user, id_connection, amount, opts = {})
2203
+ data, _status_code, _headers = users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts)
2204
+ return data
2205
+ end
2206
+
2207
+ # Create a transfer object.
2208
+ #
2209
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2210
+ # @param id_connection
2211
+ # @param amount amount of transfer
2212
+ # @param [Hash] opts the optional parameters
2213
+ # @option opts [String] :label reason of transfer
2214
+ # @option opts [Date] :exec_date excution date of transfer
2215
+ # @option opts [String] :expand
2216
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2217
+ def users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts = {})
2218
+ if @api_client.config.debugging
2219
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_post ..."
2220
+ end
2221
+ # verify the required parameter 'id_user' is set
2222
+ if @api_client.config.client_side_validation && id_user.nil?
2223
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
2224
+ end
2225
+ # verify the required parameter 'id_connection' is set
2226
+ if @api_client.config.client_side_validation && id_connection.nil?
2227
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
2228
+ end
2229
+ # verify the required parameter 'amount' is set
2230
+ if @api_client.config.client_side_validation && amount.nil?
2231
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
2232
+ end
2233
+ # resource path
2234
+ 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
+
2236
+ # query parameters
2237
+ query_params = {}
2238
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2239
+
2240
+ # header parameters
2241
+ header_params = {}
2242
+ # HTTP header 'Accept' (if needed)
2243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2244
+ # HTTP header 'Content-Type'
2245
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2246
+
2247
+ # form parameters
2248
+ form_params = {}
2249
+ form_params["amount"] = amount
2250
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
2251
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
2252
+
2253
+ # http body (model)
2254
+ post_body = nil
2255
+ auth_names = []
2256
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2257
+ :header_params => header_params,
2258
+ :query_params => query_params,
2259
+ :form_params => form_params,
2260
+ :body => post_body,
2261
+ :auth_names => auth_names,
2262
+ :return_type => 'Transfer')
2263
+ if @api_client.config.debugging
2264
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2265
+ end
2266
+ return data, status_code, headers
2267
+ end
2268
+
2269
+ # Returns the list of recipients
2270
+ #
2271
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2272
+ # @param [Hash] opts the optional parameters
2273
+ # @option opts [String] :expand
2274
+ # @return [InlineResponse20023]
2275
+ def users_id_user_recipients_get(id_user, opts = {})
2276
+ data, _status_code, _headers = users_id_user_recipients_get_with_http_info(id_user, opts)
2277
+ return data
2278
+ end
2279
+
2280
+ # Returns the list of recipients
2281
+ #
2282
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2283
+ # @param [Hash] opts the optional parameters
2284
+ # @option opts [String] :expand
2285
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
2286
+ def users_id_user_recipients_get_with_http_info(id_user, opts = {})
2287
+ if @api_client.config.debugging
2288
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_recipients_get ..."
2289
+ end
2290
+ # verify the required parameter 'id_user' is set
2291
+ if @api_client.config.client_side_validation && id_user.nil?
2292
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_get"
2293
+ end
2294
+ # resource path
2295
+ local_var_path = "/users/{id_user}/recipients".sub('{' + 'id_user' + '}', id_user.to_s)
2296
+
2297
+ # query parameters
2298
+ query_params = {}
2299
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2300
+
2301
+ # header parameters
2302
+ header_params = {}
2303
+ # HTTP header 'Accept' (if needed)
2304
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2305
+ # HTTP header 'Content-Type'
2306
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2307
+
2308
+ # form parameters
2309
+ form_params = {}
2310
+
2311
+ # http body (model)
2312
+ post_body = nil
2313
+ auth_names = []
2314
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2315
+ :header_params => header_params,
2316
+ :query_params => query_params,
2317
+ :form_params => form_params,
2318
+ :body => post_body,
2319
+ :auth_names => auth_names,
2320
+ :return_type => 'InlineResponse20023')
2321
+ if @api_client.config.debugging
2322
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2323
+ end
2324
+ return data, status_code, headers
2325
+ end
2326
+
2327
+ # Continue addition of a recipient.
2328
+ #
2329
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2330
+ # @param id_recipient
2331
+ # @param [Hash] opts the optional parameters
2332
+ # @option opts [String] :expand
2333
+ # @return [Recipient]
2334
+ def users_id_user_recipients_id_recipient_post(id_user, id_recipient, opts = {})
2335
+ data, _status_code, _headers = users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts)
2336
+ return data
2337
+ end
2338
+
2339
+ # Continue addition of a recipient.
2340
+ #
2341
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2342
+ # @param id_recipient
2343
+ # @param [Hash] opts the optional parameters
2344
+ # @option opts [String] :expand
2345
+ # @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers
2346
+ def users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts = {})
2347
+ if @api_client.config.debugging
2348
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_recipients_id_recipient_post ..."
2349
+ end
2350
+ # verify the required parameter 'id_user' is set
2351
+ if @api_client.config.client_side_validation && id_user.nil?
2352
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_post"
2353
+ end
2354
+ # verify the required parameter 'id_recipient' is set
2355
+ if @api_client.config.client_side_validation && id_recipient.nil?
2356
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_post"
2357
+ end
2358
+ # resource path
2359
+ local_var_path = "/users/{id_user}/recipients/{id_recipient}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)
2360
+
2361
+ # query parameters
2362
+ query_params = {}
2363
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2364
+
2365
+ # header parameters
2366
+ header_params = {}
2367
+ # HTTP header 'Accept' (if needed)
2368
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2369
+ # HTTP header 'Content-Type'
2370
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2371
+
2372
+ # form parameters
2373
+ form_params = {}
2374
+
2375
+ # http body (model)
2376
+ post_body = nil
2377
+ auth_names = []
2378
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2379
+ :header_params => header_params,
2380
+ :query_params => query_params,
2381
+ :form_params => form_params,
2382
+ :body => post_body,
2383
+ :auth_names => auth_names,
2384
+ :return_type => 'Recipient')
2385
+ if @api_client.config.debugging
2386
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2387
+ end
2388
+ return data, status_code, headers
2389
+ end
2390
+
2391
+ # Get transfers
2392
+ #
2393
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2394
+ # @param id_recipient
2395
+ # @param [Hash] opts the optional parameters
2396
+ # @option opts [String] :period period to group logs
2397
+ # @option opts [String] :expand
2398
+ # @return [InlineResponse20024]
2399
+ def users_id_user_recipients_id_recipient_transfers_get(id_user, id_recipient, opts = {})
2400
+ data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts)
2401
+ return data
2402
+ end
2403
+
2404
+ # Get transfers
2405
+ #
2406
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2407
+ # @param id_recipient
2408
+ # @param [Hash] opts the optional parameters
2409
+ # @option opts [String] :period period to group logs
2410
+ # @option opts [String] :expand
2411
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
2412
+ def users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts = {})
2413
+ if @api_client.config.debugging
2414
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_get ..."
2415
+ end
2416
+ # verify the required parameter 'id_user' is set
2417
+ if @api_client.config.client_side_validation && id_user.nil?
2418
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_get"
2419
+ end
2420
+ # verify the required parameter 'id_recipient' is set
2421
+ if @api_client.config.client_side_validation && id_recipient.nil?
2422
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_get"
2423
+ end
2424
+ # resource path
2425
+ 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
+
2427
+ # query parameters
2428
+ query_params = {}
2429
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2430
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2431
+
2432
+ # header parameters
2433
+ header_params = {}
2434
+ # HTTP header 'Accept' (if needed)
2435
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2436
+ # HTTP header 'Content-Type'
2437
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2438
+
2439
+ # form parameters
2440
+ form_params = {}
2441
+
2442
+ # http body (model)
2443
+ post_body = nil
2444
+ auth_names = []
2445
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2446
+ :header_params => header_params,
2447
+ :query_params => query_params,
2448
+ :form_params => form_params,
2449
+ :body => post_body,
2450
+ :auth_names => auth_names,
2451
+ :return_type => 'InlineResponse20024')
2452
+ if @api_client.config.debugging
2453
+ @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
+ end
2455
+ return data, status_code, headers
2456
+ end
2457
+
2458
+ # Cancel a transfer.
2459
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
2460
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2461
+ # @param id_recipient
2462
+ # @param id_transfer
2463
+ # @param [Hash] opts the optional parameters
2464
+ # @option opts [String] :expand
2465
+ # @return [Transfer]
2466
+ def users_id_user_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_recipient, id_transfer, opts = {})
2467
+ 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
+ return data
2469
+ end
2470
+
2471
+ # Cancel a transfer.
2472
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
2473
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2474
+ # @param id_recipient
2475
+ # @param id_transfer
2476
+ # @param [Hash] opts the optional parameters
2477
+ # @option opts [String] :expand
2478
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2479
+ def users_id_user_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_recipient, id_transfer, opts = {})
2480
+ if @api_client.config.debugging
2481
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete ..."
2482
+ end
2483
+ # verify the required parameter 'id_user' is set
2484
+ if @api_client.config.client_side_validation && id_user.nil?
2485
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
2486
+ end
2487
+ # verify the required parameter 'id_recipient' is set
2488
+ if @api_client.config.client_side_validation && id_recipient.nil?
2489
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
2490
+ end
2491
+ # verify the required parameter 'id_transfer' is set
2492
+ if @api_client.config.client_side_validation && id_transfer.nil?
2493
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
2494
+ end
2495
+ # resource path
2496
+ 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
+
2498
+ # query parameters
2499
+ query_params = {}
2500
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2501
+
2502
+ # header parameters
2503
+ header_params = {}
2504
+ # HTTP header 'Accept' (if needed)
2505
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2506
+ # HTTP header 'Content-Type'
2507
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2508
+
2509
+ # form parameters
2510
+ form_params = {}
2511
+
2512
+ # http body (model)
2513
+ post_body = nil
2514
+ auth_names = []
2515
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2516
+ :header_params => header_params,
2517
+ :query_params => query_params,
2518
+ :form_params => form_params,
2519
+ :body => post_body,
2520
+ :auth_names => auth_names,
2521
+ :return_type => 'Transfer')
2522
+ if @api_client.config.debugging
2523
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2524
+ end
2525
+ return data, status_code, headers
2526
+ end
2527
+
2528
+ # Execute or edit a Transfer.
2529
+ #
2530
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2531
+ # @param id_recipient
2532
+ # @param id_transfer
2533
+ # @param [Hash] opts the optional parameters
2534
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
2535
+ # @option opts [String] :expand
2536
+ # @return [Transfer]
2537
+ def users_id_user_recipients_id_recipient_transfers_id_transfer_post(id_user, id_recipient, id_transfer, opts = {})
2538
+ 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
+ return data
2540
+ end
2541
+
2542
+ # Execute or edit a Transfer.
2543
+ #
2544
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2545
+ # @param id_recipient
2546
+ # @param id_transfer
2547
+ # @param [Hash] opts the optional parameters
2548
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
2549
+ # @option opts [String] :expand
2550
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2551
+ def users_id_user_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_recipient, id_transfer, opts = {})
2552
+ if @api_client.config.debugging
2553
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post ..."
2554
+ end
2555
+ # verify the required parameter 'id_user' is set
2556
+ if @api_client.config.client_side_validation && id_user.nil?
2557
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
2558
+ end
2559
+ # verify the required parameter 'id_recipient' is set
2560
+ if @api_client.config.client_side_validation && id_recipient.nil?
2561
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
2562
+ end
2563
+ # verify the required parameter 'id_transfer' is set
2564
+ if @api_client.config.client_side_validation && id_transfer.nil?
2565
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
2566
+ end
2567
+ # resource path
2568
+ 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
+
2570
+ # query parameters
2571
+ query_params = {}
2572
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2573
+
2574
+ # header parameters
2575
+ header_params = {}
2576
+ # HTTP header 'Accept' (if needed)
2577
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2578
+ # HTTP header 'Content-Type'
2579
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2580
+
2581
+ # form parameters
2582
+ form_params = {}
2583
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
2584
+
2585
+ # http body (model)
2586
+ post_body = nil
2587
+ auth_names = []
2588
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2589
+ :header_params => header_params,
2590
+ :query_params => query_params,
2591
+ :form_params => form_params,
2592
+ :body => post_body,
2593
+ :auth_names => auth_names,
2594
+ :return_type => 'Transfer')
2595
+ if @api_client.config.debugging
2596
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2597
+ end
2598
+ return data, status_code, headers
2599
+ end
2600
+
2601
+ # Create a transfer object.
2602
+ #
2603
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2604
+ # @param id_recipient
2605
+ # @param amount amount of transfer
2606
+ # @param [Hash] opts the optional parameters
2607
+ # @option opts [String] :label reason of transfer
2608
+ # @option opts [Date] :exec_date excution date of transfer
2609
+ # @option opts [String] :expand
2610
+ # @return [Transfer]
2611
+ def users_id_user_recipients_id_recipient_transfers_post(id_user, id_recipient, amount, opts = {})
2612
+ data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts)
2613
+ return data
2614
+ end
2615
+
2616
+ # Create a transfer object.
2617
+ #
2618
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2619
+ # @param id_recipient
2620
+ # @param amount amount of transfer
2621
+ # @param [Hash] opts the optional parameters
2622
+ # @option opts [String] :label reason of transfer
2623
+ # @option opts [Date] :exec_date excution date of transfer
2624
+ # @option opts [String] :expand
2625
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2626
+ def users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts = {})
2627
+ if @api_client.config.debugging
2628
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_post ..."
2629
+ end
2630
+ # verify the required parameter 'id_user' is set
2631
+ if @api_client.config.client_side_validation && id_user.nil?
2632
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
2633
+ end
2634
+ # verify the required parameter 'id_recipient' is set
2635
+ if @api_client.config.client_side_validation && id_recipient.nil?
2636
+ fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
2637
+ end
2638
+ # verify the required parameter 'amount' is set
2639
+ if @api_client.config.client_side_validation && amount.nil?
2640
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
2641
+ end
2642
+ # resource path
2643
+ 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
+
2645
+ # query parameters
2646
+ query_params = {}
2647
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2648
+
2649
+ # header parameters
2650
+ header_params = {}
2651
+ # HTTP header 'Accept' (if needed)
2652
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2653
+ # HTTP header 'Content-Type'
2654
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2655
+
2656
+ # form parameters
2657
+ form_params = {}
2658
+ form_params["amount"] = amount
2659
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
2660
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
2661
+
2662
+ # http body (model)
2663
+ post_body = nil
2664
+ auth_names = []
2665
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2666
+ :header_params => header_params,
2667
+ :query_params => query_params,
2668
+ :form_params => form_params,
2669
+ :body => post_body,
2670
+ :auth_names => auth_names,
2671
+ :return_type => 'Transfer')
2672
+ if @api_client.config.debugging
2673
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2674
+ end
2675
+ return data, status_code, headers
2676
+ end
2677
+
2678
+ # Get transfers
2679
+ #
2680
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2681
+ # @param [Hash] opts the optional parameters
2682
+ # @option opts [String] :period period to group logs
2683
+ # @option opts [String] :expand
2684
+ # @return [InlineResponse20024]
2685
+ def users_id_user_transfers_get(id_user, opts = {})
2686
+ data, _status_code, _headers = users_id_user_transfers_get_with_http_info(id_user, opts)
2687
+ return data
2688
+ end
2689
+
2690
+ # Get transfers
2691
+ #
2692
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2693
+ # @param [Hash] opts the optional parameters
2694
+ # @option opts [String] :period period to group logs
2695
+ # @option opts [String] :expand
2696
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
2697
+ def users_id_user_transfers_get_with_http_info(id_user, opts = {})
2698
+ if @api_client.config.debugging
2699
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_transfers_get ..."
2700
+ end
2701
+ # verify the required parameter 'id_user' is set
2702
+ if @api_client.config.client_side_validation && id_user.nil?
2703
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_get"
2704
+ end
2705
+ # resource path
2706
+ local_var_path = "/users/{id_user}/transfers".sub('{' + 'id_user' + '}', id_user.to_s)
2707
+
2708
+ # query parameters
2709
+ query_params = {}
2710
+ query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
2711
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2712
+
2713
+ # header parameters
2714
+ header_params = {}
2715
+ # HTTP header 'Accept' (if needed)
2716
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2717
+ # HTTP header 'Content-Type'
2718
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2719
+
2720
+ # form parameters
2721
+ form_params = {}
2722
+
2723
+ # http body (model)
2724
+ post_body = nil
2725
+ auth_names = []
2726
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2727
+ :header_params => header_params,
2728
+ :query_params => query_params,
2729
+ :form_params => form_params,
2730
+ :body => post_body,
2731
+ :auth_names => auth_names,
2732
+ :return_type => 'InlineResponse20024')
2733
+ if @api_client.config.debugging
2734
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2735
+ end
2736
+ return data, status_code, headers
2737
+ end
2738
+
2739
+ # Cancel a transfer.
2740
+ # It is possible to cancel only a transfer in state 'created'.<br><br>
2741
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2742
+ # @param id_transfer
2743
+ # @param [Hash] opts the optional parameters
2744
+ # @option opts [String] :expand
2745
+ # @return [Transfer]
2746
+ def users_id_user_transfers_id_transfer_delete(id_user, id_transfer, opts = {})
2747
+ data, _status_code, _headers = users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts)
2748
+ return data
2749
+ end
2750
+
2751
+ # Cancel a transfer.
2752
+ # It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt;
2753
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2754
+ # @param id_transfer
2755
+ # @param [Hash] opts the optional parameters
2756
+ # @option opts [String] :expand
2757
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2758
+ def users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts = {})
2759
+ if @api_client.config.debugging
2760
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_transfers_id_transfer_delete ..."
2761
+ end
2762
+ # verify the required parameter 'id_user' is set
2763
+ if @api_client.config.client_side_validation && id_user.nil?
2764
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_id_transfer_delete"
2765
+ end
2766
+ # verify the required parameter 'id_transfer' is set
2767
+ if @api_client.config.client_side_validation && id_transfer.nil?
2768
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_delete"
2769
+ end
2770
+ # resource path
2771
+ local_var_path = "/users/{id_user}/transfers/{id_transfer}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
2772
+
2773
+ # query parameters
2774
+ query_params = {}
2775
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2776
+
2777
+ # header parameters
2778
+ header_params = {}
2779
+ # HTTP header 'Accept' (if needed)
2780
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2781
+ # HTTP header 'Content-Type'
2782
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2783
+
2784
+ # form parameters
2785
+ form_params = {}
2786
+
2787
+ # http body (model)
2788
+ post_body = nil
2789
+ auth_names = []
2790
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2791
+ :header_params => header_params,
2792
+ :query_params => query_params,
2793
+ :form_params => form_params,
2794
+ :body => post_body,
2795
+ :auth_names => auth_names,
2796
+ :return_type => 'Transfer')
2797
+ if @api_client.config.debugging
2798
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2799
+ end
2800
+ return data, status_code, headers
2801
+ end
2802
+
2803
+ # Execute or edit a Transfer.
2804
+ #
2805
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2806
+ # @param id_transfer
2807
+ # @param [Hash] opts the optional parameters
2808
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
2809
+ # @option opts [String] :expand
2810
+ # @return [Transfer]
2811
+ def users_id_user_transfers_id_transfer_post(id_user, id_transfer, opts = {})
2812
+ data, _status_code, _headers = users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, opts)
2813
+ return data
2814
+ end
2815
+
2816
+ # Execute or edit a Transfer.
2817
+ #
2818
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2819
+ # @param id_transfer
2820
+ # @param [Hash] opts the optional parameters
2821
+ # @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
2822
+ # @option opts [String] :expand
2823
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2824
+ def users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, opts = {})
2825
+ if @api_client.config.debugging
2826
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_transfers_id_transfer_post ..."
2827
+ end
2828
+ # verify the required parameter 'id_user' is set
2829
+ if @api_client.config.client_side_validation && id_user.nil?
2830
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
2831
+ end
2832
+ # verify the required parameter 'id_transfer' is set
2833
+ if @api_client.config.client_side_validation && id_transfer.nil?
2834
+ fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
2835
+ end
2836
+ # resource path
2837
+ local_var_path = "/users/{id_user}/transfers/{id_transfer}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
2838
+
2839
+ # query parameters
2840
+ query_params = {}
2841
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2842
+
2843
+ # header parameters
2844
+ header_params = {}
2845
+ # HTTP header 'Accept' (if needed)
2846
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2847
+ # HTTP header 'Content-Type'
2848
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2849
+
2850
+ # form parameters
2851
+ form_params = {}
2852
+ form_params["validated"] = opts[:'validated'] if !opts[:'validated'].nil?
2853
+
2854
+ # http body (model)
2855
+ post_body = nil
2856
+ auth_names = []
2857
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2858
+ :header_params => header_params,
2859
+ :query_params => query_params,
2860
+ :form_params => form_params,
2861
+ :body => post_body,
2862
+ :auth_names => auth_names,
2863
+ :return_type => 'Transfer')
2864
+ if @api_client.config.debugging
2865
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2866
+ end
2867
+ return data, status_code, headers
2868
+ end
2869
+
2870
+ # Create a transfer object.
2871
+ #
2872
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2873
+ # @param amount amount of transfer
2874
+ # @param [Hash] opts the optional parameters
2875
+ # @option opts [String] :label reason of transfer
2876
+ # @option opts [Date] :exec_date excution date of transfer
2877
+ # @option opts [String] :expand
2878
+ # @return [Transfer]
2879
+ def users_id_user_transfers_post(id_user, amount, opts = {})
2880
+ data, _status_code, _headers = users_id_user_transfers_post_with_http_info(id_user, amount, opts)
2881
+ return data
2882
+ end
2883
+
2884
+ # Create a transfer object.
2885
+ #
2886
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
2887
+ # @param amount amount of transfer
2888
+ # @param [Hash] opts the optional parameters
2889
+ # @option opts [String] :label reason of transfer
2890
+ # @option opts [Date] :exec_date excution date of transfer
2891
+ # @option opts [String] :expand
2892
+ # @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
2893
+ def users_id_user_transfers_post_with_http_info(id_user, amount, opts = {})
2894
+ if @api_client.config.debugging
2895
+ @api_client.config.logger.debug "Calling API: TransfersApi.users_id_user_transfers_post ..."
2896
+ end
2897
+ # verify the required parameter 'id_user' is set
2898
+ if @api_client.config.client_side_validation && id_user.nil?
2899
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_post"
2900
+ end
2901
+ # verify the required parameter 'amount' is set
2902
+ if @api_client.config.client_side_validation && amount.nil?
2903
+ fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_transfers_post"
2904
+ end
2905
+ # resource path
2906
+ local_var_path = "/users/{id_user}/transfers".sub('{' + 'id_user' + '}', id_user.to_s)
2907
+
2908
+ # query parameters
2909
+ query_params = {}
2910
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2911
+
2912
+ # header parameters
2913
+ header_params = {}
2914
+ # HTTP header 'Accept' (if needed)
2915
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2916
+ # HTTP header 'Content-Type'
2917
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
2918
+
2919
+ # form parameters
2920
+ form_params = {}
2921
+ form_params["amount"] = amount
2922
+ form_params["label"] = opts[:'label'] if !opts[:'label'].nil?
2923
+ form_params["exec_date"] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
2924
+
2925
+ # http body (model)
2926
+ post_body = nil
2927
+ auth_names = []
2928
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2929
+ :header_params => header_params,
2930
+ :query_params => query_params,
2931
+ :form_params => form_params,
2932
+ :body => post_body,
2933
+ :auth_names => auth_names,
2934
+ :return_type => 'Transfer')
2935
+ if @api_client.config.debugging
2936
+ @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2937
+ end
2938
+ return data, status_code, headers
2939
+ end
2940
+ end
2941
+ end