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,1088 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "uri"
|
4
|
+
|
5
|
+
module BudgeaClient
|
6
|
+
class ConnectionsApi
|
7
|
+
attr_accessor :api_client
|
8
|
+
|
9
|
+
def initialize(api_client = ApiClient.default)
|
10
|
+
@api_client = api_client
|
11
|
+
end
|
12
|
+
|
13
|
+
# Get list of connectors
|
14
|
+
#
|
15
|
+
# @param [Hash] opts the optional parameters
|
16
|
+
# @option opts [String] :expand
|
17
|
+
# @return [InlineResponse2007]
|
18
|
+
def banks_get(opts = {})
|
19
|
+
data, _status_code, _headers = banks_get_with_http_info(opts)
|
20
|
+
return data
|
21
|
+
end
|
22
|
+
|
23
|
+
# Get list of connectors
|
24
|
+
#
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :expand
|
27
|
+
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
28
|
+
def banks_get_with_http_info(opts = {})
|
29
|
+
if @api_client.config.debugging
|
30
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.banks_get ..."
|
31
|
+
end
|
32
|
+
# resource path
|
33
|
+
local_var_path = "/banks"
|
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 => 'InlineResponse2007')
|
59
|
+
if @api_client.config.debugging
|
60
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#banks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
61
|
+
end
|
62
|
+
return data, status_code, headers
|
63
|
+
end
|
64
|
+
|
65
|
+
# Get a subset of id_connection with the largest diversity of account
|
66
|
+
# By default, it selects a set of 3 connections.<br><br>
|
67
|
+
# @param id_bank
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [Integer] :range the length of the connection subset
|
70
|
+
# @option opts [Integer] :type to target a specific account type which will be
|
71
|
+
# @option opts [String] :expand
|
72
|
+
# @return [InlineResponse2008]
|
73
|
+
def banks_id_bank_connections_get(id_bank, opts = {})
|
74
|
+
data, _status_code, _headers = banks_id_bank_connections_get_with_http_info(id_bank, opts)
|
75
|
+
return data
|
76
|
+
end
|
77
|
+
|
78
|
+
# Get a subset of id_connection with the largest diversity of account
|
79
|
+
# By default, it selects a set of 3 connections.<br><br>
|
80
|
+
# @param id_bank
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [Integer] :range the length of the connection subset
|
83
|
+
# @option opts [Integer] :type to target a specific account type which will be
|
84
|
+
# @option opts [String] :expand
|
85
|
+
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
86
|
+
def banks_id_bank_connections_get_with_http_info(id_bank, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.banks_id_bank_connections_get ..."
|
89
|
+
end
|
90
|
+
# verify the required parameter 'id_bank' is set
|
91
|
+
if @api_client.config.client_side_validation && id_bank.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'id_bank' when calling ConnectionsApi.banks_id_bank_connections_get"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = "/banks/{id_bank}/connections".sub('{' + 'id_bank' + '}', id_bank.to_s)
|
96
|
+
|
97
|
+
# query parameters
|
98
|
+
query_params = {}
|
99
|
+
query_params[:'range'] = opts[:'range'] if !opts[:'range'].nil?
|
100
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
101
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
102
|
+
|
103
|
+
# header parameters
|
104
|
+
header_params = {}
|
105
|
+
# HTTP header 'Accept' (if needed)
|
106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
107
|
+
# HTTP header 'Content-Type'
|
108
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
109
|
+
|
110
|
+
# form parameters
|
111
|
+
form_params = {}
|
112
|
+
|
113
|
+
# http body (model)
|
114
|
+
post_body = nil
|
115
|
+
auth_names = []
|
116
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
117
|
+
:header_params => header_params,
|
118
|
+
:query_params => query_params,
|
119
|
+
:form_params => form_params,
|
120
|
+
:body => post_body,
|
121
|
+
:auth_names => auth_names,
|
122
|
+
:return_type => 'InlineResponse2008')
|
123
|
+
if @api_client.config.debugging
|
124
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#banks_id_bank_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
125
|
+
end
|
126
|
+
return data, status_code, headers
|
127
|
+
end
|
128
|
+
|
129
|
+
# Get connections without a user
|
130
|
+
#
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @option opts [String] :expand
|
133
|
+
# @return [InlineResponse2008]
|
134
|
+
def connections_get(opts = {})
|
135
|
+
data, _status_code, _headers = connections_get_with_http_info(opts)
|
136
|
+
return data
|
137
|
+
end
|
138
|
+
|
139
|
+
# Get connections without a user
|
140
|
+
#
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @option opts [String] :expand
|
143
|
+
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
144
|
+
def connections_get_with_http_info(opts = {})
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.connections_get ..."
|
147
|
+
end
|
148
|
+
# resource path
|
149
|
+
local_var_path = "/connections"
|
150
|
+
|
151
|
+
# query parameters
|
152
|
+
query_params = {}
|
153
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
154
|
+
|
155
|
+
# header parameters
|
156
|
+
header_params = {}
|
157
|
+
# HTTP header 'Accept' (if needed)
|
158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
159
|
+
# HTTP header 'Content-Type'
|
160
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
161
|
+
|
162
|
+
# form parameters
|
163
|
+
form_params = {}
|
164
|
+
|
165
|
+
# http body (model)
|
166
|
+
post_body = nil
|
167
|
+
auth_names = []
|
168
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
169
|
+
:header_params => header_params,
|
170
|
+
:query_params => query_params,
|
171
|
+
:form_params => form_params,
|
172
|
+
:body => post_body,
|
173
|
+
:auth_names => auth_names,
|
174
|
+
:return_type => 'InlineResponse2008')
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
|
+
end
|
178
|
+
return data, status_code, headers
|
179
|
+
end
|
180
|
+
|
181
|
+
# Get list of connectors
|
182
|
+
#
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @option opts [String] :expand
|
185
|
+
# @return [InlineResponse20012]
|
186
|
+
def connectors_get(opts = {})
|
187
|
+
data, _status_code, _headers = connectors_get_with_http_info(opts)
|
188
|
+
return data
|
189
|
+
end
|
190
|
+
|
191
|
+
# Get list of connectors
|
192
|
+
#
|
193
|
+
# @param [Hash] opts the optional parameters
|
194
|
+
# @option opts [String] :expand
|
195
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
196
|
+
def connectors_get_with_http_info(opts = {})
|
197
|
+
if @api_client.config.debugging
|
198
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.connectors_get ..."
|
199
|
+
end
|
200
|
+
# resource path
|
201
|
+
local_var_path = "/connectors"
|
202
|
+
|
203
|
+
# query parameters
|
204
|
+
query_params = {}
|
205
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
206
|
+
|
207
|
+
# header parameters
|
208
|
+
header_params = {}
|
209
|
+
# HTTP header 'Accept' (if needed)
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
211
|
+
# HTTP header 'Content-Type'
|
212
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = nil
|
219
|
+
auth_names = []
|
220
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names,
|
226
|
+
:return_type => 'InlineResponse20012')
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#connectors_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
|
+
end
|
230
|
+
return data, status_code, headers
|
231
|
+
end
|
232
|
+
|
233
|
+
# Request a new connector
|
234
|
+
# Send a request to add a new connector<br><br>
|
235
|
+
# @param name Name of the bank or provider
|
236
|
+
# @param login Users login
|
237
|
+
# @param password Users password
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @option opts [String] :api Name of the API
|
240
|
+
# @option opts [String] :url Url of the bank
|
241
|
+
# @option opts [String] :email Email of the user
|
242
|
+
# @option opts [String] :types Type of connector, eg. banks or providers
|
243
|
+
# @option opts [String] :comment Optionnal comment
|
244
|
+
# @option opts [BOOLEAN] :sendmail if set, send an email to user
|
245
|
+
# @option opts [String] :expand
|
246
|
+
# @return [Bank]
|
247
|
+
def connectors_post(name, login, password, opts = {})
|
248
|
+
data, _status_code, _headers = connectors_post_with_http_info(name, login, password, opts)
|
249
|
+
return data
|
250
|
+
end
|
251
|
+
|
252
|
+
# Request a new connector
|
253
|
+
# Send a request to add a new connector<br><br>
|
254
|
+
# @param name Name of the bank or provider
|
255
|
+
# @param login Users login
|
256
|
+
# @param password Users password
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @option opts [String] :api Name of the API
|
259
|
+
# @option opts [String] :url Url of the bank
|
260
|
+
# @option opts [String] :email Email of the user
|
261
|
+
# @option opts [String] :types Type of connector, eg. banks or providers
|
262
|
+
# @option opts [String] :comment Optionnal comment
|
263
|
+
# @option opts [BOOLEAN] :sendmail if set, send an email to user
|
264
|
+
# @option opts [String] :expand
|
265
|
+
# @return [Array<(Bank, Fixnum, Hash)>] Bank data, response status code and response headers
|
266
|
+
def connectors_post_with_http_info(name, login, password, opts = {})
|
267
|
+
if @api_client.config.debugging
|
268
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.connectors_post ..."
|
269
|
+
end
|
270
|
+
# verify the required parameter 'name' is set
|
271
|
+
if @api_client.config.client_side_validation && name.nil?
|
272
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ConnectionsApi.connectors_post"
|
273
|
+
end
|
274
|
+
# verify the required parameter 'login' is set
|
275
|
+
if @api_client.config.client_side_validation && login.nil?
|
276
|
+
fail ArgumentError, "Missing the required parameter 'login' when calling ConnectionsApi.connectors_post"
|
277
|
+
end
|
278
|
+
# verify the required parameter 'password' is set
|
279
|
+
if @api_client.config.client_side_validation && password.nil?
|
280
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling ConnectionsApi.connectors_post"
|
281
|
+
end
|
282
|
+
# resource path
|
283
|
+
local_var_path = "/connectors"
|
284
|
+
|
285
|
+
# query parameters
|
286
|
+
query_params = {}
|
287
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
288
|
+
|
289
|
+
# header parameters
|
290
|
+
header_params = {}
|
291
|
+
# HTTP header 'Accept' (if needed)
|
292
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
293
|
+
# HTTP header 'Content-Type'
|
294
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
295
|
+
|
296
|
+
# form parameters
|
297
|
+
form_params = {}
|
298
|
+
form_params["name"] = name
|
299
|
+
form_params["login"] = login
|
300
|
+
form_params["password"] = password
|
301
|
+
form_params["api"] = opts[:'api'] if !opts[:'api'].nil?
|
302
|
+
form_params["url"] = opts[:'url'] if !opts[:'url'].nil?
|
303
|
+
form_params["email"] = opts[:'email'] if !opts[:'email'].nil?
|
304
|
+
form_params["types"] = opts[:'types'] if !opts[:'types'].nil?
|
305
|
+
form_params["comment"] = opts[:'comment'] if !opts[:'comment'].nil?
|
306
|
+
form_params["sendmail"] = opts[:'sendmail'] if !opts[:'sendmail'].nil?
|
307
|
+
|
308
|
+
# http body (model)
|
309
|
+
post_body = nil
|
310
|
+
auth_names = []
|
311
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
312
|
+
:header_params => header_params,
|
313
|
+
:query_params => query_params,
|
314
|
+
:form_params => form_params,
|
315
|
+
:body => post_body,
|
316
|
+
:auth_names => auth_names,
|
317
|
+
:return_type => 'Bank')
|
318
|
+
if @api_client.config.debugging
|
319
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#connectors_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
320
|
+
end
|
321
|
+
return data, status_code, headers
|
322
|
+
end
|
323
|
+
|
324
|
+
# Get connection logs
|
325
|
+
# Get logs about connections.<br><br>
|
326
|
+
# @param [Hash] opts the optional parameters
|
327
|
+
# @option opts [Integer] :limit limit number of results
|
328
|
+
# @option opts [Integer] :offset offset of first result
|
329
|
+
# @option opts [Date] :min_date minimal date
|
330
|
+
# @option opts [Date] :max_date maximum date
|
331
|
+
# @option opts [Integer] :state state of user
|
332
|
+
# @option opts [String] :period period to group logs
|
333
|
+
# @option opts [Integer] :id_user ID of a user
|
334
|
+
# @option opts [Integer] :id_connection ID of a connection
|
335
|
+
# @option opts [Integer] :id_bank ID of a bank
|
336
|
+
# @option opts [BOOLEAN] :charged consider only logs for charged banks
|
337
|
+
# @option opts [String] :expand
|
338
|
+
# @return [InlineResponse20015]
|
339
|
+
def logs_get(opts = {})
|
340
|
+
data, _status_code, _headers = logs_get_with_http_info(opts)
|
341
|
+
return data
|
342
|
+
end
|
343
|
+
|
344
|
+
# Get connection logs
|
345
|
+
# Get logs about connections.<br><br>
|
346
|
+
# @param [Hash] opts the optional parameters
|
347
|
+
# @option opts [Integer] :limit limit number of results
|
348
|
+
# @option opts [Integer] :offset offset of first result
|
349
|
+
# @option opts [Date] :min_date minimal date
|
350
|
+
# @option opts [Date] :max_date maximum date
|
351
|
+
# @option opts [Integer] :state state of user
|
352
|
+
# @option opts [String] :period period to group logs
|
353
|
+
# @option opts [Integer] :id_user ID of a user
|
354
|
+
# @option opts [Integer] :id_connection ID of a connection
|
355
|
+
# @option opts [Integer] :id_bank ID of a bank
|
356
|
+
# @option opts [BOOLEAN] :charged consider only logs for charged banks
|
357
|
+
# @option opts [String] :expand
|
358
|
+
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
359
|
+
def logs_get_with_http_info(opts = {})
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.logs_get ..."
|
362
|
+
end
|
363
|
+
# resource path
|
364
|
+
local_var_path = "/logs"
|
365
|
+
|
366
|
+
# query parameters
|
367
|
+
query_params = {}
|
368
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
369
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
370
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
371
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
372
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
373
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
374
|
+
query_params[:'id_user'] = opts[:'id_user'] if !opts[:'id_user'].nil?
|
375
|
+
query_params[:'id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
|
376
|
+
query_params[:'id_bank'] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
|
377
|
+
query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
|
378
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
379
|
+
|
380
|
+
# header parameters
|
381
|
+
header_params = {}
|
382
|
+
# HTTP header 'Accept' (if needed)
|
383
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
384
|
+
# HTTP header 'Content-Type'
|
385
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
386
|
+
|
387
|
+
# form parameters
|
388
|
+
form_params = {}
|
389
|
+
|
390
|
+
# http body (model)
|
391
|
+
post_body = nil
|
392
|
+
auth_names = []
|
393
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
394
|
+
:header_params => header_params,
|
395
|
+
:query_params => query_params,
|
396
|
+
:form_params => form_params,
|
397
|
+
:body => post_body,
|
398
|
+
:auth_names => auth_names,
|
399
|
+
:return_type => 'InlineResponse20015')
|
400
|
+
if @api_client.config.debugging
|
401
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
402
|
+
end
|
403
|
+
return data, status_code, headers
|
404
|
+
end
|
405
|
+
|
406
|
+
# Get list of connectors
|
407
|
+
#
|
408
|
+
# @param [Hash] opts the optional parameters
|
409
|
+
# @option opts [String] :expand
|
410
|
+
# @return [InlineResponse2007]
|
411
|
+
def providers_get(opts = {})
|
412
|
+
data, _status_code, _headers = providers_get_with_http_info(opts)
|
413
|
+
return data
|
414
|
+
end
|
415
|
+
|
416
|
+
# Get list of connectors
|
417
|
+
#
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @option opts [String] :expand
|
420
|
+
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
421
|
+
def providers_get_with_http_info(opts = {})
|
422
|
+
if @api_client.config.debugging
|
423
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.providers_get ..."
|
424
|
+
end
|
425
|
+
# resource path
|
426
|
+
local_var_path = "/providers"
|
427
|
+
|
428
|
+
# query parameters
|
429
|
+
query_params = {}
|
430
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
431
|
+
|
432
|
+
# header parameters
|
433
|
+
header_params = {}
|
434
|
+
# HTTP header 'Accept' (if needed)
|
435
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
436
|
+
# HTTP header 'Content-Type'
|
437
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
438
|
+
|
439
|
+
# form parameters
|
440
|
+
form_params = {}
|
441
|
+
|
442
|
+
# http body (model)
|
443
|
+
post_body = nil
|
444
|
+
auth_names = []
|
445
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
446
|
+
:header_params => header_params,
|
447
|
+
:query_params => query_params,
|
448
|
+
:form_params => form_params,
|
449
|
+
:body => post_body,
|
450
|
+
:auth_names => auth_names,
|
451
|
+
:return_type => 'InlineResponse2007')
|
452
|
+
if @api_client.config.debugging
|
453
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#providers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
454
|
+
end
|
455
|
+
return data, status_code, headers
|
456
|
+
end
|
457
|
+
|
458
|
+
# Delete all connections
|
459
|
+
#
|
460
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
461
|
+
# @param [Hash] opts the optional parameters
|
462
|
+
# @option opts [String] :expand
|
463
|
+
# @return [Connection]
|
464
|
+
def users_id_user_connections_delete(id_user, opts = {})
|
465
|
+
data, _status_code, _headers = users_id_user_connections_delete_with_http_info(id_user, opts)
|
466
|
+
return data
|
467
|
+
end
|
468
|
+
|
469
|
+
# Delete all connections
|
470
|
+
#
|
471
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
472
|
+
# @param [Hash] opts the optional parameters
|
473
|
+
# @option opts [String] :expand
|
474
|
+
# @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
|
475
|
+
def users_id_user_connections_delete_with_http_info(id_user, opts = {})
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_delete ..."
|
478
|
+
end
|
479
|
+
# verify the required parameter 'id_user' is set
|
480
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
481
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_delete"
|
482
|
+
end
|
483
|
+
# resource path
|
484
|
+
local_var_path = "/users/{id_user}/connections".sub('{' + 'id_user' + '}', id_user.to_s)
|
485
|
+
|
486
|
+
# query parameters
|
487
|
+
query_params = {}
|
488
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
489
|
+
|
490
|
+
# header parameters
|
491
|
+
header_params = {}
|
492
|
+
# HTTP header 'Accept' (if needed)
|
493
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
494
|
+
# HTTP header 'Content-Type'
|
495
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
496
|
+
|
497
|
+
# form parameters
|
498
|
+
form_params = {}
|
499
|
+
|
500
|
+
# http body (model)
|
501
|
+
post_body = nil
|
502
|
+
auth_names = []
|
503
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
504
|
+
:header_params => header_params,
|
505
|
+
:query_params => query_params,
|
506
|
+
:form_params => form_params,
|
507
|
+
:body => post_body,
|
508
|
+
:auth_names => auth_names,
|
509
|
+
:return_type => 'Connection')
|
510
|
+
if @api_client.config.debugging
|
511
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
512
|
+
end
|
513
|
+
return data, status_code, headers
|
514
|
+
end
|
515
|
+
|
516
|
+
# Get connections
|
517
|
+
#
|
518
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
519
|
+
# @param [Hash] opts the optional parameters
|
520
|
+
# @option opts [String] :expand
|
521
|
+
# @return [InlineResponse2008]
|
522
|
+
def users_id_user_connections_get(id_user, opts = {})
|
523
|
+
data, _status_code, _headers = users_id_user_connections_get_with_http_info(id_user, opts)
|
524
|
+
return data
|
525
|
+
end
|
526
|
+
|
527
|
+
# Get connections
|
528
|
+
#
|
529
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
530
|
+
# @param [Hash] opts the optional parameters
|
531
|
+
# @option opts [String] :expand
|
532
|
+
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
533
|
+
def users_id_user_connections_get_with_http_info(id_user, opts = {})
|
534
|
+
if @api_client.config.debugging
|
535
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_get ..."
|
536
|
+
end
|
537
|
+
# verify the required parameter 'id_user' is set
|
538
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
539
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_get"
|
540
|
+
end
|
541
|
+
# resource path
|
542
|
+
local_var_path = "/users/{id_user}/connections".sub('{' + 'id_user' + '}', id_user.to_s)
|
543
|
+
|
544
|
+
# query parameters
|
545
|
+
query_params = {}
|
546
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
547
|
+
|
548
|
+
# header parameters
|
549
|
+
header_params = {}
|
550
|
+
# HTTP header 'Accept' (if needed)
|
551
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
552
|
+
# HTTP header 'Content-Type'
|
553
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
554
|
+
|
555
|
+
# form parameters
|
556
|
+
form_params = {}
|
557
|
+
|
558
|
+
# http body (model)
|
559
|
+
post_body = nil
|
560
|
+
auth_names = []
|
561
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
562
|
+
:header_params => header_params,
|
563
|
+
:query_params => query_params,
|
564
|
+
:form_params => form_params,
|
565
|
+
:body => post_body,
|
566
|
+
:auth_names => auth_names,
|
567
|
+
:return_type => 'InlineResponse2008')
|
568
|
+
if @api_client.config.debugging
|
569
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
570
|
+
end
|
571
|
+
return data, status_code, headers
|
572
|
+
end
|
573
|
+
|
574
|
+
# Delete a connection.
|
575
|
+
# This endpoint deletes a connection and all related accounts and transactions.<br><br>
|
576
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
577
|
+
# @param id_connection
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @option opts [String] :expand
|
580
|
+
# @return [Connection]
|
581
|
+
def users_id_user_connections_id_connection_delete(id_user, id_connection, opts = {})
|
582
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts)
|
583
|
+
return data
|
584
|
+
end
|
585
|
+
|
586
|
+
# Delete a connection.
|
587
|
+
# This endpoint deletes a connection and all related accounts and transactions.<br><br>
|
588
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
589
|
+
# @param id_connection
|
590
|
+
# @param [Hash] opts the optional parameters
|
591
|
+
# @option opts [String] :expand
|
592
|
+
# @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
|
593
|
+
def users_id_user_connections_id_connection_delete_with_http_info(id_user, id_connection, opts = {})
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_delete ..."
|
596
|
+
end
|
597
|
+
# verify the required parameter 'id_user' is set
|
598
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
599
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_delete"
|
600
|
+
end
|
601
|
+
# verify the required parameter 'id_connection' is set
|
602
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
603
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_delete"
|
604
|
+
end
|
605
|
+
# resource path
|
606
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
607
|
+
|
608
|
+
# query parameters
|
609
|
+
query_params = {}
|
610
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
611
|
+
|
612
|
+
# header parameters
|
613
|
+
header_params = {}
|
614
|
+
# HTTP header 'Accept' (if needed)
|
615
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
616
|
+
# HTTP header 'Content-Type'
|
617
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
618
|
+
|
619
|
+
# form parameters
|
620
|
+
form_params = {}
|
621
|
+
|
622
|
+
# http body (model)
|
623
|
+
post_body = nil
|
624
|
+
auth_names = []
|
625
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
626
|
+
:header_params => header_params,
|
627
|
+
:query_params => query_params,
|
628
|
+
:form_params => form_params,
|
629
|
+
:body => post_body,
|
630
|
+
:auth_names => auth_names,
|
631
|
+
:return_type => 'Connection')
|
632
|
+
if @api_client.config.debugging
|
633
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
634
|
+
end
|
635
|
+
return data, status_code, headers
|
636
|
+
end
|
637
|
+
|
638
|
+
# Get connection additionnal informations
|
639
|
+
# <br><br>
|
640
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
641
|
+
# @param id_connection
|
642
|
+
# @param [Hash] opts the optional parameters
|
643
|
+
# @option opts [String] :expand
|
644
|
+
# @return [InlineResponse2008]
|
645
|
+
def users_id_user_connections_id_connection_informations_get(id_user, id_connection, opts = {})
|
646
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts)
|
647
|
+
return data
|
648
|
+
end
|
649
|
+
|
650
|
+
# Get connection additionnal informations
|
651
|
+
# <br><br>
|
652
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
653
|
+
# @param id_connection
|
654
|
+
# @param [Hash] opts the optional parameters
|
655
|
+
# @option opts [String] :expand
|
656
|
+
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
657
|
+
def users_id_user_connections_id_connection_informations_get_with_http_info(id_user, id_connection, opts = {})
|
658
|
+
if @api_client.config.debugging
|
659
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_informations_get ..."
|
660
|
+
end
|
661
|
+
# verify the required parameter 'id_user' is set
|
662
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
663
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_informations_get"
|
664
|
+
end
|
665
|
+
# verify the required parameter 'id_connection' is set
|
666
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
667
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_informations_get"
|
668
|
+
end
|
669
|
+
# resource path
|
670
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/informations".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
671
|
+
|
672
|
+
# query parameters
|
673
|
+
query_params = {}
|
674
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
675
|
+
|
676
|
+
# header parameters
|
677
|
+
header_params = {}
|
678
|
+
# HTTP header 'Accept' (if needed)
|
679
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
680
|
+
# HTTP header 'Content-Type'
|
681
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
682
|
+
|
683
|
+
# form parameters
|
684
|
+
form_params = {}
|
685
|
+
|
686
|
+
# http body (model)
|
687
|
+
post_body = nil
|
688
|
+
auth_names = []
|
689
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
690
|
+
:header_params => header_params,
|
691
|
+
:query_params => query_params,
|
692
|
+
:form_params => form_params,
|
693
|
+
:body => post_body,
|
694
|
+
:auth_names => auth_names,
|
695
|
+
:return_type => 'InlineResponse2008')
|
696
|
+
if @api_client.config.debugging
|
697
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_informations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
698
|
+
end
|
699
|
+
return data, status_code, headers
|
700
|
+
end
|
701
|
+
|
702
|
+
# Get connection logs
|
703
|
+
# Get logs about connections.<br><br>
|
704
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
705
|
+
# @param id_connection
|
706
|
+
# @param [Hash] opts the optional parameters
|
707
|
+
# @option opts [Integer] :limit limit number of results
|
708
|
+
# @option opts [Integer] :offset offset of first result
|
709
|
+
# @option opts [Date] :min_date minimal date
|
710
|
+
# @option opts [Date] :max_date maximum date
|
711
|
+
# @option opts [Integer] :state state of user
|
712
|
+
# @option opts [String] :period period to group logs
|
713
|
+
# @option opts [Integer] :id_user2 ID of a user
|
714
|
+
# @option opts [Integer] :id_connection2 ID of a connection
|
715
|
+
# @option opts [Integer] :id_bank ID of a bank
|
716
|
+
# @option opts [BOOLEAN] :charged consider only logs for charged banks
|
717
|
+
# @option opts [String] :expand
|
718
|
+
# @return [InlineResponse20015]
|
719
|
+
def users_id_user_connections_id_connection_logs_get(id_user, id_connection, opts = {})
|
720
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts)
|
721
|
+
return data
|
722
|
+
end
|
723
|
+
|
724
|
+
# Get connection logs
|
725
|
+
# Get logs about connections.<br><br>
|
726
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
727
|
+
# @param id_connection
|
728
|
+
# @param [Hash] opts the optional parameters
|
729
|
+
# @option opts [Integer] :limit limit number of results
|
730
|
+
# @option opts [Integer] :offset offset of first result
|
731
|
+
# @option opts [Date] :min_date minimal date
|
732
|
+
# @option opts [Date] :max_date maximum date
|
733
|
+
# @option opts [Integer] :state state of user
|
734
|
+
# @option opts [String] :period period to group logs
|
735
|
+
# @option opts [Integer] :id_user2 ID of a user
|
736
|
+
# @option opts [Integer] :id_connection2 ID of a connection
|
737
|
+
# @option opts [Integer] :id_bank ID of a bank
|
738
|
+
# @option opts [BOOLEAN] :charged consider only logs for charged banks
|
739
|
+
# @option opts [String] :expand
|
740
|
+
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
741
|
+
def users_id_user_connections_id_connection_logs_get_with_http_info(id_user, id_connection, opts = {})
|
742
|
+
if @api_client.config.debugging
|
743
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_logs_get ..."
|
744
|
+
end
|
745
|
+
# verify the required parameter 'id_user' is set
|
746
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
747
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_logs_get"
|
748
|
+
end
|
749
|
+
# verify the required parameter 'id_connection' is set
|
750
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
751
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_logs_get"
|
752
|
+
end
|
753
|
+
# resource path
|
754
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/logs".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
755
|
+
|
756
|
+
# query parameters
|
757
|
+
query_params = {}
|
758
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
759
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
760
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
761
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
762
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
763
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
764
|
+
query_params[:'id_user'] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
|
765
|
+
query_params[:'id_connection'] = opts[:'id_connection2'] if !opts[:'id_connection2'].nil?
|
766
|
+
query_params[:'id_bank'] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
|
767
|
+
query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
|
768
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
769
|
+
|
770
|
+
# header parameters
|
771
|
+
header_params = {}
|
772
|
+
# HTTP header 'Accept' (if needed)
|
773
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
774
|
+
# HTTP header 'Content-Type'
|
775
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
776
|
+
|
777
|
+
# form parameters
|
778
|
+
form_params = {}
|
779
|
+
|
780
|
+
# http body (model)
|
781
|
+
post_body = nil
|
782
|
+
auth_names = []
|
783
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
784
|
+
:header_params => header_params,
|
785
|
+
:query_params => query_params,
|
786
|
+
:form_params => form_params,
|
787
|
+
:body => post_body,
|
788
|
+
:auth_names => auth_names,
|
789
|
+
:return_type => 'InlineResponse20015')
|
790
|
+
if @api_client.config.debugging
|
791
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
792
|
+
end
|
793
|
+
return data, status_code, headers
|
794
|
+
end
|
795
|
+
|
796
|
+
# Update a connection.
|
797
|
+
# Give new parameters to change on the configuration of this connection (for example \"password\").<br><br>It tests connection to website, and if it fails, a 400 response is given with the error code \"wrongpass\" or \"websiteUnavailable\".<br><br>You can also supply meta-parameters on connection, like 'active' or 'expire'.<br><br>
|
798
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
799
|
+
# @param id_connection
|
800
|
+
# @param [Hash] opts the optional parameters
|
801
|
+
# @option opts [BOOLEAN] :active Set if the connection synchronisation is active
|
802
|
+
# @option opts [DateTime] :expire Set expiration of the connection to this date
|
803
|
+
# @option opts [String] :login Set login to this new login
|
804
|
+
# @option opts [String] :password Set password to this new password
|
805
|
+
# @option opts [String] :expand
|
806
|
+
# @return [Connection]
|
807
|
+
def users_id_user_connections_id_connection_post(id_user, id_connection, opts = {})
|
808
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts)
|
809
|
+
return data
|
810
|
+
end
|
811
|
+
|
812
|
+
# Update a connection.
|
813
|
+
# Give new parameters to change on the configuration of this connection (for example \"password\").<br><br>It tests connection to website, and if it fails, a 400 response is given with the error code \"wrongpass\" or \"websiteUnavailable\".<br><br>You can also supply meta-parameters on connection, like 'active' or 'expire'.<br><br>
|
814
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
815
|
+
# @param id_connection
|
816
|
+
# @param [Hash] opts the optional parameters
|
817
|
+
# @option opts [BOOLEAN] :active Set if the connection synchronisation is active
|
818
|
+
# @option opts [DateTime] :expire Set expiration of the connection to this date
|
819
|
+
# @option opts [String] :login Set login to this new login
|
820
|
+
# @option opts [String] :password Set password to this new password
|
821
|
+
# @option opts [String] :expand
|
822
|
+
# @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
|
823
|
+
def users_id_user_connections_id_connection_post_with_http_info(id_user, id_connection, opts = {})
|
824
|
+
if @api_client.config.debugging
|
825
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_post ..."
|
826
|
+
end
|
827
|
+
# verify the required parameter 'id_user' is set
|
828
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
829
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_post"
|
830
|
+
end
|
831
|
+
# verify the required parameter 'id_connection' is set
|
832
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
833
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_post"
|
834
|
+
end
|
835
|
+
# resource path
|
836
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
837
|
+
|
838
|
+
# query parameters
|
839
|
+
query_params = {}
|
840
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
841
|
+
|
842
|
+
# header parameters
|
843
|
+
header_params = {}
|
844
|
+
# HTTP header 'Accept' (if needed)
|
845
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
846
|
+
# HTTP header 'Content-Type'
|
847
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
848
|
+
|
849
|
+
# form parameters
|
850
|
+
form_params = {}
|
851
|
+
form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
|
852
|
+
form_params["expire"] = opts[:'expire'] if !opts[:'expire'].nil?
|
853
|
+
form_params["login"] = opts[:'login'] if !opts[:'login'].nil?
|
854
|
+
form_params["password"] = opts[:'password'] if !opts[:'password'].nil?
|
855
|
+
|
856
|
+
# http body (model)
|
857
|
+
post_body = nil
|
858
|
+
auth_names = []
|
859
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
860
|
+
:header_params => header_params,
|
861
|
+
:query_params => query_params,
|
862
|
+
:form_params => form_params,
|
863
|
+
:body => post_body,
|
864
|
+
:auth_names => auth_names,
|
865
|
+
:return_type => 'Connection')
|
866
|
+
if @api_client.config.debugging
|
867
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
868
|
+
end
|
869
|
+
return data, status_code, headers
|
870
|
+
end
|
871
|
+
|
872
|
+
# Force synchronisation of a connection.
|
873
|
+
# We suggest to pass parameter expand=accounts[transactions] to get all *new* and *updated* transactions.<br><br>Query params: - expand (string): fields to expand - last_update (dateTime): if supplied, get transactions inserted since this date<br><br>
|
874
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
875
|
+
# @param id_connection
|
876
|
+
# @param [Hash] opts the optional parameters
|
877
|
+
# @option opts [String] :expand
|
878
|
+
# @return [Connection]
|
879
|
+
def users_id_user_connections_id_connection_put(id_user, id_connection, opts = {})
|
880
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts)
|
881
|
+
return data
|
882
|
+
end
|
883
|
+
|
884
|
+
# Force synchronisation of a connection.
|
885
|
+
# We suggest to pass parameter expand=accounts[transactions] to get all *new* and *updated* transactions.<br><br>Query params: - expand (string): fields to expand - last_update (dateTime): if supplied, get transactions inserted since this date<br><br>
|
886
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
887
|
+
# @param id_connection
|
888
|
+
# @param [Hash] opts the optional parameters
|
889
|
+
# @option opts [String] :expand
|
890
|
+
# @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
|
891
|
+
def users_id_user_connections_id_connection_put_with_http_info(id_user, id_connection, opts = {})
|
892
|
+
if @api_client.config.debugging
|
893
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_id_connection_put ..."
|
894
|
+
end
|
895
|
+
# verify the required parameter 'id_user' is set
|
896
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
897
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_id_connection_put"
|
898
|
+
end
|
899
|
+
# verify the required parameter 'id_connection' is set
|
900
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
901
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling ConnectionsApi.users_id_user_connections_id_connection_put"
|
902
|
+
end
|
903
|
+
# resource path
|
904
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
905
|
+
|
906
|
+
# query parameters
|
907
|
+
query_params = {}
|
908
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
909
|
+
|
910
|
+
# header parameters
|
911
|
+
header_params = {}
|
912
|
+
# HTTP header 'Accept' (if needed)
|
913
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
914
|
+
# HTTP header 'Content-Type'
|
915
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
916
|
+
|
917
|
+
# form parameters
|
918
|
+
form_params = {}
|
919
|
+
|
920
|
+
# http body (model)
|
921
|
+
post_body = nil
|
922
|
+
auth_names = []
|
923
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
924
|
+
:header_params => header_params,
|
925
|
+
:query_params => query_params,
|
926
|
+
:form_params => form_params,
|
927
|
+
:body => post_body,
|
928
|
+
:auth_names => auth_names,
|
929
|
+
:return_type => 'Connection')
|
930
|
+
if @api_client.config.debugging
|
931
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_id_connection_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
932
|
+
end
|
933
|
+
return data, status_code, headers
|
934
|
+
end
|
935
|
+
|
936
|
+
# Add a new connection.
|
937
|
+
# Create a new connection to a given bank or provider. You have to give all needed parameters (use /banks/ID/fields or /providers/ID/fields to get them).<br><br>
|
938
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
939
|
+
# @param [Hash] opts the optional parameters
|
940
|
+
# @option opts [Integer] :id_bank ID of the bank
|
941
|
+
# @option opts [Integer] :id_provider ID of the provider
|
942
|
+
# @option opts [String] :expand
|
943
|
+
# @return [Connection]
|
944
|
+
def users_id_user_connections_post(id_user, opts = {})
|
945
|
+
data, _status_code, _headers = users_id_user_connections_post_with_http_info(id_user, opts)
|
946
|
+
return data
|
947
|
+
end
|
948
|
+
|
949
|
+
# Add a new connection.
|
950
|
+
# Create a new connection to a given bank or provider. You have to give all needed parameters (use /banks/ID/fields or /providers/ID/fields to get them).<br><br>
|
951
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
952
|
+
# @param [Hash] opts the optional parameters
|
953
|
+
# @option opts [Integer] :id_bank ID of the bank
|
954
|
+
# @option opts [Integer] :id_provider ID of the provider
|
955
|
+
# @option opts [String] :expand
|
956
|
+
# @return [Array<(Connection, Fixnum, Hash)>] Connection data, response status code and response headers
|
957
|
+
def users_id_user_connections_post_with_http_info(id_user, opts = {})
|
958
|
+
if @api_client.config.debugging
|
959
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_connections_post ..."
|
960
|
+
end
|
961
|
+
# verify the required parameter 'id_user' is set
|
962
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
963
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_connections_post"
|
964
|
+
end
|
965
|
+
# resource path
|
966
|
+
local_var_path = "/users/{id_user}/connections".sub('{' + 'id_user' + '}', id_user.to_s)
|
967
|
+
|
968
|
+
# query parameters
|
969
|
+
query_params = {}
|
970
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
971
|
+
|
972
|
+
# header parameters
|
973
|
+
header_params = {}
|
974
|
+
# HTTP header 'Accept' (if needed)
|
975
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
976
|
+
# HTTP header 'Content-Type'
|
977
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
978
|
+
|
979
|
+
# form parameters
|
980
|
+
form_params = {}
|
981
|
+
form_params["id_bank"] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
|
982
|
+
form_params["id_provider"] = opts[:'id_provider'] if !opts[:'id_provider'].nil?
|
983
|
+
|
984
|
+
# http body (model)
|
985
|
+
post_body = nil
|
986
|
+
auth_names = []
|
987
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
988
|
+
:header_params => header_params,
|
989
|
+
:query_params => query_params,
|
990
|
+
:form_params => form_params,
|
991
|
+
:body => post_body,
|
992
|
+
:auth_names => auth_names,
|
993
|
+
:return_type => 'Connection')
|
994
|
+
if @api_client.config.debugging
|
995
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_connections_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
996
|
+
end
|
997
|
+
return data, status_code, headers
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Get connection logs
|
1001
|
+
# Get logs about connections.<br><br>
|
1002
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
1003
|
+
# @param [Hash] opts the optional parameters
|
1004
|
+
# @option opts [Integer] :limit limit number of results
|
1005
|
+
# @option opts [Integer] :offset offset of first result
|
1006
|
+
# @option opts [Date] :min_date minimal date
|
1007
|
+
# @option opts [Date] :max_date maximum date
|
1008
|
+
# @option opts [Integer] :state state of user
|
1009
|
+
# @option opts [String] :period period to group logs
|
1010
|
+
# @option opts [Integer] :id_user2 ID of a user
|
1011
|
+
# @option opts [Integer] :id_connection ID of a connection
|
1012
|
+
# @option opts [Integer] :id_bank ID of a bank
|
1013
|
+
# @option opts [BOOLEAN] :charged consider only logs for charged banks
|
1014
|
+
# @option opts [String] :expand
|
1015
|
+
# @return [InlineResponse20015]
|
1016
|
+
def users_id_user_logs_get(id_user, opts = {})
|
1017
|
+
data, _status_code, _headers = users_id_user_logs_get_with_http_info(id_user, opts)
|
1018
|
+
return data
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
# Get connection logs
|
1022
|
+
# Get logs about connections.<br><br>
|
1023
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
1024
|
+
# @param [Hash] opts the optional parameters
|
1025
|
+
# @option opts [Integer] :limit limit number of results
|
1026
|
+
# @option opts [Integer] :offset offset of first result
|
1027
|
+
# @option opts [Date] :min_date minimal date
|
1028
|
+
# @option opts [Date] :max_date maximum date
|
1029
|
+
# @option opts [Integer] :state state of user
|
1030
|
+
# @option opts [String] :period period to group logs
|
1031
|
+
# @option opts [Integer] :id_user2 ID of a user
|
1032
|
+
# @option opts [Integer] :id_connection ID of a connection
|
1033
|
+
# @option opts [Integer] :id_bank ID of a bank
|
1034
|
+
# @option opts [BOOLEAN] :charged consider only logs for charged banks
|
1035
|
+
# @option opts [String] :expand
|
1036
|
+
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
1037
|
+
def users_id_user_logs_get_with_http_info(id_user, opts = {})
|
1038
|
+
if @api_client.config.debugging
|
1039
|
+
@api_client.config.logger.debug "Calling API: ConnectionsApi.users_id_user_logs_get ..."
|
1040
|
+
end
|
1041
|
+
# verify the required parameter 'id_user' is set
|
1042
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
1043
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling ConnectionsApi.users_id_user_logs_get"
|
1044
|
+
end
|
1045
|
+
# resource path
|
1046
|
+
local_var_path = "/users/{id_user}/logs".sub('{' + 'id_user' + '}', id_user.to_s)
|
1047
|
+
|
1048
|
+
# query parameters
|
1049
|
+
query_params = {}
|
1050
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1051
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1052
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
1053
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
1054
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
1055
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
1056
|
+
query_params[:'id_user'] = opts[:'id_user2'] if !opts[:'id_user2'].nil?
|
1057
|
+
query_params[:'id_connection'] = opts[:'id_connection'] if !opts[:'id_connection'].nil?
|
1058
|
+
query_params[:'id_bank'] = opts[:'id_bank'] if !opts[:'id_bank'].nil?
|
1059
|
+
query_params[:'charged'] = opts[:'charged'] if !opts[:'charged'].nil?
|
1060
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
1061
|
+
|
1062
|
+
# header parameters
|
1063
|
+
header_params = {}
|
1064
|
+
# HTTP header 'Accept' (if needed)
|
1065
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1066
|
+
# HTTP header 'Content-Type'
|
1067
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
1068
|
+
|
1069
|
+
# form parameters
|
1070
|
+
form_params = {}
|
1071
|
+
|
1072
|
+
# http body (model)
|
1073
|
+
post_body = nil
|
1074
|
+
auth_names = []
|
1075
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1076
|
+
:header_params => header_params,
|
1077
|
+
:query_params => query_params,
|
1078
|
+
:form_params => form_params,
|
1079
|
+
:body => post_body,
|
1080
|
+
:auth_names => auth_names,
|
1081
|
+
:return_type => 'InlineResponse20015')
|
1082
|
+
if @api_client.config.debugging
|
1083
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#users_id_user_logs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1084
|
+
end
|
1085
|
+
return data, status_code, headers
|
1086
|
+
end
|
1087
|
+
end
|
1088
|
+
end
|