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
@@ -21,20 +21,18 @@ module YousignClient
|
|
21
21
|
end
|
22
22
|
# Find a Server Stamp 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 [ServerStampOutput]
|
27
|
-
def server_stamps_id_get(id,
|
28
|
-
data, _status_code, _headers = server_stamps_id_get_with_http_info(id,
|
26
|
+
def server_stamps_id_get(id, opts = {})
|
27
|
+
data, _status_code, _headers = server_stamps_id_get_with_http_info(id, opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
31
|
# Find a Server Stamp 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<(ServerStampOutput, Fixnum, Hash)>] ServerStampOutput data, response status code and response headers
|
37
|
-
def server_stamps_id_get_with_http_info(id,
|
35
|
+
def server_stamps_id_get_with_http_info(id, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: ServerStampsApi.server_stamps_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 ServerStampsApi.server_stamps_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 ServerStampsApi.server_stamps_id_get"
|
48
|
-
end
|
49
43
|
# resource path
|
50
44
|
local_var_path = '/server_stamps/{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 Server Stamp
|
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 [ServerStampOutput]
|
87
|
-
def server_stamps_post(
|
88
|
-
data, _status_code, _headers = server_stamps_post_with_http_info(
|
78
|
+
def server_stamps_post(body, opts = {})
|
79
|
+
data, _status_code, _headers = server_stamps_post_with_http_info(body, opts)
|
89
80
|
data
|
90
81
|
end
|
91
82
|
|
92
83
|
# Create a Server Stamp
|
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<(ServerStampOutput, Fixnum, Hash)>] ServerStampOutput data, response status code and response headers
|
98
|
-
def server_stamps_post_with_http_info(
|
87
|
+
def server_stamps_post_with_http_info(body, opts = {})
|
99
88
|
if @api_client.config.debugging
|
100
89
|
@api_client.config.logger.debug 'Calling API: ServerStampsApi.server_stamps_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 ServerStampsApi.server_stamps_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 ServerStampsApi.server_stamps_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 ServerStampsApi.server_stamps_post"
|
@@ -121,15 +102,13 @@ module YousignClient
|
|
121
102
|
header_params = {}
|
122
103
|
# HTTP header 'Accept' (if needed)
|
123
104
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
|
-
header_params[:'Authorization'] = authorization
|
125
|
-
header_params[:'Content-Type'] = content_type
|
126
105
|
|
127
106
|
# form parameters
|
128
107
|
form_params = {}
|
129
108
|
|
130
109
|
# http body (model)
|
131
110
|
post_body = @api_client.object_to_http_body(body)
|
132
|
-
auth_names = []
|
111
|
+
auth_names = ['api_key']
|
133
112
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
134
113
|
:header_params => header_params,
|
135
114
|
:query_params => query_params,
|
@@ -21,31 +21,25 @@ module YousignClient
|
|
21
21
|
end
|
22
22
|
# Get Signature UI Labels
|
23
23
|
# Only usefull if you use a filter with name or signatureUI
|
24
|
-
# @param authorization Authentication credentials for HTTP authentication
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
25
|
# @option opts [String] :name Filtering on name of signature ui labels
|
27
26
|
# @option opts [String] :signature_ui Filtering on id of signature ui resource
|
28
27
|
# @return [Array<SignatureUiLabelOutput>]
|
29
|
-
def signature_ui_labels_get(
|
30
|
-
data, _status_code, _headers = signature_ui_labels_get_with_http_info(
|
28
|
+
def signature_ui_labels_get(opts = {})
|
29
|
+
data, _status_code, _headers = signature_ui_labels_get_with_http_info(opts)
|
31
30
|
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# Get Signature UI Labels
|
35
34
|
# Only usefull if you use a filter with name or signatureUI
|
36
|
-
# @param authorization Authentication credentials for HTTP authentication
|
37
35
|
# @param [Hash] opts the optional parameters
|
38
36
|
# @option opts [String] :name Filtering on name of signature ui labels
|
39
37
|
# @option opts [String] :signature_ui Filtering on id of signature ui resource
|
40
38
|
# @return [Array<(Array<SignatureUiLabelOutput>, Fixnum, Hash)>] Array<SignatureUiLabelOutput> data, response status code and response headers
|
41
|
-
def signature_ui_labels_get_with_http_info(
|
39
|
+
def signature_ui_labels_get_with_http_info(opts = {})
|
42
40
|
if @api_client.config.debugging
|
43
41
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_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 SignatureUIsApi.signature_ui_labels_get"
|
48
|
-
end
|
49
43
|
# resource path
|
50
44
|
local_var_path = '/signature_ui_labels'
|
51
45
|
|
@@ -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,
|
@@ -82,22 +75,20 @@ module YousignClient
|
|
82
75
|
end
|
83
76
|
# Delete a Signature UI Label
|
84
77
|
# @param id
|
85
|
-
# @param authorization Authentication credentials for HTTP authentication
|
86
78
|
# @param [Hash] opts the optional parameters
|
87
79
|
# @option opts [String] :id2 Id of signature ui label
|
88
80
|
# @return [nil]
|
89
|
-
def signature_ui_labels_id_delete(id,
|
90
|
-
signature_ui_labels_id_delete_with_http_info(id,
|
81
|
+
def signature_ui_labels_id_delete(id, opts = {})
|
82
|
+
signature_ui_labels_id_delete_with_http_info(id, opts)
|
91
83
|
nil
|
92
84
|
end
|
93
85
|
|
94
86
|
# Delete a Signature UI Label
|
95
87
|
# @param id
|
96
|
-
# @param authorization Authentication credentials for HTTP authentication
|
97
88
|
# @param [Hash] opts the optional parameters
|
98
89
|
# @option opts [String] :id2 Id of signature ui label
|
99
90
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
100
|
-
def signature_ui_labels_id_delete_with_http_info(id,
|
91
|
+
def signature_ui_labels_id_delete_with_http_info(id, opts = {})
|
101
92
|
if @api_client.config.debugging
|
102
93
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_id_delete ...'
|
103
94
|
end
|
@@ -105,10 +96,6 @@ module YousignClient
|
|
105
96
|
if @api_client.config.client_side_validation && id.nil?
|
106
97
|
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_ui_labels_id_delete"
|
107
98
|
end
|
108
|
-
# verify the required parameter 'authorization' is set
|
109
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
110
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_id_delete"
|
111
|
-
end
|
112
99
|
# resource path
|
113
100
|
local_var_path = '/signature_ui_labels/{id}'.sub('{' + 'id' + '}', id.to_s)
|
114
101
|
|
@@ -122,14 +109,13 @@ module YousignClient
|
|
122
109
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
123
110
|
# HTTP header 'Content-Type'
|
124
111
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
125
|
-
header_params[:'Authorization'] = authorization
|
126
112
|
|
127
113
|
# form parameters
|
128
114
|
form_params = {}
|
129
115
|
|
130
116
|
# http body (model)
|
131
117
|
post_body = nil
|
132
|
-
auth_names = []
|
118
|
+
auth_names = ['api_key']
|
133
119
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
134
120
|
:header_params => header_params,
|
135
121
|
:query_params => query_params,
|
@@ -143,22 +129,20 @@ module YousignClient
|
|
143
129
|
end
|
144
130
|
# Find a Signature UI Label by ID
|
145
131
|
# @param id
|
146
|
-
# @param authorization Authentication credentials for HTTP authentication
|
147
132
|
# @param [Hash] opts the optional parameters
|
148
133
|
# @option opts [String] :id2 id of signature ui label
|
149
134
|
# @return [SignatureUiLabelOutput]
|
150
|
-
def signature_ui_labels_id_get(id,
|
151
|
-
data, _status_code, _headers = signature_ui_labels_id_get_with_http_info(id,
|
135
|
+
def signature_ui_labels_id_get(id, opts = {})
|
136
|
+
data, _status_code, _headers = signature_ui_labels_id_get_with_http_info(id, opts)
|
152
137
|
data
|
153
138
|
end
|
154
139
|
|
155
140
|
# Find a Signature UI Label by ID
|
156
141
|
# @param id
|
157
|
-
# @param authorization Authentication credentials for HTTP authentication
|
158
142
|
# @param [Hash] opts the optional parameters
|
159
143
|
# @option opts [String] :id2 id of signature ui label
|
160
144
|
# @return [Array<(SignatureUiLabelOutput, Fixnum, Hash)>] SignatureUiLabelOutput data, response status code and response headers
|
161
|
-
def signature_ui_labels_id_get_with_http_info(id,
|
145
|
+
def signature_ui_labels_id_get_with_http_info(id, opts = {})
|
162
146
|
if @api_client.config.debugging
|
163
147
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_id_get ...'
|
164
148
|
end
|
@@ -166,10 +150,6 @@ module YousignClient
|
|
166
150
|
if @api_client.config.client_side_validation && id.nil?
|
167
151
|
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_ui_labels_id_get"
|
168
152
|
end
|
169
|
-
# verify the required parameter 'authorization' is set
|
170
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
171
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_id_get"
|
172
|
-
end
|
173
153
|
# resource path
|
174
154
|
local_var_path = '/signature_ui_labels/{id}'.sub('{' + 'id' + '}', id.to_s)
|
175
155
|
|
@@ -183,14 +163,13 @@ module YousignClient
|
|
183
163
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
184
164
|
# HTTP header 'Content-Type'
|
185
165
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
186
|
-
header_params[:'Authorization'] = authorization
|
187
166
|
|
188
167
|
# form parameters
|
189
168
|
form_params = {}
|
190
169
|
|
191
170
|
# http body (model)
|
192
171
|
post_body = nil
|
193
|
-
auth_names = []
|
172
|
+
auth_names = ['api_key']
|
194
173
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
195
174
|
:header_params => header_params,
|
196
175
|
:query_params => query_params,
|
@@ -205,26 +184,22 @@ module YousignClient
|
|
205
184
|
end
|
206
185
|
# Update a Signature UI Label
|
207
186
|
# @param id
|
208
|
-
# @param authorization Authentication credentials for HTTP authentication
|
209
|
-
# @param content_type The MIME type of the body of the request
|
210
187
|
# @param body
|
211
188
|
# @param [Hash] opts the optional parameters
|
212
189
|
# @option opts [String] :id2 Id of signature ui labels
|
213
190
|
# @return [SignatureUiLabelOutput]
|
214
|
-
def signature_ui_labels_id_put(id,
|
215
|
-
data, _status_code, _headers = signature_ui_labels_id_put_with_http_info(id,
|
191
|
+
def signature_ui_labels_id_put(id, body, opts = {})
|
192
|
+
data, _status_code, _headers = signature_ui_labels_id_put_with_http_info(id, body, opts)
|
216
193
|
data
|
217
194
|
end
|
218
195
|
|
219
196
|
# Update a Signature UI Label
|
220
197
|
# @param id
|
221
|
-
# @param authorization Authentication credentials for HTTP authentication
|
222
|
-
# @param content_type The MIME type of the body of the request
|
223
198
|
# @param body
|
224
199
|
# @param [Hash] opts the optional parameters
|
225
200
|
# @option opts [String] :id2 Id of signature ui labels
|
226
201
|
# @return [Array<(SignatureUiLabelOutput, Fixnum, Hash)>] SignatureUiLabelOutput data, response status code and response headers
|
227
|
-
def signature_ui_labels_id_put_with_http_info(id,
|
202
|
+
def signature_ui_labels_id_put_with_http_info(id, body, opts = {})
|
228
203
|
if @api_client.config.debugging
|
229
204
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_id_put ...'
|
230
205
|
end
|
@@ -232,14 +207,6 @@ module YousignClient
|
|
232
207
|
if @api_client.config.client_side_validation && id.nil?
|
233
208
|
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_ui_labels_id_put"
|
234
209
|
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 SignatureUIsApi.signature_ui_labels_id_put"
|
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 SignatureUIsApi.signature_ui_labels_id_put"
|
242
|
-
end
|
243
210
|
# verify the required parameter 'body' is set
|
244
211
|
if @api_client.config.client_side_validation && body.nil?
|
245
212
|
fail ArgumentError, "Missing the required parameter 'body' when calling SignatureUIsApi.signature_ui_labels_id_put"
|
@@ -255,15 +222,13 @@ module YousignClient
|
|
255
222
|
header_params = {}
|
256
223
|
# HTTP header 'Accept' (if needed)
|
257
224
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
258
|
-
header_params[:'Authorization'] = authorization
|
259
|
-
header_params[:'Content-Type'] = content_type
|
260
225
|
|
261
226
|
# form parameters
|
262
227
|
form_params = {}
|
263
228
|
|
264
229
|
# http body (model)
|
265
230
|
post_body = @api_client.object_to_http_body(body)
|
266
|
-
auth_names = []
|
231
|
+
auth_names = ['api_key']
|
267
232
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
268
233
|
:header_params => header_params,
|
269
234
|
:query_params => query_params,
|
@@ -277,34 +242,22 @@ module YousignClient
|
|
277
242
|
return data, status_code, headers
|
278
243
|
end
|
279
244
|
# Create a new Signature UI Label
|
280
|
-
# @param authorization Authentication credentials for HTTP authentication
|
281
|
-
# @param content_type The MIME type of the body of the request
|
282
245
|
# @param body
|
283
246
|
# @param [Hash] opts the optional parameters
|
284
247
|
# @return [SignatureUiLabelOutput]
|
285
|
-
def signature_ui_labels_post(
|
286
|
-
data, _status_code, _headers = signature_ui_labels_post_with_http_info(
|
248
|
+
def signature_ui_labels_post(body, opts = {})
|
249
|
+
data, _status_code, _headers = signature_ui_labels_post_with_http_info(body, opts)
|
287
250
|
data
|
288
251
|
end
|
289
252
|
|
290
253
|
# Create a new Signature UI Label
|
291
|
-
# @param authorization Authentication credentials for HTTP authentication
|
292
|
-
# @param content_type The MIME type of the body of the request
|
293
254
|
# @param body
|
294
255
|
# @param [Hash] opts the optional parameters
|
295
256
|
# @return [Array<(SignatureUiLabelOutput, Fixnum, Hash)>] SignatureUiLabelOutput data, response status code and response headers
|
296
|
-
def signature_ui_labels_post_with_http_info(
|
257
|
+
def signature_ui_labels_post_with_http_info(body, opts = {})
|
297
258
|
if @api_client.config.debugging
|
298
259
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_post ...'
|
299
260
|
end
|
300
|
-
# verify the required parameter 'authorization' is set
|
301
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
302
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_post"
|
303
|
-
end
|
304
|
-
# verify the required parameter 'content_type' is set
|
305
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
306
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_ui_labels_post"
|
307
|
-
end
|
308
261
|
# verify the required parameter 'body' is set
|
309
262
|
if @api_client.config.client_side_validation && body.nil?
|
310
263
|
fail ArgumentError, "Missing the required parameter 'body' when calling SignatureUIsApi.signature_ui_labels_post"
|
@@ -319,15 +272,13 @@ module YousignClient
|
|
319
272
|
header_params = {}
|
320
273
|
# HTTP header 'Accept' (if needed)
|
321
274
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
322
|
-
header_params[:'Authorization'] = authorization
|
323
|
-
header_params[:'Content-Type'] = content_type
|
324
275
|
|
325
276
|
# form parameters
|
326
277
|
form_params = {}
|
327
278
|
|
328
279
|
# http body (model)
|
329
280
|
post_body = @api_client.object_to_http_body(body)
|
330
|
-
auth_names = []
|
281
|
+
auth_names = ['api_key']
|
331
282
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
332
283
|
:header_params => header_params,
|
333
284
|
:query_params => query_params,
|
@@ -341,26 +292,20 @@ module YousignClient
|
|
341
292
|
return data, status_code, headers
|
342
293
|
end
|
343
294
|
# Get Signature UI list
|
344
|
-
# @param authorization Authentication credentials for HTTP authentication
|
345
295
|
# @param [Hash] opts the optional parameters
|
346
296
|
# @return [Array<SignatureUiOutput>]
|
347
|
-
def signature_uis_get(
|
348
|
-
data, _status_code, _headers = signature_uis_get_with_http_info(
|
297
|
+
def signature_uis_get(opts = {})
|
298
|
+
data, _status_code, _headers = signature_uis_get_with_http_info(opts)
|
349
299
|
data
|
350
300
|
end
|
351
301
|
|
352
302
|
# Get Signature UI list
|
353
|
-
# @param authorization Authentication credentials for HTTP authentication
|
354
303
|
# @param [Hash] opts the optional parameters
|
355
304
|
# @return [Array<(Array<SignatureUiOutput>, Fixnum, Hash)>] Array<SignatureUiOutput> data, response status code and response headers
|
356
|
-
def signature_uis_get_with_http_info(
|
305
|
+
def signature_uis_get_with_http_info(opts = {})
|
357
306
|
if @api_client.config.debugging
|
358
307
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_get ...'
|
359
308
|
end
|
360
|
-
# verify the required parameter 'authorization' is set
|
361
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
362
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_get"
|
363
|
-
end
|
364
309
|
# resource path
|
365
310
|
local_var_path = '/signature_uis'
|
366
311
|
|
@@ -373,14 +318,13 @@ module YousignClient
|
|
373
318
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
374
319
|
# HTTP header 'Content-Type'
|
375
320
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
376
|
-
header_params[:'Authorization'] = authorization
|
377
321
|
|
378
322
|
# form parameters
|
379
323
|
form_params = {}
|
380
324
|
|
381
325
|
# http body (model)
|
382
326
|
post_body = nil
|
383
|
-
auth_names = []
|
327
|
+
auth_names = ['api_key']
|
384
328
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
385
329
|
:header_params => header_params,
|
386
330
|
:query_params => query_params,
|
@@ -395,24 +339,20 @@ module YousignClient
|
|
395
339
|
end
|
396
340
|
# Delete a Signature UI
|
397
341
|
# @param id
|
398
|
-
# @param authorization Authentication credentials for HTTP authentication
|
399
|
-
# @param content_type The MIME type of the body of the request
|
400
342
|
# @param [Hash] opts the optional parameters
|
401
343
|
# @option opts [String] :id2 Id of the signature ui
|
402
344
|
# @return [nil]
|
403
|
-
def signature_uis_id_delete(id,
|
404
|
-
signature_uis_id_delete_with_http_info(id,
|
345
|
+
def signature_uis_id_delete(id, opts = {})
|
346
|
+
signature_uis_id_delete_with_http_info(id, opts)
|
405
347
|
nil
|
406
348
|
end
|
407
349
|
|
408
350
|
# Delete a Signature UI
|
409
351
|
# @param id
|
410
|
-
# @param authorization Authentication credentials for HTTP authentication
|
411
|
-
# @param content_type The MIME type of the body of the request
|
412
352
|
# @param [Hash] opts the optional parameters
|
413
353
|
# @option opts [String] :id2 Id of the signature ui
|
414
354
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
415
|
-
def signature_uis_id_delete_with_http_info(id,
|
355
|
+
def signature_uis_id_delete_with_http_info(id, opts = {})
|
416
356
|
if @api_client.config.debugging
|
417
357
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_id_delete ...'
|
418
358
|
end
|
@@ -420,14 +360,6 @@ module YousignClient
|
|
420
360
|
if @api_client.config.client_side_validation && id.nil?
|
421
361
|
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_uis_id_delete"
|
422
362
|
end
|
423
|
-
# verify the required parameter 'authorization' is set
|
424
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
425
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_id_delete"
|
426
|
-
end
|
427
|
-
# verify the required parameter 'content_type' is set
|
428
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
429
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_id_delete"
|
430
|
-
end
|
431
363
|
# resource path
|
432
364
|
local_var_path = '/signature_uis/{id}'.sub('{' + 'id' + '}', id.to_s)
|
433
365
|
|
@@ -441,15 +373,13 @@ module YousignClient
|
|
441
373
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
442
374
|
# HTTP header 'Content-Type'
|
443
375
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
444
|
-
header_params[:'Authorization'] = authorization
|
445
|
-
header_params[:'Content-Type'] = content_type
|
446
376
|
|
447
377
|
# form parameters
|
448
378
|
form_params = {}
|
449
379
|
|
450
380
|
# http body (model)
|
451
381
|
post_body = nil
|
452
|
-
auth_names = []
|
382
|
+
auth_names = ['api_key']
|
453
383
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
454
384
|
:header_params => header_params,
|
455
385
|
:query_params => query_params,
|
@@ -463,24 +393,20 @@ module YousignClient
|
|
463
393
|
end
|
464
394
|
# Find a Signature UI by ID
|
465
395
|
# @param id
|
466
|
-
# @param authorization Authentication credentials for HTTP authentication
|
467
|
-
# @param content_type The MIME type of the body of the request
|
468
396
|
# @param [Hash] opts the optional parameters
|
469
397
|
# @option opts [String] :id2 id of a signature ui
|
470
398
|
# @return [SignatureUiOutput]
|
471
|
-
def signature_uis_id_get(id,
|
472
|
-
data, _status_code, _headers = signature_uis_id_get_with_http_info(id,
|
399
|
+
def signature_uis_id_get(id, opts = {})
|
400
|
+
data, _status_code, _headers = signature_uis_id_get_with_http_info(id, opts)
|
473
401
|
data
|
474
402
|
end
|
475
403
|
|
476
404
|
# Find a Signature UI by ID
|
477
405
|
# @param id
|
478
|
-
# @param authorization Authentication credentials for HTTP authentication
|
479
|
-
# @param content_type The MIME type of the body of the request
|
480
406
|
# @param [Hash] opts the optional parameters
|
481
407
|
# @option opts [String] :id2 id of a signature ui
|
482
408
|
# @return [Array<(SignatureUiOutput, Fixnum, Hash)>] SignatureUiOutput data, response status code and response headers
|
483
|
-
def signature_uis_id_get_with_http_info(id,
|
409
|
+
def signature_uis_id_get_with_http_info(id, opts = {})
|
484
410
|
if @api_client.config.debugging
|
485
411
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_id_get ...'
|
486
412
|
end
|
@@ -488,14 +414,6 @@ module YousignClient
|
|
488
414
|
if @api_client.config.client_side_validation && id.nil?
|
489
415
|
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_uis_id_get"
|
490
416
|
end
|
491
|
-
# verify the required parameter 'authorization' is set
|
492
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
493
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_id_get"
|
494
|
-
end
|
495
|
-
# verify the required parameter 'content_type' is set
|
496
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
497
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_id_get"
|
498
|
-
end
|
499
417
|
# resource path
|
500
418
|
local_var_path = '/signature_uis/{id}'.sub('{' + 'id' + '}', id.to_s)
|
501
419
|
|
@@ -509,15 +427,13 @@ module YousignClient
|
|
509
427
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
510
428
|
# HTTP header 'Content-Type'
|
511
429
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
512
|
-
header_params[:'Authorization'] = authorization
|
513
|
-
header_params[:'Content-Type'] = content_type
|
514
430
|
|
515
431
|
# form parameters
|
516
432
|
form_params = {}
|
517
433
|
|
518
434
|
# http body (model)
|
519
435
|
post_body = nil
|
520
|
-
auth_names = []
|
436
|
+
auth_names = ['api_key']
|
521
437
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
522
438
|
:header_params => header_params,
|
523
439
|
:query_params => query_params,
|
@@ -532,24 +448,20 @@ module YousignClient
|
|
532
448
|
end
|
533
449
|
# Update a Signature UI
|
534
450
|
# @param id
|
535
|
-
# @param authorization Authentication credentials for HTTP authentication
|
536
|
-
# @param content_type The MIME type of the body of the request
|
537
451
|
# @param [Hash] opts the optional parameters
|
538
452
|
# @option opts [String] :id2 id of signature ui to update
|
539
453
|
# @return [SignatureUiInputUpdate]
|
540
|
-
def signature_uis_id_put(id,
|
541
|
-
data, _status_code, _headers = signature_uis_id_put_with_http_info(id,
|
454
|
+
def signature_uis_id_put(id, opts = {})
|
455
|
+
data, _status_code, _headers = signature_uis_id_put_with_http_info(id, opts)
|
542
456
|
data
|
543
457
|
end
|
544
458
|
|
545
459
|
# Update a Signature UI
|
546
460
|
# @param id
|
547
|
-
# @param authorization Authentication credentials for HTTP authentication
|
548
|
-
# @param content_type The MIME type of the body of the request
|
549
461
|
# @param [Hash] opts the optional parameters
|
550
462
|
# @option opts [String] :id2 id of signature ui to update
|
551
463
|
# @return [Array<(SignatureUiInputUpdate, Fixnum, Hash)>] SignatureUiInputUpdate data, response status code and response headers
|
552
|
-
def signature_uis_id_put_with_http_info(id,
|
464
|
+
def signature_uis_id_put_with_http_info(id, opts = {})
|
553
465
|
if @api_client.config.debugging
|
554
466
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_id_put ...'
|
555
467
|
end
|
@@ -557,14 +469,6 @@ module YousignClient
|
|
557
469
|
if @api_client.config.client_side_validation && id.nil?
|
558
470
|
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_uis_id_put"
|
559
471
|
end
|
560
|
-
# verify the required parameter 'authorization' is set
|
561
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
562
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_id_put"
|
563
|
-
end
|
564
|
-
# verify the required parameter 'content_type' is set
|
565
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
566
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_id_put"
|
567
|
-
end
|
568
472
|
# resource path
|
569
473
|
local_var_path = '/signature_uis/{id}'.sub('{' + 'id' + '}', id.to_s)
|
570
474
|
|
@@ -578,15 +482,13 @@ module YousignClient
|
|
578
482
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
579
483
|
# HTTP header 'Content-Type'
|
580
484
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
581
|
-
header_params[:'Authorization'] = authorization
|
582
|
-
header_params[:'Content-Type'] = content_type
|
583
485
|
|
584
486
|
# form parameters
|
585
487
|
form_params = {}
|
586
488
|
|
587
489
|
# http body (model)
|
588
490
|
post_body = nil
|
589
|
-
auth_names = []
|
491
|
+
auth_names = ['api_key']
|
590
492
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
591
493
|
:header_params => header_params,
|
592
494
|
:query_params => query_params,
|
@@ -601,35 +503,23 @@ module YousignClient
|
|
601
503
|
end
|
602
504
|
# Create a new Signature UI
|
603
505
|
# Here is the url format to build on your side to get a custom signature interface with your settings : https://webapp.yousign.com/procedure/sign?members=~2Fmembers~2F__MEMBER_ID__&signatureUi=~2Fsignature_uis~2F__SIGNATURE_UI_ID__
|
604
|
-
# @param authorization Authentication credentials for HTTP authentication
|
605
|
-
# @param content_type The MIME type of the body of the request
|
606
506
|
# @param body
|
607
507
|
# @param [Hash] opts the optional parameters
|
608
508
|
# @return [SignatureUiOutput]
|
609
|
-
def signature_uis_post(
|
610
|
-
data, _status_code, _headers = signature_uis_post_with_http_info(
|
509
|
+
def signature_uis_post(body, opts = {})
|
510
|
+
data, _status_code, _headers = signature_uis_post_with_http_info(body, opts)
|
611
511
|
data
|
612
512
|
end
|
613
513
|
|
614
514
|
# Create a new Signature UI
|
615
515
|
# Here is the url format to build on your side to get a custom signature interface with your settings : https://webapp.yousign.com/procedure/sign?members=~2Fmembers~2F__MEMBER_ID__&signatureUi=~2Fsignature_uis~2F__SIGNATURE_UI_ID__
|
616
|
-
# @param authorization Authentication credentials for HTTP authentication
|
617
|
-
# @param content_type The MIME type of the body of the request
|
618
516
|
# @param body
|
619
517
|
# @param [Hash] opts the optional parameters
|
620
518
|
# @return [Array<(SignatureUiOutput, Fixnum, Hash)>] SignatureUiOutput data, response status code and response headers
|
621
|
-
def signature_uis_post_with_http_info(
|
519
|
+
def signature_uis_post_with_http_info(body, opts = {})
|
622
520
|
if @api_client.config.debugging
|
623
521
|
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_post ...'
|
624
522
|
end
|
625
|
-
# verify the required parameter 'authorization' is set
|
626
|
-
if @api_client.config.client_side_validation && authorization.nil?
|
627
|
-
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_post"
|
628
|
-
end
|
629
|
-
# verify the required parameter 'content_type' is set
|
630
|
-
if @api_client.config.client_side_validation && content_type.nil?
|
631
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_post"
|
632
|
-
end
|
633
523
|
# verify the required parameter 'body' is set
|
634
524
|
if @api_client.config.client_side_validation && body.nil?
|
635
525
|
fail ArgumentError, "Missing the required parameter 'body' when calling SignatureUIsApi.signature_uis_post"
|
@@ -644,15 +534,13 @@ module YousignClient
|
|
644
534
|
header_params = {}
|
645
535
|
# HTTP header 'Accept' (if needed)
|
646
536
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
647
|
-
header_params[:'Authorization'] = authorization
|
648
|
-
header_params[:'Content-Type'] = content_type
|
649
537
|
|
650
538
|
# form parameters
|
651
539
|
form_params = {}
|
652
540
|
|
653
541
|
# http body (model)
|
654
542
|
post_body = @api_client.object_to_http_body(body)
|
655
|
-
auth_names = []
|
543
|
+
auth_names = ['api_key']
|
656
544
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
657
545
|
:header_params => header_params,
|
658
546
|
:query_params => query_params,
|