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
|
@@ -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,13 @@ module SignWell
|
|
|
40
39
|
# @return [Integer]
|
|
41
40
|
attr_accessor :send_email_delay
|
|
42
41
|
|
|
42
|
+
# How the recipient is notified: email (default), sms, or email_and_sms.
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :delivery_method
|
|
45
|
+
|
|
46
|
+
# @return [DocumentResponseRecipientsInnerSms]
|
|
47
|
+
attr_accessor :sms
|
|
48
|
+
|
|
43
49
|
# @return [Integer]
|
|
44
50
|
attr_accessor :signing_order
|
|
45
51
|
|
|
@@ -61,12 +67,37 @@ module SignWell
|
|
|
61
67
|
# @return [String]
|
|
62
68
|
attr_accessor :passcode
|
|
63
69
|
|
|
70
|
+
# @return [DocumentResponseRecipientsInnerPasscodeDelivery]
|
|
71
|
+
attr_accessor :passcode_delivery
|
|
72
|
+
|
|
64
73
|
# @return [String]
|
|
65
74
|
attr_accessor :status
|
|
66
75
|
|
|
67
76
|
# @return [String]
|
|
68
77
|
attr_accessor :placeholder_name
|
|
69
78
|
|
|
79
|
+
class EnumAttributeValidator
|
|
80
|
+
attr_reader :datatype
|
|
81
|
+
attr_reader :allowable_values
|
|
82
|
+
|
|
83
|
+
def initialize(datatype, allowable_values)
|
|
84
|
+
@allowable_values = allowable_values.map do |value|
|
|
85
|
+
case datatype.to_s
|
|
86
|
+
when /Integer/i
|
|
87
|
+
value.to_i
|
|
88
|
+
when /Float/i
|
|
89
|
+
value.to_f
|
|
90
|
+
else
|
|
91
|
+
value
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def valid?(value)
|
|
97
|
+
!value || allowable_values.include?(value)
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
70
101
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
71
102
|
def self.attribute_map
|
|
72
103
|
{
|
|
@@ -78,6 +109,8 @@ module SignWell
|
|
|
78
109
|
:'subject' => :'subject',
|
|
79
110
|
:'send_email' => :'send_email',
|
|
80
111
|
:'send_email_delay' => :'send_email_delay',
|
|
112
|
+
:'delivery_method' => :'delivery_method',
|
|
113
|
+
:'sms' => :'sms',
|
|
81
114
|
:'signing_order' => :'signing_order',
|
|
82
115
|
:'signing_url' => :'signing_url',
|
|
83
116
|
:'embedded_signing_url' => :'embedded_signing_url',
|
|
@@ -85,6 +118,7 @@ module SignWell
|
|
|
85
118
|
:'bounced_details' => :'bounced_details',
|
|
86
119
|
:'attachment_requests' => :'attachment_requests',
|
|
87
120
|
:'passcode' => :'passcode',
|
|
121
|
+
:'passcode_delivery' => :'passcode_delivery',
|
|
88
122
|
:'status' => :'status',
|
|
89
123
|
:'placeholder_name' => :'placeholder_name'
|
|
90
124
|
}
|
|
@@ -111,6 +145,8 @@ module SignWell
|
|
|
111
145
|
:'subject' => :'String',
|
|
112
146
|
:'send_email' => :'Boolean',
|
|
113
147
|
:'send_email_delay' => :'Integer',
|
|
148
|
+
:'delivery_method' => :'String',
|
|
149
|
+
:'sms' => :'DocumentResponseRecipientsInnerSms',
|
|
114
150
|
:'signing_order' => :'Integer',
|
|
115
151
|
:'signing_url' => :'String',
|
|
116
152
|
:'embedded_signing_url' => :'String',
|
|
@@ -118,6 +154,7 @@ module SignWell
|
|
|
118
154
|
:'bounced_details' => :'String',
|
|
119
155
|
:'attachment_requests' => :'Array<AttachmentRequestInfo>',
|
|
120
156
|
:'passcode' => :'String',
|
|
157
|
+
:'passcode_delivery' => :'DocumentResponseRecipientsInnerPasscodeDelivery',
|
|
121
158
|
:'status' => :'String',
|
|
122
159
|
:'placeholder_name' => :'String'
|
|
123
160
|
}
|
|
@@ -188,6 +225,14 @@ module SignWell
|
|
|
188
225
|
self.send_email_delay = attributes[:'send_email_delay']
|
|
189
226
|
end
|
|
190
227
|
|
|
228
|
+
if attributes.key?(:'delivery_method')
|
|
229
|
+
self.delivery_method = attributes[:'delivery_method']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'sms')
|
|
233
|
+
self.sms = attributes[:'sms']
|
|
234
|
+
end
|
|
235
|
+
|
|
191
236
|
if attributes.key?(:'signing_order')
|
|
192
237
|
self.signing_order = attributes[:'signing_order']
|
|
193
238
|
end
|
|
@@ -218,6 +263,10 @@ module SignWell
|
|
|
218
263
|
self.passcode = attributes[:'passcode']
|
|
219
264
|
end
|
|
220
265
|
|
|
266
|
+
if attributes.key?(:'passcode_delivery')
|
|
267
|
+
self.passcode_delivery = attributes[:'passcode_delivery']
|
|
268
|
+
end
|
|
269
|
+
|
|
221
270
|
if attributes.key?(:'status')
|
|
222
271
|
self.status = attributes[:'status']
|
|
223
272
|
end
|
|
@@ -245,6 +294,8 @@ module SignWell
|
|
|
245
294
|
def valid?
|
|
246
295
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
247
296
|
return false if @email.nil?
|
|
297
|
+
delivery_method_validator = EnumAttributeValidator.new('String', %w[email sms email_and_sms unknown_default_open_api])
|
|
298
|
+
return false unless delivery_method_validator.valid?(@delivery_method)
|
|
248
299
|
true
|
|
249
300
|
end
|
|
250
301
|
|
|
@@ -258,6 +309,20 @@ module SignWell
|
|
|
258
309
|
@email = email
|
|
259
310
|
end
|
|
260
311
|
|
|
312
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
313
|
+
# @param [Object] delivery_method Object to be assigned
|
|
314
|
+
def delivery_method=(delivery_method)
|
|
315
|
+
validator = EnumAttributeValidator.new('String', %w[email sms email_and_sms unknown_default_open_api])
|
|
316
|
+
unless validator.valid?(delivery_method)
|
|
317
|
+
if delivery_method.is_a?(String)
|
|
318
|
+
delivery_method = "unknown_default_open_api"
|
|
319
|
+
else
|
|
320
|
+
fail ArgumentError, "invalid value for \"delivery_method\", must be one of #{validator.allowable_values}."
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
@delivery_method = delivery_method
|
|
324
|
+
end
|
|
325
|
+
|
|
261
326
|
# Checks equality by comparing each attribute.
|
|
262
327
|
# @param [Object] other Object to be compared
|
|
263
328
|
def ==(o)
|
|
@@ -271,6 +336,8 @@ module SignWell
|
|
|
271
336
|
subject == o.subject &&
|
|
272
337
|
send_email == o.send_email &&
|
|
273
338
|
send_email_delay == o.send_email_delay &&
|
|
339
|
+
delivery_method == o.delivery_method &&
|
|
340
|
+
sms == o.sms &&
|
|
274
341
|
signing_order == o.signing_order &&
|
|
275
342
|
signing_url == o.signing_url &&
|
|
276
343
|
embedded_signing_url == o.embedded_signing_url &&
|
|
@@ -278,6 +345,7 @@ module SignWell
|
|
|
278
345
|
bounced_details == o.bounced_details &&
|
|
279
346
|
attachment_requests == o.attachment_requests &&
|
|
280
347
|
passcode == o.passcode &&
|
|
348
|
+
passcode_delivery == o.passcode_delivery &&
|
|
281
349
|
status == o.status &&
|
|
282
350
|
placeholder_name == o.placeholder_name
|
|
283
351
|
end
|
|
@@ -291,7 +359,7 @@ module SignWell
|
|
|
291
359
|
# Calculates hash code according to all attributes.
|
|
292
360
|
# @return [Integer] Hash code
|
|
293
361
|
def hash
|
|
294
|
-
[id, name, email, role, message, subject, send_email, send_email_delay, signing_order, signing_url, embedded_signing_url, bounced, bounced_details, attachment_requests, passcode, status, placeholder_name].hash
|
|
362
|
+
[id, name, email, role, message, subject, send_email, send_email_delay, delivery_method, sms, signing_order, signing_url, embedded_signing_url, bounced, bounced_details, attachment_requests, passcode, passcode_delivery, status, placeholder_name].hash
|
|
295
363
|
end
|
|
296
364
|
|
|
297
365
|
# 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'
|
|
@@ -20,6 +19,10 @@ module SignWell
|
|
|
20
19
|
# @return [Boolean]
|
|
21
20
|
attr_accessor :test_mode
|
|
22
21
|
|
|
22
|
+
# Only applies when `test_mode` is `true`. When `true`, and the document has an SMS-only recipient, sends the document owner a test-mode preview email (with a masked phone number) instead of the regular SMS sender-copy email. No SMS is sent and no credits are used, in test mode or otherwise. Defaults to `false`.
|
|
23
|
+
# @return [Boolean]
|
|
24
|
+
attr_accessor :send_sms_test_preview_email
|
|
25
|
+
|
|
23
26
|
# Document files can be uploaded by specifying a file URL or base64 string. Either `file_url` or `file_base64` must be present (not both). Valid file types are: .pdf, .doc, .docx, .pages, .ppt, .pptx, .key, .xls, .xlsx, .numbers, .jpg, .jpeg, .png, .tiff, .tif, .webp, .html, and .htm
|
|
24
27
|
# @return [Array<FilesInner>]
|
|
25
28
|
attr_accessor :files
|
|
@@ -28,11 +31,11 @@ module SignWell
|
|
|
28
31
|
# @return [String]
|
|
29
32
|
attr_accessor :name
|
|
30
33
|
|
|
31
|
-
# 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).
|
|
34
|
+
# 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.
|
|
32
35
|
# @return [String]
|
|
33
36
|
attr_accessor :subject
|
|
34
37
|
|
|
35
|
-
# 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).
|
|
38
|
+
# 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.
|
|
36
39
|
# @return [String]
|
|
37
40
|
attr_accessor :message
|
|
38
41
|
|
|
@@ -44,7 +47,7 @@ module SignWell
|
|
|
44
47
|
# @return [Boolean]
|
|
45
48
|
attr_accessor :draft
|
|
46
49
|
|
|
47
|
-
# When set to true the document will enter self-sign mode, which allows the document creator to sign and complete a document without any field setup. Must use the embedded_edit_url in the response and (if embedding) the embedded requesting workflow.
|
|
50
|
+
# When set to true the document will enter self-sign mode, which allows the document creator to sign and complete a document without any field setup. Must use the embedded_edit_url in the response and (if embedding) the embedded requesting workflow. Unavailable on 21 CFR Part 11 documents, which require every signature to come from an authenticated signer: sending `true` returns a 422.
|
|
48
51
|
# @return [Boolean]
|
|
49
52
|
attr_accessor :self_sign
|
|
50
53
|
|
|
@@ -76,6 +79,9 @@ module SignWell
|
|
|
76
79
|
# @return [Boolean]
|
|
77
80
|
attr_accessor :embedded_signing_notifications
|
|
78
81
|
|
|
82
|
+
# @return [EmbeddedRequest]
|
|
83
|
+
attr_accessor :embedded
|
|
84
|
+
|
|
79
85
|
# An alternative way (if you can’t use the recommended way) of placing fields in specific locations of your document by using special text tags. Useful when changing the content of your files changes the location of fields. See API documentation for “Text Tags” for details. Defaults to false.
|
|
80
86
|
# @return [Boolean]
|
|
81
87
|
attr_accessor :text_tags
|
|
@@ -96,7 +102,7 @@ module SignWell
|
|
|
96
102
|
# @return [Boolean]
|
|
97
103
|
attr_accessor :allow_decline
|
|
98
104
|
|
|
99
|
-
# 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.
|
|
105
|
+
# 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.
|
|
100
106
|
# @return [Boolean]
|
|
101
107
|
attr_accessor :allow_reassign
|
|
102
108
|
|
|
@@ -108,6 +114,10 @@ module SignWell
|
|
|
108
114
|
# @return [String]
|
|
109
115
|
attr_accessor :language
|
|
110
116
|
|
|
117
|
+
# 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.
|
|
118
|
+
# @return [Array<ConditionalRuleRequest>]
|
|
119
|
+
attr_accessor :conditional_rules
|
|
120
|
+
|
|
111
121
|
# Optional key-value data that can be associated with the document. If set, will be available every time the document data is returned.
|
|
112
122
|
# @return [Hash<String, String>]
|
|
113
123
|
attr_accessor :metadata
|
|
@@ -136,6 +146,7 @@ module SignWell
|
|
|
136
146
|
def self.attribute_map
|
|
137
147
|
{
|
|
138
148
|
:'test_mode' => :'test_mode',
|
|
149
|
+
:'send_sms_test_preview_email' => :'send_sms_test_preview_email',
|
|
139
150
|
:'files' => :'files',
|
|
140
151
|
:'name' => :'name',
|
|
141
152
|
:'subject' => :'subject',
|
|
@@ -150,6 +161,7 @@ module SignWell
|
|
|
150
161
|
:'api_application_id' => :'api_application_id',
|
|
151
162
|
:'embedded_signing' => :'embedded_signing',
|
|
152
163
|
:'embedded_signing_notifications' => :'embedded_signing_notifications',
|
|
164
|
+
:'embedded' => :'embedded',
|
|
153
165
|
:'text_tags' => :'text_tags',
|
|
154
166
|
:'custom_requester_name' => :'custom_requester_name',
|
|
155
167
|
:'custom_requester_email' => :'custom_requester_email',
|
|
@@ -158,6 +170,7 @@ module SignWell
|
|
|
158
170
|
:'allow_reassign' => :'allow_reassign',
|
|
159
171
|
:'decline_redirect_url' => :'decline_redirect_url',
|
|
160
172
|
:'language' => :'language',
|
|
173
|
+
:'conditional_rules' => :'conditional_rules',
|
|
161
174
|
:'metadata' => :'metadata',
|
|
162
175
|
:'fields' => :'fields',
|
|
163
176
|
:'attachment_requests' => :'attachment_requests',
|
|
@@ -181,6 +194,7 @@ module SignWell
|
|
|
181
194
|
def self.openapi_types
|
|
182
195
|
{
|
|
183
196
|
:'test_mode' => :'Boolean',
|
|
197
|
+
:'send_sms_test_preview_email' => :'Boolean',
|
|
184
198
|
:'files' => :'Array<FilesInner>',
|
|
185
199
|
:'name' => :'String',
|
|
186
200
|
:'subject' => :'String',
|
|
@@ -195,6 +209,7 @@ module SignWell
|
|
|
195
209
|
:'api_application_id' => :'String',
|
|
196
210
|
:'embedded_signing' => :'Boolean',
|
|
197
211
|
:'embedded_signing_notifications' => :'Boolean',
|
|
212
|
+
:'embedded' => :'EmbeddedRequest',
|
|
198
213
|
:'text_tags' => :'Boolean',
|
|
199
214
|
:'custom_requester_name' => :'String',
|
|
200
215
|
:'custom_requester_email' => :'String',
|
|
@@ -203,6 +218,7 @@ module SignWell
|
|
|
203
218
|
:'allow_reassign' => :'Boolean',
|
|
204
219
|
:'decline_redirect_url' => :'String',
|
|
205
220
|
:'language' => :'String',
|
|
221
|
+
:'conditional_rules' => :'Array<ConditionalRuleRequest>',
|
|
206
222
|
:'metadata' => :'Hash<String, String>',
|
|
207
223
|
:'fields' => :'Array<Array<FieldsInnerInner>>',
|
|
208
224
|
:'attachment_requests' => :'Array<AttachmentRequestsInner>',
|
|
@@ -240,6 +256,12 @@ module SignWell
|
|
|
240
256
|
self.test_mode = false
|
|
241
257
|
end
|
|
242
258
|
|
|
259
|
+
if attributes.key?(:'send_sms_test_preview_email')
|
|
260
|
+
self.send_sms_test_preview_email = attributes[:'send_sms_test_preview_email']
|
|
261
|
+
else
|
|
262
|
+
self.send_sms_test_preview_email = false
|
|
263
|
+
end
|
|
264
|
+
|
|
243
265
|
if attributes.key?(:'files')
|
|
244
266
|
if (value = attributes[:'files']).is_a?(Array)
|
|
245
267
|
self.files = value
|
|
@@ -318,6 +340,10 @@ module SignWell
|
|
|
318
340
|
self.embedded_signing_notifications = false
|
|
319
341
|
end
|
|
320
342
|
|
|
343
|
+
if attributes.key?(:'embedded')
|
|
344
|
+
self.embedded = attributes[:'embedded']
|
|
345
|
+
end
|
|
346
|
+
|
|
321
347
|
if attributes.key?(:'text_tags')
|
|
322
348
|
self.text_tags = attributes[:'text_tags']
|
|
323
349
|
else
|
|
@@ -356,6 +382,12 @@ module SignWell
|
|
|
356
382
|
self.language = attributes[:'language']
|
|
357
383
|
end
|
|
358
384
|
|
|
385
|
+
if attributes.key?(:'conditional_rules')
|
|
386
|
+
if (value = attributes[:'conditional_rules']).is_a?(Array)
|
|
387
|
+
self.conditional_rules = value
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
|
|
359
391
|
if attributes.key?(:'metadata')
|
|
360
392
|
if (value = attributes[:'metadata']).is_a?(Hash)
|
|
361
393
|
self.metadata = value
|
|
@@ -464,6 +496,7 @@ module SignWell
|
|
|
464
496
|
return true if self.equal?(o)
|
|
465
497
|
self.class == o.class &&
|
|
466
498
|
test_mode == o.test_mode &&
|
|
499
|
+
send_sms_test_preview_email == o.send_sms_test_preview_email &&
|
|
467
500
|
files == o.files &&
|
|
468
501
|
name == o.name &&
|
|
469
502
|
subject == o.subject &&
|
|
@@ -478,6 +511,7 @@ module SignWell
|
|
|
478
511
|
api_application_id == o.api_application_id &&
|
|
479
512
|
embedded_signing == o.embedded_signing &&
|
|
480
513
|
embedded_signing_notifications == o.embedded_signing_notifications &&
|
|
514
|
+
embedded == o.embedded &&
|
|
481
515
|
text_tags == o.text_tags &&
|
|
482
516
|
custom_requester_name == o.custom_requester_name &&
|
|
483
517
|
custom_requester_email == o.custom_requester_email &&
|
|
@@ -486,6 +520,7 @@ module SignWell
|
|
|
486
520
|
allow_reassign == o.allow_reassign &&
|
|
487
521
|
decline_redirect_url == o.decline_redirect_url &&
|
|
488
522
|
language == o.language &&
|
|
523
|
+
conditional_rules == o.conditional_rules &&
|
|
489
524
|
metadata == o.metadata &&
|
|
490
525
|
fields == o.fields &&
|
|
491
526
|
attachment_requests == o.attachment_requests &&
|
|
@@ -503,7 +538,7 @@ module SignWell
|
|
|
503
538
|
# Calculates hash code according to all attributes.
|
|
504
539
|
# @return [Integer] Hash code
|
|
505
540
|
def hash
|
|
506
|
-
[test_mode, files, name, subject, message, recipients, draft, self_sign, with_signature_page, expires_in, reminders, apply_signing_order, api_application_id, embedded_signing, embedded_signing_notifications, text_tags, custom_requester_name, custom_requester_email, redirect_url, allow_decline, allow_reassign, decline_redirect_url, language, metadata, fields, attachment_requests, copied_contacts, labels, checkbox_groups].hash
|
|
541
|
+
[test_mode, send_sms_test_preview_email, files, name, subject, message, recipients, draft, self_sign, with_signature_page, expires_in, reminders, apply_signing_order, api_application_id, embedded_signing, embedded_signing_notifications, embedded, text_tags, custom_requester_name, custom_requester_email, redirect_url, allow_decline, allow_reassign, decline_redirect_url, language, conditional_rules, metadata, fields, attachment_requests, copied_contacts, labels, checkbox_groups].hash
|
|
507
542
|
end
|
|
508
543
|
|
|
509
544
|
# 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'
|
|
@@ -16,6 +15,14 @@ require 'time'
|
|
|
16
15
|
module SignWell
|
|
17
16
|
module Models
|
|
18
17
|
class DocumentResponse
|
|
18
|
+
# Whether 21 CFR Part 11 controls apply to this document. Read-only: the value is taken from the workspace setting when the document is created and never changes afterwards.
|
|
19
|
+
# @return [Boolean]
|
|
20
|
+
attr_accessor :cfr_part11
|
|
21
|
+
|
|
22
|
+
# The signing mode of a 21 CFR Part 11 document: streamlined (one final authentication) or per_signature (authentication at every signature and initials field). Null when Part 11 does not apply.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :cfr_part11_signing_mode
|
|
25
|
+
|
|
19
26
|
# @return [Boolean]
|
|
20
27
|
attr_accessor :test_mode
|
|
21
28
|
|
|
@@ -65,6 +72,9 @@ module SignWell
|
|
|
65
72
|
# @return [Boolean]
|
|
66
73
|
attr_accessor :archived
|
|
67
74
|
|
|
75
|
+
# @return [EmbeddedBranding]
|
|
76
|
+
attr_accessor :embedded
|
|
77
|
+
|
|
68
78
|
# @return [Boolean]
|
|
69
79
|
attr_accessor :embedded_signing
|
|
70
80
|
|
|
@@ -128,9 +138,39 @@ module SignWell
|
|
|
128
138
|
# @return [Array<CheckboxGroupInfo>]
|
|
129
139
|
attr_accessor :checkbox_groups
|
|
130
140
|
|
|
141
|
+
# @return [Array<ConditionalRuleInfo>]
|
|
142
|
+
attr_accessor :conditional_rules
|
|
143
|
+
|
|
144
|
+
# @return [Array<ConditionalLogicDecisionInfo>]
|
|
145
|
+
attr_accessor :conditional_logic_decisions
|
|
146
|
+
|
|
147
|
+
class EnumAttributeValidator
|
|
148
|
+
attr_reader :datatype
|
|
149
|
+
attr_reader :allowable_values
|
|
150
|
+
|
|
151
|
+
def initialize(datatype, allowable_values)
|
|
152
|
+
@allowable_values = allowable_values.map do |value|
|
|
153
|
+
case datatype.to_s
|
|
154
|
+
when /Integer/i
|
|
155
|
+
value.to_i
|
|
156
|
+
when /Float/i
|
|
157
|
+
value.to_f
|
|
158
|
+
else
|
|
159
|
+
value
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def valid?(value)
|
|
165
|
+
!value || allowable_values.include?(value)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
131
169
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
132
170
|
def self.attribute_map
|
|
133
171
|
{
|
|
172
|
+
:'cfr_part11' => :'cfr_part11',
|
|
173
|
+
:'cfr_part11_signing_mode' => :'cfr_part11_signing_mode',
|
|
134
174
|
:'test_mode' => :'test_mode',
|
|
135
175
|
:'id' => :'id',
|
|
136
176
|
:'api_application_id' => :'api_application_id',
|
|
@@ -147,6 +187,7 @@ module SignWell
|
|
|
147
187
|
:'status' => :'status',
|
|
148
188
|
:'reminders' => :'reminders',
|
|
149
189
|
:'archived' => :'archived',
|
|
190
|
+
:'embedded' => :'embedded',
|
|
150
191
|
:'embedded_signing' => :'embedded_signing',
|
|
151
192
|
:'embedded_edit_url' => :'embedded_edit_url',
|
|
152
193
|
:'embedded_preview_url' => :'embedded_preview_url',
|
|
@@ -167,7 +208,9 @@ module SignWell
|
|
|
167
208
|
:'allow_decline' => :'allow_decline',
|
|
168
209
|
:'allow_reassign' => :'allow_reassign',
|
|
169
210
|
:'labels' => :'labels',
|
|
170
|
-
:'checkbox_groups' => :'checkbox_groups'
|
|
211
|
+
:'checkbox_groups' => :'checkbox_groups',
|
|
212
|
+
:'conditional_rules' => :'conditional_rules',
|
|
213
|
+
:'conditional_logic_decisions' => :'conditional_logic_decisions'
|
|
171
214
|
}
|
|
172
215
|
end
|
|
173
216
|
|
|
@@ -184,6 +227,8 @@ module SignWell
|
|
|
184
227
|
# Attribute type mapping.
|
|
185
228
|
def self.openapi_types
|
|
186
229
|
{
|
|
230
|
+
:'cfr_part11' => :'Boolean',
|
|
231
|
+
:'cfr_part11_signing_mode' => :'String',
|
|
187
232
|
:'test_mode' => :'Boolean',
|
|
188
233
|
:'id' => :'String',
|
|
189
234
|
:'api_application_id' => :'String',
|
|
@@ -200,6 +245,7 @@ module SignWell
|
|
|
200
245
|
:'status' => :'String',
|
|
201
246
|
:'reminders' => :'Boolean',
|
|
202
247
|
:'archived' => :'Boolean',
|
|
248
|
+
:'embedded' => :'EmbeddedBranding',
|
|
203
249
|
:'embedded_signing' => :'Boolean',
|
|
204
250
|
:'embedded_edit_url' => :'String',
|
|
205
251
|
:'embedded_preview_url' => :'String',
|
|
@@ -220,17 +266,21 @@ module SignWell
|
|
|
220
266
|
:'allow_decline' => :'Boolean',
|
|
221
267
|
:'allow_reassign' => :'Boolean',
|
|
222
268
|
:'labels' => :'Array<LabelInfo>',
|
|
223
|
-
:'checkbox_groups' => :'Array<CheckboxGroupInfo>'
|
|
269
|
+
:'checkbox_groups' => :'Array<CheckboxGroupInfo>',
|
|
270
|
+
:'conditional_rules' => :'Array<ConditionalRuleInfo>',
|
|
271
|
+
:'conditional_logic_decisions' => :'Array<ConditionalLogicDecisionInfo>'
|
|
224
272
|
}
|
|
225
273
|
end
|
|
226
274
|
|
|
227
275
|
# List of attributes with nullable: true
|
|
228
276
|
def self.openapi_nullable
|
|
229
277
|
Set.new([
|
|
278
|
+
:'cfr_part11_signing_mode',
|
|
230
279
|
:'api_application_id',
|
|
231
280
|
:'custom_requester_name',
|
|
232
281
|
:'custom_requester_email',
|
|
233
282
|
:'metadata',
|
|
283
|
+
:'embedded',
|
|
234
284
|
:'embedded_edit_url',
|
|
235
285
|
:'embedded_preview_url',
|
|
236
286
|
:'redirect_url',
|
|
@@ -259,6 +309,14 @@ module SignWell
|
|
|
259
309
|
h[k.to_sym] = v
|
|
260
310
|
}
|
|
261
311
|
|
|
312
|
+
if attributes.key?(:'cfr_part11')
|
|
313
|
+
self.cfr_part11 = attributes[:'cfr_part11']
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if attributes.key?(:'cfr_part11_signing_mode')
|
|
317
|
+
self.cfr_part11_signing_mode = attributes[:'cfr_part11_signing_mode']
|
|
318
|
+
end
|
|
319
|
+
|
|
262
320
|
if attributes.key?(:'test_mode')
|
|
263
321
|
self.test_mode = attributes[:'test_mode']
|
|
264
322
|
else
|
|
@@ -331,6 +389,10 @@ module SignWell
|
|
|
331
389
|
self.archived = attributes[:'archived']
|
|
332
390
|
end
|
|
333
391
|
|
|
392
|
+
if attributes.key?(:'embedded')
|
|
393
|
+
self.embedded = attributes[:'embedded']
|
|
394
|
+
end
|
|
395
|
+
|
|
334
396
|
if attributes.key?(:'embedded_signing')
|
|
335
397
|
self.embedded_signing = attributes[:'embedded_signing']
|
|
336
398
|
end
|
|
@@ -428,6 +490,18 @@ module SignWell
|
|
|
428
490
|
self.checkbox_groups = value
|
|
429
491
|
end
|
|
430
492
|
end
|
|
493
|
+
|
|
494
|
+
if attributes.key?(:'conditional_rules')
|
|
495
|
+
if (value = attributes[:'conditional_rules']).is_a?(Array)
|
|
496
|
+
self.conditional_rules = value
|
|
497
|
+
end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
if attributes.key?(:'conditional_logic_decisions')
|
|
501
|
+
if (value = attributes[:'conditional_logic_decisions']).is_a?(Array)
|
|
502
|
+
self.conditional_logic_decisions = value
|
|
503
|
+
end
|
|
504
|
+
end
|
|
431
505
|
end
|
|
432
506
|
|
|
433
507
|
|
|
@@ -451,11 +525,27 @@ module SignWell
|
|
|
451
525
|
# @return true if the model is valid
|
|
452
526
|
def valid?
|
|
453
527
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
528
|
+
cfr_part11_signing_mode_validator = EnumAttributeValidator.new('String', %w[streamlined per_signature unknown_default_open_api])
|
|
529
|
+
return false unless cfr_part11_signing_mode_validator.valid?(@cfr_part11_signing_mode)
|
|
454
530
|
return false if @test_mode.nil?
|
|
455
531
|
return false if @id.nil?
|
|
456
532
|
true
|
|
457
533
|
end
|
|
458
534
|
|
|
535
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
536
|
+
# @param [Object] cfr_part11_signing_mode Object to be assigned
|
|
537
|
+
def cfr_part11_signing_mode=(cfr_part11_signing_mode)
|
|
538
|
+
validator = EnumAttributeValidator.new('String', %w[streamlined per_signature unknown_default_open_api])
|
|
539
|
+
unless validator.valid?(cfr_part11_signing_mode)
|
|
540
|
+
if cfr_part11_signing_mode.is_a?(String)
|
|
541
|
+
cfr_part11_signing_mode = "unknown_default_open_api"
|
|
542
|
+
else
|
|
543
|
+
fail ArgumentError, "invalid value for \"cfr_part11_signing_mode\", must be one of #{validator.allowable_values}."
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
@cfr_part11_signing_mode = cfr_part11_signing_mode
|
|
547
|
+
end
|
|
548
|
+
|
|
459
549
|
# Custom attribute writer method with validation
|
|
460
550
|
# @param [Object] test_mode Value to be assigned
|
|
461
551
|
def test_mode=(test_mode)
|
|
@@ -481,6 +571,8 @@ module SignWell
|
|
|
481
571
|
def ==(o)
|
|
482
572
|
return true if self.equal?(o)
|
|
483
573
|
self.class == o.class &&
|
|
574
|
+
cfr_part11 == o.cfr_part11 &&
|
|
575
|
+
cfr_part11_signing_mode == o.cfr_part11_signing_mode &&
|
|
484
576
|
test_mode == o.test_mode &&
|
|
485
577
|
id == o.id &&
|
|
486
578
|
api_application_id == o.api_application_id &&
|
|
@@ -497,6 +589,7 @@ module SignWell
|
|
|
497
589
|
status == o.status &&
|
|
498
590
|
reminders == o.reminders &&
|
|
499
591
|
archived == o.archived &&
|
|
592
|
+
embedded == o.embedded &&
|
|
500
593
|
embedded_signing == o.embedded_signing &&
|
|
501
594
|
embedded_edit_url == o.embedded_edit_url &&
|
|
502
595
|
embedded_preview_url == o.embedded_preview_url &&
|
|
@@ -517,7 +610,9 @@ module SignWell
|
|
|
517
610
|
allow_decline == o.allow_decline &&
|
|
518
611
|
allow_reassign == o.allow_reassign &&
|
|
519
612
|
labels == o.labels &&
|
|
520
|
-
checkbox_groups == o.checkbox_groups
|
|
613
|
+
checkbox_groups == o.checkbox_groups &&
|
|
614
|
+
conditional_rules == o.conditional_rules &&
|
|
615
|
+
conditional_logic_decisions == o.conditional_logic_decisions
|
|
521
616
|
end
|
|
522
617
|
|
|
523
618
|
# @see the `==` method
|
|
@@ -529,7 +624,7 @@ module SignWell
|
|
|
529
624
|
# Calculates hash code according to all attributes.
|
|
530
625
|
# @return [Integer] Hash code
|
|
531
626
|
def hash
|
|
532
|
-
[test_mode, id, api_application_id, requester_email_address, custom_requester_name, custom_requester_email, name, subject, message, metadata, created_at, updated_at, recipients, status, reminders, archived, embedded_signing, embedded_edit_url, embedded_preview_url, apply_signing_order, redirect_url, decline_redirect_url, language, expires_in, decline_message, error_message, template_id, template_ids, embedded_signing_notifications, attachment_requests, files, copied_contacts, fields, allow_decline, allow_reassign, labels, checkbox_groups].hash
|
|
627
|
+
[cfr_part11, cfr_part11_signing_mode, test_mode, id, api_application_id, requester_email_address, custom_requester_name, custom_requester_email, name, subject, message, metadata, created_at, updated_at, recipients, status, reminders, archived, embedded, embedded_signing, embedded_edit_url, embedded_preview_url, apply_signing_order, redirect_url, decline_redirect_url, language, expires_in, decline_message, error_message, template_id, template_ids, embedded_signing_notifications, attachment_requests, files, copied_contacts, fields, allow_decline, allow_reassign, labels, checkbox_groups, conditional_rules, conditional_logic_decisions].hash
|
|
533
628
|
end
|
|
534
629
|
|
|
535
630
|
# 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'
|