budgea_client 3.0.0 → 3.0.1

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +11 -1
  4. data/budgea_openapi.json +913 -105
  5. data/docs/AdministrationApi.md +12 -12
  6. data/docs/BanksApi.md +40 -38
  7. data/docs/Client.md +1 -6
  8. data/docs/Connection.md +1 -0
  9. data/docs/ConnectionLog.md +1 -0
  10. data/docs/ConnectionsApi.md +2 -0
  11. data/docs/Document.md +2 -3
  12. data/docs/DocumentsApi.md +24 -24
  13. data/docs/InlineResponse200.md +1 -0
  14. data/docs/InlineResponse20010.md +1 -0
  15. data/docs/InlineResponse20011.md +1 -0
  16. data/docs/InlineResponse20012.md +1 -0
  17. data/docs/InlineResponse20013.md +1 -0
  18. data/docs/InlineResponse20014.md +1 -0
  19. data/docs/InlineResponse20015.md +1 -0
  20. data/docs/InlineResponse20016.md +1 -0
  21. data/docs/InlineResponse20017.md +1 -0
  22. data/docs/InlineResponse20018.md +1 -0
  23. data/docs/InlineResponse20019.md +1 -1
  24. data/docs/InlineResponse20020.md +2 -1
  25. data/docs/InlineResponse20021.md +2 -1
  26. data/docs/InlineResponse20022.md +2 -1
  27. data/docs/InlineResponse20023.md +2 -1
  28. data/docs/InlineResponse20024.md +2 -1
  29. data/docs/InlineResponse20025.md +2 -1
  30. data/docs/InlineResponse20026.md +2 -1
  31. data/docs/InlineResponse20027.md +2 -1
  32. data/docs/InlineResponse20028.md +2 -1
  33. data/docs/InlineResponse20029.md +2 -1
  34. data/docs/InlineResponse20030.md +2 -1
  35. data/docs/InlineResponse20031.md +2 -1
  36. data/docs/InlineResponse20032.md +2 -1
  37. data/docs/InlineResponse20033.md +2 -1
  38. data/docs/InlineResponse20034.md +2 -1
  39. data/docs/InlineResponse20035.md +2 -1
  40. data/docs/InlineResponse20036.md +2 -1
  41. data/docs/InlineResponse20037.md +2 -1
  42. data/docs/InlineResponse20038.md +2 -1
  43. data/docs/InlineResponse20039.md +9 -0
  44. data/docs/InlineResponse20040.md +9 -0
  45. data/docs/InlineResponse2008.md +1 -0
  46. data/docs/InlineResponse2009.md +1 -0
  47. data/docs/PFMApi.md +15 -15
  48. data/docs/ProvidersApi.md +30 -28
  49. data/docs/RecipientLog.md +1 -0
  50. data/docs/TermsApi.md +4 -4
  51. data/docs/Transfer.md +2 -2
  52. data/docs/TransferLog.md +1 -0
  53. data/docs/TransfersApi.md +24 -24
  54. data/docs/UsersManagementApi.md +4 -4
  55. data/docs/WealthApi.md +524 -16
  56. data/lib/budgea_client.rb +2 -0
  57. data/lib/budgea_client/api/administration_api.rb +18 -18
  58. data/lib/budgea_client/api/banks_api.rb +60 -57
  59. data/lib/budgea_client/api/connections_api.rb +3 -0
  60. data/lib/budgea_client/api/documents_api.rb +36 -36
  61. data/lib/budgea_client/api/pfm_api.rb +19 -19
  62. data/lib/budgea_client/api/providers_api.rb +46 -43
  63. data/lib/budgea_client/api/terms_api.rb +6 -6
  64. data/lib/budgea_client/api/transfers_api.rb +36 -36
  65. data/lib/budgea_client/api/users_management_api.rb +6 -6
  66. data/lib/budgea_client/api/wealth_api.rb +552 -24
  67. data/lib/budgea_client/models/client.rb +8 -58
  68. data/lib/budgea_client/models/connection.rb +11 -1
  69. data/lib/budgea_client/models/connection_log.rb +14 -4
  70. data/lib/budgea_client/models/document.rb +18 -24
  71. data/lib/budgea_client/models/inline_response_200.rb +14 -4
  72. data/lib/budgea_client/models/inline_response_200_10.rb +14 -4
  73. data/lib/budgea_client/models/inline_response_200_11.rb +11 -1
  74. data/lib/budgea_client/models/inline_response_200_12.rb +11 -1
  75. data/lib/budgea_client/models/inline_response_200_13.rb +11 -1
  76. data/lib/budgea_client/models/inline_response_200_14.rb +14 -4
  77. data/lib/budgea_client/models/inline_response_200_15.rb +11 -1
  78. data/lib/budgea_client/models/inline_response_200_16.rb +14 -4
  79. data/lib/budgea_client/models/inline_response_200_17.rb +11 -1
  80. data/lib/budgea_client/models/inline_response_200_18.rb +11 -1
  81. data/lib/budgea_client/models/inline_response_200_19.rb +11 -11
  82. data/lib/budgea_client/models/inline_response_200_20.rb +21 -11
  83. data/lib/budgea_client/models/inline_response_200_21.rb +21 -11
  84. data/lib/budgea_client/models/inline_response_200_22.rb +21 -11
  85. data/lib/budgea_client/models/inline_response_200_23.rb +21 -11
  86. data/lib/budgea_client/models/inline_response_200_24.rb +21 -11
  87. data/lib/budgea_client/models/inline_response_200_25.rb +21 -11
  88. data/lib/budgea_client/models/inline_response_200_26.rb +21 -11
  89. data/lib/budgea_client/models/inline_response_200_27.rb +21 -11
  90. data/lib/budgea_client/models/inline_response_200_28.rb +21 -11
  91. data/lib/budgea_client/models/inline_response_200_29.rb +21 -11
  92. data/lib/budgea_client/models/inline_response_200_30.rb +21 -11
  93. data/lib/budgea_client/models/inline_response_200_31.rb +21 -11
  94. data/lib/budgea_client/models/inline_response_200_32.rb +21 -11
  95. data/lib/budgea_client/models/inline_response_200_33.rb +21 -11
  96. data/lib/budgea_client/models/inline_response_200_34.rb +21 -11
  97. data/lib/budgea_client/models/inline_response_200_35.rb +21 -11
  98. data/lib/budgea_client/models/inline_response_200_36.rb +21 -11
  99. data/lib/budgea_client/models/inline_response_200_37.rb +21 -11
  100. data/lib/budgea_client/models/inline_response_200_38.rb +21 -11
  101. data/lib/budgea_client/models/inline_response_200_39.rb +200 -0
  102. data/lib/budgea_client/models/inline_response_200_40.rb +200 -0
  103. data/lib/budgea_client/models/inline_response_200_8.rb +14 -4
  104. data/lib/budgea_client/models/inline_response_200_9.rb +14 -4
  105. data/lib/budgea_client/models/recipient_log.rb +14 -4
  106. data/lib/budgea_client/models/transfer.rb +2 -2
  107. data/lib/budgea_client/models/transfer_log.rb +14 -4
  108. data/lib/budgea_client/version.rb +1 -1
  109. data/original_budgea_openapi.json +911 -103
  110. data/pkg/budgea_client-2.0.0.gem +0 -0
  111. data/spec/models/inline_response_200_39_spec.rb +47 -0
  112. data/spec/models/inline_response_200_40_spec.rb +47 -0
  113. metadata +12 -5
  114. data/pkg/budgea_client-2.0.1.gem +0 -0
  115. data/pkg/budgea_client-2.0.2.gem +0 -0
@@ -71,7 +71,7 @@ module BudgeaClient
71
71
  # @param [Hash] opts the optional parameters
72
72
  # @option opts [String] :search searches a user by mail (if it contains no '@', '@biapi.pro' will be added at the end)
73
73
  # @option opts [String] :expand
74
- # @return [InlineResponse20020]
74
+ # @return [InlineResponse20021]
75
75
  def users_get(opts = {})
76
76
  data, _status_code, _headers = users_get_with_http_info(opts)
77
77
  data
@@ -82,7 +82,7 @@ module BudgeaClient
82
82
  # @param [Hash] opts the optional parameters
83
83
  # @option opts [String] :search searches a user by mail (if it contains no '@', '@biapi.pro' will be added at the end)
84
84
  # @option opts [String] :expand
85
- # @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
85
+ # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
86
86
  def users_get_with_http_info(opts = {})
87
87
  if @api_client.config.debugging
88
88
  @api_client.config.logger.debug 'Calling API: UsersManagementApi.users_get ...'
@@ -114,7 +114,7 @@ module BudgeaClient
114
114
  :form_params => form_params,
115
115
  :body => post_body,
116
116
  :auth_names => auth_names,
117
- :return_type => 'InlineResponse20020')
117
+ :return_type => 'InlineResponse20021')
118
118
  if @api_client.config.debugging
119
119
  @api_client.config.logger.debug "API called: UsersManagementApi#users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
120
120
  end
@@ -399,7 +399,7 @@ module BudgeaClient
399
399
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
400
400
  # @param [Hash] opts the optional parameters
401
401
  # @option opts [String] :expand
402
- # @return [InlineResponse20035]
402
+ # @return [InlineResponse20037]
403
403
  def users_id_user_profiles_get(id_user, opts = {})
404
404
  data, _status_code, _headers = users_id_user_profiles_get_with_http_info(id_user, opts)
405
405
  data
@@ -410,7 +410,7 @@ module BudgeaClient
410
410
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
411
411
  # @param [Hash] opts the optional parameters
412
412
  # @option opts [String] :expand
413
- # @return [Array<(InlineResponse20035, Fixnum, Hash)>] InlineResponse20035 data, response status code and response headers
413
+ # @return [Array<(InlineResponse20037, Fixnum, Hash)>] InlineResponse20037 data, response status code and response headers
414
414
  def users_id_user_profiles_get_with_http_info(id_user, opts = {})
415
415
  if @api_client.config.debugging
416
416
  @api_client.config.logger.debug 'Calling API: UsersManagementApi.users_id_user_profiles_get ...'
@@ -445,7 +445,7 @@ module BudgeaClient
445
445
  :form_params => form_params,
446
446
  :body => post_body,
447
447
  :auth_names => auth_names,
448
- :return_type => 'InlineResponse20035')
448
+ :return_type => 'InlineResponse20037')
449
449
  if @api_client.config.debugging
450
450
  @api_client.config.logger.debug "API called: UsersManagementApi#users_id_user_profiles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
451
451
  end
@@ -144,7 +144,7 @@ module BudgeaClient
144
144
  # @param id_account
145
145
  # @param [Hash] opts the optional parameters
146
146
  # @option opts [String] :expand
147
- # @return [InlineResponse20022]
147
+ # @return [InlineResponse20023]
148
148
  def users_id_user_accounts_id_account_investments_get(id_user, id_account, opts = {})
149
149
  data, _status_code, _headers = users_id_user_accounts_id_account_investments_get_with_http_info(id_user, id_account, opts)
150
150
  data
@@ -156,7 +156,7 @@ module BudgeaClient
156
156
  # @param id_account
157
157
  # @param [Hash] opts the optional parameters
158
158
  # @option opts [String] :expand
159
- # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
159
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
160
160
  def users_id_user_accounts_id_account_investments_get_with_http_info(id_user, id_account, opts = {})
161
161
  if @api_client.config.debugging
162
162
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_accounts_id_account_investments_get ...'
@@ -195,7 +195,7 @@ module BudgeaClient
195
195
  :form_params => form_params,
196
196
  :body => post_body,
197
197
  :auth_names => auth_names,
198
- :return_type => 'InlineResponse20022')
198
+ :return_type => 'InlineResponse20023')
199
199
  if @api_client.config.debugging
200
200
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_accounts_id_account_investments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
201
201
  end
@@ -208,7 +208,7 @@ module BudgeaClient
208
208
  # @param id_investment
209
209
  # @param [Hash] opts the optional parameters
210
210
  # @option opts [String] :expand
211
- # @return [InlineResponse20023]
211
+ # @return [InlineResponse20024]
212
212
  def users_id_user_accounts_id_account_investments_id_investment_history_get(id_user, id_account, id_investment, opts = {})
213
213
  data, _status_code, _headers = users_id_user_accounts_id_account_investments_id_investment_history_get_with_http_info(id_user, id_account, id_investment, opts)
214
214
  data
@@ -221,7 +221,7 @@ module BudgeaClient
221
221
  # @param id_investment
222
222
  # @param [Hash] opts the optional parameters
223
223
  # @option opts [String] :expand
224
- # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
224
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
225
225
  def users_id_user_accounts_id_account_investments_id_investment_history_get_with_http_info(id_user, id_account, id_investment, opts = {})
226
226
  if @api_client.config.debugging
227
227
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_accounts_id_account_investments_id_investment_history_get ...'
@@ -264,12 +264,81 @@ module BudgeaClient
264
264
  :form_params => form_params,
265
265
  :body => post_body,
266
266
  :auth_names => auth_names,
267
- :return_type => 'InlineResponse20023')
267
+ :return_type => 'InlineResponse20024')
268
268
  if @api_client.config.debugging
269
269
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_accounts_id_account_investments_id_investment_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
270
  end
271
271
  return data, status_code, headers
272
272
  end
273
+ # Get pockets
274
+ #
275
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
276
+ # @param id_account
277
+ # @param id_investment
278
+ # @param [Hash] opts the optional parameters
279
+ # @option opts [String] :expand
280
+ # @return [InlineResponse20025]
281
+ def users_id_user_accounts_id_account_investments_id_investment_pockets_get(id_user, id_account, id_investment, opts = {})
282
+ data, _status_code, _headers = users_id_user_accounts_id_account_investments_id_investment_pockets_get_with_http_info(id_user, id_account, id_investment, opts)
283
+ data
284
+ end
285
+
286
+ # Get pockets
287
+ #
288
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
289
+ # @param id_account
290
+ # @param id_investment
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [String] :expand
293
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
294
+ def users_id_user_accounts_id_account_investments_id_investment_pockets_get_with_http_info(id_user, id_account, id_investment, opts = {})
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_accounts_id_account_investments_id_investment_pockets_get ...'
297
+ end
298
+ # verify the required parameter 'id_user' is set
299
+ if @api_client.config.client_side_validation && id_user.nil?
300
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_pockets_get"
301
+ end
302
+ # verify the required parameter 'id_account' is set
303
+ if @api_client.config.client_side_validation && id_account.nil?
304
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_pockets_get"
305
+ end
306
+ # verify the required parameter 'id_investment' is set
307
+ if @api_client.config.client_side_validation && id_investment.nil?
308
+ fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_pockets_get"
309
+ end
310
+ # resource path
311
+ local_var_path = '/users/{id_user}/accounts/{id_account}/investments/{id_investment}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
312
+
313
+ # query parameters
314
+ query_params = {}
315
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
316
+
317
+ # header parameters
318
+ header_params = {}
319
+ # HTTP header 'Accept' (if needed)
320
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
321
+ # HTTP header 'Content-Type'
322
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
323
+
324
+ # form parameters
325
+ form_params = {}
326
+
327
+ # http body (model)
328
+ post_body = nil
329
+ auth_names = ['api_key']
330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
331
+ :header_params => header_params,
332
+ :query_params => query_params,
333
+ :form_params => form_params,
334
+ :body => post_body,
335
+ :auth_names => auth_names,
336
+ :return_type => 'InlineResponse20025')
337
+ if @api_client.config.debugging
338
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_accounts_id_account_investments_id_investment_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
339
+ end
340
+ return data, status_code, headers
341
+ end
273
342
  # Get connection logs
274
343
  # Get logs about connections.<br><br>
275
344
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -350,6 +419,69 @@ module BudgeaClient
350
419
  end
351
420
  return data, status_code, headers
352
421
  end
422
+ # Get pockets
423
+ #
424
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
425
+ # @param id_account
426
+ # @param [Hash] opts the optional parameters
427
+ # @option opts [String] :expand
428
+ # @return [InlineResponse20025]
429
+ def users_id_user_accounts_id_account_pockets_get(id_user, id_account, opts = {})
430
+ data, _status_code, _headers = users_id_user_accounts_id_account_pockets_get_with_http_info(id_user, id_account, opts)
431
+ data
432
+ end
433
+
434
+ # Get pockets
435
+ #
436
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
437
+ # @param id_account
438
+ # @param [Hash] opts the optional parameters
439
+ # @option opts [String] :expand
440
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
441
+ def users_id_user_accounts_id_account_pockets_get_with_http_info(id_user, id_account, opts = {})
442
+ if @api_client.config.debugging
443
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_accounts_id_account_pockets_get ...'
444
+ end
445
+ # verify the required parameter 'id_user' is set
446
+ if @api_client.config.client_side_validation && id_user.nil?
447
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_accounts_id_account_pockets_get"
448
+ end
449
+ # verify the required parameter 'id_account' is set
450
+ if @api_client.config.client_side_validation && id_account.nil?
451
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_accounts_id_account_pockets_get"
452
+ end
453
+ # resource path
454
+ local_var_path = '/users/{id_user}/accounts/{id_account}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
455
+
456
+ # query parameters
457
+ query_params = {}
458
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
459
+
460
+ # header parameters
461
+ header_params = {}
462
+ # HTTP header 'Accept' (if needed)
463
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
464
+ # HTTP header 'Content-Type'
465
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
466
+
467
+ # form parameters
468
+ form_params = {}
469
+
470
+ # http body (model)
471
+ post_body = nil
472
+ auth_names = ['api_key']
473
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
474
+ :header_params => header_params,
475
+ :query_params => query_params,
476
+ :form_params => form_params,
477
+ :body => post_body,
478
+ :auth_names => auth_names,
479
+ :return_type => 'InlineResponse20025')
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_accounts_id_account_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
482
+ end
483
+ return data, status_code, headers
484
+ end
353
485
  # Get investments
354
486
  #
355
487
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -357,7 +489,7 @@ module BudgeaClient
357
489
  # @param id_account
358
490
  # @param [Hash] opts the optional parameters
359
491
  # @option opts [String] :expand
360
- # @return [InlineResponse20022]
492
+ # @return [InlineResponse20023]
361
493
  def users_id_user_connections_id_connection_accounts_id_account_investments_get(id_user, id_connection, id_account, opts = {})
362
494
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_investments_get_with_http_info(id_user, id_connection, id_account, opts)
363
495
  data
@@ -370,7 +502,7 @@ module BudgeaClient
370
502
  # @param id_account
371
503
  # @param [Hash] opts the optional parameters
372
504
  # @option opts [String] :expand
373
- # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
505
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
374
506
  def users_id_user_connections_id_connection_accounts_id_account_investments_get_with_http_info(id_user, id_connection, id_account, opts = {})
375
507
  if @api_client.config.debugging
376
508
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_get ...'
@@ -413,7 +545,7 @@ module BudgeaClient
413
545
  :form_params => form_params,
414
546
  :body => post_body,
415
547
  :auth_names => auth_names,
416
- :return_type => 'InlineResponse20022')
548
+ :return_type => 'InlineResponse20023')
417
549
  if @api_client.config.debugging
418
550
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_accounts_id_account_investments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
419
551
  end
@@ -427,7 +559,7 @@ module BudgeaClient
427
559
  # @param id_investment
428
560
  # @param [Hash] opts the optional parameters
429
561
  # @option opts [String] :expand
430
- # @return [InlineResponse20023]
562
+ # @return [InlineResponse20024]
431
563
  def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get(id_user, id_connection, id_account, id_investment, opts = {})
432
564
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get_with_http_info(id_user, id_connection, id_account, id_investment, opts)
433
565
  data
@@ -441,7 +573,7 @@ module BudgeaClient
441
573
  # @param id_investment
442
574
  # @param [Hash] opts the optional parameters
443
575
  # @option opts [String] :expand
444
- # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
576
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
445
577
  def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get_with_http_info(id_user, id_connection, id_account, id_investment, opts = {})
446
578
  if @api_client.config.debugging
447
579
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get ...'
@@ -488,12 +620,87 @@ module BudgeaClient
488
620
  :form_params => form_params,
489
621
  :body => post_body,
490
622
  :auth_names => auth_names,
491
- :return_type => 'InlineResponse20023')
623
+ :return_type => 'InlineResponse20024')
492
624
  if @api_client.config.debugging
493
625
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
626
  end
495
627
  return data, status_code, headers
496
628
  end
629
+ # Get pockets
630
+ #
631
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
632
+ # @param id_connection
633
+ # @param id_account
634
+ # @param id_investment
635
+ # @param [Hash] opts the optional parameters
636
+ # @option opts [String] :expand
637
+ # @return [InlineResponse20025]
638
+ def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get(id_user, id_connection, id_account, id_investment, opts = {})
639
+ data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get_with_http_info(id_user, id_connection, id_account, id_investment, opts)
640
+ data
641
+ end
642
+
643
+ # Get pockets
644
+ #
645
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
646
+ # @param id_connection
647
+ # @param id_account
648
+ # @param id_investment
649
+ # @param [Hash] opts the optional parameters
650
+ # @option opts [String] :expand
651
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
652
+ def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get_with_http_info(id_user, id_connection, id_account, id_investment, opts = {})
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get ...'
655
+ end
656
+ # verify the required parameter 'id_user' is set
657
+ if @api_client.config.client_side_validation && id_user.nil?
658
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get"
659
+ end
660
+ # verify the required parameter 'id_connection' is set
661
+ if @api_client.config.client_side_validation && id_connection.nil?
662
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get"
663
+ end
664
+ # verify the required parameter 'id_account' is set
665
+ if @api_client.config.client_side_validation && id_account.nil?
666
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get"
667
+ end
668
+ # verify the required parameter 'id_investment' is set
669
+ if @api_client.config.client_side_validation && id_investment.nil?
670
+ fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get"
671
+ end
672
+ # resource path
673
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/investments/{id_investment}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
674
+
675
+ # query parameters
676
+ query_params = {}
677
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
678
+
679
+ # header parameters
680
+ header_params = {}
681
+ # HTTP header 'Accept' (if needed)
682
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
683
+ # HTTP header 'Content-Type'
684
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
685
+
686
+ # form parameters
687
+ form_params = {}
688
+
689
+ # http body (model)
690
+ post_body = nil
691
+ auth_names = ['api_key']
692
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
693
+ :header_params => header_params,
694
+ :query_params => query_params,
695
+ :form_params => form_params,
696
+ :body => post_body,
697
+ :auth_names => auth_names,
698
+ :return_type => 'InlineResponse20025')
699
+ if @api_client.config.debugging
700
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
701
+ end
702
+ return data, status_code, headers
703
+ end
497
704
  # Get connection logs
498
705
  # Get logs about connections.<br><br>
499
706
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -580,13 +787,82 @@ module BudgeaClient
580
787
  end
581
788
  return data, status_code, headers
582
789
  end
790
+ # Get pockets
791
+ #
792
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
793
+ # @param id_connection
794
+ # @param id_account
795
+ # @param [Hash] opts the optional parameters
796
+ # @option opts [String] :expand
797
+ # @return [InlineResponse20025]
798
+ def users_id_user_connections_id_connection_accounts_id_account_pockets_get(id_user, id_connection, id_account, opts = {})
799
+ data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_pockets_get_with_http_info(id_user, id_connection, id_account, opts)
800
+ data
801
+ end
802
+
803
+ # Get pockets
804
+ #
805
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
806
+ # @param id_connection
807
+ # @param id_account
808
+ # @param [Hash] opts the optional parameters
809
+ # @option opts [String] :expand
810
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
811
+ def users_id_user_connections_id_connection_accounts_id_account_pockets_get_with_http_info(id_user, id_connection, id_account, opts = {})
812
+ if @api_client.config.debugging
813
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_pockets_get ...'
814
+ end
815
+ # verify the required parameter 'id_user' is set
816
+ if @api_client.config.client_side_validation && id_user.nil?
817
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_pockets_get"
818
+ end
819
+ # verify the required parameter 'id_connection' is set
820
+ if @api_client.config.client_side_validation && id_connection.nil?
821
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_pockets_get"
822
+ end
823
+ # verify the required parameter 'id_account' is set
824
+ if @api_client.config.client_side_validation && id_account.nil?
825
+ fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_pockets_get"
826
+ end
827
+ # resource path
828
+ local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
829
+
830
+ # query parameters
831
+ query_params = {}
832
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
833
+
834
+ # header parameters
835
+ header_params = {}
836
+ # HTTP header 'Accept' (if needed)
837
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
838
+ # HTTP header 'Content-Type'
839
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
840
+
841
+ # form parameters
842
+ form_params = {}
843
+
844
+ # http body (model)
845
+ post_body = nil
846
+ auth_names = ['api_key']
847
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
848
+ :header_params => header_params,
849
+ :query_params => query_params,
850
+ :form_params => form_params,
851
+ :body => post_body,
852
+ :auth_names => auth_names,
853
+ :return_type => 'InlineResponse20025')
854
+ if @api_client.config.debugging
855
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_accounts_id_account_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
856
+ end
857
+ return data, status_code, headers
858
+ end
583
859
  # Get investments
584
860
  #
585
861
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
586
862
  # @param id_connection
587
863
  # @param [Hash] opts the optional parameters
588
864
  # @option opts [String] :expand
589
- # @return [InlineResponse20022]
865
+ # @return [InlineResponse20023]
590
866
  def users_id_user_connections_id_connection_investments_get(id_user, id_connection, opts = {})
591
867
  data, _status_code, _headers = users_id_user_connections_id_connection_investments_get_with_http_info(id_user, id_connection, opts)
592
868
  data
@@ -598,7 +874,7 @@ module BudgeaClient
598
874
  # @param id_connection
599
875
  # @param [Hash] opts the optional parameters
600
876
  # @option opts [String] :expand
601
- # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
877
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
602
878
  def users_id_user_connections_id_connection_investments_get_with_http_info(id_user, id_connection, opts = {})
603
879
  if @api_client.config.debugging
604
880
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_investments_get ...'
@@ -637,7 +913,7 @@ module BudgeaClient
637
913
  :form_params => form_params,
638
914
  :body => post_body,
639
915
  :auth_names => auth_names,
640
- :return_type => 'InlineResponse20022')
916
+ :return_type => 'InlineResponse20023')
641
917
  if @api_client.config.debugging
642
918
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_investments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
643
919
  end
@@ -650,7 +926,7 @@ module BudgeaClient
650
926
  # @param id_investment
651
927
  # @param [Hash] opts the optional parameters
652
928
  # @option opts [String] :expand
653
- # @return [InlineResponse20023]
929
+ # @return [InlineResponse20024]
654
930
  def users_id_user_connections_id_connection_investments_id_investment_history_get(id_user, id_connection, id_investment, opts = {})
655
931
  data, _status_code, _headers = users_id_user_connections_id_connection_investments_id_investment_history_get_with_http_info(id_user, id_connection, id_investment, opts)
656
932
  data
@@ -663,7 +939,7 @@ module BudgeaClient
663
939
  # @param id_investment
664
940
  # @param [Hash] opts the optional parameters
665
941
  # @option opts [String] :expand
666
- # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
942
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
667
943
  def users_id_user_connections_id_connection_investments_id_investment_history_get_with_http_info(id_user, id_connection, id_investment, opts = {})
668
944
  if @api_client.config.debugging
669
945
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_investments_id_investment_history_get ...'
@@ -706,12 +982,81 @@ module BudgeaClient
706
982
  :form_params => form_params,
707
983
  :body => post_body,
708
984
  :auth_names => auth_names,
709
- :return_type => 'InlineResponse20023')
985
+ :return_type => 'InlineResponse20024')
710
986
  if @api_client.config.debugging
711
987
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_investments_id_investment_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
712
988
  end
713
989
  return data, status_code, headers
714
990
  end
991
+ # Get pockets
992
+ #
993
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
994
+ # @param id_connection
995
+ # @param id_investment
996
+ # @param [Hash] opts the optional parameters
997
+ # @option opts [String] :expand
998
+ # @return [InlineResponse20025]
999
+ def users_id_user_connections_id_connection_investments_id_investment_pockets_get(id_user, id_connection, id_investment, opts = {})
1000
+ data, _status_code, _headers = users_id_user_connections_id_connection_investments_id_investment_pockets_get_with_http_info(id_user, id_connection, id_investment, opts)
1001
+ data
1002
+ end
1003
+
1004
+ # Get pockets
1005
+ #
1006
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1007
+ # @param id_connection
1008
+ # @param id_investment
1009
+ # @param [Hash] opts the optional parameters
1010
+ # @option opts [String] :expand
1011
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
1012
+ def users_id_user_connections_id_connection_investments_id_investment_pockets_get_with_http_info(id_user, id_connection, id_investment, opts = {})
1013
+ if @api_client.config.debugging
1014
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_investments_id_investment_pockets_get ...'
1015
+ end
1016
+ # verify the required parameter 'id_user' is set
1017
+ if @api_client.config.client_side_validation && id_user.nil?
1018
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_pockets_get"
1019
+ end
1020
+ # verify the required parameter 'id_connection' is set
1021
+ if @api_client.config.client_side_validation && id_connection.nil?
1022
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_pockets_get"
1023
+ end
1024
+ # verify the required parameter 'id_investment' is set
1025
+ if @api_client.config.client_side_validation && id_investment.nil?
1026
+ fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_pockets_get"
1027
+ end
1028
+ # resource path
1029
+ local_var_path = '/users/{id_user}/connections/{id_connection}/investments/{id_investment}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
1030
+
1031
+ # query parameters
1032
+ query_params = {}
1033
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1034
+
1035
+ # header parameters
1036
+ header_params = {}
1037
+ # HTTP header 'Accept' (if needed)
1038
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1039
+ # HTTP header 'Content-Type'
1040
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1041
+
1042
+ # form parameters
1043
+ form_params = {}
1044
+
1045
+ # http body (model)
1046
+ post_body = nil
1047
+ auth_names = ['api_key']
1048
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1049
+ :header_params => header_params,
1050
+ :query_params => query_params,
1051
+ :form_params => form_params,
1052
+ :body => post_body,
1053
+ :auth_names => auth_names,
1054
+ :return_type => 'InlineResponse20025')
1055
+ if @api_client.config.debugging
1056
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_investments_id_investment_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1057
+ end
1058
+ return data, status_code, headers
1059
+ end
715
1060
  # Get connection logs
716
1061
  # Get logs about connections.<br><br>
717
1062
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -792,12 +1137,75 @@ module BudgeaClient
792
1137
  end
793
1138
  return data, status_code, headers
794
1139
  end
1140
+ # Get pockets
1141
+ #
1142
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1143
+ # @param id_connection
1144
+ # @param [Hash] opts the optional parameters
1145
+ # @option opts [String] :expand
1146
+ # @return [InlineResponse20025]
1147
+ def users_id_user_connections_id_connection_pockets_get(id_user, id_connection, opts = {})
1148
+ data, _status_code, _headers = users_id_user_connections_id_connection_pockets_get_with_http_info(id_user, id_connection, opts)
1149
+ data
1150
+ end
1151
+
1152
+ # Get pockets
1153
+ #
1154
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1155
+ # @param id_connection
1156
+ # @param [Hash] opts the optional parameters
1157
+ # @option opts [String] :expand
1158
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
1159
+ def users_id_user_connections_id_connection_pockets_get_with_http_info(id_user, id_connection, opts = {})
1160
+ if @api_client.config.debugging
1161
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_connections_id_connection_pockets_get ...'
1162
+ end
1163
+ # verify the required parameter 'id_user' is set
1164
+ if @api_client.config.client_side_validation && id_user.nil?
1165
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_pockets_get"
1166
+ end
1167
+ # verify the required parameter 'id_connection' is set
1168
+ if @api_client.config.client_side_validation && id_connection.nil?
1169
+ fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_pockets_get"
1170
+ end
1171
+ # resource path
1172
+ local_var_path = '/users/{id_user}/connections/{id_connection}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
1173
+
1174
+ # query parameters
1175
+ query_params = {}
1176
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1177
+
1178
+ # header parameters
1179
+ header_params = {}
1180
+ # HTTP header 'Accept' (if needed)
1181
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1182
+ # HTTP header 'Content-Type'
1183
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1184
+
1185
+ # form parameters
1186
+ form_params = {}
1187
+
1188
+ # http body (model)
1189
+ post_body = nil
1190
+ auth_names = ['api_key']
1191
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1192
+ :header_params => header_params,
1193
+ :query_params => query_params,
1194
+ :form_params => form_params,
1195
+ :body => post_body,
1196
+ :auth_names => auth_names,
1197
+ :return_type => 'InlineResponse20025')
1198
+ if @api_client.config.debugging
1199
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1200
+ end
1201
+ return data, status_code, headers
1202
+ end
795
1203
  # Get investments
796
1204
  #
797
1205
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
798
1206
  # @param [Hash] opts the optional parameters
799
1207
  # @option opts [String] :expand
800
- # @return [InlineResponse20022]
1208
+ # @return [InlineResponse20023]
801
1209
  def users_id_user_investments_get(id_user, opts = {})
802
1210
  data, _status_code, _headers = users_id_user_investments_get_with_http_info(id_user, opts)
803
1211
  data
@@ -808,7 +1216,7 @@ module BudgeaClient
808
1216
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
809
1217
  # @param [Hash] opts the optional parameters
810
1218
  # @option opts [String] :expand
811
- # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
1219
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
812
1220
  def users_id_user_investments_get_with_http_info(id_user, opts = {})
813
1221
  if @api_client.config.debugging
814
1222
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_investments_get ...'
@@ -843,7 +1251,7 @@ module BudgeaClient
843
1251
  :form_params => form_params,
844
1252
  :body => post_body,
845
1253
  :auth_names => auth_names,
846
- :return_type => 'InlineResponse20022')
1254
+ :return_type => 'InlineResponse20023')
847
1255
  if @api_client.config.debugging
848
1256
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_investments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
849
1257
  end
@@ -855,7 +1263,7 @@ module BudgeaClient
855
1263
  # @param id_investment
856
1264
  # @param [Hash] opts the optional parameters
857
1265
  # @option opts [String] :expand
858
- # @return [InlineResponse20023]
1266
+ # @return [InlineResponse20024]
859
1267
  def users_id_user_investments_id_investment_history_get(id_user, id_investment, opts = {})
860
1268
  data, _status_code, _headers = users_id_user_investments_id_investment_history_get_with_http_info(id_user, id_investment, opts)
861
1269
  data
@@ -867,7 +1275,7 @@ module BudgeaClient
867
1275
  # @param id_investment
868
1276
  # @param [Hash] opts the optional parameters
869
1277
  # @option opts [String] :expand
870
- # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
1278
+ # @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
871
1279
  def users_id_user_investments_id_investment_history_get_with_http_info(id_user, id_investment, opts = {})
872
1280
  if @api_client.config.debugging
873
1281
  @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_investments_id_investment_history_get ...'
@@ -906,12 +1314,75 @@ module BudgeaClient
906
1314
  :form_params => form_params,
907
1315
  :body => post_body,
908
1316
  :auth_names => auth_names,
909
- :return_type => 'InlineResponse20023')
1317
+ :return_type => 'InlineResponse20024')
910
1318
  if @api_client.config.debugging
911
1319
  @api_client.config.logger.debug "API called: WealthApi#users_id_user_investments_id_investment_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
912
1320
  end
913
1321
  return data, status_code, headers
914
1322
  end
1323
+ # Get pockets
1324
+ #
1325
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1326
+ # @param id_investment
1327
+ # @param [Hash] opts the optional parameters
1328
+ # @option opts [String] :expand
1329
+ # @return [InlineResponse20025]
1330
+ def users_id_user_investments_id_investment_pockets_get(id_user, id_investment, opts = {})
1331
+ data, _status_code, _headers = users_id_user_investments_id_investment_pockets_get_with_http_info(id_user, id_investment, opts)
1332
+ data
1333
+ end
1334
+
1335
+ # Get pockets
1336
+ #
1337
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1338
+ # @param id_investment
1339
+ # @param [Hash] opts the optional parameters
1340
+ # @option opts [String] :expand
1341
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
1342
+ def users_id_user_investments_id_investment_pockets_get_with_http_info(id_user, id_investment, opts = {})
1343
+ if @api_client.config.debugging
1344
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_investments_id_investment_pockets_get ...'
1345
+ end
1346
+ # verify the required parameter 'id_user' is set
1347
+ if @api_client.config.client_side_validation && id_user.nil?
1348
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_investments_id_investment_pockets_get"
1349
+ end
1350
+ # verify the required parameter 'id_investment' is set
1351
+ if @api_client.config.client_side_validation && id_investment.nil?
1352
+ fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_investments_id_investment_pockets_get"
1353
+ end
1354
+ # resource path
1355
+ local_var_path = '/users/{id_user}/investments/{id_investment}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
1356
+
1357
+ # query parameters
1358
+ query_params = {}
1359
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1360
+
1361
+ # header parameters
1362
+ header_params = {}
1363
+ # HTTP header 'Accept' (if needed)
1364
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1365
+ # HTTP header 'Content-Type'
1366
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1367
+
1368
+ # form parameters
1369
+ form_params = {}
1370
+
1371
+ # http body (model)
1372
+ post_body = nil
1373
+ auth_names = ['api_key']
1374
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1375
+ :header_params => header_params,
1376
+ :query_params => query_params,
1377
+ :form_params => form_params,
1378
+ :body => post_body,
1379
+ :auth_names => auth_names,
1380
+ :return_type => 'InlineResponse20025')
1381
+ if @api_client.config.debugging
1382
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_investments_id_investment_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1383
+ end
1384
+ return data, status_code, headers
1385
+ end
915
1386
  # Get connection logs
916
1387
  # Get logs about connections.<br><br>
917
1388
  # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
@@ -986,5 +1457,62 @@ module BudgeaClient
986
1457
  end
987
1458
  return data, status_code, headers
988
1459
  end
1460
+ # Get pockets
1461
+ #
1462
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1463
+ # @param [Hash] opts the optional parameters
1464
+ # @option opts [String] :expand
1465
+ # @return [InlineResponse20025]
1466
+ def users_id_user_pockets_get(id_user, opts = {})
1467
+ data, _status_code, _headers = users_id_user_pockets_get_with_http_info(id_user, opts)
1468
+ data
1469
+ end
1470
+
1471
+ # Get pockets
1472
+ #
1473
+ # @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39;
1474
+ # @param [Hash] opts the optional parameters
1475
+ # @option opts [String] :expand
1476
+ # @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
1477
+ def users_id_user_pockets_get_with_http_info(id_user, opts = {})
1478
+ if @api_client.config.debugging
1479
+ @api_client.config.logger.debug 'Calling API: WealthApi.users_id_user_pockets_get ...'
1480
+ end
1481
+ # verify the required parameter 'id_user' is set
1482
+ if @api_client.config.client_side_validation && id_user.nil?
1483
+ fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_pockets_get"
1484
+ end
1485
+ # resource path
1486
+ local_var_path = '/users/{id_user}/pockets'.sub('{' + 'id_user' + '}', id_user.to_s)
1487
+
1488
+ # query parameters
1489
+ query_params = {}
1490
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1491
+
1492
+ # header parameters
1493
+ header_params = {}
1494
+ # HTTP header 'Accept' (if needed)
1495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1496
+ # HTTP header 'Content-Type'
1497
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
1498
+
1499
+ # form parameters
1500
+ form_params = {}
1501
+
1502
+ # http body (model)
1503
+ post_body = nil
1504
+ auth_names = ['api_key']
1505
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1506
+ :header_params => header_params,
1507
+ :query_params => query_params,
1508
+ :form_params => form_params,
1509
+ :body => post_body,
1510
+ :auth_names => auth_names,
1511
+ :return_type => 'InlineResponse20025')
1512
+ if @api_client.config.debugging
1513
+ @api_client.config.logger.debug "API called: WealthApi#users_id_user_pockets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1514
+ end
1515
+ return data, status_code, headers
1516
+ end
989
1517
  end
990
1518
  end