yousign_client 1.0.0 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) 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/FileInput.md +1 -1
  8. data/docs/FileObjectsApi.md +40 -30
  9. data/docs/FilesApi.md +40 -30
  10. data/docs/MembersApi.md +50 -36
  11. data/docs/OperationsApi.md +20 -15
  12. data/docs/OrganizationsApi.md +11 -10
  13. data/docs/ProcedureOutput.md +1 -0
  14. data/docs/ProceduresApi.md +90 -66
  15. data/docs/ServerStampsApi.md +20 -15
  16. data/docs/SignatureUIsApi.md +101 -82
  17. data/docs/UserGroupsApi.md +21 -16
  18. data/docs/UsersApi.md +51 -40
  19. data/docs/WorkspacesApi.md +11 -10
  20. data/generate.sh +10 -0
  21. data/lib/yousign_client/api/authentications_api.rb +25 -88
  22. data/lib/yousign_client/api/check_documents_api.rb +17 -59
  23. data/lib/yousign_client/api/consent_processes_api.rb +33 -110
  24. data/lib/yousign_client/api/file_objects_api.rb +17 -59
  25. data/lib/yousign_client/api/files_api.rb +17 -59
  26. data/lib/yousign_client/api/members_api.rb +21 -70
  27. data/lib/yousign_client/api/operations_api.rb +9 -30
  28. data/lib/yousign_client/api/organizations_api.rb +5 -12
  29. data/lib/yousign_client/api/procedures_api.rb +37 -128
  30. data/lib/yousign_client/api/server_stamps_api.rb +9 -30
  31. data/lib/yousign_client/api/signature_u_is_api.rb +41 -153
  32. data/lib/yousign_client/api/user_groups_api.rb +9 -23
  33. data/lib/yousign_client/api/users_api.rb +21 -70
  34. data/lib/yousign_client/api/workspaces_api.rb +5 -12
  35. data/lib/yousign_client/api_client.rb +4 -4
  36. data/lib/yousign_client/api_error.rb +1 -1
  37. data/lib/yousign_client/configuration.rb +4 -4
  38. data/lib/yousign_client/models/authentication_email_output.rb +1 -1
  39. data/lib/yousign_client/models/authentication_inwebo_output.rb +1 -1
  40. data/lib/yousign_client/models/authentication_sms_output.rb +1 -1
  41. data/lib/yousign_client/models/body.rb +1 -1
  42. data/lib/yousign_client/models/body_1.rb +1 -1
  43. data/lib/yousign_client/models/body_2.rb +1 -1
  44. data/lib/yousign_client/models/check_document_bank_accounts_input.rb +1 -1
  45. data/lib/yousign_client/models/check_document_bank_accounts_output.rb +1 -16
  46. data/lib/yousign_client/models/check_document_identities_input.rb +1 -1
  47. data/lib/yousign_client/models/check_document_identities_output.rb +1 -16
  48. data/lib/yousign_client/models/config_email_template.rb +1 -1
  49. data/lib/yousign_client/models/config_webhook_template.rb +1 -1
  50. data/lib/yousign_client/models/consent_process_input.rb +1 -1
  51. data/lib/yousign_client/models/consent_process_output.rb +1 -1
  52. data/lib/yousign_client/models/consent_process_value_input.rb +1 -1
  53. data/lib/yousign_client/models/consent_process_value_output.rb +1 -1
  54. data/lib/yousign_client/models/file_input.rb +1 -3
  55. data/lib/yousign_client/models/file_input_metadata.rb +1 -1
  56. data/lib/yousign_client/models/file_object_input.rb +1 -16
  57. data/lib/yousign_client/models/file_object_input_without_file_reference.rb +1 -16
  58. data/lib/yousign_client/models/file_object_output.rb +1 -31
  59. data/lib/yousign_client/models/file_object_output_without_file_reference.rb +1 -31
  60. data/lib/yousign_client/models/file_output.rb +1 -31
  61. data/lib/yousign_client/models/inline_response_400.rb +1 -1
  62. data/lib/yousign_client/models/inwebo_user_request.rb +1 -16
  63. data/lib/yousign_client/models/member_input.rb +3 -3
  64. data/lib/yousign_client/models/member_output.rb +3 -18
  65. data/lib/yousign_client/models/mode_sms_configuration.rb +1 -1
  66. data/lib/yousign_client/models/operation_input.rb +1 -1
  67. data/lib/yousign_client/models/operation_output.rb +1 -1
  68. data/lib/yousign_client/models/operation_output_metadata.rb +1 -1
  69. data/lib/yousign_client/models/organization_billing_address.rb +1 -1
  70. data/lib/yousign_client/models/organization_output.rb +1 -16
  71. data/lib/yousign_client/models/procedure_config.rb +1 -1
  72. data/lib/yousign_client/models/procedure_config_email.rb +1 -1
  73. data/lib/yousign_client/models/procedure_config_reminder.rb +1 -1
  74. data/lib/yousign_client/models/procedure_config_reminder_config.rb +1 -1
  75. data/lib/yousign_client/models/procedure_config_reminder_config_email.rb +1 -1
  76. data/lib/yousign_client/models/procedure_config_webhook.rb +1 -1
  77. data/lib/yousign_client/models/procedure_duplicate_input.rb +1 -1
  78. data/lib/yousign_client/models/procedure_input.rb +1 -1
  79. data/lib/yousign_client/models/procedure_input_metadata.rb +1 -1
  80. data/lib/yousign_client/models/procedure_output.rb +12 -47
  81. data/lib/yousign_client/models/procedure_output_metadata.rb +1 -1
  82. data/lib/yousign_client/models/procedure_remind_config.rb +1 -1
  83. data/lib/yousign_client/models/procedure_remind_config_email.rb +1 -1
  84. data/lib/yousign_client/models/procedure_remind_input.rb +1 -1
  85. data/lib/yousign_client/models/server_stamp_config.rb +1 -1
  86. data/lib/yousign_client/models/server_stamp_config_webhook.rb +1 -1
  87. data/lib/yousign_client/models/server_stamp_input.rb +1 -1
  88. data/lib/yousign_client/models/server_stamp_output.rb +1 -1
  89. data/lib/yousign_client/models/signature_ui_input.rb +1 -1
  90. data/lib/yousign_client/models/signature_ui_input_redirect_cancel.rb +1 -1
  91. data/lib/yousign_client/models/signature_ui_input_redirect_error.rb +1 -1
  92. data/lib/yousign_client/models/signature_ui_input_redirect_success.rb +1 -1
  93. data/lib/yousign_client/models/signature_ui_input_update.rb +1 -1
  94. data/lib/yousign_client/models/signature_ui_label_input.rb +1 -1
  95. data/lib/yousign_client/models/signature_ui_label_input_included.rb +1 -1
  96. data/lib/yousign_client/models/signature_ui_label_output.rb +1 -1
  97. data/lib/yousign_client/models/signature_ui_output.rb +1 -1
  98. data/lib/yousign_client/models/signature_ui_output_redirect_cancel.rb +1 -1
  99. data/lib/yousign_client/models/signature_ui_output_redirect_error.rb +1 -1
  100. data/lib/yousign_client/models/signature_ui_output_redirect_success.rb +1 -1
  101. data/lib/yousign_client/models/user_group.rb +1 -16
  102. data/lib/yousign_client/models/user_input.rb +1 -1
  103. data/lib/yousign_client/models/user_input_notifications.rb +1 -1
  104. data/lib/yousign_client/models/user_output.rb +1 -16
  105. data/lib/yousign_client/models/user_output_notifications.rb +1 -1
  106. data/lib/yousign_client/models/user_workspace_output.rb +1 -16
  107. data/lib/yousign_client/models/workspace_config.rb +1 -1
  108. data/lib/yousign_client/models/workspace_config_email.rb +1 -1
  109. data/lib/yousign_client/models/workspace_config_procedure.rb +1 -1
  110. data/lib/yousign_client/models/workspace_output.rb +1 -16
  111. data/lib/yousign_client/version.rb +2 -2
  112. data/lib/yousign_client.rb +1 -1
  113. data/spec/api/authentications_api_spec.rb +0 -9
  114. data/spec/api/check_documents_api_spec.rb +0 -6
  115. data/spec/api/consent_processes_api_spec.rb +0 -11
  116. data/spec/api/file_objects_api_spec.rb +0 -6
  117. data/spec/api/files_api_spec.rb +0 -6
  118. data/spec/api/members_api_spec.rb +0 -7
  119. data/spec/api/operations_api_spec.rb +0 -3
  120. data/spec/api/organizations_api_spec.rb +0 -1
  121. data/spec/api/procedures_api_spec.rb +0 -13
  122. data/spec/api/server_stamps_api_spec.rb +0 -3
  123. data/spec/api/signature_u_is_api_spec.rb +0 -16
  124. data/spec/api/user_groups_api_spec.rb +0 -2
  125. data/spec/api/users_api_spec.rb +0 -7
  126. data/spec/api/workspaces_api_spec.rb +0 -1
  127. data/spec/models/member_input_spec.rb +1 -1
  128. data/spec/models/member_output_spec.rb +1 -1
  129. data/update_client.sh +0 -4
  130. data/yousign_client.gemspec +3 -2
  131. data/yousign_openapi.json +59 -706
  132. metadata +28 -7
data/docs/UsersApi.md CHANGED
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
 
14
14
  # **users_get**
15
- > Array<UserOutput> users_get(authorization)
15
+ > Array<UserOutput> users_get
16
16
 
17
17
  List all Users
18
18
 
@@ -20,15 +20,19 @@ List all Users
20
20
  ```ruby
21
21
  # load the gem
22
22
  require 'yousign_client'
23
+ # setup authorization
24
+ YousignClient.configure do |config|
25
+ # Configure API key authorization: api_key
26
+ config.api_key['Authorization'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Authorization'] = 'Bearer'
29
+ end
23
30
 
24
31
  api_instance = YousignClient::UsersApi.new
25
32
 
26
- authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
27
-
28
-
29
33
  begin
30
34
  #List all Users
31
- result = api_instance.users_get(authorization)
35
+ result = api_instance.users_get
32
36
  p result
33
37
  rescue YousignClient::ApiError => e
34
38
  puts "Exception when calling UsersApi->users_get: #{e}"
@@ -36,10 +40,7 @@ end
36
40
  ```
37
41
 
38
42
  ### Parameters
39
-
40
- Name | Type | Description | Notes
41
- ------------- | ------------- | ------------- | -------------
42
- **authorization** | **String**| Authentication credentials for HTTP authentication |
43
+ This endpoint does not need any parameter.
43
44
 
44
45
  ### Return type
45
46
 
@@ -47,7 +48,7 @@ Name | Type | Description | Notes
47
48
 
48
49
  ### Authorization
49
50
 
50
- No authorization required
51
+ [api_key](../README.md#api_key)
51
52
 
52
53
  ### HTTP request headers
53
54
 
@@ -57,7 +58,7 @@ No authorization required
57
58
 
58
59
 
59
60
  # **users_id_delete**
60
- > users_id_delete(id, authorization)
61
+ > users_id_delete(id)
61
62
 
62
63
  Delete a User
63
64
 
@@ -65,17 +66,22 @@ Delete a User
65
66
  ```ruby
66
67
  # load the gem
67
68
  require 'yousign_client'
69
+ # setup authorization
70
+ YousignClient.configure do |config|
71
+ # Configure API key authorization: api_key
72
+ config.api_key['Authorization'] = 'YOUR API KEY'
73
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
74
+ #config.api_key_prefix['Authorization'] = 'Bearer'
75
+ end
68
76
 
69
77
  api_instance = YousignClient::UsersApi.new
70
78
 
71
79
  id = 'id_example' # String |
72
80
 
73
- authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
74
-
75
81
 
76
82
  begin
77
83
  #Delete a User
78
- api_instance.users_id_delete(id, authorization)
84
+ api_instance.users_id_delete(id)
79
85
  rescue YousignClient::ApiError => e
80
86
  puts "Exception when calling UsersApi->users_id_delete: #{e}"
81
87
  end
@@ -86,7 +92,6 @@ end
86
92
  Name | Type | Description | Notes
87
93
  ------------- | ------------- | ------------- | -------------
88
94
  **id** | **String**| |
89
- **authorization** | **String**| Authentication credentials for HTTP authentication |
90
95
 
91
96
  ### Return type
92
97
 
@@ -94,7 +99,7 @@ nil (empty response body)
94
99
 
95
100
  ### Authorization
96
101
 
97
- No authorization required
102
+ [api_key](../README.md#api_key)
98
103
 
99
104
  ### HTTP request headers
100
105
 
@@ -104,7 +109,7 @@ No authorization required
104
109
 
105
110
 
106
111
  # **users_id_get**
107
- > UserOutput users_id_get(id, authorization)
112
+ > UserOutput users_id_get(id)
108
113
 
109
114
  Find a User by ID
110
115
 
@@ -112,17 +117,22 @@ Find a User by ID
112
117
  ```ruby
113
118
  # load the gem
114
119
  require 'yousign_client'
120
+ # setup authorization
121
+ YousignClient.configure do |config|
122
+ # Configure API key authorization: api_key
123
+ config.api_key['Authorization'] = 'YOUR API KEY'
124
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
125
+ #config.api_key_prefix['Authorization'] = 'Bearer'
126
+ end
115
127
 
116
128
  api_instance = YousignClient::UsersApi.new
117
129
 
118
130
  id = 'id_example' # String |
119
131
 
120
- authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
121
-
122
132
 
123
133
  begin
124
134
  #Find a User by ID
125
- result = api_instance.users_id_get(id, authorization)
135
+ result = api_instance.users_id_get(id)
126
136
  p result
127
137
  rescue YousignClient::ApiError => e
128
138
  puts "Exception when calling UsersApi->users_id_get: #{e}"
@@ -134,7 +144,6 @@ end
134
144
  Name | Type | Description | Notes
135
145
  ------------- | ------------- | ------------- | -------------
136
146
  **id** | **String**| |
137
- **authorization** | **String**| Authentication credentials for HTTP authentication |
138
147
 
139
148
  ### Return type
140
149
 
@@ -142,7 +151,7 @@ Name | Type | Description | Notes
142
151
 
143
152
  ### Authorization
144
153
 
145
- No authorization required
154
+ [api_key](../README.md#api_key)
146
155
 
147
156
  ### HTTP request headers
148
157
 
@@ -152,7 +161,7 @@ No authorization required
152
161
 
153
162
 
154
163
  # **users_id_put**
155
- > UserOutput users_id_put(id, authorization, content_type, body)
164
+ > UserOutput users_id_put(idbody)
156
165
 
157
166
  Update a User
158
167
 
@@ -160,21 +169,24 @@ Update a User
160
169
  ```ruby
161
170
  # load the gem
162
171
  require 'yousign_client'
172
+ # setup authorization
173
+ YousignClient.configure do |config|
174
+ # Configure API key authorization: api_key
175
+ config.api_key['Authorization'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ #config.api_key_prefix['Authorization'] = 'Bearer'
178
+ end
163
179
 
164
180
  api_instance = YousignClient::UsersApi.new
165
181
 
166
182
  id = 'id_example' # String |
167
183
 
168
- authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
169
-
170
- content_type = 'application/json' # String | The MIME type of the body of the request
171
-
172
184
  body = YousignClient::UserInput.new # UserInput |
173
185
 
174
186
 
175
187
  begin
176
188
  #Update a User
177
- result = api_instance.users_id_put(id, authorization, content_type, body)
189
+ result = api_instance.users_id_put(idbody)
178
190
  p result
179
191
  rescue YousignClient::ApiError => e
180
192
  puts "Exception when calling UsersApi->users_id_put: #{e}"
@@ -186,8 +198,6 @@ end
186
198
  Name | Type | Description | Notes
187
199
  ------------- | ------------- | ------------- | -------------
188
200
  **id** | **String**| |
189
- **authorization** | **String**| Authentication credentials for HTTP authentication |
190
- **content_type** | **String**| The MIME type of the body of the request |
191
201
  **body** | [**UserInput**](UserInput.md)| |
192
202
 
193
203
  ### Return type
@@ -196,7 +206,7 @@ Name | Type | Description | Notes
196
206
 
197
207
  ### Authorization
198
208
 
199
- No authorization required
209
+ [api_key](../README.md#api_key)
200
210
 
201
211
  ### HTTP request headers
202
212
 
@@ -206,7 +216,7 @@ No authorization required
206
216
 
207
217
 
208
218
  # **users_post**
209
- > UserOutput users_post(authorization, content_type, body)
219
+ > UserOutput users_post(body)
210
220
 
211
221
  Create a new User on Yousign application
212
222
 
@@ -214,19 +224,22 @@ Create a new User on Yousign application
214
224
  ```ruby
215
225
  # load the gem
216
226
  require 'yousign_client'
227
+ # setup authorization
228
+ YousignClient.configure do |config|
229
+ # Configure API key authorization: api_key
230
+ config.api_key['Authorization'] = 'YOUR API KEY'
231
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
232
+ #config.api_key_prefix['Authorization'] = 'Bearer'
233
+ end
217
234
 
218
235
  api_instance = YousignClient::UsersApi.new
219
236
 
220
- authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
221
-
222
- content_type = 'application/json' # String | The MIME type of the body of the request
223
-
224
237
  body = YousignClient::UserInput.new # UserInput |
225
238
 
226
239
 
227
240
  begin
228
241
  #Create a new User on Yousign application
229
- result = api_instance.users_post(authorization, content_type, body)
242
+ result = api_instance.users_post(body)
230
243
  p result
231
244
  rescue YousignClient::ApiError => e
232
245
  puts "Exception when calling UsersApi->users_post: #{e}"
@@ -237,8 +250,6 @@ end
237
250
 
238
251
  Name | Type | Description | Notes
239
252
  ------------- | ------------- | ------------- | -------------
240
- **authorization** | **String**| Authentication credentials for HTTP authentication |
241
- **content_type** | **String**| The MIME type of the body of the request |
242
253
  **body** | [**UserInput**](UserInput.md)| |
243
254
 
244
255
  ### Return type
@@ -247,7 +258,7 @@ Name | Type | Description | Notes
247
258
 
248
259
  ### Authorization
249
260
 
250
- No authorization required
261
+ [api_key](../README.md#api_key)
251
262
 
252
263
  ### HTTP request headers
253
264
 
@@ -8,7 +8,7 @@ Method | HTTP request | Description
8
8
 
9
9
 
10
10
  # **workspaces_get**
11
- > Array<WorkspaceOutput> workspaces_get(authorization)
11
+ > Array<WorkspaceOutput> workspaces_get
12
12
 
13
13
  List all Workspaces
14
14
 
@@ -16,15 +16,19 @@ List all Workspaces
16
16
  ```ruby
17
17
  # load the gem
18
18
  require 'yousign_client'
19
+ # setup authorization
20
+ YousignClient.configure do |config|
21
+ # Configure API key authorization: api_key
22
+ config.api_key['Authorization'] = 'YOUR API KEY'
23
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
24
+ #config.api_key_prefix['Authorization'] = 'Bearer'
25
+ end
19
26
 
20
27
  api_instance = YousignClient::WorkspacesApi.new
21
28
 
22
- authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
23
-
24
-
25
29
  begin
26
30
  #List all Workspaces
27
- result = api_instance.workspaces_get(authorization)
31
+ result = api_instance.workspaces_get
28
32
  p result
29
33
  rescue YousignClient::ApiError => e
30
34
  puts "Exception when calling WorkspacesApi->workspaces_get: #{e}"
@@ -32,10 +36,7 @@ end
32
36
  ```
33
37
 
34
38
  ### Parameters
35
-
36
- Name | Type | Description | Notes
37
- ------------- | ------------- | ------------- | -------------
38
- **authorization** | **String**| Authentication credentials for HTTP authentication |
39
+ This endpoint does not need any parameter.
39
40
 
40
41
  ### Return type
41
42
 
@@ -43,7 +44,7 @@ Name | Type | Description | Notes
43
44
 
44
45
  ### Authorization
45
46
 
46
- No authorization required
47
+ [api_key](../README.md#api_key)
47
48
 
48
49
  ### HTTP request headers
49
50
 
data/generate.sh ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env bash
2
+
3
+ docker run --rm -it -v $(pwd):/swagger-api/out \
4
+ -v $(pwd):/swagger-api/yaml \
5
+ public.ecr.aws/l8y7v9n3/swagger-codegen-cli:2.4.19 generate \
6
+ -i /swagger-api/yaml/yousign_openapi.json \
7
+ -c /swagger-api/yaml/config.json \
8
+ -l ruby \
9
+ -o /swagger-api/out
10
+
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 2.1
7
7
  Contact: support@yousign.fr
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.14
9
+ Swagger Codegen version: 2.4.19
10
10
 
11
11
  =end
12
12
 
@@ -21,20 +21,18 @@ module YousignClient
21
21
  end
22
22
  # Find an Authentication 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 [AuthenticationEmailOutput]
27
- def authentications_email_id_get(id, authorization, opts = {})
28
- data, _status_code, _headers = authentications_email_id_get_with_http_info(id, authorization, opts)
26
+ def authentications_email_id_get(id, opts = {})
27
+ data, _status_code, _headers = authentications_email_id_get_with_http_info(id, opts)
29
28
  data
30
29
  end
31
30
 
32
31
  # Find an Authentication 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<(AuthenticationEmailOutput, Fixnum, Hash)>] AuthenticationEmailOutput data, response status code and response headers
37
- def authentications_email_id_get_with_http_info(id, authorization, opts = {})
35
+ def authentications_email_id_get_with_http_info(id, opts = {})
38
36
  if @api_client.config.debugging
39
37
  @api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_email_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 AuthenticationsApi.authentications_email_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 AuthenticationsApi.authentications_email_id_get"
48
- end
49
43
  # resource path
50
44
  local_var_path = '/authentications/email/{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,
@@ -80,24 +73,20 @@ module YousignClient
80
73
  end
81
74
  # Update an Email Authentication
82
75
  # @param id
83
- # @param authorization Authentication credentials for HTTP authentication
84
- # @param content_type The MIME type of the body of the request
85
76
  # @param body
86
77
  # @param [Hash] opts the optional parameters
87
78
  # @return [AuthenticationEmailOutput]
88
- def authentications_email_id_put(id, authorization, content_type, body, opts = {})
89
- data, _status_code, _headers = authentications_email_id_put_with_http_info(id, authorization, content_type, body, opts)
79
+ def authentications_email_id_put(id, body, opts = {})
80
+ data, _status_code, _headers = authentications_email_id_put_with_http_info(id, body, opts)
90
81
  data
91
82
  end
92
83
 
93
84
  # Update an Email Authentication
94
85
  # @param id
95
- # @param authorization Authentication credentials for HTTP authentication
96
- # @param content_type The MIME type of the body of the request
97
86
  # @param body
98
87
  # @param [Hash] opts the optional parameters
99
88
  # @return [Array<(AuthenticationEmailOutput, Fixnum, Hash)>] AuthenticationEmailOutput data, response status code and response headers
100
- def authentications_email_id_put_with_http_info(id, authorization, content_type, body, opts = {})
89
+ def authentications_email_id_put_with_http_info(id, body, opts = {})
101
90
  if @api_client.config.debugging
102
91
  @api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_email_id_put ...'
103
92
  end
@@ -105,14 +94,6 @@ module YousignClient
105
94
  if @api_client.config.client_side_validation && id.nil?
106
95
  fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_email_id_put"
107
96
  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 AuthenticationsApi.authentications_email_id_put"
111
- end
112
- # verify the required parameter 'content_type' is set
113
- if @api_client.config.client_side_validation && content_type.nil?
114
- fail ArgumentError, "Missing the required parameter 'content_type' when calling AuthenticationsApi.authentications_email_id_put"
115
- end
116
97
  # verify the required parameter 'body' is set
117
98
  if @api_client.config.client_side_validation && body.nil?
118
99
  fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticationsApi.authentications_email_id_put"
@@ -127,15 +108,13 @@ module YousignClient
127
108
  header_params = {}
128
109
  # HTTP header 'Accept' (if needed)
129
110
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
- header_params[:'Authorization'] = authorization
131
- header_params[:'Content-Type'] = content_type
132
111
 
133
112
  # form parameters
134
113
  form_params = {}
135
114
 
136
115
  # http body (model)
137
116
  post_body = @api_client.object_to_http_body(body)
138
- auth_names = []
117
+ auth_names = ['api_key']
139
118
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
140
119
  :header_params => header_params,
141
120
  :query_params => query_params,
@@ -150,20 +129,18 @@ module YousignClient
150
129
  end
151
130
  # Get an Authentication
152
131
  # @param id
153
- # @param authorization Authentication credentials for HTTP authentication
154
132
  # @param [Hash] opts the optional parameters
155
133
  # @return [AuthenticationInweboOutput]
156
- def authentications_inwebo_id_get(id, authorization, opts = {})
157
- data, _status_code, _headers = authentications_inwebo_id_get_with_http_info(id, authorization, opts)
134
+ def authentications_inwebo_id_get(id, opts = {})
135
+ data, _status_code, _headers = authentications_inwebo_id_get_with_http_info(id, opts)
158
136
  data
159
137
  end
160
138
 
161
139
  # Get an Authentication
162
140
  # @param id
163
- # @param authorization Authentication credentials for HTTP authentication
164
141
  # @param [Hash] opts the optional parameters
165
142
  # @return [Array<(AuthenticationInweboOutput, Fixnum, Hash)>] AuthenticationInweboOutput data, response status code and response headers
166
- def authentications_inwebo_id_get_with_http_info(id, authorization, opts = {})
143
+ def authentications_inwebo_id_get_with_http_info(id, opts = {})
167
144
  if @api_client.config.debugging
168
145
  @api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_inwebo_id_get ...'
169
146
  end
@@ -171,10 +148,6 @@ module YousignClient
171
148
  if @api_client.config.client_side_validation && id.nil?
172
149
  fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_inwebo_id_get"
173
150
  end
174
- # verify the required parameter 'authorization' is set
175
- if @api_client.config.client_side_validation && authorization.nil?
176
- fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_inwebo_id_get"
177
- end
178
151
  # resource path
179
152
  local_var_path = '/authentications/inwebo/{id}'.sub('{' + 'id' + '}', id.to_s)
180
153
 
@@ -187,14 +160,13 @@ module YousignClient
187
160
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
188
161
  # HTTP header 'Content-Type'
189
162
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
190
- header_params[:'Authorization'] = authorization
191
163
 
192
164
  # form parameters
193
165
  form_params = {}
194
166
 
195
167
  # http body (model)
196
168
  post_body = nil
197
- auth_names = []
169
+ auth_names = ['api_key']
198
170
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
199
171
  :header_params => header_params,
200
172
  :query_params => query_params,
@@ -209,24 +181,20 @@ module YousignClient
209
181
  end
210
182
  # Update an inwebo Authentication
211
183
  # @param id
212
- # @param authorization Authentication credentials for HTTP authentication
213
- # @param content_type The MIME type of the body of the request
214
184
  # @param body
215
185
  # @param [Hash] opts the optional parameters
216
186
  # @return [AuthenticationInweboOutput]
217
- def authentications_inwebo_id_put(id, authorization, content_type, body, opts = {})
218
- data, _status_code, _headers = authentications_inwebo_id_put_with_http_info(id, authorization, content_type, body, opts)
187
+ def authentications_inwebo_id_put(id, body, opts = {})
188
+ data, _status_code, _headers = authentications_inwebo_id_put_with_http_info(id, body, opts)
219
189
  data
220
190
  end
221
191
 
222
192
  # Update an inwebo Authentication
223
193
  # @param id
224
- # @param authorization Authentication credentials for HTTP authentication
225
- # @param content_type The MIME type of the body of the request
226
194
  # @param body
227
195
  # @param [Hash] opts the optional parameters
228
196
  # @return [Array<(AuthenticationInweboOutput, Fixnum, Hash)>] AuthenticationInweboOutput data, response status code and response headers
229
- def authentications_inwebo_id_put_with_http_info(id, authorization, content_type, body, opts = {})
197
+ def authentications_inwebo_id_put_with_http_info(id, body, opts = {})
230
198
  if @api_client.config.debugging
231
199
  @api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_inwebo_id_put ...'
232
200
  end
@@ -234,14 +202,6 @@ module YousignClient
234
202
  if @api_client.config.client_side_validation && id.nil?
235
203
  fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_inwebo_id_put"
236
204
  end
237
- # verify the required parameter 'authorization' is set
238
- if @api_client.config.client_side_validation && authorization.nil?
239
- fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_inwebo_id_put"
240
- end
241
- # verify the required parameter 'content_type' is set
242
- if @api_client.config.client_side_validation && content_type.nil?
243
- fail ArgumentError, "Missing the required parameter 'content_type' when calling AuthenticationsApi.authentications_inwebo_id_put"
244
- end
245
205
  # verify the required parameter 'body' is set
246
206
  if @api_client.config.client_side_validation && body.nil?
247
207
  fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticationsApi.authentications_inwebo_id_put"
@@ -256,15 +216,13 @@ module YousignClient
256
216
  header_params = {}
257
217
  # HTTP header 'Accept' (if needed)
258
218
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
259
- header_params[:'Authorization'] = authorization
260
- header_params[:'Content-Type'] = content_type
261
219
 
262
220
  # form parameters
263
221
  form_params = {}
264
222
 
265
223
  # http body (model)
266
224
  post_body = @api_client.object_to_http_body(body)
267
- auth_names = []
225
+ auth_names = ['api_key']
268
226
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
269
227
  :header_params => header_params,
270
228
  :query_params => query_params,
@@ -279,20 +237,18 @@ module YousignClient
279
237
  end
280
238
  # Find an Authentication by ID
281
239
  # @param id
282
- # @param authorization Authentication credentials for HTTP authentication
283
240
  # @param [Hash] opts the optional parameters
284
241
  # @return [AuthenticationSmsOutput]
285
- def authentications_sms_id_get(id, authorization, opts = {})
286
- data, _status_code, _headers = authentications_sms_id_get_with_http_info(id, authorization, opts)
242
+ def authentications_sms_id_get(id, opts = {})
243
+ data, _status_code, _headers = authentications_sms_id_get_with_http_info(id, opts)
287
244
  data
288
245
  end
289
246
 
290
247
  # Find an Authentication by ID
291
248
  # @param id
292
- # @param authorization Authentication credentials for HTTP authentication
293
249
  # @param [Hash] opts the optional parameters
294
250
  # @return [Array<(AuthenticationSmsOutput, Fixnum, Hash)>] AuthenticationSmsOutput data, response status code and response headers
295
- def authentications_sms_id_get_with_http_info(id, authorization, opts = {})
251
+ def authentications_sms_id_get_with_http_info(id, opts = {})
296
252
  if @api_client.config.debugging
297
253
  @api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_sms_id_get ...'
298
254
  end
@@ -300,10 +256,6 @@ module YousignClient
300
256
  if @api_client.config.client_side_validation && id.nil?
301
257
  fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_sms_id_get"
302
258
  end
303
- # verify the required parameter 'authorization' is set
304
- if @api_client.config.client_side_validation && authorization.nil?
305
- fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_sms_id_get"
306
- end
307
259
  # resource path
308
260
  local_var_path = '/authentications/sms/{id}'.sub('{' + 'id' + '}', id.to_s)
309
261
 
@@ -316,14 +268,13 @@ module YousignClient
316
268
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
317
269
  # HTTP header 'Content-Type'
318
270
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
319
- header_params[:'Authorization'] = authorization
320
271
 
321
272
  # form parameters
322
273
  form_params = {}
323
274
 
324
275
  # http body (model)
325
276
  post_body = nil
326
- auth_names = []
277
+ auth_names = ['api_key']
327
278
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
328
279
  :header_params => header_params,
329
280
  :query_params => query_params,
@@ -338,24 +289,20 @@ module YousignClient
338
289
  end
339
290
  # Update an SMS Authentication
340
291
  # @param id
341
- # @param authorization Authentication credentials for HTTP authentication
342
- # @param content_type The MIME type of the body of the request
343
292
  # @param body
344
293
  # @param [Hash] opts the optional parameters
345
294
  # @return [AuthenticationSmsOutput]
346
- def authentications_sms_id_put(id, authorization, content_type, body, opts = {})
347
- data, _status_code, _headers = authentications_sms_id_put_with_http_info(id, authorization, content_type, body, opts)
295
+ def authentications_sms_id_put(id, body, opts = {})
296
+ data, _status_code, _headers = authentications_sms_id_put_with_http_info(id, body, opts)
348
297
  data
349
298
  end
350
299
 
351
300
  # Update an SMS Authentication
352
301
  # @param id
353
- # @param authorization Authentication credentials for HTTP authentication
354
- # @param content_type The MIME type of the body of the request
355
302
  # @param body
356
303
  # @param [Hash] opts the optional parameters
357
304
  # @return [Array<(AuthenticationSmsOutput, Fixnum, Hash)>] AuthenticationSmsOutput data, response status code and response headers
358
- def authentications_sms_id_put_with_http_info(id, authorization, content_type, body, opts = {})
305
+ def authentications_sms_id_put_with_http_info(id, body, opts = {})
359
306
  if @api_client.config.debugging
360
307
  @api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_sms_id_put ...'
361
308
  end
@@ -363,14 +310,6 @@ module YousignClient
363
310
  if @api_client.config.client_side_validation && id.nil?
364
311
  fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_sms_id_put"
365
312
  end
366
- # verify the required parameter 'authorization' is set
367
- if @api_client.config.client_side_validation && authorization.nil?
368
- fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_sms_id_put"
369
- end
370
- # verify the required parameter 'content_type' is set
371
- if @api_client.config.client_side_validation && content_type.nil?
372
- fail ArgumentError, "Missing the required parameter 'content_type' when calling AuthenticationsApi.authentications_sms_id_put"
373
- end
374
313
  # verify the required parameter 'body' is set
375
314
  if @api_client.config.client_side_validation && body.nil?
376
315
  fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticationsApi.authentications_sms_id_put"
@@ -385,15 +324,13 @@ module YousignClient
385
324
  header_params = {}
386
325
  # HTTP header 'Accept' (if needed)
387
326
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
388
- header_params[:'Authorization'] = authorization
389
- header_params[:'Content-Type'] = content_type
390
327
 
391
328
  # form parameters
392
329
  form_params = {}
393
330
 
394
331
  # http body (model)
395
332
  post_body = @api_client.object_to_http_body(body)
396
- auth_names = []
333
+ auth_names = ['api_key']
397
334
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
398
335
  :header_params => header_params,
399
336
  :query_params => query_params,