yousign_client 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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
@@ -21,20 +21,18 @@ module YousignClient
|
|
21
21
|
end
|
22
22
|
# Find an Operation by ID
|
23
23
|
# @param id
|
24
|
-
# @param authorization Authentication credentials for HTTP authentication
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
25
|
# @return [OperationOutput]
|
27
|
-
def operations_id_get(id,
|
28
|
-
data, _status_code, _headers = operations_id_get_with_http_info(id,
|
26
|
+
def operations_id_get(id, opts = {})
|
27
|
+
data, _status_code, _headers = operations_id_get_with_http_info(id, opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
31
|
# Find an Operation by ID
|
33
32
|
# @param id
|
34
|
-
# @param authorization Authentication credentials for HTTP authentication
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(OperationOutput, Fixnum, Hash)>] OperationOutput data, response status code and response headers
|
37
|
-
def operations_id_get_with_http_info(id,
|
35
|
+
def operations_id_get_with_http_info(id, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: OperationsApi.operations_id_get ...'
|
40
38
|
end
|
@@ -42,10 +40,6 @@ module YousignClient
|
|
42
40
|
if @api_client.config.client_side_validation && id.nil?
|
43
41
|
fail ArgumentError, "Missing the required parameter 'id' when calling OperationsApi.operations_id_get"
|
44
42
|
end
|
45
|
-
# verify the required parameter 'authorization' is set
|
46
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling OperationsApi.operations_id_get"
|
48
|
-
end
|
49
43
|
# resource path
|
50
44
|
local_var_path = '/operations/{id}'.sub('{' + 'id' + '}', id.to_s)
|
51
45
|
|
@@ -58,14 +52,13 @@ module YousignClient
|
|
58
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
53
|
# HTTP header 'Content-Type'
|
60
54
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
61
|
-
header_params[:'Authorization'] = authorization
|
62
55
|
|
63
56
|
# form parameters
|
64
57
|
form_params = {}
|
65
58
|
|
66
59
|
# http body (model)
|
67
60
|
post_body = nil
|
68
|
-
auth_names = []
|
61
|
+
auth_names = ['api_key']
|
69
62
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
70
63
|
:header_params => header_params,
|
71
64
|
:query_params => query_params,
|
@@ -79,34 +72,22 @@ module YousignClient
|
|
79
72
|
return data, status_code, headers
|
80
73
|
end
|
81
74
|
# Create a new Operation
|
82
|
-
# @param authorization Authentication credentials for HTTP authentication
|
83
|
-
# @param content_type The MIME type of the body of the request
|
84
75
|
# @param body
|
85
76
|
# @param [Hash] opts the optional parameters
|
86
77
|
# @return [OperationOutput]
|
87
|
-
def operations_post(
|
88
|
-
data, _status_code, _headers = operations_post_with_http_info(
|
78
|
+
def operations_post(body, opts = {})
|
79
|
+
data, _status_code, _headers = operations_post_with_http_info(body, opts)
|
89
80
|
data
|
90
81
|
end
|
91
82
|
|
92
83
|
# Create a new Operation
|
93
|
-
# @param authorization Authentication credentials for HTTP authentication
|
94
|
-
# @param content_type The MIME type of the body of the request
|
95
84
|
# @param body
|
96
85
|
# @param [Hash] opts the optional parameters
|
97
86
|
# @return [Array<(OperationOutput, Fixnum, Hash)>] OperationOutput data, response status code and response headers
|
98
|
-
def operations_post_with_http_info(
|
87
|
+
def operations_post_with_http_info(body, opts = {})
|
99
88
|
if @api_client.config.debugging
|
100
89
|
@api_client.config.logger.debug 'Calling API: OperationsApi.operations_post ...'
|
101
90
|
end
|
102
|
-
# verify the required parameter 'authorization' is set
|
103
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
104
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling OperationsApi.operations_post"
|
105
|
-
end
|
106
|
-
# verify the required parameter 'content_type' is set
|
107
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
108
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling OperationsApi.operations_post"
|
109
|
-
end
|
110
91
|
# verify the required parameter 'body' is set
|
111
92
|
if @api_client.config.client_side_validation && body.nil?
|
112
93
|
fail ArgumentError, "Missing the required parameter 'body' when calling OperationsApi.operations_post"
|
@@ -123,15 +104,13 @@ module YousignClient
|
|
123
104
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
105
|
# HTTP header 'Content-Type'
|
125
106
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
126
|
-
header_params[:'Authorization'] = authorization
|
127
|
-
header_params[:'Content-Type'] = content_type
|
128
107
|
|
129
108
|
# form parameters
|
130
109
|
form_params = {}
|
131
110
|
|
132
111
|
# http body (model)
|
133
112
|
post_body = @api_client.object_to_http_body(body)
|
134
|
-
auth_names = []
|
113
|
+
auth_names = ['api_key']
|
135
114
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
136
115
|
:header_params => header_params,
|
137
116
|
:query_params => query_params,
|
@@ -20,26 +20,20 @@ module YousignClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# List all Organizations
|
23
|
-
# @param authorization Authentication credentials for HTTP authentication
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [Array<OrganizationOutput>]
|
26
|
-
def organizations_get(
|
27
|
-
data, _status_code, _headers = organizations_get_with_http_info(
|
25
|
+
def organizations_get(opts = {})
|
26
|
+
data, _status_code, _headers = organizations_get_with_http_info(opts)
|
28
27
|
data
|
29
28
|
end
|
30
29
|
|
31
30
|
# List all Organizations
|
32
|
-
# @param authorization Authentication credentials for HTTP authentication
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(Array<OrganizationOutput>, Fixnum, Hash)>] Array<OrganizationOutput> data, response status code and response headers
|
35
|
-
def organizations_get_with_http_info(
|
33
|
+
def organizations_get_with_http_info(opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_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 OrganizationsApi.organizations_get"
|
42
|
-
end
|
43
37
|
# resource path
|
44
38
|
local_var_path = '/organizations'
|
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,
|
@@ -20,7 +20,6 @@ module YousignClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Export Procedure list
|
23
|
-
# @param authorization Authentication credentials for HTTP authentication
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @option opts [String] :status Return Procedure list based on the status for each Procedure
|
26
25
|
# @option opts [String] :name Filter by name (contains)
|
@@ -35,13 +34,12 @@ module YousignClient
|
|
35
34
|
# @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]=2017-09-18 deletedAt[before]=2017-09-18 deletedAt[strictly_after]=2017-09-18 deletedAt[strictly_before]=2017-09-18
|
36
35
|
# @option opts [String] :order_created_at Order by attribut
|
37
36
|
# @return [String]
|
38
|
-
def export_procedures_get(
|
39
|
-
data, _status_code, _headers = export_procedures_get_with_http_info(
|
37
|
+
def export_procedures_get(opts = {})
|
38
|
+
data, _status_code, _headers = export_procedures_get_with_http_info(opts)
|
40
39
|
data
|
41
40
|
end
|
42
41
|
|
43
42
|
# Export Procedure list
|
44
|
-
# @param authorization Authentication credentials for HTTP authentication
|
45
43
|
# @param [Hash] opts the optional parameters
|
46
44
|
# @option opts [String] :status Return Procedure list based on the status for each Procedure
|
47
45
|
# @option opts [String] :name Filter by name (contains)
|
@@ -56,14 +54,10 @@ module YousignClient
|
|
56
54
|
# @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]=2017-09-18 deletedAt[before]=2017-09-18 deletedAt[strictly_after]=2017-09-18 deletedAt[strictly_before]=2017-09-18
|
57
55
|
# @option opts [String] :order_created_at Order by attribut
|
58
56
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
59
|
-
def export_procedures_get_with_http_info(
|
57
|
+
def export_procedures_get_with_http_info(opts = {})
|
60
58
|
if @api_client.config.debugging
|
61
59
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.export_procedures_get ...'
|
62
60
|
end
|
63
|
-
# verify the required parameter 'authorization' is set
|
64
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
65
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.export_procedures_get"
|
66
|
-
end
|
67
61
|
if @api_client.config.client_side_validation && opts[:'status'] && !['active', 'finished', 'expired', 'refused', 'draft'].include?(opts[:'status'])
|
68
62
|
fail ArgumentError, 'invalid value for "status", must be one of active, finished, expired, refused, draft'
|
69
63
|
end
|
@@ -94,14 +88,13 @@ module YousignClient
|
|
94
88
|
header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
|
95
89
|
# HTTP header 'Content-Type'
|
96
90
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
97
|
-
header_params[:'Authorization'] = authorization
|
98
91
|
|
99
92
|
# form parameters
|
100
93
|
form_params = {}
|
101
94
|
|
102
95
|
# http body (model)
|
103
96
|
post_body = nil
|
104
|
-
auth_names = []
|
97
|
+
auth_names = ['api_key']
|
105
98
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
106
99
|
:header_params => header_params,
|
107
100
|
:query_params => query_params,
|
@@ -115,7 +108,6 @@ module YousignClient
|
|
115
108
|
return data, status_code, headers
|
116
109
|
end
|
117
110
|
# Get Procedure list
|
118
|
-
# @param authorization Authentication credentials for HTTP authentication
|
119
111
|
# @param [Hash] opts the optional parameters
|
120
112
|
# @option opts [String] :status Return Procedure list based on the status for each Procedure
|
121
113
|
# @option opts [BOOLEAN] :template Used to get Procedure template list (default to false)
|
@@ -135,13 +127,12 @@ module YousignClient
|
|
135
127
|
# @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]=2017-09-18 deletedAt[before]=2017-09-18 deletedAt[strictly_after]=2017-09-18 deletedAt[strictly_before]=2017-09-18
|
136
128
|
# @option opts [String] :order_created_at Order by createdAt order[createdAt]=asc order[createdAt]=desc
|
137
129
|
# @return [Array<ProcedureOutput>]
|
138
|
-
def procedures_get(
|
139
|
-
data, _status_code, _headers = procedures_get_with_http_info(
|
130
|
+
def procedures_get(opts = {})
|
131
|
+
data, _status_code, _headers = procedures_get_with_http_info(opts)
|
140
132
|
data
|
141
133
|
end
|
142
134
|
|
143
135
|
# Get Procedure list
|
144
|
-
# @param authorization Authentication credentials for HTTP authentication
|
145
136
|
# @param [Hash] opts the optional parameters
|
146
137
|
# @option opts [String] :status Return Procedure list based on the status for each Procedure
|
147
138
|
# @option opts [BOOLEAN] :template Used to get Procedure template list
|
@@ -161,14 +152,10 @@ module YousignClient
|
|
161
152
|
# @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]=2017-09-18 deletedAt[before]=2017-09-18 deletedAt[strictly_after]=2017-09-18 deletedAt[strictly_before]=2017-09-18
|
162
153
|
# @option opts [String] :order_created_at Order by createdAt order[createdAt]=asc order[createdAt]=desc
|
163
154
|
# @return [Array<(Array<ProcedureOutput>, Fixnum, Hash)>] Array<ProcedureOutput> data, response status code and response headers
|
164
|
-
def procedures_get_with_http_info(
|
155
|
+
def procedures_get_with_http_info(opts = {})
|
165
156
|
if @api_client.config.debugging
|
166
157
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_get ...'
|
167
158
|
end
|
168
|
-
# verify the required parameter 'authorization' is set
|
169
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_get"
|
171
|
-
end
|
172
159
|
if @api_client.config.client_side_validation && opts[:'status'] && !['active', 'finished', 'expired', 'refused', 'draft'].include?(opts[:'status'])
|
173
160
|
fail ArgumentError, 'invalid value for "status", must be one of active, finished, expired, refused, draft'
|
174
161
|
end
|
@@ -204,14 +191,13 @@ module YousignClient
|
|
204
191
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
205
192
|
# HTTP header 'Content-Type'
|
206
193
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
207
|
-
header_params[:'Authorization'] = authorization
|
208
194
|
|
209
195
|
# form parameters
|
210
196
|
form_params = {}
|
211
197
|
|
212
198
|
# http body (model)
|
213
199
|
post_body = nil
|
214
|
-
auth_names = []
|
200
|
+
auth_names = ['api_key']
|
215
201
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
216
202
|
:header_params => header_params,
|
217
203
|
:query_params => query_params,
|
@@ -226,20 +212,18 @@ module YousignClient
|
|
226
212
|
end
|
227
213
|
# Delete a Procedure
|
228
214
|
# @param id
|
229
|
-
# @param authorization Authentication credentials for HTTP authentication
|
230
215
|
# @param [Hash] opts the optional parameters
|
231
216
|
# @return [nil]
|
232
|
-
def procedures_id_delete(id,
|
233
|
-
procedures_id_delete_with_http_info(id,
|
217
|
+
def procedures_id_delete(id, opts = {})
|
218
|
+
procedures_id_delete_with_http_info(id, opts)
|
234
219
|
nil
|
235
220
|
end
|
236
221
|
|
237
222
|
# Delete a Procedure
|
238
223
|
# @param id
|
239
|
-
# @param authorization Authentication credentials for HTTP authentication
|
240
224
|
# @param [Hash] opts the optional parameters
|
241
225
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
242
|
-
def procedures_id_delete_with_http_info(id,
|
226
|
+
def procedures_id_delete_with_http_info(id, opts = {})
|
243
227
|
if @api_client.config.debugging
|
244
228
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_delete ...'
|
245
229
|
end
|
@@ -247,10 +231,6 @@ module YousignClient
|
|
247
231
|
if @api_client.config.client_side_validation && id.nil?
|
248
232
|
fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_delete"
|
249
233
|
end
|
250
|
-
# verify the required parameter 'authorization' is set
|
251
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
252
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_delete"
|
253
|
-
end
|
254
234
|
# resource path
|
255
235
|
local_var_path = '/procedures/{id}'.sub('{' + 'id' + '}', id.to_s)
|
256
236
|
|
@@ -263,14 +243,13 @@ module YousignClient
|
|
263
243
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
264
244
|
# HTTP header 'Content-Type'
|
265
245
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
266
|
-
header_params[:'Authorization'] = authorization
|
267
246
|
|
268
247
|
# form parameters
|
269
248
|
form_params = {}
|
270
249
|
|
271
250
|
# http body (model)
|
272
251
|
post_body = nil
|
273
|
-
auth_names = []
|
252
|
+
auth_names = ['api_key']
|
274
253
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
275
254
|
:header_params => header_params,
|
276
255
|
:query_params => query_params,
|
@@ -284,24 +263,20 @@ module YousignClient
|
|
284
263
|
end
|
285
264
|
# Duplicate a Procedure
|
286
265
|
# @param id
|
287
|
-
# @param authorization Authentication credentials for HTTP authentication
|
288
|
-
# @param content_type The MIME type of the body of the request
|
289
266
|
# @param body
|
290
267
|
# @param [Hash] opts the optional parameters
|
291
268
|
# @return [ProcedureOutput]
|
292
|
-
def procedures_id_duplicate_post(id,
|
293
|
-
data, _status_code, _headers = procedures_id_duplicate_post_with_http_info(id,
|
269
|
+
def procedures_id_duplicate_post(id, body, opts = {})
|
270
|
+
data, _status_code, _headers = procedures_id_duplicate_post_with_http_info(id, body, opts)
|
294
271
|
data
|
295
272
|
end
|
296
273
|
|
297
274
|
# Duplicate a Procedure
|
298
275
|
# @param id
|
299
|
-
# @param authorization Authentication credentials for HTTP authentication
|
300
|
-
# @param content_type The MIME type of the body of the request
|
301
276
|
# @param body
|
302
277
|
# @param [Hash] opts the optional parameters
|
303
278
|
# @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
|
304
|
-
def procedures_id_duplicate_post_with_http_info(id,
|
279
|
+
def procedures_id_duplicate_post_with_http_info(id, body, opts = {})
|
305
280
|
if @api_client.config.debugging
|
306
281
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_duplicate_post ...'
|
307
282
|
end
|
@@ -309,14 +284,6 @@ module YousignClient
|
|
309
284
|
if @api_client.config.client_side_validation && id.nil?
|
310
285
|
fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_duplicate_post"
|
311
286
|
end
|
312
|
-
# verify the required parameter 'authorization' is set
|
313
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
314
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_duplicate_post"
|
315
|
-
end
|
316
|
-
# verify the required parameter 'content_type' is set
|
317
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
318
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_id_duplicate_post"
|
319
|
-
end
|
320
287
|
# verify the required parameter 'body' is set
|
321
288
|
if @api_client.config.client_side_validation && body.nil?
|
322
289
|
fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_id_duplicate_post"
|
@@ -331,15 +298,13 @@ module YousignClient
|
|
331
298
|
header_params = {}
|
332
299
|
# HTTP header 'Accept' (if needed)
|
333
300
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
334
|
-
header_params[:'Authorization'] = authorization
|
335
|
-
header_params[:'Content-Type'] = content_type
|
336
301
|
|
337
302
|
# form parameters
|
338
303
|
form_params = {}
|
339
304
|
|
340
305
|
# http body (model)
|
341
306
|
post_body = @api_client.object_to_http_body(body)
|
342
|
-
auth_names = []
|
307
|
+
auth_names = ['api_key']
|
343
308
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
344
309
|
:header_params => header_params,
|
345
310
|
:query_params => query_params,
|
@@ -354,20 +319,18 @@ module YousignClient
|
|
354
319
|
end
|
355
320
|
# Find a Procedure by ID
|
356
321
|
# @param id
|
357
|
-
# @param authorization Authentication credentials for HTTP authentication
|
358
322
|
# @param [Hash] opts the optional parameters
|
359
323
|
# @return [ProcedureOutput]
|
360
|
-
def procedures_id_get(id,
|
361
|
-
data, _status_code, _headers = procedures_id_get_with_http_info(id,
|
324
|
+
def procedures_id_get(id, opts = {})
|
325
|
+
data, _status_code, _headers = procedures_id_get_with_http_info(id, opts)
|
362
326
|
data
|
363
327
|
end
|
364
328
|
|
365
329
|
# Find a Procedure by ID
|
366
330
|
# @param id
|
367
|
-
# @param authorization Authentication credentials for HTTP authentication
|
368
331
|
# @param [Hash] opts the optional parameters
|
369
332
|
# @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
|
370
|
-
def procedures_id_get_with_http_info(id,
|
333
|
+
def procedures_id_get_with_http_info(id, opts = {})
|
371
334
|
if @api_client.config.debugging
|
372
335
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_get ...'
|
373
336
|
end
|
@@ -375,10 +338,6 @@ module YousignClient
|
|
375
338
|
if @api_client.config.client_side_validation && id.nil?
|
376
339
|
fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_get"
|
377
340
|
end
|
378
|
-
# verify the required parameter 'authorization' is set
|
379
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
380
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_get"
|
381
|
-
end
|
382
341
|
# resource path
|
383
342
|
local_var_path = '/procedures/{id}'.sub('{' + 'id' + '}', id.to_s)
|
384
343
|
|
@@ -391,14 +350,13 @@ module YousignClient
|
|
391
350
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
392
351
|
# HTTP header 'Content-Type'
|
393
352
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
394
|
-
header_params[:'Authorization'] = authorization
|
395
353
|
|
396
354
|
# form parameters
|
397
355
|
form_params = {}
|
398
356
|
|
399
357
|
# http body (model)
|
400
358
|
post_body = nil
|
401
|
-
auth_names = []
|
359
|
+
auth_names = ['api_key']
|
402
360
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
403
361
|
:header_params => header_params,
|
404
362
|
:query_params => query_params,
|
@@ -414,21 +372,19 @@ module YousignClient
|
|
414
372
|
# Get a Procedure proof file
|
415
373
|
# Get a Procedure proof file
|
416
374
|
# @param id
|
417
|
-
# @param authorization Authentication credentials for HTTP authentication
|
418
375
|
# @param [Hash] opts the optional parameters
|
419
376
|
# @return [String]
|
420
|
-
def procedures_id_proof_get(id,
|
421
|
-
data, _status_code, _headers = procedures_id_proof_get_with_http_info(id,
|
377
|
+
def procedures_id_proof_get(id, opts = {})
|
378
|
+
data, _status_code, _headers = procedures_id_proof_get_with_http_info(id, opts)
|
422
379
|
data
|
423
380
|
end
|
424
381
|
|
425
382
|
# Get a Procedure proof file
|
426
383
|
# Get a Procedure proof file
|
427
384
|
# @param id
|
428
|
-
# @param authorization Authentication credentials for HTTP authentication
|
429
385
|
# @param [Hash] opts the optional parameters
|
430
386
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
431
|
-
def procedures_id_proof_get_with_http_info(id,
|
387
|
+
def procedures_id_proof_get_with_http_info(id, opts = {})
|
432
388
|
if @api_client.config.debugging
|
433
389
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_proof_get ...'
|
434
390
|
end
|
@@ -436,10 +392,6 @@ module YousignClient
|
|
436
392
|
if @api_client.config.client_side_validation && id.nil?
|
437
393
|
fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_proof_get"
|
438
394
|
end
|
439
|
-
# verify the required parameter 'authorization' is set
|
440
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
441
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_proof_get"
|
442
|
-
end
|
443
395
|
# resource path
|
444
396
|
local_var_path = '/procedures/{id}/proof'.sub('{' + 'id' + '}', id.to_s)
|
445
397
|
|
@@ -452,14 +404,13 @@ module YousignClient
|
|
452
404
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
453
405
|
# HTTP header 'Content-Type'
|
454
406
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
455
|
-
header_params[:'Authorization'] = authorization
|
456
407
|
|
457
408
|
# form parameters
|
458
409
|
form_params = {}
|
459
410
|
|
460
411
|
# http body (model)
|
461
412
|
post_body = nil
|
462
|
-
auth_names = []
|
413
|
+
auth_names = ['api_key']
|
463
414
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
464
415
|
:header_params => header_params,
|
465
416
|
:query_params => query_params,
|
@@ -474,24 +425,20 @@ module YousignClient
|
|
474
425
|
end
|
475
426
|
# Update a Procedure
|
476
427
|
# @param id
|
477
|
-
# @param authorization Authentication credentials for HTTP authentication
|
478
|
-
# @param content_type The MIME type of the body of the request
|
479
428
|
# @param body
|
480
429
|
# @param [Hash] opts the optional parameters
|
481
430
|
# @return [ProcedureOutput]
|
482
|
-
def procedures_id_put(id,
|
483
|
-
data, _status_code, _headers = procedures_id_put_with_http_info(id,
|
431
|
+
def procedures_id_put(id, body, opts = {})
|
432
|
+
data, _status_code, _headers = procedures_id_put_with_http_info(id, body, opts)
|
484
433
|
data
|
485
434
|
end
|
486
435
|
|
487
436
|
# Update a Procedure
|
488
437
|
# @param id
|
489
|
-
# @param authorization Authentication credentials for HTTP authentication
|
490
|
-
# @param content_type The MIME type of the body of the request
|
491
438
|
# @param body
|
492
439
|
# @param [Hash] opts the optional parameters
|
493
440
|
# @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
|
494
|
-
def procedures_id_put_with_http_info(id,
|
441
|
+
def procedures_id_put_with_http_info(id, body, opts = {})
|
495
442
|
if @api_client.config.debugging
|
496
443
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_put ...'
|
497
444
|
end
|
@@ -499,14 +446,6 @@ module YousignClient
|
|
499
446
|
if @api_client.config.client_side_validation && id.nil?
|
500
447
|
fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_put"
|
501
448
|
end
|
502
|
-
# verify the required parameter 'authorization' is set
|
503
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
504
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_put"
|
505
|
-
end
|
506
|
-
# verify the required parameter 'content_type' is set
|
507
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
508
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_id_put"
|
509
|
-
end
|
510
449
|
# verify the required parameter 'body' is set
|
511
450
|
if @api_client.config.client_side_validation && body.nil?
|
512
451
|
fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_id_put"
|
@@ -521,15 +460,13 @@ module YousignClient
|
|
521
460
|
header_params = {}
|
522
461
|
# HTTP header 'Accept' (if needed)
|
523
462
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
524
|
-
header_params[:'Authorization'] = authorization
|
525
|
-
header_params[:'Content-Type'] = content_type
|
526
463
|
|
527
464
|
# form parameters
|
528
465
|
form_params = {}
|
529
466
|
|
530
467
|
# http body (model)
|
531
468
|
post_body = @api_client.object_to_http_body(body)
|
532
|
-
auth_names = []
|
469
|
+
auth_names = ['api_key']
|
533
470
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
534
471
|
:header_params => header_params,
|
535
472
|
:query_params => query_params,
|
@@ -544,24 +481,20 @@ module YousignClient
|
|
544
481
|
end
|
545
482
|
# Remind a Procedure
|
546
483
|
# @param id
|
547
|
-
# @param authorization Authentication credentials for HTTP authentication
|
548
|
-
# @param content_type The MIME type of the body of the request
|
549
484
|
# @param body
|
550
485
|
# @param [Hash] opts the optional parameters
|
551
486
|
# @return [ProcedureOutput]
|
552
|
-
def procedures_id_remind_post(id,
|
553
|
-
data, _status_code, _headers = procedures_id_remind_post_with_http_info(id,
|
487
|
+
def procedures_id_remind_post(id, body, opts = {})
|
488
|
+
data, _status_code, _headers = procedures_id_remind_post_with_http_info(id, body, opts)
|
554
489
|
data
|
555
490
|
end
|
556
491
|
|
557
492
|
# Remind a Procedure
|
558
493
|
# @param id
|
559
|
-
# @param authorization Authentication credentials for HTTP authentication
|
560
|
-
# @param content_type The MIME type of the body of the request
|
561
494
|
# @param body
|
562
495
|
# @param [Hash] opts the optional parameters
|
563
496
|
# @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
|
564
|
-
def procedures_id_remind_post_with_http_info(id,
|
497
|
+
def procedures_id_remind_post_with_http_info(id, body, opts = {})
|
565
498
|
if @api_client.config.debugging
|
566
499
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_remind_post ...'
|
567
500
|
end
|
@@ -569,14 +502,6 @@ module YousignClient
|
|
569
502
|
if @api_client.config.client_side_validation && id.nil?
|
570
503
|
fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_remind_post"
|
571
504
|
end
|
572
|
-
# verify the required parameter 'authorization' is set
|
573
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
574
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_remind_post"
|
575
|
-
end
|
576
|
-
# verify the required parameter 'content_type' is set
|
577
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
578
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_id_remind_post"
|
579
|
-
end
|
580
505
|
# verify the required parameter 'body' is set
|
581
506
|
if @api_client.config.client_side_validation && body.nil?
|
582
507
|
fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_id_remind_post"
|
@@ -591,15 +516,13 @@ module YousignClient
|
|
591
516
|
header_params = {}
|
592
517
|
# HTTP header 'Accept' (if needed)
|
593
518
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
594
|
-
header_params[:'Authorization'] = authorization
|
595
|
-
header_params[:'Content-Type'] = content_type
|
596
519
|
|
597
520
|
# form parameters
|
598
521
|
form_params = {}
|
599
522
|
|
600
523
|
# http body (model)
|
601
524
|
post_body = @api_client.object_to_http_body(body)
|
602
|
-
auth_names = []
|
525
|
+
auth_names = ['api_key']
|
603
526
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
604
527
|
:header_params => header_params,
|
605
528
|
:query_params => query_params,
|
@@ -613,34 +536,22 @@ module YousignClient
|
|
613
536
|
return data, status_code, headers
|
614
537
|
end
|
615
538
|
# Create a new Procedure
|
616
|
-
# @param authorization Authentication credentials for HTTP authentication
|
617
|
-
# @param content_type The MIME type of the body of the request
|
618
539
|
# @param body
|
619
540
|
# @param [Hash] opts the optional parameters
|
620
541
|
# @return [ProcedureOutput]
|
621
|
-
def procedures_post(
|
622
|
-
data, _status_code, _headers = procedures_post_with_http_info(
|
542
|
+
def procedures_post(body, opts = {})
|
543
|
+
data, _status_code, _headers = procedures_post_with_http_info(body, opts)
|
623
544
|
data
|
624
545
|
end
|
625
546
|
|
626
547
|
# Create a new Procedure
|
627
|
-
# @param authorization Authentication credentials for HTTP authentication
|
628
|
-
# @param content_type The MIME type of the body of the request
|
629
548
|
# @param body
|
630
549
|
# @param [Hash] opts the optional parameters
|
631
550
|
# @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
|
632
|
-
def procedures_post_with_http_info(
|
551
|
+
def procedures_post_with_http_info(body, opts = {})
|
633
552
|
if @api_client.config.debugging
|
634
553
|
@api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_post ...'
|
635
554
|
end
|
636
|
-
# verify the required parameter 'authorization' is set
|
637
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
638
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_post"
|
639
|
-
end
|
640
|
-
# verify the required parameter 'content_type' is set
|
641
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
642
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_post"
|
643
|
-
end
|
644
555
|
# verify the required parameter 'body' is set
|
645
556
|
if @api_client.config.client_side_validation && body.nil?
|
646
557
|
fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_post"
|
@@ -655,15 +566,13 @@ module YousignClient
|
|
655
566
|
header_params = {}
|
656
567
|
# HTTP header 'Accept' (if needed)
|
657
568
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
658
|
-
header_params[:'Authorization'] = authorization
|
659
|
-
header_params[:'Content-Type'] = content_type
|
660
569
|
|
661
570
|
# form parameters
|
662
571
|
form_params = {}
|
663
572
|
|
664
573
|
# http body (model)
|
665
574
|
post_body = @api_client.object_to_http_body(body)
|
666
|
-
auth_names = []
|
575
|
+
auth_names = ['api_key']
|
667
576
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
668
577
|
:header_params => header_params,
|
669
578
|
:query_params => query_params,
|