budgea_client 1.4.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +67 -725
- data/budgea_client.gemspec +15 -3
- data/budgea_openapi.json +2011 -524
- data/docs/Account.md +3 -1
- data/docs/AccountLog.md +2 -2
- data/docs/AdministrationApi.md +354 -34
- data/docs/AuthenticationApi.md +264 -18
- data/docs/BankCategory.md +1 -1
- data/docs/BanksApi.md +939 -550
- data/docs/Certificate.md +12 -0
- data/docs/Client.md +5 -2
- data/docs/Connection.md +1 -1
- data/docs/ConnectionLog.md +3 -2
- data/docs/ConnectionsApi.md +162 -103
- data/docs/Connector.md +21 -0
- data/docs/ConnectorCategory.md +9 -0
- data/docs/ConnectorLogo.md +1 -1
- data/docs/Currency.md +4 -0
- data/docs/DocumentsApi.md +350 -350
- data/docs/Field.md +3 -2
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse20029.md +1 -1
- data/docs/InlineResponse2003.md +2 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +1 -1
- data/docs/InlineResponse20032.md +1 -1
- data/docs/InlineResponse20033.md +1 -1
- data/docs/InlineResponse20034.md +8 -0
- data/docs/InlineResponse20035.md +8 -0
- data/docs/InlineResponse20036.md +8 -0
- data/docs/InlineResponse2004.md +0 -2
- data/docs/InlineResponse2005.md +5 -2
- data/docs/InlineResponse2006.md +2 -3
- data/docs/InlineResponse2007.md +3 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/OCRApi.md +5 -5
- data/docs/OIDCApi.md +5 -5
- data/docs/PFMApi.md +122 -122
- data/docs/Pocket.md +1 -1
- data/docs/Profile.md +1 -1
- data/docs/Project.md +1 -1
- data/docs/ProvidersApi.md +602 -604
- data/docs/Recipient.md +3 -0
- data/docs/RecipientLog.md +14 -0
- data/docs/RecipientsApi.md +28 -20
- data/docs/Subscription.md +2 -1
- data/docs/TermsApi.md +13 -15
- data/docs/Transaction.md +8 -3
- data/docs/Transfer.md +1 -0
- data/docs/TransferLog.md +14 -0
- data/docs/TransfersApi.md +165 -141
- data/docs/UserAlert.md +2 -2
- data/docs/UsersManagementApi.md +24 -24
- data/docs/WealthApi.md +54 -54
- data/docs/WebhookLog.md +15 -0
- data/lib/budgea_client.rb +27 -3
- data/lib/budgea_client/api/administration_api.rb +425 -106
- data/lib/budgea_client/api/authentication_api.rb +287 -46
- data/lib/budgea_client/api/banks_api.rb +1271 -974
- data/lib/budgea_client/api/connections_api.rb +207 -156
- data/lib/budgea_client/api/documents_api.rb +627 -693
- data/lib/budgea_client/api/ocr_api.rb +24 -16
- data/lib/budgea_client/api/oidc_api.rb +23 -16
- data/lib/budgea_client/api/pfm_api.rb +219 -248
- data/lib/budgea_client/api/providers_api.rb +998 -1099
- data/lib/budgea_client/api/recipients_api.rb +52 -34
- data/lib/budgea_client/api/terms_api.rb +34 -31
- data/lib/budgea_client/api/transfers_api.rb +245 -239
- data/lib/budgea_client/api/users_management_api.rb +56 -58
- data/lib/budgea_client/api/wealth_api.rb +81 -85
- data/lib/budgea_client/api_client.rb +20 -11
- data/lib/budgea_client/api_error.rb +11 -1
- data/lib/budgea_client/configuration.rb +12 -2
- data/lib/budgea_client/models/access.rb +18 -13
- data/lib/budgea_client/models/account.rb +44 -23
- data/lib/budgea_client/models/account_log.rb +33 -28
- data/lib/budgea_client/models/account_type.rb +22 -17
- data/lib/budgea_client/models/alert.rb +21 -16
- data/lib/budgea_client/models/bank.rb +21 -16
- data/lib/budgea_client/models/bank_category.rb +19 -14
- data/lib/budgea_client/models/category.rb +22 -17
- data/lib/budgea_client/models/certificate.rb +244 -0
- data/lib/budgea_client/models/client.rb +53 -20
- data/lib/budgea_client/models/connection.rb +29 -24
- data/lib/budgea_client/models/connection_log.rb +39 -24
- data/lib/budgea_client/models/connector.rb +345 -0
- data/lib/budgea_client/models/connector_category.rb +206 -0
- data/lib/budgea_client/models/connector_logo.rb +29 -24
- data/lib/budgea_client/models/currency.rb +63 -16
- data/lib/budgea_client/models/device.rb +23 -18
- data/lib/budgea_client/models/document.rb +21 -16
- data/lib/budgea_client/models/document_type.rb +19 -14
- data/lib/budgea_client/models/field.rb +44 -27
- data/lib/budgea_client/models/field_value.rb +18 -13
- data/lib/budgea_client/models/file.rb +20 -15
- data/lib/budgea_client/models/group.rb +17 -12
- data/lib/budgea_client/models/hash_table.rb +20 -15
- data/lib/budgea_client/models/inline_response_200.rb +17 -12
- data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
- data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
- data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
- data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
- data/lib/budgea_client/models/investment.rb +20 -15
- data/lib/budgea_client/models/investment_value.rb +20 -15
- data/lib/budgea_client/models/invite.rb +18 -13
- data/lib/budgea_client/models/locked_user.rb +18 -13
- data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
- data/lib/budgea_client/models/pocket.rb +22 -17
- data/lib/budgea_client/models/profile.rb +26 -20
- data/lib/budgea_client/models/project.rb +26 -21
- data/lib/budgea_client/models/project_type.rb +18 -13
- data/lib/budgea_client/models/recipient.rb +52 -17
- data/lib/budgea_client/models/recipient_log.rb +254 -0
- data/lib/budgea_client/models/security.rb +18 -13
- data/lib/budgea_client/models/subscription.rb +31 -21
- data/lib/budgea_client/models/terms_of_service.rb +19 -14
- data/lib/budgea_client/models/transaction.rb +83 -33
- data/lib/budgea_client/models/transaction_information.rb +19 -14
- data/lib/budgea_client/models/transactions_cluster.rb +21 -16
- data/lib/budgea_client/models/transfer.rb +32 -16
- data/lib/budgea_client/models/transfer_log.rb +254 -0
- data/lib/budgea_client/models/user.rb +22 -16
- data/lib/budgea_client/models/user_alert.rb +22 -16
- data/lib/budgea_client/models/webhook.rb +19 -14
- data/lib/budgea_client/models/webhook_log.rb +264 -0
- data/lib/budgea_client/version.rb +12 -2
- data/original_budgea_openapi.json +23188 -0
- data/spec/models/certificate_spec.rb +65 -0
- data/spec/models/connector_category_spec.rb +47 -0
- data/spec/models/connector_spec.rb +119 -0
- data/spec/models/inline_response_200_34_spec.rb +41 -0
- data/spec/models/inline_response_200_35_spec.rb +41 -0
- data/spec/models/inline_response_200_36_spec.rb +41 -0
- data/spec/models/recipient_log_spec.rb +77 -0
- data/spec/models/transfer_log_spec.rb +77 -0
- data/spec/models/webhook_log_spec.rb +83 -0
- metadata +52 -18
- data/pkg/budgea_client-1.3.9.gem +0 -0
- data/pkg/budgea_client-1.4.2.gem +0 -0
- data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -1,6 +1,16 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
2
3
|
|
3
|
-
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
16
|
class OCRApi
|
@@ -9,7 +19,6 @@ module BudgeaClient
|
|
9
19
|
def initialize(api_client = ApiClient.default)
|
10
20
|
@api_client = api_client
|
11
21
|
end
|
12
|
-
|
13
22
|
# Post an image with OCR
|
14
23
|
# Post an image and apply OCR on it to obtain found meta-data.<br><br>
|
15
24
|
# @param file File of the document
|
@@ -19,7 +28,7 @@ module BudgeaClient
|
|
19
28
|
# @return [nil]
|
20
29
|
def ocr_post(file, opts = {})
|
21
30
|
ocr_post_with_http_info(file, opts)
|
22
|
-
|
31
|
+
nil
|
23
32
|
end
|
24
33
|
|
25
34
|
# Post an image with OCR
|
@@ -31,14 +40,14 @@ module BudgeaClient
|
|
31
40
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
32
41
|
def ocr_post_with_http_info(file, opts = {})
|
33
42
|
if @api_client.config.debugging
|
34
|
-
@api_client.config.logger.debug
|
43
|
+
@api_client.config.logger.debug 'Calling API: OCRApi.ocr_post ...'
|
35
44
|
end
|
36
45
|
# verify the required parameter 'file' is set
|
37
46
|
if @api_client.config.client_side_validation && file.nil?
|
38
47
|
fail ArgumentError, "Missing the required parameter 'file' when calling OCRApi.ocr_post"
|
39
48
|
end
|
40
49
|
# resource path
|
41
|
-
local_var_path =
|
50
|
+
local_var_path = '/ocr'
|
42
51
|
|
43
52
|
# query parameters
|
44
53
|
query_params = {}
|
@@ -52,9 +61,9 @@ module BudgeaClient
|
|
52
61
|
|
53
62
|
# form parameters
|
54
63
|
form_params = {}
|
55
|
-
form_params[
|
56
|
-
form_params[
|
57
|
-
form_params[
|
64
|
+
form_params['file'] = file
|
65
|
+
form_params['id_transaction'] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
|
66
|
+
form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
|
58
67
|
|
59
68
|
# http body (model)
|
60
69
|
post_body = nil
|
@@ -70,7 +79,6 @@ module BudgeaClient
|
|
70
79
|
end
|
71
80
|
return data, status_code, headers
|
72
81
|
end
|
73
|
-
|
74
82
|
# Post an image with OCR
|
75
83
|
# Post an image and apply OCR on it to obtain found meta-data.<br><br>
|
76
84
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -81,7 +89,7 @@ module BudgeaClient
|
|
81
89
|
# @return [nil]
|
82
90
|
def users_id_user_ocr_post(id_user, file, opts = {})
|
83
91
|
users_id_user_ocr_post_with_http_info(id_user, file, opts)
|
84
|
-
|
92
|
+
nil
|
85
93
|
end
|
86
94
|
|
87
95
|
# Post an image with OCR
|
@@ -94,7 +102,7 @@ module BudgeaClient
|
|
94
102
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
95
103
|
def users_id_user_ocr_post_with_http_info(id_user, file, opts = {})
|
96
104
|
if @api_client.config.debugging
|
97
|
-
@api_client.config.logger.debug
|
105
|
+
@api_client.config.logger.debug 'Calling API: OCRApi.users_id_user_ocr_post ...'
|
98
106
|
end
|
99
107
|
# verify the required parameter 'id_user' is set
|
100
108
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -105,7 +113,7 @@ module BudgeaClient
|
|
105
113
|
fail ArgumentError, "Missing the required parameter 'file' when calling OCRApi.users_id_user_ocr_post"
|
106
114
|
end
|
107
115
|
# resource path
|
108
|
-
local_var_path =
|
116
|
+
local_var_path = '/users/{id_user}/ocr'.sub('{' + 'id_user' + '}', id_user.to_s)
|
109
117
|
|
110
118
|
# query parameters
|
111
119
|
query_params = {}
|
@@ -119,9 +127,9 @@ module BudgeaClient
|
|
119
127
|
|
120
128
|
# form parameters
|
121
129
|
form_params = {}
|
122
|
-
form_params[
|
123
|
-
form_params[
|
124
|
-
form_params[
|
130
|
+
form_params['file'] = file
|
131
|
+
form_params['id_transaction'] = opts[:'id_transaction'] if !opts[:'id_transaction'].nil?
|
132
|
+
form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
|
125
133
|
|
126
134
|
# http body (model)
|
127
135
|
post_body = nil
|
@@ -1,6 +1,16 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
2
3
|
|
3
|
-
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
16
|
class OIDCApi
|
@@ -9,7 +19,6 @@ module BudgeaClient
|
|
9
19
|
def initialize(api_client = ApiClient.default)
|
10
20
|
@api_client = api_client
|
11
21
|
end
|
12
|
-
|
13
22
|
# Delete the supplied authorized redirect uri
|
14
23
|
#
|
15
24
|
# @param id_whitelist
|
@@ -18,7 +27,7 @@ module BudgeaClient
|
|
18
27
|
# @return [OidcWhitelist]
|
19
28
|
def oidc_whitelist_id_whitelist_delete(id_whitelist, opts = {})
|
20
29
|
data, _status_code, _headers = oidc_whitelist_id_whitelist_delete_with_http_info(id_whitelist, opts)
|
21
|
-
|
30
|
+
data
|
22
31
|
end
|
23
32
|
|
24
33
|
# Delete the supplied authorized redirect uri
|
@@ -29,14 +38,14 @@ module BudgeaClient
|
|
29
38
|
# @return [Array<(OidcWhitelist, Fixnum, Hash)>] OidcWhitelist data, response status code and response headers
|
30
39
|
def oidc_whitelist_id_whitelist_delete_with_http_info(id_whitelist, opts = {})
|
31
40
|
if @api_client.config.debugging
|
32
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: OIDCApi.oidc_whitelist_id_whitelist_delete ...'
|
33
42
|
end
|
34
43
|
# verify the required parameter 'id_whitelist' is set
|
35
44
|
if @api_client.config.client_side_validation && id_whitelist.nil?
|
36
45
|
fail ArgumentError, "Missing the required parameter 'id_whitelist' when calling OIDCApi.oidc_whitelist_id_whitelist_delete"
|
37
46
|
end
|
38
47
|
# resource path
|
39
|
-
local_var_path =
|
48
|
+
local_var_path = '/oidc/whitelist/{id_whitelist}'.sub('{' + 'id_whitelist' + '}', id_whitelist.to_s)
|
40
49
|
|
41
50
|
# query parameters
|
42
51
|
query_params = {}
|
@@ -67,7 +76,6 @@ module BudgeaClient
|
|
67
76
|
end
|
68
77
|
return data, status_code, headers
|
69
78
|
end
|
70
|
-
|
71
79
|
# Edit a authorized redirect uri
|
72
80
|
# Edit the uri for the supplied authorized redirect uri.<br><br>
|
73
81
|
# @param id_whitelist
|
@@ -77,7 +85,7 @@ module BudgeaClient
|
|
77
85
|
# @return [OidcWhitelist]
|
78
86
|
def oidc_whitelist_id_whitelist_post(id_whitelist, redirect_uri, opts = {})
|
79
87
|
data, _status_code, _headers = oidc_whitelist_id_whitelist_post_with_http_info(id_whitelist, redirect_uri, opts)
|
80
|
-
|
88
|
+
data
|
81
89
|
end
|
82
90
|
|
83
91
|
# Edit a authorized redirect uri
|
@@ -89,7 +97,7 @@ module BudgeaClient
|
|
89
97
|
# @return [Array<(OidcWhitelist, Fixnum, Hash)>] OidcWhitelist data, response status code and response headers
|
90
98
|
def oidc_whitelist_id_whitelist_post_with_http_info(id_whitelist, redirect_uri, opts = {})
|
91
99
|
if @api_client.config.debugging
|
92
|
-
@api_client.config.logger.debug
|
100
|
+
@api_client.config.logger.debug 'Calling API: OIDCApi.oidc_whitelist_id_whitelist_post ...'
|
93
101
|
end
|
94
102
|
# verify the required parameter 'id_whitelist' is set
|
95
103
|
if @api_client.config.client_side_validation && id_whitelist.nil?
|
@@ -100,7 +108,7 @@ module BudgeaClient
|
|
100
108
|
fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling OIDCApi.oidc_whitelist_id_whitelist_post"
|
101
109
|
end
|
102
110
|
# resource path
|
103
|
-
local_var_path =
|
111
|
+
local_var_path = '/oidc/whitelist/{id_whitelist}'.sub('{' + 'id_whitelist' + '}', id_whitelist.to_s)
|
104
112
|
|
105
113
|
# query parameters
|
106
114
|
query_params = {}
|
@@ -115,7 +123,7 @@ module BudgeaClient
|
|
115
123
|
|
116
124
|
# form parameters
|
117
125
|
form_params = {}
|
118
|
-
form_params[
|
126
|
+
form_params['redirect_uri'] = redirect_uri
|
119
127
|
|
120
128
|
# http body (model)
|
121
129
|
post_body = nil
|
@@ -132,7 +140,6 @@ module BudgeaClient
|
|
132
140
|
end
|
133
141
|
return data, status_code, headers
|
134
142
|
end
|
135
|
-
|
136
143
|
# Adds an authorized redirect uri
|
137
144
|
# It requires the authorized redirect uri to be created<br><br>
|
138
145
|
# @param redirect_uri authorized redirect uri to be created
|
@@ -141,7 +148,7 @@ module BudgeaClient
|
|
141
148
|
# @return [OidcWhitelist]
|
142
149
|
def oidc_whitelist_post(redirect_uri, opts = {})
|
143
150
|
data, _status_code, _headers = oidc_whitelist_post_with_http_info(redirect_uri, opts)
|
144
|
-
|
151
|
+
data
|
145
152
|
end
|
146
153
|
|
147
154
|
# Adds an authorized redirect uri
|
@@ -152,14 +159,14 @@ module BudgeaClient
|
|
152
159
|
# @return [Array<(OidcWhitelist, Fixnum, Hash)>] OidcWhitelist data, response status code and response headers
|
153
160
|
def oidc_whitelist_post_with_http_info(redirect_uri, opts = {})
|
154
161
|
if @api_client.config.debugging
|
155
|
-
@api_client.config.logger.debug
|
162
|
+
@api_client.config.logger.debug 'Calling API: OIDCApi.oidc_whitelist_post ...'
|
156
163
|
end
|
157
164
|
# verify the required parameter 'redirect_uri' is set
|
158
165
|
if @api_client.config.client_side_validation && redirect_uri.nil?
|
159
166
|
fail ArgumentError, "Missing the required parameter 'redirect_uri' when calling OIDCApi.oidc_whitelist_post"
|
160
167
|
end
|
161
168
|
# resource path
|
162
|
-
local_var_path =
|
169
|
+
local_var_path = '/oidc/whitelist'
|
163
170
|
|
164
171
|
# query parameters
|
165
172
|
query_params = {}
|
@@ -174,7 +181,7 @@ module BudgeaClient
|
|
174
181
|
|
175
182
|
# form parameters
|
176
183
|
form_params = {}
|
177
|
-
form_params[
|
184
|
+
form_params['redirect_uri'] = redirect_uri
|
178
185
|
|
179
186
|
# http body (model)
|
180
187
|
post_body = nil
|
@@ -1,6 +1,16 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
2
3
|
|
3
|
-
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
16
|
class PFMApi
|
@@ -9,7 +19,6 @@ module BudgeaClient
|
|
9
19
|
def initialize(api_client = ApiClient.default)
|
10
20
|
@api_client = api_client
|
11
21
|
end
|
12
|
-
|
13
22
|
# Confirm new email address
|
14
23
|
#
|
15
24
|
# @param token token received by email
|
@@ -17,7 +26,7 @@ module BudgeaClient
|
|
17
26
|
# @return [nil]
|
18
27
|
def auth_confirm_new_email_post(token, opts = {})
|
19
28
|
auth_confirm_new_email_post_with_http_info(token, opts)
|
20
|
-
|
29
|
+
nil
|
21
30
|
end
|
22
31
|
|
23
32
|
# Confirm new email address
|
@@ -27,14 +36,14 @@ module BudgeaClient
|
|
27
36
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
28
37
|
def auth_confirm_new_email_post_with_http_info(token, opts = {})
|
29
38
|
if @api_client.config.debugging
|
30
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.auth_confirm_new_email_post ...'
|
31
40
|
end
|
32
41
|
# verify the required parameter 'token' is set
|
33
42
|
if @api_client.config.client_side_validation && token.nil?
|
34
43
|
fail ArgumentError, "Missing the required parameter 'token' when calling PFMApi.auth_confirm_new_email_post"
|
35
44
|
end
|
36
45
|
# resource path
|
37
|
-
local_var_path =
|
46
|
+
local_var_path = '/auth/confirmNewEmail'
|
38
47
|
|
39
48
|
# query parameters
|
40
49
|
query_params = {}
|
@@ -48,7 +57,7 @@ module BudgeaClient
|
|
48
57
|
|
49
58
|
# form parameters
|
50
59
|
form_params = {}
|
51
|
-
form_params[
|
60
|
+
form_params['token'] = token
|
52
61
|
|
53
62
|
# http body (model)
|
54
63
|
post_body = nil
|
@@ -64,7 +73,6 @@ module BudgeaClient
|
|
64
73
|
end
|
65
74
|
return data, status_code, headers
|
66
75
|
end
|
67
|
-
|
68
76
|
# Confirm email address
|
69
77
|
# <br><br>
|
70
78
|
# @param token token received in email
|
@@ -73,7 +81,7 @@ module BudgeaClient
|
|
73
81
|
# @return [InlineResponse2001]
|
74
82
|
def auth_confirm_post(token, application, opts = {})
|
75
83
|
data, _status_code, _headers = auth_confirm_post_with_http_info(token, application, opts)
|
76
|
-
|
84
|
+
data
|
77
85
|
end
|
78
86
|
|
79
87
|
# Confirm email address
|
@@ -84,7 +92,7 @@ module BudgeaClient
|
|
84
92
|
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
85
93
|
def auth_confirm_post_with_http_info(token, application, opts = {})
|
86
94
|
if @api_client.config.debugging
|
87
|
-
@api_client.config.logger.debug
|
95
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.auth_confirm_post ...'
|
88
96
|
end
|
89
97
|
# verify the required parameter 'token' is set
|
90
98
|
if @api_client.config.client_side_validation && token.nil?
|
@@ -95,7 +103,7 @@ module BudgeaClient
|
|
95
103
|
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_confirm_post"
|
96
104
|
end
|
97
105
|
# resource path
|
98
|
-
local_var_path =
|
106
|
+
local_var_path = '/auth/confirm'
|
99
107
|
|
100
108
|
# query parameters
|
101
109
|
query_params = {}
|
@@ -105,12 +113,12 @@ module BudgeaClient
|
|
105
113
|
# HTTP header 'Accept' (if needed)
|
106
114
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
107
115
|
# HTTP header 'Content-Type'
|
108
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
116
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
109
117
|
|
110
118
|
# form parameters
|
111
119
|
form_params = {}
|
112
|
-
form_params[
|
113
|
-
form_params[
|
120
|
+
form_params['token'] = token
|
121
|
+
form_params['application'] = application
|
114
122
|
|
115
123
|
# http body (model)
|
116
124
|
post_body = nil
|
@@ -127,7 +135,6 @@ module BudgeaClient
|
|
127
135
|
end
|
128
136
|
return data, status_code, headers
|
129
137
|
end
|
130
|
-
|
131
138
|
# Login with credentials and set as cookie
|
132
139
|
#
|
133
140
|
# @param username username
|
@@ -138,7 +145,7 @@ module BudgeaClient
|
|
138
145
|
# @return [nil]
|
139
146
|
def auth_cookie_post(username, password, application, opts = {})
|
140
147
|
auth_cookie_post_with_http_info(username, password, application, opts)
|
141
|
-
|
148
|
+
nil
|
142
149
|
end
|
143
150
|
|
144
151
|
# Login with credentials and set as cookie
|
@@ -151,7 +158,7 @@ module BudgeaClient
|
|
151
158
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
152
159
|
def auth_cookie_post_with_http_info(username, password, application, opts = {})
|
153
160
|
if @api_client.config.debugging
|
154
|
-
@api_client.config.logger.debug
|
161
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.auth_cookie_post ...'
|
155
162
|
end
|
156
163
|
# verify the required parameter 'username' is set
|
157
164
|
if @api_client.config.client_side_validation && username.nil?
|
@@ -166,7 +173,7 @@ module BudgeaClient
|
|
166
173
|
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_cookie_post"
|
167
174
|
end
|
168
175
|
# resource path
|
169
|
-
local_var_path =
|
176
|
+
local_var_path = '/auth/cookie'
|
170
177
|
|
171
178
|
# query parameters
|
172
179
|
query_params = {}
|
@@ -180,10 +187,10 @@ module BudgeaClient
|
|
180
187
|
|
181
188
|
# form parameters
|
182
189
|
form_params = {}
|
183
|
-
form_params[
|
184
|
-
form_params[
|
185
|
-
form_params[
|
186
|
-
form_params[
|
190
|
+
form_params['username'] = username
|
191
|
+
form_params['password'] = password
|
192
|
+
form_params['application'] = application
|
193
|
+
form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
187
194
|
|
188
195
|
# http body (model)
|
189
196
|
post_body = nil
|
@@ -199,7 +206,6 @@ module BudgeaClient
|
|
199
206
|
end
|
200
207
|
return data, status_code, headers
|
201
208
|
end
|
202
|
-
|
203
209
|
# Register to API
|
204
210
|
# Create a new user with his email address and password.<br><br><br><br>
|
205
211
|
# @param email email address
|
@@ -208,10 +214,10 @@ module BudgeaClient
|
|
208
214
|
# @param [Hash] opts the optional parameters
|
209
215
|
# @option opts [String] :sponsor sponsor code to get advantages
|
210
216
|
# @option opts [String] :notification_token APNS or GCM token to send notifications to device
|
211
|
-
# @return [
|
217
|
+
# @return [InlineResponse2004]
|
212
218
|
def auth_register_post(email, password, application, opts = {})
|
213
219
|
data, _status_code, _headers = auth_register_post_with_http_info(email, password, application, opts)
|
214
|
-
|
220
|
+
data
|
215
221
|
end
|
216
222
|
|
217
223
|
# Register to API
|
@@ -222,10 +228,10 @@ module BudgeaClient
|
|
222
228
|
# @param [Hash] opts the optional parameters
|
223
229
|
# @option opts [String] :sponsor sponsor code to get advantages
|
224
230
|
# @option opts [String] :notification_token APNS or GCM token to send notifications to device
|
225
|
-
# @return [Array<(
|
231
|
+
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
226
232
|
def auth_register_post_with_http_info(email, password, application, opts = {})
|
227
233
|
if @api_client.config.debugging
|
228
|
-
@api_client.config.logger.debug
|
234
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.auth_register_post ...'
|
229
235
|
end
|
230
236
|
# verify the required parameter 'email' is set
|
231
237
|
if @api_client.config.client_side_validation && email.nil?
|
@@ -240,7 +246,7 @@ module BudgeaClient
|
|
240
246
|
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_register_post"
|
241
247
|
end
|
242
248
|
# resource path
|
243
|
-
local_var_path =
|
249
|
+
local_var_path = '/auth/register'
|
244
250
|
|
245
251
|
# query parameters
|
246
252
|
query_params = {}
|
@@ -254,11 +260,11 @@ module BudgeaClient
|
|
254
260
|
|
255
261
|
# form parameters
|
256
262
|
form_params = {}
|
257
|
-
form_params[
|
258
|
-
form_params[
|
259
|
-
form_params[
|
260
|
-
form_params[
|
261
|
-
form_params[
|
263
|
+
form_params['email'] = email
|
264
|
+
form_params['password'] = password
|
265
|
+
form_params['application'] = application
|
266
|
+
form_params['sponsor'] = opts[:'sponsor'] if !opts[:'sponsor'].nil?
|
267
|
+
form_params['notification_token'] = opts[:'notification_token'] if !opts[:'notification_token'].nil?
|
262
268
|
|
263
269
|
# http body (model)
|
264
270
|
post_body = nil
|
@@ -269,20 +275,19 @@ module BudgeaClient
|
|
269
275
|
:form_params => form_params,
|
270
276
|
:body => post_body,
|
271
277
|
:auth_names => auth_names,
|
272
|
-
:return_type => '
|
278
|
+
:return_type => 'InlineResponse2004')
|
273
279
|
if @api_client.config.debugging
|
274
280
|
@api_client.config.logger.debug "API called: PFMApi#auth_register_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
275
281
|
end
|
276
282
|
return data, status_code, headers
|
277
283
|
end
|
278
|
-
|
279
284
|
# Remove user access
|
280
285
|
# This endpoint removes the token in use.<br><br>
|
281
286
|
# @param [Hash] opts the optional parameters
|
282
287
|
# @return [nil]
|
283
288
|
def auth_token_delete(opts = {})
|
284
289
|
auth_token_delete_with_http_info(opts)
|
285
|
-
|
290
|
+
nil
|
286
291
|
end
|
287
292
|
|
288
293
|
# Remove user access
|
@@ -291,10 +296,10 @@ module BudgeaClient
|
|
291
296
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
292
297
|
def auth_token_delete_with_http_info(opts = {})
|
293
298
|
if @api_client.config.debugging
|
294
|
-
@api_client.config.logger.debug
|
299
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.auth_token_delete ...'
|
295
300
|
end
|
296
301
|
# resource path
|
297
|
-
local_var_path =
|
302
|
+
local_var_path = '/auth/token'
|
298
303
|
|
299
304
|
# query parameters
|
300
305
|
query_params = {}
|
@@ -323,7 +328,6 @@ module BudgeaClient
|
|
323
328
|
end
|
324
329
|
return data, status_code, headers
|
325
330
|
end
|
326
|
-
|
327
331
|
# Login to API with credentials
|
328
332
|
# Request a new user token by giving an username and a password.<br><br><br><br>
|
329
333
|
# @param username username
|
@@ -331,10 +335,10 @@ module BudgeaClient
|
|
331
335
|
# @param application application name
|
332
336
|
# @param [Hash] opts the optional parameters
|
333
337
|
# @option opts [String] :scope scope requested for the token
|
334
|
-
# @return [
|
338
|
+
# @return [InlineResponse2005]
|
335
339
|
def auth_token_post(username, password, application, opts = {})
|
336
340
|
data, _status_code, _headers = auth_token_post_with_http_info(username, password, application, opts)
|
337
|
-
|
341
|
+
data
|
338
342
|
end
|
339
343
|
|
340
344
|
# Login to API with credentials
|
@@ -344,10 +348,10 @@ module BudgeaClient
|
|
344
348
|
# @param application application name
|
345
349
|
# @param [Hash] opts the optional parameters
|
346
350
|
# @option opts [String] :scope scope requested for the token
|
347
|
-
# @return [Array<(
|
351
|
+
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
348
352
|
def auth_token_post_with_http_info(username, password, application, opts = {})
|
349
353
|
if @api_client.config.debugging
|
350
|
-
@api_client.config.logger.debug
|
354
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.auth_token_post ...'
|
351
355
|
end
|
352
356
|
# verify the required parameter 'username' is set
|
353
357
|
if @api_client.config.client_side_validation && username.nil?
|
@@ -362,7 +366,7 @@ module BudgeaClient
|
|
362
366
|
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.auth_token_post"
|
363
367
|
end
|
364
368
|
# resource path
|
365
|
-
local_var_path =
|
369
|
+
local_var_path = '/auth/token'
|
366
370
|
|
367
371
|
# query parameters
|
368
372
|
query_params = {}
|
@@ -376,10 +380,10 @@ module BudgeaClient
|
|
376
380
|
|
377
381
|
# form parameters
|
378
382
|
form_params = {}
|
379
|
-
form_params[
|
380
|
-
form_params[
|
381
|
-
form_params[
|
382
|
-
form_params[
|
383
|
+
form_params['username'] = username
|
384
|
+
form_params['password'] = password
|
385
|
+
form_params['application'] = application
|
386
|
+
form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
383
387
|
|
384
388
|
# http body (model)
|
385
389
|
post_body = nil
|
@@ -390,20 +394,19 @@ module BudgeaClient
|
|
390
394
|
:form_params => form_params,
|
391
395
|
:body => post_body,
|
392
396
|
:auth_names => auth_names,
|
393
|
-
:return_type => '
|
397
|
+
:return_type => 'InlineResponse2005')
|
394
398
|
if @api_client.config.debugging
|
395
399
|
@api_client.config.logger.debug "API called: PFMApi#auth_token_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
396
400
|
end
|
397
401
|
return data, status_code, headers
|
398
402
|
end
|
399
|
-
|
400
403
|
# Delete the user's connections
|
401
404
|
# deletes all connections of the user given his hash<br><br>
|
402
405
|
# @param [Hash] opts the optional parameters
|
403
406
|
# @return [nil]
|
404
407
|
def hash_delete(opts = {})
|
405
408
|
hash_delete_with_http_info(opts)
|
406
|
-
|
409
|
+
nil
|
407
410
|
end
|
408
411
|
|
409
412
|
# Delete the user's connections
|
@@ -412,10 +415,10 @@ module BudgeaClient
|
|
412
415
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
413
416
|
def hash_delete_with_http_info(opts = {})
|
414
417
|
if @api_client.config.debugging
|
415
|
-
@api_client.config.logger.debug
|
418
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.hash_delete ...'
|
416
419
|
end
|
417
420
|
# resource path
|
418
|
-
local_var_path =
|
421
|
+
local_var_path = '/hash'
|
419
422
|
|
420
423
|
# query parameters
|
421
424
|
query_params = {}
|
@@ -444,7 +447,6 @@ module BudgeaClient
|
|
444
447
|
end
|
445
448
|
return data, status_code, headers
|
446
449
|
end
|
447
|
-
|
448
450
|
# Get balances of accounts
|
449
451
|
# 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
452
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -456,7 +458,7 @@ module BudgeaClient
|
|
456
458
|
# @return [nil]
|
457
459
|
def users_id_user_accounts_id_account_balances_get(id_user, id_account, opts = {})
|
458
460
|
users_id_user_accounts_id_account_balances_get_with_http_info(id_user, id_account, opts)
|
459
|
-
|
461
|
+
nil
|
460
462
|
end
|
461
463
|
|
462
464
|
# Get balances of accounts
|
@@ -470,7 +472,7 @@ module BudgeaClient
|
|
470
472
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
471
473
|
def users_id_user_accounts_id_account_balances_get_with_http_info(id_user, id_account, opts = {})
|
472
474
|
if @api_client.config.debugging
|
473
|
-
@api_client.config.logger.debug
|
475
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accounts_id_account_balances_get ...'
|
474
476
|
end
|
475
477
|
# verify the required parameter 'id_user' is set
|
476
478
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -481,7 +483,7 @@ module BudgeaClient
|
|
481
483
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_balances_get"
|
482
484
|
end
|
483
485
|
# resource path
|
484
|
-
local_var_path =
|
486
|
+
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
487
|
|
486
488
|
# query parameters
|
487
489
|
query_params = {}
|
@@ -513,17 +515,16 @@ module BudgeaClient
|
|
513
515
|
end
|
514
516
|
return data, status_code, headers
|
515
517
|
end
|
516
|
-
|
517
518
|
# Get a list of configurated alerts
|
518
519
|
# <br><br>
|
519
520
|
# @param id_user Hint: you can use 'me' or 'all'
|
520
521
|
# @param id_account
|
521
522
|
# @param [Hash] opts the optional parameters
|
522
523
|
# @option opts [String] :expand
|
523
|
-
# @return [
|
524
|
+
# @return [InlineResponse20024]
|
524
525
|
def users_id_user_accounts_id_account_operationsalert_get(id_user, id_account, opts = {})
|
525
526
|
data, _status_code, _headers = users_id_user_accounts_id_account_operationsalert_get_with_http_info(id_user, id_account, opts)
|
526
|
-
|
527
|
+
data
|
527
528
|
end
|
528
529
|
|
529
530
|
# Get a list of configurated alerts
|
@@ -532,10 +533,10 @@ module BudgeaClient
|
|
532
533
|
# @param id_account
|
533
534
|
# @param [Hash] opts the optional parameters
|
534
535
|
# @option opts [String] :expand
|
535
|
-
# @return [Array<(
|
536
|
+
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
536
537
|
def users_id_user_accounts_id_account_operationsalert_get_with_http_info(id_user, id_account, opts = {})
|
537
538
|
if @api_client.config.debugging
|
538
|
-
@api_client.config.logger.debug
|
539
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_get ...'
|
539
540
|
end
|
540
541
|
# verify the required parameter 'id_user' is set
|
541
542
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -546,7 +547,7 @@ module BudgeaClient
|
|
546
547
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_get"
|
547
548
|
end
|
548
549
|
# resource path
|
549
|
-
local_var_path =
|
550
|
+
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
|
|
551
552
|
# query parameters
|
552
553
|
query_params = {}
|
@@ -571,13 +572,12 @@ module BudgeaClient
|
|
571
572
|
:form_params => form_params,
|
572
573
|
:body => post_body,
|
573
574
|
:auth_names => auth_names,
|
574
|
-
:return_type => '
|
575
|
+
:return_type => 'InlineResponse20024')
|
575
576
|
if @api_client.config.debugging
|
576
577
|
@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
578
|
end
|
578
579
|
return data, status_code, headers
|
579
580
|
end
|
580
|
-
|
581
581
|
# Delete an alert on transactions or investemens
|
582
582
|
# <br><br>
|
583
583
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -588,7 +588,7 @@ module BudgeaClient
|
|
588
588
|
# @return [UserAlert]
|
589
589
|
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete(id_user, id_account, id_operationsalert, opts = {})
|
590
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
|
-
|
591
|
+
data
|
592
592
|
end
|
593
593
|
|
594
594
|
# Delete an alert on transactions or investemens
|
@@ -601,7 +601,7 @@ module BudgeaClient
|
|
601
601
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
602
602
|
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_account, id_operationsalert, opts = {})
|
603
603
|
if @api_client.config.debugging
|
604
|
-
@api_client.config.logger.debug
|
604
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete ...'
|
605
605
|
end
|
606
606
|
# verify the required parameter 'id_user' is set
|
607
607
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -616,7 +616,7 @@ module BudgeaClient
|
|
616
616
|
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_delete"
|
617
617
|
end
|
618
618
|
# resource path
|
619
|
-
local_var_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
620
|
|
621
621
|
# query parameters
|
622
622
|
query_params = {}
|
@@ -647,7 +647,6 @@ module BudgeaClient
|
|
647
647
|
end
|
648
648
|
return data, status_code, headers
|
649
649
|
end
|
650
|
-
|
651
650
|
# Edit an alert on transactions or investemens
|
652
651
|
#
|
653
652
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -663,7 +662,7 @@ module BudgeaClient
|
|
663
662
|
# @return [UserAlert]
|
664
663
|
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_put(id_user, id_account, id_operationsalert, opts = {})
|
665
664
|
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
|
-
|
665
|
+
data
|
667
666
|
end
|
668
667
|
|
669
668
|
# Edit an alert on transactions or investemens
|
@@ -681,7 +680,7 @@ module BudgeaClient
|
|
681
680
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
682
681
|
def users_id_user_accounts_id_account_operationsalert_id_operationsalert_put_with_http_info(id_user, id_account, id_operationsalert, opts = {})
|
683
682
|
if @api_client.config.debugging
|
684
|
-
@api_client.config.logger.debug
|
683
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_put ...'
|
685
684
|
end
|
686
685
|
# verify the required parameter 'id_user' is set
|
687
686
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -696,7 +695,7 @@ module BudgeaClient
|
|
696
695
|
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_id_operationsalert_put"
|
697
696
|
end
|
698
697
|
# resource path
|
699
|
-
local_var_path =
|
698
|
+
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
699
|
|
701
700
|
# query parameters
|
702
701
|
query_params = {}
|
@@ -711,11 +710,11 @@ module BudgeaClient
|
|
711
710
|
|
712
711
|
# form parameters
|
713
712
|
form_params = {}
|
714
|
-
form_params[
|
715
|
-
form_params[
|
716
|
-
form_params[
|
717
|
-
form_params[
|
718
|
-
form_params[
|
713
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
714
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
715
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
716
|
+
form_params['value_type'] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
717
|
+
form_params['date_range'] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
719
718
|
|
720
719
|
# http body (model)
|
721
720
|
post_body = nil
|
@@ -732,7 +731,6 @@ module BudgeaClient
|
|
732
731
|
end
|
733
732
|
return data, status_code, headers
|
734
733
|
end
|
735
|
-
|
736
734
|
# Create an alert on transactions or investemens of a given user
|
737
735
|
#
|
738
736
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -747,7 +745,7 @@ module BudgeaClient
|
|
747
745
|
# @return [UserAlert]
|
748
746
|
def users_id_user_accounts_id_account_operationsalert_post(id_user, id_account, opts = {})
|
749
747
|
data, _status_code, _headers = users_id_user_accounts_id_account_operationsalert_post_with_http_info(id_user, id_account, opts)
|
750
|
-
|
748
|
+
data
|
751
749
|
end
|
752
750
|
|
753
751
|
# Create an alert on transactions or investemens of a given user
|
@@ -764,7 +762,7 @@ module BudgeaClient
|
|
764
762
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
765
763
|
def users_id_user_accounts_id_account_operationsalert_post_with_http_info(id_user, id_account, opts = {})
|
766
764
|
if @api_client.config.debugging
|
767
|
-
@api_client.config.logger.debug
|
765
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accounts_id_account_operationsalert_post ...'
|
768
766
|
end
|
769
767
|
# verify the required parameter 'id_user' is set
|
770
768
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -775,7 +773,7 @@ module BudgeaClient
|
|
775
773
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_accounts_id_account_operationsalert_post"
|
776
774
|
end
|
777
775
|
# resource path
|
778
|
-
local_var_path =
|
776
|
+
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
777
|
|
780
778
|
# query parameters
|
781
779
|
query_params = {}
|
@@ -790,11 +788,11 @@ module BudgeaClient
|
|
790
788
|
|
791
789
|
# form parameters
|
792
790
|
form_params = {}
|
793
|
-
form_params[
|
794
|
-
form_params[
|
795
|
-
form_params[
|
796
|
-
form_params[
|
797
|
-
form_params[
|
791
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
792
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
793
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
794
|
+
form_params['value_type'] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
795
|
+
form_params['date_range'] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
798
796
|
|
799
797
|
# http body (model)
|
800
798
|
post_body = nil
|
@@ -811,7 +809,6 @@ module BudgeaClient
|
|
811
809
|
end
|
812
810
|
return data, status_code, headers
|
813
811
|
end
|
814
|
-
|
815
812
|
# Get alert configuration of a specific account
|
816
813
|
# <br><br>
|
817
814
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -819,7 +816,7 @@ module BudgeaClient
|
|
819
816
|
# @return [Object]
|
820
817
|
def users_id_user_accountsalert_get(id_user, opts = {})
|
821
818
|
data, _status_code, _headers = users_id_user_accountsalert_get_with_http_info(id_user, opts)
|
822
|
-
|
819
|
+
data
|
823
820
|
end
|
824
821
|
|
825
822
|
# Get alert configuration of a specific account
|
@@ -829,14 +826,14 @@ module BudgeaClient
|
|
829
826
|
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
830
827
|
def users_id_user_accountsalert_get_with_http_info(id_user, opts = {})
|
831
828
|
if @api_client.config.debugging
|
832
|
-
@api_client.config.logger.debug
|
829
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accountsalert_get ...'
|
833
830
|
end
|
834
831
|
# verify the required parameter 'id_user' is set
|
835
832
|
if @api_client.config.client_side_validation && id_user.nil?
|
836
833
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accountsalert_get"
|
837
834
|
end
|
838
835
|
# resource path
|
839
|
-
local_var_path =
|
836
|
+
local_var_path = '/users/{id_user}/accountsalert'.sub('{' + 'id_user' + '}', id_user.to_s)
|
840
837
|
|
841
838
|
# query parameters
|
842
839
|
query_params = {}
|
@@ -866,7 +863,6 @@ module BudgeaClient
|
|
866
863
|
end
|
867
864
|
return data, status_code, headers
|
868
865
|
end
|
869
|
-
|
870
866
|
# Update alert configuration of an account
|
871
867
|
# It updates the alert configuration of a specific account<br><br><br><br>
|
872
868
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -879,7 +875,7 @@ module BudgeaClient
|
|
879
875
|
# @return [Object]
|
880
876
|
def users_id_user_accountsalert_put(id_user, opts = {})
|
881
877
|
data, _status_code, _headers = users_id_user_accountsalert_put_with_http_info(id_user, opts)
|
882
|
-
|
878
|
+
data
|
883
879
|
end
|
884
880
|
|
885
881
|
# Update alert configuration of an account
|
@@ -894,14 +890,14 @@ module BudgeaClient
|
|
894
890
|
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
895
891
|
def users_id_user_accountsalert_put_with_http_info(id_user, opts = {})
|
896
892
|
if @api_client.config.debugging
|
897
|
-
@api_client.config.logger.debug
|
893
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_accountsalert_put ...'
|
898
894
|
end
|
899
895
|
# verify the required parameter 'id_user' is set
|
900
896
|
if @api_client.config.client_side_validation && id_user.nil?
|
901
897
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_accountsalert_put"
|
902
898
|
end
|
903
899
|
# resource path
|
904
|
-
local_var_path =
|
900
|
+
local_var_path = '/users/{id_user}/accountsalert'.sub('{' + 'id_user' + '}', id_user.to_s)
|
905
901
|
|
906
902
|
# query parameters
|
907
903
|
query_params = {}
|
@@ -915,11 +911,11 @@ module BudgeaClient
|
|
915
911
|
|
916
912
|
# form parameters
|
917
913
|
form_params = {}
|
918
|
-
form_params[
|
919
|
-
form_params[
|
920
|
-
form_params[
|
921
|
-
form_params[
|
922
|
-
form_params[
|
914
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
915
|
+
form_params['accounts'] = opts[:'accounts'] if !opts[:'accounts'].nil?
|
916
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
917
|
+
form_params['balance_min2'] = opts[:'balance_min2'] if !opts[:'balance_min2'].nil?
|
918
|
+
form_params['enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
|
923
919
|
|
924
920
|
# http body (model)
|
925
921
|
post_body = nil
|
@@ -936,7 +932,6 @@ module BudgeaClient
|
|
936
932
|
end
|
937
933
|
return data, status_code, headers
|
938
934
|
end
|
939
|
-
|
940
935
|
# Get balances of accounts
|
941
936
|
# 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
937
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -947,7 +942,7 @@ module BudgeaClient
|
|
947
942
|
# @return [nil]
|
948
943
|
def users_id_user_balances_get(id_user, opts = {})
|
949
944
|
users_id_user_balances_get_with_http_info(id_user, opts)
|
950
|
-
|
945
|
+
nil
|
951
946
|
end
|
952
947
|
|
953
948
|
# Get balances of accounts
|
@@ -960,14 +955,14 @@ module BudgeaClient
|
|
960
955
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
961
956
|
def users_id_user_balances_get_with_http_info(id_user, opts = {})
|
962
957
|
if @api_client.config.debugging
|
963
|
-
@api_client.config.logger.debug
|
958
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_balances_get ...'
|
964
959
|
end
|
965
960
|
# verify the required parameter 'id_user' is set
|
966
961
|
if @api_client.config.client_side_validation && id_user.nil?
|
967
962
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_balances_get"
|
968
963
|
end
|
969
964
|
# resource path
|
970
|
-
local_var_path =
|
965
|
+
local_var_path = '/users/{id_user}/balances'.sub('{' + 'id_user' + '}', id_user.to_s)
|
971
966
|
|
972
967
|
# query parameters
|
973
968
|
query_params = {}
|
@@ -999,7 +994,6 @@ module BudgeaClient
|
|
999
994
|
end
|
1000
995
|
return data, status_code, headers
|
1001
996
|
end
|
1002
|
-
|
1003
997
|
# Get balances of accounts
|
1004
998
|
# 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
999
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1012,7 +1006,7 @@ module BudgeaClient
|
|
1012
1006
|
# @return [nil]
|
1013
1007
|
def users_id_user_connections_id_connection_accounts_id_account_balances_get(id_user, id_connection, id_account, opts = {})
|
1014
1008
|
users_id_user_connections_id_connection_accounts_id_account_balances_get_with_http_info(id_user, id_connection, id_account, opts)
|
1015
|
-
|
1009
|
+
nil
|
1016
1010
|
end
|
1017
1011
|
|
1018
1012
|
# Get balances of accounts
|
@@ -1027,7 +1021,7 @@ module BudgeaClient
|
|
1027
1021
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1028
1022
|
def users_id_user_connections_id_connection_accounts_id_account_balances_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
1029
1023
|
if @api_client.config.debugging
|
1030
|
-
@api_client.config.logger.debug
|
1024
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_balances_get ...'
|
1031
1025
|
end
|
1032
1026
|
# verify the required parameter 'id_user' is set
|
1033
1027
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1042,7 +1036,7 @@ module BudgeaClient
|
|
1042
1036
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_balances_get"
|
1043
1037
|
end
|
1044
1038
|
# resource path
|
1045
|
-
local_var_path =
|
1039
|
+
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
1040
|
|
1047
1041
|
# query parameters
|
1048
1042
|
query_params = {}
|
@@ -1074,7 +1068,6 @@ module BudgeaClient
|
|
1074
1068
|
end
|
1075
1069
|
return data, status_code, headers
|
1076
1070
|
end
|
1077
|
-
|
1078
1071
|
# Get a list of configurated alerts
|
1079
1072
|
# <br><br>
|
1080
1073
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1082,10 +1075,10 @@ module BudgeaClient
|
|
1082
1075
|
# @param id_account
|
1083
1076
|
# @param [Hash] opts the optional parameters
|
1084
1077
|
# @option opts [String] :expand
|
1085
|
-
# @return [
|
1078
|
+
# @return [InlineResponse20024]
|
1086
1079
|
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_get(id_user, id_connection, id_account, opts = {})
|
1087
1080
|
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
|
-
|
1081
|
+
data
|
1089
1082
|
end
|
1090
1083
|
|
1091
1084
|
# Get a list of configurated alerts
|
@@ -1095,10 +1088,10 @@ module BudgeaClient
|
|
1095
1088
|
# @param id_account
|
1096
1089
|
# @param [Hash] opts the optional parameters
|
1097
1090
|
# @option opts [String] :expand
|
1098
|
-
# @return [Array<(
|
1091
|
+
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
1099
1092
|
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_get_with_http_info(id_user, id_connection, id_account, opts = {})
|
1100
1093
|
if @api_client.config.debugging
|
1101
|
-
@api_client.config.logger.debug
|
1094
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_get ...'
|
1102
1095
|
end
|
1103
1096
|
# verify the required parameter 'id_user' is set
|
1104
1097
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1113,7 +1106,7 @@ module BudgeaClient
|
|
1113
1106
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_get"
|
1114
1107
|
end
|
1115
1108
|
# resource path
|
1116
|
-
local_var_path =
|
1109
|
+
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
1110
|
|
1118
1111
|
# query parameters
|
1119
1112
|
query_params = {}
|
@@ -1138,13 +1131,12 @@ module BudgeaClient
|
|
1138
1131
|
:form_params => form_params,
|
1139
1132
|
:body => post_body,
|
1140
1133
|
:auth_names => auth_names,
|
1141
|
-
:return_type => '
|
1134
|
+
:return_type => 'InlineResponse20024')
|
1142
1135
|
if @api_client.config.debugging
|
1143
1136
|
@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
1137
|
end
|
1145
1138
|
return data, status_code, headers
|
1146
1139
|
end
|
1147
|
-
|
1148
1140
|
# Delete an alert on transactions or investments
|
1149
1141
|
# <br><br>
|
1150
1142
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1156,7 +1148,7 @@ module BudgeaClient
|
|
1156
1148
|
# @return [UserAlert]
|
1157
1149
|
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete(id_user, id_connection, id_account, id_operationsalert, opts = {})
|
1158
1150
|
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
|
-
|
1151
|
+
data
|
1160
1152
|
end
|
1161
1153
|
|
1162
1154
|
# Delete an alert on transactions or investments
|
@@ -1170,7 +1162,7 @@ module BudgeaClient
|
|
1170
1162
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
1171
1163
|
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
1164
|
if @api_client.config.debugging
|
1173
|
-
@api_client.config.logger.debug
|
1165
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_delete ...'
|
1174
1166
|
end
|
1175
1167
|
# verify the required parameter 'id_user' is set
|
1176
1168
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1189,7 +1181,7 @@ module BudgeaClient
|
|
1189
1181
|
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
1182
|
end
|
1191
1183
|
# resource path
|
1192
|
-
local_var_path =
|
1184
|
+
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
1185
|
|
1194
1186
|
# query parameters
|
1195
1187
|
query_params = {}
|
@@ -1220,7 +1212,6 @@ module BudgeaClient
|
|
1220
1212
|
end
|
1221
1213
|
return data, status_code, headers
|
1222
1214
|
end
|
1223
|
-
|
1224
1215
|
# Edit an alert on transactions or investments
|
1225
1216
|
#
|
1226
1217
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1237,7 +1228,7 @@ module BudgeaClient
|
|
1237
1228
|
# @return [UserAlert]
|
1238
1229
|
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put(id_user, id_connection, id_account, id_operationsalert, opts = {})
|
1239
1230
|
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
|
-
|
1231
|
+
data
|
1241
1232
|
end
|
1242
1233
|
|
1243
1234
|
# Edit an alert on transactions or investments
|
@@ -1256,7 +1247,7 @@ module BudgeaClient
|
|
1256
1247
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
1257
1248
|
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
1249
|
if @api_client.config.debugging
|
1259
|
-
@api_client.config.logger.debug
|
1250
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_id_operationsalert_put ...'
|
1260
1251
|
end
|
1261
1252
|
# verify the required parameter 'id_user' is set
|
1262
1253
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1275,7 +1266,7 @@ module BudgeaClient
|
|
1275
1266
|
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
1267
|
end
|
1277
1268
|
# resource path
|
1278
|
-
local_var_path =
|
1269
|
+
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
1270
|
|
1280
1271
|
# query parameters
|
1281
1272
|
query_params = {}
|
@@ -1286,15 +1277,15 @@ module BudgeaClient
|
|
1286
1277
|
# HTTP header 'Accept' (if needed)
|
1287
1278
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1288
1279
|
# HTTP header 'Content-Type'
|
1289
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
1280
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1290
1281
|
|
1291
1282
|
# form parameters
|
1292
1283
|
form_params = {}
|
1293
|
-
form_params[
|
1294
|
-
form_params[
|
1295
|
-
form_params[
|
1296
|
-
form_params[
|
1297
|
-
form_params[
|
1284
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
1285
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
1286
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
1287
|
+
form_params['value_type'] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
1288
|
+
form_params['date_range'] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
1298
1289
|
|
1299
1290
|
# http body (model)
|
1300
1291
|
post_body = nil
|
@@ -1311,7 +1302,6 @@ module BudgeaClient
|
|
1311
1302
|
end
|
1312
1303
|
return data, status_code, headers
|
1313
1304
|
end
|
1314
|
-
|
1315
1305
|
# Create an alert on transactions or investemens of a given user
|
1316
1306
|
#
|
1317
1307
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1327,7 +1317,7 @@ module BudgeaClient
|
|
1327
1317
|
# @return [UserAlert]
|
1328
1318
|
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_post(id_user, id_connection, id_account, opts = {})
|
1329
1319
|
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
|
-
|
1320
|
+
data
|
1331
1321
|
end
|
1332
1322
|
|
1333
1323
|
# Create an alert on transactions or investemens of a given user
|
@@ -1345,7 +1335,7 @@ module BudgeaClient
|
|
1345
1335
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
1346
1336
|
def users_id_user_connections_id_connection_accounts_id_account_operationsalert_post_with_http_info(id_user, id_connection, id_account, opts = {})
|
1347
1337
|
if @api_client.config.debugging
|
1348
|
-
@api_client.config.logger.debug
|
1338
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_post ...'
|
1349
1339
|
end
|
1350
1340
|
# verify the required parameter 'id_user' is set
|
1351
1341
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1360,7 +1350,7 @@ module BudgeaClient
|
|
1360
1350
|
fail ArgumentError, "Missing the required parameter 'id_account' when calling PFMApi.users_id_user_connections_id_connection_accounts_id_account_operationsalert_post"
|
1361
1351
|
end
|
1362
1352
|
# resource path
|
1363
|
-
local_var_path =
|
1353
|
+
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
1354
|
|
1365
1355
|
# query parameters
|
1366
1356
|
query_params = {}
|
@@ -1371,15 +1361,15 @@ module BudgeaClient
|
|
1371
1361
|
# HTTP header 'Accept' (if needed)
|
1372
1362
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1373
1363
|
# HTTP header 'Content-Type'
|
1374
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
1364
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1375
1365
|
|
1376
1366
|
# form parameters
|
1377
1367
|
form_params = {}
|
1378
|
-
form_params[
|
1379
|
-
form_params[
|
1380
|
-
form_params[
|
1381
|
-
form_params[
|
1382
|
-
form_params[
|
1368
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
1369
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
1370
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
1371
|
+
form_params['value_type'] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
1372
|
+
form_params['date_range'] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
1383
1373
|
|
1384
1374
|
# http body (model)
|
1385
1375
|
post_body = nil
|
@@ -1396,7 +1386,6 @@ module BudgeaClient
|
|
1396
1386
|
end
|
1397
1387
|
return data, status_code, headers
|
1398
1388
|
end
|
1399
|
-
|
1400
1389
|
# Get balances of accounts
|
1401
1390
|
# 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
1391
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1408,7 +1397,7 @@ module BudgeaClient
|
|
1408
1397
|
# @return [nil]
|
1409
1398
|
def users_id_user_connections_id_connection_balances_get(id_user, id_connection, opts = {})
|
1410
1399
|
users_id_user_connections_id_connection_balances_get_with_http_info(id_user, id_connection, opts)
|
1411
|
-
|
1400
|
+
nil
|
1412
1401
|
end
|
1413
1402
|
|
1414
1403
|
# Get balances of accounts
|
@@ -1422,7 +1411,7 @@ module BudgeaClient
|
|
1422
1411
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1423
1412
|
def users_id_user_connections_id_connection_balances_get_with_http_info(id_user, id_connection, opts = {})
|
1424
1413
|
if @api_client.config.debugging
|
1425
|
-
@api_client.config.logger.debug
|
1414
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_connections_id_connection_balances_get ...'
|
1426
1415
|
end
|
1427
1416
|
# verify the required parameter 'id_user' is set
|
1428
1417
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1433,7 +1422,7 @@ module BudgeaClient
|
|
1433
1422
|
fail ArgumentError, "Missing the required parameter 'id_connection' when calling PFMApi.users_id_user_connections_id_connection_balances_get"
|
1434
1423
|
end
|
1435
1424
|
# resource path
|
1436
|
-
local_var_path =
|
1425
|
+
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
1426
|
|
1438
1427
|
# query parameters
|
1439
1428
|
query_params = {}
|
@@ -1465,16 +1454,15 @@ module BudgeaClient
|
|
1465
1454
|
end
|
1466
1455
|
return data, status_code, headers
|
1467
1456
|
end
|
1468
|
-
|
1469
1457
|
# Get devices
|
1470
1458
|
#
|
1471
1459
|
# @param id_user Hint: you can use 'me' or 'all'
|
1472
1460
|
# @param [Hash] opts the optional parameters
|
1473
1461
|
# @option opts [String] :expand
|
1474
|
-
# @return [
|
1462
|
+
# @return [InlineResponse20033]
|
1475
1463
|
def users_id_user_devices_get(id_user, opts = {})
|
1476
1464
|
data, _status_code, _headers = users_id_user_devices_get_with_http_info(id_user, opts)
|
1477
|
-
|
1465
|
+
data
|
1478
1466
|
end
|
1479
1467
|
|
1480
1468
|
# Get devices
|
@@ -1482,17 +1470,17 @@ module BudgeaClient
|
|
1482
1470
|
# @param id_user Hint: you can use 'me' or 'all'
|
1483
1471
|
# @param [Hash] opts the optional parameters
|
1484
1472
|
# @option opts [String] :expand
|
1485
|
-
# @return [Array<(
|
1473
|
+
# @return [Array<(InlineResponse20033, Fixnum, Hash)>] InlineResponse20033 data, response status code and response headers
|
1486
1474
|
def users_id_user_devices_get_with_http_info(id_user, opts = {})
|
1487
1475
|
if @api_client.config.debugging
|
1488
|
-
@api_client.config.logger.debug
|
1476
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_devices_get ...'
|
1489
1477
|
end
|
1490
1478
|
# verify the required parameter 'id_user' is set
|
1491
1479
|
if @api_client.config.client_side_validation && id_user.nil?
|
1492
1480
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_devices_get"
|
1493
1481
|
end
|
1494
1482
|
# resource path
|
1495
|
-
local_var_path =
|
1483
|
+
local_var_path = '/users/{id_user}/devices'.sub('{' + 'id_user' + '}', id_user.to_s)
|
1496
1484
|
|
1497
1485
|
# query parameters
|
1498
1486
|
query_params = {}
|
@@ -1517,13 +1505,12 @@ module BudgeaClient
|
|
1517
1505
|
:form_params => form_params,
|
1518
1506
|
:body => post_body,
|
1519
1507
|
:auth_names => auth_names,
|
1520
|
-
:return_type => '
|
1508
|
+
:return_type => 'InlineResponse20033')
|
1521
1509
|
if @api_client.config.debugging
|
1522
1510
|
@api_client.config.logger.debug "API called: PFMApi#users_id_user_devices_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1523
1511
|
end
|
1524
1512
|
return data, status_code, headers
|
1525
1513
|
end
|
1526
|
-
|
1527
1514
|
# Delete device.
|
1528
1515
|
#
|
1529
1516
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1533,7 +1520,7 @@ module BudgeaClient
|
|
1533
1520
|
# @return [Device]
|
1534
1521
|
def users_id_user_devices_id_device_delete(id_user, id_device, opts = {})
|
1535
1522
|
data, _status_code, _headers = users_id_user_devices_id_device_delete_with_http_info(id_user, id_device, opts)
|
1536
|
-
|
1523
|
+
data
|
1537
1524
|
end
|
1538
1525
|
|
1539
1526
|
# Delete device.
|
@@ -1545,7 +1532,7 @@ module BudgeaClient
|
|
1545
1532
|
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
1546
1533
|
def users_id_user_devices_id_device_delete_with_http_info(id_user, id_device, opts = {})
|
1547
1534
|
if @api_client.config.debugging
|
1548
|
-
@api_client.config.logger.debug
|
1535
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_devices_id_device_delete ...'
|
1549
1536
|
end
|
1550
1537
|
# verify the required parameter 'id_user' is set
|
1551
1538
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1556,7 +1543,7 @@ module BudgeaClient
|
|
1556
1543
|
fail ArgumentError, "Missing the required parameter 'id_device' when calling PFMApi.users_id_user_devices_id_device_delete"
|
1557
1544
|
end
|
1558
1545
|
# resource path
|
1559
|
-
local_var_path =
|
1546
|
+
local_var_path = '/users/{id_user}/devices/{id_device}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_device' + '}', id_device.to_s)
|
1560
1547
|
|
1561
1548
|
# query parameters
|
1562
1549
|
query_params = {}
|
@@ -1587,7 +1574,6 @@ module BudgeaClient
|
|
1587
1574
|
end
|
1588
1575
|
return data, status_code, headers
|
1589
1576
|
end
|
1590
|
-
|
1591
1577
|
# Get a device
|
1592
1578
|
#
|
1593
1579
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1597,7 +1583,7 @@ module BudgeaClient
|
|
1597
1583
|
# @return [Device]
|
1598
1584
|
def users_id_user_devices_id_device_get(id_user, id_device, opts = {})
|
1599
1585
|
data, _status_code, _headers = users_id_user_devices_id_device_get_with_http_info(id_user, id_device, opts)
|
1600
|
-
|
1586
|
+
data
|
1601
1587
|
end
|
1602
1588
|
|
1603
1589
|
# Get a device
|
@@ -1609,7 +1595,7 @@ module BudgeaClient
|
|
1609
1595
|
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
1610
1596
|
def users_id_user_devices_id_device_get_with_http_info(id_user, id_device, opts = {})
|
1611
1597
|
if @api_client.config.debugging
|
1612
|
-
@api_client.config.logger.debug
|
1598
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_devices_id_device_get ...'
|
1613
1599
|
end
|
1614
1600
|
# verify the required parameter 'id_user' is set
|
1615
1601
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1620,7 +1606,7 @@ module BudgeaClient
|
|
1620
1606
|
fail ArgumentError, "Missing the required parameter 'id_device' when calling PFMApi.users_id_user_devices_id_device_get"
|
1621
1607
|
end
|
1622
1608
|
# resource path
|
1623
|
-
local_var_path =
|
1609
|
+
local_var_path = '/users/{id_user}/devices/{id_device}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_device' + '}', id_device.to_s)
|
1624
1610
|
|
1625
1611
|
# query parameters
|
1626
1612
|
query_params = {}
|
@@ -1651,7 +1637,6 @@ module BudgeaClient
|
|
1651
1637
|
end
|
1652
1638
|
return data, status_code, headers
|
1653
1639
|
end
|
1654
|
-
|
1655
1640
|
# Update attributes of the device.
|
1656
1641
|
#
|
1657
1642
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1664,7 +1649,7 @@ module BudgeaClient
|
|
1664
1649
|
# @return [Device]
|
1665
1650
|
def users_id_user_devices_id_device_put(id_user, id_device, notification_token, application, opts = {})
|
1666
1651
|
data, _status_code, _headers = users_id_user_devices_id_device_put_with_http_info(id_user, id_device, notification_token, application, opts)
|
1667
|
-
|
1652
|
+
data
|
1668
1653
|
end
|
1669
1654
|
|
1670
1655
|
# Update attributes of the device.
|
@@ -1679,7 +1664,7 @@ module BudgeaClient
|
|
1679
1664
|
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
1680
1665
|
def users_id_user_devices_id_device_put_with_http_info(id_user, id_device, notification_token, application, opts = {})
|
1681
1666
|
if @api_client.config.debugging
|
1682
|
-
@api_client.config.logger.debug
|
1667
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_devices_id_device_put ...'
|
1683
1668
|
end
|
1684
1669
|
# verify the required parameter 'id_user' is set
|
1685
1670
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1698,7 +1683,7 @@ module BudgeaClient
|
|
1698
1683
|
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.users_id_user_devices_id_device_put"
|
1699
1684
|
end
|
1700
1685
|
# resource path
|
1701
|
-
local_var_path =
|
1686
|
+
local_var_path = '/users/{id_user}/devices/{id_device}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_device' + '}', id_device.to_s)
|
1702
1687
|
|
1703
1688
|
# query parameters
|
1704
1689
|
query_params = {}
|
@@ -1713,9 +1698,9 @@ module BudgeaClient
|
|
1713
1698
|
|
1714
1699
|
# form parameters
|
1715
1700
|
form_params = {}
|
1716
|
-
form_params[
|
1717
|
-
form_params[
|
1718
|
-
form_params[
|
1701
|
+
form_params['notification_token'] = notification_token
|
1702
|
+
form_params['application'] = application
|
1703
|
+
form_params['notification_version'] = opts[:'notification_version'] if !opts[:'notification_version'].nil?
|
1719
1704
|
|
1720
1705
|
# http body (model)
|
1721
1706
|
post_body = nil
|
@@ -1732,7 +1717,6 @@ module BudgeaClient
|
|
1732
1717
|
end
|
1733
1718
|
return data, status_code, headers
|
1734
1719
|
end
|
1735
|
-
|
1736
1720
|
# Create a device linked to specified token.
|
1737
1721
|
#
|
1738
1722
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1744,7 +1728,7 @@ module BudgeaClient
|
|
1744
1728
|
# @return [Device]
|
1745
1729
|
def users_id_user_devices_post(id_user, notification_token, application, opts = {})
|
1746
1730
|
data, _status_code, _headers = users_id_user_devices_post_with_http_info(id_user, notification_token, application, opts)
|
1747
|
-
|
1731
|
+
data
|
1748
1732
|
end
|
1749
1733
|
|
1750
1734
|
# Create a device linked to specified token.
|
@@ -1758,7 +1742,7 @@ module BudgeaClient
|
|
1758
1742
|
# @return [Array<(Device, Fixnum, Hash)>] Device data, response status code and response headers
|
1759
1743
|
def users_id_user_devices_post_with_http_info(id_user, notification_token, application, opts = {})
|
1760
1744
|
if @api_client.config.debugging
|
1761
|
-
@api_client.config.logger.debug
|
1745
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_devices_post ...'
|
1762
1746
|
end
|
1763
1747
|
# verify the required parameter 'id_user' is set
|
1764
1748
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -1773,7 +1757,7 @@ module BudgeaClient
|
|
1773
1757
|
fail ArgumentError, "Missing the required parameter 'application' when calling PFMApi.users_id_user_devices_post"
|
1774
1758
|
end
|
1775
1759
|
# resource path
|
1776
|
-
local_var_path =
|
1760
|
+
local_var_path = '/users/{id_user}/devices'.sub('{' + 'id_user' + '}', id_user.to_s)
|
1777
1761
|
|
1778
1762
|
# query parameters
|
1779
1763
|
query_params = {}
|
@@ -1788,9 +1772,9 @@ module BudgeaClient
|
|
1788
1772
|
|
1789
1773
|
# form parameters
|
1790
1774
|
form_params = {}
|
1791
|
-
form_params[
|
1792
|
-
form_params[
|
1793
|
-
form_params[
|
1775
|
+
form_params['notification_token'] = notification_token
|
1776
|
+
form_params['application'] = application
|
1777
|
+
form_params['notification_version'] = opts[:'notification_version'] if !opts[:'notification_version'].nil?
|
1794
1778
|
|
1795
1779
|
# http body (model)
|
1796
1780
|
post_body = nil
|
@@ -1807,7 +1791,6 @@ module BudgeaClient
|
|
1807
1791
|
end
|
1808
1792
|
return data, status_code, headers
|
1809
1793
|
end
|
1810
|
-
|
1811
1794
|
# Get forecast
|
1812
1795
|
#
|
1813
1796
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1815,7 +1798,7 @@ module BudgeaClient
|
|
1815
1798
|
# @return [nil]
|
1816
1799
|
def users_id_user_forecast_get(id_user, opts = {})
|
1817
1800
|
users_id_user_forecast_get_with_http_info(id_user, opts)
|
1818
|
-
|
1801
|
+
nil
|
1819
1802
|
end
|
1820
1803
|
|
1821
1804
|
# Get forecast
|
@@ -1825,14 +1808,14 @@ module BudgeaClient
|
|
1825
1808
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1826
1809
|
def users_id_user_forecast_get_with_http_info(id_user, opts = {})
|
1827
1810
|
if @api_client.config.debugging
|
1828
|
-
@api_client.config.logger.debug
|
1811
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_forecast_get ...'
|
1829
1812
|
end
|
1830
1813
|
# verify the required parameter 'id_user' is set
|
1831
1814
|
if @api_client.config.client_side_validation && id_user.nil?
|
1832
1815
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_forecast_get"
|
1833
1816
|
end
|
1834
1817
|
# resource path
|
1835
|
-
local_var_path =
|
1818
|
+
local_var_path = '/users/{id_user}/forecast'.sub('{' + 'id_user' + '}', id_user.to_s)
|
1836
1819
|
|
1837
1820
|
# query parameters
|
1838
1821
|
query_params = {}
|
@@ -1861,7 +1844,6 @@ module BudgeaClient
|
|
1861
1844
|
end
|
1862
1845
|
return data, status_code, headers
|
1863
1846
|
end
|
1864
|
-
|
1865
1847
|
# Get a user
|
1866
1848
|
#
|
1867
1849
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1870,7 +1852,7 @@ module BudgeaClient
|
|
1870
1852
|
# @return [User]
|
1871
1853
|
def users_id_user_get(id_user, opts = {})
|
1872
1854
|
data, _status_code, _headers = users_id_user_get_with_http_info(id_user, opts)
|
1873
|
-
|
1855
|
+
data
|
1874
1856
|
end
|
1875
1857
|
|
1876
1858
|
# Get a user
|
@@ -1881,14 +1863,14 @@ module BudgeaClient
|
|
1881
1863
|
# @return [Array<(User, Fixnum, Hash)>] User data, response status code and response headers
|
1882
1864
|
def users_id_user_get_with_http_info(id_user, opts = {})
|
1883
1865
|
if @api_client.config.debugging
|
1884
|
-
@api_client.config.logger.debug
|
1866
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_get ...'
|
1885
1867
|
end
|
1886
1868
|
# verify the required parameter 'id_user' is set
|
1887
1869
|
if @api_client.config.client_side_validation && id_user.nil?
|
1888
1870
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_get"
|
1889
1871
|
end
|
1890
1872
|
# resource path
|
1891
|
-
local_var_path =
|
1873
|
+
local_var_path = '/users/{id_user}'.sub('{' + 'id_user' + '}', id_user.to_s)
|
1892
1874
|
|
1893
1875
|
# query parameters
|
1894
1876
|
query_params = {}
|
@@ -1919,16 +1901,15 @@ module BudgeaClient
|
|
1919
1901
|
end
|
1920
1902
|
return data, status_code, headers
|
1921
1903
|
end
|
1922
|
-
|
1923
1904
|
# Get a list of configurated alerts
|
1924
1905
|
# <br><br>
|
1925
1906
|
# @param id_user Hint: you can use 'me' or 'all'
|
1926
1907
|
# @param [Hash] opts the optional parameters
|
1927
1908
|
# @option opts [String] :expand
|
1928
|
-
# @return [
|
1909
|
+
# @return [InlineResponse20024]
|
1929
1910
|
def users_id_user_operationsalert_get(id_user, opts = {})
|
1930
1911
|
data, _status_code, _headers = users_id_user_operationsalert_get_with_http_info(id_user, opts)
|
1931
|
-
|
1912
|
+
data
|
1932
1913
|
end
|
1933
1914
|
|
1934
1915
|
# Get a list of configurated alerts
|
@@ -1936,17 +1917,17 @@ module BudgeaClient
|
|
1936
1917
|
# @param id_user Hint: you can use 'me' or 'all'
|
1937
1918
|
# @param [Hash] opts the optional parameters
|
1938
1919
|
# @option opts [String] :expand
|
1939
|
-
# @return [Array<(
|
1920
|
+
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
1940
1921
|
def users_id_user_operationsalert_get_with_http_info(id_user, opts = {})
|
1941
1922
|
if @api_client.config.debugging
|
1942
|
-
@api_client.config.logger.debug
|
1923
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_operationsalert_get ...'
|
1943
1924
|
end
|
1944
1925
|
# verify the required parameter 'id_user' is set
|
1945
1926
|
if @api_client.config.client_side_validation && id_user.nil?
|
1946
1927
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_operationsalert_get"
|
1947
1928
|
end
|
1948
1929
|
# resource path
|
1949
|
-
local_var_path =
|
1930
|
+
local_var_path = '/users/{id_user}/operationsalert'.sub('{' + 'id_user' + '}', id_user.to_s)
|
1950
1931
|
|
1951
1932
|
# query parameters
|
1952
1933
|
query_params = {}
|
@@ -1971,13 +1952,12 @@ module BudgeaClient
|
|
1971
1952
|
:form_params => form_params,
|
1972
1953
|
:body => post_body,
|
1973
1954
|
:auth_names => auth_names,
|
1974
|
-
:return_type => '
|
1955
|
+
:return_type => 'InlineResponse20024')
|
1975
1956
|
if @api_client.config.debugging
|
1976
1957
|
@api_client.config.logger.debug "API called: PFMApi#users_id_user_operationsalert_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1977
1958
|
end
|
1978
1959
|
return data, status_code, headers
|
1979
1960
|
end
|
1980
|
-
|
1981
1961
|
# Delete an alert on transactions or investemens
|
1982
1962
|
# <br><br>
|
1983
1963
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -1987,7 +1967,7 @@ module BudgeaClient
|
|
1987
1967
|
# @return [UserAlert]
|
1988
1968
|
def users_id_user_operationsalert_id_operationsalert_delete(id_user, id_operationsalert, opts = {})
|
1989
1969
|
data, _status_code, _headers = users_id_user_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_operationsalert, opts)
|
1990
|
-
|
1970
|
+
data
|
1991
1971
|
end
|
1992
1972
|
|
1993
1973
|
# Delete an alert on transactions or investemens
|
@@ -1999,7 +1979,7 @@ module BudgeaClient
|
|
1999
1979
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
2000
1980
|
def users_id_user_operationsalert_id_operationsalert_delete_with_http_info(id_user, id_operationsalert, opts = {})
|
2001
1981
|
if @api_client.config.debugging
|
2002
|
-
@api_client.config.logger.debug
|
1982
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_operationsalert_id_operationsalert_delete ...'
|
2003
1983
|
end
|
2004
1984
|
# verify the required parameter 'id_user' is set
|
2005
1985
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2010,7 +1990,7 @@ module BudgeaClient
|
|
2010
1990
|
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_operationsalert_id_operationsalert_delete"
|
2011
1991
|
end
|
2012
1992
|
# resource path
|
2013
|
-
local_var_path =
|
1993
|
+
local_var_path = '/users/{id_user}/operationsalert/{id_operationsalert}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
2014
1994
|
|
2015
1995
|
# query parameters
|
2016
1996
|
query_params = {}
|
@@ -2041,7 +2021,6 @@ module BudgeaClient
|
|
2041
2021
|
end
|
2042
2022
|
return data, status_code, headers
|
2043
2023
|
end
|
2044
|
-
|
2045
2024
|
# Edit an alert on transactions or investemens
|
2046
2025
|
#
|
2047
2026
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2056,7 +2035,7 @@ module BudgeaClient
|
|
2056
2035
|
# @return [UserAlert]
|
2057
2036
|
def users_id_user_operationsalert_id_operationsalert_put(id_user, id_operationsalert, opts = {})
|
2058
2037
|
data, _status_code, _headers = users_id_user_operationsalert_id_operationsalert_put_with_http_info(id_user, id_operationsalert, opts)
|
2059
|
-
|
2038
|
+
data
|
2060
2039
|
end
|
2061
2040
|
|
2062
2041
|
# Edit an alert on transactions or investemens
|
@@ -2073,7 +2052,7 @@ module BudgeaClient
|
|
2073
2052
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
2074
2053
|
def users_id_user_operationsalert_id_operationsalert_put_with_http_info(id_user, id_operationsalert, opts = {})
|
2075
2054
|
if @api_client.config.debugging
|
2076
|
-
@api_client.config.logger.debug
|
2055
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_operationsalert_id_operationsalert_put ...'
|
2077
2056
|
end
|
2078
2057
|
# verify the required parameter 'id_user' is set
|
2079
2058
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2084,7 +2063,7 @@ module BudgeaClient
|
|
2084
2063
|
fail ArgumentError, "Missing the required parameter 'id_operationsalert' when calling PFMApi.users_id_user_operationsalert_id_operationsalert_put"
|
2085
2064
|
end
|
2086
2065
|
# resource path
|
2087
|
-
local_var_path =
|
2066
|
+
local_var_path = '/users/{id_user}/operationsalert/{id_operationsalert}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_operationsalert' + '}', id_operationsalert.to_s)
|
2088
2067
|
|
2089
2068
|
# query parameters
|
2090
2069
|
query_params = {}
|
@@ -2099,11 +2078,11 @@ module BudgeaClient
|
|
2099
2078
|
|
2100
2079
|
# form parameters
|
2101
2080
|
form_params = {}
|
2102
|
-
form_params[
|
2103
|
-
form_params[
|
2104
|
-
form_params[
|
2105
|
-
form_params[
|
2106
|
-
form_params[
|
2081
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
2082
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
2083
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
2084
|
+
form_params['value_type'] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
2085
|
+
form_params['date_range'] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
2107
2086
|
|
2108
2087
|
# http body (model)
|
2109
2088
|
post_body = nil
|
@@ -2120,7 +2099,6 @@ module BudgeaClient
|
|
2120
2099
|
end
|
2121
2100
|
return data, status_code, headers
|
2122
2101
|
end
|
2123
|
-
|
2124
2102
|
# Create an alert on transactions or investemens of a given user
|
2125
2103
|
#
|
2126
2104
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2134,7 +2112,7 @@ module BudgeaClient
|
|
2134
2112
|
# @return [UserAlert]
|
2135
2113
|
def users_id_user_operationsalert_post(id_user, opts = {})
|
2136
2114
|
data, _status_code, _headers = users_id_user_operationsalert_post_with_http_info(id_user, opts)
|
2137
|
-
|
2115
|
+
data
|
2138
2116
|
end
|
2139
2117
|
|
2140
2118
|
# Create an alert on transactions or investemens of a given user
|
@@ -2150,14 +2128,14 @@ module BudgeaClient
|
|
2150
2128
|
# @return [Array<(UserAlert, Fixnum, Hash)>] UserAlert data, response status code and response headers
|
2151
2129
|
def users_id_user_operationsalert_post_with_http_info(id_user, opts = {})
|
2152
2130
|
if @api_client.config.debugging
|
2153
|
-
@api_client.config.logger.debug
|
2131
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_operationsalert_post ...'
|
2154
2132
|
end
|
2155
2133
|
# verify the required parameter 'id_user' is set
|
2156
2134
|
if @api_client.config.client_side_validation && id_user.nil?
|
2157
2135
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_operationsalert_post"
|
2158
2136
|
end
|
2159
2137
|
# resource path
|
2160
|
-
local_var_path =
|
2138
|
+
local_var_path = '/users/{id_user}/operationsalert'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2161
2139
|
|
2162
2140
|
# query parameters
|
2163
2141
|
query_params = {}
|
@@ -2172,11 +2150,11 @@ module BudgeaClient
|
|
2172
2150
|
|
2173
2151
|
# form parameters
|
2174
2152
|
form_params = {}
|
2175
|
-
form_params[
|
2176
|
-
form_params[
|
2177
|
-
form_params[
|
2178
|
-
form_params[
|
2179
|
-
form_params[
|
2153
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
2154
|
+
form_params['income_max'] = opts[:'income_max'] if !opts[:'income_max'].nil?
|
2155
|
+
form_params['expense_max'] = opts[:'expense_max'] if !opts[:'expense_max'].nil?
|
2156
|
+
form_params['value_type'] = opts[:'value_type'] if !opts[:'value_type'].nil?
|
2157
|
+
form_params['date_range'] = opts[:'date_range'] if !opts[:'date_range'].nil?
|
2180
2158
|
|
2181
2159
|
# http body (model)
|
2182
2160
|
post_body = nil
|
@@ -2193,16 +2171,15 @@ module BudgeaClient
|
|
2193
2171
|
end
|
2194
2172
|
return data, status_code, headers
|
2195
2173
|
end
|
2196
|
-
|
2197
2174
|
# Get profiles
|
2198
2175
|
#
|
2199
2176
|
# @param id_user Hint: you can use 'me' or 'all'
|
2200
2177
|
# @param [Hash] opts the optional parameters
|
2201
2178
|
# @option opts [String] :expand
|
2202
|
-
# @return [
|
2179
|
+
# @return [InlineResponse20034]
|
2203
2180
|
def users_id_user_profiles_get(id_user, opts = {})
|
2204
2181
|
data, _status_code, _headers = users_id_user_profiles_get_with_http_info(id_user, opts)
|
2205
|
-
|
2182
|
+
data
|
2206
2183
|
end
|
2207
2184
|
|
2208
2185
|
# Get profiles
|
@@ -2210,17 +2187,17 @@ module BudgeaClient
|
|
2210
2187
|
# @param id_user Hint: you can use 'me' or 'all'
|
2211
2188
|
# @param [Hash] opts the optional parameters
|
2212
2189
|
# @option opts [String] :expand
|
2213
|
-
# @return [Array<(
|
2190
|
+
# @return [Array<(InlineResponse20034, Fixnum, Hash)>] InlineResponse20034 data, response status code and response headers
|
2214
2191
|
def users_id_user_profiles_get_with_http_info(id_user, opts = {})
|
2215
2192
|
if @api_client.config.debugging
|
2216
|
-
@api_client.config.logger.debug
|
2193
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_profiles_get ...'
|
2217
2194
|
end
|
2218
2195
|
# verify the required parameter 'id_user' is set
|
2219
2196
|
if @api_client.config.client_side_validation && id_user.nil?
|
2220
2197
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_get"
|
2221
2198
|
end
|
2222
2199
|
# resource path
|
2223
|
-
local_var_path =
|
2200
|
+
local_var_path = '/users/{id_user}/profiles'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2224
2201
|
|
2225
2202
|
# query parameters
|
2226
2203
|
query_params = {}
|
@@ -2245,13 +2222,12 @@ module BudgeaClient
|
|
2245
2222
|
:form_params => form_params,
|
2246
2223
|
:body => post_body,
|
2247
2224
|
:auth_names => auth_names,
|
2248
|
-
:return_type => '
|
2225
|
+
:return_type => 'InlineResponse20034')
|
2249
2226
|
if @api_client.config.debugging
|
2250
2227
|
@api_client.config.logger.debug "API called: PFMApi#users_id_user_profiles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2251
2228
|
end
|
2252
2229
|
return data, status_code, headers
|
2253
2230
|
end
|
2254
|
-
|
2255
2231
|
# Get a profile
|
2256
2232
|
#
|
2257
2233
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2261,7 +2237,7 @@ module BudgeaClient
|
|
2261
2237
|
# @return [Profile]
|
2262
2238
|
def users_id_user_profiles_id_profile_get(id_user, id_profile, opts = {})
|
2263
2239
|
data, _status_code, _headers = users_id_user_profiles_id_profile_get_with_http_info(id_user, id_profile, opts)
|
2264
|
-
|
2240
|
+
data
|
2265
2241
|
end
|
2266
2242
|
|
2267
2243
|
# Get a profile
|
@@ -2273,7 +2249,7 @@ module BudgeaClient
|
|
2273
2249
|
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
2274
2250
|
def users_id_user_profiles_id_profile_get_with_http_info(id_user, id_profile, opts = {})
|
2275
2251
|
if @api_client.config.debugging
|
2276
|
-
@api_client.config.logger.debug
|
2252
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_profiles_id_profile_get ...'
|
2277
2253
|
end
|
2278
2254
|
# verify the required parameter 'id_user' is set
|
2279
2255
|
if @api_client.config.client_side_validation && id_user.nil?
|
@@ -2284,7 +2260,7 @@ module BudgeaClient
|
|
2284
2260
|
fail ArgumentError, "Missing the required parameter 'id_profile' when calling PFMApi.users_id_user_profiles_id_profile_get"
|
2285
2261
|
end
|
2286
2262
|
# resource path
|
2287
|
-
local_var_path =
|
2263
|
+
local_var_path = '/users/{id_user}/profiles/{id_profile}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_profile' + '}', id_profile.to_s)
|
2288
2264
|
|
2289
2265
|
# query parameters
|
2290
2266
|
query_params = {}
|
@@ -2315,7 +2291,6 @@ module BudgeaClient
|
|
2315
2291
|
end
|
2316
2292
|
return data, status_code, headers
|
2317
2293
|
end
|
2318
|
-
|
2319
2294
|
# Get the main profile
|
2320
2295
|
#
|
2321
2296
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2324,7 +2299,7 @@ module BudgeaClient
|
|
2324
2299
|
# @return [Profile]
|
2325
2300
|
def users_id_user_profiles_main_get(id_user, opts = {})
|
2326
2301
|
data, _status_code, _headers = users_id_user_profiles_main_get_with_http_info(id_user, opts)
|
2327
|
-
|
2302
|
+
data
|
2328
2303
|
end
|
2329
2304
|
|
2330
2305
|
# Get the main profile
|
@@ -2335,14 +2310,14 @@ module BudgeaClient
|
|
2335
2310
|
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
2336
2311
|
def users_id_user_profiles_main_get_with_http_info(id_user, opts = {})
|
2337
2312
|
if @api_client.config.debugging
|
2338
|
-
@api_client.config.logger.debug
|
2313
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_profiles_main_get ...'
|
2339
2314
|
end
|
2340
2315
|
# verify the required parameter 'id_user' is set
|
2341
2316
|
if @api_client.config.client_side_validation && id_user.nil?
|
2342
2317
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_main_get"
|
2343
2318
|
end
|
2344
2319
|
# resource path
|
2345
|
-
local_var_path =
|
2320
|
+
local_var_path = '/users/{id_user}/profiles/main'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2346
2321
|
|
2347
2322
|
# query parameters
|
2348
2323
|
query_params = {}
|
@@ -2373,7 +2348,6 @@ module BudgeaClient
|
|
2373
2348
|
end
|
2374
2349
|
return data, status_code, headers
|
2375
2350
|
end
|
2376
|
-
|
2377
2351
|
# Get my profile
|
2378
2352
|
#
|
2379
2353
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2382,7 +2356,7 @@ module BudgeaClient
|
|
2382
2356
|
# @return [Profile]
|
2383
2357
|
def users_id_user_profiles_me_get(id_user, opts = {})
|
2384
2358
|
data, _status_code, _headers = users_id_user_profiles_me_get_with_http_info(id_user, opts)
|
2385
|
-
|
2359
|
+
data
|
2386
2360
|
end
|
2387
2361
|
|
2388
2362
|
# Get my profile
|
@@ -2393,14 +2367,14 @@ module BudgeaClient
|
|
2393
2367
|
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
2394
2368
|
def users_id_user_profiles_me_get_with_http_info(id_user, opts = {})
|
2395
2369
|
if @api_client.config.debugging
|
2396
|
-
@api_client.config.logger.debug
|
2370
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_profiles_me_get ...'
|
2397
2371
|
end
|
2398
2372
|
# verify the required parameter 'id_user' is set
|
2399
2373
|
if @api_client.config.client_side_validation && id_user.nil?
|
2400
2374
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_me_get"
|
2401
2375
|
end
|
2402
2376
|
# resource path
|
2403
|
-
local_var_path =
|
2377
|
+
local_var_path = '/users/{id_user}/profiles/me'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2404
2378
|
|
2405
2379
|
# query parameters
|
2406
2380
|
query_params = {}
|
@@ -2431,7 +2405,6 @@ module BudgeaClient
|
|
2431
2405
|
end
|
2432
2406
|
return data, status_code, headers
|
2433
2407
|
end
|
2434
|
-
|
2435
2408
|
# Change settings of the profile.
|
2436
2409
|
#
|
2437
2410
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2447,7 +2420,7 @@ module BudgeaClient
|
|
2447
2420
|
# @return [Profile]
|
2448
2421
|
def users_id_user_profiles_me_put(id_user, opts = {})
|
2449
2422
|
data, _status_code, _headers = users_id_user_profiles_me_put_with_http_info(id_user, opts)
|
2450
|
-
|
2423
|
+
data
|
2451
2424
|
end
|
2452
2425
|
|
2453
2426
|
# Change settings of the profile.
|
@@ -2465,14 +2438,14 @@ module BudgeaClient
|
|
2465
2438
|
# @return [Array<(Profile, Fixnum, Hash)>] Profile data, response status code and response headers
|
2466
2439
|
def users_id_user_profiles_me_put_with_http_info(id_user, opts = {})
|
2467
2440
|
if @api_client.config.debugging
|
2468
|
-
@api_client.config.logger.debug
|
2441
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_profiles_me_put ...'
|
2469
2442
|
end
|
2470
2443
|
# verify the required parameter 'id_user' is set
|
2471
2444
|
if @api_client.config.client_side_validation && id_user.nil?
|
2472
2445
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_profiles_me_put"
|
2473
2446
|
end
|
2474
2447
|
# resource path
|
2475
|
-
local_var_path =
|
2448
|
+
local_var_path = '/users/{id_user}/profiles/me'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2476
2449
|
|
2477
2450
|
# query parameters
|
2478
2451
|
query_params = {}
|
@@ -2487,13 +2460,13 @@ module BudgeaClient
|
|
2487
2460
|
|
2488
2461
|
# form parameters
|
2489
2462
|
form_params = {}
|
2490
|
-
form_params[
|
2491
|
-
form_params[
|
2492
|
-
form_params[
|
2493
|
-
form_params[
|
2494
|
-
form_params[
|
2495
|
-
form_params[
|
2496
|
-
form_params[
|
2463
|
+
form_params['email'] = opts[:'email'] if !opts[:'email'].nil?
|
2464
|
+
form_params['password'] = opts[:'password'] if !opts[:'password'].nil?
|
2465
|
+
form_params['current_password'] = opts[:'current_password'] if !opts[:'current_password'].nil?
|
2466
|
+
form_params['contact'] = opts[:'contact'] if !opts[:'contact'].nil?
|
2467
|
+
form_params['conf'] = opts[:'conf'] if !opts[:'conf'].nil?
|
2468
|
+
form_params['state'] = opts[:'state'] if !opts[:'state'].nil?
|
2469
|
+
form_params['lang'] = opts[:'lang'] if !opts[:'lang'].nil?
|
2497
2470
|
|
2498
2471
|
# http body (model)
|
2499
2472
|
post_body = nil
|
@@ -2510,7 +2483,6 @@ module BudgeaClient
|
|
2510
2483
|
end
|
2511
2484
|
return data, status_code, headers
|
2512
2485
|
end
|
2513
|
-
|
2514
2486
|
# Get synthesis configuration of a specific user
|
2515
2487
|
# <br><br>
|
2516
2488
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2518,7 +2490,7 @@ module BudgeaClient
|
|
2518
2490
|
# @return [Object]
|
2519
2491
|
def users_id_user_resume_get(id_user, opts = {})
|
2520
2492
|
data, _status_code, _headers = users_id_user_resume_get_with_http_info(id_user, opts)
|
2521
|
-
|
2493
|
+
data
|
2522
2494
|
end
|
2523
2495
|
|
2524
2496
|
# Get synthesis configuration of a specific user
|
@@ -2528,14 +2500,14 @@ module BudgeaClient
|
|
2528
2500
|
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
2529
2501
|
def users_id_user_resume_get_with_http_info(id_user, opts = {})
|
2530
2502
|
if @api_client.config.debugging
|
2531
|
-
@api_client.config.logger.debug
|
2503
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_resume_get ...'
|
2532
2504
|
end
|
2533
2505
|
# verify the required parameter 'id_user' is set
|
2534
2506
|
if @api_client.config.client_side_validation && id_user.nil?
|
2535
2507
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_resume_get"
|
2536
2508
|
end
|
2537
2509
|
# resource path
|
2538
|
-
local_var_path =
|
2510
|
+
local_var_path = '/users/{id_user}/resume'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2539
2511
|
|
2540
2512
|
# query parameters
|
2541
2513
|
query_params = {}
|
@@ -2565,7 +2537,6 @@ module BudgeaClient
|
|
2565
2537
|
end
|
2566
2538
|
return data, status_code, headers
|
2567
2539
|
end
|
2568
|
-
|
2569
2540
|
# Update synthesis configuration
|
2570
2541
|
# <br><br>
|
2571
2542
|
# @param id_user Hint: you can use 'me' or 'all'
|
@@ -2575,7 +2546,7 @@ module BudgeaClient
|
|
2575
2546
|
# @return [Object]
|
2576
2547
|
def users_id_user_resume_post(id_user, opts = {})
|
2577
2548
|
data, _status_code, _headers = users_id_user_resume_post_with_http_info(id_user, opts)
|
2578
|
-
|
2549
|
+
data
|
2579
2550
|
end
|
2580
2551
|
|
2581
2552
|
# Update synthesis configuration
|
@@ -2587,14 +2558,14 @@ module BudgeaClient
|
|
2587
2558
|
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
2588
2559
|
def users_id_user_resume_post_with_http_info(id_user, opts = {})
|
2589
2560
|
if @api_client.config.debugging
|
2590
|
-
@api_client.config.logger.debug
|
2561
|
+
@api_client.config.logger.debug 'Calling API: PFMApi.users_id_user_resume_post ...'
|
2591
2562
|
end
|
2592
2563
|
# verify the required parameter 'id_user' is set
|
2593
2564
|
if @api_client.config.client_side_validation && id_user.nil?
|
2594
2565
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling PFMApi.users_id_user_resume_post"
|
2595
2566
|
end
|
2596
2567
|
# resource path
|
2597
|
-
local_var_path =
|
2568
|
+
local_var_path = '/users/{id_user}/resume'.sub('{' + 'id_user' + '}', id_user.to_s)
|
2598
2569
|
|
2599
2570
|
# query parameters
|
2600
2571
|
query_params = {}
|
@@ -2608,8 +2579,8 @@ module BudgeaClient
|
|
2608
2579
|
|
2609
2580
|
# form parameters
|
2610
2581
|
form_params = {}
|
2611
|
-
form_params[
|
2612
|
-
form_params[
|
2582
|
+
form_params['resume_enabled'] = opts[:'resume_enabled'] if !opts[:'resume_enabled'].nil?
|
2583
|
+
form_params['resume_frequency'] = opts[:'resume_frequency'] if !opts[:'resume_frequency'].nil?
|
2613
2584
|
|
2614
2585
|
# http body (model)
|
2615
2586
|
post_body = nil
|