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