budgea_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +89 -0
- data/README.md +619 -0
- data/Rakefile +13 -0
- data/budgea_client.gemspec +35 -0
- data/docs/Access.md +12 -0
- data/docs/Account.md +25 -0
- data/docs/AccountLog.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/AdministrationApi.md +944 -0
- data/docs/Alert.md +15 -0
- data/docs/AuthenticationApi.md +398 -0
- data/docs/Bank.md +18 -0
- data/docs/BankCategory.md +9 -0
- data/docs/BanksApi.md +6558 -0
- data/docs/Category.md +17 -0
- data/docs/Client.md +18 -0
- data/docs/Connection.md +16 -0
- data/docs/ConnectionContact.md +17 -0
- data/docs/ConnectionLog.md +21 -0
- data/docs/ConnectionsApi.md +934 -0
- data/docs/ConnectorLogo.md +11 -0
- data/docs/Currency.md +10 -0
- data/docs/Device.md +14 -0
- data/docs/Document.md +29 -0
- data/docs/DocumentType.md +10 -0
- data/docs/DocumentsApi.md +5228 -0
- data/docs/Field.md +15 -0
- data/docs/File.md +11 -0
- data/docs/Group.md +15 -0
- data/docs/HashTable.md +11 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +9 -0
- data/docs/InlineResponse20010.md +8 -0
- data/docs/InlineResponse20011.md +8 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse20013.md +8 -0
- data/docs/InlineResponse20014.md +8 -0
- data/docs/InlineResponse20015.md +8 -0
- data/docs/InlineResponse20016.md +8 -0
- data/docs/InlineResponse20017.md +8 -0
- data/docs/InlineResponse20018.md +8 -0
- data/docs/InlineResponse20019.md +8 -0
- data/docs/InlineResponse2002.md +10 -0
- data/docs/InlineResponse20020.md +8 -0
- data/docs/InlineResponse20021.md +8 -0
- data/docs/InlineResponse20022.md +8 -0
- data/docs/InlineResponse20023.md +8 -0
- data/docs/InlineResponse20024.md +8 -0
- data/docs/InlineResponse20025.md +8 -0
- data/docs/InlineResponse20026.md +8 -0
- data/docs/InlineResponse20027.md +8 -0
- data/docs/InlineResponse20028.md +8 -0
- data/docs/InlineResponse20029.md +8 -0
- data/docs/InlineResponse2003.md +10 -0
- data/docs/InlineResponse20030.md +8 -0
- data/docs/InlineResponse20031.md +8 -0
- data/docs/InlineResponse20032.md +8 -0
- data/docs/InlineResponse20033.md +8 -0
- data/docs/InlineResponse2004.md +12 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +10 -0
- data/docs/InlineResponse2007.md +8 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2009.md +8 -0
- data/docs/Investment.md +32 -0
- data/docs/InvestmentValue.md +13 -0
- data/docs/Invite.md +13 -0
- data/docs/LockedUser.md +10 -0
- data/docs/OCRApi.md +117 -0
- data/docs/OIDCApi.md +167 -0
- data/docs/OidcWhitelist.md +9 -0
- data/docs/PFMApi.md +2204 -0
- data/docs/Pocket.md +17 -0
- data/docs/Profile.md +15 -0
- data/docs/Project.md +16 -0
- data/docs/ProjectType.md +10 -0
- data/docs/ProvidersApi.md +7014 -0
- data/docs/Recipient.md +22 -0
- data/docs/RecipientsApi.md +244 -0
- data/docs/Security.md +12 -0
- data/docs/Subscription.md +18 -0
- data/docs/TermsApi.md +218 -0
- data/docs/TermsOfService.md +12 -0
- data/docs/Transaction.md +33 -0
- data/docs/TransactionInformation.md +11 -0
- data/docs/TransactionsCluster.md +16 -0
- data/docs/Transfer.md +23 -0
- data/docs/TransfersApi.md +2404 -0
- data/docs/User.md +10 -0
- data/docs/UserAlert.md +21 -0
- data/docs/UsersManagementApi.md +608 -0
- data/docs/WealthApi.md +828 -0
- data/docs/Webhook.md +15 -0
- data/git_push.sh +55 -0
- data/lib/budgea_client.rb +118 -0
- data/lib/budgea_client/api/administration_api.rb +1059 -0
- data/lib/budgea_client/api/authentication_api.rb +467 -0
- data/lib/budgea_client/api/banks_api.rb +7837 -0
- data/lib/budgea_client/api/connections_api.rb +1088 -0
- data/lib/budgea_client/api/documents_api.rb +6637 -0
- data/lib/budgea_client/api/ocr_api.rb +141 -0
- data/lib/budgea_client/api/oidc_api.rb +195 -0
- data/lib/budgea_client/api/pfm_api.rb +2630 -0
- data/lib/budgea_client/api/providers_api.rb +8694 -0
- data/lib/budgea_client/api/recipients_api.rb +293 -0
- data/lib/budgea_client/api/terms_api.rb +245 -0
- data/lib/budgea_client/api/transfers_api.rb +2941 -0
- data/lib/budgea_client/api/users_management_api.rb +695 -0
- data/lib/budgea_client/api/wealth_api.rb +994 -0
- data/lib/budgea_client/api_client.rb +378 -0
- data/lib/budgea_client/api_error.rb +28 -0
- data/lib/budgea_client/configuration.rb +192 -0
- data/lib/budgea_client/models/access.rb +224 -0
- data/lib/budgea_client/models/account.rb +383 -0
- data/lib/budgea_client/models/account_log.rb +266 -0
- data/lib/budgea_client/models/account_type.rb +281 -0
- data/lib/budgea_client/models/alert.rb +273 -0
- data/lib/budgea_client/models/bank.rb +308 -0
- data/lib/budgea_client/models/bank_category.rb +201 -0
- data/lib/budgea_client/models/category.rb +299 -0
- data/lib/budgea_client/models/client.rb +305 -0
- data/lib/budgea_client/models/connection.rb +276 -0
- data/lib/budgea_client/models/connection_contact.rb +274 -0
- data/lib/budgea_client/models/connection_log.rb +324 -0
- data/lib/budgea_client/models/connector_logo.rb +223 -0
- data/lib/budgea_client/models/currency.rb +216 -0
- data/lib/budgea_client/models/device.rb +269 -0
- data/lib/budgea_client/models/document.rb +398 -0
- data/lib/budgea_client/models/document_type.rb +213 -0
- data/lib/budgea_client/models/field.rb +273 -0
- data/lib/budgea_client/models/file.rb +225 -0
- data/lib/budgea_client/models/group.rb +246 -0
- data/lib/budgea_client/models/hash_table.rb +227 -0
- data/lib/budgea_client/models/inline_response_200.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_1.rb +199 -0
- data/lib/budgea_client/models/inline_response_200_10.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_11.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_12.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_13.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_14.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_15.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_16.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_17.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_18.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_19.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_2.rb +209 -0
- data/lib/budgea_client/models/inline_response_200_20.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_21.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_22.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_23.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_24.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_25.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_26.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_27.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_28.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_29.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_3.rb +214 -0
- data/lib/budgea_client/models/inline_response_200_30.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_31.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_32.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_33.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +239 -0
- data/lib/budgea_client/models/inline_response_200_5.rb +199 -0
- data/lib/budgea_client/models/inline_response_200_6.rb +214 -0
- data/lib/budgea_client/models/inline_response_200_7.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_8.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_9.rb +185 -0
- data/lib/budgea_client/models/investment.rb +449 -0
- data/lib/budgea_client/models/investment_value.rb +249 -0
- data/lib/budgea_client/models/invite.rb +233 -0
- data/lib/budgea_client/models/locked_user.rb +206 -0
- data/lib/budgea_client/models/oidc_whitelist.rb +198 -0
- data/lib/budgea_client/models/pocket.rb +298 -0
- data/lib/budgea_client/models/profile.rb +308 -0
- data/lib/budgea_client/models/project.rb +301 -0
- data/lib/budgea_client/models/project_type.rb +206 -0
- data/lib/budgea_client/models/recipient.rb +343 -0
- data/lib/budgea_client/models/security.rb +229 -0
- data/lib/budgea_client/models/subscription.rb +299 -0
- data/lib/budgea_client/models/terms_of_service.rb +229 -0
- data/lib/budgea_client/models/transaction.rb +507 -0
- data/lib/budgea_client/models/transaction_information.rb +224 -0
- data/lib/budgea_client/models/transactions_cluster.rb +277 -0
- data/lib/budgea_client/models/transfer.rb +354 -0
- data/lib/budgea_client/models/user.rb +244 -0
- data/lib/budgea_client/models/user_alert.rb +333 -0
- data/lib/budgea_client/models/webhook.rb +264 -0
- data/lib/budgea_client/version.rb +5 -0
- data/pkg/budgea_client-1.0.0.gem +0 -0
- data/spec/api/administration_api_spec.rb +271 -0
- data/spec/api/authentication_api_spec.rb +126 -0
- data/spec/api/banks_api_spec.rb +1787 -0
- data/spec/api/connections_api_spec.rb +279 -0
- data/spec/api/documents_api_spec.rb +1557 -0
- data/spec/api/ocr_api_spec.rb +54 -0
- data/spec/api/oidc_api_spec.rb +65 -0
- data/spec/api/pfm_api_spec.rb +613 -0
- data/spec/api/providers_api_spec.rb +2029 -0
- data/spec/api/recipients_api_spec.rb +89 -0
- data/spec/api/terms_api_spec.rb +79 -0
- data/spec/api/transfers_api_spec.rb +661 -0
- data/spec/api/users_management_api_spec.rb +177 -0
- data/spec/api/wealth_api_spec.rb +246 -0
- data/spec/api_client_spec.rb +216 -0
- data/spec/configuration_spec.rb +32 -0
- data/spec/models/access_spec.rb +56 -0
- data/spec/models/account_log_spec.rb +74 -0
- data/spec/models/account_spec.rb +134 -0
- data/spec/models/account_type_spec.rb +74 -0
- data/spec/models/alert_spec.rb +74 -0
- data/spec/models/bank_category_spec.rb +38 -0
- data/spec/models/bank_spec.rb +92 -0
- data/spec/models/category_spec.rb +86 -0
- data/spec/models/client_spec.rb +92 -0
- data/spec/models/connection_contact_spec.rb +86 -0
- data/spec/models/connection_log_spec.rb +110 -0
- data/spec/models/connection_spec.rb +80 -0
- data/spec/models/connector_logo_spec.rb +50 -0
- data/spec/models/currency_spec.rb +44 -0
- data/spec/models/device_spec.rb +68 -0
- data/spec/models/document_spec.rb +158 -0
- data/spec/models/document_type_spec.rb +44 -0
- data/spec/models/field_spec.rb +74 -0
- data/spec/models/file_spec.rb +50 -0
- data/spec/models/group_spec.rb +74 -0
- data/spec/models/hash_table_spec.rb +50 -0
- data/spec/models/inline_response_200_10_spec.rb +32 -0
- data/spec/models/inline_response_200_11_spec.rb +32 -0
- data/spec/models/inline_response_200_12_spec.rb +32 -0
- data/spec/models/inline_response_200_13_spec.rb +32 -0
- data/spec/models/inline_response_200_14_spec.rb +32 -0
- data/spec/models/inline_response_200_15_spec.rb +32 -0
- data/spec/models/inline_response_200_16_spec.rb +32 -0
- data/spec/models/inline_response_200_17_spec.rb +32 -0
- data/spec/models/inline_response_200_18_spec.rb +32 -0
- data/spec/models/inline_response_200_19_spec.rb +32 -0
- data/spec/models/inline_response_200_1_spec.rb +38 -0
- data/spec/models/inline_response_200_20_spec.rb +32 -0
- data/spec/models/inline_response_200_21_spec.rb +32 -0
- data/spec/models/inline_response_200_22_spec.rb +32 -0
- data/spec/models/inline_response_200_23_spec.rb +32 -0
- data/spec/models/inline_response_200_24_spec.rb +32 -0
- data/spec/models/inline_response_200_25_spec.rb +32 -0
- data/spec/models/inline_response_200_26_spec.rb +32 -0
- data/spec/models/inline_response_200_27_spec.rb +32 -0
- data/spec/models/inline_response_200_28_spec.rb +32 -0
- data/spec/models/inline_response_200_29_spec.rb +32 -0
- data/spec/models/inline_response_200_2_spec.rb +44 -0
- data/spec/models/inline_response_200_30_spec.rb +32 -0
- data/spec/models/inline_response_200_31_spec.rb +32 -0
- data/spec/models/inline_response_200_32_spec.rb +32 -0
- data/spec/models/inline_response_200_33_spec.rb +32 -0
- data/spec/models/inline_response_200_3_spec.rb +44 -0
- data/spec/models/inline_response_200_4_spec.rb +56 -0
- data/spec/models/inline_response_200_5_spec.rb +38 -0
- data/spec/models/inline_response_200_6_spec.rb +44 -0
- data/spec/models/inline_response_200_7_spec.rb +32 -0
- data/spec/models/inline_response_200_8_spec.rb +32 -0
- data/spec/models/inline_response_200_9_spec.rb +32 -0
- data/spec/models/inline_response_200_spec.rb +32 -0
- data/spec/models/investment_spec.rb +176 -0
- data/spec/models/investment_value_spec.rb +62 -0
- data/spec/models/invite_spec.rb +62 -0
- data/spec/models/locked_user_spec.rb +44 -0
- data/spec/models/oidc_whitelist_spec.rb +38 -0
- data/spec/models/pocket_spec.rb +86 -0
- data/spec/models/profile_spec.rb +78 -0
- data/spec/models/project_spec.rb +80 -0
- data/spec/models/project_type_spec.rb +44 -0
- data/spec/models/recipient_spec.rb +116 -0
- data/spec/models/security_spec.rb +56 -0
- data/spec/models/subscription_spec.rb +92 -0
- data/spec/models/terms_of_service_spec.rb +56 -0
- data/spec/models/transaction_information_spec.rb +50 -0
- data/spec/models/transaction_spec.rb +182 -0
- data/spec/models/transactions_cluster_spec.rb +80 -0
- data/spec/models/transfer_spec.rb +122 -0
- data/spec/models/user_alert_spec.rb +110 -0
- data/spec/models/user_spec.rb +48 -0
- data/spec/models/webhook_spec.rb +74 -0
- data/spec/spec_helper.rb +51 -0
- metadata +599 -0
@@ -0,0 +1,994 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "uri"
|
4
|
+
|
5
|
+
module BudgeaClient
|
6
|
+
class WealthApi
|
7
|
+
attr_accessor :api_client
|
8
|
+
|
9
|
+
def initialize(api_client = ApiClient.default)
|
10
|
+
@api_client = api_client
|
11
|
+
end
|
12
|
+
|
13
|
+
# Get securities
|
14
|
+
#
|
15
|
+
# @param [Hash] opts the optional parameters
|
16
|
+
# @option opts [String] :expand
|
17
|
+
# @return [InlineResponse20014]
|
18
|
+
def finance_securities_get(opts = {})
|
19
|
+
data, _status_code, _headers = finance_securities_get_with_http_info(opts)
|
20
|
+
return data
|
21
|
+
end
|
22
|
+
|
23
|
+
# Get securities
|
24
|
+
#
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :expand
|
27
|
+
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
28
|
+
def finance_securities_get_with_http_info(opts = {})
|
29
|
+
if @api_client.config.debugging
|
30
|
+
@api_client.config.logger.debug "Calling API: WealthApi.finance_securities_get ..."
|
31
|
+
end
|
32
|
+
# resource path
|
33
|
+
local_var_path = "/finance/securities"
|
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 => 'InlineResponse20014')
|
59
|
+
if @api_client.config.debugging
|
60
|
+
@api_client.config.logger.debug "API called: WealthApi#finance_securities_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
61
|
+
end
|
62
|
+
return data, status_code, headers
|
63
|
+
end
|
64
|
+
|
65
|
+
# Get connection logs
|
66
|
+
# Get logs about connections.<br><br>
|
67
|
+
# @param id_security
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [Integer] :limit limit number of results
|
70
|
+
# @option opts [Integer] :offset offset of first result
|
71
|
+
# @option opts [Date] :min_date minimal date
|
72
|
+
# @option opts [Date] :max_date maximum date
|
73
|
+
# @option opts [String] :period period to group logs
|
74
|
+
# @return [nil]
|
75
|
+
def finance_securities_id_security_history_get(id_security, opts = {})
|
76
|
+
finance_securities_id_security_history_get_with_http_info(id_security, opts)
|
77
|
+
return nil
|
78
|
+
end
|
79
|
+
|
80
|
+
# Get connection logs
|
81
|
+
# Get logs about connections.<br><br>
|
82
|
+
# @param id_security
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @option opts [Integer] :limit limit number of results
|
85
|
+
# @option opts [Integer] :offset offset of first result
|
86
|
+
# @option opts [Date] :min_date minimal date
|
87
|
+
# @option opts [Date] :max_date maximum date
|
88
|
+
# @option opts [String] :period period to group logs
|
89
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
90
|
+
def finance_securities_id_security_history_get_with_http_info(id_security, opts = {})
|
91
|
+
if @api_client.config.debugging
|
92
|
+
@api_client.config.logger.debug "Calling API: WealthApi.finance_securities_id_security_history_get ..."
|
93
|
+
end
|
94
|
+
# verify the required parameter 'id_security' is set
|
95
|
+
if @api_client.config.client_side_validation && id_security.nil?
|
96
|
+
fail ArgumentError, "Missing the required parameter 'id_security' when calling WealthApi.finance_securities_id_security_history_get"
|
97
|
+
end
|
98
|
+
# resource path
|
99
|
+
local_var_path = "/finance/securities/{id_security}/history".sub('{' + 'id_security' + '}', id_security.to_s)
|
100
|
+
|
101
|
+
# query parameters
|
102
|
+
query_params = {}
|
103
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
104
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
105
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
106
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
107
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
108
|
+
|
109
|
+
# header parameters
|
110
|
+
header_params = {}
|
111
|
+
# HTTP header 'Accept' (if needed)
|
112
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
113
|
+
# HTTP header 'Content-Type'
|
114
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
115
|
+
|
116
|
+
# form parameters
|
117
|
+
form_params = {}
|
118
|
+
|
119
|
+
# http body (model)
|
120
|
+
post_body = nil
|
121
|
+
auth_names = []
|
122
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
123
|
+
:header_params => header_params,
|
124
|
+
:query_params => query_params,
|
125
|
+
:form_params => form_params,
|
126
|
+
:body => post_body,
|
127
|
+
:auth_names => auth_names)
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug "API called: WealthApi#finance_securities_id_security_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
130
|
+
end
|
131
|
+
return data, status_code, headers
|
132
|
+
end
|
133
|
+
|
134
|
+
# Get investments
|
135
|
+
#
|
136
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
137
|
+
# @param id_account
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @option opts [String] :expand
|
140
|
+
# @return [InlineResponse20019]
|
141
|
+
def users_id_user_accounts_id_account_investments_get(id_user, id_account, opts = {})
|
142
|
+
data, _status_code, _headers = users_id_user_accounts_id_account_investments_get_with_http_info(id_user, id_account, opts)
|
143
|
+
return data
|
144
|
+
end
|
145
|
+
|
146
|
+
# Get investments
|
147
|
+
#
|
148
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
149
|
+
# @param id_account
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :expand
|
152
|
+
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
153
|
+
def users_id_user_accounts_id_account_investments_get_with_http_info(id_user, id_account, opts = {})
|
154
|
+
if @api_client.config.debugging
|
155
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_accounts_id_account_investments_get ..."
|
156
|
+
end
|
157
|
+
# verify the required parameter 'id_user' is set
|
158
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
159
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_accounts_id_account_investments_get"
|
160
|
+
end
|
161
|
+
# verify the required parameter 'id_account' is set
|
162
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
163
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_accounts_id_account_investments_get"
|
164
|
+
end
|
165
|
+
# resource path
|
166
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/investments".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
167
|
+
|
168
|
+
# query parameters
|
169
|
+
query_params = {}
|
170
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
171
|
+
|
172
|
+
# header parameters
|
173
|
+
header_params = {}
|
174
|
+
# HTTP header 'Accept' (if needed)
|
175
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
176
|
+
# HTTP header 'Content-Type'
|
177
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
178
|
+
|
179
|
+
# form parameters
|
180
|
+
form_params = {}
|
181
|
+
|
182
|
+
# http body (model)
|
183
|
+
post_body = nil
|
184
|
+
auth_names = []
|
185
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
186
|
+
:header_params => header_params,
|
187
|
+
:query_params => query_params,
|
188
|
+
:form_params => form_params,
|
189
|
+
:body => post_body,
|
190
|
+
:auth_names => auth_names,
|
191
|
+
:return_type => 'InlineResponse20019')
|
192
|
+
if @api_client.config.debugging
|
193
|
+
@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}"
|
194
|
+
end
|
195
|
+
return data, status_code, headers
|
196
|
+
end
|
197
|
+
|
198
|
+
# Get investment values
|
199
|
+
#
|
200
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
201
|
+
# @param id_account
|
202
|
+
# @param id_investment
|
203
|
+
# @param [Hash] opts the optional parameters
|
204
|
+
# @option opts [String] :expand
|
205
|
+
# @return [InlineResponse20020]
|
206
|
+
def users_id_user_accounts_id_account_investments_id_investment_history_get(id_user, id_account, id_investment, opts = {})
|
207
|
+
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)
|
208
|
+
return data
|
209
|
+
end
|
210
|
+
|
211
|
+
# Get investment values
|
212
|
+
#
|
213
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
214
|
+
# @param id_account
|
215
|
+
# @param id_investment
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @option opts [String] :expand
|
218
|
+
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
219
|
+
def users_id_user_accounts_id_account_investments_id_investment_history_get_with_http_info(id_user, id_account, id_investment, opts = {})
|
220
|
+
if @api_client.config.debugging
|
221
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_accounts_id_account_investments_id_investment_history_get ..."
|
222
|
+
end
|
223
|
+
# verify the required parameter 'id_user' is set
|
224
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
225
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_history_get"
|
226
|
+
end
|
227
|
+
# verify the required parameter 'id_account' is set
|
228
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
229
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_history_get"
|
230
|
+
end
|
231
|
+
# verify the required parameter 'id_investment' is set
|
232
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_history_get"
|
234
|
+
end
|
235
|
+
# resource path
|
236
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/investments/{id_investment}/history".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
|
237
|
+
|
238
|
+
# query parameters
|
239
|
+
query_params = {}
|
240
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
241
|
+
|
242
|
+
# header parameters
|
243
|
+
header_params = {}
|
244
|
+
# HTTP header 'Accept' (if needed)
|
245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
246
|
+
# HTTP header 'Content-Type'
|
247
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
248
|
+
|
249
|
+
# form parameters
|
250
|
+
form_params = {}
|
251
|
+
|
252
|
+
# http body (model)
|
253
|
+
post_body = nil
|
254
|
+
auth_names = []
|
255
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
256
|
+
:header_params => header_params,
|
257
|
+
:query_params => query_params,
|
258
|
+
:form_params => form_params,
|
259
|
+
:body => post_body,
|
260
|
+
:auth_names => auth_names,
|
261
|
+
:return_type => 'InlineResponse20020')
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@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}"
|
264
|
+
end
|
265
|
+
return data, status_code, headers
|
266
|
+
end
|
267
|
+
|
268
|
+
# Get connection logs
|
269
|
+
# Get logs about connections.<br><br>
|
270
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
271
|
+
# @param id_account
|
272
|
+
# @param id_investment
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @option opts [Integer] :limit limit number of results
|
275
|
+
# @option opts [Integer] :offset offset of first result
|
276
|
+
# @option opts [Date] :min_date minimal date
|
277
|
+
# @option opts [Date] :max_date maximum date
|
278
|
+
# @option opts [String] :period period to group logs
|
279
|
+
# @return [nil]
|
280
|
+
def users_id_user_accounts_id_account_investments_id_investment_security_history_get(id_user, id_account, id_investment, opts = {})
|
281
|
+
users_id_user_accounts_id_account_investments_id_investment_security_history_get_with_http_info(id_user, id_account, id_investment, opts)
|
282
|
+
return nil
|
283
|
+
end
|
284
|
+
|
285
|
+
# Get connection logs
|
286
|
+
# Get logs about connections.<br><br>
|
287
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
288
|
+
# @param id_account
|
289
|
+
# @param id_investment
|
290
|
+
# @param [Hash] opts the optional parameters
|
291
|
+
# @option opts [Integer] :limit limit number of results
|
292
|
+
# @option opts [Integer] :offset offset of first result
|
293
|
+
# @option opts [Date] :min_date minimal date
|
294
|
+
# @option opts [Date] :max_date maximum date
|
295
|
+
# @option opts [String] :period period to group logs
|
296
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
297
|
+
def users_id_user_accounts_id_account_investments_id_investment_security_history_get_with_http_info(id_user, id_account, id_investment, opts = {})
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_accounts_id_account_investments_id_investment_security_history_get ..."
|
300
|
+
end
|
301
|
+
# verify the required parameter 'id_user' is set
|
302
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
303
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_security_history_get"
|
304
|
+
end
|
305
|
+
# verify the required parameter 'id_account' is set
|
306
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_security_history_get"
|
308
|
+
end
|
309
|
+
# verify the required parameter 'id_investment' is set
|
310
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_accounts_id_account_investments_id_investment_security_history_get"
|
312
|
+
end
|
313
|
+
# resource path
|
314
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/investments/{id_investment}/security/history".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
|
315
|
+
|
316
|
+
# query parameters
|
317
|
+
query_params = {}
|
318
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
319
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
320
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
321
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
322
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
323
|
+
|
324
|
+
# header parameters
|
325
|
+
header_params = {}
|
326
|
+
# HTTP header 'Accept' (if needed)
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
328
|
+
# HTTP header 'Content-Type'
|
329
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
330
|
+
|
331
|
+
# form parameters
|
332
|
+
form_params = {}
|
333
|
+
|
334
|
+
# http body (model)
|
335
|
+
post_body = nil
|
336
|
+
auth_names = []
|
337
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
338
|
+
:header_params => header_params,
|
339
|
+
:query_params => query_params,
|
340
|
+
:form_params => form_params,
|
341
|
+
:body => post_body,
|
342
|
+
:auth_names => auth_names)
|
343
|
+
if @api_client.config.debugging
|
344
|
+
@api_client.config.logger.debug "API called: WealthApi#users_id_user_accounts_id_account_investments_id_investment_security_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
345
|
+
end
|
346
|
+
return data, status_code, headers
|
347
|
+
end
|
348
|
+
|
349
|
+
# Get investments
|
350
|
+
#
|
351
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
352
|
+
# @param id_connection
|
353
|
+
# @param id_account
|
354
|
+
# @param [Hash] opts the optional parameters
|
355
|
+
# @option opts [String] :expand
|
356
|
+
# @return [InlineResponse20019]
|
357
|
+
def users_id_user_connections_id_connection_accounts_id_account_investments_get(id_user, id_connection, id_account, opts = {})
|
358
|
+
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)
|
359
|
+
return data
|
360
|
+
end
|
361
|
+
|
362
|
+
# Get investments
|
363
|
+
#
|
364
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
365
|
+
# @param id_connection
|
366
|
+
# @param id_account
|
367
|
+
# @param [Hash] opts the optional parameters
|
368
|
+
# @option opts [String] :expand
|
369
|
+
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
370
|
+
def users_id_user_connections_id_connection_accounts_id_account_investments_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
371
|
+
if @api_client.config.debugging
|
372
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_get ..."
|
373
|
+
end
|
374
|
+
# verify the required parameter 'id_user' is set
|
375
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
376
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_get"
|
377
|
+
end
|
378
|
+
# verify the required parameter 'id_connection' is set
|
379
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
380
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_get"
|
381
|
+
end
|
382
|
+
# verify the required parameter 'id_account' is set
|
383
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
384
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_get"
|
385
|
+
end
|
386
|
+
# resource path
|
387
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/investments".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
388
|
+
|
389
|
+
# query parameters
|
390
|
+
query_params = {}
|
391
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
392
|
+
|
393
|
+
# header parameters
|
394
|
+
header_params = {}
|
395
|
+
# HTTP header 'Accept' (if needed)
|
396
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
397
|
+
# HTTP header 'Content-Type'
|
398
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
399
|
+
|
400
|
+
# form parameters
|
401
|
+
form_params = {}
|
402
|
+
|
403
|
+
# http body (model)
|
404
|
+
post_body = nil
|
405
|
+
auth_names = []
|
406
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
407
|
+
:header_params => header_params,
|
408
|
+
:query_params => query_params,
|
409
|
+
:form_params => form_params,
|
410
|
+
:body => post_body,
|
411
|
+
:auth_names => auth_names,
|
412
|
+
:return_type => 'InlineResponse20019')
|
413
|
+
if @api_client.config.debugging
|
414
|
+
@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}"
|
415
|
+
end
|
416
|
+
return data, status_code, headers
|
417
|
+
end
|
418
|
+
|
419
|
+
# Get investment values
|
420
|
+
#
|
421
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
422
|
+
# @param id_connection
|
423
|
+
# @param id_account
|
424
|
+
# @param id_investment
|
425
|
+
# @param [Hash] opts the optional parameters
|
426
|
+
# @option opts [String] :expand
|
427
|
+
# @return [InlineResponse20020]
|
428
|
+
def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get(id_user, id_connection, id_account, id_investment, opts = {})
|
429
|
+
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)
|
430
|
+
return data
|
431
|
+
end
|
432
|
+
|
433
|
+
# Get investment values
|
434
|
+
#
|
435
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
436
|
+
# @param id_connection
|
437
|
+
# @param id_account
|
438
|
+
# @param id_investment
|
439
|
+
# @param [Hash] opts the optional parameters
|
440
|
+
# @option opts [String] :expand
|
441
|
+
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
442
|
+
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 = {})
|
443
|
+
if @api_client.config.debugging
|
444
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get ..."
|
445
|
+
end
|
446
|
+
# verify the required parameter 'id_user' is set
|
447
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
448
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get"
|
449
|
+
end
|
450
|
+
# verify the required parameter 'id_connection' is set
|
451
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
452
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get"
|
453
|
+
end
|
454
|
+
# verify the required parameter 'id_account' is set
|
455
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
456
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get"
|
457
|
+
end
|
458
|
+
# verify the required parameter 'id_investment' is set
|
459
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
460
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get"
|
461
|
+
end
|
462
|
+
# resource path
|
463
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/investments/{id_investment}/history".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)
|
464
|
+
|
465
|
+
# query parameters
|
466
|
+
query_params = {}
|
467
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
468
|
+
|
469
|
+
# header parameters
|
470
|
+
header_params = {}
|
471
|
+
# HTTP header 'Accept' (if needed)
|
472
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
473
|
+
# HTTP header 'Content-Type'
|
474
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
475
|
+
|
476
|
+
# form parameters
|
477
|
+
form_params = {}
|
478
|
+
|
479
|
+
# http body (model)
|
480
|
+
post_body = nil
|
481
|
+
auth_names = []
|
482
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
483
|
+
:header_params => header_params,
|
484
|
+
:query_params => query_params,
|
485
|
+
:form_params => form_params,
|
486
|
+
:body => post_body,
|
487
|
+
:auth_names => auth_names,
|
488
|
+
:return_type => 'InlineResponse20020')
|
489
|
+
if @api_client.config.debugging
|
490
|
+
@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}"
|
491
|
+
end
|
492
|
+
return data, status_code, headers
|
493
|
+
end
|
494
|
+
|
495
|
+
# Get connection logs
|
496
|
+
# Get logs about connections.<br><br>
|
497
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
498
|
+
# @param id_connection
|
499
|
+
# @param id_account
|
500
|
+
# @param id_investment
|
501
|
+
# @param [Hash] opts the optional parameters
|
502
|
+
# @option opts [Integer] :limit limit number of results
|
503
|
+
# @option opts [Integer] :offset offset of first result
|
504
|
+
# @option opts [Date] :min_date minimal date
|
505
|
+
# @option opts [Date] :max_date maximum date
|
506
|
+
# @option opts [String] :period period to group logs
|
507
|
+
# @return [nil]
|
508
|
+
def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get(id_user, id_connection, id_account, id_investment, opts = {})
|
509
|
+
users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get_with_http_info(id_user, id_connection, id_account, id_investment, opts)
|
510
|
+
return nil
|
511
|
+
end
|
512
|
+
|
513
|
+
# Get connection logs
|
514
|
+
# Get logs about connections.<br><br>
|
515
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
516
|
+
# @param id_connection
|
517
|
+
# @param id_account
|
518
|
+
# @param id_investment
|
519
|
+
# @param [Hash] opts the optional parameters
|
520
|
+
# @option opts [Integer] :limit limit number of results
|
521
|
+
# @option opts [Integer] :offset offset of first result
|
522
|
+
# @option opts [Date] :min_date minimal date
|
523
|
+
# @option opts [Date] :max_date maximum date
|
524
|
+
# @option opts [String] :period period to group logs
|
525
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
526
|
+
def users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get_with_http_info(id_user, id_connection, id_account, id_investment, opts = {})
|
527
|
+
if @api_client.config.debugging
|
528
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get ..."
|
529
|
+
end
|
530
|
+
# verify the required parameter 'id_user' is set
|
531
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
532
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get"
|
533
|
+
end
|
534
|
+
# verify the required parameter 'id_connection' is set
|
535
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
536
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get"
|
537
|
+
end
|
538
|
+
# verify the required parameter 'id_account' is set
|
539
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
540
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get"
|
541
|
+
end
|
542
|
+
# verify the required parameter 'id_investment' is set
|
543
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
544
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get"
|
545
|
+
end
|
546
|
+
# resource path
|
547
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/investments/{id_investment}/security/history".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)
|
548
|
+
|
549
|
+
# query parameters
|
550
|
+
query_params = {}
|
551
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
552
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
553
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
554
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
555
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
556
|
+
|
557
|
+
# header parameters
|
558
|
+
header_params = {}
|
559
|
+
# HTTP header 'Accept' (if needed)
|
560
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
561
|
+
# HTTP header 'Content-Type'
|
562
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
563
|
+
|
564
|
+
# form parameters
|
565
|
+
form_params = {}
|
566
|
+
|
567
|
+
# http body (model)
|
568
|
+
post_body = nil
|
569
|
+
auth_names = []
|
570
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
571
|
+
:header_params => header_params,
|
572
|
+
:query_params => query_params,
|
573
|
+
:form_params => form_params,
|
574
|
+
:body => post_body,
|
575
|
+
:auth_names => auth_names)
|
576
|
+
if @api_client.config.debugging
|
577
|
+
@api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
578
|
+
end
|
579
|
+
return data, status_code, headers
|
580
|
+
end
|
581
|
+
|
582
|
+
# Get investments
|
583
|
+
#
|
584
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
585
|
+
# @param id_connection
|
586
|
+
# @param [Hash] opts the optional parameters
|
587
|
+
# @option opts [String] :expand
|
588
|
+
# @return [InlineResponse20019]
|
589
|
+
def users_id_user_connections_id_connection_investments_get(id_user, id_connection, opts = {})
|
590
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_investments_get_with_http_info(id_user, id_connection, opts)
|
591
|
+
return data
|
592
|
+
end
|
593
|
+
|
594
|
+
# Get investments
|
595
|
+
#
|
596
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
597
|
+
# @param id_connection
|
598
|
+
# @param [Hash] opts the optional parameters
|
599
|
+
# @option opts [String] :expand
|
600
|
+
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
601
|
+
def users_id_user_connections_id_connection_investments_get_with_http_info(id_user, id_connection, opts = {})
|
602
|
+
if @api_client.config.debugging
|
603
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_connections_id_connection_investments_get ..."
|
604
|
+
end
|
605
|
+
# verify the required parameter 'id_user' is set
|
606
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
607
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_investments_get"
|
608
|
+
end
|
609
|
+
# verify the required parameter 'id_connection' is set
|
610
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
611
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_investments_get"
|
612
|
+
end
|
613
|
+
# resource path
|
614
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/investments".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
615
|
+
|
616
|
+
# query parameters
|
617
|
+
query_params = {}
|
618
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
619
|
+
|
620
|
+
# header parameters
|
621
|
+
header_params = {}
|
622
|
+
# HTTP header 'Accept' (if needed)
|
623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
624
|
+
# HTTP header 'Content-Type'
|
625
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
626
|
+
|
627
|
+
# form parameters
|
628
|
+
form_params = {}
|
629
|
+
|
630
|
+
# http body (model)
|
631
|
+
post_body = nil
|
632
|
+
auth_names = []
|
633
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
634
|
+
:header_params => header_params,
|
635
|
+
:query_params => query_params,
|
636
|
+
:form_params => form_params,
|
637
|
+
:body => post_body,
|
638
|
+
:auth_names => auth_names,
|
639
|
+
:return_type => 'InlineResponse20019')
|
640
|
+
if @api_client.config.debugging
|
641
|
+
@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}"
|
642
|
+
end
|
643
|
+
return data, status_code, headers
|
644
|
+
end
|
645
|
+
|
646
|
+
# Get investment values
|
647
|
+
#
|
648
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
649
|
+
# @param id_connection
|
650
|
+
# @param id_investment
|
651
|
+
# @param [Hash] opts the optional parameters
|
652
|
+
# @option opts [String] :expand
|
653
|
+
# @return [InlineResponse20020]
|
654
|
+
def users_id_user_connections_id_connection_investments_id_investment_history_get(id_user, id_connection, id_investment, opts = {})
|
655
|
+
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
|
+
return data
|
657
|
+
end
|
658
|
+
|
659
|
+
# Get investment values
|
660
|
+
#
|
661
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
662
|
+
# @param id_connection
|
663
|
+
# @param id_investment
|
664
|
+
# @param [Hash] opts the optional parameters
|
665
|
+
# @option opts [String] :expand
|
666
|
+
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
667
|
+
def users_id_user_connections_id_connection_investments_id_investment_history_get_with_http_info(id_user, id_connection, id_investment, opts = {})
|
668
|
+
if @api_client.config.debugging
|
669
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_connections_id_connection_investments_id_investment_history_get ..."
|
670
|
+
end
|
671
|
+
# verify the required parameter 'id_user' is set
|
672
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
673
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_history_get"
|
674
|
+
end
|
675
|
+
# verify the required parameter 'id_connection' is set
|
676
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
677
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_history_get"
|
678
|
+
end
|
679
|
+
# verify the required parameter 'id_investment' is set
|
680
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
681
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_history_get"
|
682
|
+
end
|
683
|
+
# resource path
|
684
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/investments/{id_investment}/history".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
|
685
|
+
|
686
|
+
# query parameters
|
687
|
+
query_params = {}
|
688
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
689
|
+
|
690
|
+
# header parameters
|
691
|
+
header_params = {}
|
692
|
+
# HTTP header 'Accept' (if needed)
|
693
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
694
|
+
# HTTP header 'Content-Type'
|
695
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
696
|
+
|
697
|
+
# form parameters
|
698
|
+
form_params = {}
|
699
|
+
|
700
|
+
# http body (model)
|
701
|
+
post_body = nil
|
702
|
+
auth_names = []
|
703
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
704
|
+
:header_params => header_params,
|
705
|
+
:query_params => query_params,
|
706
|
+
:form_params => form_params,
|
707
|
+
:body => post_body,
|
708
|
+
:auth_names => auth_names,
|
709
|
+
:return_type => 'InlineResponse20020')
|
710
|
+
if @api_client.config.debugging
|
711
|
+
@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
|
+
end
|
713
|
+
return data, status_code, headers
|
714
|
+
end
|
715
|
+
|
716
|
+
# Get connection logs
|
717
|
+
# Get logs about connections.<br><br>
|
718
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
719
|
+
# @param id_connection
|
720
|
+
# @param id_investment
|
721
|
+
# @param [Hash] opts the optional parameters
|
722
|
+
# @option opts [Integer] :limit limit number of results
|
723
|
+
# @option opts [Integer] :offset offset of first result
|
724
|
+
# @option opts [Date] :min_date minimal date
|
725
|
+
# @option opts [Date] :max_date maximum date
|
726
|
+
# @option opts [String] :period period to group logs
|
727
|
+
# @return [nil]
|
728
|
+
def users_id_user_connections_id_connection_investments_id_investment_security_history_get(id_user, id_connection, id_investment, opts = {})
|
729
|
+
users_id_user_connections_id_connection_investments_id_investment_security_history_get_with_http_info(id_user, id_connection, id_investment, opts)
|
730
|
+
return nil
|
731
|
+
end
|
732
|
+
|
733
|
+
# Get connection logs
|
734
|
+
# Get logs about connections.<br><br>
|
735
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
736
|
+
# @param id_connection
|
737
|
+
# @param id_investment
|
738
|
+
# @param [Hash] opts the optional parameters
|
739
|
+
# @option opts [Integer] :limit limit number of results
|
740
|
+
# @option opts [Integer] :offset offset of first result
|
741
|
+
# @option opts [Date] :min_date minimal date
|
742
|
+
# @option opts [Date] :max_date maximum date
|
743
|
+
# @option opts [String] :period period to group logs
|
744
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
745
|
+
def users_id_user_connections_id_connection_investments_id_investment_security_history_get_with_http_info(id_user, id_connection, id_investment, opts = {})
|
746
|
+
if @api_client.config.debugging
|
747
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_connections_id_connection_investments_id_investment_security_history_get ..."
|
748
|
+
end
|
749
|
+
# verify the required parameter 'id_user' is set
|
750
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
751
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_security_history_get"
|
752
|
+
end
|
753
|
+
# verify the required parameter 'id_connection' is set
|
754
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
755
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_security_history_get"
|
756
|
+
end
|
757
|
+
# verify the required parameter 'id_investment' is set
|
758
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
759
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_connections_id_connection_investments_id_investment_security_history_get"
|
760
|
+
end
|
761
|
+
# resource path
|
762
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/investments/{id_investment}/security/history".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
|
763
|
+
|
764
|
+
# query parameters
|
765
|
+
query_params = {}
|
766
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
767
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
768
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
769
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
770
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
771
|
+
|
772
|
+
# header parameters
|
773
|
+
header_params = {}
|
774
|
+
# HTTP header 'Accept' (if needed)
|
775
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
776
|
+
# HTTP header 'Content-Type'
|
777
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
778
|
+
|
779
|
+
# form parameters
|
780
|
+
form_params = {}
|
781
|
+
|
782
|
+
# http body (model)
|
783
|
+
post_body = nil
|
784
|
+
auth_names = []
|
785
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
786
|
+
:header_params => header_params,
|
787
|
+
:query_params => query_params,
|
788
|
+
:form_params => form_params,
|
789
|
+
:body => post_body,
|
790
|
+
:auth_names => auth_names)
|
791
|
+
if @api_client.config.debugging
|
792
|
+
@api_client.config.logger.debug "API called: WealthApi#users_id_user_connections_id_connection_investments_id_investment_security_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
793
|
+
end
|
794
|
+
return data, status_code, headers
|
795
|
+
end
|
796
|
+
|
797
|
+
# Get investments
|
798
|
+
#
|
799
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
800
|
+
# @param [Hash] opts the optional parameters
|
801
|
+
# @option opts [String] :expand
|
802
|
+
# @return [InlineResponse20019]
|
803
|
+
def users_id_user_investments_get(id_user, opts = {})
|
804
|
+
data, _status_code, _headers = users_id_user_investments_get_with_http_info(id_user, opts)
|
805
|
+
return data
|
806
|
+
end
|
807
|
+
|
808
|
+
# Get investments
|
809
|
+
#
|
810
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
811
|
+
# @param [Hash] opts the optional parameters
|
812
|
+
# @option opts [String] :expand
|
813
|
+
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
814
|
+
def users_id_user_investments_get_with_http_info(id_user, opts = {})
|
815
|
+
if @api_client.config.debugging
|
816
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_investments_get ..."
|
817
|
+
end
|
818
|
+
# verify the required parameter 'id_user' is set
|
819
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
820
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_investments_get"
|
821
|
+
end
|
822
|
+
# resource path
|
823
|
+
local_var_path = "/users/{id_user}/investments".sub('{' + 'id_user' + '}', id_user.to_s)
|
824
|
+
|
825
|
+
# query parameters
|
826
|
+
query_params = {}
|
827
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
828
|
+
|
829
|
+
# header parameters
|
830
|
+
header_params = {}
|
831
|
+
# HTTP header 'Accept' (if needed)
|
832
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
833
|
+
# HTTP header 'Content-Type'
|
834
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
835
|
+
|
836
|
+
# form parameters
|
837
|
+
form_params = {}
|
838
|
+
|
839
|
+
# http body (model)
|
840
|
+
post_body = nil
|
841
|
+
auth_names = []
|
842
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
843
|
+
:header_params => header_params,
|
844
|
+
:query_params => query_params,
|
845
|
+
:form_params => form_params,
|
846
|
+
:body => post_body,
|
847
|
+
:auth_names => auth_names,
|
848
|
+
:return_type => 'InlineResponse20019')
|
849
|
+
if @api_client.config.debugging
|
850
|
+
@api_client.config.logger.debug "API called: WealthApi#users_id_user_investments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
851
|
+
end
|
852
|
+
return data, status_code, headers
|
853
|
+
end
|
854
|
+
|
855
|
+
# Get investment values
|
856
|
+
#
|
857
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
858
|
+
# @param id_investment
|
859
|
+
# @param [Hash] opts the optional parameters
|
860
|
+
# @option opts [String] :expand
|
861
|
+
# @return [InlineResponse20020]
|
862
|
+
def users_id_user_investments_id_investment_history_get(id_user, id_investment, opts = {})
|
863
|
+
data, _status_code, _headers = users_id_user_investments_id_investment_history_get_with_http_info(id_user, id_investment, opts)
|
864
|
+
return data
|
865
|
+
end
|
866
|
+
|
867
|
+
# Get investment values
|
868
|
+
#
|
869
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
870
|
+
# @param id_investment
|
871
|
+
# @param [Hash] opts the optional parameters
|
872
|
+
# @option opts [String] :expand
|
873
|
+
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
874
|
+
def users_id_user_investments_id_investment_history_get_with_http_info(id_user, id_investment, opts = {})
|
875
|
+
if @api_client.config.debugging
|
876
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_investments_id_investment_history_get ..."
|
877
|
+
end
|
878
|
+
# verify the required parameter 'id_user' is set
|
879
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
880
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_investments_id_investment_history_get"
|
881
|
+
end
|
882
|
+
# verify the required parameter 'id_investment' is set
|
883
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
884
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_investments_id_investment_history_get"
|
885
|
+
end
|
886
|
+
# resource path
|
887
|
+
local_var_path = "/users/{id_user}/investments/{id_investment}/history".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
|
888
|
+
|
889
|
+
# query parameters
|
890
|
+
query_params = {}
|
891
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
892
|
+
|
893
|
+
# header parameters
|
894
|
+
header_params = {}
|
895
|
+
# HTTP header 'Accept' (if needed)
|
896
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
897
|
+
# HTTP header 'Content-Type'
|
898
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
899
|
+
|
900
|
+
# form parameters
|
901
|
+
form_params = {}
|
902
|
+
|
903
|
+
# http body (model)
|
904
|
+
post_body = nil
|
905
|
+
auth_names = []
|
906
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
907
|
+
:header_params => header_params,
|
908
|
+
:query_params => query_params,
|
909
|
+
:form_params => form_params,
|
910
|
+
:body => post_body,
|
911
|
+
:auth_names => auth_names,
|
912
|
+
:return_type => 'InlineResponse20020')
|
913
|
+
if @api_client.config.debugging
|
914
|
+
@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}"
|
915
|
+
end
|
916
|
+
return data, status_code, headers
|
917
|
+
end
|
918
|
+
|
919
|
+
# Get connection logs
|
920
|
+
# Get logs about connections.<br><br>
|
921
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
922
|
+
# @param id_investment
|
923
|
+
# @param [Hash] opts the optional parameters
|
924
|
+
# @option opts [Integer] :limit limit number of results
|
925
|
+
# @option opts [Integer] :offset offset of first result
|
926
|
+
# @option opts [Date] :min_date minimal date
|
927
|
+
# @option opts [Date] :max_date maximum date
|
928
|
+
# @option opts [String] :period period to group logs
|
929
|
+
# @return [nil]
|
930
|
+
def users_id_user_investments_id_investment_security_history_get(id_user, id_investment, opts = {})
|
931
|
+
users_id_user_investments_id_investment_security_history_get_with_http_info(id_user, id_investment, opts)
|
932
|
+
return nil
|
933
|
+
end
|
934
|
+
|
935
|
+
# Get connection logs
|
936
|
+
# Get logs about connections.<br><br>
|
937
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
938
|
+
# @param id_investment
|
939
|
+
# @param [Hash] opts the optional parameters
|
940
|
+
# @option opts [Integer] :limit limit number of results
|
941
|
+
# @option opts [Integer] :offset offset of first result
|
942
|
+
# @option opts [Date] :min_date minimal date
|
943
|
+
# @option opts [Date] :max_date maximum date
|
944
|
+
# @option opts [String] :period period to group logs
|
945
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
946
|
+
def users_id_user_investments_id_investment_security_history_get_with_http_info(id_user, id_investment, opts = {})
|
947
|
+
if @api_client.config.debugging
|
948
|
+
@api_client.config.logger.debug "Calling API: WealthApi.users_id_user_investments_id_investment_security_history_get ..."
|
949
|
+
end
|
950
|
+
# verify the required parameter 'id_user' is set
|
951
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
952
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling WealthApi.users_id_user_investments_id_investment_security_history_get"
|
953
|
+
end
|
954
|
+
# verify the required parameter 'id_investment' is set
|
955
|
+
if @api_client.config.client_side_validation && id_investment.nil?
|
956
|
+
fail ArgumentError, "Missing the required parameter 'id_investment' when calling WealthApi.users_id_user_investments_id_investment_security_history_get"
|
957
|
+
end
|
958
|
+
# resource path
|
959
|
+
local_var_path = "/users/{id_user}/investments/{id_investment}/security/history".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_investment' + '}', id_investment.to_s)
|
960
|
+
|
961
|
+
# query parameters
|
962
|
+
query_params = {}
|
963
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
964
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
965
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
966
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
967
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
968
|
+
|
969
|
+
# header parameters
|
970
|
+
header_params = {}
|
971
|
+
# HTTP header 'Accept' (if needed)
|
972
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
973
|
+
# HTTP header 'Content-Type'
|
974
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
975
|
+
|
976
|
+
# form parameters
|
977
|
+
form_params = {}
|
978
|
+
|
979
|
+
# http body (model)
|
980
|
+
post_body = nil
|
981
|
+
auth_names = []
|
982
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
983
|
+
:header_params => header_params,
|
984
|
+
:query_params => query_params,
|
985
|
+
:form_params => form_params,
|
986
|
+
:body => post_body,
|
987
|
+
:auth_names => auth_names)
|
988
|
+
if @api_client.config.debugging
|
989
|
+
@api_client.config.logger.debug "API called: WealthApi#users_id_user_investments_id_investment_security_history_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
990
|
+
end
|
991
|
+
return data, status_code, headers
|
992
|
+
end
|
993
|
+
end
|
994
|
+
end
|