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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -8
  3. data/config.json +2 -2
  4. data/docs/AuthenticationsApi.md +60 -45
  5. data/docs/CheckDocumentsApi.md +40 -30
  6. data/docs/ConsentProcessesApi.md +80 -57
  7. data/docs/FileObjectsApi.md +40 -30
  8. data/docs/FilesApi.md +40 -30
  9. data/docs/InlineObject.md +17 -0
  10. data/docs/InlineObject1.md +19 -0
  11. data/docs/InlineObject2.md +19 -0
  12. data/docs/MembersApi.md +50 -36
  13. data/docs/OperationsApi.md +20 -15
  14. data/docs/OrganizationsApi.md +11 -10
  15. data/docs/ProceduresApi.md +90 -66
  16. data/docs/ServerStampsApi.md +20 -15
  17. data/docs/SignatureUIsApi.md +101 -82
  18. data/docs/UserGroupsApi.md +21 -16
  19. data/docs/UsersApi.md +51 -40
  20. data/docs/WorkspacesApi.md +11 -10
  21. data/lib/yousign_client/api/authentications_api.rb +24 -87
  22. data/lib/yousign_client/api/check_documents_api.rb +16 -58
  23. data/lib/yousign_client/api/consent_processes_api.rb +32 -109
  24. data/lib/yousign_client/api/file_objects_api.rb +16 -58
  25. data/lib/yousign_client/api/files_api.rb +16 -58
  26. data/lib/yousign_client/api/members_api.rb +20 -69
  27. data/lib/yousign_client/api/operations_api.rb +8 -29
  28. data/lib/yousign_client/api/organizations_api.rb +4 -11
  29. data/lib/yousign_client/api/procedures_api.rb +36 -127
  30. data/lib/yousign_client/api/server_stamps_api.rb +8 -29
  31. data/lib/yousign_client/api/signature_u_is_api.rb +40 -152
  32. data/lib/yousign_client/api/user_groups_api.rb +8 -22
  33. data/lib/yousign_client/api/users_api.rb +20 -69
  34. data/lib/yousign_client/api/workspaces_api.rb +4 -11
  35. data/lib/yousign_client/configuration.rb +1 -1
  36. data/lib/yousign_client/models/check_document_bank_accounts_output.rb +0 -15
  37. data/lib/yousign_client/models/check_document_identities_output.rb +0 -15
  38. data/lib/yousign_client/models/file_object_input.rb +0 -15
  39. data/lib/yousign_client/models/file_object_input_without_file_reference.rb +0 -15
  40. data/lib/yousign_client/models/file_object_output.rb +0 -30
  41. data/lib/yousign_client/models/file_object_output_without_file_reference.rb +0 -30
  42. data/lib/yousign_client/models/file_output.rb +0 -30
  43. data/lib/yousign_client/models/inwebo_user_request.rb +0 -15
  44. data/lib/yousign_client/models/member_input.rb +2 -2
  45. data/lib/yousign_client/models/member_output.rb +2 -17
  46. data/lib/yousign_client/models/organization_output.rb +0 -15
  47. data/lib/yousign_client/models/procedure_output.rb +0 -45
  48. data/lib/yousign_client/models/user_group.rb +0 -15
  49. data/lib/yousign_client/models/user_output.rb +0 -15
  50. data/lib/yousign_client/models/user_workspace_output.rb +0 -15
  51. data/lib/yousign_client/models/workspace_output.rb +0 -15
  52. data/lib/yousign_client/version.rb +1 -1
  53. data/spec/api/authentications_api_spec.rb +0 -9
  54. data/spec/api/check_documents_api_spec.rb +0 -6
  55. data/spec/api/consent_processes_api_spec.rb +0 -11
  56. data/spec/api/file_objects_api_spec.rb +0 -6
  57. data/spec/api/files_api_spec.rb +0 -6
  58. data/spec/api/members_api_spec.rb +0 -7
  59. data/spec/api/operations_api_spec.rb +0 -3
  60. data/spec/api/organizations_api_spec.rb +0 -1
  61. data/spec/api/procedures_api_spec.rb +0 -13
  62. data/spec/api/server_stamps_api_spec.rb +0 -3
  63. data/spec/api/signature_u_is_api_spec.rb +0 -16
  64. data/spec/api/user_groups_api_spec.rb +0 -2
  65. data/spec/api/users_api_spec.rb +0 -7
  66. data/spec/api/workspaces_api_spec.rb +0 -1
  67. data/spec/models/member_input_spec.rb +1 -1
  68. data/spec/models/member_output_spec.rb +1 -1
  69. data/update_client.sh +0 -4
  70. data/yousign_client.gemspec +1 -1
  71. data/yousign_openapi.json +53 -704
  72. metadata +7 -4
@@ -21,20 +21,18 @@ module YousignClient
21
21
  end
22
22
  # Get informations about a bank document (RIB)
23
23
  # @param id
24
- # @param authorization Authentication credentials for HTTP authentication
25
24
  # @param [Hash] opts the optional parameters
26
25
  # @return [CheckDocumentBankAccountsOutput]
27
- def check_document_bank_accounts_id_get(id, authorization, opts = {})
28
- data, _status_code, _headers = check_document_bank_accounts_id_get_with_http_info(id, authorization, opts)
26
+ def check_document_bank_accounts_id_get(id, opts = {})
27
+ data, _status_code, _headers = check_document_bank_accounts_id_get_with_http_info(id, opts)
29
28
  data
30
29
  end
31
30
 
32
31
  # Get informations about a bank document (RIB)
33
32
  # @param id
34
- # @param authorization Authentication credentials for HTTP authentication
35
33
  # @param [Hash] opts the optional parameters
36
34
  # @return [Array<(CheckDocumentBankAccountsOutput, Fixnum, Hash)>] CheckDocumentBankAccountsOutput data, response status code and response headers
37
- def check_document_bank_accounts_id_get_with_http_info(id, authorization, opts = {})
35
+ def check_document_bank_accounts_id_get_with_http_info(id, opts = {})
38
36
  if @api_client.config.debugging
39
37
  @api_client.config.logger.debug 'Calling API: CheckDocumentsApi.check_document_bank_accounts_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 CheckDocumentsApi.check_document_bank_accounts_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 CheckDocumentsApi.check_document_bank_accounts_id_get"
48
- end
49
43
  # resource path
50
44
  local_var_path = '/check-document/bank_accounts/{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
  # Verify a bank document (RIB)
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 [CheckDocumentBankAccountsOutput]
87
- def check_document_bank_accounts_post(authorization, content_type, body, opts = {})
88
- data, _status_code, _headers = check_document_bank_accounts_post_with_http_info(authorization, content_type, body, opts)
78
+ def check_document_bank_accounts_post(body, opts = {})
79
+ data, _status_code, _headers = check_document_bank_accounts_post_with_http_info(body, opts)
89
80
  data
90
81
  end
91
82
 
92
83
  # Verify a bank document (RIB)
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<(CheckDocumentBankAccountsOutput, Fixnum, Hash)>] CheckDocumentBankAccountsOutput data, response status code and response headers
98
- def check_document_bank_accounts_post_with_http_info(authorization, content_type, body, opts = {})
87
+ def check_document_bank_accounts_post_with_http_info(body, opts = {})
99
88
  if @api_client.config.debugging
100
89
  @api_client.config.logger.debug 'Calling API: CheckDocumentsApi.check_document_bank_accounts_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 CheckDocumentsApi.check_document_bank_accounts_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 CheckDocumentsApi.check_document_bank_accounts_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 CheckDocumentsApi.check_document_bank_accounts_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,
@@ -144,20 +123,18 @@ module YousignClient
144
123
  end
145
124
  # Get informations about an identity document (passport, id cards)
146
125
  # @param id
147
- # @param authorization Authentication credentials for HTTP authentication
148
126
  # @param [Hash] opts the optional parameters
149
127
  # @return [CheckDocumentIdentitiesOutput]
150
- def check_document_identities_id_get(id, authorization, opts = {})
151
- data, _status_code, _headers = check_document_identities_id_get_with_http_info(id, authorization, opts)
128
+ def check_document_identities_id_get(id, opts = {})
129
+ data, _status_code, _headers = check_document_identities_id_get_with_http_info(id, opts)
152
130
  data
153
131
  end
154
132
 
155
133
  # Get informations about an identity document (passport, id cards)
156
134
  # @param id
157
- # @param authorization Authentication credentials for HTTP authentication
158
135
  # @param [Hash] opts the optional parameters
159
136
  # @return [Array<(CheckDocumentIdentitiesOutput, Fixnum, Hash)>] CheckDocumentIdentitiesOutput data, response status code and response headers
160
- def check_document_identities_id_get_with_http_info(id, authorization, opts = {})
137
+ def check_document_identities_id_get_with_http_info(id, opts = {})
161
138
  if @api_client.config.debugging
162
139
  @api_client.config.logger.debug 'Calling API: CheckDocumentsApi.check_document_identities_id_get ...'
163
140
  end
@@ -165,10 +142,6 @@ module YousignClient
165
142
  if @api_client.config.client_side_validation && id.nil?
166
143
  fail ArgumentError, "Missing the required parameter 'id' when calling CheckDocumentsApi.check_document_identities_id_get"
167
144
  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 CheckDocumentsApi.check_document_identities_id_get"
171
- end
172
145
  # resource path
173
146
  local_var_path = '/check-document/identities/{id}'.sub('{' + 'id' + '}', id.to_s)
174
147
 
@@ -181,14 +154,13 @@ module YousignClient
181
154
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
182
155
  # HTTP header 'Content-Type'
183
156
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
184
- header_params[:'Authorization'] = authorization
185
157
 
186
158
  # form parameters
187
159
  form_params = {}
188
160
 
189
161
  # http body (model)
190
162
  post_body = nil
191
- auth_names = []
163
+ auth_names = ['api_key']
192
164
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
193
165
  :header_params => header_params,
194
166
  :query_params => query_params,
@@ -202,34 +174,22 @@ module YousignClient
202
174
  return data, status_code, headers
203
175
  end
204
176
  # Verify an identity document (passport, id cards)
205
- # @param authorization Authentication credentials for HTTP authentication
206
- # @param content_type The MIME type of the body of the request
207
177
  # @param body
208
178
  # @param [Hash] opts the optional parameters
209
179
  # @return [CheckDocumentIdentitiesOutput]
210
- def check_document_identities_post(authorization, content_type, body, opts = {})
211
- data, _status_code, _headers = check_document_identities_post_with_http_info(authorization, content_type, body, opts)
180
+ def check_document_identities_post(body, opts = {})
181
+ data, _status_code, _headers = check_document_identities_post_with_http_info(body, opts)
212
182
  data
213
183
  end
214
184
 
215
185
  # Verify an identity document (passport, id cards)
216
- # @param authorization Authentication credentials for HTTP authentication
217
- # @param content_type The MIME type of the body of the request
218
186
  # @param body
219
187
  # @param [Hash] opts the optional parameters
220
188
  # @return [Array<(CheckDocumentIdentitiesOutput, Fixnum, Hash)>] CheckDocumentIdentitiesOutput data, response status code and response headers
221
- def check_document_identities_post_with_http_info(authorization, content_type, body, opts = {})
189
+ def check_document_identities_post_with_http_info(body, opts = {})
222
190
  if @api_client.config.debugging
223
191
  @api_client.config.logger.debug 'Calling API: CheckDocumentsApi.check_document_identities_post ...'
224
192
  end
225
- # verify the required parameter 'authorization' is set
226
- if @api_client.config.client_side_validation && authorization.nil?
227
- fail ArgumentError, "Missing the required parameter 'authorization' when calling CheckDocumentsApi.check_document_identities_post"
228
- end
229
- # verify the required parameter 'content_type' is set
230
- if @api_client.config.client_side_validation && content_type.nil?
231
- fail ArgumentError, "Missing the required parameter 'content_type' when calling CheckDocumentsApi.check_document_identities_post"
232
- end
233
193
  # verify the required parameter 'body' is set
234
194
  if @api_client.config.client_side_validation && body.nil?
235
195
  fail ArgumentError, "Missing the required parameter 'body' when calling CheckDocumentsApi.check_document_identities_post"
@@ -244,15 +204,13 @@ module YousignClient
244
204
  header_params = {}
245
205
  # HTTP header 'Accept' (if needed)
246
206
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
247
- header_params[:'Authorization'] = authorization
248
- header_params[:'Content-Type'] = content_type
249
207
 
250
208
  # form parameters
251
209
  form_params = {}
252
210
 
253
211
  # http body (model)
254
212
  post_body = @api_client.object_to_http_body(body)
255
- auth_names = []
213
+ auth_names = ['api_key']
256
214
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
257
215
  :header_params => header_params,
258
216
  :query_params => query_params,
@@ -21,20 +21,18 @@ module YousignClient
21
21
  end
22
22
  # Get list of Consent Process Value
23
23
  # @param member id of member
24
- # @param authorization Authentication credentials for HTTP authentication
25
24
  # @param [Hash] opts the optional parameters
26
25
  # @return [ConsentProcessValueOutput]
27
- def consent_process_values_get(member, authorization, opts = {})
28
- data, _status_code, _headers = consent_process_values_get_with_http_info(member, authorization, opts)
26
+ def consent_process_values_get(member, opts = {})
27
+ data, _status_code, _headers = consent_process_values_get_with_http_info(member, opts)
29
28
  data
30
29
  end
31
30
 
32
31
  # Get list of Consent Process Value
33
32
  # @param member id of member
34
- # @param authorization Authentication credentials for HTTP authentication
35
33
  # @param [Hash] opts the optional parameters
36
34
  # @return [Array<(ConsentProcessValueOutput, Fixnum, Hash)>] ConsentProcessValueOutput data, response status code and response headers
37
- def consent_process_values_get_with_http_info(member, authorization, opts = {})
35
+ def consent_process_values_get_with_http_info(member, opts = {})
38
36
  if @api_client.config.debugging
39
37
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_process_values_get ...'
40
38
  end
@@ -42,10 +40,6 @@ module YousignClient
42
40
  if @api_client.config.client_side_validation && member.nil?
43
41
  fail ArgumentError, "Missing the required parameter 'member' when calling ConsentProcessesApi.consent_process_values_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 ConsentProcessesApi.consent_process_values_get"
48
- end
49
43
  # resource path
50
44
  local_var_path = '/consent_process_values'
51
45
 
@@ -59,14 +53,13 @@ module YousignClient
59
53
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
60
54
  # HTTP header 'Content-Type'
61
55
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
62
- header_params[:'Authorization'] = authorization
63
56
 
64
57
  # form parameters
65
58
  form_params = {}
66
59
 
67
60
  # http body (model)
68
61
  post_body = nil
69
- auth_names = []
62
+ auth_names = ['api_key']
70
63
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
71
64
  :header_params => header_params,
72
65
  :query_params => query_params,
@@ -81,22 +74,20 @@ module YousignClient
81
74
  end
82
75
  # Get a Consent Process Value
83
76
  # @param id
84
- # @param authorization Authentication credentials for HTTP authentication
85
77
  # @param [Hash] opts the optional parameters
86
78
  # @option opts [String] :member id of member (required for anonymous)
87
79
  # @return [ConsentProcessValueOutput]
88
- def consent_process_values_id_get(id, authorization, opts = {})
89
- data, _status_code, _headers = consent_process_values_id_get_with_http_info(id, authorization, opts)
80
+ def consent_process_values_id_get(id, opts = {})
81
+ data, _status_code, _headers = consent_process_values_id_get_with_http_info(id, opts)
90
82
  data
91
83
  end
92
84
 
93
85
  # Get a Consent Process Value
94
86
  # @param id
95
- # @param authorization Authentication credentials for HTTP authentication
96
87
  # @param [Hash] opts the optional parameters
97
88
  # @option opts [String] :member id of member (required for anonymous)
98
89
  # @return [Array<(ConsentProcessValueOutput, Fixnum, Hash)>] ConsentProcessValueOutput data, response status code and response headers
99
- def consent_process_values_id_get_with_http_info(id, authorization, opts = {})
90
+ def consent_process_values_id_get_with_http_info(id, opts = {})
100
91
  if @api_client.config.debugging
101
92
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_process_values_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 ConsentProcessesApi.consent_process_values_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 ConsentProcessesApi.consent_process_values_id_get"
110
- end
111
98
  # resource path
112
99
  local_var_path = '/consent_process_values/{id}'.sub('{' + 'id' + '}', id.to_s)
113
100
 
@@ -121,14 +108,13 @@ module YousignClient
121
108
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
122
109
  # HTTP header 'Content-Type'
123
110
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
124
- header_params[:'Authorization'] = authorization
125
111
 
126
112
  # form parameters
127
113
  form_params = {}
128
114
 
129
115
  # http body (model)
130
116
  post_body = nil
131
- auth_names = []
117
+ auth_names = ['api_key']
132
118
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
133
119
  :header_params => header_params,
134
120
  :query_params => query_params,
@@ -142,34 +128,22 @@ module YousignClient
142
128
  return data, status_code, headers
143
129
  end
144
130
  # Create a new Consent Process Value
145
- # @param authorization Authentication credentials for HTTP authentication
146
- # @param content_type The MIME type of the body of the request
147
131
  # @param body
148
132
  # @param [Hash] opts the optional parameters
149
133
  # @return [ConsentProcessValueOutput]
150
- def consent_process_values_post(authorization, content_type, body, opts = {})
151
- data, _status_code, _headers = consent_process_values_post_with_http_info(authorization, content_type, body, opts)
134
+ def consent_process_values_post(body, opts = {})
135
+ data, _status_code, _headers = consent_process_values_post_with_http_info(body, opts)
152
136
  data
153
137
  end
154
138
 
155
139
  # Create a new Consent Process Value
156
- # @param authorization Authentication credentials for HTTP authentication
157
- # @param content_type The MIME type of the body of the request
158
140
  # @param body
159
141
  # @param [Hash] opts the optional parameters
160
142
  # @return [Array<(ConsentProcessValueOutput, Fixnum, Hash)>] ConsentProcessValueOutput data, response status code and response headers
161
- def consent_process_values_post_with_http_info(authorization, content_type, body, opts = {})
143
+ def consent_process_values_post_with_http_info(body, opts = {})
162
144
  if @api_client.config.debugging
163
145
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_process_values_post ...'
164
146
  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 ConsentProcessesApi.consent_process_values_post"
168
- end
169
- # verify the required parameter 'content_type' is set
170
- if @api_client.config.client_side_validation && content_type.nil?
171
- fail ArgumentError, "Missing the required parameter 'content_type' when calling ConsentProcessesApi.consent_process_values_post"
172
- end
173
147
  # verify the required parameter 'body' is set
174
148
  if @api_client.config.client_side_validation && body.nil?
175
149
  fail ArgumentError, "Missing the required parameter 'body' when calling ConsentProcessesApi.consent_process_values_post"
@@ -186,15 +160,13 @@ module YousignClient
186
160
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
187
161
  # HTTP header 'Content-Type'
188
162
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
189
- header_params[:'Authorization'] = authorization
190
- header_params[:'Content-Type'] = content_type
191
163
 
192
164
  # form parameters
193
165
  form_params = {}
194
166
 
195
167
  # http body (model)
196
168
  post_body = @api_client.object_to_http_body(body)
197
- auth_names = []
169
+ auth_names = ['api_key']
198
170
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
199
171
  :header_params => header_params,
200
172
  :query_params => query_params,
@@ -208,30 +180,24 @@ module YousignClient
208
180
  return data, status_code, headers
209
181
  end
210
182
  # Get list of Consent Processes
211
- # @param authorization Authentication credentials for HTTP authentication
212
183
  # @param [Hash] opts the optional parameters
213
184
  # @option opts [String] :member id of member (required for anonymous)
214
185
  # @option opts [String] :procedure id of procedure (required if the member attribut is not set)
215
186
  # @return [Array<ConsentProcessOutput>]
216
- def consent_processes_get(authorization, opts = {})
217
- data, _status_code, _headers = consent_processes_get_with_http_info(authorization, opts)
187
+ def consent_processes_get(opts = {})
188
+ data, _status_code, _headers = consent_processes_get_with_http_info(opts)
218
189
  data
219
190
  end
220
191
 
221
192
  # Get list of Consent Processes
222
- # @param authorization Authentication credentials for HTTP authentication
223
193
  # @param [Hash] opts the optional parameters
224
194
  # @option opts [String] :member id of member (required for anonymous)
225
195
  # @option opts [String] :procedure id of procedure (required if the member attribut is not set)
226
196
  # @return [Array<(Array<ConsentProcessOutput>, Fixnum, Hash)>] Array<ConsentProcessOutput> data, response status code and response headers
227
- def consent_processes_get_with_http_info(authorization, opts = {})
197
+ def consent_processes_get_with_http_info(opts = {})
228
198
  if @api_client.config.debugging
229
199
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_get ...'
230
200
  end
231
- # verify the required parameter 'authorization' is set
232
- if @api_client.config.client_side_validation && authorization.nil?
233
- fail ArgumentError, "Missing the required parameter 'authorization' when calling ConsentProcessesApi.consent_processes_get"
234
- end
235
201
  # resource path
236
202
  local_var_path = '/consent_processes'
237
203
 
@@ -246,14 +212,13 @@ module YousignClient
246
212
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
247
213
  # HTTP header 'Content-Type'
248
214
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
249
- header_params[:'Authorization'] = authorization
250
215
 
251
216
  # form parameters
252
217
  form_params = {}
253
218
 
254
219
  # http body (model)
255
220
  post_body = nil
256
- auth_names = []
221
+ auth_names = ['api_key']
257
222
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
258
223
  :header_params => header_params,
259
224
  :query_params => query_params,
@@ -268,20 +233,18 @@ module YousignClient
268
233
  end
269
234
  # Delete a Consent Process
270
235
  # @param id
271
- # @param authorization Authentication credentials for HTTP authentication
272
236
  # @param [Hash] opts the optional parameters
273
237
  # @return [nil]
274
- def consent_processes_id_delete(id, authorization, opts = {})
275
- consent_processes_id_delete_with_http_info(id, authorization, opts)
238
+ def consent_processes_id_delete(id, opts = {})
239
+ consent_processes_id_delete_with_http_info(id, opts)
276
240
  nil
277
241
  end
278
242
 
279
243
  # Delete a Consent Process
280
244
  # @param id
281
- # @param authorization Authentication credentials for HTTP authentication
282
245
  # @param [Hash] opts the optional parameters
283
246
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
284
- def consent_processes_id_delete_with_http_info(id, authorization, opts = {})
247
+ def consent_processes_id_delete_with_http_info(id, opts = {})
285
248
  if @api_client.config.debugging
286
249
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_id_delete ...'
287
250
  end
@@ -289,10 +252,6 @@ module YousignClient
289
252
  if @api_client.config.client_side_validation && id.nil?
290
253
  fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_processes_id_delete"
291
254
  end
292
- # verify the required parameter 'authorization' is set
293
- if @api_client.config.client_side_validation && authorization.nil?
294
- fail ArgumentError, "Missing the required parameter 'authorization' when calling ConsentProcessesApi.consent_processes_id_delete"
295
- end
296
255
  # resource path
297
256
  local_var_path = '/consent_processes/{id}'.sub('{' + 'id' + '}', id.to_s)
298
257
 
@@ -305,14 +264,13 @@ module YousignClient
305
264
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
306
265
  # HTTP header 'Content-Type'
307
266
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
308
- header_params[:'Authorization'] = authorization
309
267
 
310
268
  # form parameters
311
269
  form_params = {}
312
270
 
313
271
  # http body (model)
314
272
  post_body = nil
315
- auth_names = []
273
+ auth_names = ['api_key']
316
274
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
317
275
  :header_params => header_params,
318
276
  :query_params => query_params,
@@ -326,22 +284,20 @@ module YousignClient
326
284
  end
327
285
  # Get a Consent Process
328
286
  # @param id
329
- # @param authorization Authentication credentials for HTTP authentication
330
287
  # @param [Hash] opts the optional parameters
331
288
  # @option opts [String] :member id of member (required for anonymous)
332
289
  # @return [ConsentProcessOutput]
333
- def consent_processes_id_get(id, authorization, opts = {})
334
- data, _status_code, _headers = consent_processes_id_get_with_http_info(id, authorization, opts)
290
+ def consent_processes_id_get(id, opts = {})
291
+ data, _status_code, _headers = consent_processes_id_get_with_http_info(id, opts)
335
292
  data
336
293
  end
337
294
 
338
295
  # Get a Consent Process
339
296
  # @param id
340
- # @param authorization Authentication credentials for HTTP authentication
341
297
  # @param [Hash] opts the optional parameters
342
298
  # @option opts [String] :member id of member (required for anonymous)
343
299
  # @return [Array<(ConsentProcessOutput, Fixnum, Hash)>] ConsentProcessOutput data, response status code and response headers
344
- def consent_processes_id_get_with_http_info(id, authorization, opts = {})
300
+ def consent_processes_id_get_with_http_info(id, opts = {})
345
301
  if @api_client.config.debugging
346
302
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_id_get ...'
347
303
  end
@@ -349,10 +305,6 @@ module YousignClient
349
305
  if @api_client.config.client_side_validation && id.nil?
350
306
  fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_processes_id_get"
351
307
  end
352
- # verify the required parameter 'authorization' is set
353
- if @api_client.config.client_side_validation && authorization.nil?
354
- fail ArgumentError, "Missing the required parameter 'authorization' when calling ConsentProcessesApi.consent_processes_id_get"
355
- end
356
308
  # resource path
357
309
  local_var_path = '/consent_processes/{id}'.sub('{' + 'id' + '}', id.to_s)
358
310
 
@@ -366,14 +318,13 @@ module YousignClient
366
318
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
367
319
  # HTTP header 'Content-Type'
368
320
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
369
- header_params[:'Authorization'] = authorization
370
321
 
371
322
  # form parameters
372
323
  form_params = {}
373
324
 
374
325
  # http body (model)
375
326
  post_body = nil
376
- auth_names = []
327
+ auth_names = ['api_key']
377
328
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
378
329
  :header_params => header_params,
379
330
  :query_params => query_params,
@@ -388,24 +339,20 @@ module YousignClient
388
339
  end
389
340
  # Update a Consent Process
390
341
  # @param id
391
- # @param authorization Authentication credentials for HTTP authentication
392
- # @param content_type The MIME type of the body of the request
393
342
  # @param body
394
343
  # @param [Hash] opts the optional parameters
395
344
  # @return [ConsentProcessOutput]
396
- def consent_processes_id_put(id, authorization, content_type, body, opts = {})
397
- data, _status_code, _headers = consent_processes_id_put_with_http_info(id, authorization, content_type, body, opts)
345
+ def consent_processes_id_put(id, body, opts = {})
346
+ data, _status_code, _headers = consent_processes_id_put_with_http_info(id, body, opts)
398
347
  data
399
348
  end
400
349
 
401
350
  # Update a Consent Process
402
351
  # @param id
403
- # @param authorization Authentication credentials for HTTP authentication
404
- # @param content_type The MIME type of the body of the request
405
352
  # @param body
406
353
  # @param [Hash] opts the optional parameters
407
354
  # @return [Array<(ConsentProcessOutput, Fixnum, Hash)>] ConsentProcessOutput data, response status code and response headers
408
- def consent_processes_id_put_with_http_info(id, authorization, content_type, body, opts = {})
355
+ def consent_processes_id_put_with_http_info(id, body, opts = {})
409
356
  if @api_client.config.debugging
410
357
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_id_put ...'
411
358
  end
@@ -413,14 +360,6 @@ module YousignClient
413
360
  if @api_client.config.client_side_validation && id.nil?
414
361
  fail ArgumentError, "Missing the required parameter 'id' when calling ConsentProcessesApi.consent_processes_id_put"
415
362
  end
416
- # verify the required parameter 'authorization' is set
417
- if @api_client.config.client_side_validation && authorization.nil?
418
- fail ArgumentError, "Missing the required parameter 'authorization' when calling ConsentProcessesApi.consent_processes_id_put"
419
- end
420
- # verify the required parameter 'content_type' is set
421
- if @api_client.config.client_side_validation && content_type.nil?
422
- fail ArgumentError, "Missing the required parameter 'content_type' when calling ConsentProcessesApi.consent_processes_id_put"
423
- end
424
363
  # verify the required parameter 'body' is set
425
364
  if @api_client.config.client_side_validation && body.nil?
426
365
  fail ArgumentError, "Missing the required parameter 'body' when calling ConsentProcessesApi.consent_processes_id_put"
@@ -437,15 +376,13 @@ module YousignClient
437
376
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
438
377
  # HTTP header 'Content-Type'
439
378
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
440
- header_params[:'Authorization'] = authorization
441
- header_params[:'Content-Type'] = content_type
442
379
 
443
380
  # form parameters
444
381
  form_params = {}
445
382
 
446
383
  # http body (model)
447
384
  post_body = @api_client.object_to_http_body(body)
448
- auth_names = []
385
+ auth_names = ['api_key']
449
386
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
450
387
  :header_params => header_params,
451
388
  :query_params => query_params,
@@ -459,34 +396,22 @@ module YousignClient
459
396
  return data, status_code, headers
460
397
  end
461
398
  # Create a new Consent Process
462
- # @param authorization Authentication credentials for HTTP authentication
463
- # @param content_type The MIME type of the body of the request
464
399
  # @param body
465
400
  # @param [Hash] opts the optional parameters
466
401
  # @return [ConsentProcessOutput]
467
- def consent_processes_post(authorization, content_type, body, opts = {})
468
- data, _status_code, _headers = consent_processes_post_with_http_info(authorization, content_type, body, opts)
402
+ def consent_processes_post(body, opts = {})
403
+ data, _status_code, _headers = consent_processes_post_with_http_info(body, opts)
469
404
  data
470
405
  end
471
406
 
472
407
  # Create a new Consent Process
473
- # @param authorization Authentication credentials for HTTP authentication
474
- # @param content_type The MIME type of the body of the request
475
408
  # @param body
476
409
  # @param [Hash] opts the optional parameters
477
410
  # @return [Array<(ConsentProcessOutput, Fixnum, Hash)>] ConsentProcessOutput data, response status code and response headers
478
- def consent_processes_post_with_http_info(authorization, content_type, body, opts = {})
411
+ def consent_processes_post_with_http_info(body, opts = {})
479
412
  if @api_client.config.debugging
480
413
  @api_client.config.logger.debug 'Calling API: ConsentProcessesApi.consent_processes_post ...'
481
414
  end
482
- # verify the required parameter 'authorization' is set
483
- if @api_client.config.client_side_validation && authorization.nil?
484
- fail ArgumentError, "Missing the required parameter 'authorization' when calling ConsentProcessesApi.consent_processes_post"
485
- end
486
- # verify the required parameter 'content_type' is set
487
- if @api_client.config.client_side_validation && content_type.nil?
488
- fail ArgumentError, "Missing the required parameter 'content_type' when calling ConsentProcessesApi.consent_processes_post"
489
- end
490
415
  # verify the required parameter 'body' is set
491
416
  if @api_client.config.client_side_validation && body.nil?
492
417
  fail ArgumentError, "Missing the required parameter 'body' when calling ConsentProcessesApi.consent_processes_post"
@@ -503,15 +428,13 @@ module YousignClient
503
428
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
504
429
  # HTTP header 'Content-Type'
505
430
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
506
- header_params[:'Authorization'] = authorization
507
- header_params[:'Content-Type'] = content_type
508
431
 
509
432
  # form parameters
510
433
  form_params = {}
511
434
 
512
435
  # http body (model)
513
436
  post_body = @api_client.object_to_http_body(body)
514
- auth_names = []
437
+ auth_names = ['api_key']
515
438
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
516
439
  :header_params => header_params,
517
440
  :query_params => query_params,