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,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Internal
|
|
5
|
+
extend SignwellSDK::Internal::Util::SorbetRuntimeSupport
|
|
6
|
+
|
|
7
|
+
OMIT =
|
|
8
|
+
Object.new.tap do
|
|
9
|
+
_1.define_singleton_method(:inspect) { "#<#{SignwellSDK::Internal}::OMIT>" }
|
|
10
|
+
end
|
|
11
|
+
.freeze
|
|
12
|
+
|
|
13
|
+
define_sorbet_constant!(:AnyHash) do
|
|
14
|
+
T.type_alias { T::Hash[Symbol, T.anything] }
|
|
15
|
+
end
|
|
16
|
+
define_sorbet_constant!(:FileInput) do
|
|
17
|
+
T.type_alias { T.any(Pathname, StringIO, IO, String, SignwellSDK::FilePart) }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
class AttachmentRequestInfo < SignwellSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute name
|
|
7
|
+
# Name of the attachment request
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :name, String
|
|
11
|
+
|
|
12
|
+
# @!attribute required
|
|
13
|
+
# Whether the attachment is required
|
|
14
|
+
#
|
|
15
|
+
# @return [Boolean]
|
|
16
|
+
required :required, SignwellSDK::Internal::Type::Boolean
|
|
17
|
+
|
|
18
|
+
# @!attribute url
|
|
19
|
+
# URL of the uploaded attachment (when available)
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :url, String
|
|
23
|
+
|
|
24
|
+
# @!method initialize(name:, required:, url: nil)
|
|
25
|
+
# Attachment request information
|
|
26
|
+
#
|
|
27
|
+
# @param name [String] Name of the attachment request
|
|
28
|
+
#
|
|
29
|
+
# @param required [Boolean] Whether the attachment is required
|
|
30
|
+
#
|
|
31
|
+
# @param url [String] URL of the uploaded attachment (when available)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
class CheckboxGroupInfo < SignwellSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# Checkbox group ID
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute checkbox_ids
|
|
13
|
+
# IDs of checkboxes in this group
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<String>]
|
|
16
|
+
required :checkbox_ids, SignwellSDK::Internal::Type::ArrayOf[String]
|
|
17
|
+
|
|
18
|
+
# @!attribute required
|
|
19
|
+
# Whether at least one checkbox must be checked
|
|
20
|
+
#
|
|
21
|
+
# @return [Boolean]
|
|
22
|
+
required :required, SignwellSDK::Internal::Type::Boolean
|
|
23
|
+
|
|
24
|
+
# @!attribute group_name
|
|
25
|
+
# Name of the checkbox group
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :group_name, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute min_value
|
|
31
|
+
# Minimum number of checkboxes to check
|
|
32
|
+
#
|
|
33
|
+
# @return [Integer, nil]
|
|
34
|
+
optional :min_value, Integer
|
|
35
|
+
|
|
36
|
+
# @!attribute recipient_id
|
|
37
|
+
# Recipient ID associated with the group
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :recipient_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!attribute validation
|
|
43
|
+
# Validation rule for checkbox groups
|
|
44
|
+
#
|
|
45
|
+
# @return [Symbol, SignwellSDK::Models::CheckboxValidation, nil]
|
|
46
|
+
optional :validation, enum: -> { SignwellSDK::CheckboxValidation }, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!method initialize(id:, checkbox_ids:, required:, group_name: nil, min_value: nil, recipient_id: nil, validation: nil)
|
|
49
|
+
# Checkbox group configuration
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] Checkbox group ID
|
|
52
|
+
#
|
|
53
|
+
# @param checkbox_ids [Array<String>] IDs of checkboxes in this group
|
|
54
|
+
#
|
|
55
|
+
# @param required [Boolean] Whether at least one checkbox must be checked
|
|
56
|
+
#
|
|
57
|
+
# @param group_name [String, nil] Name of the checkbox group
|
|
58
|
+
#
|
|
59
|
+
# @param min_value [Integer] Minimum number of checkboxes to check
|
|
60
|
+
#
|
|
61
|
+
# @param recipient_id [String, nil] Recipient ID associated with the group
|
|
62
|
+
#
|
|
63
|
+
# @param validation [Symbol, SignwellSDK::Models::CheckboxValidation, nil] Validation rule for checkbox groups
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Validation rule for checkbox groups
|
|
6
|
+
module CheckboxValidation
|
|
7
|
+
extend SignwellSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
MINIMUM = :minimum
|
|
10
|
+
MAXIMUM = :maximum
|
|
11
|
+
RANGE = :range
|
|
12
|
+
EXACT = :exact
|
|
13
|
+
|
|
14
|
+
# @!method self.values
|
|
15
|
+
# @return [Array<Symbol>]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
class CopiedContactInfo < SignwellSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute email
|
|
7
|
+
# Contact email
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :email, String
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
# Contact ID
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute name
|
|
19
|
+
# Contact name
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :name, String
|
|
23
|
+
|
|
24
|
+
# @!method initialize(email:, id: nil, name: nil)
|
|
25
|
+
# Copied contact information
|
|
26
|
+
#
|
|
27
|
+
# @param email [String] Contact email
|
|
28
|
+
#
|
|
29
|
+
# @param id [String] Contact ID
|
|
30
|
+
#
|
|
31
|
+
# @param name [String] Contact name
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Date format for date fields. Valid values: MM/DD/YYYY, DD/MM/YYYY, YYYY/MM/DD,
|
|
6
|
+
# Month DD, YYYY, MM/DD/YYYY hh:mm:ss a. Default: MM/DD/YYYY
|
|
7
|
+
module DateFormat
|
|
8
|
+
extend SignwellSDK::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
MM_DD_YYYY = :"MM/DD/YYYY"
|
|
11
|
+
DD_MM_YYYY = :"DD/MM/YYYY"
|
|
12
|
+
YYYY_MM_DD = :"YYYY/MM/DD"
|
|
13
|
+
MONTH_DD_YYYY = :"Month DD, YYYY"
|
|
14
|
+
MM_DD_YYYY_HH_MM_SS_A = :"MM/DD/YYYY hh:mm:ss a"
|
|
15
|
+
|
|
16
|
+
# @!method self.values
|
|
17
|
+
# @return [Array<Symbol>]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Type of signing field
|
|
6
|
+
module FieldType
|
|
7
|
+
extend SignwellSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
INITIALS = :initials
|
|
10
|
+
SIGNATURE = :signature
|
|
11
|
+
CHECKBOX = :checkbox
|
|
12
|
+
DATE = :date
|
|
13
|
+
SELECT = :select
|
|
14
|
+
TEXT = :text
|
|
15
|
+
DROPDOWN = :dropdown
|
|
16
|
+
AUTOFILL_COMPANY = :autofill_company
|
|
17
|
+
AUTOFILL_EMAIL = :autofill_email
|
|
18
|
+
AUTOFILL_FIRST_NAME = :autofill_first_name
|
|
19
|
+
AUTOFILL_LAST_NAME = :autofill_last_name
|
|
20
|
+
AUTOFILL_NAME = :autofill_name
|
|
21
|
+
AUTOFILL_PHONE = :autofill_phone
|
|
22
|
+
AUTOFILL_TITLE = :autofill_title
|
|
23
|
+
AUTOFILL_DATE_SIGNED = :autofill_date_signed
|
|
24
|
+
|
|
25
|
+
# @!method self.values
|
|
26
|
+
# @return [Array<Symbol>]
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
class FileInfo < SignwellSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute name
|
|
7
|
+
# File name
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :name, String
|
|
11
|
+
|
|
12
|
+
# @!attribute pages_number
|
|
13
|
+
# Number of pages in the file
|
|
14
|
+
#
|
|
15
|
+
# @return [Integer]
|
|
16
|
+
required :pages_number, Integer
|
|
17
|
+
|
|
18
|
+
# @!method initialize(name:, pages_number:)
|
|
19
|
+
# File information
|
|
20
|
+
#
|
|
21
|
+
# @param name [String] File name
|
|
22
|
+
#
|
|
23
|
+
# @param pages_number [Integer] Number of pages in the file
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
class LabelInfo < SignwellSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# Label ID
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute name
|
|
13
|
+
# Label name
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :name, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(id: nil, name: nil)
|
|
19
|
+
# Label information
|
|
20
|
+
#
|
|
21
|
+
# @param id [String] Label ID
|
|
22
|
+
#
|
|
23
|
+
# @param name [String] Label name
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Validation rule for text fields
|
|
6
|
+
module TextValidation
|
|
7
|
+
extend SignwellSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
NO_TEXT_VALIDATION = :no_text_validation
|
|
10
|
+
NUMBERS = :numbers
|
|
11
|
+
LETTERS = :letters
|
|
12
|
+
EMAIL_ADDRESS = :email_address
|
|
13
|
+
US_PHONE_NUMBER = :us_phone_number
|
|
14
|
+
US_ZIP_CODE = :us_zip_code
|
|
15
|
+
US_SSN = :us_ssn
|
|
16
|
+
US_AGE = :us_age
|
|
17
|
+
ALPHANUMERIC = :alphanumeric
|
|
18
|
+
US_BANK_ROUTING_NUMBER = :us_bank_routing_number
|
|
19
|
+
US_BANK_ACCOUNT_NUMBER = :us_bank_account_number
|
|
20
|
+
|
|
21
|
+
# @!method self.values
|
|
22
|
+
# @return [Array<Symbol>]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
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::APIApplications#delete
|
|
7
|
+
class APIApplicationDeleteParams < 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,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::APIApplications#retrieve
|
|
7
|
+
class APIApplicationRetrieveParams < 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,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
class AttachmentRequest < SignwellSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute name
|
|
8
|
+
# Name of the requested attachment.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :name, String
|
|
12
|
+
|
|
13
|
+
# @!attribute recipient_id
|
|
14
|
+
# Unique identifier of the recipient that will view the attachment request.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :recipient_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute required
|
|
20
|
+
# Whether the recipient will need to upload the attachment to successfully
|
|
21
|
+
# complete/sign the document. Defaults to `true`.
|
|
22
|
+
#
|
|
23
|
+
# @return [Boolean, nil]
|
|
24
|
+
optional :required, SignwellSDK::Internal::Type::Boolean
|
|
25
|
+
|
|
26
|
+
# @!method initialize(name:, recipient_id:, required: nil)
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {SignwellSDK::Models::V1::AttachmentRequest} for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param name [String] Name of the requested attachment.
|
|
31
|
+
#
|
|
32
|
+
# @param recipient_id [String] Unique identifier of the recipient that will view the attachment request.
|
|
33
|
+
#
|
|
34
|
+
# @param required [Boolean] Whether the recipient will need to upload the attachment to successfully complet
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::BulkSends#create
|
|
7
|
+
class BulkSendCreateParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute bulk_send_csv
|
|
12
|
+
# A RFC 4648 base64 string of the template CSV file to be validated.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :bulk_send_csv, String
|
|
16
|
+
|
|
17
|
+
# @!attribute template_ids
|
|
18
|
+
# Unique identifiers for a list of templates.
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<String>]
|
|
21
|
+
required :template_ids, SignwellSDK::Internal::Type::ArrayOf[String]
|
|
22
|
+
|
|
23
|
+
# @!attribute api_application_id
|
|
24
|
+
# Unique identifier for API Application settings to use. API Applications are
|
|
25
|
+
# optional and mainly used when isolating OAuth apps or for more control over
|
|
26
|
+
# embedded API settings
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :api_application_id, String
|
|
30
|
+
|
|
31
|
+
# @!attribute apply_signing_order
|
|
32
|
+
# When set to `true` recipients will sign one at a time in the order of the
|
|
33
|
+
# `recipients` collection of this request.
|
|
34
|
+
#
|
|
35
|
+
# @return [Boolean, nil]
|
|
36
|
+
optional :apply_signing_order, SignwellSDK::Internal::Type::Boolean
|
|
37
|
+
|
|
38
|
+
# @!attribute custom_requester_email
|
|
39
|
+
# Sets the custom requester email for the document. When set, this is the email
|
|
40
|
+
# used for all email communications, signing notifications, and in the audit file.
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
optional :custom_requester_email, String
|
|
44
|
+
|
|
45
|
+
# @!attribute custom_requester_name
|
|
46
|
+
# Sets the custom requester name for the document. When set, this is the name used
|
|
47
|
+
# for all email communications, signing notifications, and in the audit file.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :custom_requester_name, String
|
|
51
|
+
|
|
52
|
+
# @!attribute message
|
|
53
|
+
# Email message for the signature request that recipients will see. Defaults to
|
|
54
|
+
# the default system message or a template message.
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :message, String
|
|
58
|
+
|
|
59
|
+
# @!attribute name
|
|
60
|
+
# The name of the Bulk Send. Will be used as the document name for each of the
|
|
61
|
+
# documents.
|
|
62
|
+
#
|
|
63
|
+
# @return [String, nil]
|
|
64
|
+
optional :name, String
|
|
65
|
+
|
|
66
|
+
# @!attribute skip_row_errors
|
|
67
|
+
# Whether to skip errors in the rows. Defaults to `false`.
|
|
68
|
+
#
|
|
69
|
+
# @return [Boolean, nil]
|
|
70
|
+
optional :skip_row_errors, SignwellSDK::Internal::Type::Boolean
|
|
71
|
+
|
|
72
|
+
# @!attribute subject
|
|
73
|
+
# Email subject for the signature request that recipients will see. Defaults to
|
|
74
|
+
# the default system subject or a template subject.
|
|
75
|
+
#
|
|
76
|
+
# @return [String, nil]
|
|
77
|
+
optional :subject, String
|
|
78
|
+
|
|
79
|
+
# @!method initialize(bulk_send_csv:, template_ids:, api_application_id: nil, apply_signing_order: nil, custom_requester_email: nil, custom_requester_name: nil, message: nil, name: nil, skip_row_errors: nil, subject: nil, request_options: {})
|
|
80
|
+
# Some parameter documentations has been truncated, see
|
|
81
|
+
# {SignwellSDK::Models::V1::BulkSendCreateParams} for more details.
|
|
82
|
+
#
|
|
83
|
+
# @param bulk_send_csv [String] A RFC 4648 base64 string of the template CSV file to be validated.
|
|
84
|
+
#
|
|
85
|
+
# @param template_ids [Array<String>] Unique identifiers for a list of templates.
|
|
86
|
+
#
|
|
87
|
+
# @param api_application_id [String] Unique identifier for API Application settings to use. API Applications are opti
|
|
88
|
+
#
|
|
89
|
+
# @param apply_signing_order [Boolean] When set to `true` recipients will sign one at a time in the order of the `recip
|
|
90
|
+
#
|
|
91
|
+
# @param custom_requester_email [String] Sets the custom requester email for the document. When set, this is the email us
|
|
92
|
+
#
|
|
93
|
+
# @param custom_requester_name [String] Sets the custom requester name for the document. When set, this is the name used
|
|
94
|
+
#
|
|
95
|
+
# @param message [String] Email message for the signature request that recipients will see. Defaults to th
|
|
96
|
+
#
|
|
97
|
+
# @param name [String] The name of the Bulk Send. Will be used as the document name for each of the doc
|
|
98
|
+
#
|
|
99
|
+
# @param skip_row_errors [Boolean] Whether to skip errors in the rows. Defaults to `false`.
|
|
100
|
+
#
|
|
101
|
+
# @param subject [String] Email subject for the signature request that recipients will see. Defaults to th
|
|
102
|
+
#
|
|
103
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
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::BulkSends#list
|
|
7
|
+
class BulkSendListParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute api_application_id
|
|
12
|
+
# Unique identifier for API Application settings to use. API Applications are
|
|
13
|
+
# optional and mainly used when isolating OAuth apps or for more control over
|
|
14
|
+
# embedded API settings
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :api_application_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute limit
|
|
20
|
+
# The number of documents to fetch. Defaults to 10, max is 50.
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer, nil]
|
|
23
|
+
optional :limit, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute page
|
|
26
|
+
# The page number for pagination. Defaults to the first page.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer, nil]
|
|
29
|
+
optional :page, Integer
|
|
30
|
+
|
|
31
|
+
# @!attribute user_email
|
|
32
|
+
# The email address of the user that sent the Bulk Send. Must have the `admin` or
|
|
33
|
+
# `manager` role to view Bulk Sends of other users. Defaults to the user that the
|
|
34
|
+
# API key belongs to.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :user_email, String
|
|
38
|
+
|
|
39
|
+
# @!method initialize(api_application_id: nil, limit: nil, page: nil, user_email: nil, request_options: {})
|
|
40
|
+
# Some parameter documentations has been truncated, see
|
|
41
|
+
# {SignwellSDK::Models::V1::BulkSendListParams} for more details.
|
|
42
|
+
#
|
|
43
|
+
# @param api_application_id [String] Unique identifier for API Application settings to use. API Applications are opti
|
|
44
|
+
#
|
|
45
|
+
# @param limit [Integer] The number of documents to fetch. Defaults to 10, max is 50.
|
|
46
|
+
#
|
|
47
|
+
# @param page [Integer] The page number for pagination. Defaults to the first page.
|
|
48
|
+
#
|
|
49
|
+
# @param user_email [String] The email address of the user that sent the Bulk Send. Must have the `admin` or
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::BulkSends#retrieve_csv_template
|
|
7
|
+
class BulkSendRetrieveCsvTemplateParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute template_ids
|
|
12
|
+
# Specify one or more templates to generate a single blank CSV file that will
|
|
13
|
+
# contain available columns for your recipient data. The template_ids[] parameter
|
|
14
|
+
# is an array of template IDs
|
|
15
|
+
# (e.g.,`/?template_ids[]=5a67dbd7-928a-4ea0-a7e2-e476a0eb045f&template_ids[]=d7315111-c671-4b15-8354-c9a19bbaefa0`).
|
|
16
|
+
# Each ID should be a separate parameter in the query string.
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<String>]
|
|
19
|
+
required :template_ids, SignwellSDK::Internal::Type::ArrayOf[String]
|
|
20
|
+
|
|
21
|
+
# @!attribute base64
|
|
22
|
+
# A RFC 4648 base64 string of the template CSV file to be validated.
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :base64, String
|
|
26
|
+
|
|
27
|
+
# @!method initialize(template_ids:, base64: nil, request_options: {})
|
|
28
|
+
# Some parameter documentations has been truncated, see
|
|
29
|
+
# {SignwellSDK::Models::V1::BulkSendRetrieveCsvTemplateParams} for more details.
|
|
30
|
+
#
|
|
31
|
+
# @param template_ids [Array<String>] Specify one or more templates to generate a single blank CSV file that will cont
|
|
32
|
+
#
|
|
33
|
+
# @param base64 [String] A RFC 4648 base64 string of the template CSV file to be validated.
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::BulkSends#retrieve_documents
|
|
7
|
+
class BulkSendRetrieveDocumentsParams < 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,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::BulkSends#retrieve
|
|
7
|
+
class BulkSendRetrieveParams < 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,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module SignwellSDK
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
# @see SignwellSDK::Resources::V1::BulkSends#validate_csv
|
|
7
|
+
class BulkSendValidateCsvParams < SignwellSDK::Internal::Type::BaseModel
|
|
8
|
+
extend SignwellSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include SignwellSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute bulk_send_csv
|
|
12
|
+
# A RFC 4648 base64 string of the template CSV file to be validated.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :bulk_send_csv, String
|
|
16
|
+
|
|
17
|
+
# @!attribute template_ids
|
|
18
|
+
# Specify one or more templates to generate a single blank CSV file that will
|
|
19
|
+
# contain available columns for your recipient data. The template_ids[] parameter
|
|
20
|
+
# is an array of template IDs
|
|
21
|
+
# (e.g.,`/?template_ids[]=5a67dbd7-928a-4ea0-a7e2-e476a0eb045f&template_ids[]=d7315111-c671-4b15-8354-c9a19bbaefa0`).
|
|
22
|
+
# Each ID should be a separate parameter in the query string.
|
|
23
|
+
#
|
|
24
|
+
# @return [Array<String>]
|
|
25
|
+
required :template_ids, SignwellSDK::Internal::Type::ArrayOf[String]
|
|
26
|
+
|
|
27
|
+
# @!method initialize(bulk_send_csv:, template_ids:, request_options: {})
|
|
28
|
+
# Some parameter documentations has been truncated, see
|
|
29
|
+
# {SignwellSDK::Models::V1::BulkSendValidateCsvParams} for more details.
|
|
30
|
+
#
|
|
31
|
+
# @param bulk_send_csv [String] A RFC 4648 base64 string of the template CSV file to be validated.
|
|
32
|
+
#
|
|
33
|
+
# @param template_ids [Array<String>] Specify one or more templates to generate a single blank CSV file that will cont
|
|
34
|
+
#
|
|
35
|
+
# @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|