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,10 @@
|
|
|
1
|
+
# YousignClient::WorkspaceConfig
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**authentication_modes** | **Array<String>** | | [optional]
|
|
7
|
+
**procedure** | [**WorkspaceConfigProcedure**](WorkspaceConfigProcedure.md) | | [optional]
|
|
8
|
+
**email** | [**WorkspaceConfigEmail**](WorkspaceConfigEmail.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# YousignClient::WorkspaceConfigEmail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**procedure_started** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
7
|
+
**procedure_finished** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
8
|
+
**procedure_refused** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
9
|
+
**procedure_expired** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
10
|
+
**procedure_deleted** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
11
|
+
**member_started** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
12
|
+
**member_finished** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
13
|
+
**comment_created** | [**Array<ConfigEmailTemplate>**](ConfigEmailTemplate.md) | | [optional]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# YousignClient::WorkspaceOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | Object's ID | [optional]
|
|
7
|
+
**name** | **String** | Workspace name | [optional]
|
|
8
|
+
**config** | [**WorkspaceConfig**](WorkspaceConfig.md) | | [optional]
|
|
9
|
+
**created_at** | **DateTime** | | [optional]
|
|
10
|
+
**updated_at** | **DateTime** | | [optional]
|
|
11
|
+
**email_procedure_from_name** | **String** | | [optional]
|
|
12
|
+
**contact_field_visibility** | **Array<String>** | | [optional]
|
|
13
|
+
**slug** | **String** | | [optional]
|
|
14
|
+
**has_custom_logo** | **BOOLEAN** | | [optional]
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# YousignClient::WorkspacesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.yousign.com*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**workspaces_get**](WorkspacesApi.md#workspaces_get) | **GET** /workspaces | List all Workspaces
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# **workspaces_get**
|
|
11
|
+
> Array<WorkspaceOutput> workspaces_get(authorization)
|
|
12
|
+
|
|
13
|
+
List all Workspaces
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
```ruby
|
|
17
|
+
# load the gem
|
|
18
|
+
require 'yousign_client'
|
|
19
|
+
|
|
20
|
+
api_instance = YousignClient::WorkspacesApi.new
|
|
21
|
+
|
|
22
|
+
authorization = 'Bearer {{access_token}}' # String | Authentication credentials for HTTP authentication
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
begin
|
|
26
|
+
#List all Workspaces
|
|
27
|
+
result = api_instance.workspaces_get(authorization)
|
|
28
|
+
p result
|
|
29
|
+
rescue YousignClient::ApiError => e
|
|
30
|
+
puts "Exception when calling WorkspacesApi->workspaces_get: #{e}"
|
|
31
|
+
end
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
Name | Type | Description | Notes
|
|
37
|
+
------------- | ------------- | ------------- | -------------
|
|
38
|
+
**authorization** | **String**| Authentication credentials for HTTP authentication |
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
[**Array<WorkspaceOutput>**](WorkspaceOutput.md)
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
No authorization required
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
#
|
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
4
|
+
#
|
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
6
|
+
#
|
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
|
8
|
+
|
|
9
|
+
git_user_id=$1
|
|
10
|
+
git_repo_id=$2
|
|
11
|
+
release_note=$3
|
|
12
|
+
|
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
|
14
|
+
git_user_id="GIT_USER_ID"
|
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
if [ "$release_note" = "" ]; then
|
|
24
|
+
release_note="Minor update"
|
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
# Initialize the local directory as a Git repository
|
|
29
|
+
git init
|
|
30
|
+
|
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
|
32
|
+
git add .
|
|
33
|
+
|
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
35
|
+
git commit -m "$release_note"
|
|
36
|
+
|
|
37
|
+
# Sets the new remote
|
|
38
|
+
git_remote=`git remote`
|
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
40
|
+
|
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
|
44
|
+
else
|
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
git pull origin master
|
|
51
|
+
|
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
55
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
# Common files
|
|
14
|
+
require 'yousign_client/api_client'
|
|
15
|
+
require 'yousign_client/api_error'
|
|
16
|
+
require 'yousign_client/version'
|
|
17
|
+
require 'yousign_client/configuration'
|
|
18
|
+
|
|
19
|
+
# Models
|
|
20
|
+
require 'yousign_client/models/authentication_email_output'
|
|
21
|
+
require 'yousign_client/models/authentication_inwebo_output'
|
|
22
|
+
require 'yousign_client/models/authentication_sms_output'
|
|
23
|
+
require 'yousign_client/models/body'
|
|
24
|
+
require 'yousign_client/models/body_1'
|
|
25
|
+
require 'yousign_client/models/body_2'
|
|
26
|
+
require 'yousign_client/models/check_document_bank_accounts_input'
|
|
27
|
+
require 'yousign_client/models/check_document_bank_accounts_output'
|
|
28
|
+
require 'yousign_client/models/check_document_identities_input'
|
|
29
|
+
require 'yousign_client/models/check_document_identities_output'
|
|
30
|
+
require 'yousign_client/models/config_email_template'
|
|
31
|
+
require 'yousign_client/models/config_webhook_template'
|
|
32
|
+
require 'yousign_client/models/consent_process_input'
|
|
33
|
+
require 'yousign_client/models/consent_process_output'
|
|
34
|
+
require 'yousign_client/models/consent_process_value_input'
|
|
35
|
+
require 'yousign_client/models/consent_process_value_output'
|
|
36
|
+
require 'yousign_client/models/file_input'
|
|
37
|
+
require 'yousign_client/models/file_input_metadata'
|
|
38
|
+
require 'yousign_client/models/file_object_input'
|
|
39
|
+
require 'yousign_client/models/file_object_input_without_file_reference'
|
|
40
|
+
require 'yousign_client/models/file_object_output'
|
|
41
|
+
require 'yousign_client/models/file_object_output_without_file_reference'
|
|
42
|
+
require 'yousign_client/models/file_output'
|
|
43
|
+
require 'yousign_client/models/inline_response_400'
|
|
44
|
+
require 'yousign_client/models/inwebo_user_request'
|
|
45
|
+
require 'yousign_client/models/member_input'
|
|
46
|
+
require 'yousign_client/models/member_output'
|
|
47
|
+
require 'yousign_client/models/mode_sms_configuration'
|
|
48
|
+
require 'yousign_client/models/operation_input'
|
|
49
|
+
require 'yousign_client/models/operation_output'
|
|
50
|
+
require 'yousign_client/models/operation_output_metadata'
|
|
51
|
+
require 'yousign_client/models/organization_billing_address'
|
|
52
|
+
require 'yousign_client/models/organization_output'
|
|
53
|
+
require 'yousign_client/models/procedure_config'
|
|
54
|
+
require 'yousign_client/models/procedure_config_email'
|
|
55
|
+
require 'yousign_client/models/procedure_config_reminder'
|
|
56
|
+
require 'yousign_client/models/procedure_config_reminder_config'
|
|
57
|
+
require 'yousign_client/models/procedure_config_reminder_config_email'
|
|
58
|
+
require 'yousign_client/models/procedure_config_webhook'
|
|
59
|
+
require 'yousign_client/models/procedure_duplicate_input'
|
|
60
|
+
require 'yousign_client/models/procedure_input'
|
|
61
|
+
require 'yousign_client/models/procedure_input_metadata'
|
|
62
|
+
require 'yousign_client/models/procedure_output'
|
|
63
|
+
require 'yousign_client/models/procedure_output_metadata'
|
|
64
|
+
require 'yousign_client/models/procedure_remind_config'
|
|
65
|
+
require 'yousign_client/models/procedure_remind_config_email'
|
|
66
|
+
require 'yousign_client/models/procedure_remind_input'
|
|
67
|
+
require 'yousign_client/models/server_stamp_config'
|
|
68
|
+
require 'yousign_client/models/server_stamp_config_webhook'
|
|
69
|
+
require 'yousign_client/models/server_stamp_input'
|
|
70
|
+
require 'yousign_client/models/server_stamp_output'
|
|
71
|
+
require 'yousign_client/models/signature_ui_input'
|
|
72
|
+
require 'yousign_client/models/signature_ui_input_redirect_cancel'
|
|
73
|
+
require 'yousign_client/models/signature_ui_input_redirect_error'
|
|
74
|
+
require 'yousign_client/models/signature_ui_input_redirect_success'
|
|
75
|
+
require 'yousign_client/models/signature_ui_input_update'
|
|
76
|
+
require 'yousign_client/models/signature_ui_label_input'
|
|
77
|
+
require 'yousign_client/models/signature_ui_label_input_included'
|
|
78
|
+
require 'yousign_client/models/signature_ui_label_output'
|
|
79
|
+
require 'yousign_client/models/signature_ui_output'
|
|
80
|
+
require 'yousign_client/models/signature_ui_output_redirect_cancel'
|
|
81
|
+
require 'yousign_client/models/signature_ui_output_redirect_error'
|
|
82
|
+
require 'yousign_client/models/signature_ui_output_redirect_success'
|
|
83
|
+
require 'yousign_client/models/user_group'
|
|
84
|
+
require 'yousign_client/models/user_input'
|
|
85
|
+
require 'yousign_client/models/user_input_notifications'
|
|
86
|
+
require 'yousign_client/models/user_output'
|
|
87
|
+
require 'yousign_client/models/user_output_notifications'
|
|
88
|
+
require 'yousign_client/models/user_workspace_output'
|
|
89
|
+
require 'yousign_client/models/workspace_config'
|
|
90
|
+
require 'yousign_client/models/workspace_config_email'
|
|
91
|
+
require 'yousign_client/models/workspace_config_procedure'
|
|
92
|
+
require 'yousign_client/models/workspace_output'
|
|
93
|
+
|
|
94
|
+
# APIs
|
|
95
|
+
require 'yousign_client/api/authentications_api'
|
|
96
|
+
require 'yousign_client/api/check_documents_api'
|
|
97
|
+
require 'yousign_client/api/consent_processes_api'
|
|
98
|
+
require 'yousign_client/api/file_objects_api'
|
|
99
|
+
require 'yousign_client/api/files_api'
|
|
100
|
+
require 'yousign_client/api/members_api'
|
|
101
|
+
require 'yousign_client/api/operations_api'
|
|
102
|
+
require 'yousign_client/api/organizations_api'
|
|
103
|
+
require 'yousign_client/api/procedures_api'
|
|
104
|
+
require 'yousign_client/api/server_stamps_api'
|
|
105
|
+
require 'yousign_client/api/signature_u_is_api'
|
|
106
|
+
require 'yousign_client/api/user_groups_api'
|
|
107
|
+
require 'yousign_client/api/users_api'
|
|
108
|
+
require 'yousign_client/api/workspaces_api'
|
|
109
|
+
|
|
110
|
+
module YousignClient
|
|
111
|
+
class << self
|
|
112
|
+
# Customize default settings for the SDK using block.
|
|
113
|
+
# YousignClient.configure do |config|
|
|
114
|
+
# config.username = "xxx"
|
|
115
|
+
# config.password = "xxx"
|
|
116
|
+
# end
|
|
117
|
+
# If no block given, return the default Configuration object.
|
|
118
|
+
def configure
|
|
119
|
+
if block_given?
|
|
120
|
+
yield(Configuration.default)
|
|
121
|
+
else
|
|
122
|
+
Configuration.default
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,410 @@
|
|
|
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 AuthenticationsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Find an Authentication by ID
|
|
23
|
+
# @param id
|
|
24
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [AuthenticationEmailOutput]
|
|
27
|
+
def authentications_email_id_get(id, authorization, opts = {})
|
|
28
|
+
data, _status_code, _headers = authentications_email_id_get_with_http_info(id, authorization, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Find an Authentication by ID
|
|
33
|
+
# @param id
|
|
34
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(AuthenticationEmailOutput, Fixnum, Hash)>] AuthenticationEmailOutput data, response status code and response headers
|
|
37
|
+
def authentications_email_id_get_with_http_info(id, authorization, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_email_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 AuthenticationsApi.authentications_email_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 AuthenticationsApi.authentications_email_id_get"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/authentications/email/{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 => 'AuthenticationEmailOutput')
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: AuthenticationsApi#authentications_email_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
# Update an Email Authentication
|
|
82
|
+
# @param id
|
|
83
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
84
|
+
# @param content_type The MIME type of the body of the request
|
|
85
|
+
# @param body
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [AuthenticationEmailOutput]
|
|
88
|
+
def authentications_email_id_put(id, authorization, content_type, body, opts = {})
|
|
89
|
+
data, _status_code, _headers = authentications_email_id_put_with_http_info(id, authorization, content_type, body, opts)
|
|
90
|
+
data
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Update an Email Authentication
|
|
94
|
+
# @param id
|
|
95
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
96
|
+
# @param content_type The MIME type of the body of the request
|
|
97
|
+
# @param body
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @return [Array<(AuthenticationEmailOutput, Fixnum, Hash)>] AuthenticationEmailOutput data, response status code and response headers
|
|
100
|
+
def authentications_email_id_put_with_http_info(id, authorization, content_type, body, opts = {})
|
|
101
|
+
if @api_client.config.debugging
|
|
102
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_email_id_put ...'
|
|
103
|
+
end
|
|
104
|
+
# verify the required parameter 'id' is set
|
|
105
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
106
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_email_id_put"
|
|
107
|
+
end
|
|
108
|
+
# verify the required parameter 'authorization' is set
|
|
109
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_email_id_put"
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'content_type' is set
|
|
113
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling AuthenticationsApi.authentications_email_id_put"
|
|
115
|
+
end
|
|
116
|
+
# verify the required parameter 'body' is set
|
|
117
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticationsApi.authentications_email_id_put"
|
|
119
|
+
end
|
|
120
|
+
# resource path
|
|
121
|
+
local_var_path = '/authentications/email/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
122
|
+
|
|
123
|
+
# query parameters
|
|
124
|
+
query_params = {}
|
|
125
|
+
|
|
126
|
+
# header parameters
|
|
127
|
+
header_params = {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
130
|
+
header_params[:'Authorization'] = authorization
|
|
131
|
+
header_params[:'Content-Type'] = content_type
|
|
132
|
+
|
|
133
|
+
# form parameters
|
|
134
|
+
form_params = {}
|
|
135
|
+
|
|
136
|
+
# http body (model)
|
|
137
|
+
post_body = @api_client.object_to_http_body(body)
|
|
138
|
+
auth_names = []
|
|
139
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
140
|
+
:header_params => header_params,
|
|
141
|
+
:query_params => query_params,
|
|
142
|
+
:form_params => form_params,
|
|
143
|
+
:body => post_body,
|
|
144
|
+
:auth_names => auth_names,
|
|
145
|
+
:return_type => 'AuthenticationEmailOutput')
|
|
146
|
+
if @api_client.config.debugging
|
|
147
|
+
@api_client.config.logger.debug "API called: AuthenticationsApi#authentications_email_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
|
+
end
|
|
149
|
+
return data, status_code, headers
|
|
150
|
+
end
|
|
151
|
+
# Get an Authentication
|
|
152
|
+
# @param id
|
|
153
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
154
|
+
# @param [Hash] opts the optional parameters
|
|
155
|
+
# @return [AuthenticationInweboOutput]
|
|
156
|
+
def authentications_inwebo_id_get(id, authorization, opts = {})
|
|
157
|
+
data, _status_code, _headers = authentications_inwebo_id_get_with_http_info(id, authorization, opts)
|
|
158
|
+
data
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Get an Authentication
|
|
162
|
+
# @param id
|
|
163
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @return [Array<(AuthenticationInweboOutput, Fixnum, Hash)>] AuthenticationInweboOutput data, response status code and response headers
|
|
166
|
+
def authentications_inwebo_id_get_with_http_info(id, authorization, opts = {})
|
|
167
|
+
if @api_client.config.debugging
|
|
168
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_inwebo_id_get ...'
|
|
169
|
+
end
|
|
170
|
+
# verify the required parameter 'id' is set
|
|
171
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
172
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_inwebo_id_get"
|
|
173
|
+
end
|
|
174
|
+
# verify the required parameter 'authorization' is set
|
|
175
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
176
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_inwebo_id_get"
|
|
177
|
+
end
|
|
178
|
+
# resource path
|
|
179
|
+
local_var_path = '/authentications/inwebo/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
180
|
+
|
|
181
|
+
# query parameters
|
|
182
|
+
query_params = {}
|
|
183
|
+
|
|
184
|
+
# header parameters
|
|
185
|
+
header_params = {}
|
|
186
|
+
# HTTP header 'Accept' (if needed)
|
|
187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
188
|
+
# HTTP header 'Content-Type'
|
|
189
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
190
|
+
header_params[:'Authorization'] = authorization
|
|
191
|
+
|
|
192
|
+
# form parameters
|
|
193
|
+
form_params = {}
|
|
194
|
+
|
|
195
|
+
# http body (model)
|
|
196
|
+
post_body = nil
|
|
197
|
+
auth_names = []
|
|
198
|
+
data, status_code, headers = @api_client.call_api(:GET, 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 => 'AuthenticationInweboOutput')
|
|
205
|
+
if @api_client.config.debugging
|
|
206
|
+
@api_client.config.logger.debug "API called: AuthenticationsApi#authentications_inwebo_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
207
|
+
end
|
|
208
|
+
return data, status_code, headers
|
|
209
|
+
end
|
|
210
|
+
# Update an inwebo Authentication
|
|
211
|
+
# @param id
|
|
212
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
213
|
+
# @param content_type The MIME type of the body of the request
|
|
214
|
+
# @param body
|
|
215
|
+
# @param [Hash] opts the optional parameters
|
|
216
|
+
# @return [AuthenticationInweboOutput]
|
|
217
|
+
def authentications_inwebo_id_put(id, authorization, content_type, body, opts = {})
|
|
218
|
+
data, _status_code, _headers = authentications_inwebo_id_put_with_http_info(id, authorization, content_type, body, opts)
|
|
219
|
+
data
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Update an inwebo Authentication
|
|
223
|
+
# @param id
|
|
224
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
225
|
+
# @param content_type The MIME type of the body of the request
|
|
226
|
+
# @param body
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @return [Array<(AuthenticationInweboOutput, Fixnum, Hash)>] AuthenticationInweboOutput data, response status code and response headers
|
|
229
|
+
def authentications_inwebo_id_put_with_http_info(id, authorization, content_type, body, opts = {})
|
|
230
|
+
if @api_client.config.debugging
|
|
231
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_inwebo_id_put ...'
|
|
232
|
+
end
|
|
233
|
+
# verify the required parameter 'id' is set
|
|
234
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
235
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_inwebo_id_put"
|
|
236
|
+
end
|
|
237
|
+
# verify the required parameter 'authorization' is set
|
|
238
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
239
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_inwebo_id_put"
|
|
240
|
+
end
|
|
241
|
+
# verify the required parameter 'content_type' is set
|
|
242
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
243
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling AuthenticationsApi.authentications_inwebo_id_put"
|
|
244
|
+
end
|
|
245
|
+
# verify the required parameter 'body' is set
|
|
246
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
247
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticationsApi.authentications_inwebo_id_put"
|
|
248
|
+
end
|
|
249
|
+
# resource path
|
|
250
|
+
local_var_path = '/authentications/inwebo/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
251
|
+
|
|
252
|
+
# query parameters
|
|
253
|
+
query_params = {}
|
|
254
|
+
|
|
255
|
+
# header parameters
|
|
256
|
+
header_params = {}
|
|
257
|
+
# HTTP header 'Accept' (if needed)
|
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
259
|
+
header_params[:'Authorization'] = authorization
|
|
260
|
+
header_params[:'Content-Type'] = content_type
|
|
261
|
+
|
|
262
|
+
# form parameters
|
|
263
|
+
form_params = {}
|
|
264
|
+
|
|
265
|
+
# http body (model)
|
|
266
|
+
post_body = @api_client.object_to_http_body(body)
|
|
267
|
+
auth_names = []
|
|
268
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
269
|
+
:header_params => header_params,
|
|
270
|
+
:query_params => query_params,
|
|
271
|
+
:form_params => form_params,
|
|
272
|
+
:body => post_body,
|
|
273
|
+
:auth_names => auth_names,
|
|
274
|
+
:return_type => 'AuthenticationInweboOutput')
|
|
275
|
+
if @api_client.config.debugging
|
|
276
|
+
@api_client.config.logger.debug "API called: AuthenticationsApi#authentications_inwebo_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
277
|
+
end
|
|
278
|
+
return data, status_code, headers
|
|
279
|
+
end
|
|
280
|
+
# Find an Authentication by ID
|
|
281
|
+
# @param id
|
|
282
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
283
|
+
# @param [Hash] opts the optional parameters
|
|
284
|
+
# @return [AuthenticationSmsOutput]
|
|
285
|
+
def authentications_sms_id_get(id, authorization, opts = {})
|
|
286
|
+
data, _status_code, _headers = authentications_sms_id_get_with_http_info(id, authorization, opts)
|
|
287
|
+
data
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Find an Authentication by ID
|
|
291
|
+
# @param id
|
|
292
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
293
|
+
# @param [Hash] opts the optional parameters
|
|
294
|
+
# @return [Array<(AuthenticationSmsOutput, Fixnum, Hash)>] AuthenticationSmsOutput data, response status code and response headers
|
|
295
|
+
def authentications_sms_id_get_with_http_info(id, authorization, opts = {})
|
|
296
|
+
if @api_client.config.debugging
|
|
297
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_sms_id_get ...'
|
|
298
|
+
end
|
|
299
|
+
# verify the required parameter 'id' is set
|
|
300
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
301
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_sms_id_get"
|
|
302
|
+
end
|
|
303
|
+
# verify the required parameter 'authorization' is set
|
|
304
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
305
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_sms_id_get"
|
|
306
|
+
end
|
|
307
|
+
# resource path
|
|
308
|
+
local_var_path = '/authentications/sms/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
309
|
+
|
|
310
|
+
# query parameters
|
|
311
|
+
query_params = {}
|
|
312
|
+
|
|
313
|
+
# header parameters
|
|
314
|
+
header_params = {}
|
|
315
|
+
# HTTP header 'Accept' (if needed)
|
|
316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
317
|
+
# HTTP header 'Content-Type'
|
|
318
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
319
|
+
header_params[:'Authorization'] = authorization
|
|
320
|
+
|
|
321
|
+
# form parameters
|
|
322
|
+
form_params = {}
|
|
323
|
+
|
|
324
|
+
# http body (model)
|
|
325
|
+
post_body = nil
|
|
326
|
+
auth_names = []
|
|
327
|
+
data, status_code, headers = @api_client.call_api(:GET, 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 => 'AuthenticationSmsOutput')
|
|
334
|
+
if @api_client.config.debugging
|
|
335
|
+
@api_client.config.logger.debug "API called: AuthenticationsApi#authentications_sms_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
336
|
+
end
|
|
337
|
+
return data, status_code, headers
|
|
338
|
+
end
|
|
339
|
+
# Update an SMS Authentication
|
|
340
|
+
# @param id
|
|
341
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
342
|
+
# @param content_type The MIME type of the body of the request
|
|
343
|
+
# @param body
|
|
344
|
+
# @param [Hash] opts the optional parameters
|
|
345
|
+
# @return [AuthenticationSmsOutput]
|
|
346
|
+
def authentications_sms_id_put(id, authorization, content_type, body, opts = {})
|
|
347
|
+
data, _status_code, _headers = authentications_sms_id_put_with_http_info(id, authorization, content_type, body, opts)
|
|
348
|
+
data
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Update an SMS Authentication
|
|
352
|
+
# @param id
|
|
353
|
+
# @param authorization Authentication credentials for HTTP authentication
|
|
354
|
+
# @param content_type The MIME type of the body of the request
|
|
355
|
+
# @param body
|
|
356
|
+
# @param [Hash] opts the optional parameters
|
|
357
|
+
# @return [Array<(AuthenticationSmsOutput, Fixnum, Hash)>] AuthenticationSmsOutput data, response status code and response headers
|
|
358
|
+
def authentications_sms_id_put_with_http_info(id, authorization, content_type, body, opts = {})
|
|
359
|
+
if @api_client.config.debugging
|
|
360
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationsApi.authentications_sms_id_put ...'
|
|
361
|
+
end
|
|
362
|
+
# verify the required parameter 'id' is set
|
|
363
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
364
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AuthenticationsApi.authentications_sms_id_put"
|
|
365
|
+
end
|
|
366
|
+
# verify the required parameter 'authorization' is set
|
|
367
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
368
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling AuthenticationsApi.authentications_sms_id_put"
|
|
369
|
+
end
|
|
370
|
+
# verify the required parameter 'content_type' is set
|
|
371
|
+
if @api_client.config.client_side_validation && content_type.nil?
|
|
372
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling AuthenticationsApi.authentications_sms_id_put"
|
|
373
|
+
end
|
|
374
|
+
# verify the required parameter 'body' is set
|
|
375
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
376
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AuthenticationsApi.authentications_sms_id_put"
|
|
377
|
+
end
|
|
378
|
+
# resource path
|
|
379
|
+
local_var_path = '/authentications/sms/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
380
|
+
|
|
381
|
+
# query parameters
|
|
382
|
+
query_params = {}
|
|
383
|
+
|
|
384
|
+
# header parameters
|
|
385
|
+
header_params = {}
|
|
386
|
+
# HTTP header 'Accept' (if needed)
|
|
387
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
388
|
+
header_params[:'Authorization'] = authorization
|
|
389
|
+
header_params[:'Content-Type'] = content_type
|
|
390
|
+
|
|
391
|
+
# form parameters
|
|
392
|
+
form_params = {}
|
|
393
|
+
|
|
394
|
+
# http body (model)
|
|
395
|
+
post_body = @api_client.object_to_http_body(body)
|
|
396
|
+
auth_names = []
|
|
397
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
398
|
+
:header_params => header_params,
|
|
399
|
+
:query_params => query_params,
|
|
400
|
+
:form_params => form_params,
|
|
401
|
+
:body => post_body,
|
|
402
|
+
:auth_names => auth_names,
|
|
403
|
+
:return_type => 'AuthenticationSmsOutput')
|
|
404
|
+
if @api_client.config.debugging
|
|
405
|
+
@api_client.config.logger.debug "API called: AuthenticationsApi#authentications_sms_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
406
|
+
end
|
|
407
|
+
return data, status_code, headers
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
end
|