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,340 @@
|
|
|
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 MembersApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get all Members
|
|
23
|
+
# Returns the list of Members of a organization. It only usefull if you use the query params named \"procedure\" for retrieve all members of a procedure.
|
|
24
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :procedure
|
|
27
|
+
# @return [Array<MemberOutput>]
|
|
28
|
+
def members_get(authorization, opts = {})
|
|
29
|
+
data, _status_code, _headers = members_get_with_http_info(authorization, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Get all Members
|
|
34
|
+
# Returns the list of Members of a organization. It only usefull if you use the query params named \"procedure\" for retrieve all members of a procedure.
|
|
35
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :procedure
|
|
38
|
+
# @return [Array<(Array<MemberOutput>, Fixnum, Hash)>] Array<MemberOutput> data, response status code and response headers
|
|
39
|
+
def members_get_with_http_info(authorization, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.members_get ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'authorization' is set
|
|
44
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_get"
|
|
46
|
+
end
|
|
47
|
+
# resource path
|
|
48
|
+
local_var_path = '/members'
|
|
49
|
+
|
|
50
|
+
# query parameters
|
|
51
|
+
query_params = {}
|
|
52
|
+
query_params[:'procedure'] = opts[:'procedure'] if !opts[:'procedure'].nil?
|
|
53
|
+
|
|
54
|
+
# header parameters
|
|
55
|
+
header_params = {}
|
|
56
|
+
# HTTP header 'Accept' (if needed)
|
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
58
|
+
# HTTP header 'Content-Type'
|
|
59
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
60
|
+
header_params[:'Authorization'] = authorization
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = nil
|
|
67
|
+
auth_names = []
|
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
69
|
+
:header_params => header_params,
|
|
70
|
+
:query_params => query_params,
|
|
71
|
+
:form_params => form_params,
|
|
72
|
+
:body => post_body,
|
|
73
|
+
:auth_names => auth_names,
|
|
74
|
+
:return_type => 'Array<MemberOutput>')
|
|
75
|
+
if @api_client.config.debugging
|
|
76
|
+
@api_client.config.logger.debug "API called: MembersApi#members_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
77
|
+
end
|
|
78
|
+
return data, status_code, headers
|
|
79
|
+
end
|
|
80
|
+
# Delete a Member
|
|
81
|
+
# Delete a member
|
|
82
|
+
# @param id
|
|
83
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @return [nil]
|
|
86
|
+
def members_id_delete(id, authorization, opts = {})
|
|
87
|
+
members_id_delete_with_http_info(id, authorization, opts)
|
|
88
|
+
nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Delete a Member
|
|
92
|
+
# Delete a member
|
|
93
|
+
# @param id
|
|
94
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
97
|
+
def members_id_delete_with_http_info(id, authorization, opts = {})
|
|
98
|
+
if @api_client.config.debugging
|
|
99
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.members_id_delete ...'
|
|
100
|
+
end
|
|
101
|
+
# verify the required parameter 'id' is set
|
|
102
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
103
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MembersApi.members_id_delete"
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'authorization' is set
|
|
106
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_id_delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/members/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
119
|
+
# HTTP header 'Content-Type'
|
|
120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
121
|
+
header_params[:'Authorization'] = authorization
|
|
122
|
+
|
|
123
|
+
# form parameters
|
|
124
|
+
form_params = {}
|
|
125
|
+
|
|
126
|
+
# http body (model)
|
|
127
|
+
post_body = nil
|
|
128
|
+
auth_names = []
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
130
|
+
:header_params => header_params,
|
|
131
|
+
:query_params => query_params,
|
|
132
|
+
:form_params => form_params,
|
|
133
|
+
:body => post_body,
|
|
134
|
+
:auth_names => auth_names)
|
|
135
|
+
if @api_client.config.debugging
|
|
136
|
+
@api_client.config.logger.debug "API called: MembersApi#members_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
137
|
+
end
|
|
138
|
+
return data, status_code, headers
|
|
139
|
+
end
|
|
140
|
+
# Get a proof file of a Member
|
|
141
|
+
# Get a proof file of a member
|
|
142
|
+
# @param id
|
|
143
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
144
|
+
# @param [Hash] opts the optional parameters
|
|
145
|
+
# @return [String]
|
|
146
|
+
def members_id_proof_get(id, authorization, opts = {})
|
|
147
|
+
data, _status_code, _headers = members_id_proof_get_with_http_info(id, authorization, opts)
|
|
148
|
+
data
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Get a proof file of a Member
|
|
152
|
+
# Get a proof file of a member
|
|
153
|
+
# @param id
|
|
154
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
157
|
+
def members_id_proof_get_with_http_info(id, authorization, opts = {})
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.members_id_proof_get ...'
|
|
160
|
+
end
|
|
161
|
+
# verify the required parameter 'id' is set
|
|
162
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MembersApi.members_id_proof_get"
|
|
164
|
+
end
|
|
165
|
+
# verify the required parameter 'authorization' is set
|
|
166
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
167
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_id_proof_get"
|
|
168
|
+
end
|
|
169
|
+
# resource path
|
|
170
|
+
local_var_path = '/members/{id}/proof'.sub('{' + 'id' + '}', id.to_s)
|
|
171
|
+
|
|
172
|
+
# query parameters
|
|
173
|
+
query_params = {}
|
|
174
|
+
|
|
175
|
+
# header parameters
|
|
176
|
+
header_params = {}
|
|
177
|
+
# HTTP header 'Accept' (if needed)
|
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
179
|
+
# HTTP header 'Content-Type'
|
|
180
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
181
|
+
header_params[:'Authorization'] = authorization
|
|
182
|
+
|
|
183
|
+
# form parameters
|
|
184
|
+
form_params = {}
|
|
185
|
+
|
|
186
|
+
# http body (model)
|
|
187
|
+
post_body = nil
|
|
188
|
+
auth_names = []
|
|
189
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
190
|
+
:header_params => header_params,
|
|
191
|
+
:query_params => query_params,
|
|
192
|
+
:form_params => form_params,
|
|
193
|
+
:body => post_body,
|
|
194
|
+
:auth_names => auth_names,
|
|
195
|
+
:return_type => 'String')
|
|
196
|
+
if @api_client.config.debugging
|
|
197
|
+
@api_client.config.logger.debug "API called: MembersApi#members_id_proof_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
198
|
+
end
|
|
199
|
+
return data, status_code, headers
|
|
200
|
+
end
|
|
201
|
+
# Edit a Member
|
|
202
|
+
# Edit a member
|
|
203
|
+
# @param id
|
|
204
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
205
|
+
# @param content_type The MIME type of the body of the request
|
|
206
|
+
# @param body
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @return [MemberOutput]
|
|
209
|
+
def members_id_put(id, authorization, content_type, body, opts = {})
|
|
210
|
+
data, _status_code, _headers = members_id_put_with_http_info(id, authorization, content_type, body, opts)
|
|
211
|
+
data
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Edit a Member
|
|
215
|
+
# Edit a member
|
|
216
|
+
# @param id
|
|
217
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
218
|
+
# @param content_type The MIME type of the body of the request
|
|
219
|
+
# @param body
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [Array<(MemberOutput, Fixnum, Hash)>] MemberOutput data, response status code and response headers
|
|
222
|
+
def members_id_put_with_http_info(id, authorization, content_type, body, opts = {})
|
|
223
|
+
if @api_client.config.debugging
|
|
224
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.members_id_put ...'
|
|
225
|
+
end
|
|
226
|
+
# verify the required parameter 'id' is set
|
|
227
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
228
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MembersApi.members_id_put"
|
|
229
|
+
end
|
|
230
|
+
# verify the required parameter 'authorization' is set
|
|
231
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
232
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_id_put"
|
|
233
|
+
end
|
|
234
|
+
# verify the required parameter 'content_type' is set
|
|
235
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
236
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling MembersApi.members_id_put"
|
|
237
|
+
end
|
|
238
|
+
# verify the required parameter 'body' is set
|
|
239
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
240
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MembersApi.members_id_put"
|
|
241
|
+
end
|
|
242
|
+
# resource path
|
|
243
|
+
local_var_path = '/members/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
244
|
+
|
|
245
|
+
# query parameters
|
|
246
|
+
query_params = {}
|
|
247
|
+
|
|
248
|
+
# header parameters
|
|
249
|
+
header_params = {}
|
|
250
|
+
# HTTP header 'Accept' (if needed)
|
|
251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
252
|
+
header_params[:'Authorization'] = authorization
|
|
253
|
+
header_params[:'Content-Type'] = content_type
|
|
254
|
+
|
|
255
|
+
# form parameters
|
|
256
|
+
form_params = {}
|
|
257
|
+
|
|
258
|
+
# http body (model)
|
|
259
|
+
post_body = @api_client.object_to_http_body(body)
|
|
260
|
+
auth_names = []
|
|
261
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
262
|
+
:header_params => header_params,
|
|
263
|
+
:query_params => query_params,
|
|
264
|
+
:form_params => form_params,
|
|
265
|
+
:body => post_body,
|
|
266
|
+
:auth_names => auth_names,
|
|
267
|
+
:return_type => 'MemberOutput')
|
|
268
|
+
if @api_client.config.debugging
|
|
269
|
+
@api_client.config.logger.debug "API called: MembersApi#members_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
270
|
+
end
|
|
271
|
+
return data, status_code, headers
|
|
272
|
+
end
|
|
273
|
+
# Create a new Member
|
|
274
|
+
# Create a new member
|
|
275
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
276
|
+
# @param content_type The MIME type of the body of the request
|
|
277
|
+
# @param body
|
|
278
|
+
# @param [Hash] opts the optional parameters
|
|
279
|
+
# @return [MemberOutput]
|
|
280
|
+
def members_post(authorization, content_type, body, opts = {})
|
|
281
|
+
data, _status_code, _headers = members_post_with_http_info(authorization, content_type, body, opts)
|
|
282
|
+
data
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Create a new Member
|
|
286
|
+
# Create a new member
|
|
287
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
288
|
+
# @param content_type The MIME type of the body of the request
|
|
289
|
+
# @param body
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @return [Array<(MemberOutput, Fixnum, Hash)>] MemberOutput data, response status code and response headers
|
|
292
|
+
def members_post_with_http_info(authorization, content_type, body, opts = {})
|
|
293
|
+
if @api_client.config.debugging
|
|
294
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.members_post ...'
|
|
295
|
+
end
|
|
296
|
+
# verify the required parameter 'authorization' is set
|
|
297
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
298
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling MembersApi.members_post"
|
|
299
|
+
end
|
|
300
|
+
# verify the required parameter 'content_type' is set
|
|
301
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
302
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling MembersApi.members_post"
|
|
303
|
+
end
|
|
304
|
+
# verify the required parameter 'body' is set
|
|
305
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
306
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MembersApi.members_post"
|
|
307
|
+
end
|
|
308
|
+
# resource path
|
|
309
|
+
local_var_path = '/members'
|
|
310
|
+
|
|
311
|
+
# query parameters
|
|
312
|
+
query_params = {}
|
|
313
|
+
|
|
314
|
+
# header parameters
|
|
315
|
+
header_params = {}
|
|
316
|
+
# HTTP header 'Accept' (if needed)
|
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
318
|
+
header_params[:'Authorization'] = authorization
|
|
319
|
+
header_params[:'Content-Type'] = content_type
|
|
320
|
+
|
|
321
|
+
# form parameters
|
|
322
|
+
form_params = {}
|
|
323
|
+
|
|
324
|
+
# http body (model)
|
|
325
|
+
post_body = @api_client.object_to_http_body(body)
|
|
326
|
+
auth_names = []
|
|
327
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
328
|
+
:header_params => header_params,
|
|
329
|
+
:query_params => query_params,
|
|
330
|
+
:form_params => form_params,
|
|
331
|
+
:body => post_body,
|
|
332
|
+
:auth_names => auth_names,
|
|
333
|
+
:return_type => 'MemberOutput')
|
|
334
|
+
if @api_client.config.debugging
|
|
335
|
+
@api_client.config.logger.debug "API called: MembersApi#members_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
336
|
+
end
|
|
337
|
+
return data, status_code, headers
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
@@ -0,0 +1,148 @@
|
|
|
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 OperationsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Find an Operation by ID
|
|
23
|
+
# @param id
|
|
24
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [OperationOutput]
|
|
27
|
+
def operations_id_get(id, authorization, opts = {})
|
|
28
|
+
data, _status_code, _headers = operations_id_get_with_http_info(id, authorization, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Find an Operation by ID
|
|
33
|
+
# @param id
|
|
34
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(OperationOutput, Fixnum, Hash)>] OperationOutput data, response status code and response headers
|
|
37
|
+
def operations_id_get_with_http_info(id, authorization, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: OperationsApi.operations_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 OperationsApi.operations_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 OperationsApi.operations_id_get"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/operations/{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 => 'OperationOutput')
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: OperationsApi#operations_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
# Create a new Operation
|
|
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 [OperationOutput]
|
|
87
|
+
def operations_post(authorization, content_type, body, opts = {})
|
|
88
|
+
data, _status_code, _headers = operations_post_with_http_info(authorization, content_type, body, opts)
|
|
89
|
+
data
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Create a new Operation
|
|
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<(OperationOutput, Fixnum, Hash)>] OperationOutput data, response status code and response headers
|
|
98
|
+
def operations_post_with_http_info(authorization, content_type, body, opts = {})
|
|
99
|
+
if @api_client.config.debugging
|
|
100
|
+
@api_client.config.logger.debug 'Calling API: OperationsApi.operations_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 OperationsApi.operations_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 OperationsApi.operations_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 OperationsApi.operations_post"
|
|
113
|
+
end
|
|
114
|
+
# resource path
|
|
115
|
+
local_var_path = '/operations'
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
125
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
126
|
+
header_params[:'Authorization'] = authorization
|
|
127
|
+
header_params[:'Content-Type'] = content_type
|
|
128
|
+
|
|
129
|
+
# form parameters
|
|
130
|
+
form_params = {}
|
|
131
|
+
|
|
132
|
+
# http body (model)
|
|
133
|
+
post_body = @api_client.object_to_http_body(body)
|
|
134
|
+
auth_names = []
|
|
135
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
136
|
+
:header_params => header_params,
|
|
137
|
+
:query_params => query_params,
|
|
138
|
+
:form_params => form_params,
|
|
139
|
+
:body => post_body,
|
|
140
|
+
:auth_names => auth_names,
|
|
141
|
+
:return_type => 'OperationOutput')
|
|
142
|
+
if @api_client.config.debugging
|
|
143
|
+
@api_client.config.logger.debug "API called: OperationsApi#operations_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
+
end
|
|
145
|
+
return data, status_code, headers
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|