yousign_client 1.0.0 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/config.json +2 -2
- data/docs/AuthenticationsApi.md +60 -45
- data/docs/CheckDocumentsApi.md +40 -30
- data/docs/ConsentProcessesApi.md +80 -57
- data/docs/FileInput.md +1 -1
- data/docs/FileObjectsApi.md +40 -30
- data/docs/FilesApi.md +40 -30
- data/docs/MembersApi.md +50 -36
- data/docs/OperationsApi.md +20 -15
- data/docs/OrganizationsApi.md +11 -10
- data/docs/ProcedureOutput.md +1 -0
- data/docs/ProceduresApi.md +90 -66
- data/docs/ServerStampsApi.md +20 -15
- data/docs/SignatureUIsApi.md +101 -82
- data/docs/UserGroupsApi.md +21 -16
- data/docs/UsersApi.md +51 -40
- data/docs/WorkspacesApi.md +11 -10
- data/generate.sh +10 -0
- data/lib/yousign_client/api/authentications_api.rb +25 -88
- data/lib/yousign_client/api/check_documents_api.rb +17 -59
- data/lib/yousign_client/api/consent_processes_api.rb +33 -110
- data/lib/yousign_client/api/file_objects_api.rb +17 -59
- data/lib/yousign_client/api/files_api.rb +17 -59
- data/lib/yousign_client/api/members_api.rb +21 -70
- data/lib/yousign_client/api/operations_api.rb +9 -30
- data/lib/yousign_client/api/organizations_api.rb +5 -12
- data/lib/yousign_client/api/procedures_api.rb +37 -128
- data/lib/yousign_client/api/server_stamps_api.rb +9 -30
- data/lib/yousign_client/api/signature_u_is_api.rb +41 -153
- data/lib/yousign_client/api/user_groups_api.rb +9 -23
- data/lib/yousign_client/api/users_api.rb +21 -70
- data/lib/yousign_client/api/workspaces_api.rb +5 -12
- data/lib/yousign_client/api_client.rb +4 -4
- data/lib/yousign_client/api_error.rb +1 -1
- data/lib/yousign_client/configuration.rb +4 -4
- data/lib/yousign_client/models/authentication_email_output.rb +1 -1
- data/lib/yousign_client/models/authentication_inwebo_output.rb +1 -1
- data/lib/yousign_client/models/authentication_sms_output.rb +1 -1
- data/lib/yousign_client/models/body.rb +1 -1
- data/lib/yousign_client/models/body_1.rb +1 -1
- data/lib/yousign_client/models/body_2.rb +1 -1
- data/lib/yousign_client/models/check_document_bank_accounts_input.rb +1 -1
- data/lib/yousign_client/models/check_document_bank_accounts_output.rb +1 -16
- data/lib/yousign_client/models/check_document_identities_input.rb +1 -1
- data/lib/yousign_client/models/check_document_identities_output.rb +1 -16
- data/lib/yousign_client/models/config_email_template.rb +1 -1
- data/lib/yousign_client/models/config_webhook_template.rb +1 -1
- data/lib/yousign_client/models/consent_process_input.rb +1 -1
- data/lib/yousign_client/models/consent_process_output.rb +1 -1
- data/lib/yousign_client/models/consent_process_value_input.rb +1 -1
- data/lib/yousign_client/models/consent_process_value_output.rb +1 -1
- data/lib/yousign_client/models/file_input.rb +1 -3
- data/lib/yousign_client/models/file_input_metadata.rb +1 -1
- data/lib/yousign_client/models/file_object_input.rb +1 -16
- data/lib/yousign_client/models/file_object_input_without_file_reference.rb +1 -16
- data/lib/yousign_client/models/file_object_output.rb +1 -31
- data/lib/yousign_client/models/file_object_output_without_file_reference.rb +1 -31
- data/lib/yousign_client/models/file_output.rb +1 -31
- data/lib/yousign_client/models/inline_response_400.rb +1 -1
- data/lib/yousign_client/models/inwebo_user_request.rb +1 -16
- data/lib/yousign_client/models/member_input.rb +3 -3
- data/lib/yousign_client/models/member_output.rb +3 -18
- data/lib/yousign_client/models/mode_sms_configuration.rb +1 -1
- data/lib/yousign_client/models/operation_input.rb +1 -1
- data/lib/yousign_client/models/operation_output.rb +1 -1
- data/lib/yousign_client/models/operation_output_metadata.rb +1 -1
- data/lib/yousign_client/models/organization_billing_address.rb +1 -1
- data/lib/yousign_client/models/organization_output.rb +1 -16
- data/lib/yousign_client/models/procedure_config.rb +1 -1
- data/lib/yousign_client/models/procedure_config_email.rb +1 -1
- data/lib/yousign_client/models/procedure_config_reminder.rb +1 -1
- data/lib/yousign_client/models/procedure_config_reminder_config.rb +1 -1
- data/lib/yousign_client/models/procedure_config_reminder_config_email.rb +1 -1
- data/lib/yousign_client/models/procedure_config_webhook.rb +1 -1
- data/lib/yousign_client/models/procedure_duplicate_input.rb +1 -1
- data/lib/yousign_client/models/procedure_input.rb +1 -1
- data/lib/yousign_client/models/procedure_input_metadata.rb +1 -1
- data/lib/yousign_client/models/procedure_output.rb +12 -47
- data/lib/yousign_client/models/procedure_output_metadata.rb +1 -1
- data/lib/yousign_client/models/procedure_remind_config.rb +1 -1
- data/lib/yousign_client/models/procedure_remind_config_email.rb +1 -1
- data/lib/yousign_client/models/procedure_remind_input.rb +1 -1
- data/lib/yousign_client/models/server_stamp_config.rb +1 -1
- data/lib/yousign_client/models/server_stamp_config_webhook.rb +1 -1
- data/lib/yousign_client/models/server_stamp_input.rb +1 -1
- data/lib/yousign_client/models/server_stamp_output.rb +1 -1
- data/lib/yousign_client/models/signature_ui_input.rb +1 -1
- data/lib/yousign_client/models/signature_ui_input_redirect_cancel.rb +1 -1
- data/lib/yousign_client/models/signature_ui_input_redirect_error.rb +1 -1
- data/lib/yousign_client/models/signature_ui_input_redirect_success.rb +1 -1
- data/lib/yousign_client/models/signature_ui_input_update.rb +1 -1
- data/lib/yousign_client/models/signature_ui_label_input.rb +1 -1
- data/lib/yousign_client/models/signature_ui_label_input_included.rb +1 -1
- data/lib/yousign_client/models/signature_ui_label_output.rb +1 -1
- data/lib/yousign_client/models/signature_ui_output.rb +1 -1
- data/lib/yousign_client/models/signature_ui_output_redirect_cancel.rb +1 -1
- data/lib/yousign_client/models/signature_ui_output_redirect_error.rb +1 -1
- data/lib/yousign_client/models/signature_ui_output_redirect_success.rb +1 -1
- data/lib/yousign_client/models/user_group.rb +1 -16
- data/lib/yousign_client/models/user_input.rb +1 -1
- data/lib/yousign_client/models/user_input_notifications.rb +1 -1
- data/lib/yousign_client/models/user_output.rb +1 -16
- data/lib/yousign_client/models/user_output_notifications.rb +1 -1
- data/lib/yousign_client/models/user_workspace_output.rb +1 -16
- data/lib/yousign_client/models/workspace_config.rb +1 -1
- data/lib/yousign_client/models/workspace_config_email.rb +1 -1
- data/lib/yousign_client/models/workspace_config_procedure.rb +1 -1
- data/lib/yousign_client/models/workspace_output.rb +1 -16
- data/lib/yousign_client/version.rb +2 -2
- data/lib/yousign_client.rb +1 -1
- data/spec/api/authentications_api_spec.rb +0 -9
- data/spec/api/check_documents_api_spec.rb +0 -6
- data/spec/api/consent_processes_api_spec.rb +0 -11
- data/spec/api/file_objects_api_spec.rb +0 -6
- data/spec/api/files_api_spec.rb +0 -6
- data/spec/api/members_api_spec.rb +0 -7
- data/spec/api/operations_api_spec.rb +0 -3
- data/spec/api/organizations_api_spec.rb +0 -1
- data/spec/api/procedures_api_spec.rb +0 -13
- data/spec/api/server_stamps_api_spec.rb +0 -3
- data/spec/api/signature_u_is_api_spec.rb +0 -16
- data/spec/api/user_groups_api_spec.rb +0 -2
- data/spec/api/users_api_spec.rb +0 -7
- data/spec/api/workspaces_api_spec.rb +0 -1
- data/spec/models/member_input_spec.rb +1 -1
- data/spec/models/member_output_spec.rb +1 -1
- data/update_client.sh +0 -4
- data/yousign_client.gemspec +3 -2
- data/yousign_openapi.json +59 -706
- metadata +28 -7
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,26 +20,20 @@ module YousignClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# List all Users
|
23
|
-
# @param authorization Authentication credentials for HTTP authentication
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [Array<UserOutput>]
|
26
|
-
def users_get(
|
27
|
-
data, _status_code, _headers = users_get_with_http_info(
|
25
|
+
def users_get(opts = {})
|
26
|
+
data, _status_code, _headers = users_get_with_http_info(opts)
|
28
27
|
data
|
29
28
|
end
|
30
29
|
|
31
30
|
# List all Users
|
32
|
-
# @param authorization Authentication credentials for HTTP authentication
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(Array<UserOutput>, Fixnum, Hash)>] Array<UserOutput> data, response status code and response headers
|
35
|
-
def users_get_with_http_info(
|
33
|
+
def users_get_with_http_info(opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_get ...'
|
38
36
|
end
|
39
|
-
# verify the required parameter 'authorization' is set
|
40
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_get"
|
42
|
-
end
|
43
37
|
# resource path
|
44
38
|
local_var_path = '/users'
|
45
39
|
|
@@ -52,14 +46,13 @@ module YousignClient
|
|
52
46
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
47
|
# HTTP header 'Content-Type'
|
54
48
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
|
-
header_params[:'Authorization'] = authorization
|
56
49
|
|
57
50
|
# form parameters
|
58
51
|
form_params = {}
|
59
52
|
|
60
53
|
# http body (model)
|
61
54
|
post_body = nil
|
62
|
-
auth_names = []
|
55
|
+
auth_names = ['api_key']
|
63
56
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
64
57
|
:header_params => header_params,
|
65
58
|
:query_params => query_params,
|
@@ -74,20 +67,18 @@ module YousignClient
|
|
74
67
|
end
|
75
68
|
# Delete a User
|
76
69
|
# @param id
|
77
|
-
# @param authorization Authentication credentials for HTTP authentication
|
78
70
|
# @param [Hash] opts the optional parameters
|
79
71
|
# @return [nil]
|
80
|
-
def users_id_delete(id,
|
81
|
-
users_id_delete_with_http_info(id,
|
72
|
+
def users_id_delete(id, opts = {})
|
73
|
+
users_id_delete_with_http_info(id, opts)
|
82
74
|
nil
|
83
75
|
end
|
84
76
|
|
85
77
|
# Delete a User
|
86
78
|
# @param id
|
87
|
-
# @param authorization Authentication credentials for HTTP authentication
|
88
79
|
# @param [Hash] opts the optional parameters
|
89
80
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
90
|
-
def users_id_delete_with_http_info(id,
|
81
|
+
def users_id_delete_with_http_info(id, opts = {})
|
91
82
|
if @api_client.config.debugging
|
92
83
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_id_delete ...'
|
93
84
|
end
|
@@ -95,10 +86,6 @@ module YousignClient
|
|
95
86
|
if @api_client.config.client_side_validation && id.nil?
|
96
87
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_delete"
|
97
88
|
end
|
98
|
-
# verify the required parameter 'authorization' is set
|
99
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
100
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_delete"
|
101
|
-
end
|
102
89
|
# resource path
|
103
90
|
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
104
91
|
|
@@ -111,14 +98,13 @@ module YousignClient
|
|
111
98
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
112
99
|
# HTTP header 'Content-Type'
|
113
100
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
114
|
-
header_params[:'Authorization'] = authorization
|
115
101
|
|
116
102
|
# form parameters
|
117
103
|
form_params = {}
|
118
104
|
|
119
105
|
# http body (model)
|
120
106
|
post_body = nil
|
121
|
-
auth_names = []
|
107
|
+
auth_names = ['api_key']
|
122
108
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
123
109
|
:header_params => header_params,
|
124
110
|
:query_params => query_params,
|
@@ -132,20 +118,18 @@ module YousignClient
|
|
132
118
|
end
|
133
119
|
# Find a User by ID
|
134
120
|
# @param id
|
135
|
-
# @param authorization Authentication credentials for HTTP authentication
|
136
121
|
# @param [Hash] opts the optional parameters
|
137
122
|
# @return [UserOutput]
|
138
|
-
def users_id_get(id,
|
139
|
-
data, _status_code, _headers = users_id_get_with_http_info(id,
|
123
|
+
def users_id_get(id, opts = {})
|
124
|
+
data, _status_code, _headers = users_id_get_with_http_info(id, opts)
|
140
125
|
data
|
141
126
|
end
|
142
127
|
|
143
128
|
# Find a User by ID
|
144
129
|
# @param id
|
145
|
-
# @param authorization Authentication credentials for HTTP authentication
|
146
130
|
# @param [Hash] opts the optional parameters
|
147
131
|
# @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
|
148
|
-
def users_id_get_with_http_info(id,
|
132
|
+
def users_id_get_with_http_info(id, opts = {})
|
149
133
|
if @api_client.config.debugging
|
150
134
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_id_get ...'
|
151
135
|
end
|
@@ -153,10 +137,6 @@ module YousignClient
|
|
153
137
|
if @api_client.config.client_side_validation && id.nil?
|
154
138
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_get"
|
155
139
|
end
|
156
|
-
# verify the required parameter 'authorization' is set
|
157
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
158
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_get"
|
159
|
-
end
|
160
140
|
# resource path
|
161
141
|
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
162
142
|
|
@@ -169,14 +149,13 @@ module YousignClient
|
|
169
149
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
170
150
|
# HTTP header 'Content-Type'
|
171
151
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
172
|
-
header_params[:'Authorization'] = authorization
|
173
152
|
|
174
153
|
# form parameters
|
175
154
|
form_params = {}
|
176
155
|
|
177
156
|
# http body (model)
|
178
157
|
post_body = nil
|
179
|
-
auth_names = []
|
158
|
+
auth_names = ['api_key']
|
180
159
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
181
160
|
:header_params => header_params,
|
182
161
|
:query_params => query_params,
|
@@ -191,24 +170,20 @@ module YousignClient
|
|
191
170
|
end
|
192
171
|
# Update a User
|
193
172
|
# @param id
|
194
|
-
# @param authorization Authentication credentials for HTTP authentication
|
195
|
-
# @param content_type The MIME type of the body of the request
|
196
173
|
# @param body
|
197
174
|
# @param [Hash] opts the optional parameters
|
198
175
|
# @return [UserOutput]
|
199
|
-
def users_id_put(id,
|
200
|
-
data, _status_code, _headers = users_id_put_with_http_info(id,
|
176
|
+
def users_id_put(id, body, opts = {})
|
177
|
+
data, _status_code, _headers = users_id_put_with_http_info(id, body, opts)
|
201
178
|
data
|
202
179
|
end
|
203
180
|
|
204
181
|
# Update a User
|
205
182
|
# @param id
|
206
|
-
# @param authorization Authentication credentials for HTTP authentication
|
207
|
-
# @param content_type The MIME type of the body of the request
|
208
183
|
# @param body
|
209
184
|
# @param [Hash] opts the optional parameters
|
210
185
|
# @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
|
211
|
-
def users_id_put_with_http_info(id,
|
186
|
+
def users_id_put_with_http_info(id, body, opts = {})
|
212
187
|
if @api_client.config.debugging
|
213
188
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_id_put ...'
|
214
189
|
end
|
@@ -216,14 +191,6 @@ module YousignClient
|
|
216
191
|
if @api_client.config.client_side_validation && id.nil?
|
217
192
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_put"
|
218
193
|
end
|
219
|
-
# verify the required parameter 'authorization' is set
|
220
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
221
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_put"
|
222
|
-
end
|
223
|
-
# verify the required parameter 'content_type' is set
|
224
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
225
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling UsersApi.users_id_put"
|
226
|
-
end
|
227
194
|
# verify the required parameter 'body' is set
|
228
195
|
if @api_client.config.client_side_validation && body.nil?
|
229
196
|
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_id_put"
|
@@ -238,15 +205,13 @@ module YousignClient
|
|
238
205
|
header_params = {}
|
239
206
|
# HTTP header 'Accept' (if needed)
|
240
207
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
241
|
-
header_params[:'Authorization'] = authorization
|
242
|
-
header_params[:'Content-Type'] = content_type
|
243
208
|
|
244
209
|
# form parameters
|
245
210
|
form_params = {}
|
246
211
|
|
247
212
|
# http body (model)
|
248
213
|
post_body = @api_client.object_to_http_body(body)
|
249
|
-
auth_names = []
|
214
|
+
auth_names = ['api_key']
|
250
215
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
251
216
|
:header_params => header_params,
|
252
217
|
:query_params => query_params,
|
@@ -260,34 +225,22 @@ module YousignClient
|
|
260
225
|
return data, status_code, headers
|
261
226
|
end
|
262
227
|
# Create a new User on Yousign application
|
263
|
-
# @param authorization Authentication credentials for HTTP authentication
|
264
|
-
# @param content_type The MIME type of the body of the request
|
265
228
|
# @param body
|
266
229
|
# @param [Hash] opts the optional parameters
|
267
230
|
# @return [UserOutput]
|
268
|
-
def users_post(
|
269
|
-
data, _status_code, _headers = users_post_with_http_info(
|
231
|
+
def users_post(body, opts = {})
|
232
|
+
data, _status_code, _headers = users_post_with_http_info(body, opts)
|
270
233
|
data
|
271
234
|
end
|
272
235
|
|
273
236
|
# Create a new User on Yousign application
|
274
|
-
# @param authorization Authentication credentials for HTTP authentication
|
275
|
-
# @param content_type The MIME type of the body of the request
|
276
237
|
# @param body
|
277
238
|
# @param [Hash] opts the optional parameters
|
278
239
|
# @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
|
279
|
-
def users_post_with_http_info(
|
240
|
+
def users_post_with_http_info(body, opts = {})
|
280
241
|
if @api_client.config.debugging
|
281
242
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_post ...'
|
282
243
|
end
|
283
|
-
# verify the required parameter 'authorization' is set
|
284
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
285
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_post"
|
286
|
-
end
|
287
|
-
# verify the required parameter 'content_type' is set
|
288
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
289
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling UsersApi.users_post"
|
290
|
-
end
|
291
244
|
# verify the required parameter 'body' is set
|
292
245
|
if @api_client.config.client_side_validation && body.nil?
|
293
246
|
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post"
|
@@ -302,15 +255,13 @@ module YousignClient
|
|
302
255
|
header_params = {}
|
303
256
|
# HTTP header 'Accept' (if needed)
|
304
257
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
305
|
-
header_params[:'Authorization'] = authorization
|
306
|
-
header_params[:'Content-Type'] = content_type
|
307
258
|
|
308
259
|
# form parameters
|
309
260
|
form_params = {}
|
310
261
|
|
311
262
|
# http body (model)
|
312
263
|
post_body = @api_client.object_to_http_body(body)
|
313
|
-
auth_names = []
|
264
|
+
auth_names = ['api_key']
|
314
265
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
315
266
|
:header_params => header_params,
|
316
267
|
:query_params => query_params,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,26 +20,20 @@ module YousignClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# List all Workspaces
|
23
|
-
# @param authorization Authentication credentials for HTTP authentication
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [Array<WorkspaceOutput>]
|
26
|
-
def workspaces_get(
|
27
|
-
data, _status_code, _headers = workspaces_get_with_http_info(
|
25
|
+
def workspaces_get(opts = {})
|
26
|
+
data, _status_code, _headers = workspaces_get_with_http_info(opts)
|
28
27
|
data
|
29
28
|
end
|
30
29
|
|
31
30
|
# List all Workspaces
|
32
|
-
# @param authorization Authentication credentials for HTTP authentication
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(Array<WorkspaceOutput>, Fixnum, Hash)>] Array<WorkspaceOutput> data, response status code and response headers
|
35
|
-
def workspaces_get_with_http_info(
|
33
|
+
def workspaces_get_with_http_info(opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: WorkspacesApi.workspaces_get ...'
|
38
36
|
end
|
39
|
-
# verify the required parameter 'authorization' is set
|
40
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling WorkspacesApi.workspaces_get"
|
42
|
-
end
|
43
37
|
# resource path
|
44
38
|
local_var_path = '/workspaces'
|
45
39
|
|
@@ -52,14 +46,13 @@ module YousignClient
|
|
52
46
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
47
|
# HTTP header 'Content-Type'
|
54
48
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
|
-
header_params[:'Authorization'] = authorization
|
56
49
|
|
57
50
|
# form parameters
|
58
51
|
form_params = {}
|
59
52
|
|
60
53
|
# http body (model)
|
61
54
|
post_body = nil
|
62
|
-
auth_names = []
|
55
|
+
auth_names = ['api_key']
|
63
56
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
64
57
|
:header_params => header_params,
|
65
58
|
:query_params => query_params,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,7 @@ require 'json'
|
|
15
15
|
require 'logger'
|
16
16
|
require 'tempfile'
|
17
17
|
require 'typhoeus'
|
18
|
-
require 'uri'
|
18
|
+
require 'addressable/uri'
|
19
19
|
|
20
20
|
module YousignClient
|
21
21
|
class ApiClient
|
@@ -63,7 +63,7 @@ module YousignClient
|
|
63
63
|
:message => response.return_message)
|
64
64
|
else
|
65
65
|
fail ApiError.new(:code => response.code,
|
66
|
-
:response_headers => response.headers,
|
66
|
+
:response_headers => response.headers.to_h,
|
67
67
|
:response_body => response.body),
|
68
68
|
response.status_message
|
69
69
|
end
|
@@ -266,7 +266,7 @@ module YousignClient
|
|
266
266
|
def build_request_url(path)
|
267
267
|
# Add leading and trailing slashes to path
|
268
268
|
path = "/#{path}".gsub(/\/+/, '/')
|
269
|
-
URI.encode(@config.base_url + path)
|
269
|
+
Addressable::URI.encode(@config.base_url + path)
|
270
270
|
end
|
271
271
|
|
272
272
|
# Builds the HTTP request body
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require 'uri'
|
13
|
+
require 'addressable/uri'
|
14
14
|
|
15
15
|
module YousignClient
|
16
16
|
class Configuration
|
@@ -175,7 +175,7 @@ module YousignClient
|
|
175
175
|
|
176
176
|
def base_url
|
177
177
|
url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
178
|
-
URI.encode(url)
|
178
|
+
Addressable::URI.encode(url)
|
179
179
|
end
|
180
180
|
|
181
181
|
# Gets API key (with prefix if set).
|
@@ -196,7 +196,7 @@ module YousignClient
|
|
196
196
|
# Returns Auth Settings hash for api client.
|
197
197
|
def auth_settings
|
198
198
|
{
|
199
|
-
'
|
199
|
+
'api_key' =>
|
200
200
|
{
|
201
201
|
type: 'api_key',
|
202
202
|
in: 'header',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -214,32 +214,17 @@ module YousignClient
|
|
214
214
|
# @return Array for valid properties with the reasons
|
215
215
|
def list_invalid_properties
|
216
216
|
invalid_properties = Array.new
|
217
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
218
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
219
|
-
end
|
220
|
-
|
221
217
|
invalid_properties
|
222
218
|
end
|
223
219
|
|
224
220
|
# Check to see if the all the properties in the model are valid
|
225
221
|
# @return true if the model is valid
|
226
222
|
def valid?
|
227
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
228
223
|
document_type_validator = EnumAttributeValidator.new('String', ['RIB'])
|
229
224
|
return false unless document_type_validator.valid?(@document_type)
|
230
225
|
true
|
231
226
|
end
|
232
227
|
|
233
|
-
# Custom attribute writer method with validation
|
234
|
-
# @param [Object] id Value to be assigned
|
235
|
-
def id=(id)
|
236
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
237
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
238
|
-
end
|
239
|
-
|
240
|
-
@id = id
|
241
|
-
end
|
242
|
-
|
243
228
|
# Custom attribute writer method checking allowed values (enum).
|
244
229
|
# @param [Object] document_type Object to be assigned
|
245
230
|
def document_type=(document_type)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -256,32 +256,17 @@ module YousignClient
|
|
256
256
|
# @return Array for valid properties with the reasons
|
257
257
|
def list_invalid_properties
|
258
258
|
invalid_properties = Array.new
|
259
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
260
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
261
|
-
end
|
262
|
-
|
263
259
|
invalid_properties
|
264
260
|
end
|
265
261
|
|
266
262
|
# Check to see if the all the properties in the model are valid
|
267
263
|
# @return true if the model is valid
|
268
264
|
def valid?
|
269
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
270
265
|
document_type_validator = EnumAttributeValidator.new('String', ['ID_CARD', 'PASSPORT'])
|
271
266
|
return false unless document_type_validator.valid?(@document_type)
|
272
267
|
true
|
273
268
|
end
|
274
269
|
|
275
|
-
# Custom attribute writer method with validation
|
276
|
-
# @param [Object] id Value to be assigned
|
277
|
-
def id=(id)
|
278
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
279
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
280
|
-
end
|
281
|
-
|
282
|
-
@id = id
|
283
|
-
end
|
284
|
-
|
285
270
|
# Custom attribute writer method checking allowed values (enum).
|
286
271
|
# @param [Object] document_type Object to be assigned
|
287
272
|
def document_type=(document_type)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.1
|
7
7
|
Contact: support@yousign.fr
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -124,8 +124,6 @@ module YousignClient
|
|
124
124
|
|
125
125
|
if attributes.has_key?(:'position')
|
126
126
|
self.position = attributes[:'position']
|
127
|
-
else
|
128
|
-
self.position = 0
|
129
127
|
end
|
130
128
|
end
|
131
129
|
|