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.
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
@@ -20,26 +20,20 @@ module YousignClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get User Group list
23
- # @param authorization Authentication credentials for HTTP authentication
24
23
  # @param [Hash] opts the optional parameters
25
24
  # @return [Array<UserGroup>]
26
- def user_groups_get(authorization, opts = {})
27
- data, _status_code, _headers = user_groups_get_with_http_info(authorization, opts)
25
+ def user_groups_get(opts = {})
26
+ data, _status_code, _headers = user_groups_get_with_http_info(opts)
28
27
  data
29
28
  end
30
29
 
31
30
  # Get User Group list
32
- # @param authorization Authentication credentials for HTTP authentication
33
31
  # @param [Hash] opts the optional parameters
34
32
  # @return [Array<(Array<UserGroup>, Fixnum, Hash)>] Array<UserGroup> data, response status code and response headers
35
- def user_groups_get_with_http_info(authorization, opts = {})
33
+ def user_groups_get_with_http_info(opts = {})
36
34
  if @api_client.config.debugging
37
35
  @api_client.config.logger.debug 'Calling API: UserGroupsApi.user_groups_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 UserGroupsApi.user_groups_get"
42
- end
43
37
  # resource path
44
38
  local_var_path = '/user_groups'
45
39
 
@@ -52,14 +46,13 @@ module YousignClient
52
46
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
47
  # HTTP header 'Content-Type'
54
48
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
- header_params[:'Authorization'] = authorization
56
49
 
57
50
  # form parameters
58
51
  form_params = {}
59
52
 
60
53
  # http body (model)
61
54
  post_body = nil
62
- auth_names = []
55
+ auth_names = ['api_key']
63
56
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
64
57
  :header_params => header_params,
65
58
  :query_params => query_params,
@@ -74,20 +67,18 @@ module YousignClient
74
67
  end
75
68
  # Find a User Group by ID
76
69
  # @param id
77
- # @param authorization Authentication credentials for HTTP authentication
78
70
  # @param [Hash] opts the optional parameters
79
71
  # @return [UserGroup]
80
- def user_groups_id_get(id, authorization, opts = {})
81
- data, _status_code, _headers = user_groups_id_get_with_http_info(id, authorization, opts)
72
+ def user_groups_id_get(id, opts = {})
73
+ data, _status_code, _headers = user_groups_id_get_with_http_info(id, opts)
82
74
  data
83
75
  end
84
76
 
85
77
  # Find a User Group by ID
86
78
  # @param id
87
- # @param authorization Authentication credentials for HTTP authentication
88
79
  # @param [Hash] opts the optional parameters
89
80
  # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers
90
- def user_groups_id_get_with_http_info(id, authorization, opts = {})
81
+ def user_groups_id_get_with_http_info(id, opts = {})
91
82
  if @api_client.config.debugging
92
83
  @api_client.config.logger.debug 'Calling API: UserGroupsApi.user_groups_id_get ...'
93
84
  end
@@ -95,10 +86,6 @@ module YousignClient
95
86
  if @api_client.config.client_side_validation && id.nil?
96
87
  fail ArgumentError, "Missing the required parameter 'id' when calling UserGroupsApi.user_groups_id_get"
97
88
  end
98
- # verify the required parameter 'authorization' is set
99
- if @api_client.config.client_side_validation && authorization.nil?
100
- fail ArgumentError, "Missing the required parameter 'authorization' when calling UserGroupsApi.user_groups_id_get"
101
- end
102
89
  # resource path
103
90
  local_var_path = '/user_groups/{id}'.sub('{' + 'id' + '}', id.to_s)
104
91
 
@@ -111,14 +98,13 @@ module YousignClient
111
98
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
99
  # HTTP header 'Content-Type'
113
100
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
114
- header_params[:'Authorization'] = authorization
115
101
 
116
102
  # form parameters
117
103
  form_params = {}
118
104
 
119
105
  # http body (model)
120
106
  post_body = nil
121
- auth_names = []
107
+ auth_names = ['api_key']
122
108
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
123
109
  :header_params => header_params,
124
110
  :query_params => query_params,
@@ -20,26 +20,20 @@ module YousignClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # List all Users
23
- # @param authorization Authentication credentials for HTTP authentication
24
23
  # @param [Hash] opts the optional parameters
25
24
  # @return [Array<UserOutput>]
26
- def users_get(authorization, opts = {})
27
- data, _status_code, _headers = users_get_with_http_info(authorization, opts)
25
+ def users_get(opts = {})
26
+ data, _status_code, _headers = users_get_with_http_info(opts)
28
27
  data
29
28
  end
30
29
 
31
30
  # List all Users
32
- # @param authorization Authentication credentials for HTTP authentication
33
31
  # @param [Hash] opts the optional parameters
34
32
  # @return [Array<(Array<UserOutput>, Fixnum, Hash)>] Array<UserOutput> data, response status code and response headers
35
- def users_get_with_http_info(authorization, opts = {})
33
+ def users_get_with_http_info(opts = {})
36
34
  if @api_client.config.debugging
37
35
  @api_client.config.logger.debug 'Calling API: UsersApi.users_get ...'
38
36
  end
39
- # verify the required parameter 'authorization' is set
40
- if @api_client.config.client_side_validation && authorization.nil?
41
- fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_get"
42
- end
43
37
  # resource path
44
38
  local_var_path = '/users'
45
39
 
@@ -52,14 +46,13 @@ module YousignClient
52
46
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
47
  # HTTP header 'Content-Type'
54
48
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
- header_params[:'Authorization'] = authorization
56
49
 
57
50
  # form parameters
58
51
  form_params = {}
59
52
 
60
53
  # http body (model)
61
54
  post_body = nil
62
- auth_names = []
55
+ auth_names = ['api_key']
63
56
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
64
57
  :header_params => header_params,
65
58
  :query_params => query_params,
@@ -74,20 +67,18 @@ module YousignClient
74
67
  end
75
68
  # Delete a User
76
69
  # @param id
77
- # @param authorization Authentication credentials for HTTP authentication
78
70
  # @param [Hash] opts the optional parameters
79
71
  # @return [nil]
80
- def users_id_delete(id, authorization, opts = {})
81
- users_id_delete_with_http_info(id, authorization, opts)
72
+ def users_id_delete(id, opts = {})
73
+ users_id_delete_with_http_info(id, opts)
82
74
  nil
83
75
  end
84
76
 
85
77
  # Delete a User
86
78
  # @param id
87
- # @param authorization Authentication credentials for HTTP authentication
88
79
  # @param [Hash] opts the optional parameters
89
80
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
90
- def users_id_delete_with_http_info(id, authorization, opts = {})
81
+ def users_id_delete_with_http_info(id, opts = {})
91
82
  if @api_client.config.debugging
92
83
  @api_client.config.logger.debug 'Calling API: UsersApi.users_id_delete ...'
93
84
  end
@@ -95,10 +86,6 @@ module YousignClient
95
86
  if @api_client.config.client_side_validation && id.nil?
96
87
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_delete"
97
88
  end
98
- # verify the required parameter 'authorization' is set
99
- if @api_client.config.client_side_validation && authorization.nil?
100
- fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_delete"
101
- end
102
89
  # resource path
103
90
  local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
104
91
 
@@ -111,14 +98,13 @@ module YousignClient
111
98
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
112
99
  # HTTP header 'Content-Type'
113
100
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
114
- header_params[:'Authorization'] = authorization
115
101
 
116
102
  # form parameters
117
103
  form_params = {}
118
104
 
119
105
  # http body (model)
120
106
  post_body = nil
121
- auth_names = []
107
+ auth_names = ['api_key']
122
108
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
123
109
  :header_params => header_params,
124
110
  :query_params => query_params,
@@ -132,20 +118,18 @@ module YousignClient
132
118
  end
133
119
  # Find a User by ID
134
120
  # @param id
135
- # @param authorization Authentication credentials for HTTP authentication
136
121
  # @param [Hash] opts the optional parameters
137
122
  # @return [UserOutput]
138
- def users_id_get(id, authorization, opts = {})
139
- data, _status_code, _headers = users_id_get_with_http_info(id, authorization, opts)
123
+ def users_id_get(id, opts = {})
124
+ data, _status_code, _headers = users_id_get_with_http_info(id, opts)
140
125
  data
141
126
  end
142
127
 
143
128
  # Find a User by ID
144
129
  # @param id
145
- # @param authorization Authentication credentials for HTTP authentication
146
130
  # @param [Hash] opts the optional parameters
147
131
  # @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
148
- def users_id_get_with_http_info(id, authorization, opts = {})
132
+ def users_id_get_with_http_info(id, opts = {})
149
133
  if @api_client.config.debugging
150
134
  @api_client.config.logger.debug 'Calling API: UsersApi.users_id_get ...'
151
135
  end
@@ -153,10 +137,6 @@ module YousignClient
153
137
  if @api_client.config.client_side_validation && id.nil?
154
138
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_get"
155
139
  end
156
- # verify the required parameter 'authorization' is set
157
- if @api_client.config.client_side_validation && authorization.nil?
158
- fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_get"
159
- end
160
140
  # resource path
161
141
  local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
162
142
 
@@ -169,14 +149,13 @@ module YousignClient
169
149
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
150
  # HTTP header 'Content-Type'
171
151
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
172
- header_params[:'Authorization'] = authorization
173
152
 
174
153
  # form parameters
175
154
  form_params = {}
176
155
 
177
156
  # http body (model)
178
157
  post_body = nil
179
- auth_names = []
158
+ auth_names = ['api_key']
180
159
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
181
160
  :header_params => header_params,
182
161
  :query_params => query_params,
@@ -191,24 +170,20 @@ module YousignClient
191
170
  end
192
171
  # Update a User
193
172
  # @param id
194
- # @param authorization Authentication credentials for HTTP authentication
195
- # @param content_type The MIME type of the body of the request
196
173
  # @param body
197
174
  # @param [Hash] opts the optional parameters
198
175
  # @return [UserOutput]
199
- def users_id_put(id, authorization, content_type, body, opts = {})
200
- data, _status_code, _headers = users_id_put_with_http_info(id, authorization, content_type, body, opts)
176
+ def users_id_put(id, body, opts = {})
177
+ data, _status_code, _headers = users_id_put_with_http_info(id, body, opts)
201
178
  data
202
179
  end
203
180
 
204
181
  # Update a User
205
182
  # @param id
206
- # @param authorization Authentication credentials for HTTP authentication
207
- # @param content_type The MIME type of the body of the request
208
183
  # @param body
209
184
  # @param [Hash] opts the optional parameters
210
185
  # @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
211
- def users_id_put_with_http_info(id, authorization, content_type, body, opts = {})
186
+ def users_id_put_with_http_info(id, body, opts = {})
212
187
  if @api_client.config.debugging
213
188
  @api_client.config.logger.debug 'Calling API: UsersApi.users_id_put ...'
214
189
  end
@@ -216,14 +191,6 @@ module YousignClient
216
191
  if @api_client.config.client_side_validation && id.nil?
217
192
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_id_put"
218
193
  end
219
- # verify the required parameter 'authorization' is set
220
- if @api_client.config.client_side_validation && authorization.nil?
221
- fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_id_put"
222
- end
223
- # verify the required parameter 'content_type' is set
224
- if @api_client.config.client_side_validation && content_type.nil?
225
- fail ArgumentError, "Missing the required parameter 'content_type' when calling UsersApi.users_id_put"
226
- end
227
194
  # verify the required parameter 'body' is set
228
195
  if @api_client.config.client_side_validation && body.nil?
229
196
  fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_id_put"
@@ -238,15 +205,13 @@ module YousignClient
238
205
  header_params = {}
239
206
  # HTTP header 'Accept' (if needed)
240
207
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
241
- header_params[:'Authorization'] = authorization
242
- header_params[:'Content-Type'] = content_type
243
208
 
244
209
  # form parameters
245
210
  form_params = {}
246
211
 
247
212
  # http body (model)
248
213
  post_body = @api_client.object_to_http_body(body)
249
- auth_names = []
214
+ auth_names = ['api_key']
250
215
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
251
216
  :header_params => header_params,
252
217
  :query_params => query_params,
@@ -260,34 +225,22 @@ module YousignClient
260
225
  return data, status_code, headers
261
226
  end
262
227
  # Create a new User on Yousign application
263
- # @param authorization Authentication credentials for HTTP authentication
264
- # @param content_type The MIME type of the body of the request
265
228
  # @param body
266
229
  # @param [Hash] opts the optional parameters
267
230
  # @return [UserOutput]
268
- def users_post(authorization, content_type, body, opts = {})
269
- data, _status_code, _headers = users_post_with_http_info(authorization, content_type, body, opts)
231
+ def users_post(body, opts = {})
232
+ data, _status_code, _headers = users_post_with_http_info(body, opts)
270
233
  data
271
234
  end
272
235
 
273
236
  # Create a new User on Yousign application
274
- # @param authorization Authentication credentials for HTTP authentication
275
- # @param content_type The MIME type of the body of the request
276
237
  # @param body
277
238
  # @param [Hash] opts the optional parameters
278
239
  # @return [Array<(UserOutput, Fixnum, Hash)>] UserOutput data, response status code and response headers
279
- def users_post_with_http_info(authorization, content_type, body, opts = {})
240
+ def users_post_with_http_info(body, opts = {})
280
241
  if @api_client.config.debugging
281
242
  @api_client.config.logger.debug 'Calling API: UsersApi.users_post ...'
282
243
  end
283
- # verify the required parameter 'authorization' is set
284
- if @api_client.config.client_side_validation && authorization.nil?
285
- fail ArgumentError, "Missing the required parameter 'authorization' when calling UsersApi.users_post"
286
- end
287
- # verify the required parameter 'content_type' is set
288
- if @api_client.config.client_side_validation && content_type.nil?
289
- fail ArgumentError, "Missing the required parameter 'content_type' when calling UsersApi.users_post"
290
- end
291
244
  # verify the required parameter 'body' is set
292
245
  if @api_client.config.client_side_validation && body.nil?
293
246
  fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post"
@@ -302,15 +255,13 @@ module YousignClient
302
255
  header_params = {}
303
256
  # HTTP header 'Accept' (if needed)
304
257
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
305
- header_params[:'Authorization'] = authorization
306
- header_params[:'Content-Type'] = content_type
307
258
 
308
259
  # form parameters
309
260
  form_params = {}
310
261
 
311
262
  # http body (model)
312
263
  post_body = @api_client.object_to_http_body(body)
313
- auth_names = []
264
+ auth_names = ['api_key']
314
265
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
315
266
  :header_params => header_params,
316
267
  :query_params => query_params,
@@ -20,26 +20,20 @@ module YousignClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # List all Workspaces
23
- # @param authorization Authentication credentials for HTTP authentication
24
23
  # @param [Hash] opts the optional parameters
25
24
  # @return [Array<WorkspaceOutput>]
26
- def workspaces_get(authorization, opts = {})
27
- data, _status_code, _headers = workspaces_get_with_http_info(authorization, opts)
25
+ def workspaces_get(opts = {})
26
+ data, _status_code, _headers = workspaces_get_with_http_info(opts)
28
27
  data
29
28
  end
30
29
 
31
30
  # List all Workspaces
32
- # @param authorization Authentication credentials for HTTP authentication
33
31
  # @param [Hash] opts the optional parameters
34
32
  # @return [Array<(Array<WorkspaceOutput>, Fixnum, Hash)>] Array<WorkspaceOutput> data, response status code and response headers
35
- def workspaces_get_with_http_info(authorization, opts = {})
33
+ def workspaces_get_with_http_info(opts = {})
36
34
  if @api_client.config.debugging
37
35
  @api_client.config.logger.debug 'Calling API: WorkspacesApi.workspaces_get ...'
38
36
  end
39
- # verify the required parameter 'authorization' is set
40
- if @api_client.config.client_side_validation && authorization.nil?
41
- fail ArgumentError, "Missing the required parameter 'authorization' when calling WorkspacesApi.workspaces_get"
42
- end
43
37
  # resource path
44
38
  local_var_path = '/workspaces'
45
39
 
@@ -52,14 +46,13 @@ module YousignClient
52
46
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
47
  # HTTP header 'Content-Type'
54
48
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
- header_params[:'Authorization'] = authorization
56
49
 
57
50
  # form parameters
58
51
  form_params = {}
59
52
 
60
53
  # http body (model)
61
54
  post_body = nil
62
- auth_names = []
55
+ auth_names = ['api_key']
63
56
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
64
57
  :header_params => header_params,
65
58
  :query_params => query_params,
@@ -196,7 +196,7 @@ module YousignClient
196
196
  # Returns Auth Settings hash for api client.
197
197
  def auth_settings
198
198
  {
199
- 'ApiKey' =>
199
+ 'api_key' =>
200
200
  {
201
201
  type: 'api_key',
202
202
  in: 'header',
@@ -214,32 +214,17 @@ module YousignClient
214
214
  # @return Array for valid properties with the reasons
215
215
  def list_invalid_properties
216
216
  invalid_properties = Array.new
217
- if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
218
- invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
219
- end
220
-
221
217
  invalid_properties
222
218
  end
223
219
 
224
220
  # Check to see if the all the properties in the model are valid
225
221
  # @return true if the model is valid
226
222
  def valid?
227
- return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
228
223
  document_type_validator = EnumAttributeValidator.new('String', ['RIB'])
229
224
  return false unless document_type_validator.valid?(@document_type)
230
225
  true
231
226
  end
232
227
 
233
- # Custom attribute writer method with validation
234
- # @param [Object] id Value to be assigned
235
- def id=(id)
236
- if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
237
- fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
238
- end
239
-
240
- @id = id
241
- end
242
-
243
228
  # Custom attribute writer method checking allowed values (enum).
244
229
  # @param [Object] document_type Object to be assigned
245
230
  def document_type=(document_type)
@@ -256,32 +256,17 @@ module YousignClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
260
- invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
261
- end
262
-
263
259
  invalid_properties
264
260
  end
265
261
 
266
262
  # Check to see if the all the properties in the model are valid
267
263
  # @return true if the model is valid
268
264
  def valid?
269
- return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
270
265
  document_type_validator = EnumAttributeValidator.new('String', ['ID_CARD', 'PASSPORT'])
271
266
  return false unless document_type_validator.valid?(@document_type)
272
267
  true
273
268
  end
274
269
 
275
- # Custom attribute writer method with validation
276
- # @param [Object] id Value to be assigned
277
- def id=(id)
278
- if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
279
- fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
280
- end
281
-
282
- @id = id
283
- end
284
-
285
270
  # Custom attribute writer method checking allowed values (enum).
286
271
  # @param [Object] document_type Object to be assigned
287
272
  def document_type=(document_type)