signwell_sdk 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -3
- data/.github/workflows/generator-ownership.yml +1 -1
- data/.github/workflows/manual-release.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +16 -12
- data/README.md +11 -0
- data/docs/AdditionalFieldsInnerInner.md +4 -0
- data/docs/BulkSendCsvRequest.md +1 -1
- data/docs/ConditionalLogicDecisionInfo.md +26 -0
- data/docs/ConditionalRuleInfo.md +26 -0
- data/docs/ConditionalRuleInfoConditionsInner.md +26 -0
- data/docs/ConditionalRuleRequest.md +28 -0
- data/docs/ConditionalRuleRequestConditionsInner.md +26 -0
- data/docs/CopiedPlaceholdersInner.md +1 -1
- data/docs/CreateBulkSendRequest.md +2 -2
- data/docs/DocumentApi.md +82 -8
- data/docs/DocumentFromTemplateRequest.md +11 -3
- data/docs/DocumentFromTemplateResponse.md +11 -1
- data/docs/DocumentFromTemplateResponseFieldsInnerInner.md +4 -0
- data/docs/DocumentFromTemplateResponseRecipientsInner.md +6 -0
- data/docs/DocumentRequest.md +10 -4
- data/docs/DocumentResponse.md +11 -1
- data/docs/DocumentResponseFieldsInnerInner.md +4 -0
- data/docs/DocumentResponseRecipientsInner.md +6 -0
- data/docs/DocumentResponseRecipientsInnerPasscodeDelivery.md +22 -0
- data/docs/DocumentResponseRecipientsInnerSms.md +30 -0
- data/docs/DocumentTemplateRequest.md +5 -3
- data/docs/DocumentTemplateResponse.md +3 -1
- data/docs/DocumentTemplateResponsePlaceholdersInner.md +3 -1
- data/docs/DocumentTemplateUpdateRequest.md +5 -3
- data/docs/EmbeddedBranding.md +18 -0
- data/docs/EmbeddedBrandingBranding.md +26 -0
- data/docs/EmbeddedBrandingRequest.md +26 -0
- data/docs/EmbeddedBrandingRequestCompanyLogo.md +20 -0
- data/docs/EmbeddedRequest.md +18 -0
- data/docs/FieldsInnerInner.md +4 -0
- data/docs/PlaceholdersInner.md +4 -2
- data/docs/PlaceholdersInnerPasscodeDelivery.md +22 -0
- data/docs/RecipientsInner.md +14 -4
- data/docs/RecipientsInnerPasscodeDelivery.md +22 -0
- data/docs/ReminderRecipientsInner.md +1 -1
- data/docs/SendReminderRequest.md +1 -1
- data/docs/TemplateFieldsInnerInner.md +4 -0
- data/docs/TemplateRecipientsInner.md +14 -4
- data/docs/UpdateAuthenticationRequest.md +18 -0
- data/docs/UpdateAuthenticationRequestRecipientsInner.md +22 -0
- data/docs/UpdateDocumentAndSendRequest.md +9 -3
- data/docs/UpdateRecipientsMapInner.md +4 -2
- data/docs/UpdateRecipientsMapInnerPasscodeDelivery.md +22 -0
- data/docs/WebhooksApi.md +1 -1
- data/lib/signwell_sdk/api/api_application_api.rb +1 -2
- data/lib/signwell_sdk/api/bulk_send_api.rb +1 -2
- data/lib/signwell_sdk/api/document_api.rb +87 -14
- data/lib/signwell_sdk/api/me_api.rb +1 -2
- data/lib/signwell_sdk/api/regional_api.rb +1 -2
- data/lib/signwell_sdk/api/template_api.rb +1 -2
- data/lib/signwell_sdk/api/webhooks_api.rb +3 -4
- data/lib/signwell_sdk/api_client.rb +26 -6
- data/lib/signwell_sdk/api_error.rb +1 -2
- data/lib/signwell_sdk/api_model_base.rb +88 -0
- data/lib/signwell_sdk/configuration.rb +1 -1
- data/lib/signwell_sdk/extras/rate_limit.rb +17 -0
- data/lib/signwell_sdk/models/account_info_response.rb +1 -2
- data/lib/signwell_sdk/models/account_info_response_active_users_inner.rb +1 -2
- data/lib/signwell_sdk/models/account_info_response_preferences.rb +1 -2
- data/lib/signwell_sdk/models/additional_fields_inner_inner.rb +24 -3
- data/lib/signwell_sdk/models/additional_fields_inner_inner_value.rb +3 -4
- data/lib/signwell_sdk/models/additional_files_inner.rb +1 -2
- data/lib/signwell_sdk/models/api_application_response.rb +1 -2
- data/lib/signwell_sdk/models/api_application_response_owner.rb +1 -2
- data/lib/signwell_sdk/models/api_application_response_preferences.rb +1 -2
- data/lib/signwell_sdk/models/attachment_request_info.rb +1 -2
- data/lib/signwell_sdk/models/attachment_requests_inner.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_create_response.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_csv_request.rb +2 -3
- data/lib/signwell_sdk/models/bulk_send_csv_template_response.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_documents_response.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_list_item.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_list_response.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_response.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_response_templates_inner.rb +1 -2
- data/lib/signwell_sdk/models/bulk_send_validate_csv_response.rb +1 -2
- data/lib/signwell_sdk/models/checkbox_group_info.rb +1 -2
- data/lib/signwell_sdk/models/checkbox_groups_inner.rb +1 -2
- data/lib/signwell_sdk/models/checkbox_validation.rb +4 -3
- data/lib/signwell_sdk/models/completed_pdf_response.rb +3 -4
- data/lib/signwell_sdk/models/completed_pdf_url_response.rb +1 -2
- data/lib/signwell_sdk/models/conditional_logic_decision_info.rb +365 -0
- data/lib/signwell_sdk/models/conditional_rule_info.rb +351 -0
- data/lib/signwell_sdk/models/conditional_rule_info_conditions_inner.rb +340 -0
- data/lib/signwell_sdk/models/conditional_rule_request.rb +322 -0
- data/lib/signwell_sdk/models/conditional_rule_request_conditions_inner.rb +371 -0
- data/lib/signwell_sdk/models/copied_contact_info.rb +1 -2
- data/lib/signwell_sdk/models/copied_contacts_inner.rb +1 -2
- data/lib/signwell_sdk/models/copied_placeholders_inner.rb +2 -3
- data/lib/signwell_sdk/models/create_bulk_send_request.rb +3 -4
- data/lib/signwell_sdk/models/create_webhook_request.rb +1 -2
- data/lib/signwell_sdk/models/date_format.rb +4 -3
- data/lib/signwell_sdk/models/detailed_option.rb +1 -2
- data/lib/signwell_sdk/models/document_from_template_request.rb +90 -6
- data/lib/signwell_sdk/models/document_from_template_response.rb +101 -6
- data/lib/signwell_sdk/models/document_from_template_response_fields_inner_inner.rb +24 -3
- data/lib/signwell_sdk/models/document_from_template_response_fields_inner_inner_recipient.rb +1 -2
- data/lib/signwell_sdk/models/document_from_template_response_recipients_inner.rb +71 -3
- data/lib/signwell_sdk/models/document_list_response.rb +1 -2
- data/lib/signwell_sdk/models/document_request.rb +42 -7
- data/lib/signwell_sdk/models/document_response.rb +101 -6
- data/lib/signwell_sdk/models/document_response_attachment_requests_inner.rb +1 -2
- data/lib/signwell_sdk/models/document_response_fields_inner_inner.rb +24 -3
- data/lib/signwell_sdk/models/document_response_fields_inner_inner_options_inner.rb +1 -2
- data/lib/signwell_sdk/models/document_response_fields_inner_inner_recipient.rb +1 -2
- data/lib/signwell_sdk/models/document_response_fields_inner_inner_value.rb +3 -4
- data/lib/signwell_sdk/models/document_response_recipients_inner.rb +71 -3
- data/lib/signwell_sdk/models/document_response_recipients_inner_passcode_delivery.rb +246 -0
- data/lib/signwell_sdk/models/document_response_recipients_inner_sms.rb +292 -0
- data/lib/signwell_sdk/models/document_template_list_response.rb +1 -2
- data/lib/signwell_sdk/models/document_template_request.rb +18 -6
- data/lib/signwell_sdk/models/document_template_response.rb +17 -6
- data/lib/signwell_sdk/models/document_template_response_copied_placeholders_inner.rb +1 -2
- data/lib/signwell_sdk/models/document_template_response_placeholders_inner.rb +15 -6
- data/lib/signwell_sdk/models/document_template_update_request.rb +18 -6
- data/lib/signwell_sdk/models/dropdown_option.rb +3 -4
- data/lib/signwell_sdk/models/embedded_branding.rb +241 -0
- data/lib/signwell_sdk/models/embedded_branding_branding.rb +307 -0
- data/lib/signwell_sdk/models/embedded_branding_request.rb +297 -0
- data/lib/signwell_sdk/models/embedded_branding_request_company_logo.rb +236 -0
- data/lib/signwell_sdk/models/embedded_request.rb +225 -0
- data/lib/signwell_sdk/models/error_response.rb +1 -2
- data/lib/signwell_sdk/models/error_response_meta.rb +1 -2
- data/lib/signwell_sdk/models/field_type.rb +4 -3
- data/lib/signwell_sdk/models/fields_inner_inner.rb +24 -3
- data/lib/signwell_sdk/models/file_format.rb +4 -3
- data/lib/signwell_sdk/models/file_info.rb +1 -2
- data/lib/signwell_sdk/models/files_inner.rb +1 -2
- data/lib/signwell_sdk/models/label_info.rb +1 -2
- data/lib/signwell_sdk/models/label_request.rb +1 -2
- data/lib/signwell_sdk/models/label_response.rb +1 -2
- data/lib/signwell_sdk/models/me_response.rb +1 -2
- data/lib/signwell_sdk/models/me_response_contact.rb +1 -2
- data/lib/signwell_sdk/models/me_response_user.rb +1 -2
- data/lib/signwell_sdk/models/me_response_user_preferences.rb +1 -2
- data/lib/signwell_sdk/models/nom151_certificate_response.rb +1 -2
- data/lib/signwell_sdk/models/nom151_certificate_response_nom151.rb +1 -2
- data/lib/signwell_sdk/models/nom151_url_response.rb +1 -2
- data/lib/signwell_sdk/models/pagination_meta.rb +1 -2
- data/lib/signwell_sdk/models/placeholders_inner.rb +16 -7
- data/lib/signwell_sdk/models/placeholders_inner_passcode_delivery.rb +271 -0
- data/lib/signwell_sdk/models/rate_limit_error_response.rb +1 -2
- data/lib/signwell_sdk/models/recipients_inner.rb +103 -23
- data/lib/signwell_sdk/models/recipients_inner_passcode_delivery.rb +271 -0
- data/lib/signwell_sdk/models/reminder_recipients_inner.rb +2 -3
- data/lib/signwell_sdk/models/send_reminder_request.rb +2 -3
- data/lib/signwell_sdk/models/template_attachment_requests_inner.rb +1 -2
- data/lib/signwell_sdk/models/template_checkbox_groups_inner.rb +1 -2
- data/lib/signwell_sdk/models/template_field_values_inner.rb +1 -2
- data/lib/signwell_sdk/models/template_field_values_inner_value.rb +3 -4
- data/lib/signwell_sdk/models/template_fields_inner_inner.rb +24 -3
- data/lib/signwell_sdk/models/template_recipients_inner.rb +103 -23
- data/lib/signwell_sdk/models/text_validation.rb +5 -3
- data/lib/signwell_sdk/models/update_authentication_request.rb +243 -0
- data/lib/signwell_sdk/models/update_authentication_request_recipients_inner.rb +262 -0
- data/lib/signwell_sdk/models/update_document_and_send_request.rb +41 -6
- data/lib/signwell_sdk/models/update_recipients_map_inner.rb +16 -7
- data/lib/signwell_sdk/models/update_recipients_map_inner_passcode_delivery.rb +271 -0
- data/lib/signwell_sdk/models/update_recipients_request.rb +1 -2
- data/lib/signwell_sdk/models/validation_error_response.rb +1 -2
- data/lib/signwell_sdk/models/webhook_response.rb +1 -2
- data/lib/signwell_sdk/version.rb +4 -4
- data/lib/signwell_sdk.rb +19 -2
- data/openapi.yaml +2231 -972
- data/package-lock.json +542 -136
- data/package.json +4 -1
- data/signwell_sdk.gemspec +1 -2
- data/spec/api/api_application_api_spec.rb +1 -2
- data/spec/api/bulk_send_api_spec.rb +1 -2
- data/spec/api/document_api_spec.rb +11 -4
- data/spec/api/me_api_spec.rb +1 -2
- data/spec/api/regional_api_spec.rb +1 -2
- data/spec/api/template_api_spec.rb +1 -2
- data/spec/api/webhooks_api_spec.rb +1 -2
- data/spec/models/account_info_response_active_users_inner_spec.rb +1 -2
- data/spec/models/account_info_response_preferences_spec.rb +1 -2
- data/spec/models/account_info_response_spec.rb +1 -2
- data/spec/models/additional_fields_inner_inner_spec.rb +13 -2
- data/spec/models/additional_fields_inner_inner_value_spec.rb +1 -2
- data/spec/models/additional_files_inner_spec.rb +1 -2
- data/spec/models/api_application_response_owner_spec.rb +1 -2
- data/spec/models/api_application_response_preferences_spec.rb +1 -2
- data/spec/models/api_application_response_spec.rb +1 -2
- data/spec/models/attachment_request_info_spec.rb +1 -2
- data/spec/models/attachment_requests_inner_spec.rb +1 -2
- data/spec/models/bulk_send_create_response_spec.rb +1 -2
- data/spec/models/bulk_send_csv_request_spec.rb +1 -2
- data/spec/models/bulk_send_csv_template_response_spec.rb +1 -2
- data/spec/models/bulk_send_documents_response_spec.rb +1 -2
- data/spec/models/bulk_send_list_item_spec.rb +1 -2
- data/spec/models/bulk_send_list_response_spec.rb +1 -2
- data/spec/models/bulk_send_response_spec.rb +1 -2
- data/spec/models/bulk_send_response_templates_inner_spec.rb +1 -2
- data/spec/models/bulk_send_validate_csv_response_spec.rb +1 -2
- data/spec/models/checkbox_group_info_spec.rb +1 -2
- data/spec/models/checkbox_groups_inner_spec.rb +1 -2
- data/spec/models/checkbox_validation_spec.rb +1 -2
- data/spec/models/completed_pdf_response_spec.rb +1 -2
- data/spec/models/completed_pdf_url_response_spec.rb +1 -2
- data/spec/models/conditional_logic_decision_info_spec.rb +58 -0
- data/spec/models/conditional_rule_info_conditions_inner_spec.rb +58 -0
- data/spec/models/conditional_rule_info_spec.rb +58 -0
- data/spec/models/conditional_rule_request_conditions_inner_spec.rb +58 -0
- data/spec/models/conditional_rule_request_spec.rb +64 -0
- data/spec/models/copied_contact_info_spec.rb +1 -2
- data/spec/models/copied_contacts_inner_spec.rb +1 -2
- data/spec/models/copied_placeholders_inner_spec.rb +1 -2
- data/spec/models/create_bulk_send_request_spec.rb +1 -2
- data/spec/models/create_webhook_request_spec.rb +1 -2
- data/spec/models/date_format_spec.rb +1 -2
- data/spec/models/detailed_option_spec.rb +1 -2
- data/spec/models/document_from_template_request_spec.rb +25 -2
- data/spec/models/document_from_template_response_fields_inner_inner_recipient_spec.rb +1 -2
- data/spec/models/document_from_template_response_fields_inner_inner_spec.rb +13 -2
- data/spec/models/document_from_template_response_recipients_inner_spec.rb +19 -2
- data/spec/models/document_from_template_response_spec.rb +31 -2
- data/spec/models/document_list_response_spec.rb +1 -2
- data/spec/models/document_request_spec.rb +19 -2
- data/spec/models/document_response_attachment_requests_inner_spec.rb +1 -2
- data/spec/models/document_response_fields_inner_inner_options_inner_spec.rb +1 -2
- data/spec/models/document_response_fields_inner_inner_recipient_spec.rb +1 -2
- data/spec/models/document_response_fields_inner_inner_spec.rb +13 -2
- data/spec/models/document_response_fields_inner_inner_value_spec.rb +1 -2
- data/spec/models/document_response_recipients_inner_passcode_delivery_spec.rb +46 -0
- data/spec/models/document_response_recipients_inner_sms_spec.rb +70 -0
- data/spec/models/document_response_recipients_inner_spec.rb +19 -2
- data/spec/models/document_response_spec.rb +31 -2
- data/spec/models/document_template_list_response_spec.rb +1 -2
- data/spec/models/document_template_request_spec.rb +7 -2
- data/spec/models/document_template_response_copied_placeholders_inner_spec.rb +1 -2
- data/spec/models/document_template_response_placeholders_inner_spec.rb +7 -2
- data/spec/models/document_template_response_spec.rb +7 -2
- data/spec/models/document_template_update_request_spec.rb +7 -2
- data/spec/models/dropdown_option_spec.rb +1 -2
- data/spec/models/embedded_branding_branding_spec.rb +58 -0
- data/spec/models/embedded_branding_request_company_logo_spec.rb +40 -0
- data/spec/models/embedded_branding_request_spec.rb +58 -0
- data/spec/models/embedded_branding_spec.rb +34 -0
- data/spec/models/embedded_request_spec.rb +34 -0
- data/spec/models/error_response_meta_spec.rb +1 -2
- data/spec/models/error_response_spec.rb +1 -2
- data/spec/models/field_type_spec.rb +1 -2
- data/spec/models/fields_inner_inner_spec.rb +13 -2
- data/spec/models/file_format_spec.rb +1 -2
- data/spec/models/file_info_spec.rb +1 -2
- data/spec/models/files_inner_spec.rb +1 -2
- data/spec/models/label_info_spec.rb +1 -2
- data/spec/models/label_request_spec.rb +1 -2
- data/spec/models/label_response_spec.rb +1 -2
- data/spec/models/me_response_contact_spec.rb +1 -2
- data/spec/models/me_response_spec.rb +1 -2
- data/spec/models/me_response_user_preferences_spec.rb +1 -2
- data/spec/models/me_response_user_spec.rb +1 -2
- data/spec/models/nom151_certificate_response_nom151_spec.rb +1 -2
- data/spec/models/nom151_certificate_response_spec.rb +1 -2
- data/spec/models/nom151_url_response_spec.rb +1 -2
- data/spec/models/pagination_meta_spec.rb +1 -2
- data/spec/models/placeholders_inner_passcode_delivery_spec.rb +46 -0
- data/spec/models/placeholders_inner_spec.rb +7 -2
- data/spec/models/rate_limit_error_response_spec.rb +1 -2
- data/spec/models/recipients_inner_passcode_delivery_spec.rb +46 -0
- data/spec/models/recipients_inner_spec.rb +31 -2
- data/spec/models/reminder_recipients_inner_spec.rb +1 -2
- data/spec/models/send_reminder_request_spec.rb +1 -2
- data/spec/models/template_attachment_requests_inner_spec.rb +1 -2
- data/spec/models/template_checkbox_groups_inner_spec.rb +1 -2
- data/spec/models/template_field_values_inner_spec.rb +1 -2
- data/spec/models/template_field_values_inner_value_spec.rb +1 -2
- data/spec/models/template_fields_inner_inner_spec.rb +13 -2
- data/spec/models/template_recipients_inner_spec.rb +31 -2
- data/spec/models/text_validation_spec.rb +1 -2
- data/spec/models/update_authentication_request_recipients_inner_spec.rb +46 -0
- data/spec/models/update_authentication_request_spec.rb +34 -0
- data/spec/models/update_document_and_send_request_spec.rb +19 -2
- data/spec/models/update_recipients_map_inner_passcode_delivery_spec.rb +46 -0
- data/spec/models/update_recipients_map_inner_spec.rb +7 -2
- data/spec/models/update_recipients_request_spec.rb +1 -2
- data/spec/models/validation_error_response_spec.rb +1 -2
- data/spec/models/webhook_response_spec.rb +1 -2
- data/spec/regressions/api_client_spec.rb +56 -1
- data/spec/spec_helper.rb +1 -2
- metadata +73 -3
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
SignWell Developer API
|
|
3
|
+
|
|
4
|
+
API for creating, managing, and tracking electronic signature workflows.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
Contact: support@signwell.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
require 'time'
|
|
14
|
+
|
|
15
|
+
module SignWell
|
|
16
|
+
module Models
|
|
17
|
+
# SMS delivery metadata. Only present when delivery_method includes SMS.
|
|
18
|
+
class DocumentResponseRecipientsInnerSms
|
|
19
|
+
# Masked phone number; the full number never leaves the API.
|
|
20
|
+
# @return [String]
|
|
21
|
+
attr_accessor :phone_number_masked
|
|
22
|
+
|
|
23
|
+
# @return [Boolean]
|
|
24
|
+
attr_accessor :send_sms
|
|
25
|
+
|
|
26
|
+
# @return [Integer]
|
|
27
|
+
attr_accessor :send_sms_delay
|
|
28
|
+
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :delivery_status
|
|
31
|
+
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :message_type
|
|
34
|
+
|
|
35
|
+
# @return [Boolean]
|
|
36
|
+
attr_accessor :failed
|
|
37
|
+
|
|
38
|
+
# @return [String]
|
|
39
|
+
attr_accessor :failed_details
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
def self.attribute_map
|
|
43
|
+
{
|
|
44
|
+
:'phone_number_masked' => :'phone_number_masked',
|
|
45
|
+
:'send_sms' => :'send_sms',
|
|
46
|
+
:'send_sms_delay' => :'send_sms_delay',
|
|
47
|
+
:'delivery_status' => :'delivery_status',
|
|
48
|
+
:'message_type' => :'message_type',
|
|
49
|
+
:'failed' => :'failed',
|
|
50
|
+
:'failed_details' => :'failed_details'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns attribute mapping this model knows about
|
|
55
|
+
def self.acceptable_attribute_map
|
|
56
|
+
attribute_map
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Returns all the JSON keys this model knows about
|
|
60
|
+
def self.acceptable_attributes
|
|
61
|
+
acceptable_attribute_map.values
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Attribute type mapping.
|
|
65
|
+
def self.openapi_types
|
|
66
|
+
{
|
|
67
|
+
:'phone_number_masked' => :'String',
|
|
68
|
+
:'send_sms' => :'Boolean',
|
|
69
|
+
:'send_sms_delay' => :'Integer',
|
|
70
|
+
:'delivery_status' => :'String',
|
|
71
|
+
:'message_type' => :'String',
|
|
72
|
+
:'failed' => :'Boolean',
|
|
73
|
+
:'failed_details' => :'String'
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# List of attributes with nullable: true
|
|
78
|
+
def self.openapi_nullable
|
|
79
|
+
Set.new([
|
|
80
|
+
:'phone_number_masked',
|
|
81
|
+
:'send_sms',
|
|
82
|
+
:'send_sms_delay',
|
|
83
|
+
:'delivery_status',
|
|
84
|
+
:'message_type',
|
|
85
|
+
:'failed',
|
|
86
|
+
:'failed_details'
|
|
87
|
+
])
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Initializes the object
|
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
|
+
def initialize(attributes = {})
|
|
93
|
+
if (!attributes.is_a?(Hash))
|
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SignWell::DocumentResponseRecipientsInnerSms` initialize method"
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
98
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
100
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
101
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SignWell::DocumentResponseRecipientsInnerSms`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
102
|
+
end
|
|
103
|
+
h[k.to_sym] = v
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'phone_number_masked')
|
|
107
|
+
self.phone_number_masked = attributes[:'phone_number_masked']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'send_sms')
|
|
111
|
+
self.send_sms = attributes[:'send_sms']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'send_sms_delay')
|
|
115
|
+
self.send_sms_delay = attributes[:'send_sms_delay']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'delivery_status')
|
|
119
|
+
self.delivery_status = attributes[:'delivery_status']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'message_type')
|
|
123
|
+
self.message_type = attributes[:'message_type']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'failed')
|
|
127
|
+
self.failed = attributes[:'failed']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'failed_details')
|
|
131
|
+
self.failed_details = attributes[:'failed_details']
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
137
|
+
# @return Array for valid properties with the reasons
|
|
138
|
+
def list_invalid_properties
|
|
139
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
140
|
+
invalid_properties = Array.new
|
|
141
|
+
invalid_properties
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Check to see if the all the properties in the model are valid
|
|
145
|
+
# @return true if the model is valid
|
|
146
|
+
def valid?
|
|
147
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
148
|
+
true
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Checks equality by comparing each attribute.
|
|
152
|
+
# @param [Object] other Object to be compared
|
|
153
|
+
def ==(o)
|
|
154
|
+
return true if self.equal?(o)
|
|
155
|
+
self.class == o.class &&
|
|
156
|
+
phone_number_masked == o.phone_number_masked &&
|
|
157
|
+
send_sms == o.send_sms &&
|
|
158
|
+
send_sms_delay == o.send_sms_delay &&
|
|
159
|
+
delivery_status == o.delivery_status &&
|
|
160
|
+
message_type == o.message_type &&
|
|
161
|
+
failed == o.failed &&
|
|
162
|
+
failed_details == o.failed_details
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# @see the `==` method
|
|
166
|
+
# @param [Object] other Object to be compared
|
|
167
|
+
def eql?(o)
|
|
168
|
+
self == o
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Calculates hash code according to all attributes.
|
|
172
|
+
# @return [Integer] Hash code
|
|
173
|
+
def hash
|
|
174
|
+
[phone_number_masked, send_sms, send_sms_delay, delivery_status, message_type, failed, failed_details].hash
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Builds the object from hash
|
|
178
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
179
|
+
# @return [Object] Returns the model itself
|
|
180
|
+
def self.build_from_hash(attributes)
|
|
181
|
+
return nil unless attributes.is_a?(Hash)
|
|
182
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
183
|
+
transformed_hash = {}
|
|
184
|
+
openapi_types.each_pair do |key, type|
|
|
185
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
186
|
+
transformed_hash["#{key}"] = nil
|
|
187
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
188
|
+
# check to ensure the input is an array given that the attribute
|
|
189
|
+
# is documented as an array but the input is not
|
|
190
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
191
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
192
|
+
end
|
|
193
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
194
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
new(transformed_hash)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Deserializes the data based on type
|
|
201
|
+
# @param [String] type Data type
|
|
202
|
+
# @param [String] value Value to be deserialized
|
|
203
|
+
# @return [Object] Deserialized data
|
|
204
|
+
def self._deserialize(type, value)
|
|
205
|
+
case type.to_sym
|
|
206
|
+
when :Time
|
|
207
|
+
Time.parse(value)
|
|
208
|
+
when :Date
|
|
209
|
+
Date.parse(value)
|
|
210
|
+
when :String
|
|
211
|
+
value.to_s
|
|
212
|
+
when :Integer
|
|
213
|
+
value.to_i
|
|
214
|
+
when :Float
|
|
215
|
+
value.to_f
|
|
216
|
+
when :Boolean
|
|
217
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
218
|
+
true
|
|
219
|
+
else
|
|
220
|
+
false
|
|
221
|
+
end
|
|
222
|
+
when :Object
|
|
223
|
+
# generic object (usually a Hash), return directly
|
|
224
|
+
value
|
|
225
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
226
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
227
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
228
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
229
|
+
k_type = Regexp.last_match[:k_type]
|
|
230
|
+
v_type = Regexp.last_match[:v_type]
|
|
231
|
+
{}.tap do |hash|
|
|
232
|
+
value.each do |k, v|
|
|
233
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
else # model
|
|
237
|
+
# models (e.g. Pet) or oneOf
|
|
238
|
+
klass = SignWell::Models.const_get(type)
|
|
239
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Returns the string representation of the object
|
|
244
|
+
# @return [String] String presentation of the object
|
|
245
|
+
def to_s
|
|
246
|
+
to_hash.to_s
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
250
|
+
# @return [Hash] Returns the object in the form of hash
|
|
251
|
+
def to_body
|
|
252
|
+
to_hash
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Returns the object in the form of hash
|
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
|
257
|
+
def to_hash
|
|
258
|
+
normalize_for_serialization! if respond_to?(:normalize_for_serialization!, true)
|
|
259
|
+
|
|
260
|
+
hash = {}
|
|
261
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
262
|
+
value = self.send(attr)
|
|
263
|
+
if value.nil?
|
|
264
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
265
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
hash[param] = _to_hash(value)
|
|
269
|
+
end
|
|
270
|
+
hash
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Outputs non-array value in the form of hash
|
|
274
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
275
|
+
# @param [Object] value Any valid value
|
|
276
|
+
# @return [Hash] Returns the value in the form of hash
|
|
277
|
+
def _to_hash(value)
|
|
278
|
+
if value.is_a?(Array)
|
|
279
|
+
value.compact.map { |v| _to_hash(v) }
|
|
280
|
+
elsif value.is_a?(Hash)
|
|
281
|
+
{}.tap do |hash|
|
|
282
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
283
|
+
end
|
|
284
|
+
elsif value.respond_to? :to_hash
|
|
285
|
+
value.to_hash
|
|
286
|
+
else
|
|
287
|
+
value
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -24,11 +23,11 @@ module SignWell
|
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :name
|
|
26
25
|
|
|
27
|
-
# Email subject for the signature request that recipients will see. Defaults to the default system subject or a template subject (if the document is created from a template).
|
|
26
|
+
# Email subject for the signature request that recipients will see. Defaults to the default system subject or a template subject (if the document is created from a template). Applies to email notifications only; SMS notifications always use fixed system templates.
|
|
28
27
|
# @return [String]
|
|
29
28
|
attr_accessor :subject
|
|
30
29
|
|
|
31
|
-
# Email message for the signature request that recipients will see. Defaults to the default system message or a template message (if the document is created from a template).
|
|
30
|
+
# Email message for the signature request that recipients will see. Defaults to the default system message or a template message (if the document is created from a template). Applies to email notifications only; SMS notifications always use fixed system templates.
|
|
32
31
|
# @return [String]
|
|
33
32
|
attr_accessor :message
|
|
34
33
|
|
|
@@ -72,7 +71,7 @@ module SignWell
|
|
|
72
71
|
# @return [Boolean]
|
|
73
72
|
attr_accessor :allow_decline
|
|
74
73
|
|
|
75
|
-
# In some cases a signer is not the right person to sign and may need to reassign their signing responsibilities to another person. This feature allows them to reassign the document to someone else.
|
|
74
|
+
# In some cases a signer is not the right person to sign and may need to reassign their signing responsibilities to another person. This feature allows them to reassign the document to someone else. Unavailable on 21 CFR Part 11 documents: omit it and reassignment stays off, while sending `true` returns a 422.
|
|
76
75
|
# @return [Boolean]
|
|
77
76
|
attr_accessor :allow_reassign
|
|
78
77
|
|
|
@@ -84,6 +83,10 @@ module SignWell
|
|
|
84
83
|
# @return [String]
|
|
85
84
|
attr_accessor :language
|
|
86
85
|
|
|
86
|
+
# Conditional logic rules that show, hide, or require fields based on what a signer does to other fields. Every identifier is a field api_id. At most 10 rules per document or template.
|
|
87
|
+
# @return [Array<ConditionalRuleRequest>]
|
|
88
|
+
attr_accessor :conditional_rules
|
|
89
|
+
|
|
87
90
|
# Optional key-value data that can be associated with the document. If set, will be available every time the document data is returned.
|
|
88
91
|
# @return [Hash<String, String>]
|
|
89
92
|
attr_accessor :metadata
|
|
@@ -124,6 +127,7 @@ module SignWell
|
|
|
124
127
|
:'allow_reassign' => :'allow_reassign',
|
|
125
128
|
:'decline_redirect_url' => :'decline_redirect_url',
|
|
126
129
|
:'language' => :'language',
|
|
130
|
+
:'conditional_rules' => :'conditional_rules',
|
|
127
131
|
:'metadata' => :'metadata',
|
|
128
132
|
:'fields' => :'fields',
|
|
129
133
|
:'attachment_requests' => :'attachment_requests',
|
|
@@ -162,6 +166,7 @@ module SignWell
|
|
|
162
166
|
:'allow_reassign' => :'Boolean',
|
|
163
167
|
:'decline_redirect_url' => :'String',
|
|
164
168
|
:'language' => :'String',
|
|
169
|
+
:'conditional_rules' => :'Array<ConditionalRuleRequest>',
|
|
165
170
|
:'metadata' => :'Hash<String, String>',
|
|
166
171
|
:'fields' => :'Array<Array<TemplateFieldsInnerInner>>',
|
|
167
172
|
:'attachment_requests' => :'Array<TemplateAttachmentRequestsInner>',
|
|
@@ -282,6 +287,12 @@ module SignWell
|
|
|
282
287
|
self.language = attributes[:'language']
|
|
283
288
|
end
|
|
284
289
|
|
|
290
|
+
if attributes.key?(:'conditional_rules')
|
|
291
|
+
if (value = attributes[:'conditional_rules']).is_a?(Array)
|
|
292
|
+
self.conditional_rules = value
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
285
296
|
if attributes.key?(:'metadata')
|
|
286
297
|
if (value = attributes[:'metadata']).is_a?(Hash)
|
|
287
298
|
self.metadata = value
|
|
@@ -400,6 +411,7 @@ module SignWell
|
|
|
400
411
|
allow_reassign == o.allow_reassign &&
|
|
401
412
|
decline_redirect_url == o.decline_redirect_url &&
|
|
402
413
|
language == o.language &&
|
|
414
|
+
conditional_rules == o.conditional_rules &&
|
|
403
415
|
metadata == o.metadata &&
|
|
404
416
|
fields == o.fields &&
|
|
405
417
|
attachment_requests == o.attachment_requests &&
|
|
@@ -416,7 +428,7 @@ module SignWell
|
|
|
416
428
|
# Calculates hash code according to all attributes.
|
|
417
429
|
# @return [Integer] Hash code
|
|
418
430
|
def hash
|
|
419
|
-
[files, name, subject, message, placeholders, copied_placeholders, draft, expires_in, reminders, apply_signing_order, api_application_id, text_tags, redirect_url, allow_decline, allow_reassign, decline_redirect_url, language, metadata, fields, attachment_requests, labels, checkbox_groups].hash
|
|
431
|
+
[files, name, subject, message, placeholders, copied_placeholders, draft, expires_in, reminders, apply_signing_order, api_application_id, text_tags, redirect_url, allow_decline, allow_reassign, decline_redirect_url, language, conditional_rules, metadata, fields, attachment_requests, labels, checkbox_groups].hash
|
|
420
432
|
end
|
|
421
433
|
|
|
422
434
|
# Builds the object from hash
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -106,6 +105,9 @@ module SignWell
|
|
|
106
105
|
# @return [Array<CheckboxGroupInfo>]
|
|
107
106
|
attr_accessor :checkbox_groups
|
|
108
107
|
|
|
108
|
+
# @return [Array<ConditionalRuleInfo>]
|
|
109
|
+
attr_accessor :conditional_rules
|
|
110
|
+
|
|
109
111
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
110
112
|
def self.attribute_map
|
|
111
113
|
{
|
|
@@ -138,7 +140,8 @@ module SignWell
|
|
|
138
140
|
:'allow_decline' => :'allow_decline',
|
|
139
141
|
:'allow_reassign' => :'allow_reassign',
|
|
140
142
|
:'labels' => :'labels',
|
|
141
|
-
:'checkbox_groups' => :'checkbox_groups'
|
|
143
|
+
:'checkbox_groups' => :'checkbox_groups',
|
|
144
|
+
:'conditional_rules' => :'conditional_rules'
|
|
142
145
|
}
|
|
143
146
|
end
|
|
144
147
|
|
|
@@ -184,7 +187,8 @@ module SignWell
|
|
|
184
187
|
:'allow_decline' => :'Boolean',
|
|
185
188
|
:'allow_reassign' => :'Boolean',
|
|
186
189
|
:'labels' => :'Array<LabelInfo>',
|
|
187
|
-
:'checkbox_groups' => :'Array<CheckboxGroupInfo>'
|
|
190
|
+
:'checkbox_groups' => :'Array<CheckboxGroupInfo>',
|
|
191
|
+
:'conditional_rules' => :'Array<ConditionalRuleInfo>'
|
|
188
192
|
}
|
|
189
193
|
end
|
|
190
194
|
|
|
@@ -357,6 +361,12 @@ module SignWell
|
|
|
357
361
|
self.checkbox_groups = value
|
|
358
362
|
end
|
|
359
363
|
end
|
|
364
|
+
|
|
365
|
+
if attributes.key?(:'conditional_rules')
|
|
366
|
+
if (value = attributes[:'conditional_rules']).is_a?(Array)
|
|
367
|
+
self.conditional_rules = value
|
|
368
|
+
end
|
|
369
|
+
end
|
|
360
370
|
end
|
|
361
371
|
|
|
362
372
|
|
|
@@ -424,7 +434,8 @@ module SignWell
|
|
|
424
434
|
allow_decline == o.allow_decline &&
|
|
425
435
|
allow_reassign == o.allow_reassign &&
|
|
426
436
|
labels == o.labels &&
|
|
427
|
-
checkbox_groups == o.checkbox_groups
|
|
437
|
+
checkbox_groups == o.checkbox_groups &&
|
|
438
|
+
conditional_rules == o.conditional_rules
|
|
428
439
|
end
|
|
429
440
|
|
|
430
441
|
# @see the `==` method
|
|
@@ -436,7 +447,7 @@ module SignWell
|
|
|
436
447
|
# Calculates hash code according to all attributes.
|
|
437
448
|
# @return [Integer] Hash code
|
|
438
449
|
def hash
|
|
439
|
-
[id, api_application_id, requester_email_address, custom_requester_name, custom_requester_email, name, subject, message, metadata, created_at, updated_at, placeholders, copied_placeholders, status, reminders, archived, embedded_edit_url, template_link, template_id, apply_signing_order, redirect_url, decline_redirect_url, language, expires_in, files, fields, allow_decline, allow_reassign, labels, checkbox_groups].hash
|
|
450
|
+
[id, api_application_id, requester_email_address, custom_requester_name, custom_requester_email, name, subject, message, metadata, created_at, updated_at, placeholders, copied_placeholders, status, reminders, archived, embedded_edit_url, template_link, template_id, apply_signing_order, redirect_url, decline_redirect_url, language, expires_in, files, fields, allow_decline, allow_reassign, labels, checkbox_groups, conditional_rules].hash
|
|
440
451
|
end
|
|
441
452
|
|
|
442
453
|
# Builds the object from hash
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -40,6 +39,9 @@ module SignWell
|
|
|
40
39
|
# @return [Array<AttachmentRequestInfo>]
|
|
41
40
|
attr_accessor :attachment_requests
|
|
42
41
|
|
|
42
|
+
# @return [DocumentResponseRecipientsInnerPasscodeDelivery]
|
|
43
|
+
attr_accessor :passcode_delivery
|
|
44
|
+
|
|
43
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
46
|
def self.attribute_map
|
|
45
47
|
{
|
|
@@ -50,7 +52,8 @@ module SignWell
|
|
|
50
52
|
:'preassigned_recipient_name' => :'preassigned_recipient_name',
|
|
51
53
|
:'preassigned_recipient_email' => :'preassigned_recipient_email',
|
|
52
54
|
:'signing_order' => :'signing_order',
|
|
53
|
-
:'attachment_requests' => :'attachment_requests'
|
|
55
|
+
:'attachment_requests' => :'attachment_requests',
|
|
56
|
+
:'passcode_delivery' => :'passcode_delivery'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -74,7 +77,8 @@ module SignWell
|
|
|
74
77
|
:'preassigned_recipient_name' => :'String',
|
|
75
78
|
:'preassigned_recipient_email' => :'String',
|
|
76
79
|
:'signing_order' => :'Integer',
|
|
77
|
-
:'attachment_requests' => :'Array<AttachmentRequestInfo>'
|
|
80
|
+
:'attachment_requests' => :'Array<AttachmentRequestInfo>',
|
|
81
|
+
:'passcode_delivery' => :'DocumentResponseRecipientsInnerPasscodeDelivery'
|
|
78
82
|
}
|
|
79
83
|
end
|
|
80
84
|
|
|
@@ -137,6 +141,10 @@ module SignWell
|
|
|
137
141
|
self.attachment_requests = value
|
|
138
142
|
end
|
|
139
143
|
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'passcode_delivery')
|
|
146
|
+
self.passcode_delivery = attributes[:'passcode_delivery']
|
|
147
|
+
end
|
|
140
148
|
end
|
|
141
149
|
|
|
142
150
|
|
|
@@ -182,7 +190,8 @@ module SignWell
|
|
|
182
190
|
preassigned_recipient_name == o.preassigned_recipient_name &&
|
|
183
191
|
preassigned_recipient_email == o.preassigned_recipient_email &&
|
|
184
192
|
signing_order == o.signing_order &&
|
|
185
|
-
attachment_requests == o.attachment_requests
|
|
193
|
+
attachment_requests == o.attachment_requests &&
|
|
194
|
+
passcode_delivery == o.passcode_delivery
|
|
186
195
|
end
|
|
187
196
|
|
|
188
197
|
# @see the `==` method
|
|
@@ -194,7 +203,7 @@ module SignWell
|
|
|
194
203
|
# Calculates hash code according to all attributes.
|
|
195
204
|
# @return [Integer] Hash code
|
|
196
205
|
def hash
|
|
197
|
-
[id, name, subject, message, preassigned_recipient_name, preassigned_recipient_email, signing_order, attachment_requests].hash
|
|
206
|
+
[id, name, subject, message, preassigned_recipient_name, preassigned_recipient_email, signing_order, attachment_requests, passcode_delivery].hash
|
|
198
207
|
end
|
|
199
208
|
|
|
200
209
|
# Builds the object from hash
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -20,11 +19,11 @@ module SignWell
|
|
|
20
19
|
# @return [String]
|
|
21
20
|
attr_accessor :name
|
|
22
21
|
|
|
23
|
-
# Email subject for the signature request that recipients will see. Defaults to the default system subject or a template subject (if the document is created from a template).
|
|
22
|
+
# Email subject for the signature request that recipients will see. Defaults to the default system subject or a template subject (if the document is created from a template). Applies to email notifications only; SMS notifications always use fixed system templates.
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :subject
|
|
26
25
|
|
|
27
|
-
# Email message for the signature request that recipients will see. Defaults to the default system message or a template message (if the document is created from a template).
|
|
26
|
+
# Email message for the signature request that recipients will see. Defaults to the default system message or a template message (if the document is created from a template). Applies to email notifications only; SMS notifications always use fixed system templates.
|
|
28
27
|
# @return [String]
|
|
29
28
|
attr_accessor :message
|
|
30
29
|
|
|
@@ -56,7 +55,7 @@ module SignWell
|
|
|
56
55
|
# @return [Boolean]
|
|
57
56
|
attr_accessor :allow_decline
|
|
58
57
|
|
|
59
|
-
# In some cases a signer is not the right person to sign and may need to reassign their signing responsibilities to another person. This feature allows them to reassign the document to someone else.
|
|
58
|
+
# In some cases a signer is not the right person to sign and may need to reassign their signing responsibilities to another person. This feature allows them to reassign the document to someone else. Unavailable on 21 CFR Part 11 documents: omit it and reassignment stays off, while sending `true` returns a 422.
|
|
60
59
|
# @return [Boolean]
|
|
61
60
|
attr_accessor :allow_reassign
|
|
62
61
|
|
|
@@ -64,6 +63,10 @@ module SignWell
|
|
|
64
63
|
# @return [String]
|
|
65
64
|
attr_accessor :decline_redirect_url
|
|
66
65
|
|
|
66
|
+
# Conditional logic rules that show, hide, or require fields based on what a signer does to other fields. Every identifier is a field api_id. At most 10 rules per document or template.
|
|
67
|
+
# @return [Array<ConditionalRuleRequest>]
|
|
68
|
+
attr_accessor :conditional_rules
|
|
69
|
+
|
|
67
70
|
# Optional key-value data that can be associated with the document. If set, will be available every time the document data is returned.
|
|
68
71
|
# @return [Hash<String, String>]
|
|
69
72
|
attr_accessor :metadata
|
|
@@ -91,6 +94,7 @@ module SignWell
|
|
|
91
94
|
:'allow_decline' => :'allow_decline',
|
|
92
95
|
:'allow_reassign' => :'allow_reassign',
|
|
93
96
|
:'decline_redirect_url' => :'decline_redirect_url',
|
|
97
|
+
:'conditional_rules' => :'conditional_rules',
|
|
94
98
|
:'metadata' => :'metadata',
|
|
95
99
|
:'labels' => :'labels',
|
|
96
100
|
:'checkbox_groups' => :'checkbox_groups'
|
|
@@ -122,6 +126,7 @@ module SignWell
|
|
|
122
126
|
:'allow_decline' => :'Boolean',
|
|
123
127
|
:'allow_reassign' => :'Boolean',
|
|
124
128
|
:'decline_redirect_url' => :'String',
|
|
129
|
+
:'conditional_rules' => :'Array<ConditionalRuleRequest>',
|
|
125
130
|
:'metadata' => :'Hash<String, String>',
|
|
126
131
|
:'labels' => :'Array<LabelRequest>',
|
|
127
132
|
:'checkbox_groups' => :'Array<TemplateCheckboxGroupsInner>'
|
|
@@ -208,6 +213,12 @@ module SignWell
|
|
|
208
213
|
self.decline_redirect_url = attributes[:'decline_redirect_url']
|
|
209
214
|
end
|
|
210
215
|
|
|
216
|
+
if attributes.key?(:'conditional_rules')
|
|
217
|
+
if (value = attributes[:'conditional_rules']).is_a?(Array)
|
|
218
|
+
self.conditional_rules = value
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
211
222
|
if attributes.key?(:'metadata')
|
|
212
223
|
if (value = attributes[:'metadata']).is_a?(Hash)
|
|
213
224
|
self.metadata = value
|
|
@@ -279,6 +290,7 @@ module SignWell
|
|
|
279
290
|
allow_decline == o.allow_decline &&
|
|
280
291
|
allow_reassign == o.allow_reassign &&
|
|
281
292
|
decline_redirect_url == o.decline_redirect_url &&
|
|
293
|
+
conditional_rules == o.conditional_rules &&
|
|
282
294
|
metadata == o.metadata &&
|
|
283
295
|
labels == o.labels &&
|
|
284
296
|
checkbox_groups == o.checkbox_groups
|
|
@@ -293,7 +305,7 @@ module SignWell
|
|
|
293
305
|
# Calculates hash code according to all attributes.
|
|
294
306
|
# @return [Integer] Hash code
|
|
295
307
|
def hash
|
|
296
|
-
[name, subject, message, draft, expires_in, reminders, apply_signing_order, api_application_id, redirect_url, allow_decline, allow_reassign, decline_redirect_url, metadata, labels, checkbox_groups].hash
|
|
308
|
+
[name, subject, message, draft, expires_in, reminders, apply_signing_order, api_application_id, redirect_url, allow_decline, allow_reassign, decline_redirect_url, conditional_rules, metadata, labels, checkbox_groups].hash
|
|
297
309
|
end
|
|
298
310
|
|
|
299
311
|
# Builds the object from hash
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -41,7 +40,7 @@ module SignWell
|
|
|
41
40
|
begin
|
|
42
41
|
next if klass == :AnyType # "nullable: true"
|
|
43
42
|
typed_data = find_and_cast_into_type(klass, data)
|
|
44
|
-
return typed_data
|
|
43
|
+
return typed_data unless typed_data.nil?
|
|
45
44
|
rescue SchemaMismatchError
|
|
46
45
|
next
|
|
47
46
|
end
|
|
@@ -62,7 +61,7 @@ module SignWell
|
|
|
62
61
|
when 'Boolean'
|
|
63
62
|
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
64
63
|
when 'Float'
|
|
65
|
-
return data if data.instance_of?(Float)
|
|
64
|
+
return data if data.instance_of?(Float) || data.instance_of?(Integer)
|
|
66
65
|
when 'Integer'
|
|
67
66
|
return data if data.instance_of?(Integer)
|
|
68
67
|
when 'Time'
|