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,276 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class V1
|
|
6
|
+
class DocumentTemplates
|
|
7
|
+
# Creates a new template.
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
files: T::Array[SignwellSDK::V1::DocumentFile::OrHash],
|
|
11
|
+
placeholders:
|
|
12
|
+
T::Array[
|
|
13
|
+
SignwellSDK::V1::DocumentTemplateCreateParams::Placeholder::OrHash
|
|
14
|
+
],
|
|
15
|
+
allow_decline: T::Boolean,
|
|
16
|
+
allow_reassign: T::Boolean,
|
|
17
|
+
api_application_id: String,
|
|
18
|
+
apply_signing_order: T::Boolean,
|
|
19
|
+
attachment_requests:
|
|
20
|
+
T::Array[
|
|
21
|
+
SignwellSDK::V1::DocumentTemplateCreateParams::AttachmentRequest::OrHash
|
|
22
|
+
],
|
|
23
|
+
checkbox_groups:
|
|
24
|
+
T::Array[SignwellSDK::V1::TemplateCheckboxGroup::OrHash],
|
|
25
|
+
copied_placeholders:
|
|
26
|
+
T::Array[
|
|
27
|
+
SignwellSDK::V1::DocumentTemplateCreateParams::CopiedPlaceholder::OrHash
|
|
28
|
+
],
|
|
29
|
+
decline_redirect_url: String,
|
|
30
|
+
draft: T::Boolean,
|
|
31
|
+
expires_in: Integer,
|
|
32
|
+
fields:
|
|
33
|
+
T::Array[
|
|
34
|
+
T::Array[
|
|
35
|
+
SignwellSDK::V1::DocumentTemplateCreateParams::Field::OrHash
|
|
36
|
+
]
|
|
37
|
+
],
|
|
38
|
+
labels: T::Array[SignwellSDK::V1::Label::OrHash],
|
|
39
|
+
language: String,
|
|
40
|
+
message: String,
|
|
41
|
+
metadata: T::Hash[Symbol, String],
|
|
42
|
+
name: String,
|
|
43
|
+
redirect_url: String,
|
|
44
|
+
reminders: T::Boolean,
|
|
45
|
+
subject: String,
|
|
46
|
+
text_tags: T::Boolean,
|
|
47
|
+
request_options: SignwellSDK::RequestOptions::OrHash
|
|
48
|
+
).returns(SignwellSDK::V1::DocumentTemplate)
|
|
49
|
+
end
|
|
50
|
+
def create(
|
|
51
|
+
# Document files can be uploaded by specifying a file URL or base64 string. Either
|
|
52
|
+
# `file_url` or `file_base64` must be present (not both). Valid file types are:
|
|
53
|
+
# .pdf, .doc, .docx, .pages, .ppt, .pptx, .key, .xls, .xlsx, .numbers, .jpg,
|
|
54
|
+
# .jpeg, .png, .tiff, .tif, .webp, .html, and .htm
|
|
55
|
+
files:,
|
|
56
|
+
# Placeholders are generally job roles that must complete and/or sign the
|
|
57
|
+
# document. For example, a placeholder might be “Client” or “Legal Department”.
|
|
58
|
+
# When a document is created from the template, you assign a person to each
|
|
59
|
+
# placeholder.
|
|
60
|
+
placeholders:,
|
|
61
|
+
# Whether to allow recipients the option to decline signing a document. If
|
|
62
|
+
# multiple signers are involved in a document, any single recipient can cancel the
|
|
63
|
+
# entire document signing process by declining to sign.
|
|
64
|
+
allow_decline: nil,
|
|
65
|
+
# In some cases a signer is not the right person to sign and may need to reassign
|
|
66
|
+
# their signing responsibilities to another person. This feature allows them to
|
|
67
|
+
# reassign the document to someone else.
|
|
68
|
+
allow_reassign: nil,
|
|
69
|
+
# Unique identifier for API Application settings to use. API Applications are
|
|
70
|
+
# optional and mainly used when isolating OAuth apps or for more control over
|
|
71
|
+
# embedded API settings
|
|
72
|
+
api_application_id: nil,
|
|
73
|
+
# When set to `true` recipients will sign one at a time in the order of the
|
|
74
|
+
# `recipients` collection of this request.
|
|
75
|
+
apply_signing_order: nil,
|
|
76
|
+
# Attachments that a recipient must upload to complete the signing process.
|
|
77
|
+
# Attachment requests are shown after all document fields have been completed.
|
|
78
|
+
attachment_requests: nil,
|
|
79
|
+
# Checkbox fields that are placed on a document can be grouped with selection
|
|
80
|
+
# requirements. At least 2 checkbox fields in an array of fields must be assigned
|
|
81
|
+
# to the same recipient.
|
|
82
|
+
checkbox_groups: nil,
|
|
83
|
+
# Copied placeholders are emailed the final document once it has been completed by
|
|
84
|
+
# all recipients.
|
|
85
|
+
copied_placeholders: nil,
|
|
86
|
+
# A URL that recipients are redirected to if the document is declined.
|
|
87
|
+
decline_redirect_url: nil,
|
|
88
|
+
# Whether the template can still be updated before it is ready for usage. If set
|
|
89
|
+
# to `false` the template is marked as `Available` and it will be ready for use.
|
|
90
|
+
# Defaults to `false`.
|
|
91
|
+
draft: nil,
|
|
92
|
+
# Number of days before the signature request expires. Defaults to the account
|
|
93
|
+
# expiration setting or template expiration (if the document is created from a
|
|
94
|
+
# template).
|
|
95
|
+
expires_in: nil,
|
|
96
|
+
# Document fields placed on a document for collecting data or signatures from
|
|
97
|
+
# recipients. At least one field must be present in the Create Document request if
|
|
98
|
+
# `draft` is `false` (unless adding a signature page by using
|
|
99
|
+
# `with_signature_page`). Field data should be sent as a 2-dimensional JSON array.
|
|
100
|
+
# One array of fields is needed for each file in the files array. An array of
|
|
101
|
+
# fields can be empty if you have a file that does not contain any fields.
|
|
102
|
+
fields: nil,
|
|
103
|
+
# Labels can be used to organize documents in a way that can make it easy to find
|
|
104
|
+
# using the document search in SignWell. A document can have multiple labels.
|
|
105
|
+
labels: nil,
|
|
106
|
+
# Sets the language for the template and documents created from the template for
|
|
107
|
+
# all recipient side interactions including the document email and the document
|
|
108
|
+
# itself. Accepted languages: English, Français, Español, Deutsch, Polski,
|
|
109
|
+
# Português, Dansk, Nederlands, Italiano, Русский, Svenska, العربية, Ελληνικά,
|
|
110
|
+
# Türkçe, Slovenčina. Language should be sent in ISO 639-1 format: en, fr, es, de,
|
|
111
|
+
# pl, pt, da, nl, it, ru, sv, ar, el, tr, sk.
|
|
112
|
+
language: nil,
|
|
113
|
+
# Email message for the signature request that recipients will see. Defaults to
|
|
114
|
+
# the default system message or a template message (if the document is created
|
|
115
|
+
# from a template).
|
|
116
|
+
message: nil,
|
|
117
|
+
# Optional key-value data that can be associated with the document. If set, will
|
|
118
|
+
# be available every time the document data is returned.
|
|
119
|
+
metadata: nil,
|
|
120
|
+
# The name of the template.
|
|
121
|
+
name: nil,
|
|
122
|
+
# A URL that recipients are redirected to after successfully signing a document.
|
|
123
|
+
redirect_url: nil,
|
|
124
|
+
# Whether to send signing reminders to recipients. Reminders are sent on day 3,
|
|
125
|
+
# day 6, and day 10 if set to `true`. Defaults to `true`.
|
|
126
|
+
reminders: nil,
|
|
127
|
+
# Email subject for the signature request that recipients will see. Defaults to
|
|
128
|
+
# the default system subject or a template subject (if the document is created
|
|
129
|
+
# from a template).
|
|
130
|
+
subject: nil,
|
|
131
|
+
# An alternative way (if you can’t use the recommended way) of placing fields in
|
|
132
|
+
# specific locations of your document by using special text tags. Useful when
|
|
133
|
+
# changing the content of your files changes the location of fields. See API
|
|
134
|
+
# documentation for “Text Tags” for details. Defaults to false.
|
|
135
|
+
text_tags: nil,
|
|
136
|
+
request_options: {}
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns a template and all associated template data. Supply the unique template
|
|
141
|
+
# ID from either a Create Template request or template page URL.
|
|
142
|
+
sig do
|
|
143
|
+
params(
|
|
144
|
+
id: String,
|
|
145
|
+
request_options: SignwellSDK::RequestOptions::OrHash
|
|
146
|
+
).returns(SignwellSDK::V1::DocumentTemplate)
|
|
147
|
+
end
|
|
148
|
+
def retrieve(
|
|
149
|
+
# Unique identifier for a template.
|
|
150
|
+
id,
|
|
151
|
+
request_options: {}
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Updates an existing template.
|
|
156
|
+
sig do
|
|
157
|
+
params(
|
|
158
|
+
id: String,
|
|
159
|
+
allow_decline: T::Boolean,
|
|
160
|
+
allow_reassign: T::Boolean,
|
|
161
|
+
api_application_id: String,
|
|
162
|
+
apply_signing_order: T::Boolean,
|
|
163
|
+
checkbox_groups:
|
|
164
|
+
T::Array[SignwellSDK::V1::TemplateCheckboxGroup::OrHash],
|
|
165
|
+
decline_redirect_url: String,
|
|
166
|
+
draft: T::Boolean,
|
|
167
|
+
expires_in: Integer,
|
|
168
|
+
labels: T::Array[SignwellSDK::V1::Label::OrHash],
|
|
169
|
+
message: String,
|
|
170
|
+
metadata: T::Hash[Symbol, String],
|
|
171
|
+
name: String,
|
|
172
|
+
redirect_url: String,
|
|
173
|
+
reminders: T::Boolean,
|
|
174
|
+
subject: String,
|
|
175
|
+
request_options: SignwellSDK::RequestOptions::OrHash
|
|
176
|
+
).returns(SignwellSDK::V1::DocumentTemplate)
|
|
177
|
+
end
|
|
178
|
+
def update(
|
|
179
|
+
# Unique identifier for a template.
|
|
180
|
+
id,
|
|
181
|
+
# Whether to allow recipients the option to decline signing a document. If
|
|
182
|
+
# multiple signers are involved in a document, any single recipient can cancel the
|
|
183
|
+
# entire document signing process by declining to sign.
|
|
184
|
+
allow_decline: nil,
|
|
185
|
+
# In some cases a signer is not the right person to sign and may need to reassign
|
|
186
|
+
# their signing responsibilities to another person. This feature allows them to
|
|
187
|
+
# reassign the document to someone else.
|
|
188
|
+
allow_reassign: nil,
|
|
189
|
+
# Unique identifier for API Application settings to use. API Applications are
|
|
190
|
+
# optional and mainly used when isolating OAuth apps or for more control over
|
|
191
|
+
# embedded API settings
|
|
192
|
+
api_application_id: nil,
|
|
193
|
+
# When set to `true` recipients will sign one at a time in the order of the
|
|
194
|
+
# `recipients` collection of this request.
|
|
195
|
+
apply_signing_order: nil,
|
|
196
|
+
# Checkbox fields that are placed on a document can be grouped with selection
|
|
197
|
+
# requirements. At least 2 checkbox fields in an array of fields must be assigned
|
|
198
|
+
# to the same recipient.
|
|
199
|
+
checkbox_groups: nil,
|
|
200
|
+
# A URL that recipients are redirected to if the document is declined.
|
|
201
|
+
decline_redirect_url: nil,
|
|
202
|
+
# Whether the template can still be updated before it is ready for usage. If set
|
|
203
|
+
# to `false` the template is marked as `Available` and it will be ready for use.
|
|
204
|
+
# Defaults to `false`.
|
|
205
|
+
draft: nil,
|
|
206
|
+
# Number of days before the signature request expires. Defaults to the account
|
|
207
|
+
# expiration setting or template expiration (if the document is created from a
|
|
208
|
+
# template).
|
|
209
|
+
expires_in: nil,
|
|
210
|
+
# Labels can be used to organize documents in a way that can make it easy to find
|
|
211
|
+
# using the document search in SignWell. A document can have multiple labels.
|
|
212
|
+
# Updating labels on a document will replace any existing labels for that
|
|
213
|
+
# document.
|
|
214
|
+
labels: nil,
|
|
215
|
+
# Email message for the signature request that recipients will see. Defaults to
|
|
216
|
+
# the default system message or a template message (if the document is created
|
|
217
|
+
# from a template).
|
|
218
|
+
message: nil,
|
|
219
|
+
# Optional key-value data that can be associated with the document. If set, will
|
|
220
|
+
# be available every time the document data is returned.
|
|
221
|
+
metadata: nil,
|
|
222
|
+
# The name of the template.
|
|
223
|
+
name: nil,
|
|
224
|
+
# A URL that recipients are redirected to after successfully signing a document.
|
|
225
|
+
redirect_url: nil,
|
|
226
|
+
# Whether to send signing reminders to recipients. Reminders are sent on day 3,
|
|
227
|
+
# day 6, and day 10 if set to `true`. Defaults to `true`.
|
|
228
|
+
reminders: nil,
|
|
229
|
+
# Email subject for the signature request that recipients will see. Defaults to
|
|
230
|
+
# the default system subject or a template subject (if the document is created
|
|
231
|
+
# from a template).
|
|
232
|
+
subject: nil,
|
|
233
|
+
request_options: {}
|
|
234
|
+
)
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Returns a paginated list of templates for the authenticated account.
|
|
238
|
+
sig do
|
|
239
|
+
params(
|
|
240
|
+
limit: Integer,
|
|
241
|
+
page: Integer,
|
|
242
|
+
request_options: SignwellSDK::RequestOptions::OrHash
|
|
243
|
+
).returns(SignwellSDK::Models::V1::DocumentTemplateListResponse)
|
|
244
|
+
end
|
|
245
|
+
def list(
|
|
246
|
+
# The number of documents to fetch. Defaults to 10, max is 50.
|
|
247
|
+
limit: nil,
|
|
248
|
+
# The page number for pagination. Defaults to the first page.
|
|
249
|
+
page: nil,
|
|
250
|
+
request_options: {}
|
|
251
|
+
)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Deletes a template. Supply the unique template ID from either a Create Template
|
|
255
|
+
# request or template page URL.
|
|
256
|
+
sig do
|
|
257
|
+
params(
|
|
258
|
+
id: String,
|
|
259
|
+
request_options: SignwellSDK::RequestOptions::OrHash
|
|
260
|
+
).void
|
|
261
|
+
end
|
|
262
|
+
def delete(
|
|
263
|
+
# Unique identifier for a template.
|
|
264
|
+
id,
|
|
265
|
+
request_options: {}
|
|
266
|
+
)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @api private
|
|
270
|
+
sig { params(client: SignwellSDK::Client).returns(T.attached_class) }
|
|
271
|
+
def self.new(client:)
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
end
|