budgea_client 1.0.0

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