signwell_sdk 0.0.1.pre.alpha.1
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/.ignore +2 -0
- data/CHANGELOG.md +24 -0
- data/README.md +398 -0
- data/SECURITY.md +23 -0
- data/lib/signwell_sdk/client.rb +72 -0
- data/lib/signwell_sdk/errors.rb +228 -0
- data/lib/signwell_sdk/file_part.rb +58 -0
- data/lib/signwell_sdk/internal/transport/base_client.rb +573 -0
- data/lib/signwell_sdk/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/signwell_sdk/internal/type/array_of.rb +168 -0
- data/lib/signwell_sdk/internal/type/base_model.rb +531 -0
- data/lib/signwell_sdk/internal/type/base_page.rb +55 -0
- data/lib/signwell_sdk/internal/type/boolean.rb +77 -0
- data/lib/signwell_sdk/internal/type/converter.rb +327 -0
- data/lib/signwell_sdk/internal/type/enum.rb +156 -0
- data/lib/signwell_sdk/internal/type/file_input.rb +111 -0
- data/lib/signwell_sdk/internal/type/hash_of.rb +188 -0
- data/lib/signwell_sdk/internal/type/request_parameters.rb +42 -0
- data/lib/signwell_sdk/internal/type/union.rb +243 -0
- data/lib/signwell_sdk/internal/type/unknown.rb +81 -0
- data/lib/signwell_sdk/internal/util.rb +920 -0
- data/lib/signwell_sdk/internal.rb +20 -0
- data/lib/signwell_sdk/models/attachment_request_info.rb +34 -0
- data/lib/signwell_sdk/models/checkbox_group_info.rb +66 -0
- data/lib/signwell_sdk/models/checkbox_validation.rb +18 -0
- data/lib/signwell_sdk/models/copied_contact_info.rb +34 -0
- data/lib/signwell_sdk/models/date_format.rb +20 -0
- data/lib/signwell_sdk/models/field_type.rb +29 -0
- data/lib/signwell_sdk/models/file_info.rb +26 -0
- data/lib/signwell_sdk/models/label_info.rb +26 -0
- data/lib/signwell_sdk/models/text_validation.rb +25 -0
- data/lib/signwell_sdk/models/v1/api_application_delete_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/api_application_retrieve_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/attachment_request.rb +38 -0
- data/lib/signwell_sdk/models/v1/bulk_send_create_params.rb +107 -0
- data/lib/signwell_sdk/models/v1/bulk_send_list_params.rb +55 -0
- data/lib/signwell_sdk/models/v1/bulk_send_retrieve_csv_template_params.rb +39 -0
- data/lib/signwell_sdk/models/v1/bulk_send_retrieve_documents_params.rb +32 -0
- data/lib/signwell_sdk/models/v1/bulk_send_retrieve_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/bulk_send_validate_csv_params.rb +39 -0
- data/lib/signwell_sdk/models/v1/checkbox_group.rb +80 -0
- data/lib/signwell_sdk/models/v1/copied_contact.rb +26 -0
- data/lib/signwell_sdk/models/v1/document.rb +543 -0
- data/lib/signwell_sdk/models/v1/document_create_from_template_params.rb +740 -0
- data/lib/signwell_sdk/models/v1/document_create_from_template_response.rb +500 -0
- data/lib/signwell_sdk/models/v1/document_create_params.rb +620 -0
- data/lib/signwell_sdk/models/v1/document_delete_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/document_file.rb +34 -0
- data/lib/signwell_sdk/models/v1/document_list_params.rb +32 -0
- data/lib/signwell_sdk/models/v1/document_list_response.rb +50 -0
- data/lib/signwell_sdk/models/v1/document_remind_params.rb +49 -0
- data/lib/signwell_sdk/models/v1/document_retrieve_completed_pdf_params.rb +55 -0
- data/lib/signwell_sdk/models/v1/document_retrieve_completed_pdf_response.rb +22 -0
- data/lib/signwell_sdk/models/v1/document_retrieve_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/document_send_params.rb +198 -0
- data/lib/signwell_sdk/models/v1/document_template.rb +503 -0
- data/lib/signwell_sdk/models/v1/document_template_create_params.rb +599 -0
- data/lib/signwell_sdk/models/v1/document_template_delete_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/document_template_list_params.rb +32 -0
- data/lib/signwell_sdk/models/v1/document_template_list_response.rb +50 -0
- data/lib/signwell_sdk/models/v1/document_template_retrieve_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/document_template_update_params.rb +162 -0
- data/lib/signwell_sdk/models/v1/hook_create_params.rb +32 -0
- data/lib/signwell_sdk/models/v1/hook_delete_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/hook_list_params.rb +16 -0
- data/lib/signwell_sdk/models/v1/label.rb +22 -0
- data/lib/signwell_sdk/models/v1/template_checkbox_group.rb +80 -0
- data/lib/signwell_sdk/models/v1_me_params.rb +14 -0
- data/lib/signwell_sdk/models.rb +63 -0
- data/lib/signwell_sdk/request_options.rb +77 -0
- data/lib/signwell_sdk/resources/v1/api_applications.rb +59 -0
- data/lib/signwell_sdk/resources/v1/bulk_sends.rb +198 -0
- data/lib/signwell_sdk/resources/v1/document_templates.rb +204 -0
- data/lib/signwell_sdk/resources/v1/documents.rb +372 -0
- data/lib/signwell_sdk/resources/v1/hooks.rb +78 -0
- data/lib/signwell_sdk/resources/v1.rb +47 -0
- data/lib/signwell_sdk/version.rb +5 -0
- data/lib/signwell_sdk.rb +107 -0
- data/manifest.yaml +17 -0
- data/rbi/signwell_sdk/client.rbi +49 -0
- data/rbi/signwell_sdk/errors.rbi +205 -0
- data/rbi/signwell_sdk/file_part.rbi +37 -0
- data/rbi/signwell_sdk/internal/transport/base_client.rbi +302 -0
- data/rbi/signwell_sdk/internal/transport/pooled_net_requester.rbi +84 -0
- data/rbi/signwell_sdk/internal/type/array_of.rbi +104 -0
- data/rbi/signwell_sdk/internal/type/base_model.rbi +308 -0
- data/rbi/signwell_sdk/internal/type/base_page.rbi +43 -0
- data/rbi/signwell_sdk/internal/type/boolean.rbi +58 -0
- data/rbi/signwell_sdk/internal/type/converter.rbi +216 -0
- data/rbi/signwell_sdk/internal/type/enum.rbi +82 -0
- data/rbi/signwell_sdk/internal/type/file_input.rbi +59 -0
- data/rbi/signwell_sdk/internal/type/hash_of.rbi +104 -0
- data/rbi/signwell_sdk/internal/type/request_parameters.rbi +31 -0
- data/rbi/signwell_sdk/internal/type/union.rbi +128 -0
- data/rbi/signwell_sdk/internal/type/unknown.rbi +58 -0
- data/rbi/signwell_sdk/internal/util.rbi +487 -0
- data/rbi/signwell_sdk/internal.rbi +18 -0
- data/rbi/signwell_sdk/models/attachment_request_info.rbi +52 -0
- data/rbi/signwell_sdk/models/checkbox_group_info.rbi +89 -0
- data/rbi/signwell_sdk/models/checkbox_validation.rbi +27 -0
- data/rbi/signwell_sdk/models/copied_contact_info.rbi +50 -0
- data/rbi/signwell_sdk/models/date_format.rbi +26 -0
- data/rbi/signwell_sdk/models/field_type.rbi +41 -0
- data/rbi/signwell_sdk/models/file_info.rbi +36 -0
- data/rbi/signwell_sdk/models/label_info.rbi +40 -0
- data/rbi/signwell_sdk/models/text_validation.rbi +44 -0
- data/rbi/signwell_sdk/models/v1/api_application_delete_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/api_application_retrieve_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/attachment_request.rbi +59 -0
- data/rbi/signwell_sdk/models/v1/bulk_send_create_params.rbi +160 -0
- data/rbi/signwell_sdk/models/v1/bulk_send_list_params.rbi +92 -0
- data/rbi/signwell_sdk/models/v1/bulk_send_retrieve_csv_template_params.rbi +67 -0
- data/rbi/signwell_sdk/models/v1/bulk_send_retrieve_documents_params.rbi +62 -0
- data/rbi/signwell_sdk/models/v1/bulk_send_retrieve_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/bulk_send_validate_csv_params.rbi +64 -0
- data/rbi/signwell_sdk/models/v1/checkbox_group.rbi +121 -0
- data/rbi/signwell_sdk/models/v1/copied_contact.rbi +41 -0
- data/rbi/signwell_sdk/models/v1/document.rbi +833 -0
- data/rbi/signwell_sdk/models/v1/document_create_from_template_params.rbi +1270 -0
- data/rbi/signwell_sdk/models/v1/document_create_from_template_response.rbi +856 -0
- data/rbi/signwell_sdk/models/v1/document_create_params.rbi +1019 -0
- data/rbi/signwell_sdk/models/v1/document_delete_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/document_file.rbi +55 -0
- data/rbi/signwell_sdk/models/v1/document_list_params.rbi +62 -0
- data/rbi/signwell_sdk/models/v1/document_list_response.rbi +71 -0
- data/rbi/signwell_sdk/models/v1/document_remind_params.rbi +107 -0
- data/rbi/signwell_sdk/models/v1/document_retrieve_completed_pdf_params.rbi +123 -0
- data/rbi/signwell_sdk/models/v1/document_retrieve_completed_pdf_response.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/document_retrieve_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/document_send_params.rbi +307 -0
- data/rbi/signwell_sdk/models/v1/document_template.rbi +830 -0
- data/rbi/signwell_sdk/models/v1/document_template_create_params.rbi +1050 -0
- data/rbi/signwell_sdk/models/v1/document_template_delete_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/document_template_list_params.rbi +62 -0
- data/rbi/signwell_sdk/models/v1/document_template_list_response.rbi +71 -0
- data/rbi/signwell_sdk/models/v1/document_template_retrieve_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/document_template_update_params.rbi +257 -0
- data/rbi/signwell_sdk/models/v1/hook_create_params.rbi +59 -0
- data/rbi/signwell_sdk/models/v1/hook_delete_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/hook_list_params.rbi +34 -0
- data/rbi/signwell_sdk/models/v1/label.rbi +29 -0
- data/rbi/signwell_sdk/models/v1/template_checkbox_group.rbi +121 -0
- data/rbi/signwell_sdk/models/v1_me_params.rbi +27 -0
- data/rbi/signwell_sdk/models.rbi +25 -0
- data/rbi/signwell_sdk/request_options.rbi +59 -0
- data/rbi/signwell_sdk/resources/v1/api_applications.rbi +45 -0
- data/rbi/signwell_sdk/resources/v1/bulk_sends.rbi +173 -0
- data/rbi/signwell_sdk/resources/v1/document_templates.rbi +276 -0
- data/rbi/signwell_sdk/resources/v1/documents.rbi +527 -0
- data/rbi/signwell_sdk/resources/v1/hooks.rbi +52 -0
- data/rbi/signwell_sdk/resources/v1.rbi +32 -0
- data/rbi/signwell_sdk/version.rbi +5 -0
- data/sig/signwell_sdk/client.rbs +26 -0
- data/sig/signwell_sdk/errors.rbs +117 -0
- data/sig/signwell_sdk/file_part.rbs +21 -0
- data/sig/signwell_sdk/internal/transport/base_client.rbs +133 -0
- data/sig/signwell_sdk/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/signwell_sdk/internal/type/array_of.rbs +48 -0
- data/sig/signwell_sdk/internal/type/base_model.rbs +102 -0
- data/sig/signwell_sdk/internal/type/base_page.rbs +24 -0
- data/sig/signwell_sdk/internal/type/boolean.rbs +26 -0
- data/sig/signwell_sdk/internal/type/converter.rbs +79 -0
- data/sig/signwell_sdk/internal/type/enum.rbs +32 -0
- data/sig/signwell_sdk/internal/type/file_input.rbs +25 -0
- data/sig/signwell_sdk/internal/type/hash_of.rbs +48 -0
- data/sig/signwell_sdk/internal/type/request_parameters.rbs +19 -0
- data/sig/signwell_sdk/internal/type/union.rbs +52 -0
- data/sig/signwell_sdk/internal/type/unknown.rbs +26 -0
- data/sig/signwell_sdk/internal/util.rbs +185 -0
- data/sig/signwell_sdk/internal.rbs +9 -0
- data/sig/signwell_sdk/models/attachment_request_info.rbs +19 -0
- data/sig/signwell_sdk/models/checkbox_group_info.rbs +52 -0
- data/sig/signwell_sdk/models/checkbox_validation.rbs +16 -0
- data/sig/signwell_sdk/models/copied_contact_info.rbs +21 -0
- data/sig/signwell_sdk/models/date_format.rbs +22 -0
- data/sig/signwell_sdk/models/field_type.rbs +42 -0
- data/sig/signwell_sdk/models/file_info.rbs +15 -0
- data/sig/signwell_sdk/models/label_info.rbs +19 -0
- data/sig/signwell_sdk/models/text_validation.rbs +34 -0
- data/sig/signwell_sdk/models/v1/api_application_delete_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/api_application_retrieve_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/attachment_request.rbs +26 -0
- data/sig/signwell_sdk/models/v1/bulk_send_create_params.rbs +89 -0
- data/sig/signwell_sdk/models/v1/bulk_send_list_params.rbs +51 -0
- data/sig/signwell_sdk/models/v1/bulk_send_retrieve_csv_template_params.rbs +32 -0
- data/sig/signwell_sdk/models/v1/bulk_send_retrieve_documents_params.rbs +34 -0
- data/sig/signwell_sdk/models/v1/bulk_send_retrieve_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/bulk_send_validate_csv_params.rbs +30 -0
- data/sig/signwell_sdk/models/v1/checkbox_group.rbs +69 -0
- data/sig/signwell_sdk/models/v1/copied_contact.rbs +19 -0
- data/sig/signwell_sdk/models/v1/document.rbs +563 -0
- data/sig/signwell_sdk/models/v1/document_create_from_template_params.rbs +570 -0
- data/sig/signwell_sdk/models/v1/document_create_from_template_response.rbs +518 -0
- data/sig/signwell_sdk/models/v1/document_create_params.rbs +473 -0
- data/sig/signwell_sdk/models/v1/document_delete_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/document_file.rbs +32 -0
- data/sig/signwell_sdk/models/v1/document_list_params.rbs +34 -0
- data/sig/signwell_sdk/models/v1/document_list_response.rbs +47 -0
- data/sig/signwell_sdk/models/v1/document_remind_params.rbs +48 -0
- data/sig/signwell_sdk/models/v1/document_retrieve_completed_pdf_params.rbs +57 -0
- data/sig/signwell_sdk/models/v1/document_retrieve_completed_pdf_response.rbs +15 -0
- data/sig/signwell_sdk/models/v1/document_retrieve_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/document_send_params.rbs +160 -0
- data/sig/signwell_sdk/models/v1/document_template.rbs +530 -0
- data/sig/signwell_sdk/models/v1/document_template_create_params.rbs +459 -0
- data/sig/signwell_sdk/models/v1/document_template_delete_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/document_template_list_params.rbs +34 -0
- data/sig/signwell_sdk/models/v1/document_template_list_response.rbs +47 -0
- data/sig/signwell_sdk/models/v1/document_template_retrieve_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/document_template_update_params.rbs +132 -0
- data/sig/signwell_sdk/models/v1/hook_create_params.rbs +32 -0
- data/sig/signwell_sdk/models/v1/hook_delete_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/hook_list_params.rbs +17 -0
- data/sig/signwell_sdk/models/v1/label.rbs +15 -0
- data/sig/signwell_sdk/models/v1/template_checkbox_group.rbs +69 -0
- data/sig/signwell_sdk/models/v1_me_params.rbs +14 -0
- data/sig/signwell_sdk/models.rbs +23 -0
- data/sig/signwell_sdk/request_options.rbs +36 -0
- data/sig/signwell_sdk/resources/v1/api_applications.rbs +19 -0
- data/sig/signwell_sdk/resources/v1/bulk_sends.rbs +55 -0
- data/sig/signwell_sdk/resources/v1/document_templates.rbs +71 -0
- data/sig/signwell_sdk/resources/v1/documents.rbs +130 -0
- data/sig/signwell_sdk/resources/v1/hooks.rbs +22 -0
- data/sig/signwell_sdk/resources/v1.rbs +19 -0
- data/sig/signwell_sdk/version.rbs +3 -0
- metadata +298 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#list
|
|
7
|
+
class DocumentListParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute limit
|
|
12
|
+
# The number of documents to fetch. Defaults to 10, max is 50.
|
|
13
|
+
#
|
|
14
|
+
# @return [Integer, nil]
|
|
15
|
+
optional :limit, Integer
|
|
16
|
+
|
|
17
|
+
# @!attribute page
|
|
18
|
+
# The page number for pagination. Defaults to the first page.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer, nil]
|
|
21
|
+
optional :page, Integer
|
|
22
|
+
|
|
23
|
+
# @!method initialize(limit: nil, page: nil, request_options: {})
|
|
24
|
+
# @param limit [Integer] The number of documents to fetch. Defaults to 10, max is 50.
|
|
25
|
+
#
|
|
26
|
+
# @param page [Integer] The page number for pagination. Defaults to the first page.
|
|
27
|
+
#
|
|
28
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#list
|
|
7
|
+
class DocumentListResponse < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute current_page
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer]
|
|
11
|
+
required :current_page, Integer
|
|
12
|
+
|
|
13
|
+
# @!attribute documents
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<SignwellSDK::Models::V1::Document>]
|
|
16
|
+
required :documents, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::Document] }
|
|
17
|
+
|
|
18
|
+
# @!attribute total_count
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
required :total_count, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute total_pages
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer]
|
|
26
|
+
required :total_pages, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute next_page
|
|
29
|
+
#
|
|
30
|
+
# @return [Integer, nil]
|
|
31
|
+
optional :next_page, Integer, nil?: true
|
|
32
|
+
|
|
33
|
+
# @!attribute previous_page
|
|
34
|
+
#
|
|
35
|
+
# @return [Integer, nil]
|
|
36
|
+
optional :previous_page, Integer, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!method initialize(current_page:, documents:, total_count:, total_pages:, next_page: nil, previous_page: nil)
|
|
39
|
+
# List of documents with pagination
|
|
40
|
+
#
|
|
41
|
+
# @param current_page [Integer]
|
|
42
|
+
# @param documents [Array<SignwellSDK::Models::V1::Document>]
|
|
43
|
+
# @param total_count [Integer]
|
|
44
|
+
# @param total_pages [Integer]
|
|
45
|
+
# @param next_page [Integer, nil]
|
|
46
|
+
# @param previous_page [Integer, nil]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#remind
|
|
7
|
+
class DocumentRemindParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute recipients
|
|
12
|
+
# Optional list if recipients within the document to send a reminder email to. If
|
|
13
|
+
# none are specified, all recipients that have not signed yet will receive a
|
|
14
|
+
# reminder email.
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<SignwellSDK::Models::V1::DocumentRemindParams::Recipient>, nil]
|
|
17
|
+
optional :recipients,
|
|
18
|
+
-> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::DocumentRemindParams::Recipient] }
|
|
19
|
+
|
|
20
|
+
# @!method initialize(recipients: nil, request_options: {})
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {SignwellSDK::Models::V1::DocumentRemindParams} for more details.
|
|
23
|
+
#
|
|
24
|
+
# @param recipients [Array<SignwellSDK::Models::V1::DocumentRemindParams::Recipient>] Optional list if recipients within the document to send a reminder email to. If
|
|
25
|
+
#
|
|
26
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
27
|
+
|
|
28
|
+
class Recipient < SignwellSDK::Internal::Type::BaseModel
|
|
29
|
+
# @!attribute email
|
|
30
|
+
# Recipient's email address.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :email, String
|
|
34
|
+
|
|
35
|
+
# @!attribute name
|
|
36
|
+
# Recipient's name (required if multiple recipients share the same email).
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :name, String
|
|
40
|
+
|
|
41
|
+
# @!method initialize(email: nil, name: nil)
|
|
42
|
+
# @param email [String] Recipient's email address.
|
|
43
|
+
#
|
|
44
|
+
# @param name [String] Recipient's name (required if multiple recipients share the same email).
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#retrieve_completed_pdf
|
|
7
|
+
class DocumentRetrieveCompletedPdfParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute audit_page
|
|
12
|
+
# Whether to include the audit page as part of the document. Defaults to `true`
|
|
13
|
+
#
|
|
14
|
+
# @return [Boolean, nil]
|
|
15
|
+
optional :audit_page, SignwellSDK::Internal::Type::Boolean
|
|
16
|
+
|
|
17
|
+
# @!attribute file_format
|
|
18
|
+
# Format of the file to be downloaded. Supported formats are 'pdf' and 'zip'.
|
|
19
|
+
#
|
|
20
|
+
# @return [Symbol, SignwellSDK::Models::V1::DocumentRetrieveCompletedPdfParams::FileFormat, nil]
|
|
21
|
+
optional :file_format, enum: -> { SignwellSDK::V1::DocumentRetrieveCompletedPdfParams::FileFormat }
|
|
22
|
+
|
|
23
|
+
# @!attribute url_only
|
|
24
|
+
# Whether to return the URL of the completed PDF or the actual PDF content.
|
|
25
|
+
# Defaults to `false`.
|
|
26
|
+
#
|
|
27
|
+
# @return [Boolean, nil]
|
|
28
|
+
optional :url_only, SignwellSDK::Internal::Type::Boolean
|
|
29
|
+
|
|
30
|
+
# @!method initialize(audit_page: nil, file_format: nil, url_only: nil, request_options: {})
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {SignwellSDK::Models::V1::DocumentRetrieveCompletedPdfParams} for more details.
|
|
33
|
+
#
|
|
34
|
+
# @param audit_page [Boolean] Whether to include the audit page as part of the document. Defaults to `true`
|
|
35
|
+
#
|
|
36
|
+
# @param file_format [Symbol, SignwellSDK::Models::V1::DocumentRetrieveCompletedPdfParams::FileFormat] Format of the file to be downloaded. Supported formats are 'pdf' and 'zip'.
|
|
37
|
+
#
|
|
38
|
+
# @param url_only [Boolean] Whether to return the URL of the completed PDF or the actual PDF content. Defaul
|
|
39
|
+
#
|
|
40
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
41
|
+
|
|
42
|
+
# Format of the file to be downloaded. Supported formats are 'pdf' and 'zip'.
|
|
43
|
+
module FileFormat
|
|
44
|
+
extend SignwellSDK::Internal::Type::Enum
|
|
45
|
+
|
|
46
|
+
PDF = :pdf
|
|
47
|
+
ZIP = :zip
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#retrieve_completed_pdf
|
|
7
|
+
class DocumentRetrieveCompletedPdfResponse < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute file_url
|
|
9
|
+
# URL to download the completed document
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :file_url, String
|
|
13
|
+
|
|
14
|
+
# @!method initialize(file_url:)
|
|
15
|
+
# Response containing the URL to the completed PDF file (returned when
|
|
16
|
+
# url_only=true)
|
|
17
|
+
#
|
|
18
|
+
# @param file_url [String] URL to download the completed document
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#retrieve
|
|
7
|
+
class DocumentRetrieveParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!method initialize(request_options: {})
|
|
12
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::Documents#send_
|
|
7
|
+
class DocumentSendParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute allow_decline
|
|
12
|
+
# Whether to allow recipients the option to decline signing a document. If
|
|
13
|
+
# multiple signers are involved in a document, any single recipient can cancel the
|
|
14
|
+
# entire document signing process by declining to sign.
|
|
15
|
+
#
|
|
16
|
+
# @return [Boolean, nil]
|
|
17
|
+
optional :allow_decline, SignwellSDK::Internal::Type::Boolean
|
|
18
|
+
|
|
19
|
+
# @!attribute allow_reassign
|
|
20
|
+
# In some cases a signer is not the right person to sign and may need to reassign
|
|
21
|
+
# their signing responsibilities to another person. This feature allows them to
|
|
22
|
+
# reassign the document to someone else.
|
|
23
|
+
#
|
|
24
|
+
# @return [Boolean, nil]
|
|
25
|
+
optional :allow_reassign, SignwellSDK::Internal::Type::Boolean
|
|
26
|
+
|
|
27
|
+
# @!attribute api_application_id
|
|
28
|
+
# Unique identifier for API Application settings to use. API Applications are
|
|
29
|
+
# optional and mainly used when isolating OAuth apps or for more control over
|
|
30
|
+
# embedded API settings
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :api_application_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute apply_signing_order
|
|
36
|
+
# When set to `true` recipients will sign one at a time in the order of the
|
|
37
|
+
# `recipients` collection of this request.
|
|
38
|
+
#
|
|
39
|
+
# @return [Boolean, nil]
|
|
40
|
+
optional :apply_signing_order, SignwellSDK::Internal::Type::Boolean
|
|
41
|
+
|
|
42
|
+
# @!attribute checkbox_groups
|
|
43
|
+
# Checkbox fields that are placed on a document can be grouped with selection
|
|
44
|
+
# requirements. At least 2 checkbox fields in an array of fields must be assigned
|
|
45
|
+
# to the same recipient.
|
|
46
|
+
#
|
|
47
|
+
# @return [Array<SignwellSDK::Models::V1::CheckboxGroup>, nil]
|
|
48
|
+
optional :checkbox_groups, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::CheckboxGroup] }
|
|
49
|
+
|
|
50
|
+
# @!attribute custom_requester_email
|
|
51
|
+
# Sets the custom requester email for the document. When set, this is the email
|
|
52
|
+
# used for all email communications, signing notifications, and in the audit file.
|
|
53
|
+
#
|
|
54
|
+
# @return [String, nil]
|
|
55
|
+
optional :custom_requester_email, String
|
|
56
|
+
|
|
57
|
+
# @!attribute custom_requester_name
|
|
58
|
+
# Sets the custom requester name for the document. When set, this is the name used
|
|
59
|
+
# for all email communications, signing notifications, and in the audit file.
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :custom_requester_name, String
|
|
63
|
+
|
|
64
|
+
# @!attribute decline_redirect_url
|
|
65
|
+
# A URL that recipients are redirected to if the document is declined.
|
|
66
|
+
#
|
|
67
|
+
# @return [String, nil]
|
|
68
|
+
optional :decline_redirect_url, String
|
|
69
|
+
|
|
70
|
+
# @!attribute embedded_signing
|
|
71
|
+
# When set to `true` it enables embedded signing in your website/web application.
|
|
72
|
+
# Embedded functionality works with an iFrame and email authentication is
|
|
73
|
+
# disabled. :embedded_signinig defaults to `false`.
|
|
74
|
+
#
|
|
75
|
+
# @return [Boolean, nil]
|
|
76
|
+
optional :embedded_signing, SignwellSDK::Internal::Type::Boolean
|
|
77
|
+
|
|
78
|
+
# @!attribute embedded_signing_notifications
|
|
79
|
+
# On embedding signing, document owners (and CC'd contacts) do not get a
|
|
80
|
+
# notification email when documents have been completed. Setting this param to
|
|
81
|
+
# `true` will send out those final completed notifications. Default is `false`
|
|
82
|
+
#
|
|
83
|
+
# @return [Boolean, nil]
|
|
84
|
+
optional :embedded_signing_notifications, SignwellSDK::Internal::Type::Boolean
|
|
85
|
+
|
|
86
|
+
# @!attribute expires_in
|
|
87
|
+
# Number of days before the signature request expires. Defaults to the account
|
|
88
|
+
# expiration setting or template expiration (if the document is created from a
|
|
89
|
+
# template).
|
|
90
|
+
#
|
|
91
|
+
# @return [Integer, nil]
|
|
92
|
+
optional :expires_in, Integer
|
|
93
|
+
|
|
94
|
+
# @!attribute labels
|
|
95
|
+
# Labels can be used to organize documents in a way that can make it easy to find
|
|
96
|
+
# using the document search in SignWell. A document can have multiple labels.
|
|
97
|
+
# Updating labels on a document will replace any existing labels for that
|
|
98
|
+
# document.
|
|
99
|
+
#
|
|
100
|
+
# @return [Array<SignwellSDK::Models::V1::Label>, nil]
|
|
101
|
+
optional :labels, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::Label] }
|
|
102
|
+
|
|
103
|
+
# @!attribute message
|
|
104
|
+
# Email message for the signature request that recipients will see. Defaults to
|
|
105
|
+
# the default system message or a template message (if the document is created
|
|
106
|
+
# from a template).
|
|
107
|
+
#
|
|
108
|
+
# @return [String, nil]
|
|
109
|
+
optional :message, String
|
|
110
|
+
|
|
111
|
+
# @!attribute metadata
|
|
112
|
+
# Optional key-value data that can be associated with the document. If set, will
|
|
113
|
+
# be available every time the document data is returned.
|
|
114
|
+
#
|
|
115
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
116
|
+
optional :metadata, SignwellSDK::Internal::Type::HashOf[String]
|
|
117
|
+
|
|
118
|
+
# @!attribute name
|
|
119
|
+
# The name of the document.
|
|
120
|
+
#
|
|
121
|
+
# @return [String, nil]
|
|
122
|
+
optional :name, String
|
|
123
|
+
|
|
124
|
+
# @!attribute redirect_url
|
|
125
|
+
# A URL that recipients are redirected to after successfully signing a document.
|
|
126
|
+
#
|
|
127
|
+
# @return [String, nil]
|
|
128
|
+
optional :redirect_url, String
|
|
129
|
+
|
|
130
|
+
# @!attribute reminders
|
|
131
|
+
# Whether to send signing reminders to recipients. Reminders are sent on day 3,
|
|
132
|
+
# day 6, and day 10 if set to `true`. Defaults to `true`.
|
|
133
|
+
#
|
|
134
|
+
# @return [Boolean, nil]
|
|
135
|
+
optional :reminders, SignwellSDK::Internal::Type::Boolean
|
|
136
|
+
|
|
137
|
+
# @!attribute subject
|
|
138
|
+
# Email subject for the signature request that recipients will see. Defaults to
|
|
139
|
+
# the default system subject or a template subject (if the document is created
|
|
140
|
+
# from a template).
|
|
141
|
+
#
|
|
142
|
+
# @return [String, nil]
|
|
143
|
+
optional :subject, String
|
|
144
|
+
|
|
145
|
+
# @!attribute test_mode
|
|
146
|
+
# Set to `true` to enable Test Mode. Documents created with Test Mode do not count
|
|
147
|
+
# towards API billing and are not legally binding. Defaults to `false`
|
|
148
|
+
#
|
|
149
|
+
# @return [Boolean, nil]
|
|
150
|
+
optional :test_mode, SignwellSDK::Internal::Type::Boolean
|
|
151
|
+
|
|
152
|
+
# @!method initialize(allow_decline: nil, allow_reassign: nil, api_application_id: nil, apply_signing_order: nil, checkbox_groups: nil, custom_requester_email: nil, custom_requester_name: nil, decline_redirect_url: nil, embedded_signing: nil, embedded_signing_notifications: nil, expires_in: nil, labels: nil, message: nil, metadata: nil, name: nil, redirect_url: nil, reminders: nil, subject: nil, test_mode: nil, request_options: {})
|
|
153
|
+
# Some parameter documentations has been truncated, see
|
|
154
|
+
# {SignwellSDK::Models::V1::DocumentSendParams} for more details.
|
|
155
|
+
#
|
|
156
|
+
# @param allow_decline [Boolean] Whether to allow recipients the option to decline signing a document. If multipl
|
|
157
|
+
#
|
|
158
|
+
# @param allow_reassign [Boolean] In some cases a signer is not the right person to sign and may need to reassign
|
|
159
|
+
#
|
|
160
|
+
# @param api_application_id [String] Unique identifier for API Application settings to use. API Applications are opti
|
|
161
|
+
#
|
|
162
|
+
# @param apply_signing_order [Boolean] When set to `true` recipients will sign one at a time in the order of the `recip
|
|
163
|
+
#
|
|
164
|
+
# @param checkbox_groups [Array<SignwellSDK::Models::V1::CheckboxGroup>] Checkbox fields that are placed on a document can be grouped with selection requ
|
|
165
|
+
#
|
|
166
|
+
# @param custom_requester_email [String] Sets the custom requester email for the document. When set, this is the email us
|
|
167
|
+
#
|
|
168
|
+
# @param custom_requester_name [String] Sets the custom requester name for the document. When set, this is the name used
|
|
169
|
+
#
|
|
170
|
+
# @param decline_redirect_url [String] A URL that recipients are redirected to if the document is declined.
|
|
171
|
+
#
|
|
172
|
+
# @param embedded_signing [Boolean] When set to `true` it enables embedded signing in your website/web application.
|
|
173
|
+
#
|
|
174
|
+
# @param embedded_signing_notifications [Boolean] On embedding signing, document owners (and CC'd contacts) do not get a notificat
|
|
175
|
+
#
|
|
176
|
+
# @param expires_in [Integer] Number of days before the signature request expires. Defaults to the account exp
|
|
177
|
+
#
|
|
178
|
+
# @param labels [Array<SignwellSDK::Models::V1::Label>] Labels can be used to organize documents in a way that can make it easy to find
|
|
179
|
+
#
|
|
180
|
+
# @param message [String] Email message for the signature request that recipients will see. Defaults to th
|
|
181
|
+
#
|
|
182
|
+
# @param metadata [Hash{Symbol=>String}] Optional key-value data that can be associated with the document. If set, will b
|
|
183
|
+
#
|
|
184
|
+
# @param name [String] The name of the document.
|
|
185
|
+
#
|
|
186
|
+
# @param redirect_url [String] A URL that recipients are redirected to after successfully signing a document.
|
|
187
|
+
#
|
|
188
|
+
# @param reminders [Boolean] Whether to send signing reminders to recipients. Reminders are sent on day 3, da
|
|
189
|
+
#
|
|
190
|
+
# @param subject [String] Email subject for the signature request that recipients will see. Defaults to th
|
|
191
|
+
#
|
|
192
|
+
# @param test_mode [Boolean] Set to `true` to enable Test Mode. Documents created with Test Mode do not count
|
|
193
|
+
#
|
|
194
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|