budgea_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,141 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "uri"
|
|
4
|
+
|
|
5
|
+
module BudgeaClient
|
|
6
|
+
class OCRApi
|
|
7
|
+
attr_accessor :api_client
|
|
8
|
+
|
|
9
|
+
def initialize(api_client = ApiClient.default)
|
|
10
|
+
@api_client = api_client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Post an image with OCR
|
|
14
|
+
# Post an image and apply OCR on it to obtain found meta-data.<br><br>
|
|
15
|
+
# @param file File of the document
|
|
16
|
+
# @param [Hash] opts the optional parameters
|
|
17
|
+
# @option opts [Integer] :id_transaction Transaction used to help OCR to find data
|
|
18
|
+
# @option opts [String] :name Name of the document
|
|
19
|
+
# @return [nil]
|
|
20
|
+
def ocr_post(file, opts = {})
|
|
21
|
+
ocr_post_with_http_info(file, opts)
|
|
22
|
+
return nil
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Post an image with OCR
|
|
26
|
+
# Post an image and apply OCR on it to obtain found meta-data.<br><br>
|
|
27
|
+
# @param file File of the document
|
|
28
|
+
# @param [Hash] opts the optional parameters
|
|
29
|
+
# @option opts [Integer] :id_transaction Transaction used to help OCR to find data
|
|
30
|
+
# @option opts [String] :name Name of the document
|
|
31
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
32
|
+
def ocr_post_with_http_info(file, opts = {})
|
|
33
|
+
if @api_client.config.debugging
|
|
34
|
+
@api_client.config.logger.debug "Calling API: OCRApi.ocr_post ..."
|
|
35
|
+
end
|
|
36
|
+
# verify the required parameter 'file' is set
|
|
37
|
+
if @api_client.config.client_side_validation && file.nil?
|
|
38
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling OCRApi.ocr_post"
|
|
39
|
+
end
|
|
40
|
+
# resource path
|
|
41
|
+
local_var_path = "/ocr"
|
|
42
|
+
|
|
43
|
+
# query parameters
|
|
44
|
+
query_params = {}
|
|
45
|
+
|
|
46
|
+
# header parameters
|
|
47
|
+
header_params = {}
|
|
48
|
+
# HTTP header 'Accept' (if needed)
|
|
49
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
50
|
+
# HTTP header 'Content-Type'
|
|
51
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
52
|
+
|
|
53
|
+
# form parameters
|
|
54
|
+
form_params = {}
|
|
55
|
+
form_params["file"] = file
|
|
56
|
+
form_params["id_transaction"] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
|
|
57
|
+
form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = nil
|
|
61
|
+
auth_names = []
|
|
62
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
63
|
+
:header_params => header_params,
|
|
64
|
+
:query_params => query_params,
|
|
65
|
+
:form_params => form_params,
|
|
66
|
+
:body => post_body,
|
|
67
|
+
:auth_names => auth_names)
|
|
68
|
+
if @api_client.config.debugging
|
|
69
|
+
@api_client.config.logger.debug "API called: OCRApi#ocr_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
70
|
+
end
|
|
71
|
+
return data, status_code, headers
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Post an image with OCR
|
|
75
|
+
# Post an image and apply OCR on it to obtain found meta-data.<br><br>
|
|
76
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
77
|
+
# @param file File of the document
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @option opts [Integer] :id_transaction Transaction used to help OCR to find data
|
|
80
|
+
# @option opts [String] :name Name of the document
|
|
81
|
+
# @return [nil]
|
|
82
|
+
def users_id_user_ocr_post(id_user, file, opts = {})
|
|
83
|
+
users_id_user_ocr_post_with_http_info(id_user, file, opts)
|
|
84
|
+
return nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Post an image with OCR
|
|
88
|
+
# Post an image and apply OCR on it to obtain found meta-data.<br><br>
|
|
89
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
90
|
+
# @param file File of the document
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @option opts [Integer] :id_transaction Transaction used to help OCR to find data
|
|
93
|
+
# @option opts [String] :name Name of the document
|
|
94
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
95
|
+
def users_id_user_ocr_post_with_http_info(id_user, file, opts = {})
|
|
96
|
+
if @api_client.config.debugging
|
|
97
|
+
@api_client.config.logger.debug "Calling API: OCRApi.users_id_user_ocr_post ..."
|
|
98
|
+
end
|
|
99
|
+
# verify the required parameter 'id_user' is set
|
|
100
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
101
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling OCRApi.users_id_user_ocr_post"
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'file' is set
|
|
104
|
+
if @api_client.config.client_side_validation && file.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling OCRApi.users_id_user_ocr_post"
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = "/users/{id_user}/ocr".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
117
|
+
# HTTP header 'Content-Type'
|
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = {}
|
|
122
|
+
form_params["file"] = file
|
|
123
|
+
form_params["id_transaction"] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
|
|
124
|
+
form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
|
|
125
|
+
|
|
126
|
+
# http body (model)
|
|
127
|
+
post_body = nil
|
|
128
|
+
auth_names = []
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
130
|
+
:header_params => header_params,
|
|
131
|
+
:query_params => query_params,
|
|
132
|
+
:form_params => form_params,
|
|
133
|
+
:body => post_body,
|
|
134
|
+
:auth_names => auth_names)
|
|
135
|
+
if @api_client.config.debugging
|
|
136
|
+
@api_client.config.logger.debug "API called: OCRApi#users_id_user_ocr_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
137
|
+
end
|
|
138
|
+
return data, status_code, headers
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "uri"
|
|
4
|
+
|
|
5
|
+
module BudgeaClient
|
|
6
|
+
class OIDCApi
|
|
7
|
+
attr_accessor :api_client
|
|
8
|
+
|
|
9
|
+
def initialize(api_client = ApiClient.default)
|
|
10
|
+
@api_client = api_client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Delete the supplied authorized redirect uri
|
|
14
|
+
#
|
|
15
|
+
# @param id_whitelist
|
|
16
|
+
# @param [Hash] opts the optional parameters
|
|
17
|
+
# @option opts [String] :expand
|
|
18
|
+
# @return [OidcWhitelist]
|
|
19
|
+
def oidc_whitelist_id_whitelist_delete(id_whitelist, opts = {})
|
|
20
|
+
data, _status_code, _headers = oidc_whitelist_id_whitelist_delete_with_http_info(id_whitelist, opts)
|
|
21
|
+
return data
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Delete the supplied authorized redirect uri
|
|
25
|
+
#
|
|
26
|
+
# @param id_whitelist
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @option opts [String] :expand
|
|
29
|
+
# @return [Array<(OidcWhitelist, Fixnum, Hash)>] OidcWhitelist data, response status code and response headers
|
|
30
|
+
def oidc_whitelist_id_whitelist_delete_with_http_info(id_whitelist, opts = {})
|
|
31
|
+
if @api_client.config.debugging
|
|
32
|
+
@api_client.config.logger.debug "Calling API: OIDCApi.oidc_whitelist_id_whitelist_delete ..."
|
|
33
|
+
end
|
|
34
|
+
# verify the required parameter 'id_whitelist' is set
|
|
35
|
+
if @api_client.config.client_side_validation && id_whitelist.nil?
|
|
36
|
+
fail ArgumentError, "Missing the required parameter 'id_whitelist' when calling OIDCApi.oidc_whitelist_id_whitelist_delete"
|
|
37
|
+
end
|
|
38
|
+
# resource path
|
|
39
|
+
local_var_path = "/oidc/whitelist/{id_whitelist}".sub('{' + 'id_whitelist' + '}', id_whitelist.to_s)
|
|
40
|
+
|
|
41
|
+
# query parameters
|
|
42
|
+
query_params = {}
|
|
43
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
49
|
+
# HTTP header 'Content-Type'
|
|
50
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
51
|
+
|
|
52
|
+
# form parameters
|
|
53
|
+
form_params = {}
|
|
54
|
+
|
|
55
|
+
# http body (model)
|
|
56
|
+
post_body = nil
|
|
57
|
+
auth_names = []
|
|
58
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
59
|
+
:header_params => header_params,
|
|
60
|
+
:query_params => query_params,
|
|
61
|
+
:form_params => form_params,
|
|
62
|
+
:body => post_body,
|
|
63
|
+
:auth_names => auth_names,
|
|
64
|
+
:return_type => 'OidcWhitelist')
|
|
65
|
+
if @api_client.config.debugging
|
|
66
|
+
@api_client.config.logger.debug "API called: OIDCApi#oidc_whitelist_id_whitelist_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
67
|
+
end
|
|
68
|
+
return data, status_code, headers
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Edit a authorized redirect uri
|
|
72
|
+
# Edit the uri for the supplied authorized redirect uri.<br><br>
|
|
73
|
+
# @param id_whitelist
|
|
74
|
+
# @param redirect_uri new authorized redirect uri
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @option opts [String] :expand
|
|
77
|
+
# @return [OidcWhitelist]
|
|
78
|
+
def oidc_whitelist_id_whitelist_post(id_whitelist, redirect_uri, opts = {})
|
|
79
|
+
data, _status_code, _headers = oidc_whitelist_id_whitelist_post_with_http_info(id_whitelist, redirect_uri, opts)
|
|
80
|
+
return data
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Edit a authorized redirect uri
|
|
84
|
+
# Edit the uri for the supplied authorized redirect uri.<br><br>
|
|
85
|
+
# @param id_whitelist
|
|
86
|
+
# @param redirect_uri new authorized redirect uri
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :expand
|
|
89
|
+
# @return [Array<(OidcWhitelist, Fixnum, Hash)>] OidcWhitelist data, response status code and response headers
|
|
90
|
+
def oidc_whitelist_id_whitelist_post_with_http_info(id_whitelist, redirect_uri, opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug "Calling API: OIDCApi.oidc_whitelist_id_whitelist_post ..."
|
|
93
|
+
end
|
|
94
|
+
# verify the required parameter 'id_whitelist' is set
|
|
95
|
+
if @api_client.config.client_side_validation && id_whitelist.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'id_whitelist' when calling OIDCApi.oidc_whitelist_id_whitelist_post"
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'redirect_uri' is set
|
|
99
|
+
if @api_client.config.client_side_validation && redirect_uri.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling OIDCApi.oidc_whitelist_id_whitelist_post"
|
|
101
|
+
end
|
|
102
|
+
# resource path
|
|
103
|
+
local_var_path = "/oidc/whitelist/{id_whitelist}".sub('{' + 'id_whitelist' + '}', id_whitelist.to_s)
|
|
104
|
+
|
|
105
|
+
# query parameters
|
|
106
|
+
query_params = {}
|
|
107
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].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
|
+
form_params["redirect_uri"] = redirect_uri
|
|
119
|
+
|
|
120
|
+
# http body (model)
|
|
121
|
+
post_body = nil
|
|
122
|
+
auth_names = []
|
|
123
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
124
|
+
:header_params => header_params,
|
|
125
|
+
:query_params => query_params,
|
|
126
|
+
:form_params => form_params,
|
|
127
|
+
:body => post_body,
|
|
128
|
+
:auth_names => auth_names,
|
|
129
|
+
:return_type => 'OidcWhitelist')
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: OIDCApi#oidc_whitelist_id_whitelist_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Adds an authorized redirect uri
|
|
137
|
+
# It requires the authorized redirect uri to be created<br><br>
|
|
138
|
+
# @param redirect_uri authorized redirect uri to be created
|
|
139
|
+
# @param [Hash] opts the optional parameters
|
|
140
|
+
# @option opts [String] :expand
|
|
141
|
+
# @return [OidcWhitelist]
|
|
142
|
+
def oidc_whitelist_post(redirect_uri, opts = {})
|
|
143
|
+
data, _status_code, _headers = oidc_whitelist_post_with_http_info(redirect_uri, opts)
|
|
144
|
+
return data
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Adds an authorized redirect uri
|
|
148
|
+
# It requires the authorized redirect uri to be created<br><br>
|
|
149
|
+
# @param redirect_uri authorized redirect uri to be created
|
|
150
|
+
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @option opts [String] :expand
|
|
152
|
+
# @return [Array<(OidcWhitelist, Fixnum, Hash)>] OidcWhitelist data, response status code and response headers
|
|
153
|
+
def oidc_whitelist_post_with_http_info(redirect_uri, opts = {})
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "Calling API: OIDCApi.oidc_whitelist_post ..."
|
|
156
|
+
end
|
|
157
|
+
# verify the required parameter 'redirect_uri' is set
|
|
158
|
+
if @api_client.config.client_side_validation && redirect_uri.nil?
|
|
159
|
+
fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling OIDCApi.oidc_whitelist_post"
|
|
160
|
+
end
|
|
161
|
+
# resource path
|
|
162
|
+
local_var_path = "/oidc/whitelist"
|
|
163
|
+
|
|
164
|
+
# query parameters
|
|
165
|
+
query_params = {}
|
|
166
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
167
|
+
|
|
168
|
+
# header parameters
|
|
169
|
+
header_params = {}
|
|
170
|
+
# HTTP header 'Accept' (if needed)
|
|
171
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
172
|
+
# HTTP header 'Content-Type'
|
|
173
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
174
|
+
|
|
175
|
+
# form parameters
|
|
176
|
+
form_params = {}
|
|
177
|
+
form_params["redirect_uri"] = redirect_uri
|
|
178
|
+
|
|
179
|
+
# http body (model)
|
|
180
|
+
post_body = nil
|
|
181
|
+
auth_names = []
|
|
182
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
183
|
+
:header_params => header_params,
|
|
184
|
+
:query_params => query_params,
|
|
185
|
+
:form_params => form_params,
|
|
186
|
+
:body => post_body,
|
|
187
|
+
:auth_names => auth_names,
|
|
188
|
+
:return_type => 'OidcWhitelist')
|
|
189
|
+
if @api_client.config.debugging
|
|
190
|
+
@api_client.config.logger.debug "API called: OIDCApi#oidc_whitelist_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
191
|
+
end
|
|
192
|
+
return data, status_code, headers
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
@@ -0,0 +1,2630 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "uri"
|
|
4
|
+
|
|
5
|
+
module BudgeaClient
|
|
6
|
+
class PFMApi
|
|
7
|
+
attr_accessor :api_client
|
|
8
|
+
|
|
9
|
+
def initialize(api_client = ApiClient.default)
|
|
10
|
+
@api_client = api_client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Confirm new email address
|
|
14
|
+
#
|
|
15
|
+
# @param token token received by email
|
|
16
|
+
# @param [Hash] opts the optional parameters
|
|
17
|
+
# @return [nil]
|
|
18
|
+
def auth_confirm_new_email_post(token, opts = {})
|
|
19
|
+
auth_confirm_new_email_post_with_http_info(token, opts)
|
|
20
|
+
return nil
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Confirm new email address
|
|
24
|
+
#
|
|
25
|
+
# @param token token received by email
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
28
|
+
def auth_confirm_new_email_post_with_http_info(token, opts = {})
|
|
29
|
+
if @api_client.config.debugging
|
|
30
|
+
@api_client.config.logger.debug "Calling API: PFMApi.auth_confirm_new_email_post ..."
|
|
31
|
+
end
|
|
32
|
+
# verify the required parameter 'token' is set
|
|
33
|
+
if @api_client.config.client_side_validation && token.nil?
|
|
34
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling PFMApi.auth_confirm_new_email_post"
|
|
35
|
+
end
|
|
36
|
+
# resource path
|
|
37
|
+
local_var_path = "/auth/confirmNewEmail"
|
|
38
|
+
|
|
39
|
+
# query parameters
|
|
40
|
+
query_params = {}
|
|
41
|
+
|
|
42
|
+
# header parameters
|
|
43
|
+
header_params = {}
|
|
44
|
+
# HTTP header 'Accept' (if needed)
|
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
46
|
+
# HTTP header 'Content-Type'
|
|
47
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
48
|
+
|
|
49
|
+
# form parameters
|
|
50
|
+
form_params = {}
|
|
51
|
+
form_params["token"] = token
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = nil
|
|
55
|
+
auth_names = []
|
|
56
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
57
|
+
:header_params => header_params,
|
|
58
|
+
:query_params => query_params,
|
|
59
|
+
:form_params => form_params,
|
|
60
|
+
:body => post_body,
|
|
61
|
+
:auth_names => auth_names)
|
|
62
|
+
if @api_client.config.debugging
|
|
63
|
+
@api_client.config.logger.debug "API called: PFMApi#auth_confirm_new_email_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
64
|
+
end
|
|
65
|
+
return data, status_code, headers
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Confirm email address
|
|
69
|
+
# <br><br>
|
|
70
|
+
# @param token token received in email
|
|
71
|
+
# @param application application in use
|
|
72
|
+
# @param [Hash] opts the optional parameters
|
|
73
|
+
# @return [InlineResponse2001]
|
|
74
|
+
def auth_confirm_post(token, application, opts = {})
|
|
75
|
+
data, _status_code, _headers = auth_confirm_post_with_http_info(token, application, opts)
|
|
76
|
+
return data
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Confirm email address
|
|
80
|
+
# <br><br>
|
|
81
|
+
# @param token token received in email
|
|
82
|
+
# @param application application in use
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
85
|
+
def auth_confirm_post_with_http_info(token, application, opts = {})
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug "Calling API: PFMApi.auth_confirm_post ..."
|
|
88
|
+
end
|
|
89
|
+
# verify the required parameter 'token' is set
|
|
90
|
+
if @api_client.config.client_side_validation && token.nil?
|
|
91
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling PFMApi.auth_confirm_post"
|
|
92
|
+
end
|
|
93
|
+
# verify the required parameter 'application' is set
|
|
94
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
95
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_confirm_post"
|
|
96
|
+
end
|
|
97
|
+
# resource path
|
|
98
|
+
local_var_path = "/auth/confirm"
|
|
99
|
+
|
|
100
|
+
# query parameters
|
|
101
|
+
query_params = {}
|
|
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
|
+
form_params["token"] = token
|
|
113
|
+
form_params["application"] = application
|
|
114
|
+
|
|
115
|
+
# http body (model)
|
|
116
|
+
post_body = nil
|
|
117
|
+
auth_names = []
|
|
118
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
119
|
+
:header_params => header_params,
|
|
120
|
+
:query_params => query_params,
|
|
121
|
+
:form_params => form_params,
|
|
122
|
+
:body => post_body,
|
|
123
|
+
:auth_names => auth_names,
|
|
124
|
+
:return_type => 'InlineResponse2001')
|
|
125
|
+
if @api_client.config.debugging
|
|
126
|
+
@api_client.config.logger.debug "API called: PFMApi#auth_confirm_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
127
|
+
end
|
|
128
|
+
return data, status_code, headers
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Login with credentials and set as cookie
|
|
132
|
+
#
|
|
133
|
+
# @param username username
|
|
134
|
+
# @param password password
|
|
135
|
+
# @param application application name
|
|
136
|
+
# @param [Hash] opts the optional parameters
|
|
137
|
+
# @option opts [String] :scope scope requested for the token
|
|
138
|
+
# @return [nil]
|
|
139
|
+
def auth_cookie_post(username, password, application, opts = {})
|
|
140
|
+
auth_cookie_post_with_http_info(username, password, application, opts)
|
|
141
|
+
return nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Login with credentials and set as cookie
|
|
145
|
+
#
|
|
146
|
+
# @param username username
|
|
147
|
+
# @param password password
|
|
148
|
+
# @param application application name
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @option opts [String] :scope scope requested for the token
|
|
151
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
152
|
+
def auth_cookie_post_with_http_info(username, password, application, opts = {})
|
|
153
|
+
if @api_client.config.debugging
|
|
154
|
+
@api_client.config.logger.debug "Calling API: PFMApi.auth_cookie_post ..."
|
|
155
|
+
end
|
|
156
|
+
# verify the required parameter 'username' is set
|
|
157
|
+
if @api_client.config.client_side_validation && username.nil?
|
|
158
|
+
fail ArgumentError, "Missing the required parameter 'username' when calling PFMApi.auth_cookie_post"
|
|
159
|
+
end
|
|
160
|
+
# verify the required parameter 'password' is set
|
|
161
|
+
if @api_client.config.client_side_validation && password.nil?
|
|
162
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling PFMApi.auth_cookie_post"
|
|
163
|
+
end
|
|
164
|
+
# verify the required parameter 'application' is set
|
|
165
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_cookie_post"
|
|
167
|
+
end
|
|
168
|
+
# resource path
|
|
169
|
+
local_var_path = "/auth/cookie"
|
|
170
|
+
|
|
171
|
+
# query parameters
|
|
172
|
+
query_params = {}
|
|
173
|
+
|
|
174
|
+
# header parameters
|
|
175
|
+
header_params = {}
|
|
176
|
+
# HTTP header 'Accept' (if needed)
|
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
178
|
+
# HTTP header 'Content-Type'
|
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
180
|
+
|
|
181
|
+
# form parameters
|
|
182
|
+
form_params = {}
|
|
183
|
+
form_params["username"] = username
|
|
184
|
+
form_params["password"] = password
|
|
185
|
+
form_params["application"] = application
|
|
186
|
+
form_params["scope"] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
187
|
+
|
|
188
|
+
# http body (model)
|
|
189
|
+
post_body = nil
|
|
190
|
+
auth_names = []
|
|
191
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
192
|
+
:header_params => header_params,
|
|
193
|
+
:query_params => query_params,
|
|
194
|
+
:form_params => form_params,
|
|
195
|
+
:body => post_body,
|
|
196
|
+
:auth_names => auth_names)
|
|
197
|
+
if @api_client.config.debugging
|
|
198
|
+
@api_client.config.logger.debug "API called: PFMApi#auth_cookie_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
199
|
+
end
|
|
200
|
+
return data, status_code, headers
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Register to API
|
|
204
|
+
# Create a new user with his email address and password.<br><br><br><br>
|
|
205
|
+
# @param email email address
|
|
206
|
+
# @param password password
|
|
207
|
+
# @param application application in use
|
|
208
|
+
# @param [Hash] opts the optional parameters
|
|
209
|
+
# @option opts [String] :sponsor sponsor code to get advantages
|
|
210
|
+
# @option opts [String] :notification_token APNS or GCM token to send notifications to device
|
|
211
|
+
# @return [InlineResponse2003]
|
|
212
|
+
def auth_register_post(email, password, application, opts = {})
|
|
213
|
+
data, _status_code, _headers = auth_register_post_with_http_info(email, password, application, opts)
|
|
214
|
+
return data
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Register to API
|
|
218
|
+
# Create a new user with his email address and password.<br><br><br><br>
|
|
219
|
+
# @param email email address
|
|
220
|
+
# @param password password
|
|
221
|
+
# @param application application in use
|
|
222
|
+
# @param [Hash] opts the optional parameters
|
|
223
|
+
# @option opts [String] :sponsor sponsor code to get advantages
|
|
224
|
+
# @option opts [String] :notification_token APNS or GCM token to send notifications to device
|
|
225
|
+
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
226
|
+
def auth_register_post_with_http_info(email, password, application, opts = {})
|
|
227
|
+
if @api_client.config.debugging
|
|
228
|
+
@api_client.config.logger.debug "Calling API: PFMApi.auth_register_post ..."
|
|
229
|
+
end
|
|
230
|
+
# verify the required parameter 'email' is set
|
|
231
|
+
if @api_client.config.client_side_validation && email.nil?
|
|
232
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling PFMApi.auth_register_post"
|
|
233
|
+
end
|
|
234
|
+
# verify the required parameter 'password' is set
|
|
235
|
+
if @api_client.config.client_side_validation && password.nil?
|
|
236
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling PFMApi.auth_register_post"
|
|
237
|
+
end
|
|
238
|
+
# verify the required parameter 'application' is set
|
|
239
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
240
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_register_post"
|
|
241
|
+
end
|
|
242
|
+
# resource path
|
|
243
|
+
local_var_path = "/auth/register"
|
|
244
|
+
|
|
245
|
+
# query parameters
|
|
246
|
+
query_params = {}
|
|
247
|
+
|
|
248
|
+
# header parameters
|
|
249
|
+
header_params = {}
|
|
250
|
+
# HTTP header 'Accept' (if needed)
|
|
251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
252
|
+
# HTTP header 'Content-Type'
|
|
253
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
254
|
+
|
|
255
|
+
# form parameters
|
|
256
|
+
form_params = {}
|
|
257
|
+
form_params["email"] = email
|
|
258
|
+
form_params["password"] = password
|
|
259
|
+
form_params["application"] = application
|
|
260
|
+
form_params["sponsor"] = opts[:'sponsor'] if !opts[:'sponsor'].nil?
|
|
261
|
+
form_params["notification_token"] = opts[:'notification_token'] if !opts[:'notification_token'].nil?
|
|
262
|
+
|
|
263
|
+
# http body (model)
|
|
264
|
+
post_body = nil
|
|
265
|
+
auth_names = []
|
|
266
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
267
|
+
:header_params => header_params,
|
|
268
|
+
:query_params => query_params,
|
|
269
|
+
:form_params => form_params,
|
|
270
|
+
:body => post_body,
|
|
271
|
+
:auth_names => auth_names,
|
|
272
|
+
:return_type => 'InlineResponse2003')
|
|
273
|
+
if @api_client.config.debugging
|
|
274
|
+
@api_client.config.logger.debug "API called: PFMApi#auth_register_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
275
|
+
end
|
|
276
|
+
return data, status_code, headers
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Remove user access
|
|
280
|
+
# This endpoint removes the token in use.<br><br>
|
|
281
|
+
# @param [Hash] opts the optional parameters
|
|
282
|
+
# @return [nil]
|
|
283
|
+
def auth_token_delete(opts = {})
|
|
284
|
+
auth_token_delete_with_http_info(opts)
|
|
285
|
+
return nil
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Remove user access
|
|
289
|
+
# This endpoint removes the token in use.<br><br>
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
292
|
+
def auth_token_delete_with_http_info(opts = {})
|
|
293
|
+
if @api_client.config.debugging
|
|
294
|
+
@api_client.config.logger.debug "Calling API: PFMApi.auth_token_delete ..."
|
|
295
|
+
end
|
|
296
|
+
# resource path
|
|
297
|
+
local_var_path = "/auth/token"
|
|
298
|
+
|
|
299
|
+
# query parameters
|
|
300
|
+
query_params = {}
|
|
301
|
+
|
|
302
|
+
# header parameters
|
|
303
|
+
header_params = {}
|
|
304
|
+
# HTTP header 'Accept' (if needed)
|
|
305
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
306
|
+
# HTTP header 'Content-Type'
|
|
307
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
308
|
+
|
|
309
|
+
# form parameters
|
|
310
|
+
form_params = {}
|
|
311
|
+
|
|
312
|
+
# http body (model)
|
|
313
|
+
post_body = nil
|
|
314
|
+
auth_names = []
|
|
315
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
316
|
+
:header_params => header_params,
|
|
317
|
+
:query_params => query_params,
|
|
318
|
+
:form_params => form_params,
|
|
319
|
+
:body => post_body,
|
|
320
|
+
:auth_names => auth_names)
|
|
321
|
+
if @api_client.config.debugging
|
|
322
|
+
@api_client.config.logger.debug "API called: PFMApi#auth_token_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
323
|
+
end
|
|
324
|
+
return data, status_code, headers
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Login to API with credentials
|
|
328
|
+
# Request a new user token by giving an username and a password.<br><br><br><br>
|
|
329
|
+
# @param username username
|
|
330
|
+
# @param password password
|
|
331
|
+
# @param application application name
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @option opts [String] :scope scope requested for the token
|
|
334
|
+
# @return [InlineResponse2004]
|
|
335
|
+
def auth_token_post(username, password, application, opts = {})
|
|
336
|
+
data, _status_code, _headers = auth_token_post_with_http_info(username, password, application, opts)
|
|
337
|
+
return data
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Login to API with credentials
|
|
341
|
+
# Request a new user token by giving an username and a password.<br><br><br><br>
|
|
342
|
+
# @param username username
|
|
343
|
+
# @param password password
|
|
344
|
+
# @param application application name
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @option opts [String] :scope scope requested for the token
|
|
347
|
+
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
348
|
+
def auth_token_post_with_http_info(username, password, application, opts = {})
|
|
349
|
+
if @api_client.config.debugging
|
|
350
|
+
@api_client.config.logger.debug "Calling API: PFMApi.auth_token_post ..."
|
|
351
|
+
end
|
|
352
|
+
# verify the required parameter 'username' is set
|
|
353
|
+
if @api_client.config.client_side_validation && username.nil?
|
|
354
|
+
fail ArgumentError, "Missing the required parameter 'username' when calling PFMApi.auth_token_post"
|
|
355
|
+
end
|
|
356
|
+
# verify the required parameter 'password' is set
|
|
357
|
+
if @api_client.config.client_side_validation && password.nil?
|
|
358
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling PFMApi.auth_token_post"
|
|
359
|
+
end
|
|
360
|
+
# verify the required parameter 'application' is set
|
|
361
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
362
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_token_post"
|
|
363
|
+
end
|
|
364
|
+
# resource path
|
|
365
|
+
local_var_path = "/auth/token"
|
|
366
|
+
|
|
367
|
+
# query parameters
|
|
368
|
+
query_params = {}
|
|
369
|
+
|
|
370
|
+
# header parameters
|
|
371
|
+
header_params = {}
|
|
372
|
+
# HTTP header 'Accept' (if needed)
|
|
373
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
374
|
+
# HTTP header 'Content-Type'
|
|
375
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
376
|
+
|
|
377
|
+
# form parameters
|
|
378
|
+
form_params = {}
|
|
379
|
+
form_params["username"] = username
|
|
380
|
+
form_params["password"] = password
|
|
381
|
+
form_params["application"] = application
|
|
382
|
+
form_params["scope"] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
383
|
+
|
|
384
|
+
# http body (model)
|
|
385
|
+
post_body = nil
|
|
386
|
+
auth_names = []
|
|
387
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
388
|
+
:header_params => header_params,
|
|
389
|
+
:query_params => query_params,
|
|
390
|
+
:form_params => form_params,
|
|
391
|
+
:body => post_body,
|
|
392
|
+
:auth_names => auth_names,
|
|
393
|
+
:return_type => 'InlineResponse2004')
|
|
394
|
+
if @api_client.config.debugging
|
|
395
|
+
@api_client.config.logger.debug "API called: PFMApi#auth_token_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
396
|
+
end
|
|
397
|
+
return data, status_code, headers
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Delete the user's connections
|
|
401
|
+
# deletes all connections of the user given his hash<br><br>
|
|
402
|
+
# @param [Hash] opts the optional parameters
|
|
403
|
+
# @return [nil]
|
|
404
|
+
def hash_delete(opts = {})
|
|
405
|
+
hash_delete_with_http_info(opts)
|
|
406
|
+
return nil
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Delete the user's connections
|
|
410
|
+
# deletes all connections of the user given his hash<br><br>
|
|
411
|
+
# @param [Hash] opts the optional parameters
|
|
412
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
413
|
+
def hash_delete_with_http_info(opts = {})
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug "Calling API: PFMApi.hash_delete ..."
|
|
416
|
+
end
|
|
417
|
+
# resource path
|
|
418
|
+
local_var_path = "/hash"
|
|
419
|
+
|
|
420
|
+
# query parameters
|
|
421
|
+
query_params = {}
|
|
422
|
+
|
|
423
|
+
# header parameters
|
|
424
|
+
header_params = {}
|
|
425
|
+
# HTTP header 'Accept' (if needed)
|
|
426
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
427
|
+
# HTTP header 'Content-Type'
|
|
428
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
429
|
+
|
|
430
|
+
# form parameters
|
|
431
|
+
form_params = {}
|
|
432
|
+
|
|
433
|
+
# http body (model)
|
|
434
|
+
post_body = nil
|
|
435
|
+
auth_names = []
|
|
436
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
437
|
+
:header_params => header_params,
|
|
438
|
+
:query_params => query_params,
|
|
439
|
+
:form_params => form_params,
|
|
440
|
+
:body => post_body,
|
|
441
|
+
:auth_names => auth_names)
|
|
442
|
+
if @api_client.config.debugging
|
|
443
|
+
@api_client.config.logger.debug "API called: PFMApi#hash_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
444
|
+
end
|
|
445
|
+
return data, status_code, headers
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# Get balances of accounts
|
|
449
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
450
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
451
|
+
# @param id_account
|
|
452
|
+
# @param [Hash] opts the optional parameters
|
|
453
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
454
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
455
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
456
|
+
# @return [nil]
|
|
457
|
+
def users_id_user_accounts_id_account_balances_get(id_user, id_account, opts = {})
|
|
458
|
+
users_id_user_accounts_id_account_balances_get_with_http_info(id_user, id_account, opts)
|
|
459
|
+
return nil
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Get balances of accounts
|
|
463
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
464
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
465
|
+
# @param id_account
|
|
466
|
+
# @param [Hash] opts the optional parameters
|
|
467
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
468
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
469
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
470
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
471
|
+
def users_id_user_accounts_id_account_balances_get_with_http_info(id_user, id_account, opts = {})
|
|
472
|
+
if @api_client.config.debugging
|
|
473
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accounts_id_account_balances_get ..."
|
|
474
|
+
end
|
|
475
|
+
# verify the required parameter 'id_user' is set
|
|
476
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
477
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accounts_id_account_balances_get"
|
|
478
|
+
end
|
|
479
|
+
# verify the required parameter 'id_account' is set
|
|
480
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
481
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_balances_get"
|
|
482
|
+
end
|
|
483
|
+
# resource path
|
|
484
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/balances".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
|
485
|
+
|
|
486
|
+
# query parameters
|
|
487
|
+
query_params = {}
|
|
488
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
|
489
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
|
490
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
491
|
+
|
|
492
|
+
# header parameters
|
|
493
|
+
header_params = {}
|
|
494
|
+
# HTTP header 'Accept' (if needed)
|
|
495
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
496
|
+
# HTTP header 'Content-Type'
|
|
497
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
498
|
+
|
|
499
|
+
# form parameters
|
|
500
|
+
form_params = {}
|
|
501
|
+
|
|
502
|
+
# http body (model)
|
|
503
|
+
post_body = nil
|
|
504
|
+
auth_names = []
|
|
505
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
506
|
+
:header_params => header_params,
|
|
507
|
+
:query_params => query_params,
|
|
508
|
+
:form_params => form_params,
|
|
509
|
+
:body => post_body,
|
|
510
|
+
:auth_names => auth_names)
|
|
511
|
+
if @api_client.config.debugging
|
|
512
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accounts_id_account_balances_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
513
|
+
end
|
|
514
|
+
return data, status_code, headers
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Get a list of configurated alerts
|
|
518
|
+
# <br><br>
|
|
519
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
520
|
+
# @param id_account
|
|
521
|
+
# @param [Hash] opts the optional parameters
|
|
522
|
+
# @option opts [String] :expand
|
|
523
|
+
# @return [InlineResponse20022]
|
|
524
|
+
def users_id_user_accounts_id_account_operationsalert_get(id_user, id_account, opts = {})
|
|
525
|
+
data, _status_code, _headers = users_id_user_accounts_id_account_operationsalert_get_with_http_info(id_user, id_account, opts)
|
|
526
|
+
return data
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# Get a list of configurated alerts
|
|
530
|
+
# <br><br>
|
|
531
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
532
|
+
# @param id_account
|
|
533
|
+
# @param [Hash] opts the optional parameters
|
|
534
|
+
# @option opts [String] :expand
|
|
535
|
+
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
|
536
|
+
def users_id_user_accounts_id_account_operationsalert_get_with_http_info(id_user, id_account, opts = {})
|
|
537
|
+
if @api_client.config.debugging
|
|
538
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_get ..."
|
|
539
|
+
end
|
|
540
|
+
# verify the required parameter 'id_user' is set
|
|
541
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
542
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_get"
|
|
543
|
+
end
|
|
544
|
+
# verify the required parameter 'id_account' is set
|
|
545
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
546
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_get"
|
|
547
|
+
end
|
|
548
|
+
# resource path
|
|
549
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/operationsalert".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
|
550
|
+
|
|
551
|
+
# query parameters
|
|
552
|
+
query_params = {}
|
|
553
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
554
|
+
|
|
555
|
+
# header parameters
|
|
556
|
+
header_params = {}
|
|
557
|
+
# HTTP header 'Accept' (if needed)
|
|
558
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
559
|
+
# HTTP header 'Content-Type'
|
|
560
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
561
|
+
|
|
562
|
+
# form parameters
|
|
563
|
+
form_params = {}
|
|
564
|
+
|
|
565
|
+
# http body (model)
|
|
566
|
+
post_body = nil
|
|
567
|
+
auth_names = []
|
|
568
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
569
|
+
:header_params => header_params,
|
|
570
|
+
:query_params => query_params,
|
|
571
|
+
:form_params => form_params,
|
|
572
|
+
:body => post_body,
|
|
573
|
+
:auth_names => auth_names,
|
|
574
|
+
:return_type => 'InlineResponse20022')
|
|
575
|
+
if @api_client.config.debugging
|
|
576
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accounts_id_account_operationsalert_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
577
|
+
end
|
|
578
|
+
return data, status_code, headers
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# Delete an alert on transactions or investemens
|
|
582
|
+
# <br><br>
|
|
583
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
584
|
+
# @param id_account
|
|
585
|
+
# @param id_operationsalert
|
|
586
|
+
# @param [Hash] opts the optional parameters
|
|
587
|
+
# @option opts [String] :expand
|
|
588
|
+
# @return [UserAlert]
|
|
589
|
+
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete(id_user, id_account, id_operationsalert, opts = {})
|
|
590
|
+
data, _status_code, _headers = users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_account, id_operationsalert, opts)
|
|
591
|
+
return data
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# Delete an alert on transactions or investemens
|
|
595
|
+
# <br><br>
|
|
596
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
597
|
+
# @param id_account
|
|
598
|
+
# @param id_operationsalert
|
|
599
|
+
# @param [Hash] opts the optional parameters
|
|
600
|
+
# @option opts [String] :expand
|
|
601
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
602
|
+
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_account, id_operationsalert, opts = {})
|
|
603
|
+
if @api_client.config.debugging
|
|
604
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete ..."
|
|
605
|
+
end
|
|
606
|
+
# verify the required parameter 'id_user' is set
|
|
607
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
608
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
609
|
+
end
|
|
610
|
+
# verify the required parameter 'id_account' is set
|
|
611
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
612
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
613
|
+
end
|
|
614
|
+
# verify the required parameter 'id_operationsalert' is set
|
|
615
|
+
if @api_client.config.client_side_validation && id_operationsalert.nil?
|
|
616
|
+
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
617
|
+
end
|
|
618
|
+
# resource path
|
|
619
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/operationsalert/{id_operationsalert}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
|
620
|
+
|
|
621
|
+
# query parameters
|
|
622
|
+
query_params = {}
|
|
623
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
624
|
+
|
|
625
|
+
# header parameters
|
|
626
|
+
header_params = {}
|
|
627
|
+
# HTTP header 'Accept' (if needed)
|
|
628
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
629
|
+
# HTTP header 'Content-Type'
|
|
630
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
631
|
+
|
|
632
|
+
# form parameters
|
|
633
|
+
form_params = {}
|
|
634
|
+
|
|
635
|
+
# http body (model)
|
|
636
|
+
post_body = nil
|
|
637
|
+
auth_names = []
|
|
638
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
639
|
+
:header_params => header_params,
|
|
640
|
+
:query_params => query_params,
|
|
641
|
+
:form_params => form_params,
|
|
642
|
+
:body => post_body,
|
|
643
|
+
:auth_names => auth_names,
|
|
644
|
+
:return_type => 'UserAlert')
|
|
645
|
+
if @api_client.config.debugging
|
|
646
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
647
|
+
end
|
|
648
|
+
return data, status_code, headers
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# Edit an alert on transactions or investemens
|
|
652
|
+
#
|
|
653
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
654
|
+
# @param id_account
|
|
655
|
+
# @param id_operationsalert
|
|
656
|
+
# @param [Hash] opts the optional parameters
|
|
657
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
658
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
659
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
660
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
661
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
662
|
+
# @option opts [String] :expand
|
|
663
|
+
# @return [UserAlert]
|
|
664
|
+
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_put(id_user, id_account, id_operationsalert, opts = {})
|
|
665
|
+
data, _status_code, _headers = users_id_user_accounts_id_account_operationsalert_id_operationsalert_put_with_http_info(id_user, id_account, id_operationsalert, opts)
|
|
666
|
+
return data
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# Edit an alert on transactions or investemens
|
|
670
|
+
#
|
|
671
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
672
|
+
# @param id_account
|
|
673
|
+
# @param id_operationsalert
|
|
674
|
+
# @param [Hash] opts the optional parameters
|
|
675
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
676
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
677
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
678
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
679
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
680
|
+
# @option opts [String] :expand
|
|
681
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
682
|
+
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_put_with_http_info(id_user, id_account, id_operationsalert, opts = {})
|
|
683
|
+
if @api_client.config.debugging
|
|
684
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_put ..."
|
|
685
|
+
end
|
|
686
|
+
# verify the required parameter 'id_user' is set
|
|
687
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
688
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
689
|
+
end
|
|
690
|
+
# verify the required parameter 'id_account' is set
|
|
691
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
692
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
693
|
+
end
|
|
694
|
+
# verify the required parameter 'id_operationsalert' is set
|
|
695
|
+
if @api_client.config.client_side_validation && id_operationsalert.nil?
|
|
696
|
+
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
697
|
+
end
|
|
698
|
+
# resource path
|
|
699
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/operationsalert/{id_operationsalert}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
|
700
|
+
|
|
701
|
+
# query parameters
|
|
702
|
+
query_params = {}
|
|
703
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
704
|
+
|
|
705
|
+
# header parameters
|
|
706
|
+
header_params = {}
|
|
707
|
+
# HTTP header 'Accept' (if needed)
|
|
708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
709
|
+
# HTTP header 'Content-Type'
|
|
710
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
711
|
+
|
|
712
|
+
# form parameters
|
|
713
|
+
form_params = {}
|
|
714
|
+
form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
|
|
715
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
716
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
717
|
+
form_params["value_type"] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
|
718
|
+
form_params["date_range"] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
|
719
|
+
|
|
720
|
+
# http body (model)
|
|
721
|
+
post_body = nil
|
|
722
|
+
auth_names = []
|
|
723
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
724
|
+
:header_params => header_params,
|
|
725
|
+
:query_params => query_params,
|
|
726
|
+
:form_params => form_params,
|
|
727
|
+
:body => post_body,
|
|
728
|
+
:auth_names => auth_names,
|
|
729
|
+
:return_type => 'UserAlert')
|
|
730
|
+
if @api_client.config.debugging
|
|
731
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accounts_id_account_operationsalert_id_operationsalert_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
732
|
+
end
|
|
733
|
+
return data, status_code, headers
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Create an alert on transactions or investemens of a given user
|
|
737
|
+
#
|
|
738
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
739
|
+
# @param id_account
|
|
740
|
+
# @param [Hash] opts the optional parameters
|
|
741
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
742
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
743
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
744
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
745
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
746
|
+
# @option opts [String] :expand
|
|
747
|
+
# @return [UserAlert]
|
|
748
|
+
def users_id_user_accounts_id_account_operationsalert_post(id_user, id_account, opts = {})
|
|
749
|
+
data, _status_code, _headers = users_id_user_accounts_id_account_operationsalert_post_with_http_info(id_user, id_account, opts)
|
|
750
|
+
return data
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
# Create an alert on transactions or investemens of a given user
|
|
754
|
+
#
|
|
755
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
756
|
+
# @param id_account
|
|
757
|
+
# @param [Hash] opts the optional parameters
|
|
758
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
759
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
760
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
761
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
762
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
763
|
+
# @option opts [String] :expand
|
|
764
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
765
|
+
def users_id_user_accounts_id_account_operationsalert_post_with_http_info(id_user, id_account, opts = {})
|
|
766
|
+
if @api_client.config.debugging
|
|
767
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_post ..."
|
|
768
|
+
end
|
|
769
|
+
# verify the required parameter 'id_user' is set
|
|
770
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
771
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_post"
|
|
772
|
+
end
|
|
773
|
+
# verify the required parameter 'id_account' is set
|
|
774
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
775
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_post"
|
|
776
|
+
end
|
|
777
|
+
# resource path
|
|
778
|
+
local_var_path = "/users/{id_user}/accounts/{id_account}/operationsalert".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
|
779
|
+
|
|
780
|
+
# query parameters
|
|
781
|
+
query_params = {}
|
|
782
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
783
|
+
|
|
784
|
+
# header parameters
|
|
785
|
+
header_params = {}
|
|
786
|
+
# HTTP header 'Accept' (if needed)
|
|
787
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
788
|
+
# HTTP header 'Content-Type'
|
|
789
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
790
|
+
|
|
791
|
+
# form parameters
|
|
792
|
+
form_params = {}
|
|
793
|
+
form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
|
|
794
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
795
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
796
|
+
form_params["value_type"] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
|
797
|
+
form_params["date_range"] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
|
798
|
+
|
|
799
|
+
# http body (model)
|
|
800
|
+
post_body = nil
|
|
801
|
+
auth_names = []
|
|
802
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
803
|
+
:header_params => header_params,
|
|
804
|
+
:query_params => query_params,
|
|
805
|
+
:form_params => form_params,
|
|
806
|
+
:body => post_body,
|
|
807
|
+
:auth_names => auth_names,
|
|
808
|
+
:return_type => 'UserAlert')
|
|
809
|
+
if @api_client.config.debugging
|
|
810
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accounts_id_account_operationsalert_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
811
|
+
end
|
|
812
|
+
return data, status_code, headers
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Get alert configuration of a specific account
|
|
816
|
+
# <br><br>
|
|
817
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
818
|
+
# @param [Hash] opts the optional parameters
|
|
819
|
+
# @return [Object]
|
|
820
|
+
def users_id_user_accountsalert_get(id_user, opts = {})
|
|
821
|
+
data, _status_code, _headers = users_id_user_accountsalert_get_with_http_info(id_user, opts)
|
|
822
|
+
return data
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# Get alert configuration of a specific account
|
|
826
|
+
# <br><br>
|
|
827
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
828
|
+
# @param [Hash] opts the optional parameters
|
|
829
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
830
|
+
def users_id_user_accountsalert_get_with_http_info(id_user, opts = {})
|
|
831
|
+
if @api_client.config.debugging
|
|
832
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accountsalert_get ..."
|
|
833
|
+
end
|
|
834
|
+
# verify the required parameter 'id_user' is set
|
|
835
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
836
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accountsalert_get"
|
|
837
|
+
end
|
|
838
|
+
# resource path
|
|
839
|
+
local_var_path = "/users/{id_user}/accountsalert".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
840
|
+
|
|
841
|
+
# query parameters
|
|
842
|
+
query_params = {}
|
|
843
|
+
|
|
844
|
+
# header parameters
|
|
845
|
+
header_params = {}
|
|
846
|
+
# HTTP header 'Accept' (if needed)
|
|
847
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
848
|
+
# HTTP header 'Content-Type'
|
|
849
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
850
|
+
|
|
851
|
+
# form parameters
|
|
852
|
+
form_params = {}
|
|
853
|
+
|
|
854
|
+
# http body (model)
|
|
855
|
+
post_body = nil
|
|
856
|
+
auth_names = []
|
|
857
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
858
|
+
:header_params => header_params,
|
|
859
|
+
:query_params => query_params,
|
|
860
|
+
:form_params => form_params,
|
|
861
|
+
:body => post_body,
|
|
862
|
+
:auth_names => auth_names,
|
|
863
|
+
:return_type => 'Object')
|
|
864
|
+
if @api_client.config.debugging
|
|
865
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accountsalert_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
866
|
+
end
|
|
867
|
+
return data, status_code, headers
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
# Update alert configuration of an account
|
|
871
|
+
# It updates the alert configuration of a specific account<br><br><br><br>
|
|
872
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
873
|
+
# @param [Hash] opts the optional parameters
|
|
874
|
+
# @option opts [Integer] :expense_max threshold from which an alert has to be sent for a high expense
|
|
875
|
+
# @option opts [Integer] :accounts list of accounts (id coma separated) on wich the alert has to be applied. If 'all' is given, it is applied on all accounts. default: all
|
|
876
|
+
# @option opts [Integer] :income_max threshold from which an alert has to be sent for a high income
|
|
877
|
+
# @option opts [Integer] :balance_min2 second threshold from which an alert has to be sent for a low balance
|
|
878
|
+
# @option opts [BOOLEAN] :enabled if false, the alert is not taken into account
|
|
879
|
+
# @return [Object]
|
|
880
|
+
def users_id_user_accountsalert_put(id_user, opts = {})
|
|
881
|
+
data, _status_code, _headers = users_id_user_accountsalert_put_with_http_info(id_user, opts)
|
|
882
|
+
return data
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
# Update alert configuration of an account
|
|
886
|
+
# It updates the alert configuration of a specific account<br><br><br><br>
|
|
887
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
888
|
+
# @param [Hash] opts the optional parameters
|
|
889
|
+
# @option opts [Integer] :expense_max threshold from which an alert has to be sent for a high expense
|
|
890
|
+
# @option opts [Integer] :accounts list of accounts (id coma separated) on wich the alert has to be applied. If 'all' is given, it is applied on all accounts. default: all
|
|
891
|
+
# @option opts [Integer] :income_max threshold from which an alert has to be sent for a high income
|
|
892
|
+
# @option opts [Integer] :balance_min2 second threshold from which an alert has to be sent for a low balance
|
|
893
|
+
# @option opts [BOOLEAN] :enabled if false, the alert is not taken into account
|
|
894
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
895
|
+
def users_id_user_accountsalert_put_with_http_info(id_user, opts = {})
|
|
896
|
+
if @api_client.config.debugging
|
|
897
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_accountsalert_put ..."
|
|
898
|
+
end
|
|
899
|
+
# verify the required parameter 'id_user' is set
|
|
900
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
901
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accountsalert_put"
|
|
902
|
+
end
|
|
903
|
+
# resource path
|
|
904
|
+
local_var_path = "/users/{id_user}/accountsalert".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
905
|
+
|
|
906
|
+
# query parameters
|
|
907
|
+
query_params = {}
|
|
908
|
+
|
|
909
|
+
# header parameters
|
|
910
|
+
header_params = {}
|
|
911
|
+
# HTTP header 'Accept' (if needed)
|
|
912
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
913
|
+
# HTTP header 'Content-Type'
|
|
914
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
915
|
+
|
|
916
|
+
# form parameters
|
|
917
|
+
form_params = {}
|
|
918
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
919
|
+
form_params["accounts"] = opts[:'accounts'] if !opts[:'accounts'].nil?
|
|
920
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
921
|
+
form_params["balance_min2"] = opts[:'balance_min2'] if !opts[:'balance_min2'].nil?
|
|
922
|
+
form_params["enabled"] = opts[:'enabled'] if !opts[:'enabled'].nil?
|
|
923
|
+
|
|
924
|
+
# http body (model)
|
|
925
|
+
post_body = nil
|
|
926
|
+
auth_names = []
|
|
927
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
928
|
+
:header_params => header_params,
|
|
929
|
+
:query_params => query_params,
|
|
930
|
+
:form_params => form_params,
|
|
931
|
+
:body => post_body,
|
|
932
|
+
:auth_names => auth_names,
|
|
933
|
+
:return_type => 'Object')
|
|
934
|
+
if @api_client.config.debugging
|
|
935
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_accountsalert_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
936
|
+
end
|
|
937
|
+
return data, status_code, headers
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Get balances of accounts
|
|
941
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
942
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
943
|
+
# @param [Hash] opts the optional parameters
|
|
944
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
945
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
946
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
947
|
+
# @return [nil]
|
|
948
|
+
def users_id_user_balances_get(id_user, opts = {})
|
|
949
|
+
users_id_user_balances_get_with_http_info(id_user, opts)
|
|
950
|
+
return nil
|
|
951
|
+
end
|
|
952
|
+
|
|
953
|
+
# Get balances of accounts
|
|
954
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
955
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
956
|
+
# @param [Hash] opts the optional parameters
|
|
957
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
958
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
959
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
960
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
961
|
+
def users_id_user_balances_get_with_http_info(id_user, opts = {})
|
|
962
|
+
if @api_client.config.debugging
|
|
963
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_balances_get ..."
|
|
964
|
+
end
|
|
965
|
+
# verify the required parameter 'id_user' is set
|
|
966
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
967
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_balances_get"
|
|
968
|
+
end
|
|
969
|
+
# resource path
|
|
970
|
+
local_var_path = "/users/{id_user}/balances".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
971
|
+
|
|
972
|
+
# query parameters
|
|
973
|
+
query_params = {}
|
|
974
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
|
975
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
|
976
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
977
|
+
|
|
978
|
+
# header parameters
|
|
979
|
+
header_params = {}
|
|
980
|
+
# HTTP header 'Accept' (if needed)
|
|
981
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
982
|
+
# HTTP header 'Content-Type'
|
|
983
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
984
|
+
|
|
985
|
+
# form parameters
|
|
986
|
+
form_params = {}
|
|
987
|
+
|
|
988
|
+
# http body (model)
|
|
989
|
+
post_body = nil
|
|
990
|
+
auth_names = []
|
|
991
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
992
|
+
:header_params => header_params,
|
|
993
|
+
:query_params => query_params,
|
|
994
|
+
:form_params => form_params,
|
|
995
|
+
:body => post_body,
|
|
996
|
+
:auth_names => auth_names)
|
|
997
|
+
if @api_client.config.debugging
|
|
998
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_balances_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
999
|
+
end
|
|
1000
|
+
return data, status_code, headers
|
|
1001
|
+
end
|
|
1002
|
+
|
|
1003
|
+
# Get balances of accounts
|
|
1004
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
1005
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1006
|
+
# @param id_connection
|
|
1007
|
+
# @param id_account
|
|
1008
|
+
# @param [Hash] opts the optional parameters
|
|
1009
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
1010
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
1011
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
1012
|
+
# @return [nil]
|
|
1013
|
+
def users_id_user_connections_id_connection_accounts_id_account_balances_get(id_user, id_connection, id_account, opts = {})
|
|
1014
|
+
users_id_user_connections_id_connection_accounts_id_account_balances_get_with_http_info(id_user, id_connection, id_account, opts)
|
|
1015
|
+
return nil
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# Get balances of accounts
|
|
1019
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
1020
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1021
|
+
# @param id_connection
|
|
1022
|
+
# @param id_account
|
|
1023
|
+
# @param [Hash] opts the optional parameters
|
|
1024
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
1025
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
1026
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
1027
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1028
|
+
def users_id_user_connections_id_connection_accounts_id_account_balances_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
|
1029
|
+
if @api_client.config.debugging
|
|
1030
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_balances_get ..."
|
|
1031
|
+
end
|
|
1032
|
+
# verify the required parameter 'id_user' is set
|
|
1033
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1034
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_balances_get"
|
|
1035
|
+
end
|
|
1036
|
+
# verify the required parameter 'id_connection' is set
|
|
1037
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
|
1038
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_balances_get"
|
|
1039
|
+
end
|
|
1040
|
+
# verify the required parameter 'id_account' is set
|
|
1041
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
1042
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_balances_get"
|
|
1043
|
+
end
|
|
1044
|
+
# resource path
|
|
1045
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/balances".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
|
1046
|
+
|
|
1047
|
+
# query parameters
|
|
1048
|
+
query_params = {}
|
|
1049
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
|
1050
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
|
1051
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
1052
|
+
|
|
1053
|
+
# header parameters
|
|
1054
|
+
header_params = {}
|
|
1055
|
+
# HTTP header 'Accept' (if needed)
|
|
1056
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1057
|
+
# HTTP header 'Content-Type'
|
|
1058
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1059
|
+
|
|
1060
|
+
# form parameters
|
|
1061
|
+
form_params = {}
|
|
1062
|
+
|
|
1063
|
+
# http body (model)
|
|
1064
|
+
post_body = nil
|
|
1065
|
+
auth_names = []
|
|
1066
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1067
|
+
:header_params => header_params,
|
|
1068
|
+
:query_params => query_params,
|
|
1069
|
+
:form_params => form_params,
|
|
1070
|
+
:body => post_body,
|
|
1071
|
+
:auth_names => auth_names)
|
|
1072
|
+
if @api_client.config.debugging
|
|
1073
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_connections_id_connection_accounts_id_account_balances_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1074
|
+
end
|
|
1075
|
+
return data, status_code, headers
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
# Get a list of configurated alerts
|
|
1079
|
+
# <br><br>
|
|
1080
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1081
|
+
# @param id_connection
|
|
1082
|
+
# @param id_account
|
|
1083
|
+
# @param [Hash] opts the optional parameters
|
|
1084
|
+
# @option opts [String] :expand
|
|
1085
|
+
# @return [InlineResponse20022]
|
|
1086
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_get(id_user, id_connection, id_account, opts = {})
|
|
1087
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_operationsalert_get_with_http_info(id_user, id_connection, id_account, opts)
|
|
1088
|
+
return data
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
# Get a list of configurated alerts
|
|
1092
|
+
# <br><br>
|
|
1093
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1094
|
+
# @param id_connection
|
|
1095
|
+
# @param id_account
|
|
1096
|
+
# @param [Hash] opts the optional parameters
|
|
1097
|
+
# @option opts [String] :expand
|
|
1098
|
+
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
|
1099
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
|
1100
|
+
if @api_client.config.debugging
|
|
1101
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_get ..."
|
|
1102
|
+
end
|
|
1103
|
+
# verify the required parameter 'id_user' is set
|
|
1104
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1105
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_get"
|
|
1106
|
+
end
|
|
1107
|
+
# verify the required parameter 'id_connection' is set
|
|
1108
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
|
1109
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_get"
|
|
1110
|
+
end
|
|
1111
|
+
# verify the required parameter 'id_account' is set
|
|
1112
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
1113
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_get"
|
|
1114
|
+
end
|
|
1115
|
+
# resource path
|
|
1116
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
|
1117
|
+
|
|
1118
|
+
# query parameters
|
|
1119
|
+
query_params = {}
|
|
1120
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1121
|
+
|
|
1122
|
+
# header parameters
|
|
1123
|
+
header_params = {}
|
|
1124
|
+
# HTTP header 'Accept' (if needed)
|
|
1125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1126
|
+
# HTTP header 'Content-Type'
|
|
1127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1128
|
+
|
|
1129
|
+
# form parameters
|
|
1130
|
+
form_params = {}
|
|
1131
|
+
|
|
1132
|
+
# http body (model)
|
|
1133
|
+
post_body = nil
|
|
1134
|
+
auth_names = []
|
|
1135
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1136
|
+
:header_params => header_params,
|
|
1137
|
+
:query_params => query_params,
|
|
1138
|
+
:form_params => form_params,
|
|
1139
|
+
:body => post_body,
|
|
1140
|
+
:auth_names => auth_names,
|
|
1141
|
+
:return_type => 'InlineResponse20022')
|
|
1142
|
+
if @api_client.config.debugging
|
|
1143
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_connections_id_connection_accounts_id_account_operationsalert_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1144
|
+
end
|
|
1145
|
+
return data, status_code, headers
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# Delete an alert on transactions or investemens
|
|
1149
|
+
# <br><br>
|
|
1150
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1151
|
+
# @param id_connection
|
|
1152
|
+
# @param id_account
|
|
1153
|
+
# @param id_operationsalert
|
|
1154
|
+
# @param [Hash] opts the optional parameters
|
|
1155
|
+
# @option opts [String] :expand
|
|
1156
|
+
# @return [UserAlert]
|
|
1157
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete(id_user, id_connection, id_account, id_operationsalert, opts = {})
|
|
1158
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_connection, id_account, id_operationsalert, opts)
|
|
1159
|
+
return data
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
# Delete an alert on transactions or investemens
|
|
1163
|
+
# <br><br>
|
|
1164
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1165
|
+
# @param id_connection
|
|
1166
|
+
# @param id_account
|
|
1167
|
+
# @param id_operationsalert
|
|
1168
|
+
# @param [Hash] opts the optional parameters
|
|
1169
|
+
# @option opts [String] :expand
|
|
1170
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
1171
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_connection, id_account, id_operationsalert, opts = {})
|
|
1172
|
+
if @api_client.config.debugging
|
|
1173
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete ..."
|
|
1174
|
+
end
|
|
1175
|
+
# verify the required parameter 'id_user' is set
|
|
1176
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1177
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
1178
|
+
end
|
|
1179
|
+
# verify the required parameter 'id_connection' is set
|
|
1180
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
|
1181
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
1182
|
+
end
|
|
1183
|
+
# verify the required parameter 'id_account' is set
|
|
1184
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
1185
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
1186
|
+
end
|
|
1187
|
+
# verify the required parameter 'id_operationsalert' is set
|
|
1188
|
+
if @api_client.config.client_side_validation && id_operationsalert.nil?
|
|
1189
|
+
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete"
|
|
1190
|
+
end
|
|
1191
|
+
# resource path
|
|
1192
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert/{id_operationsalert}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
|
1193
|
+
|
|
1194
|
+
# query parameters
|
|
1195
|
+
query_params = {}
|
|
1196
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1197
|
+
|
|
1198
|
+
# header parameters
|
|
1199
|
+
header_params = {}
|
|
1200
|
+
# HTTP header 'Accept' (if needed)
|
|
1201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1202
|
+
# HTTP header 'Content-Type'
|
|
1203
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1204
|
+
|
|
1205
|
+
# form parameters
|
|
1206
|
+
form_params = {}
|
|
1207
|
+
|
|
1208
|
+
# http body (model)
|
|
1209
|
+
post_body = nil
|
|
1210
|
+
auth_names = []
|
|
1211
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
1212
|
+
:header_params => header_params,
|
|
1213
|
+
:query_params => query_params,
|
|
1214
|
+
:form_params => form_params,
|
|
1215
|
+
:body => post_body,
|
|
1216
|
+
:auth_names => auth_names,
|
|
1217
|
+
:return_type => 'UserAlert')
|
|
1218
|
+
if @api_client.config.debugging
|
|
1219
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1220
|
+
end
|
|
1221
|
+
return data, status_code, headers
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1224
|
+
# Edit an alert on transactions or investemens
|
|
1225
|
+
#
|
|
1226
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1227
|
+
# @param id_connection
|
|
1228
|
+
# @param id_account
|
|
1229
|
+
# @param id_operationsalert
|
|
1230
|
+
# @param [Hash] opts the optional parameters
|
|
1231
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
1232
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
1233
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
1234
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
1235
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
1236
|
+
# @option opts [String] :expand
|
|
1237
|
+
# @return [UserAlert]
|
|
1238
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put(id_user, id_connection, id_account, id_operationsalert, opts = {})
|
|
1239
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put_with_http_info(id_user, id_connection, id_account, id_operationsalert, opts)
|
|
1240
|
+
return data
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
# Edit an alert on transactions or investemens
|
|
1244
|
+
#
|
|
1245
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1246
|
+
# @param id_connection
|
|
1247
|
+
# @param id_account
|
|
1248
|
+
# @param id_operationsalert
|
|
1249
|
+
# @param [Hash] opts the optional parameters
|
|
1250
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
1251
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
1252
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
1253
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
1254
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
1255
|
+
# @option opts [String] :expand
|
|
1256
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
1257
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put_with_http_info(id_user, id_connection, id_account, id_operationsalert, opts = {})
|
|
1258
|
+
if @api_client.config.debugging
|
|
1259
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put ..."
|
|
1260
|
+
end
|
|
1261
|
+
# verify the required parameter 'id_user' is set
|
|
1262
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1263
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
1264
|
+
end
|
|
1265
|
+
# verify the required parameter 'id_connection' is set
|
|
1266
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
|
1267
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
1268
|
+
end
|
|
1269
|
+
# verify the required parameter 'id_account' is set
|
|
1270
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
1271
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
1272
|
+
end
|
|
1273
|
+
# verify the required parameter 'id_operationsalert' is set
|
|
1274
|
+
if @api_client.config.client_side_validation && id_operationsalert.nil?
|
|
1275
|
+
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put"
|
|
1276
|
+
end
|
|
1277
|
+
# resource path
|
|
1278
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert/{id_operationsalert}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
|
1279
|
+
|
|
1280
|
+
# query parameters
|
|
1281
|
+
query_params = {}
|
|
1282
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1283
|
+
|
|
1284
|
+
# header parameters
|
|
1285
|
+
header_params = {}
|
|
1286
|
+
# HTTP header 'Accept' (if needed)
|
|
1287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1288
|
+
# HTTP header 'Content-Type'
|
|
1289
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1290
|
+
|
|
1291
|
+
# form parameters
|
|
1292
|
+
form_params = {}
|
|
1293
|
+
form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
|
|
1294
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
1295
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
1296
|
+
form_params["value_type"] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
|
1297
|
+
form_params["date_range"] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
|
1298
|
+
|
|
1299
|
+
# http body (model)
|
|
1300
|
+
post_body = nil
|
|
1301
|
+
auth_names = []
|
|
1302
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
1303
|
+
:header_params => header_params,
|
|
1304
|
+
:query_params => query_params,
|
|
1305
|
+
:form_params => form_params,
|
|
1306
|
+
:body => post_body,
|
|
1307
|
+
:auth_names => auth_names,
|
|
1308
|
+
:return_type => 'UserAlert')
|
|
1309
|
+
if @api_client.config.debugging
|
|
1310
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1311
|
+
end
|
|
1312
|
+
return data, status_code, headers
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1315
|
+
# Create an alert on transactions or investemens of a given user
|
|
1316
|
+
#
|
|
1317
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1318
|
+
# @param id_connection
|
|
1319
|
+
# @param id_account
|
|
1320
|
+
# @param [Hash] opts the optional parameters
|
|
1321
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
1322
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
1323
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
1324
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
1325
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
1326
|
+
# @option opts [String] :expand
|
|
1327
|
+
# @return [UserAlert]
|
|
1328
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_post(id_user, id_connection, id_account, opts = {})
|
|
1329
|
+
data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_operationsalert_post_with_http_info(id_user, id_connection, id_account, opts)
|
|
1330
|
+
return data
|
|
1331
|
+
end
|
|
1332
|
+
|
|
1333
|
+
# Create an alert on transactions or investemens of a given user
|
|
1334
|
+
#
|
|
1335
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1336
|
+
# @param id_connection
|
|
1337
|
+
# @param id_account
|
|
1338
|
+
# @param [Hash] opts the optional parameters
|
|
1339
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
1340
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
1341
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
1342
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
1343
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
1344
|
+
# @option opts [String] :expand
|
|
1345
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
1346
|
+
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_post_with_http_info(id_user, id_connection, id_account, opts = {})
|
|
1347
|
+
if @api_client.config.debugging
|
|
1348
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_post ..."
|
|
1349
|
+
end
|
|
1350
|
+
# verify the required parameter 'id_user' is set
|
|
1351
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1352
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_post"
|
|
1353
|
+
end
|
|
1354
|
+
# verify the required parameter 'id_connection' is set
|
|
1355
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
|
1356
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_post"
|
|
1357
|
+
end
|
|
1358
|
+
# verify the required parameter 'id_account' is set
|
|
1359
|
+
if @api_client.config.client_side_validation && id_account.nil?
|
|
1360
|
+
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_post"
|
|
1361
|
+
end
|
|
1362
|
+
# resource path
|
|
1363
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/accounts/{id_account}/operationsalert".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)
|
|
1364
|
+
|
|
1365
|
+
# query parameters
|
|
1366
|
+
query_params = {}
|
|
1367
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1368
|
+
|
|
1369
|
+
# header parameters
|
|
1370
|
+
header_params = {}
|
|
1371
|
+
# HTTP header 'Accept' (if needed)
|
|
1372
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1373
|
+
# HTTP header 'Content-Type'
|
|
1374
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1375
|
+
|
|
1376
|
+
# form parameters
|
|
1377
|
+
form_params = {}
|
|
1378
|
+
form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
|
|
1379
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
1380
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
1381
|
+
form_params["value_type"] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
|
1382
|
+
form_params["date_range"] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
|
1383
|
+
|
|
1384
|
+
# http body (model)
|
|
1385
|
+
post_body = nil
|
|
1386
|
+
auth_names = []
|
|
1387
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
1388
|
+
:header_params => header_params,
|
|
1389
|
+
:query_params => query_params,
|
|
1390
|
+
:form_params => form_params,
|
|
1391
|
+
:body => post_body,
|
|
1392
|
+
:auth_names => auth_names,
|
|
1393
|
+
:return_type => 'UserAlert')
|
|
1394
|
+
if @api_client.config.debugging
|
|
1395
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_connections_id_connection_accounts_id_account_operationsalert_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1396
|
+
end
|
|
1397
|
+
return data, status_code, headers
|
|
1398
|
+
end
|
|
1399
|
+
|
|
1400
|
+
# Get balances of accounts
|
|
1401
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
1402
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1403
|
+
# @param id_connection
|
|
1404
|
+
# @param [Hash] opts the optional parameters
|
|
1405
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
1406
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
1407
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
1408
|
+
# @return [nil]
|
|
1409
|
+
def users_id_user_connections_id_connection_balances_get(id_user, id_connection, opts = {})
|
|
1410
|
+
users_id_user_connections_id_connection_balances_get_with_http_info(id_user, id_connection, opts)
|
|
1411
|
+
return nil
|
|
1412
|
+
end
|
|
1413
|
+
|
|
1414
|
+
# Get balances of accounts
|
|
1415
|
+
# Get balance (income/outcome/balance) of enabled accounts for the given period.<br><br>By default, min_date and max_date are the current month, and period is a single month.<br><br>The period is composed with units (days, months, years) and numbers. You can give for example \"1month\", \"15days\", \"1year6months\", etc.<br><br>
|
|
1416
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1417
|
+
# @param id_connection
|
|
1418
|
+
# @param [Hash] opts the optional parameters
|
|
1419
|
+
# @option opts [Date] :min_date minimal (inclusive) date
|
|
1420
|
+
# @option opts [Date] :max_date maximal (inclusive) date
|
|
1421
|
+
# @option opts [String] :period split output with the given period (default: month)
|
|
1422
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1423
|
+
def users_id_user_connections_id_connection_balances_get_with_http_info(id_user, id_connection, opts = {})
|
|
1424
|
+
if @api_client.config.debugging
|
|
1425
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_connections_id_connection_balances_get ..."
|
|
1426
|
+
end
|
|
1427
|
+
# verify the required parameter 'id_user' is set
|
|
1428
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1429
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_connections_id_connection_balances_get"
|
|
1430
|
+
end
|
|
1431
|
+
# verify the required parameter 'id_connection' is set
|
|
1432
|
+
if @api_client.config.client_side_validation && id_connection.nil?
|
|
1433
|
+
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_balances_get"
|
|
1434
|
+
end
|
|
1435
|
+
# resource path
|
|
1436
|
+
local_var_path = "/users/{id_user}/connections/{id_connection}/balances".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)
|
|
1437
|
+
|
|
1438
|
+
# query parameters
|
|
1439
|
+
query_params = {}
|
|
1440
|
+
query_params[:'min_date'] = opts[:'min_date'] if !opts[:'min_date'].nil?
|
|
1441
|
+
query_params[:'max_date'] = opts[:'max_date'] if !opts[:'max_date'].nil?
|
|
1442
|
+
query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
1443
|
+
|
|
1444
|
+
# header parameters
|
|
1445
|
+
header_params = {}
|
|
1446
|
+
# HTTP header 'Accept' (if needed)
|
|
1447
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1448
|
+
# HTTP header 'Content-Type'
|
|
1449
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1450
|
+
|
|
1451
|
+
# form parameters
|
|
1452
|
+
form_params = {}
|
|
1453
|
+
|
|
1454
|
+
# http body (model)
|
|
1455
|
+
post_body = nil
|
|
1456
|
+
auth_names = []
|
|
1457
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1458
|
+
:header_params => header_params,
|
|
1459
|
+
:query_params => query_params,
|
|
1460
|
+
:form_params => form_params,
|
|
1461
|
+
:body => post_body,
|
|
1462
|
+
:auth_names => auth_names)
|
|
1463
|
+
if @api_client.config.debugging
|
|
1464
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_connections_id_connection_balances_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1465
|
+
end
|
|
1466
|
+
return data, status_code, headers
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
# Get devices
|
|
1470
|
+
#
|
|
1471
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1472
|
+
# @param [Hash] opts the optional parameters
|
|
1473
|
+
# @option opts [String] :expand
|
|
1474
|
+
# @return [InlineResponse20031]
|
|
1475
|
+
def users_id_user_devices_get(id_user, opts = {})
|
|
1476
|
+
data, _status_code, _headers = users_id_user_devices_get_with_http_info(id_user, opts)
|
|
1477
|
+
return data
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
# Get devices
|
|
1481
|
+
#
|
|
1482
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1483
|
+
# @param [Hash] opts the optional parameters
|
|
1484
|
+
# @option opts [String] :expand
|
|
1485
|
+
# @return [Array<(InlineResponse20031, Fixnum, Hash)>] InlineResponse20031 data, response status code and response headers
|
|
1486
|
+
def users_id_user_devices_get_with_http_info(id_user, opts = {})
|
|
1487
|
+
if @api_client.config.debugging
|
|
1488
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_devices_get ..."
|
|
1489
|
+
end
|
|
1490
|
+
# verify the required parameter 'id_user' is set
|
|
1491
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1492
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_devices_get"
|
|
1493
|
+
end
|
|
1494
|
+
# resource path
|
|
1495
|
+
local_var_path = "/users/{id_user}/devices".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
1496
|
+
|
|
1497
|
+
# query parameters
|
|
1498
|
+
query_params = {}
|
|
1499
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1500
|
+
|
|
1501
|
+
# header parameters
|
|
1502
|
+
header_params = {}
|
|
1503
|
+
# HTTP header 'Accept' (if needed)
|
|
1504
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1505
|
+
# HTTP header 'Content-Type'
|
|
1506
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1507
|
+
|
|
1508
|
+
# form parameters
|
|
1509
|
+
form_params = {}
|
|
1510
|
+
|
|
1511
|
+
# http body (model)
|
|
1512
|
+
post_body = nil
|
|
1513
|
+
auth_names = []
|
|
1514
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1515
|
+
:header_params => header_params,
|
|
1516
|
+
:query_params => query_params,
|
|
1517
|
+
:form_params => form_params,
|
|
1518
|
+
:body => post_body,
|
|
1519
|
+
:auth_names => auth_names,
|
|
1520
|
+
:return_type => 'InlineResponse20031')
|
|
1521
|
+
if @api_client.config.debugging
|
|
1522
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_devices_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1523
|
+
end
|
|
1524
|
+
return data, status_code, headers
|
|
1525
|
+
end
|
|
1526
|
+
|
|
1527
|
+
# Delete device.
|
|
1528
|
+
#
|
|
1529
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1530
|
+
# @param id_device
|
|
1531
|
+
# @param [Hash] opts the optional parameters
|
|
1532
|
+
# @option opts [String] :expand
|
|
1533
|
+
# @return [Device]
|
|
1534
|
+
def users_id_user_devices_id_device_delete(id_user, id_device, opts = {})
|
|
1535
|
+
data, _status_code, _headers = users_id_user_devices_id_device_delete_with_http_info(id_user, id_device, opts)
|
|
1536
|
+
return data
|
|
1537
|
+
end
|
|
1538
|
+
|
|
1539
|
+
# Delete device.
|
|
1540
|
+
#
|
|
1541
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1542
|
+
# @param id_device
|
|
1543
|
+
# @param [Hash] opts the optional parameters
|
|
1544
|
+
# @option opts [String] :expand
|
|
1545
|
+
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
|
1546
|
+
def users_id_user_devices_id_device_delete_with_http_info(id_user, id_device, opts = {})
|
|
1547
|
+
if @api_client.config.debugging
|
|
1548
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_devices_id_device_delete ..."
|
|
1549
|
+
end
|
|
1550
|
+
# verify the required parameter 'id_user' is set
|
|
1551
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1552
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_devices_id_device_delete"
|
|
1553
|
+
end
|
|
1554
|
+
# verify the required parameter 'id_device' is set
|
|
1555
|
+
if @api_client.config.client_side_validation && id_device.nil?
|
|
1556
|
+
fail ArgumentError, "Missing the required parameter 'id_device' when calling PFMApi.users_id_user_devices_id_device_delete"
|
|
1557
|
+
end
|
|
1558
|
+
# resource path
|
|
1559
|
+
local_var_path = "/users/{id_user}/devices/{id_device}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_device' + '}', id_device.to_s)
|
|
1560
|
+
|
|
1561
|
+
# query parameters
|
|
1562
|
+
query_params = {}
|
|
1563
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1564
|
+
|
|
1565
|
+
# header parameters
|
|
1566
|
+
header_params = {}
|
|
1567
|
+
# HTTP header 'Accept' (if needed)
|
|
1568
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1569
|
+
# HTTP header 'Content-Type'
|
|
1570
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1571
|
+
|
|
1572
|
+
# form parameters
|
|
1573
|
+
form_params = {}
|
|
1574
|
+
|
|
1575
|
+
# http body (model)
|
|
1576
|
+
post_body = nil
|
|
1577
|
+
auth_names = []
|
|
1578
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
1579
|
+
:header_params => header_params,
|
|
1580
|
+
:query_params => query_params,
|
|
1581
|
+
:form_params => form_params,
|
|
1582
|
+
:body => post_body,
|
|
1583
|
+
:auth_names => auth_names,
|
|
1584
|
+
:return_type => 'Device')
|
|
1585
|
+
if @api_client.config.debugging
|
|
1586
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_devices_id_device_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1587
|
+
end
|
|
1588
|
+
return data, status_code, headers
|
|
1589
|
+
end
|
|
1590
|
+
|
|
1591
|
+
# Get a device
|
|
1592
|
+
#
|
|
1593
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1594
|
+
# @param id_device
|
|
1595
|
+
# @param [Hash] opts the optional parameters
|
|
1596
|
+
# @option opts [String] :expand
|
|
1597
|
+
# @return [Device]
|
|
1598
|
+
def users_id_user_devices_id_device_get(id_user, id_device, opts = {})
|
|
1599
|
+
data, _status_code, _headers = users_id_user_devices_id_device_get_with_http_info(id_user, id_device, opts)
|
|
1600
|
+
return data
|
|
1601
|
+
end
|
|
1602
|
+
|
|
1603
|
+
# Get a device
|
|
1604
|
+
#
|
|
1605
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1606
|
+
# @param id_device
|
|
1607
|
+
# @param [Hash] opts the optional parameters
|
|
1608
|
+
# @option opts [String] :expand
|
|
1609
|
+
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
|
1610
|
+
def users_id_user_devices_id_device_get_with_http_info(id_user, id_device, opts = {})
|
|
1611
|
+
if @api_client.config.debugging
|
|
1612
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_devices_id_device_get ..."
|
|
1613
|
+
end
|
|
1614
|
+
# verify the required parameter 'id_user' is set
|
|
1615
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1616
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_devices_id_device_get"
|
|
1617
|
+
end
|
|
1618
|
+
# verify the required parameter 'id_device' is set
|
|
1619
|
+
if @api_client.config.client_side_validation && id_device.nil?
|
|
1620
|
+
fail ArgumentError, "Missing the required parameter 'id_device' when calling PFMApi.users_id_user_devices_id_device_get"
|
|
1621
|
+
end
|
|
1622
|
+
# resource path
|
|
1623
|
+
local_var_path = "/users/{id_user}/devices/{id_device}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_device' + '}', id_device.to_s)
|
|
1624
|
+
|
|
1625
|
+
# query parameters
|
|
1626
|
+
query_params = {}
|
|
1627
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1628
|
+
|
|
1629
|
+
# header parameters
|
|
1630
|
+
header_params = {}
|
|
1631
|
+
# HTTP header 'Accept' (if needed)
|
|
1632
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1633
|
+
# HTTP header 'Content-Type'
|
|
1634
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1635
|
+
|
|
1636
|
+
# form parameters
|
|
1637
|
+
form_params = {}
|
|
1638
|
+
|
|
1639
|
+
# http body (model)
|
|
1640
|
+
post_body = nil
|
|
1641
|
+
auth_names = []
|
|
1642
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1643
|
+
:header_params => header_params,
|
|
1644
|
+
:query_params => query_params,
|
|
1645
|
+
:form_params => form_params,
|
|
1646
|
+
:body => post_body,
|
|
1647
|
+
:auth_names => auth_names,
|
|
1648
|
+
:return_type => 'Device')
|
|
1649
|
+
if @api_client.config.debugging
|
|
1650
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_devices_id_device_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1651
|
+
end
|
|
1652
|
+
return data, status_code, headers
|
|
1653
|
+
end
|
|
1654
|
+
|
|
1655
|
+
# Update attributes of the device.
|
|
1656
|
+
#
|
|
1657
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1658
|
+
# @param id_device
|
|
1659
|
+
# @param notification_token the GCM or APNS notification_token to use
|
|
1660
|
+
# @param application the device in use
|
|
1661
|
+
# @param [Hash] opts the optional parameters
|
|
1662
|
+
# @option opts [Integer] :notification_version version of notifications
|
|
1663
|
+
# @option opts [String] :expand
|
|
1664
|
+
# @return [Device]
|
|
1665
|
+
def users_id_user_devices_id_device_put(id_user, id_device, notification_token, application, opts = {})
|
|
1666
|
+
data, _status_code, _headers = users_id_user_devices_id_device_put_with_http_info(id_user, id_device, notification_token, application, opts)
|
|
1667
|
+
return data
|
|
1668
|
+
end
|
|
1669
|
+
|
|
1670
|
+
# Update attributes of the device.
|
|
1671
|
+
#
|
|
1672
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1673
|
+
# @param id_device
|
|
1674
|
+
# @param notification_token the GCM or APNS notification_token to use
|
|
1675
|
+
# @param application the device in use
|
|
1676
|
+
# @param [Hash] opts the optional parameters
|
|
1677
|
+
# @option opts [Integer] :notification_version version of notifications
|
|
1678
|
+
# @option opts [String] :expand
|
|
1679
|
+
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
|
1680
|
+
def users_id_user_devices_id_device_put_with_http_info(id_user, id_device, notification_token, application, opts = {})
|
|
1681
|
+
if @api_client.config.debugging
|
|
1682
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_devices_id_device_put ..."
|
|
1683
|
+
end
|
|
1684
|
+
# verify the required parameter 'id_user' is set
|
|
1685
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1686
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_devices_id_device_put"
|
|
1687
|
+
end
|
|
1688
|
+
# verify the required parameter 'id_device' is set
|
|
1689
|
+
if @api_client.config.client_side_validation && id_device.nil?
|
|
1690
|
+
fail ArgumentError, "Missing the required parameter 'id_device' when calling PFMApi.users_id_user_devices_id_device_put"
|
|
1691
|
+
end
|
|
1692
|
+
# verify the required parameter 'notification_token' is set
|
|
1693
|
+
if @api_client.config.client_side_validation && notification_token.nil?
|
|
1694
|
+
fail ArgumentError, "Missing the required parameter 'notification_token' when calling PFMApi.users_id_user_devices_id_device_put"
|
|
1695
|
+
end
|
|
1696
|
+
# verify the required parameter 'application' is set
|
|
1697
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
1698
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.users_id_user_devices_id_device_put"
|
|
1699
|
+
end
|
|
1700
|
+
# resource path
|
|
1701
|
+
local_var_path = "/users/{id_user}/devices/{id_device}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_device' + '}', id_device.to_s)
|
|
1702
|
+
|
|
1703
|
+
# query parameters
|
|
1704
|
+
query_params = {}
|
|
1705
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1706
|
+
|
|
1707
|
+
# header parameters
|
|
1708
|
+
header_params = {}
|
|
1709
|
+
# HTTP header 'Accept' (if needed)
|
|
1710
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1711
|
+
# HTTP header 'Content-Type'
|
|
1712
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1713
|
+
|
|
1714
|
+
# form parameters
|
|
1715
|
+
form_params = {}
|
|
1716
|
+
form_params["notification_token"] = notification_token
|
|
1717
|
+
form_params["application"] = application
|
|
1718
|
+
form_params["notification_version"] = opts[:'notification_version'] if !opts[:'notification_version'].nil?
|
|
1719
|
+
|
|
1720
|
+
# http body (model)
|
|
1721
|
+
post_body = nil
|
|
1722
|
+
auth_names = []
|
|
1723
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
1724
|
+
:header_params => header_params,
|
|
1725
|
+
:query_params => query_params,
|
|
1726
|
+
:form_params => form_params,
|
|
1727
|
+
:body => post_body,
|
|
1728
|
+
:auth_names => auth_names,
|
|
1729
|
+
:return_type => 'Device')
|
|
1730
|
+
if @api_client.config.debugging
|
|
1731
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_devices_id_device_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1732
|
+
end
|
|
1733
|
+
return data, status_code, headers
|
|
1734
|
+
end
|
|
1735
|
+
|
|
1736
|
+
# Create a device linked to specified token.
|
|
1737
|
+
#
|
|
1738
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1739
|
+
# @param notification_token the GCM or APNS notification_token to use
|
|
1740
|
+
# @param application the device in use
|
|
1741
|
+
# @param [Hash] opts the optional parameters
|
|
1742
|
+
# @option opts [Integer] :notification_version version of notifications
|
|
1743
|
+
# @option opts [String] :expand
|
|
1744
|
+
# @return [Device]
|
|
1745
|
+
def users_id_user_devices_post(id_user, notification_token, application, opts = {})
|
|
1746
|
+
data, _status_code, _headers = users_id_user_devices_post_with_http_info(id_user, notification_token, application, opts)
|
|
1747
|
+
return data
|
|
1748
|
+
end
|
|
1749
|
+
|
|
1750
|
+
# Create a device linked to specified token.
|
|
1751
|
+
#
|
|
1752
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1753
|
+
# @param notification_token the GCM or APNS notification_token to use
|
|
1754
|
+
# @param application the device in use
|
|
1755
|
+
# @param [Hash] opts the optional parameters
|
|
1756
|
+
# @option opts [Integer] :notification_version version of notifications
|
|
1757
|
+
# @option opts [String] :expand
|
|
1758
|
+
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
|
1759
|
+
def users_id_user_devices_post_with_http_info(id_user, notification_token, application, opts = {})
|
|
1760
|
+
if @api_client.config.debugging
|
|
1761
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_devices_post ..."
|
|
1762
|
+
end
|
|
1763
|
+
# verify the required parameter 'id_user' is set
|
|
1764
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1765
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_devices_post"
|
|
1766
|
+
end
|
|
1767
|
+
# verify the required parameter 'notification_token' is set
|
|
1768
|
+
if @api_client.config.client_side_validation && notification_token.nil?
|
|
1769
|
+
fail ArgumentError, "Missing the required parameter 'notification_token' when calling PFMApi.users_id_user_devices_post"
|
|
1770
|
+
end
|
|
1771
|
+
# verify the required parameter 'application' is set
|
|
1772
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
1773
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.users_id_user_devices_post"
|
|
1774
|
+
end
|
|
1775
|
+
# resource path
|
|
1776
|
+
local_var_path = "/users/{id_user}/devices".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
1777
|
+
|
|
1778
|
+
# query parameters
|
|
1779
|
+
query_params = {}
|
|
1780
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1781
|
+
|
|
1782
|
+
# header parameters
|
|
1783
|
+
header_params = {}
|
|
1784
|
+
# HTTP header 'Accept' (if needed)
|
|
1785
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1786
|
+
# HTTP header 'Content-Type'
|
|
1787
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1788
|
+
|
|
1789
|
+
# form parameters
|
|
1790
|
+
form_params = {}
|
|
1791
|
+
form_params["notification_token"] = notification_token
|
|
1792
|
+
form_params["application"] = application
|
|
1793
|
+
form_params["notification_version"] = opts[:'notification_version'] if !opts[:'notification_version'].nil?
|
|
1794
|
+
|
|
1795
|
+
# http body (model)
|
|
1796
|
+
post_body = nil
|
|
1797
|
+
auth_names = []
|
|
1798
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
1799
|
+
:header_params => header_params,
|
|
1800
|
+
:query_params => query_params,
|
|
1801
|
+
:form_params => form_params,
|
|
1802
|
+
:body => post_body,
|
|
1803
|
+
:auth_names => auth_names,
|
|
1804
|
+
:return_type => 'Device')
|
|
1805
|
+
if @api_client.config.debugging
|
|
1806
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_devices_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1807
|
+
end
|
|
1808
|
+
return data, status_code, headers
|
|
1809
|
+
end
|
|
1810
|
+
|
|
1811
|
+
# Get forecast
|
|
1812
|
+
#
|
|
1813
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1814
|
+
# @param [Hash] opts the optional parameters
|
|
1815
|
+
# @return [nil]
|
|
1816
|
+
def users_id_user_forecast_get(id_user, opts = {})
|
|
1817
|
+
users_id_user_forecast_get_with_http_info(id_user, opts)
|
|
1818
|
+
return nil
|
|
1819
|
+
end
|
|
1820
|
+
|
|
1821
|
+
# Get forecast
|
|
1822
|
+
#
|
|
1823
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1824
|
+
# @param [Hash] opts the optional parameters
|
|
1825
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
1826
|
+
def users_id_user_forecast_get_with_http_info(id_user, opts = {})
|
|
1827
|
+
if @api_client.config.debugging
|
|
1828
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_forecast_get ..."
|
|
1829
|
+
end
|
|
1830
|
+
# verify the required parameter 'id_user' is set
|
|
1831
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1832
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_forecast_get"
|
|
1833
|
+
end
|
|
1834
|
+
# resource path
|
|
1835
|
+
local_var_path = "/users/{id_user}/forecast".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
1836
|
+
|
|
1837
|
+
# query parameters
|
|
1838
|
+
query_params = {}
|
|
1839
|
+
|
|
1840
|
+
# header parameters
|
|
1841
|
+
header_params = {}
|
|
1842
|
+
# HTTP header 'Accept' (if needed)
|
|
1843
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1844
|
+
# HTTP header 'Content-Type'
|
|
1845
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1846
|
+
|
|
1847
|
+
# form parameters
|
|
1848
|
+
form_params = {}
|
|
1849
|
+
|
|
1850
|
+
# http body (model)
|
|
1851
|
+
post_body = nil
|
|
1852
|
+
auth_names = []
|
|
1853
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1854
|
+
:header_params => header_params,
|
|
1855
|
+
:query_params => query_params,
|
|
1856
|
+
:form_params => form_params,
|
|
1857
|
+
:body => post_body,
|
|
1858
|
+
:auth_names => auth_names)
|
|
1859
|
+
if @api_client.config.debugging
|
|
1860
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_forecast_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1861
|
+
end
|
|
1862
|
+
return data, status_code, headers
|
|
1863
|
+
end
|
|
1864
|
+
|
|
1865
|
+
# Get a user
|
|
1866
|
+
#
|
|
1867
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1868
|
+
# @param [Hash] opts the optional parameters
|
|
1869
|
+
# @option opts [String] :expand
|
|
1870
|
+
# @return [User]
|
|
1871
|
+
def users_id_user_get(id_user, opts = {})
|
|
1872
|
+
data, _status_code, _headers = users_id_user_get_with_http_info(id_user, opts)
|
|
1873
|
+
return data
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
# Get a user
|
|
1877
|
+
#
|
|
1878
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1879
|
+
# @param [Hash] opts the optional parameters
|
|
1880
|
+
# @option opts [String] :expand
|
|
1881
|
+
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
|
1882
|
+
def users_id_user_get_with_http_info(id_user, opts = {})
|
|
1883
|
+
if @api_client.config.debugging
|
|
1884
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_get ..."
|
|
1885
|
+
end
|
|
1886
|
+
# verify the required parameter 'id_user' is set
|
|
1887
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1888
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_get"
|
|
1889
|
+
end
|
|
1890
|
+
# resource path
|
|
1891
|
+
local_var_path = "/users/{id_user}".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
1892
|
+
|
|
1893
|
+
# query parameters
|
|
1894
|
+
query_params = {}
|
|
1895
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1896
|
+
|
|
1897
|
+
# header parameters
|
|
1898
|
+
header_params = {}
|
|
1899
|
+
# HTTP header 'Accept' (if needed)
|
|
1900
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1901
|
+
# HTTP header 'Content-Type'
|
|
1902
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1903
|
+
|
|
1904
|
+
# form parameters
|
|
1905
|
+
form_params = {}
|
|
1906
|
+
|
|
1907
|
+
# http body (model)
|
|
1908
|
+
post_body = nil
|
|
1909
|
+
auth_names = []
|
|
1910
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1911
|
+
:header_params => header_params,
|
|
1912
|
+
:query_params => query_params,
|
|
1913
|
+
:form_params => form_params,
|
|
1914
|
+
:body => post_body,
|
|
1915
|
+
:auth_names => auth_names,
|
|
1916
|
+
:return_type => 'User')
|
|
1917
|
+
if @api_client.config.debugging
|
|
1918
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1919
|
+
end
|
|
1920
|
+
return data, status_code, headers
|
|
1921
|
+
end
|
|
1922
|
+
|
|
1923
|
+
# Get a list of configurated alerts
|
|
1924
|
+
# <br><br>
|
|
1925
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1926
|
+
# @param [Hash] opts the optional parameters
|
|
1927
|
+
# @option opts [String] :expand
|
|
1928
|
+
# @return [InlineResponse20022]
|
|
1929
|
+
def users_id_user_operationsalert_get(id_user, opts = {})
|
|
1930
|
+
data, _status_code, _headers = users_id_user_operationsalert_get_with_http_info(id_user, opts)
|
|
1931
|
+
return data
|
|
1932
|
+
end
|
|
1933
|
+
|
|
1934
|
+
# Get a list of configurated alerts
|
|
1935
|
+
# <br><br>
|
|
1936
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1937
|
+
# @param [Hash] opts the optional parameters
|
|
1938
|
+
# @option opts [String] :expand
|
|
1939
|
+
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
|
1940
|
+
def users_id_user_operationsalert_get_with_http_info(id_user, opts = {})
|
|
1941
|
+
if @api_client.config.debugging
|
|
1942
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_operationsalert_get ..."
|
|
1943
|
+
end
|
|
1944
|
+
# verify the required parameter 'id_user' is set
|
|
1945
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
1946
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_operationsalert_get"
|
|
1947
|
+
end
|
|
1948
|
+
# resource path
|
|
1949
|
+
local_var_path = "/users/{id_user}/operationsalert".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
1950
|
+
|
|
1951
|
+
# query parameters
|
|
1952
|
+
query_params = {}
|
|
1953
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
1954
|
+
|
|
1955
|
+
# header parameters
|
|
1956
|
+
header_params = {}
|
|
1957
|
+
# HTTP header 'Accept' (if needed)
|
|
1958
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1959
|
+
# HTTP header 'Content-Type'
|
|
1960
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
1961
|
+
|
|
1962
|
+
# form parameters
|
|
1963
|
+
form_params = {}
|
|
1964
|
+
|
|
1965
|
+
# http body (model)
|
|
1966
|
+
post_body = nil
|
|
1967
|
+
auth_names = []
|
|
1968
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
1969
|
+
:header_params => header_params,
|
|
1970
|
+
:query_params => query_params,
|
|
1971
|
+
:form_params => form_params,
|
|
1972
|
+
:body => post_body,
|
|
1973
|
+
:auth_names => auth_names,
|
|
1974
|
+
:return_type => 'InlineResponse20022')
|
|
1975
|
+
if @api_client.config.debugging
|
|
1976
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_operationsalert_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1977
|
+
end
|
|
1978
|
+
return data, status_code, headers
|
|
1979
|
+
end
|
|
1980
|
+
|
|
1981
|
+
# Delete an alert on transactions or investemens
|
|
1982
|
+
# <br><br>
|
|
1983
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1984
|
+
# @param id_operationsalert
|
|
1985
|
+
# @param [Hash] opts the optional parameters
|
|
1986
|
+
# @option opts [String] :expand
|
|
1987
|
+
# @return [UserAlert]
|
|
1988
|
+
def users_id_user_operationsalert_id_operationsalert_delete(id_user, id_operationsalert, opts = {})
|
|
1989
|
+
data, _status_code, _headers = users_id_user_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_operationsalert, opts)
|
|
1990
|
+
return data
|
|
1991
|
+
end
|
|
1992
|
+
|
|
1993
|
+
# Delete an alert on transactions or investemens
|
|
1994
|
+
# <br><br>
|
|
1995
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
1996
|
+
# @param id_operationsalert
|
|
1997
|
+
# @param [Hash] opts the optional parameters
|
|
1998
|
+
# @option opts [String] :expand
|
|
1999
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
2000
|
+
def users_id_user_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_operationsalert, opts = {})
|
|
2001
|
+
if @api_client.config.debugging
|
|
2002
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_operationsalert_id_operationsalert_delete ..."
|
|
2003
|
+
end
|
|
2004
|
+
# verify the required parameter 'id_user' is set
|
|
2005
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2006
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_operationsalert_id_operationsalert_delete"
|
|
2007
|
+
end
|
|
2008
|
+
# verify the required parameter 'id_operationsalert' is set
|
|
2009
|
+
if @api_client.config.client_side_validation && id_operationsalert.nil?
|
|
2010
|
+
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_operationsalert_id_operationsalert_delete"
|
|
2011
|
+
end
|
|
2012
|
+
# resource path
|
|
2013
|
+
local_var_path = "/users/{id_user}/operationsalert/{id_operationsalert}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
|
2014
|
+
|
|
2015
|
+
# query parameters
|
|
2016
|
+
query_params = {}
|
|
2017
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2018
|
+
|
|
2019
|
+
# header parameters
|
|
2020
|
+
header_params = {}
|
|
2021
|
+
# HTTP header 'Accept' (if needed)
|
|
2022
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2023
|
+
# HTTP header 'Content-Type'
|
|
2024
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2025
|
+
|
|
2026
|
+
# form parameters
|
|
2027
|
+
form_params = {}
|
|
2028
|
+
|
|
2029
|
+
# http body (model)
|
|
2030
|
+
post_body = nil
|
|
2031
|
+
auth_names = []
|
|
2032
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
2033
|
+
:header_params => header_params,
|
|
2034
|
+
:query_params => query_params,
|
|
2035
|
+
:form_params => form_params,
|
|
2036
|
+
:body => post_body,
|
|
2037
|
+
:auth_names => auth_names,
|
|
2038
|
+
:return_type => 'UserAlert')
|
|
2039
|
+
if @api_client.config.debugging
|
|
2040
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_operationsalert_id_operationsalert_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2041
|
+
end
|
|
2042
|
+
return data, status_code, headers
|
|
2043
|
+
end
|
|
2044
|
+
|
|
2045
|
+
# Edit an alert on transactions or investemens
|
|
2046
|
+
#
|
|
2047
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2048
|
+
# @param id_operationsalert
|
|
2049
|
+
# @param [Hash] opts the optional parameters
|
|
2050
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
2051
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
2052
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
2053
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
2054
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
2055
|
+
# @option opts [String] :expand
|
|
2056
|
+
# @return [UserAlert]
|
|
2057
|
+
def users_id_user_operationsalert_id_operationsalert_put(id_user, id_operationsalert, opts = {})
|
|
2058
|
+
data, _status_code, _headers = users_id_user_operationsalert_id_operationsalert_put_with_http_info(id_user, id_operationsalert, opts)
|
|
2059
|
+
return data
|
|
2060
|
+
end
|
|
2061
|
+
|
|
2062
|
+
# Edit an alert on transactions or investemens
|
|
2063
|
+
#
|
|
2064
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2065
|
+
# @param id_operationsalert
|
|
2066
|
+
# @param [Hash] opts the optional parameters
|
|
2067
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
2068
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
2069
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
2070
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
2071
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
2072
|
+
# @option opts [String] :expand
|
|
2073
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
2074
|
+
def users_id_user_operationsalert_id_operationsalert_put_with_http_info(id_user, id_operationsalert, opts = {})
|
|
2075
|
+
if @api_client.config.debugging
|
|
2076
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_operationsalert_id_operationsalert_put ..."
|
|
2077
|
+
end
|
|
2078
|
+
# verify the required parameter 'id_user' is set
|
|
2079
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2080
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_operationsalert_id_operationsalert_put"
|
|
2081
|
+
end
|
|
2082
|
+
# verify the required parameter 'id_operationsalert' is set
|
|
2083
|
+
if @api_client.config.client_side_validation && id_operationsalert.nil?
|
|
2084
|
+
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_operationsalert_id_operationsalert_put"
|
|
2085
|
+
end
|
|
2086
|
+
# resource path
|
|
2087
|
+
local_var_path = "/users/{id_user}/operationsalert/{id_operationsalert}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
|
2088
|
+
|
|
2089
|
+
# query parameters
|
|
2090
|
+
query_params = {}
|
|
2091
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2092
|
+
|
|
2093
|
+
# header parameters
|
|
2094
|
+
header_params = {}
|
|
2095
|
+
# HTTP header 'Accept' (if needed)
|
|
2096
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2097
|
+
# HTTP header 'Content-Type'
|
|
2098
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2099
|
+
|
|
2100
|
+
# form parameters
|
|
2101
|
+
form_params = {}
|
|
2102
|
+
form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
|
|
2103
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
2104
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
2105
|
+
form_params["value_type"] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
|
2106
|
+
form_params["date_range"] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
|
2107
|
+
|
|
2108
|
+
# http body (model)
|
|
2109
|
+
post_body = nil
|
|
2110
|
+
auth_names = []
|
|
2111
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
2112
|
+
:header_params => header_params,
|
|
2113
|
+
:query_params => query_params,
|
|
2114
|
+
:form_params => form_params,
|
|
2115
|
+
:body => post_body,
|
|
2116
|
+
:auth_names => auth_names,
|
|
2117
|
+
:return_type => 'UserAlert')
|
|
2118
|
+
if @api_client.config.debugging
|
|
2119
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_operationsalert_id_operationsalert_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2120
|
+
end
|
|
2121
|
+
return data, status_code, headers
|
|
2122
|
+
end
|
|
2123
|
+
|
|
2124
|
+
# Create an alert on transactions or investemens of a given user
|
|
2125
|
+
#
|
|
2126
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2127
|
+
# @param [Hash] opts the optional parameters
|
|
2128
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
2129
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
2130
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
2131
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
2132
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
2133
|
+
# @option opts [String] :expand
|
|
2134
|
+
# @return [UserAlert]
|
|
2135
|
+
def users_id_user_operationsalert_post(id_user, opts = {})
|
|
2136
|
+
data, _status_code, _headers = users_id_user_operationsalert_post_with_http_info(id_user, opts)
|
|
2137
|
+
return data
|
|
2138
|
+
end
|
|
2139
|
+
|
|
2140
|
+
# Create an alert on transactions or investemens of a given user
|
|
2141
|
+
#
|
|
2142
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2143
|
+
# @param [Hash] opts the optional parameters
|
|
2144
|
+
# @option opts [String] :type parameter to choose the scope of the alert. accepted: transactions, investements
|
|
2145
|
+
# @option opts [Integer] :income_max capital gain thresholds
|
|
2146
|
+
# @option opts [Integer] :expense_max capital loss thresholds
|
|
2147
|
+
# @option opts [String] :value_type whether the threshold is given in absolut value or percent. accepted: percent, flat
|
|
2148
|
+
# @option opts [Integer] :date_range (number of days) range on which the analysis has to be done
|
|
2149
|
+
# @option opts [String] :expand
|
|
2150
|
+
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
|
2151
|
+
def users_id_user_operationsalert_post_with_http_info(id_user, opts = {})
|
|
2152
|
+
if @api_client.config.debugging
|
|
2153
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_operationsalert_post ..."
|
|
2154
|
+
end
|
|
2155
|
+
# verify the required parameter 'id_user' is set
|
|
2156
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2157
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_operationsalert_post"
|
|
2158
|
+
end
|
|
2159
|
+
# resource path
|
|
2160
|
+
local_var_path = "/users/{id_user}/operationsalert".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2161
|
+
|
|
2162
|
+
# query parameters
|
|
2163
|
+
query_params = {}
|
|
2164
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2165
|
+
|
|
2166
|
+
# header parameters
|
|
2167
|
+
header_params = {}
|
|
2168
|
+
# HTTP header 'Accept' (if needed)
|
|
2169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2170
|
+
# HTTP header 'Content-Type'
|
|
2171
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2172
|
+
|
|
2173
|
+
# form parameters
|
|
2174
|
+
form_params = {}
|
|
2175
|
+
form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
|
|
2176
|
+
form_params["income_max"] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
|
2177
|
+
form_params["expense_max"] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
|
2178
|
+
form_params["value_type"] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
|
2179
|
+
form_params["date_range"] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
|
2180
|
+
|
|
2181
|
+
# http body (model)
|
|
2182
|
+
post_body = nil
|
|
2183
|
+
auth_names = []
|
|
2184
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
2185
|
+
:header_params => header_params,
|
|
2186
|
+
:query_params => query_params,
|
|
2187
|
+
:form_params => form_params,
|
|
2188
|
+
:body => post_body,
|
|
2189
|
+
:auth_names => auth_names,
|
|
2190
|
+
:return_type => 'UserAlert')
|
|
2191
|
+
if @api_client.config.debugging
|
|
2192
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_operationsalert_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2193
|
+
end
|
|
2194
|
+
return data, status_code, headers
|
|
2195
|
+
end
|
|
2196
|
+
|
|
2197
|
+
# Get profiles
|
|
2198
|
+
#
|
|
2199
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2200
|
+
# @param [Hash] opts the optional parameters
|
|
2201
|
+
# @option opts [String] :expand
|
|
2202
|
+
# @return [InlineResponse20032]
|
|
2203
|
+
def users_id_user_profiles_get(id_user, opts = {})
|
|
2204
|
+
data, _status_code, _headers = users_id_user_profiles_get_with_http_info(id_user, opts)
|
|
2205
|
+
return data
|
|
2206
|
+
end
|
|
2207
|
+
|
|
2208
|
+
# Get profiles
|
|
2209
|
+
#
|
|
2210
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2211
|
+
# @param [Hash] opts the optional parameters
|
|
2212
|
+
# @option opts [String] :expand
|
|
2213
|
+
# @return [Array<(InlineResponse20032, Fixnum, Hash)>] InlineResponse20032 data, response status code and response headers
|
|
2214
|
+
def users_id_user_profiles_get_with_http_info(id_user, opts = {})
|
|
2215
|
+
if @api_client.config.debugging
|
|
2216
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_profiles_get ..."
|
|
2217
|
+
end
|
|
2218
|
+
# verify the required parameter 'id_user' is set
|
|
2219
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2220
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_get"
|
|
2221
|
+
end
|
|
2222
|
+
# resource path
|
|
2223
|
+
local_var_path = "/users/{id_user}/profiles".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2224
|
+
|
|
2225
|
+
# query parameters
|
|
2226
|
+
query_params = {}
|
|
2227
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2228
|
+
|
|
2229
|
+
# header parameters
|
|
2230
|
+
header_params = {}
|
|
2231
|
+
# HTTP header 'Accept' (if needed)
|
|
2232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2233
|
+
# HTTP header 'Content-Type'
|
|
2234
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2235
|
+
|
|
2236
|
+
# form parameters
|
|
2237
|
+
form_params = {}
|
|
2238
|
+
|
|
2239
|
+
# http body (model)
|
|
2240
|
+
post_body = nil
|
|
2241
|
+
auth_names = []
|
|
2242
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2243
|
+
:header_params => header_params,
|
|
2244
|
+
:query_params => query_params,
|
|
2245
|
+
:form_params => form_params,
|
|
2246
|
+
:body => post_body,
|
|
2247
|
+
:auth_names => auth_names,
|
|
2248
|
+
:return_type => 'InlineResponse20032')
|
|
2249
|
+
if @api_client.config.debugging
|
|
2250
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_profiles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2251
|
+
end
|
|
2252
|
+
return data, status_code, headers
|
|
2253
|
+
end
|
|
2254
|
+
|
|
2255
|
+
# Get a profile
|
|
2256
|
+
#
|
|
2257
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2258
|
+
# @param id_profile
|
|
2259
|
+
# @param [Hash] opts the optional parameters
|
|
2260
|
+
# @option opts [String] :expand
|
|
2261
|
+
# @return [Profile]
|
|
2262
|
+
def users_id_user_profiles_id_profile_get(id_user, id_profile, opts = {})
|
|
2263
|
+
data, _status_code, _headers = users_id_user_profiles_id_profile_get_with_http_info(id_user, id_profile, opts)
|
|
2264
|
+
return data
|
|
2265
|
+
end
|
|
2266
|
+
|
|
2267
|
+
# Get a profile
|
|
2268
|
+
#
|
|
2269
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2270
|
+
# @param id_profile
|
|
2271
|
+
# @param [Hash] opts the optional parameters
|
|
2272
|
+
# @option opts [String] :expand
|
|
2273
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
|
2274
|
+
def users_id_user_profiles_id_profile_get_with_http_info(id_user, id_profile, opts = {})
|
|
2275
|
+
if @api_client.config.debugging
|
|
2276
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_profiles_id_profile_get ..."
|
|
2277
|
+
end
|
|
2278
|
+
# verify the required parameter 'id_user' is set
|
|
2279
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2280
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_id_profile_get"
|
|
2281
|
+
end
|
|
2282
|
+
# verify the required parameter 'id_profile' is set
|
|
2283
|
+
if @api_client.config.client_side_validation && id_profile.nil?
|
|
2284
|
+
fail ArgumentError, "Missing the required parameter 'id_profile' when calling PFMApi.users_id_user_profiles_id_profile_get"
|
|
2285
|
+
end
|
|
2286
|
+
# resource path
|
|
2287
|
+
local_var_path = "/users/{id_user}/profiles/{id_profile}".sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_profile' + '}', id_profile.to_s)
|
|
2288
|
+
|
|
2289
|
+
# query parameters
|
|
2290
|
+
query_params = {}
|
|
2291
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2292
|
+
|
|
2293
|
+
# header parameters
|
|
2294
|
+
header_params = {}
|
|
2295
|
+
# HTTP header 'Accept' (if needed)
|
|
2296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2297
|
+
# HTTP header 'Content-Type'
|
|
2298
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2299
|
+
|
|
2300
|
+
# form parameters
|
|
2301
|
+
form_params = {}
|
|
2302
|
+
|
|
2303
|
+
# http body (model)
|
|
2304
|
+
post_body = nil
|
|
2305
|
+
auth_names = []
|
|
2306
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2307
|
+
:header_params => header_params,
|
|
2308
|
+
:query_params => query_params,
|
|
2309
|
+
:form_params => form_params,
|
|
2310
|
+
:body => post_body,
|
|
2311
|
+
:auth_names => auth_names,
|
|
2312
|
+
:return_type => 'Profile')
|
|
2313
|
+
if @api_client.config.debugging
|
|
2314
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_profiles_id_profile_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2315
|
+
end
|
|
2316
|
+
return data, status_code, headers
|
|
2317
|
+
end
|
|
2318
|
+
|
|
2319
|
+
# Get the main profile
|
|
2320
|
+
#
|
|
2321
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2322
|
+
# @param [Hash] opts the optional parameters
|
|
2323
|
+
# @option opts [String] :expand
|
|
2324
|
+
# @return [Profile]
|
|
2325
|
+
def users_id_user_profiles_main_get(id_user, opts = {})
|
|
2326
|
+
data, _status_code, _headers = users_id_user_profiles_main_get_with_http_info(id_user, opts)
|
|
2327
|
+
return data
|
|
2328
|
+
end
|
|
2329
|
+
|
|
2330
|
+
# Get the main profile
|
|
2331
|
+
#
|
|
2332
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2333
|
+
# @param [Hash] opts the optional parameters
|
|
2334
|
+
# @option opts [String] :expand
|
|
2335
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
|
2336
|
+
def users_id_user_profiles_main_get_with_http_info(id_user, opts = {})
|
|
2337
|
+
if @api_client.config.debugging
|
|
2338
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_profiles_main_get ..."
|
|
2339
|
+
end
|
|
2340
|
+
# verify the required parameter 'id_user' is set
|
|
2341
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2342
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_main_get"
|
|
2343
|
+
end
|
|
2344
|
+
# resource path
|
|
2345
|
+
local_var_path = "/users/{id_user}/profiles/main".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2346
|
+
|
|
2347
|
+
# query parameters
|
|
2348
|
+
query_params = {}
|
|
2349
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2350
|
+
|
|
2351
|
+
# header parameters
|
|
2352
|
+
header_params = {}
|
|
2353
|
+
# HTTP header 'Accept' (if needed)
|
|
2354
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2355
|
+
# HTTP header 'Content-Type'
|
|
2356
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2357
|
+
|
|
2358
|
+
# form parameters
|
|
2359
|
+
form_params = {}
|
|
2360
|
+
|
|
2361
|
+
# http body (model)
|
|
2362
|
+
post_body = nil
|
|
2363
|
+
auth_names = []
|
|
2364
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2365
|
+
:header_params => header_params,
|
|
2366
|
+
:query_params => query_params,
|
|
2367
|
+
:form_params => form_params,
|
|
2368
|
+
:body => post_body,
|
|
2369
|
+
:auth_names => auth_names,
|
|
2370
|
+
:return_type => 'Profile')
|
|
2371
|
+
if @api_client.config.debugging
|
|
2372
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_profiles_main_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2373
|
+
end
|
|
2374
|
+
return data, status_code, headers
|
|
2375
|
+
end
|
|
2376
|
+
|
|
2377
|
+
# Get my profile
|
|
2378
|
+
#
|
|
2379
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2380
|
+
# @param [Hash] opts the optional parameters
|
|
2381
|
+
# @option opts [String] :expand
|
|
2382
|
+
# @return [Profile]
|
|
2383
|
+
def users_id_user_profiles_me_get(id_user, opts = {})
|
|
2384
|
+
data, _status_code, _headers = users_id_user_profiles_me_get_with_http_info(id_user, opts)
|
|
2385
|
+
return data
|
|
2386
|
+
end
|
|
2387
|
+
|
|
2388
|
+
# Get my profile
|
|
2389
|
+
#
|
|
2390
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2391
|
+
# @param [Hash] opts the optional parameters
|
|
2392
|
+
# @option opts [String] :expand
|
|
2393
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
|
2394
|
+
def users_id_user_profiles_me_get_with_http_info(id_user, opts = {})
|
|
2395
|
+
if @api_client.config.debugging
|
|
2396
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_profiles_me_get ..."
|
|
2397
|
+
end
|
|
2398
|
+
# verify the required parameter 'id_user' is set
|
|
2399
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2400
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_me_get"
|
|
2401
|
+
end
|
|
2402
|
+
# resource path
|
|
2403
|
+
local_var_path = "/users/{id_user}/profiles/me".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2404
|
+
|
|
2405
|
+
# query parameters
|
|
2406
|
+
query_params = {}
|
|
2407
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2408
|
+
|
|
2409
|
+
# header parameters
|
|
2410
|
+
header_params = {}
|
|
2411
|
+
# HTTP header 'Accept' (if needed)
|
|
2412
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2413
|
+
# HTTP header 'Content-Type'
|
|
2414
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2415
|
+
|
|
2416
|
+
# form parameters
|
|
2417
|
+
form_params = {}
|
|
2418
|
+
|
|
2419
|
+
# http body (model)
|
|
2420
|
+
post_body = nil
|
|
2421
|
+
auth_names = []
|
|
2422
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2423
|
+
:header_params => header_params,
|
|
2424
|
+
:query_params => query_params,
|
|
2425
|
+
:form_params => form_params,
|
|
2426
|
+
:body => post_body,
|
|
2427
|
+
:auth_names => auth_names,
|
|
2428
|
+
:return_type => 'Profile')
|
|
2429
|
+
if @api_client.config.debugging
|
|
2430
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_profiles_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2431
|
+
end
|
|
2432
|
+
return data, status_code, headers
|
|
2433
|
+
end
|
|
2434
|
+
|
|
2435
|
+
# Change settings of the profile.
|
|
2436
|
+
#
|
|
2437
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2438
|
+
# @param [Hash] opts the optional parameters
|
|
2439
|
+
# @option opts [String] :email change email of profile
|
|
2440
|
+
# @option opts [String] :password change password of profile
|
|
2441
|
+
# @option opts [String] :current_password needed when changing the password or the email
|
|
2442
|
+
# @option opts [String] :contact change contact information of a profile
|
|
2443
|
+
# @option opts [String] :conf change config of a profile
|
|
2444
|
+
# @option opts [BOOLEAN] :state state of the profile
|
|
2445
|
+
# @option opts [String] :lang change lang of the profile
|
|
2446
|
+
# @option opts [String] :expand
|
|
2447
|
+
# @return [Profile]
|
|
2448
|
+
def users_id_user_profiles_me_put(id_user, opts = {})
|
|
2449
|
+
data, _status_code, _headers = users_id_user_profiles_me_put_with_http_info(id_user, opts)
|
|
2450
|
+
return data
|
|
2451
|
+
end
|
|
2452
|
+
|
|
2453
|
+
# Change settings of the profile.
|
|
2454
|
+
#
|
|
2455
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2456
|
+
# @param [Hash] opts the optional parameters
|
|
2457
|
+
# @option opts [String] :email change email of profile
|
|
2458
|
+
# @option opts [String] :password change password of profile
|
|
2459
|
+
# @option opts [String] :current_password needed when changing the password or the email
|
|
2460
|
+
# @option opts [String] :contact change contact information of a profile
|
|
2461
|
+
# @option opts [String] :conf change config of a profile
|
|
2462
|
+
# @option opts [BOOLEAN] :state state of the profile
|
|
2463
|
+
# @option opts [String] :lang change lang of the profile
|
|
2464
|
+
# @option opts [String] :expand
|
|
2465
|
+
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
|
2466
|
+
def users_id_user_profiles_me_put_with_http_info(id_user, opts = {})
|
|
2467
|
+
if @api_client.config.debugging
|
|
2468
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_profiles_me_put ..."
|
|
2469
|
+
end
|
|
2470
|
+
# verify the required parameter 'id_user' is set
|
|
2471
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2472
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_me_put"
|
|
2473
|
+
end
|
|
2474
|
+
# resource path
|
|
2475
|
+
local_var_path = "/users/{id_user}/profiles/me".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2476
|
+
|
|
2477
|
+
# query parameters
|
|
2478
|
+
query_params = {}
|
|
2479
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
2480
|
+
|
|
2481
|
+
# header parameters
|
|
2482
|
+
header_params = {}
|
|
2483
|
+
# HTTP header 'Accept' (if needed)
|
|
2484
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2485
|
+
# HTTP header 'Content-Type'
|
|
2486
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2487
|
+
|
|
2488
|
+
# form parameters
|
|
2489
|
+
form_params = {}
|
|
2490
|
+
form_params["email"] = opts[:'email'] if !opts[:'email'].nil?
|
|
2491
|
+
form_params["password"] = opts[:'password'] if !opts[:'password'].nil?
|
|
2492
|
+
form_params["current_password"] = opts[:'current_password'] if !opts[:'current_password'].nil?
|
|
2493
|
+
form_params["contact"] = opts[:'contact'] if !opts[:'contact'].nil?
|
|
2494
|
+
form_params["conf"] = opts[:'conf'] if !opts[:'conf'].nil?
|
|
2495
|
+
form_params["state"] = opts[:'state'] if !opts[:'state'].nil?
|
|
2496
|
+
form_params["lang"] = opts[:'lang'] if !opts[:'lang'].nil?
|
|
2497
|
+
|
|
2498
|
+
# http body (model)
|
|
2499
|
+
post_body = nil
|
|
2500
|
+
auth_names = []
|
|
2501
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
2502
|
+
:header_params => header_params,
|
|
2503
|
+
:query_params => query_params,
|
|
2504
|
+
:form_params => form_params,
|
|
2505
|
+
:body => post_body,
|
|
2506
|
+
:auth_names => auth_names,
|
|
2507
|
+
:return_type => 'Profile')
|
|
2508
|
+
if @api_client.config.debugging
|
|
2509
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_profiles_me_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2510
|
+
end
|
|
2511
|
+
return data, status_code, headers
|
|
2512
|
+
end
|
|
2513
|
+
|
|
2514
|
+
# Get synthesis configuration of a specific user
|
|
2515
|
+
# <br><br>
|
|
2516
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2517
|
+
# @param [Hash] opts the optional parameters
|
|
2518
|
+
# @return [Object]
|
|
2519
|
+
def users_id_user_resume_get(id_user, opts = {})
|
|
2520
|
+
data, _status_code, _headers = users_id_user_resume_get_with_http_info(id_user, opts)
|
|
2521
|
+
return data
|
|
2522
|
+
end
|
|
2523
|
+
|
|
2524
|
+
# Get synthesis configuration of a specific user
|
|
2525
|
+
# <br><br>
|
|
2526
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2527
|
+
# @param [Hash] opts the optional parameters
|
|
2528
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
2529
|
+
def users_id_user_resume_get_with_http_info(id_user, opts = {})
|
|
2530
|
+
if @api_client.config.debugging
|
|
2531
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_resume_get ..."
|
|
2532
|
+
end
|
|
2533
|
+
# verify the required parameter 'id_user' is set
|
|
2534
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2535
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_resume_get"
|
|
2536
|
+
end
|
|
2537
|
+
# resource path
|
|
2538
|
+
local_var_path = "/users/{id_user}/resume".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2539
|
+
|
|
2540
|
+
# query parameters
|
|
2541
|
+
query_params = {}
|
|
2542
|
+
|
|
2543
|
+
# header parameters
|
|
2544
|
+
header_params = {}
|
|
2545
|
+
# HTTP header 'Accept' (if needed)
|
|
2546
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2547
|
+
# HTTP header 'Content-Type'
|
|
2548
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2549
|
+
|
|
2550
|
+
# form parameters
|
|
2551
|
+
form_params = {}
|
|
2552
|
+
|
|
2553
|
+
# http body (model)
|
|
2554
|
+
post_body = nil
|
|
2555
|
+
auth_names = []
|
|
2556
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2557
|
+
:header_params => header_params,
|
|
2558
|
+
:query_params => query_params,
|
|
2559
|
+
:form_params => form_params,
|
|
2560
|
+
:body => post_body,
|
|
2561
|
+
:auth_names => auth_names,
|
|
2562
|
+
:return_type => 'Object')
|
|
2563
|
+
if @api_client.config.debugging
|
|
2564
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_resume_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2565
|
+
end
|
|
2566
|
+
return data, status_code, headers
|
|
2567
|
+
end
|
|
2568
|
+
|
|
2569
|
+
# Update synthesis configuration
|
|
2570
|
+
# <br><br>
|
|
2571
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2572
|
+
# @param [Hash] opts the optional parameters
|
|
2573
|
+
# @option opts [BOOLEAN] :resume_enabled whether the synthesis is activated or not
|
|
2574
|
+
# @option opts [Integer] :resume_frequency frequency of the synthesis given in days
|
|
2575
|
+
# @return [Object]
|
|
2576
|
+
def users_id_user_resume_post(id_user, opts = {})
|
|
2577
|
+
data, _status_code, _headers = users_id_user_resume_post_with_http_info(id_user, opts)
|
|
2578
|
+
return data
|
|
2579
|
+
end
|
|
2580
|
+
|
|
2581
|
+
# Update synthesis configuration
|
|
2582
|
+
# <br><br>
|
|
2583
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
|
2584
|
+
# @param [Hash] opts the optional parameters
|
|
2585
|
+
# @option opts [BOOLEAN] :resume_enabled whether the synthesis is activated or not
|
|
2586
|
+
# @option opts [Integer] :resume_frequency frequency of the synthesis given in days
|
|
2587
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
2588
|
+
def users_id_user_resume_post_with_http_info(id_user, opts = {})
|
|
2589
|
+
if @api_client.config.debugging
|
|
2590
|
+
@api_client.config.logger.debug "Calling API: PFMApi.users_id_user_resume_post ..."
|
|
2591
|
+
end
|
|
2592
|
+
# verify the required parameter 'id_user' is set
|
|
2593
|
+
if @api_client.config.client_side_validation && id_user.nil?
|
|
2594
|
+
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_resume_post"
|
|
2595
|
+
end
|
|
2596
|
+
# resource path
|
|
2597
|
+
local_var_path = "/users/{id_user}/resume".sub('{' + 'id_user' + '}', id_user.to_s)
|
|
2598
|
+
|
|
2599
|
+
# query parameters
|
|
2600
|
+
query_params = {}
|
|
2601
|
+
|
|
2602
|
+
# header parameters
|
|
2603
|
+
header_params = {}
|
|
2604
|
+
# HTTP header 'Accept' (if needed)
|
|
2605
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2606
|
+
# HTTP header 'Content-Type'
|
|
2607
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
2608
|
+
|
|
2609
|
+
# form parameters
|
|
2610
|
+
form_params = {}
|
|
2611
|
+
form_params["resume_enabled"] = opts[:'resume_enabled'] if !opts[:'resume_enabled'].nil?
|
|
2612
|
+
form_params["resume_frequency"] = opts[:'resume_frequency'] if !opts[:'resume_frequency'].nil?
|
|
2613
|
+
|
|
2614
|
+
# http body (model)
|
|
2615
|
+
post_body = nil
|
|
2616
|
+
auth_names = []
|
|
2617
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
2618
|
+
:header_params => header_params,
|
|
2619
|
+
:query_params => query_params,
|
|
2620
|
+
:form_params => form_params,
|
|
2621
|
+
:body => post_body,
|
|
2622
|
+
:auth_names => auth_names,
|
|
2623
|
+
:return_type => 'Object')
|
|
2624
|
+
if @api_client.config.debugging
|
|
2625
|
+
@api_client.config.logger.debug "API called: PFMApi#users_id_user_resume_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2626
|
+
end
|
|
2627
|
+
return data, status_code, headers
|
|
2628
|
+
end
|
|
2629
|
+
end
|
|
2630
|
+
end
|