yousign_client 1.0.0 → 1.0.1
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/FileObjectsApi.md +40 -30
- data/docs/FilesApi.md +40 -30
- data/docs/InlineObject.md +17 -0
- data/docs/InlineObject1.md +19 -0
- data/docs/InlineObject2.md +19 -0
- data/docs/MembersApi.md +50 -36
- data/docs/OperationsApi.md +20 -15
- data/docs/OrganizationsApi.md +11 -10
- 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/lib/yousign_client/api/authentications_api.rb +24 -87
- data/lib/yousign_client/api/check_documents_api.rb +16 -58
- data/lib/yousign_client/api/consent_processes_api.rb +32 -109
- data/lib/yousign_client/api/file_objects_api.rb +16 -58
- data/lib/yousign_client/api/files_api.rb +16 -58
- data/lib/yousign_client/api/members_api.rb +20 -69
- data/lib/yousign_client/api/operations_api.rb +8 -29
- data/lib/yousign_client/api/organizations_api.rb +4 -11
- data/lib/yousign_client/api/procedures_api.rb +36 -127
- data/lib/yousign_client/api/server_stamps_api.rb +8 -29
- data/lib/yousign_client/api/signature_u_is_api.rb +40 -152
- data/lib/yousign_client/api/user_groups_api.rb +8 -22
- data/lib/yousign_client/api/users_api.rb +20 -69
- data/lib/yousign_client/api/workspaces_api.rb +4 -11
- data/lib/yousign_client/configuration.rb +1 -1
- data/lib/yousign_client/models/check_document_bank_accounts_output.rb +0 -15
- data/lib/yousign_client/models/check_document_identities_output.rb +0 -15
- data/lib/yousign_client/models/file_object_input.rb +0 -15
- data/lib/yousign_client/models/file_object_input_without_file_reference.rb +0 -15
- data/lib/yousign_client/models/file_object_output.rb +0 -30
- data/lib/yousign_client/models/file_object_output_without_file_reference.rb +0 -30
- data/lib/yousign_client/models/file_output.rb +0 -30
- data/lib/yousign_client/models/inwebo_user_request.rb +0 -15
- data/lib/yousign_client/models/member_input.rb +2 -2
- data/lib/yousign_client/models/member_output.rb +2 -17
- data/lib/yousign_client/models/organization_output.rb +0 -15
- data/lib/yousign_client/models/procedure_output.rb +0 -45
- data/lib/yousign_client/models/user_group.rb +0 -15
- data/lib/yousign_client/models/user_output.rb +0 -15
- data/lib/yousign_client/models/user_workspace_output.rb +0 -15
- data/lib/yousign_client/models/workspace_output.rb +0 -15
- data/lib/yousign_client/version.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 +1 -1
- data/yousign_openapi.json +53 -704
- metadata +7 -4
@@ -22,21 +22,19 @@ module YousignClient
|
|
22
22
|
# Delete a File Object
|
23
23
|
# Delete a File Object
|
24
24
|
# @param id
|
25
|
-
# @param authorization Authentication credentials for HTTP authentication
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @return [nil]
|
28
|
-
def file_objects_id_delete(id,
|
29
|
-
file_objects_id_delete_with_http_info(id,
|
27
|
+
def file_objects_id_delete(id, opts = {})
|
28
|
+
file_objects_id_delete_with_http_info(id, opts)
|
30
29
|
nil
|
31
30
|
end
|
32
31
|
|
33
32
|
# Delete a File Object
|
34
33
|
# Delete a File Object
|
35
34
|
# @param id
|
36
|
-
# @param authorization Authentication credentials for HTTP authentication
|
37
35
|
# @param [Hash] opts the optional parameters
|
38
36
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
39
|
-
def file_objects_id_delete_with_http_info(id,
|
37
|
+
def file_objects_id_delete_with_http_info(id, opts = {})
|
40
38
|
if @api_client.config.debugging
|
41
39
|
@api_client.config.logger.debug 'Calling API: FileObjectsApi.file_objects_id_delete ...'
|
42
40
|
end
|
@@ -44,10 +42,6 @@ module YousignClient
|
|
44
42
|
if @api_client.config.client_side_validation && id.nil?
|
45
43
|
fail ArgumentError, "Missing the required parameter 'id' when calling FileObjectsApi.file_objects_id_delete"
|
46
44
|
end
|
47
|
-
# verify the required parameter 'authorization' is set
|
48
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FileObjectsApi.file_objects_id_delete"
|
50
|
-
end
|
51
45
|
# resource path
|
52
46
|
local_var_path = '/file_objects/{id}'.sub('{' + 'id' + '}', id.to_s)
|
53
47
|
|
@@ -60,14 +54,13 @@ module YousignClient
|
|
60
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
55
|
# HTTP header 'Content-Type'
|
62
56
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
-
header_params[:'Authorization'] = authorization
|
64
57
|
|
65
58
|
# form parameters
|
66
59
|
form_params = {}
|
67
60
|
|
68
61
|
# http body (model)
|
69
62
|
post_body = nil
|
70
|
-
auth_names = []
|
63
|
+
auth_names = ['api_key']
|
71
64
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
72
65
|
:header_params => header_params,
|
73
66
|
:query_params => query_params,
|
@@ -82,21 +75,19 @@ module YousignClient
|
|
82
75
|
# Find a File Object by ID
|
83
76
|
# Get a File Object
|
84
77
|
# @param id
|
85
|
-
# @param authorization Authentication credentials for HTTP authentication
|
86
78
|
# @param [Hash] opts the optional parameters
|
87
79
|
# @return [FileObjectOutput]
|
88
|
-
def file_objects_id_get(id,
|
89
|
-
data, _status_code, _headers = file_objects_id_get_with_http_info(id,
|
80
|
+
def file_objects_id_get(id, opts = {})
|
81
|
+
data, _status_code, _headers = file_objects_id_get_with_http_info(id, opts)
|
90
82
|
data
|
91
83
|
end
|
92
84
|
|
93
85
|
# Find a File Object by ID
|
94
86
|
# Get a File Object
|
95
87
|
# @param id
|
96
|
-
# @param authorization Authentication credentials for HTTP authentication
|
97
88
|
# @param [Hash] opts the optional parameters
|
98
89
|
# @return [Array<(FileObjectOutput, Fixnum, Hash)>] FileObjectOutput data, response status code and response headers
|
99
|
-
def file_objects_id_get_with_http_info(id,
|
90
|
+
def file_objects_id_get_with_http_info(id, opts = {})
|
100
91
|
if @api_client.config.debugging
|
101
92
|
@api_client.config.logger.debug 'Calling API: FileObjectsApi.file_objects_id_get ...'
|
102
93
|
end
|
@@ -104,10 +95,6 @@ module YousignClient
|
|
104
95
|
if @api_client.config.client_side_validation && id.nil?
|
105
96
|
fail ArgumentError, "Missing the required parameter 'id' when calling FileObjectsApi.file_objects_id_get"
|
106
97
|
end
|
107
|
-
# verify the required parameter 'authorization' is set
|
108
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
109
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FileObjectsApi.file_objects_id_get"
|
110
|
-
end
|
111
98
|
# resource path
|
112
99
|
local_var_path = '/file_objects/{id}'.sub('{' + 'id' + '}', id.to_s)
|
113
100
|
|
@@ -120,14 +107,13 @@ module YousignClient
|
|
120
107
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
121
108
|
# HTTP header 'Content-Type'
|
122
109
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
123
|
-
header_params[:'Authorization'] = authorization
|
124
110
|
|
125
111
|
# form parameters
|
126
112
|
form_params = {}
|
127
113
|
|
128
114
|
# http body (model)
|
129
115
|
post_body = nil
|
130
|
-
auth_names = []
|
116
|
+
auth_names = ['api_key']
|
131
117
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
132
118
|
:header_params => header_params,
|
133
119
|
:query_params => query_params,
|
@@ -143,25 +129,21 @@ module YousignClient
|
|
143
129
|
# Update a File Object
|
144
130
|
# Update a File Object
|
145
131
|
# @param id
|
146
|
-
# @param authorization Authentication credentials for HTTP authentication
|
147
|
-
# @param content_type The MIME type of the body of the request
|
148
132
|
# @param body
|
149
133
|
# @param [Hash] opts the optional parameters
|
150
134
|
# @return [FileObjectOutput]
|
151
|
-
def file_objects_id_put(id,
|
152
|
-
data, _status_code, _headers = file_objects_id_put_with_http_info(id,
|
135
|
+
def file_objects_id_put(id, body, opts = {})
|
136
|
+
data, _status_code, _headers = file_objects_id_put_with_http_info(id, body, opts)
|
153
137
|
data
|
154
138
|
end
|
155
139
|
|
156
140
|
# Update a File Object
|
157
141
|
# Update a File Object
|
158
142
|
# @param id
|
159
|
-
# @param authorization Authentication credentials for HTTP authentication
|
160
|
-
# @param content_type The MIME type of the body of the request
|
161
143
|
# @param body
|
162
144
|
# @param [Hash] opts the optional parameters
|
163
145
|
# @return [Array<(FileObjectOutput, Fixnum, Hash)>] FileObjectOutput data, response status code and response headers
|
164
|
-
def file_objects_id_put_with_http_info(id,
|
146
|
+
def file_objects_id_put_with_http_info(id, body, opts = {})
|
165
147
|
if @api_client.config.debugging
|
166
148
|
@api_client.config.logger.debug 'Calling API: FileObjectsApi.file_objects_id_put ...'
|
167
149
|
end
|
@@ -169,14 +151,6 @@ module YousignClient
|
|
169
151
|
if @api_client.config.client_side_validation && id.nil?
|
170
152
|
fail ArgumentError, "Missing the required parameter 'id' when calling FileObjectsApi.file_objects_id_put"
|
171
153
|
end
|
172
|
-
# verify the required parameter 'authorization' is set
|
173
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
174
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FileObjectsApi.file_objects_id_put"
|
175
|
-
end
|
176
|
-
# verify the required parameter 'content_type' is set
|
177
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
178
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling FileObjectsApi.file_objects_id_put"
|
179
|
-
end
|
180
154
|
# verify the required parameter 'body' is set
|
181
155
|
if @api_client.config.client_side_validation && body.nil?
|
182
156
|
fail ArgumentError, "Missing the required parameter 'body' when calling FileObjectsApi.file_objects_id_put"
|
@@ -191,15 +165,13 @@ module YousignClient
|
|
191
165
|
header_params = {}
|
192
166
|
# HTTP header 'Accept' (if needed)
|
193
167
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
194
|
-
header_params[:'Authorization'] = authorization
|
195
|
-
header_params[:'Content-Type'] = content_type
|
196
168
|
|
197
169
|
# form parameters
|
198
170
|
form_params = {}
|
199
171
|
|
200
172
|
# http body (model)
|
201
173
|
post_body = @api_client.object_to_http_body(body)
|
202
|
-
auth_names = []
|
174
|
+
auth_names = ['api_key']
|
203
175
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
204
176
|
:header_params => header_params,
|
205
177
|
:query_params => query_params,
|
@@ -214,35 +186,23 @@ module YousignClient
|
|
214
186
|
end
|
215
187
|
# Create a new File Object
|
216
188
|
# Create a new fileObject
|
217
|
-
# @param authorization Authentication credentials for HTTP authentication
|
218
|
-
# @param content_type The MIME type of the body of the request
|
219
189
|
# @param body
|
220
190
|
# @param [Hash] opts the optional parameters
|
221
191
|
# @return [FileObjectOutput]
|
222
|
-
def file_objects_post(
|
223
|
-
data, _status_code, _headers = file_objects_post_with_http_info(
|
192
|
+
def file_objects_post(body, opts = {})
|
193
|
+
data, _status_code, _headers = file_objects_post_with_http_info(body, opts)
|
224
194
|
data
|
225
195
|
end
|
226
196
|
|
227
197
|
# Create a new File Object
|
228
198
|
# Create a new fileObject
|
229
|
-
# @param authorization Authentication credentials for HTTP authentication
|
230
|
-
# @param content_type The MIME type of the body of the request
|
231
199
|
# @param body
|
232
200
|
# @param [Hash] opts the optional parameters
|
233
201
|
# @return [Array<(FileObjectOutput, Fixnum, Hash)>] FileObjectOutput data, response status code and response headers
|
234
|
-
def file_objects_post_with_http_info(
|
202
|
+
def file_objects_post_with_http_info(body, opts = {})
|
235
203
|
if @api_client.config.debugging
|
236
204
|
@api_client.config.logger.debug 'Calling API: FileObjectsApi.file_objects_post ...'
|
237
205
|
end
|
238
|
-
# verify the required parameter 'authorization' is set
|
239
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
240
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FileObjectsApi.file_objects_post"
|
241
|
-
end
|
242
|
-
# verify the required parameter 'content_type' is set
|
243
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
244
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling FileObjectsApi.file_objects_post"
|
245
|
-
end
|
246
206
|
# verify the required parameter 'body' is set
|
247
207
|
if @api_client.config.client_side_validation && body.nil?
|
248
208
|
fail ArgumentError, "Missing the required parameter 'body' when calling FileObjectsApi.file_objects_post"
|
@@ -257,15 +217,13 @@ module YousignClient
|
|
257
217
|
header_params = {}
|
258
218
|
# HTTP header 'Accept' (if needed)
|
259
219
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
|
-
header_params[:'Authorization'] = authorization
|
261
|
-
header_params[:'Content-Type'] = content_type
|
262
220
|
|
263
221
|
# form parameters
|
264
222
|
form_params = {}
|
265
223
|
|
266
224
|
# http body (model)
|
267
225
|
post_body = @api_client.object_to_http_body(body)
|
268
|
-
auth_names = []
|
226
|
+
auth_names = ['api_key']
|
269
227
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
270
228
|
:header_params => header_params,
|
271
229
|
:query_params => query_params,
|
@@ -22,21 +22,19 @@ module YousignClient
|
|
22
22
|
# Download a File
|
23
23
|
# Used to get the base64 content of a file
|
24
24
|
# @param id
|
25
|
-
# @param authorization Authentication credentials for HTTP authentication
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @return [String]
|
28
|
-
def files_id_download_get(id,
|
29
|
-
data, _status_code, _headers = files_id_download_get_with_http_info(id,
|
27
|
+
def files_id_download_get(id, opts = {})
|
28
|
+
data, _status_code, _headers = files_id_download_get_with_http_info(id, opts)
|
30
29
|
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Download a File
|
34
33
|
# Used to get the base64 content of a file
|
35
34
|
# @param id
|
36
|
-
# @param authorization Authentication credentials for HTTP authentication
|
37
35
|
# @param [Hash] opts the optional parameters
|
38
36
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
39
|
-
def files_id_download_get_with_http_info(id,
|
37
|
+
def files_id_download_get_with_http_info(id, opts = {})
|
40
38
|
if @api_client.config.debugging
|
41
39
|
@api_client.config.logger.debug 'Calling API: FilesApi.files_id_download_get ...'
|
42
40
|
end
|
@@ -44,10 +42,6 @@ module YousignClient
|
|
44
42
|
if @api_client.config.client_side_validation && id.nil?
|
45
43
|
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.files_id_download_get"
|
46
44
|
end
|
47
|
-
# verify the required parameter 'authorization' is set
|
48
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FilesApi.files_id_download_get"
|
50
|
-
end
|
51
45
|
# resource path
|
52
46
|
local_var_path = '/files/{id}/download'.sub('{' + 'id' + '}', id.to_s)
|
53
47
|
|
@@ -60,14 +54,13 @@ module YousignClient
|
|
60
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
55
|
# HTTP header 'Content-Type'
|
62
56
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
-
header_params[:'Authorization'] = authorization
|
64
57
|
|
65
58
|
# form parameters
|
66
59
|
form_params = {}
|
67
60
|
|
68
61
|
# http body (model)
|
69
62
|
post_body = nil
|
70
|
-
auth_names = []
|
63
|
+
auth_names = ['api_key']
|
71
64
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
72
65
|
:header_params => header_params,
|
73
66
|
:query_params => query_params,
|
@@ -83,23 +76,19 @@ module YousignClient
|
|
83
76
|
# Duplicate a File
|
84
77
|
# Duplicate a file. It will be create a clone of this file, with a new ID.
|
85
78
|
# @param id
|
86
|
-
# @param authorization Authentication credentials for HTTP authentication
|
87
|
-
# @param content_type The MIME type of the body of the request
|
88
79
|
# @param [Hash] opts the optional parameters
|
89
80
|
# @return [FileOutput]
|
90
|
-
def files_id_duplicate_post(id,
|
91
|
-
data, _status_code, _headers = files_id_duplicate_post_with_http_info(id,
|
81
|
+
def files_id_duplicate_post(id, opts = {})
|
82
|
+
data, _status_code, _headers = files_id_duplicate_post_with_http_info(id, opts)
|
92
83
|
data
|
93
84
|
end
|
94
85
|
|
95
86
|
# Duplicate a File
|
96
87
|
# Duplicate a file. It will be create a clone of this file, with a new ID.
|
97
88
|
# @param id
|
98
|
-
# @param authorization Authentication credentials for HTTP authentication
|
99
|
-
# @param content_type The MIME type of the body of the request
|
100
89
|
# @param [Hash] opts the optional parameters
|
101
90
|
# @return [Array<(FileOutput, Fixnum, Hash)>] FileOutput data, response status code and response headers
|
102
|
-
def files_id_duplicate_post_with_http_info(id,
|
91
|
+
def files_id_duplicate_post_with_http_info(id, opts = {})
|
103
92
|
if @api_client.config.debugging
|
104
93
|
@api_client.config.logger.debug 'Calling API: FilesApi.files_id_duplicate_post ...'
|
105
94
|
end
|
@@ -107,14 +96,6 @@ module YousignClient
|
|
107
96
|
if @api_client.config.client_side_validation && id.nil?
|
108
97
|
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.files_id_duplicate_post"
|
109
98
|
end
|
110
|
-
# verify the required parameter 'authorization' is set
|
111
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
112
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FilesApi.files_id_duplicate_post"
|
113
|
-
end
|
114
|
-
# verify the required parameter 'content_type' is set
|
115
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
116
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling FilesApi.files_id_duplicate_post"
|
117
|
-
end
|
118
99
|
# resource path
|
119
100
|
local_var_path = '/files/{id}/duplicate'.sub('{' + 'id' + '}', id.to_s)
|
120
101
|
|
@@ -127,15 +108,13 @@ module YousignClient
|
|
127
108
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
109
|
# HTTP header 'Content-Type'
|
129
110
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
130
|
-
header_params[:'Authorization'] = authorization
|
131
|
-
header_params[:'Content-Type'] = content_type
|
132
111
|
|
133
112
|
# form parameters
|
134
113
|
form_params = {}
|
135
114
|
|
136
115
|
# http body (model)
|
137
116
|
post_body = nil
|
138
|
-
auth_names = []
|
117
|
+
auth_names = ['api_key']
|
139
118
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
119
|
:header_params => header_params,
|
141
120
|
:query_params => query_params,
|
@@ -151,21 +130,19 @@ module YousignClient
|
|
151
130
|
# Find a File by ID
|
152
131
|
# Returns all the information regarding the File but without its content (for performance issue).
|
153
132
|
# @param id
|
154
|
-
# @param authorization Authentication credentials for HTTP authentication
|
155
133
|
# @param [Hash] opts the optional parameters
|
156
134
|
# @return [FileOutput]
|
157
|
-
def files_id_get(id,
|
158
|
-
data, _status_code, _headers = files_id_get_with_http_info(id,
|
135
|
+
def files_id_get(id, opts = {})
|
136
|
+
data, _status_code, _headers = files_id_get_with_http_info(id, opts)
|
159
137
|
data
|
160
138
|
end
|
161
139
|
|
162
140
|
# Find a File by ID
|
163
141
|
# Returns all the information regarding the File but without its content (for performance issue).
|
164
142
|
# @param id
|
165
|
-
# @param authorization Authentication credentials for HTTP authentication
|
166
143
|
# @param [Hash] opts the optional parameters
|
167
144
|
# @return [Array<(FileOutput, Fixnum, Hash)>] FileOutput data, response status code and response headers
|
168
|
-
def files_id_get_with_http_info(id,
|
145
|
+
def files_id_get_with_http_info(id, opts = {})
|
169
146
|
if @api_client.config.debugging
|
170
147
|
@api_client.config.logger.debug 'Calling API: FilesApi.files_id_get ...'
|
171
148
|
end
|
@@ -173,10 +150,6 @@ module YousignClient
|
|
173
150
|
if @api_client.config.client_side_validation && id.nil?
|
174
151
|
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.files_id_get"
|
175
152
|
end
|
176
|
-
# verify the required parameter 'authorization' is set
|
177
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
178
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FilesApi.files_id_get"
|
179
|
-
end
|
180
153
|
# resource path
|
181
154
|
local_var_path = '/files/{id}'.sub('{' + 'id' + '}', id.to_s)
|
182
155
|
|
@@ -189,14 +162,13 @@ module YousignClient
|
|
189
162
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
190
163
|
# HTTP header 'Content-Type'
|
191
164
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
192
|
-
header_params[:'Authorization'] = authorization
|
193
165
|
|
194
166
|
# form parameters
|
195
167
|
form_params = {}
|
196
168
|
|
197
169
|
# http body (model)
|
198
170
|
post_body = nil
|
199
|
-
auth_names = []
|
171
|
+
auth_names = ['api_key']
|
200
172
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
201
173
|
:header_params => header_params,
|
202
174
|
:query_params => query_params,
|
@@ -211,35 +183,23 @@ module YousignClient
|
|
211
183
|
end
|
212
184
|
# Create a new File
|
213
185
|
# Used to upload a file in base64 on our platform
|
214
|
-
# @param authorization Authentication credentials for HTTP authentication
|
215
|
-
# @param content_type The MIME type of the body of the request
|
216
186
|
# @param body
|
217
187
|
# @param [Hash] opts the optional parameters
|
218
188
|
# @return [FileOutput]
|
219
|
-
def files_post(
|
220
|
-
data, _status_code, _headers = files_post_with_http_info(
|
189
|
+
def files_post(body, opts = {})
|
190
|
+
data, _status_code, _headers = files_post_with_http_info(body, opts)
|
221
191
|
data
|
222
192
|
end
|
223
193
|
|
224
194
|
# Create a new File
|
225
195
|
# Used to upload a file in base64 on our platform
|
226
|
-
# @param authorization Authentication credentials for HTTP authentication
|
227
|
-
# @param content_type The MIME type of the body of the request
|
228
196
|
# @param body
|
229
197
|
# @param [Hash] opts the optional parameters
|
230
198
|
# @return [Array<(FileOutput, Fixnum, Hash)>] FileOutput data, response status code and response headers
|
231
|
-
def files_post_with_http_info(
|
199
|
+
def files_post_with_http_info(body, opts = {})
|
232
200
|
if @api_client.config.debugging
|
233
201
|
@api_client.config.logger.debug 'Calling API: FilesApi.files_post ...'
|
234
202
|
end
|
235
|
-
# verify the required parameter 'authorization' is set
|
236
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
237
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling FilesApi.files_post"
|
238
|
-
end
|
239
|
-
# verify the required parameter 'content_type' is set
|
240
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
241
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling FilesApi.files_post"
|
242
|
-
end
|
243
203
|
# verify the required parameter 'body' is set
|
244
204
|
if @api_client.config.client_side_validation && body.nil?
|
245
205
|
fail ArgumentError, "Missing the required parameter 'body' when calling FilesApi.files_post"
|
@@ -254,15 +214,13 @@ module YousignClient
|
|
254
214
|
header_params = {}
|
255
215
|
# HTTP header 'Accept' (if needed)
|
256
216
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
257
|
-
header_params[:'Authorization'] = authorization
|
258
|
-
header_params[:'Content-Type'] = content_type
|
259
217
|
|
260
218
|
# form parameters
|
261
219
|
form_params = {}
|
262
220
|
|
263
221
|
# http body (model)
|
264
222
|
post_body = @api_client.object_to_http_body(body)
|
265
|
-
auth_names = []
|
223
|
+
auth_names = ['api_key']
|
266
224
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
267
225
|
:header_params => header_params,
|
268
226
|
:query_params => query_params,
|
@@ -21,29 +21,23 @@ module YousignClient
|
|
21
21
|
end
|
22
22
|
# Get all Members
|
23
23
|
# Returns the list of Members of a organization. It only usefull if you use the query params named \"procedure\" for retrieve all members of a procedure.
|
24
|
-
# @param authorization Authentication credentials for HTTP authentication
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
25
|
# @option opts [String] :procedure
|
27
26
|
# @return [Array<MemberOutput>]
|
28
|
-
def members_get(
|
29
|
-
data, _status_code, _headers = members_get_with_http_info(
|
27
|
+
def members_get(opts = {})
|
28
|
+
data, _status_code, _headers = members_get_with_http_info(opts)
|
30
29
|
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Get all Members
|
34
33
|
# Returns the list of Members of a organization. It only usefull if you use the query params named \"procedure\" for retrieve all members of a procedure.
|
35
|
-
# @param authorization Authentication credentials for HTTP authentication
|
36
34
|
# @param [Hash] opts the optional parameters
|
37
35
|
# @option opts [String] :procedure
|
38
36
|
# @return [Array<(Array<MemberOutput>, Fixnum, Hash)>] Array<MemberOutput> data, response status code and response headers
|
39
|
-
def members_get_with_http_info(
|
37
|
+
def members_get_with_http_info(opts = {})
|
40
38
|
if @api_client.config.debugging
|
41
39
|
@api_client.config.logger.debug 'Calling API: MembersApi.members_get ...'
|
42
40
|
end
|
43
|
-
# verify the required parameter 'authorization' is set
|
44
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_get"
|
46
|
-
end
|
47
41
|
# resource path
|
48
42
|
local_var_path = '/members'
|
49
43
|
|
@@ -57,14 +51,13 @@ module YousignClient
|
|
57
51
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
58
52
|
# HTTP header 'Content-Type'
|
59
53
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
60
|
-
header_params[:'Authorization'] = authorization
|
61
54
|
|
62
55
|
# form parameters
|
63
56
|
form_params = {}
|
64
57
|
|
65
58
|
# http body (model)
|
66
59
|
post_body = nil
|
67
|
-
auth_names = []
|
60
|
+
auth_names = ['api_key']
|
68
61
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
69
62
|
:header_params => header_params,
|
70
63
|
:query_params => query_params,
|
@@ -80,21 +73,19 @@ module YousignClient
|
|
80
73
|
# Delete a Member
|
81
74
|
# Delete a member
|
82
75
|
# @param id
|
83
|
-
# @param authorization Authentication credentials for HTTP authentication
|
84
76
|
# @param [Hash] opts the optional parameters
|
85
77
|
# @return [nil]
|
86
|
-
def members_id_delete(id,
|
87
|
-
members_id_delete_with_http_info(id,
|
78
|
+
def members_id_delete(id, opts = {})
|
79
|
+
members_id_delete_with_http_info(id, opts)
|
88
80
|
nil
|
89
81
|
end
|
90
82
|
|
91
83
|
# Delete a Member
|
92
84
|
# Delete a member
|
93
85
|
# @param id
|
94
|
-
# @param authorization Authentication credentials for HTTP authentication
|
95
86
|
# @param [Hash] opts the optional parameters
|
96
87
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
97
|
-
def members_id_delete_with_http_info(id,
|
88
|
+
def members_id_delete_with_http_info(id, opts = {})
|
98
89
|
if @api_client.config.debugging
|
99
90
|
@api_client.config.logger.debug 'Calling API: MembersApi.members_id_delete ...'
|
100
91
|
end
|
@@ -102,10 +93,6 @@ module YousignClient
|
|
102
93
|
if @api_client.config.client_side_validation && id.nil?
|
103
94
|
fail ArgumentError, "Missing the required parameter 'id' when calling MembersApi.members_id_delete"
|
104
95
|
end
|
105
|
-
# verify the required parameter 'authorization' is set
|
106
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_id_delete"
|
108
|
-
end
|
109
96
|
# resource path
|
110
97
|
local_var_path = '/members/{id}'.sub('{' + 'id' + '}', id.to_s)
|
111
98
|
|
@@ -118,14 +105,13 @@ module YousignClient
|
|
118
105
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
119
106
|
# HTTP header 'Content-Type'
|
120
107
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
121
|
-
header_params[:'Authorization'] = authorization
|
122
108
|
|
123
109
|
# form parameters
|
124
110
|
form_params = {}
|
125
111
|
|
126
112
|
# http body (model)
|
127
113
|
post_body = nil
|
128
|
-
auth_names = []
|
114
|
+
auth_names = ['api_key']
|
129
115
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
130
116
|
:header_params => header_params,
|
131
117
|
:query_params => query_params,
|
@@ -140,21 +126,19 @@ module YousignClient
|
|
140
126
|
# Get a proof file of a Member
|
141
127
|
# Get a proof file of a member
|
142
128
|
# @param id
|
143
|
-
# @param authorization Authentication credentials for HTTP authentication
|
144
129
|
# @param [Hash] opts the optional parameters
|
145
130
|
# @return [String]
|
146
|
-
def members_id_proof_get(id,
|
147
|
-
data, _status_code, _headers = members_id_proof_get_with_http_info(id,
|
131
|
+
def members_id_proof_get(id, opts = {})
|
132
|
+
data, _status_code, _headers = members_id_proof_get_with_http_info(id, opts)
|
148
133
|
data
|
149
134
|
end
|
150
135
|
|
151
136
|
# Get a proof file of a Member
|
152
137
|
# Get a proof file of a member
|
153
138
|
# @param id
|
154
|
-
# @param authorization Authentication credentials for HTTP authentication
|
155
139
|
# @param [Hash] opts the optional parameters
|
156
140
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
157
|
-
def members_id_proof_get_with_http_info(id,
|
141
|
+
def members_id_proof_get_with_http_info(id, opts = {})
|
158
142
|
if @api_client.config.debugging
|
159
143
|
@api_client.config.logger.debug 'Calling API: MembersApi.members_id_proof_get ...'
|
160
144
|
end
|
@@ -162,10 +146,6 @@ module YousignClient
|
|
162
146
|
if @api_client.config.client_side_validation && id.nil?
|
163
147
|
fail ArgumentError, "Missing the required parameter 'id' when calling MembersApi.members_id_proof_get"
|
164
148
|
end
|
165
|
-
# verify the required parameter 'authorization' is set
|
166
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
167
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_id_proof_get"
|
168
|
-
end
|
169
149
|
# resource path
|
170
150
|
local_var_path = '/members/{id}/proof'.sub('{' + 'id' + '}', id.to_s)
|
171
151
|
|
@@ -178,14 +158,13 @@ module YousignClient
|
|
178
158
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
179
159
|
# HTTP header 'Content-Type'
|
180
160
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
181
|
-
header_params[:'Authorization'] = authorization
|
182
161
|
|
183
162
|
# form parameters
|
184
163
|
form_params = {}
|
185
164
|
|
186
165
|
# http body (model)
|
187
166
|
post_body = nil
|
188
|
-
auth_names = []
|
167
|
+
auth_names = ['api_key']
|
189
168
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
190
169
|
:header_params => header_params,
|
191
170
|
:query_params => query_params,
|
@@ -201,25 +180,21 @@ module YousignClient
|
|
201
180
|
# Edit a Member
|
202
181
|
# Edit a member
|
203
182
|
# @param id
|
204
|
-
# @param authorization Authentication credentials for HTTP authentication
|
205
|
-
# @param content_type The MIME type of the body of the request
|
206
183
|
# @param body
|
207
184
|
# @param [Hash] opts the optional parameters
|
208
185
|
# @return [MemberOutput]
|
209
|
-
def members_id_put(id,
|
210
|
-
data, _status_code, _headers = members_id_put_with_http_info(id,
|
186
|
+
def members_id_put(id, body, opts = {})
|
187
|
+
data, _status_code, _headers = members_id_put_with_http_info(id, body, opts)
|
211
188
|
data
|
212
189
|
end
|
213
190
|
|
214
191
|
# Edit a Member
|
215
192
|
# Edit a member
|
216
193
|
# @param id
|
217
|
-
# @param authorization Authentication credentials for HTTP authentication
|
218
|
-
# @param content_type The MIME type of the body of the request
|
219
194
|
# @param body
|
220
195
|
# @param [Hash] opts the optional parameters
|
221
196
|
# @return [Array<(MemberOutput, Fixnum, Hash)>] MemberOutput data, response status code and response headers
|
222
|
-
def members_id_put_with_http_info(id,
|
197
|
+
def members_id_put_with_http_info(id, body, opts = {})
|
223
198
|
if @api_client.config.debugging
|
224
199
|
@api_client.config.logger.debug 'Calling API: MembersApi.members_id_put ...'
|
225
200
|
end
|
@@ -227,14 +202,6 @@ module YousignClient
|
|
227
202
|
if @api_client.config.client_side_validation && id.nil?
|
228
203
|
fail ArgumentError, "Missing the required parameter 'id' when calling MembersApi.members_id_put"
|
229
204
|
end
|
230
|
-
# verify the required parameter 'authorization' is set
|
231
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
232
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_id_put"
|
233
|
-
end
|
234
|
-
# verify the required parameter 'content_type' is set
|
235
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
236
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling MembersApi.members_id_put"
|
237
|
-
end
|
238
205
|
# verify the required parameter 'body' is set
|
239
206
|
if @api_client.config.client_side_validation && body.nil?
|
240
207
|
fail ArgumentError, "Missing the required parameter 'body' when calling MembersApi.members_id_put"
|
@@ -249,15 +216,13 @@ module YousignClient
|
|
249
216
|
header_params = {}
|
250
217
|
# HTTP header 'Accept' (if needed)
|
251
218
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
252
|
-
header_params[:'Authorization'] = authorization
|
253
|
-
header_params[:'Content-Type'] = content_type
|
254
219
|
|
255
220
|
# form parameters
|
256
221
|
form_params = {}
|
257
222
|
|
258
223
|
# http body (model)
|
259
224
|
post_body = @api_client.object_to_http_body(body)
|
260
|
-
auth_names = []
|
225
|
+
auth_names = ['api_key']
|
261
226
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
262
227
|
:header_params => header_params,
|
263
228
|
:query_params => query_params,
|
@@ -272,35 +237,23 @@ module YousignClient
|
|
272
237
|
end
|
273
238
|
# Create a new Member
|
274
239
|
# Create a new member
|
275
|
-
# @param authorization Authentication credentials for HTTP authentication
|
276
|
-
# @param content_type The MIME type of the body of the request
|
277
240
|
# @param body
|
278
241
|
# @param [Hash] opts the optional parameters
|
279
242
|
# @return [MemberOutput]
|
280
|
-
def members_post(
|
281
|
-
data, _status_code, _headers = members_post_with_http_info(
|
243
|
+
def members_post(body, opts = {})
|
244
|
+
data, _status_code, _headers = members_post_with_http_info(body, opts)
|
282
245
|
data
|
283
246
|
end
|
284
247
|
|
285
248
|
# Create a new Member
|
286
249
|
# Create a new member
|
287
|
-
# @param authorization Authentication credentials for HTTP authentication
|
288
|
-
# @param content_type The MIME type of the body of the request
|
289
250
|
# @param body
|
290
251
|
# @param [Hash] opts the optional parameters
|
291
252
|
# @return [Array<(MemberOutput, Fixnum, Hash)>] MemberOutput data, response status code and response headers
|
292
|
-
def members_post_with_http_info(
|
253
|
+
def members_post_with_http_info(body, opts = {})
|
293
254
|
if @api_client.config.debugging
|
294
255
|
@api_client.config.logger.debug 'Calling API: MembersApi.members_post ...'
|
295
256
|
end
|
296
|
-
# verify the required parameter 'authorization' is set
|
297
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
298
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_post"
|
299
|
-
end
|
300
|
-
# verify the required parameter 'content_type' is set
|
301
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
302
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling MembersApi.members_post"
|
303
|
-
end
|
304
257
|
# verify the required parameter 'body' is set
|
305
258
|
if @api_client.config.client_side_validation && body.nil?
|
306
259
|
fail ArgumentError, "Missing the required parameter 'body' when calling MembersApi.members_post"
|
@@ -315,15 +268,13 @@ module YousignClient
|
|
315
268
|
header_params = {}
|
316
269
|
# HTTP header 'Accept' (if needed)
|
317
270
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
|
-
header_params[:'Authorization'] = authorization
|
319
|
-
header_params[:'Content-Type'] = content_type
|
320
271
|
|
321
272
|
# form parameters
|
322
273
|
form_params = {}
|
323
274
|
|
324
275
|
# http body (model)
|
325
276
|
post_body = @api_client.object_to_http_body(body)
|
326
|
-
auth_names = []
|
277
|
+
auth_names = ['api_key']
|
327
278
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
328
279
|
:header_params => header_params,
|
329
280
|
:query_params => query_params,
|