yousign_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +230 -0
- data/Rakefile +8 -0
- data/config.json +11 -0
- data/docs/AuthenticationEmailOutput.md +10 -0
- data/docs/AuthenticationInweboOutput.md +10 -0
- data/docs/AuthenticationSmsOutput.md +10 -0
- data/docs/AuthenticationsApi.md +320 -0
- data/docs/Body.md +8 -0
- data/docs/Body1.md +9 -0
- data/docs/Body2.md +9 -0
- data/docs/CheckDocumentBankAccountsInput.md +13 -0
- data/docs/CheckDocumentBankAccountsOutput.md +24 -0
- data/docs/CheckDocumentIdentitiesInput.md +11 -0
- data/docs/CheckDocumentIdentitiesOutput.md +28 -0
- data/docs/CheckDocumentsApi.md +210 -0
- data/docs/ConfigEmailTemplate.md +11 -0
- data/docs/ConfigWebhookTemplate.md +10 -0
- data/docs/ConsentProcessInput.md +14 -0
- data/docs/ConsentProcessOutput.md +15 -0
- data/docs/ConsentProcessValueInput.md +10 -0
- data/docs/ConsentProcessValueOutput.md +12 -0
- data/docs/ConsentProcessesApi.md +422 -0
- data/docs/FileInput.md +15 -0
- data/docs/FileInputMetadata.md +9 -0
- data/docs/FileObjectInput.md +21 -0
- data/docs/FileObjectInputWithoutFileReference.md +13 -0
- data/docs/FileObjectOutput.md +24 -0
- data/docs/FileObjectOutputWithoutFileReference.md +17 -0
- data/docs/FileObjectsApi.md +220 -0
- data/docs/FileOutput.md +19 -0
- data/docs/FilesApi.md +218 -0
- data/docs/InlineResponse400.md +8 -0
- data/docs/InweboUserRequest.md +8 -0
- data/docs/MemberInput.md +19 -0
- data/docs/MemberOutput.md +24 -0
- data/docs/MembersApi.md +272 -0
- data/docs/ModeSmsConfiguration.md +8 -0
- data/docs/OperationInput.md +14 -0
- data/docs/OperationOutput.md +15 -0
- data/docs/OperationOutputMetadata.md +9 -0
- data/docs/OperationsApi.md +109 -0
- data/docs/OrganizationBillingAddress.md +16 -0
- data/docs/OrganizationOutput.md +41 -0
- data/docs/OrganizationsApi.md +54 -0
- data/docs/ProcedureConfig.md +10 -0
- data/docs/ProcedureConfigEmail.md +15 -0
- data/docs/ProcedureConfigReminder.md +10 -0
- data/docs/ProcedureConfigReminderConfig.md +8 -0
- data/docs/ProcedureConfigReminderConfigEmail.md +8 -0
- data/docs/ProcedureConfigWebhook.md +15 -0
- data/docs/ProcedureDuplicateInput.md +9 -0
- data/docs/ProcedureInput.md +18 -0
- data/docs/ProcedureInputMetadata.md +9 -0
- data/docs/ProcedureOutput.md +27 -0
- data/docs/ProcedureOutputMetadata.md +9 -0
- data/docs/ProcedureRemindConfig.md +8 -0
- data/docs/ProcedureRemindConfigEmail.md +8 -0
- data/docs/ProcedureRemindInput.md +8 -0
- data/docs/ProceduresApi.md +527 -0
- data/docs/ServerStampConfig.md +8 -0
- data/docs/ServerStampConfigWebhook.md +8 -0
- data/docs/ServerStampInput.md +12 -0
- data/docs/ServerStampOutput.md +17 -0
- data/docs/ServerStampsApi.md +109 -0
- data/docs/SignatureUIsApi.md +545 -0
- data/docs/SignatureUiInput.md +28 -0
- data/docs/SignatureUiInputRedirectCancel.md +10 -0
- data/docs/SignatureUiInputRedirectError.md +10 -0
- data/docs/SignatureUiInputRedirectSuccess.md +10 -0
- data/docs/SignatureUiInputUpdate.md +27 -0
- data/docs/SignatureUiLabelInput.md +10 -0
- data/docs/SignatureUiLabelInputIncluded.md +9 -0
- data/docs/SignatureUiLabelOutput.md +14 -0
- data/docs/SignatureUiOutput.md +33 -0
- data/docs/SignatureUiOutputRedirectCancel.md +10 -0
- data/docs/SignatureUiOutputRedirectError.md +10 -0
- data/docs/SignatureUiOutputRedirectSuccess.md +10 -0
- data/docs/UserGroup.md +10 -0
- data/docs/UserGroupsApi.md +103 -0
- data/docs/UserInput.md +17 -0
- data/docs/UserInputNotifications.md +8 -0
- data/docs/UserOutput.md +29 -0
- data/docs/UserOutputNotifications.md +8 -0
- data/docs/UserWorkspaceOutput.md +9 -0
- data/docs/UsersApi.md +258 -0
- data/docs/WorkspaceConfig.md +10 -0
- data/docs/WorkspaceConfigEmail.md +15 -0
- data/docs/WorkspaceConfigProcedure.md +8 -0
- data/docs/WorkspaceOutput.md +16 -0
- data/docs/WorkspacesApi.md +54 -0
- data/git_push.sh +55 -0
- data/lib/yousign_client.rb +126 -0
- data/lib/yousign_client/api/authentications_api.rb +410 -0
- data/lib/yousign_client/api/check_documents_api.rb +269 -0
- data/lib/yousign_client/api/consent_processes_api.rb +528 -0
- data/lib/yousign_client/api/file_objects_api.rb +282 -0
- data/lib/yousign_client/api/files_api.rb +279 -0
- data/lib/yousign_client/api/members_api.rb +340 -0
- data/lib/yousign_client/api/operations_api.rb +148 -0
- data/lib/yousign_client/api/organizations_api.rb +76 -0
- data/lib/yousign_client/api/procedures_api.rb +680 -0
- data/lib/yousign_client/api/server_stamps_api.rb +146 -0
- data/lib/yousign_client/api/signature_u_is_api.rb +669 -0
- data/lib/yousign_client/api/user_groups_api.rb +135 -0
- data/lib/yousign_client/api/users_api.rb +327 -0
- data/lib/yousign_client/api/workspaces_api.rb +76 -0
- data/lib/yousign_client/api_client.rb +391 -0
- data/lib/yousign_client/api_error.rb +38 -0
- data/lib/yousign_client/configuration.rb +209 -0
- data/lib/yousign_client/models/authentication_email_output.rb +239 -0
- data/lib/yousign_client/models/authentication_inwebo_output.rb +239 -0
- data/lib/yousign_client/models/authentication_sms_output.rb +239 -0
- data/lib/yousign_client/models/body.rb +185 -0
- data/lib/yousign_client/models/body_1.rb +200 -0
- data/lib/yousign_client/models/body_2.rb +200 -0
- data/lib/yousign_client/models/check_document_bank_accounts_input.rb +240 -0
- data/lib/yousign_client/models/check_document_bank_accounts_output.rb +394 -0
- data/lib/yousign_client/models/check_document_identities_input.rb +222 -0
- data/lib/yousign_client/models/check_document_identities_output.rb +440 -0
- data/lib/yousign_client/models/config_email_template.rb +256 -0
- data/lib/yousign_client/models/config_webhook_template.rb +246 -0
- data/lib/yousign_client/models/consent_process_input.rb +293 -0
- data/lib/yousign_client/models/consent_process_output.rb +298 -0
- data/lib/yousign_client/models/consent_process_value_input.rb +215 -0
- data/lib/yousign_client/models/consent_process_value_output.rb +235 -0
- data/lib/yousign_client/models/file_input.rb +304 -0
- data/lib/yousign_client/models/file_input_metadata.rb +194 -0
- data/lib/yousign_client/models/file_object_input.rb +445 -0
- data/lib/yousign_client/models/file_object_input_without_file_reference.rb +252 -0
- data/lib/yousign_client/models/file_object_output.rb +489 -0
- data/lib/yousign_client/models/file_object_output_without_file_reference.rb +307 -0
- data/lib/yousign_client/models/file_output.rb +374 -0
- data/lib/yousign_client/models/inline_response_400.rb +185 -0
- data/lib/yousign_client/models/inwebo_user_request.rb +200 -0
- data/lib/yousign_client/models/member_input.rb +343 -0
- data/lib/yousign_client/models/member_output.rb +432 -0
- data/lib/yousign_client/models/mode_sms_configuration.rb +190 -0
- data/lib/yousign_client/models/operation_input.rb +313 -0
- data/lib/yousign_client/models/operation_output.rb +311 -0
- data/lib/yousign_client/models/operation_output_metadata.rb +194 -0
- data/lib/yousign_client/models/organization_billing_address.rb +256 -0
- data/lib/yousign_client/models/organization_output.rb +530 -0
- data/lib/yousign_client/models/procedure_config.rb +204 -0
- data/lib/yousign_client/models/procedure_config_email.rb +263 -0
- data/lib/yousign_client/models/procedure_config_reminder.rb +256 -0
- data/lib/yousign_client/models/procedure_config_reminder_config.rb +184 -0
- data/lib/yousign_client/models/procedure_config_reminder_config_email.rb +186 -0
- data/lib/yousign_client/models/procedure_config_webhook.rb +263 -0
- data/lib/yousign_client/models/procedure_duplicate_input.rb +197 -0
- data/lib/yousign_client/models/procedure_input.rb +289 -0
- data/lib/yousign_client/models/procedure_input_metadata.rb +194 -0
- data/lib/yousign_client/models/procedure_output.rb +457 -0
- data/lib/yousign_client/models/procedure_output_metadata.rb +194 -0
- data/lib/yousign_client/models/procedure_remind_config.rb +184 -0
- data/lib/yousign_client/models/procedure_remind_config_email.rb +186 -0
- data/lib/yousign_client/models/procedure_remind_input.rb +184 -0
- data/lib/yousign_client/models/server_stamp_config.rb +184 -0
- data/lib/yousign_client/models/server_stamp_config_webhook.rb +186 -0
- data/lib/yousign_client/models/server_stamp_input.rb +242 -0
- data/lib/yousign_client/models/server_stamp_output.rb +352 -0
- data/lib/yousign_client/models/signature_ui_input.rb +456 -0
- data/lib/yousign_client/models/signature_ui_input_redirect_cancel.rb +244 -0
- data/lib/yousign_client/models/signature_ui_input_redirect_error.rb +247 -0
- data/lib/yousign_client/models/signature_ui_input_redirect_success.rb +242 -0
- data/lib/yousign_client/models/signature_ui_input_update.rb +421 -0
- data/lib/yousign_client/models/signature_ui_label_input.rb +210 -0
- data/lib/yousign_client/models/signature_ui_label_input_included.rb +200 -0
- data/lib/yousign_client/models/signature_ui_label_output.rb +245 -0
- data/lib/yousign_client/models/signature_ui_output.rb +481 -0
- data/lib/yousign_client/models/signature_ui_output_redirect_cancel.rb +242 -0
- data/lib/yousign_client/models/signature_ui_output_redirect_error.rb +247 -0
- data/lib/yousign_client/models/signature_ui_output_redirect_success.rb +242 -0
- data/lib/yousign_client/models/user_group.rb +249 -0
- data/lib/yousign_client/models/user_input.rb +341 -0
- data/lib/yousign_client/models/user_input_notifications.rb +185 -0
- data/lib/yousign_client/models/user_output.rb +457 -0
- data/lib/yousign_client/models/user_output_notifications.rb +185 -0
- data/lib/yousign_client/models/user_workspace_output.rb +210 -0
- data/lib/yousign_client/models/workspace_config.rb +226 -0
- data/lib/yousign_client/models/workspace_config_email.rb +263 -0
- data/lib/yousign_client/models/workspace_config_procedure.rb +208 -0
- data/lib/yousign_client/models/workspace_output.rb +275 -0
- data/lib/yousign_client/version.rb +15 -0
- data/spec/api/authentications_api_spec.rb +113 -0
- data/spec/api/check_documents_api_spec.rb +85 -0
- data/spec/api/consent_processes_api_spec.rb +138 -0
- data/spec/api/file_objects_api_spec.rb +90 -0
- data/spec/api/files_api_spec.rb +89 -0
- data/spec/api/members_api_spec.rb +103 -0
- data/spec/api/operations_api_spec.rb +60 -0
- data/spec/api/organizations_api_spec.rb +46 -0
- data/spec/api/procedures_api_spec.rb +178 -0
- data/spec/api/server_stamps_api_spec.rb +60 -0
- data/spec/api/signature_u_is_api_spec.rb +170 -0
- data/spec/api/user_groups_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +97 -0
- data/spec/api/workspaces_api_spec.rb +46 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/authentication_email_output_spec.rb +57 -0
- data/spec/models/authentication_inwebo_output_spec.rb +57 -0
- data/spec/models/authentication_sms_output_spec.rb +57 -0
- data/spec/models/body_1_spec.rb +47 -0
- data/spec/models/body_2_spec.rb +47 -0
- data/spec/models/body_spec.rb +41 -0
- data/spec/models/check_document_bank_accounts_input_spec.rb +71 -0
- data/spec/models/check_document_bank_accounts_output_spec.rb +141 -0
- data/spec/models/check_document_identities_input_spec.rb +59 -0
- data/spec/models/check_document_identities_output_spec.rb +165 -0
- data/spec/models/config_email_template_spec.rb +63 -0
- data/spec/models/config_webhook_template_spec.rb +57 -0
- data/spec/models/consent_process_input_spec.rb +81 -0
- data/spec/models/consent_process_output_spec.rb +87 -0
- data/spec/models/consent_process_value_input_spec.rb +53 -0
- data/spec/models/consent_process_value_output_spec.rb +65 -0
- data/spec/models/file_input_metadata_spec.rb +47 -0
- data/spec/models/file_input_spec.rb +87 -0
- data/spec/models/file_object_input_spec.rb +127 -0
- data/spec/models/file_object_input_without_file_reference_spec.rb +71 -0
- data/spec/models/file_object_output_spec.rb +145 -0
- data/spec/models/file_object_output_without_file_reference_spec.rb +95 -0
- data/spec/models/file_output_spec.rb +111 -0
- data/spec/models/inline_response_400_spec.rb +41 -0
- data/spec/models/inwebo_user_request_spec.rb +41 -0
- data/spec/models/member_input_spec.rb +119 -0
- data/spec/models/member_output_spec.rb +153 -0
- data/spec/models/mode_sms_configuration_spec.rb +41 -0
- data/spec/models/operation_input_spec.rb +89 -0
- data/spec/models/operation_output_metadata_spec.rb +47 -0
- data/spec/models/operation_output_spec.rb +95 -0
- data/spec/models/organization_billing_address_spec.rb +89 -0
- data/spec/models/organization_output_spec.rb +239 -0
- data/spec/models/procedure_config_email_spec.rb +83 -0
- data/spec/models/procedure_config_reminder_config_email_spec.rb +41 -0
- data/spec/models/procedure_config_reminder_config_spec.rb +41 -0
- data/spec/models/procedure_config_reminder_spec.rb +53 -0
- data/spec/models/procedure_config_spec.rb +53 -0
- data/spec/models/procedure_config_webhook_spec.rb +83 -0
- data/spec/models/procedure_duplicate_input_spec.rb +47 -0
- data/spec/models/procedure_input_metadata_spec.rb +47 -0
- data/spec/models/procedure_input_spec.rb +101 -0
- data/spec/models/procedure_output_metadata_spec.rb +47 -0
- data/spec/models/procedure_output_spec.rb +159 -0
- data/spec/models/procedure_remind_config_email_spec.rb +41 -0
- data/spec/models/procedure_remind_config_spec.rb +41 -0
- data/spec/models/procedure_remind_input_spec.rb +41 -0
- data/spec/models/server_stamp_config_spec.rb +41 -0
- data/spec/models/server_stamp_config_webhook_spec.rb +41 -0
- data/spec/models/server_stamp_input_spec.rb +65 -0
- data/spec/models/server_stamp_output_spec.rb +99 -0
- data/spec/models/signature_ui_input_redirect_cancel_spec.rb +57 -0
- data/spec/models/signature_ui_input_redirect_error_spec.rb +57 -0
- data/spec/models/signature_ui_input_redirect_success_spec.rb +57 -0
- data/spec/models/signature_ui_input_spec.rb +165 -0
- data/spec/models/signature_ui_input_update_spec.rb +159 -0
- data/spec/models/signature_ui_label_input_included_spec.rb +47 -0
- data/spec/models/signature_ui_label_input_spec.rb +53 -0
- data/spec/models/signature_ui_label_output_spec.rb +77 -0
- data/spec/models/signature_ui_output_redirect_cancel_spec.rb +57 -0
- data/spec/models/signature_ui_output_redirect_error_spec.rb +57 -0
- data/spec/models/signature_ui_output_redirect_success_spec.rb +57 -0
- data/spec/models/signature_ui_output_spec.rb +195 -0
- data/spec/models/user_group_spec.rb +57 -0
- data/spec/models/user_input_notifications_spec.rb +41 -0
- data/spec/models/user_input_spec.rb +99 -0
- data/spec/models/user_output_notifications_spec.rb +41 -0
- data/spec/models/user_output_spec.rb +171 -0
- data/spec/models/user_workspace_output_spec.rb +47 -0
- data/spec/models/workspace_config_email_spec.rb +83 -0
- data/spec/models/workspace_config_procedure_spec.rb +45 -0
- data/spec/models/workspace_config_spec.rb +57 -0
- data/spec/models/workspace_output_spec.rb +89 -0
- data/spec/spec_helper.rb +111 -0
- data/update_client.sh +11 -0
- data/yousign_client.gemspec +45 -0
- data/yousign_openapi.json +5417 -0
- metadata +590 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Yousign API Swagger
|
|
3
|
+
|
|
4
|
+
#For your information, the Yousign API documentation is available at https://dev.yousign.com/
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.1
|
|
7
|
+
Contact: support@yousign.fr
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module YousignClient
|
|
16
|
+
class ServerStampsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Find a Server Stamp by ID
|
|
23
|
+
# @param id
|
|
24
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [ServerStampOutput]
|
|
27
|
+
def server_stamps_id_get(id, authorization, opts = {})
|
|
28
|
+
data, _status_code, _headers = server_stamps_id_get_with_http_info(id, authorization, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Find a Server Stamp by ID
|
|
33
|
+
# @param id
|
|
34
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(ServerStampOutput, Fixnum, Hash)>] ServerStampOutput data, response status code and response headers
|
|
37
|
+
def server_stamps_id_get_with_http_info(id, authorization, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ServerStampsApi.server_stamps_id_get ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ServerStampsApi.server_stamps_id_get"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'authorization' is set
|
|
46
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling ServerStampsApi.server_stamps_id_get"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/server_stamps/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
61
|
+
header_params[:'Authorization'] = authorization
|
|
62
|
+
|
|
63
|
+
# form parameters
|
|
64
|
+
form_params = {}
|
|
65
|
+
|
|
66
|
+
# http body (model)
|
|
67
|
+
post_body = nil
|
|
68
|
+
auth_names = []
|
|
69
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
70
|
+
:header_params => header_params,
|
|
71
|
+
:query_params => query_params,
|
|
72
|
+
:form_params => form_params,
|
|
73
|
+
:body => post_body,
|
|
74
|
+
:auth_names => auth_names,
|
|
75
|
+
:return_type => 'ServerStampOutput')
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: ServerStampsApi#server_stamps_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
# Create a Server Stamp
|
|
82
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
83
|
+
# @param content_type The MIME type of the body of the request
|
|
84
|
+
# @param body
|
|
85
|
+
# @param [Hash] opts the optional parameters
|
|
86
|
+
# @return [ServerStampOutput]
|
|
87
|
+
def server_stamps_post(authorization, content_type, body, opts = {})
|
|
88
|
+
data, _status_code, _headers = server_stamps_post_with_http_info(authorization, content_type, body, opts)
|
|
89
|
+
data
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Create a Server Stamp
|
|
93
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
94
|
+
# @param content_type The MIME type of the body of the request
|
|
95
|
+
# @param body
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @return [Array<(ServerStampOutput, Fixnum, Hash)>] ServerStampOutput data, response status code and response headers
|
|
98
|
+
def server_stamps_post_with_http_info(authorization, content_type, body, opts = {})
|
|
99
|
+
if @api_client.config.debugging
|
|
100
|
+
@api_client.config.logger.debug 'Calling API: ServerStampsApi.server_stamps_post ...'
|
|
101
|
+
end
|
|
102
|
+
# verify the required parameter 'authorization' is set
|
|
103
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
104
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling ServerStampsApi.server_stamps_post"
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'content_type' is set
|
|
107
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling ServerStampsApi.server_stamps_post"
|
|
109
|
+
end
|
|
110
|
+
# verify the required parameter 'body' is set
|
|
111
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ServerStampsApi.server_stamps_post"
|
|
113
|
+
end
|
|
114
|
+
# resource path
|
|
115
|
+
local_var_path = '/server_stamps'
|
|
116
|
+
|
|
117
|
+
# query parameters
|
|
118
|
+
query_params = {}
|
|
119
|
+
|
|
120
|
+
# header parameters
|
|
121
|
+
header_params = {}
|
|
122
|
+
# HTTP header 'Accept' (if needed)
|
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
124
|
+
header_params[:'Authorization'] = authorization
|
|
125
|
+
header_params[:'Content-Type'] = content_type
|
|
126
|
+
|
|
127
|
+
# form parameters
|
|
128
|
+
form_params = {}
|
|
129
|
+
|
|
130
|
+
# http body (model)
|
|
131
|
+
post_body = @api_client.object_to_http_body(body)
|
|
132
|
+
auth_names = []
|
|
133
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
134
|
+
:header_params => header_params,
|
|
135
|
+
:query_params => query_params,
|
|
136
|
+
:form_params => form_params,
|
|
137
|
+
:body => post_body,
|
|
138
|
+
:auth_names => auth_names,
|
|
139
|
+
:return_type => 'ServerStampOutput')
|
|
140
|
+
if @api_client.config.debugging
|
|
141
|
+
@api_client.config.logger.debug "API called: ServerStampsApi#server_stamps_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
|
+
end
|
|
143
|
+
return data, status_code, headers
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Yousign API Swagger
|
|
3
|
+
|
|
4
|
+
#For your information, the Yousign API documentation is available at https://dev.yousign.com/
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.1
|
|
7
|
+
Contact: support@yousign.fr
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module YousignClient
|
|
16
|
+
class SignatureUIsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get Signature UI Labels
|
|
23
|
+
# Only usefull if you use a filter with name or signatureUI
|
|
24
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :name Filtering on name of signature ui labels
|
|
27
|
+
# @option opts [String] :signature_ui Filtering on id of signature ui resource
|
|
28
|
+
# @return [Array<SignatureUiLabelOutput>]
|
|
29
|
+
def signature_ui_labels_get(authorization, opts = {})
|
|
30
|
+
data, _status_code, _headers = signature_ui_labels_get_with_http_info(authorization, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get Signature UI Labels
|
|
35
|
+
# Only usefull if you use a filter with name or signatureUI
|
|
36
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [String] :name Filtering on name of signature ui labels
|
|
39
|
+
# @option opts [String] :signature_ui Filtering on id of signature ui resource
|
|
40
|
+
# @return [Array<(Array<SignatureUiLabelOutput>, Fixnum, Hash)>] Array<SignatureUiLabelOutput> data, response status code and response headers
|
|
41
|
+
def signature_ui_labels_get_with_http_info(authorization, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_get ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'authorization' is set
|
|
46
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_get"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/signature_ui_labels'
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = {}
|
|
54
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
55
|
+
query_params[:'signatureUi'] = opts[:'signature_ui'] if !opts[:'signature_ui'].nil?
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
63
|
+
header_params[:'Authorization'] = authorization
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = nil
|
|
70
|
+
auth_names = []
|
|
71
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
72
|
+
:header_params => header_params,
|
|
73
|
+
:query_params => query_params,
|
|
74
|
+
:form_params => form_params,
|
|
75
|
+
:body => post_body,
|
|
76
|
+
:auth_names => auth_names,
|
|
77
|
+
:return_type => 'Array<SignatureUiLabelOutput>')
|
|
78
|
+
if @api_client.config.debugging
|
|
79
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_ui_labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
+
end
|
|
81
|
+
return data, status_code, headers
|
|
82
|
+
end
|
|
83
|
+
# Delete a Signature UI Label
|
|
84
|
+
# @param id
|
|
85
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @option opts [String] :id2 Id of signature ui label
|
|
88
|
+
# @return [nil]
|
|
89
|
+
def signature_ui_labels_id_delete(id, authorization, opts = {})
|
|
90
|
+
signature_ui_labels_id_delete_with_http_info(id, authorization, opts)
|
|
91
|
+
nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Delete a Signature UI Label
|
|
95
|
+
# @param id
|
|
96
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :id2 Id of signature ui label
|
|
99
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
100
|
+
def signature_ui_labels_id_delete_with_http_info(id, authorization, opts = {})
|
|
101
|
+
if @api_client.config.debugging
|
|
102
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_id_delete ...'
|
|
103
|
+
end
|
|
104
|
+
# verify the required parameter 'id' is set
|
|
105
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
106
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_ui_labels_id_delete"
|
|
107
|
+
end
|
|
108
|
+
# verify the required parameter 'authorization' is set
|
|
109
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_id_delete"
|
|
111
|
+
end
|
|
112
|
+
# resource path
|
|
113
|
+
local_var_path = '/signature_ui_labels/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
114
|
+
|
|
115
|
+
# query parameters
|
|
116
|
+
query_params = {}
|
|
117
|
+
query_params[:'id'] = opts[:'id2'] if !opts[:'id2'].nil?
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
123
|
+
# HTTP header 'Content-Type'
|
|
124
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
125
|
+
header_params[:'Authorization'] = authorization
|
|
126
|
+
|
|
127
|
+
# form parameters
|
|
128
|
+
form_params = {}
|
|
129
|
+
|
|
130
|
+
# http body (model)
|
|
131
|
+
post_body = nil
|
|
132
|
+
auth_names = []
|
|
133
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
134
|
+
:header_params => header_params,
|
|
135
|
+
:query_params => query_params,
|
|
136
|
+
:form_params => form_params,
|
|
137
|
+
:body => post_body,
|
|
138
|
+
:auth_names => auth_names)
|
|
139
|
+
if @api_client.config.debugging
|
|
140
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_ui_labels_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
141
|
+
end
|
|
142
|
+
return data, status_code, headers
|
|
143
|
+
end
|
|
144
|
+
# Find a Signature UI Label by ID
|
|
145
|
+
# @param id
|
|
146
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @option opts [String] :id2 id of signature ui label
|
|
149
|
+
# @return [SignatureUiLabelOutput]
|
|
150
|
+
def signature_ui_labels_id_get(id, authorization, opts = {})
|
|
151
|
+
data, _status_code, _headers = signature_ui_labels_id_get_with_http_info(id, authorization, opts)
|
|
152
|
+
data
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Find a Signature UI Label by ID
|
|
156
|
+
# @param id
|
|
157
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
158
|
+
# @param [Hash] opts the optional parameters
|
|
159
|
+
# @option opts [String] :id2 id of signature ui label
|
|
160
|
+
# @return [Array<(SignatureUiLabelOutput, Fixnum, Hash)>] SignatureUiLabelOutput data, response status code and response headers
|
|
161
|
+
def signature_ui_labels_id_get_with_http_info(id, authorization, opts = {})
|
|
162
|
+
if @api_client.config.debugging
|
|
163
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_id_get ...'
|
|
164
|
+
end
|
|
165
|
+
# verify the required parameter 'id' is set
|
|
166
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
167
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_ui_labels_id_get"
|
|
168
|
+
end
|
|
169
|
+
# verify the required parameter 'authorization' is set
|
|
170
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
171
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_id_get"
|
|
172
|
+
end
|
|
173
|
+
# resource path
|
|
174
|
+
local_var_path = '/signature_ui_labels/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
175
|
+
|
|
176
|
+
# query parameters
|
|
177
|
+
query_params = {}
|
|
178
|
+
query_params[:'id'] = opts[:'id2'] if !opts[:'id2'].nil?
|
|
179
|
+
|
|
180
|
+
# header parameters
|
|
181
|
+
header_params = {}
|
|
182
|
+
# HTTP header 'Accept' (if needed)
|
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
184
|
+
# HTTP header 'Content-Type'
|
|
185
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
186
|
+
header_params[:'Authorization'] = authorization
|
|
187
|
+
|
|
188
|
+
# form parameters
|
|
189
|
+
form_params = {}
|
|
190
|
+
|
|
191
|
+
# http body (model)
|
|
192
|
+
post_body = nil
|
|
193
|
+
auth_names = []
|
|
194
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
195
|
+
:header_params => header_params,
|
|
196
|
+
:query_params => query_params,
|
|
197
|
+
:form_params => form_params,
|
|
198
|
+
:body => post_body,
|
|
199
|
+
:auth_names => auth_names,
|
|
200
|
+
:return_type => 'SignatureUiLabelOutput')
|
|
201
|
+
if @api_client.config.debugging
|
|
202
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_ui_labels_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
203
|
+
end
|
|
204
|
+
return data, status_code, headers
|
|
205
|
+
end
|
|
206
|
+
# Update a Signature UI Label
|
|
207
|
+
# @param id
|
|
208
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
209
|
+
# @param content_type The MIME type of the body of the request
|
|
210
|
+
# @param body
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @option opts [String] :id2 Id of signature ui labels
|
|
213
|
+
# @return [SignatureUiLabelOutput]
|
|
214
|
+
def signature_ui_labels_id_put(id, authorization, content_type, body, opts = {})
|
|
215
|
+
data, _status_code, _headers = signature_ui_labels_id_put_with_http_info(id, authorization, content_type, body, opts)
|
|
216
|
+
data
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Update a Signature UI Label
|
|
220
|
+
# @param id
|
|
221
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
222
|
+
# @param content_type The MIME type of the body of the request
|
|
223
|
+
# @param body
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @option opts [String] :id2 Id of signature ui labels
|
|
226
|
+
# @return [Array<(SignatureUiLabelOutput, Fixnum, Hash)>] SignatureUiLabelOutput data, response status code and response headers
|
|
227
|
+
def signature_ui_labels_id_put_with_http_info(id, authorization, content_type, body, opts = {})
|
|
228
|
+
if @api_client.config.debugging
|
|
229
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_id_put ...'
|
|
230
|
+
end
|
|
231
|
+
# verify the required parameter 'id' is set
|
|
232
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
233
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_ui_labels_id_put"
|
|
234
|
+
end
|
|
235
|
+
# verify the required parameter 'authorization' is set
|
|
236
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
237
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_id_put"
|
|
238
|
+
end
|
|
239
|
+
# verify the required parameter 'content_type' is set
|
|
240
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
241
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_ui_labels_id_put"
|
|
242
|
+
end
|
|
243
|
+
# verify the required parameter 'body' is set
|
|
244
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SignatureUIsApi.signature_ui_labels_id_put"
|
|
246
|
+
end
|
|
247
|
+
# resource path
|
|
248
|
+
local_var_path = '/signature_ui_labels/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
249
|
+
|
|
250
|
+
# query parameters
|
|
251
|
+
query_params = {}
|
|
252
|
+
query_params[:'id'] = opts[:'id2'] if !opts[:'id2'].nil?
|
|
253
|
+
|
|
254
|
+
# header parameters
|
|
255
|
+
header_params = {}
|
|
256
|
+
# HTTP header 'Accept' (if needed)
|
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
258
|
+
header_params[:'Authorization'] = authorization
|
|
259
|
+
header_params[:'Content-Type'] = content_type
|
|
260
|
+
|
|
261
|
+
# form parameters
|
|
262
|
+
form_params = {}
|
|
263
|
+
|
|
264
|
+
# http body (model)
|
|
265
|
+
post_body = @api_client.object_to_http_body(body)
|
|
266
|
+
auth_names = []
|
|
267
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
268
|
+
:header_params => header_params,
|
|
269
|
+
:query_params => query_params,
|
|
270
|
+
:form_params => form_params,
|
|
271
|
+
:body => post_body,
|
|
272
|
+
:auth_names => auth_names,
|
|
273
|
+
:return_type => 'SignatureUiLabelOutput')
|
|
274
|
+
if @api_client.config.debugging
|
|
275
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_ui_labels_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
276
|
+
end
|
|
277
|
+
return data, status_code, headers
|
|
278
|
+
end
|
|
279
|
+
# Create a new Signature UI Label
|
|
280
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
281
|
+
# @param content_type The MIME type of the body of the request
|
|
282
|
+
# @param body
|
|
283
|
+
# @param [Hash] opts the optional parameters
|
|
284
|
+
# @return [SignatureUiLabelOutput]
|
|
285
|
+
def signature_ui_labels_post(authorization, content_type, body, opts = {})
|
|
286
|
+
data, _status_code, _headers = signature_ui_labels_post_with_http_info(authorization, content_type, body, opts)
|
|
287
|
+
data
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Create a new Signature UI Label
|
|
291
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
292
|
+
# @param content_type The MIME type of the body of the request
|
|
293
|
+
# @param body
|
|
294
|
+
# @param [Hash] opts the optional parameters
|
|
295
|
+
# @return [Array<(SignatureUiLabelOutput, Fixnum, Hash)>] SignatureUiLabelOutput data, response status code and response headers
|
|
296
|
+
def signature_ui_labels_post_with_http_info(authorization, content_type, body, opts = {})
|
|
297
|
+
if @api_client.config.debugging
|
|
298
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_ui_labels_post ...'
|
|
299
|
+
end
|
|
300
|
+
# verify the required parameter 'authorization' is set
|
|
301
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
302
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_ui_labels_post"
|
|
303
|
+
end
|
|
304
|
+
# verify the required parameter 'content_type' is set
|
|
305
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
306
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_ui_labels_post"
|
|
307
|
+
end
|
|
308
|
+
# verify the required parameter 'body' is set
|
|
309
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
310
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SignatureUIsApi.signature_ui_labels_post"
|
|
311
|
+
end
|
|
312
|
+
# resource path
|
|
313
|
+
local_var_path = '/signature_ui_labels'
|
|
314
|
+
|
|
315
|
+
# query parameters
|
|
316
|
+
query_params = {}
|
|
317
|
+
|
|
318
|
+
# header parameters
|
|
319
|
+
header_params = {}
|
|
320
|
+
# HTTP header 'Accept' (if needed)
|
|
321
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
322
|
+
header_params[:'Authorization'] = authorization
|
|
323
|
+
header_params[:'Content-Type'] = content_type
|
|
324
|
+
|
|
325
|
+
# form parameters
|
|
326
|
+
form_params = {}
|
|
327
|
+
|
|
328
|
+
# http body (model)
|
|
329
|
+
post_body = @api_client.object_to_http_body(body)
|
|
330
|
+
auth_names = []
|
|
331
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
332
|
+
:header_params => header_params,
|
|
333
|
+
:query_params => query_params,
|
|
334
|
+
:form_params => form_params,
|
|
335
|
+
:body => post_body,
|
|
336
|
+
:auth_names => auth_names,
|
|
337
|
+
:return_type => 'SignatureUiLabelOutput')
|
|
338
|
+
if @api_client.config.debugging
|
|
339
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_ui_labels_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
340
|
+
end
|
|
341
|
+
return data, status_code, headers
|
|
342
|
+
end
|
|
343
|
+
# Get Signature UI list
|
|
344
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
345
|
+
# @param [Hash] opts the optional parameters
|
|
346
|
+
# @return [Array<SignatureUiOutput>]
|
|
347
|
+
def signature_uis_get(authorization, opts = {})
|
|
348
|
+
data, _status_code, _headers = signature_uis_get_with_http_info(authorization, opts)
|
|
349
|
+
data
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Get Signature UI list
|
|
353
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
354
|
+
# @param [Hash] opts the optional parameters
|
|
355
|
+
# @return [Array<(Array<SignatureUiOutput>, Fixnum, Hash)>] Array<SignatureUiOutput> data, response status code and response headers
|
|
356
|
+
def signature_uis_get_with_http_info(authorization, opts = {})
|
|
357
|
+
if @api_client.config.debugging
|
|
358
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_get ...'
|
|
359
|
+
end
|
|
360
|
+
# verify the required parameter 'authorization' is set
|
|
361
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
362
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_get"
|
|
363
|
+
end
|
|
364
|
+
# resource path
|
|
365
|
+
local_var_path = '/signature_uis'
|
|
366
|
+
|
|
367
|
+
# query parameters
|
|
368
|
+
query_params = {}
|
|
369
|
+
|
|
370
|
+
# header parameters
|
|
371
|
+
header_params = {}
|
|
372
|
+
# HTTP header 'Accept' (if needed)
|
|
373
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
374
|
+
# HTTP header 'Content-Type'
|
|
375
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
376
|
+
header_params[:'Authorization'] = authorization
|
|
377
|
+
|
|
378
|
+
# form parameters
|
|
379
|
+
form_params = {}
|
|
380
|
+
|
|
381
|
+
# http body (model)
|
|
382
|
+
post_body = nil
|
|
383
|
+
auth_names = []
|
|
384
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
385
|
+
:header_params => header_params,
|
|
386
|
+
:query_params => query_params,
|
|
387
|
+
:form_params => form_params,
|
|
388
|
+
:body => post_body,
|
|
389
|
+
:auth_names => auth_names,
|
|
390
|
+
:return_type => 'Array<SignatureUiOutput>')
|
|
391
|
+
if @api_client.config.debugging
|
|
392
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_uis_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
393
|
+
end
|
|
394
|
+
return data, status_code, headers
|
|
395
|
+
end
|
|
396
|
+
# Delete a Signature UI
|
|
397
|
+
# @param id
|
|
398
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
399
|
+
# @param content_type The MIME type of the body of the request
|
|
400
|
+
# @param [Hash] opts the optional parameters
|
|
401
|
+
# @option opts [String] :id2 Id of the signature ui
|
|
402
|
+
# @return [nil]
|
|
403
|
+
def signature_uis_id_delete(id, authorization, content_type, opts = {})
|
|
404
|
+
signature_uis_id_delete_with_http_info(id, authorization, content_type, opts)
|
|
405
|
+
nil
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Delete a Signature UI
|
|
409
|
+
# @param id
|
|
410
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
411
|
+
# @param content_type The MIME type of the body of the request
|
|
412
|
+
# @param [Hash] opts the optional parameters
|
|
413
|
+
# @option opts [String] :id2 Id of the signature ui
|
|
414
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
415
|
+
def signature_uis_id_delete_with_http_info(id, authorization, content_type, opts = {})
|
|
416
|
+
if @api_client.config.debugging
|
|
417
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_id_delete ...'
|
|
418
|
+
end
|
|
419
|
+
# verify the required parameter 'id' is set
|
|
420
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
421
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_uis_id_delete"
|
|
422
|
+
end
|
|
423
|
+
# verify the required parameter 'authorization' is set
|
|
424
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
425
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_id_delete"
|
|
426
|
+
end
|
|
427
|
+
# verify the required parameter 'content_type' is set
|
|
428
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
429
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_id_delete"
|
|
430
|
+
end
|
|
431
|
+
# resource path
|
|
432
|
+
local_var_path = '/signature_uis/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
433
|
+
|
|
434
|
+
# query parameters
|
|
435
|
+
query_params = {}
|
|
436
|
+
query_params[:'id'] = opts[:'id2'] if !opts[:'id2'].nil?
|
|
437
|
+
|
|
438
|
+
# header parameters
|
|
439
|
+
header_params = {}
|
|
440
|
+
# HTTP header 'Accept' (if needed)
|
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
442
|
+
# HTTP header 'Content-Type'
|
|
443
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
444
|
+
header_params[:'Authorization'] = authorization
|
|
445
|
+
header_params[:'Content-Type'] = content_type
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = {}
|
|
449
|
+
|
|
450
|
+
# http body (model)
|
|
451
|
+
post_body = nil
|
|
452
|
+
auth_names = []
|
|
453
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
454
|
+
:header_params => header_params,
|
|
455
|
+
:query_params => query_params,
|
|
456
|
+
:form_params => form_params,
|
|
457
|
+
:body => post_body,
|
|
458
|
+
:auth_names => auth_names)
|
|
459
|
+
if @api_client.config.debugging
|
|
460
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_uis_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
461
|
+
end
|
|
462
|
+
return data, status_code, headers
|
|
463
|
+
end
|
|
464
|
+
# Find a Signature UI by ID
|
|
465
|
+
# @param id
|
|
466
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
467
|
+
# @param content_type The MIME type of the body of the request
|
|
468
|
+
# @param [Hash] opts the optional parameters
|
|
469
|
+
# @option opts [String] :id2 id of a signature ui
|
|
470
|
+
# @return [SignatureUiOutput]
|
|
471
|
+
def signature_uis_id_get(id, authorization, content_type, opts = {})
|
|
472
|
+
data, _status_code, _headers = signature_uis_id_get_with_http_info(id, authorization, content_type, opts)
|
|
473
|
+
data
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Find a Signature UI by ID
|
|
477
|
+
# @param id
|
|
478
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
479
|
+
# @param content_type The MIME type of the body of the request
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @option opts [String] :id2 id of a signature ui
|
|
482
|
+
# @return [Array<(SignatureUiOutput, Fixnum, Hash)>] SignatureUiOutput data, response status code and response headers
|
|
483
|
+
def signature_uis_id_get_with_http_info(id, authorization, content_type, opts = {})
|
|
484
|
+
if @api_client.config.debugging
|
|
485
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_id_get ...'
|
|
486
|
+
end
|
|
487
|
+
# verify the required parameter 'id' is set
|
|
488
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
489
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_uis_id_get"
|
|
490
|
+
end
|
|
491
|
+
# verify the required parameter 'authorization' is set
|
|
492
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
493
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_id_get"
|
|
494
|
+
end
|
|
495
|
+
# verify the required parameter 'content_type' is set
|
|
496
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
497
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_id_get"
|
|
498
|
+
end
|
|
499
|
+
# resource path
|
|
500
|
+
local_var_path = '/signature_uis/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
501
|
+
|
|
502
|
+
# query parameters
|
|
503
|
+
query_params = {}
|
|
504
|
+
query_params[:'id'] = opts[:'id2'] if !opts[:'id2'].nil?
|
|
505
|
+
|
|
506
|
+
# header parameters
|
|
507
|
+
header_params = {}
|
|
508
|
+
# HTTP header 'Accept' (if needed)
|
|
509
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
510
|
+
# HTTP header 'Content-Type'
|
|
511
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
512
|
+
header_params[:'Authorization'] = authorization
|
|
513
|
+
header_params[:'Content-Type'] = content_type
|
|
514
|
+
|
|
515
|
+
# form parameters
|
|
516
|
+
form_params = {}
|
|
517
|
+
|
|
518
|
+
# http body (model)
|
|
519
|
+
post_body = nil
|
|
520
|
+
auth_names = []
|
|
521
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
522
|
+
:header_params => header_params,
|
|
523
|
+
:query_params => query_params,
|
|
524
|
+
:form_params => form_params,
|
|
525
|
+
:body => post_body,
|
|
526
|
+
:auth_names => auth_names,
|
|
527
|
+
:return_type => 'SignatureUiOutput')
|
|
528
|
+
if @api_client.config.debugging
|
|
529
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_uis_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
530
|
+
end
|
|
531
|
+
return data, status_code, headers
|
|
532
|
+
end
|
|
533
|
+
# Update a Signature UI
|
|
534
|
+
# @param id
|
|
535
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
536
|
+
# @param content_type The MIME type of the body of the request
|
|
537
|
+
# @param [Hash] opts the optional parameters
|
|
538
|
+
# @option opts [String] :id2 id of signature ui to update
|
|
539
|
+
# @return [SignatureUiInputUpdate]
|
|
540
|
+
def signature_uis_id_put(id, authorization, content_type, opts = {})
|
|
541
|
+
data, _status_code, _headers = signature_uis_id_put_with_http_info(id, authorization, content_type, opts)
|
|
542
|
+
data
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Update a Signature UI
|
|
546
|
+
# @param id
|
|
547
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
548
|
+
# @param content_type The MIME type of the body of the request
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @option opts [String] :id2 id of signature ui to update
|
|
551
|
+
# @return [Array<(SignatureUiInputUpdate, Fixnum, Hash)>] SignatureUiInputUpdate data, response status code and response headers
|
|
552
|
+
def signature_uis_id_put_with_http_info(id, authorization, content_type, opts = {})
|
|
553
|
+
if @api_client.config.debugging
|
|
554
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_id_put ...'
|
|
555
|
+
end
|
|
556
|
+
# verify the required parameter 'id' is set
|
|
557
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
558
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SignatureUIsApi.signature_uis_id_put"
|
|
559
|
+
end
|
|
560
|
+
# verify the required parameter 'authorization' is set
|
|
561
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
562
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_id_put"
|
|
563
|
+
end
|
|
564
|
+
# verify the required parameter 'content_type' is set
|
|
565
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
566
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_id_put"
|
|
567
|
+
end
|
|
568
|
+
# resource path
|
|
569
|
+
local_var_path = '/signature_uis/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
570
|
+
|
|
571
|
+
# query parameters
|
|
572
|
+
query_params = {}
|
|
573
|
+
query_params[:'id'] = opts[:'id2'] if !opts[:'id2'].nil?
|
|
574
|
+
|
|
575
|
+
# header parameters
|
|
576
|
+
header_params = {}
|
|
577
|
+
# HTTP header 'Accept' (if needed)
|
|
578
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
579
|
+
# HTTP header 'Content-Type'
|
|
580
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
581
|
+
header_params[:'Authorization'] = authorization
|
|
582
|
+
header_params[:'Content-Type'] = content_type
|
|
583
|
+
|
|
584
|
+
# form parameters
|
|
585
|
+
form_params = {}
|
|
586
|
+
|
|
587
|
+
# http body (model)
|
|
588
|
+
post_body = nil
|
|
589
|
+
auth_names = []
|
|
590
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
591
|
+
:header_params => header_params,
|
|
592
|
+
:query_params => query_params,
|
|
593
|
+
:form_params => form_params,
|
|
594
|
+
:body => post_body,
|
|
595
|
+
:auth_names => auth_names,
|
|
596
|
+
:return_type => 'SignatureUiInputUpdate')
|
|
597
|
+
if @api_client.config.debugging
|
|
598
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_uis_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
599
|
+
end
|
|
600
|
+
return data, status_code, headers
|
|
601
|
+
end
|
|
602
|
+
# Create a new Signature UI
|
|
603
|
+
# Here is the url format to build on your side to get a custom signature interface with your settings : https://webapp.yousign.com/procedure/sign?members=~2Fmembers~2F__MEMBER_ID__&signatureUi=~2Fsignature_uis~2F__SIGNATURE_UI_ID__
|
|
604
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
605
|
+
# @param content_type The MIME type of the body of the request
|
|
606
|
+
# @param body
|
|
607
|
+
# @param [Hash] opts the optional parameters
|
|
608
|
+
# @return [SignatureUiOutput]
|
|
609
|
+
def signature_uis_post(authorization, content_type, body, opts = {})
|
|
610
|
+
data, _status_code, _headers = signature_uis_post_with_http_info(authorization, content_type, body, opts)
|
|
611
|
+
data
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# Create a new Signature UI
|
|
615
|
+
# Here is the url format to build on your side to get a custom signature interface with your settings : https://webapp.yousign.com/procedure/sign?members=~2Fmembers~2F__MEMBER_ID__&signatureUi=~2Fsignature_uis~2F__SIGNATURE_UI_ID__
|
|
616
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
617
|
+
# @param content_type The MIME type of the body of the request
|
|
618
|
+
# @param body
|
|
619
|
+
# @param [Hash] opts the optional parameters
|
|
620
|
+
# @return [Array<(SignatureUiOutput, Fixnum, Hash)>] SignatureUiOutput data, response status code and response headers
|
|
621
|
+
def signature_uis_post_with_http_info(authorization, content_type, body, opts = {})
|
|
622
|
+
if @api_client.config.debugging
|
|
623
|
+
@api_client.config.logger.debug 'Calling API: SignatureUIsApi.signature_uis_post ...'
|
|
624
|
+
end
|
|
625
|
+
# verify the required parameter 'authorization' is set
|
|
626
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
627
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling SignatureUIsApi.signature_uis_post"
|
|
628
|
+
end
|
|
629
|
+
# verify the required parameter 'content_type' is set
|
|
630
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
631
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling SignatureUIsApi.signature_uis_post"
|
|
632
|
+
end
|
|
633
|
+
# verify the required parameter 'body' is set
|
|
634
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
635
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SignatureUIsApi.signature_uis_post"
|
|
636
|
+
end
|
|
637
|
+
# resource path
|
|
638
|
+
local_var_path = '/signature_uis'
|
|
639
|
+
|
|
640
|
+
# query parameters
|
|
641
|
+
query_params = {}
|
|
642
|
+
|
|
643
|
+
# header parameters
|
|
644
|
+
header_params = {}
|
|
645
|
+
# HTTP header 'Accept' (if needed)
|
|
646
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
647
|
+
header_params[:'Authorization'] = authorization
|
|
648
|
+
header_params[:'Content-Type'] = content_type
|
|
649
|
+
|
|
650
|
+
# form parameters
|
|
651
|
+
form_params = {}
|
|
652
|
+
|
|
653
|
+
# http body (model)
|
|
654
|
+
post_body = @api_client.object_to_http_body(body)
|
|
655
|
+
auth_names = []
|
|
656
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
657
|
+
:header_params => header_params,
|
|
658
|
+
:query_params => query_params,
|
|
659
|
+
:form_params => form_params,
|
|
660
|
+
:body => post_body,
|
|
661
|
+
:auth_names => auth_names,
|
|
662
|
+
:return_type => 'SignatureUiOutput')
|
|
663
|
+
if @api_client.config.debugging
|
|
664
|
+
@api_client.config.logger.debug "API called: SignatureUIsApi#signature_uis_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
665
|
+
end
|
|
666
|
+
return data, status_code, headers
|
|
667
|
+
end
|
|
668
|
+
end
|
|
669
|
+
end
|