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,271 @@
|
|
|
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
|
+
# Passcode delivery settings. When enabled, the system delivers the passcode to the signer via email. Always on for 21 CFR Part 11 documents and cannot be disabled.
|
|
18
|
+
class RecipientsInnerPasscodeDelivery
|
|
19
|
+
# Enable passcode delivery for this recipient. Cannot be set to `false` on a 21 CFR Part 11 document: it returns a 422.
|
|
20
|
+
# @return [Boolean]
|
|
21
|
+
attr_accessor :enabled
|
|
22
|
+
|
|
23
|
+
# Delivery methods for the passcode. Currently supports: email. Defaults to [\"email\"] when omitted.
|
|
24
|
+
# @return [Array<String>]
|
|
25
|
+
attr_accessor :methods
|
|
26
|
+
|
|
27
|
+
# When enabled, the passcode is cleared after successful authentication. If passcode_delivery is also enabled, a new passcode is auto-generated on the next send request. Otherwise the recipient will no longer need a passcode.
|
|
28
|
+
# @return [Boolean]
|
|
29
|
+
attr_accessor :expire_after_access
|
|
30
|
+
|
|
31
|
+
class EnumAttributeValidator
|
|
32
|
+
attr_reader :datatype
|
|
33
|
+
attr_reader :allowable_values
|
|
34
|
+
|
|
35
|
+
def initialize(datatype, allowable_values)
|
|
36
|
+
@allowable_values = allowable_values.map do |value|
|
|
37
|
+
case datatype.to_s
|
|
38
|
+
when /Integer/i
|
|
39
|
+
value.to_i
|
|
40
|
+
when /Float/i
|
|
41
|
+
value.to_f
|
|
42
|
+
else
|
|
43
|
+
value
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def valid?(value)
|
|
49
|
+
!value || allowable_values.include?(value)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
|
+
def self.attribute_map
|
|
55
|
+
{
|
|
56
|
+
:'enabled' => :'enabled',
|
|
57
|
+
:'methods' => :'methods',
|
|
58
|
+
:'expire_after_access' => :'expire_after_access'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns attribute mapping this model knows about
|
|
63
|
+
def self.acceptable_attribute_map
|
|
64
|
+
attribute_map
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Returns all the JSON keys this model knows about
|
|
68
|
+
def self.acceptable_attributes
|
|
69
|
+
acceptable_attribute_map.values
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute type mapping.
|
|
73
|
+
def self.openapi_types
|
|
74
|
+
{
|
|
75
|
+
:'enabled' => :'Boolean',
|
|
76
|
+
:'methods' => :'Array<String>',
|
|
77
|
+
:'expire_after_access' => :'Boolean'
|
|
78
|
+
}
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# List of attributes with nullable: true
|
|
82
|
+
def self.openapi_nullable
|
|
83
|
+
Set.new([
|
|
84
|
+
])
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Initializes the object
|
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
89
|
+
def initialize(attributes = {})
|
|
90
|
+
if (!attributes.is_a?(Hash))
|
|
91
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SignWell::RecipientsInnerPasscodeDelivery` initialize method"
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
96
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
97
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
98
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SignWell::RecipientsInnerPasscodeDelivery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
99
|
+
end
|
|
100
|
+
h[k.to_sym] = v
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'enabled')
|
|
104
|
+
self.enabled = attributes[:'enabled']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'methods')
|
|
108
|
+
if (value = attributes[:'methods']).is_a?(Array)
|
|
109
|
+
self.methods = value
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'expire_after_access')
|
|
114
|
+
self.expire_after_access = attributes[:'expire_after_access']
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
120
|
+
# @return Array for valid properties with the reasons
|
|
121
|
+
def list_invalid_properties
|
|
122
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
|
+
invalid_properties = Array.new
|
|
124
|
+
invalid_properties
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Check to see if the all the properties in the model are valid
|
|
128
|
+
# @return true if the model is valid
|
|
129
|
+
def valid?
|
|
130
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
|
+
true
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Checks equality by comparing each attribute.
|
|
135
|
+
# @param [Object] other Object to be compared
|
|
136
|
+
def ==(o)
|
|
137
|
+
return true if self.equal?(o)
|
|
138
|
+
self.class == o.class &&
|
|
139
|
+
enabled == o.enabled &&
|
|
140
|
+
methods == o.methods &&
|
|
141
|
+
expire_after_access == o.expire_after_access
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# @see the `==` method
|
|
145
|
+
# @param [Object] other Object to be compared
|
|
146
|
+
def eql?(o)
|
|
147
|
+
self == o
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Calculates hash code according to all attributes.
|
|
151
|
+
# @return [Integer] Hash code
|
|
152
|
+
def hash
|
|
153
|
+
[enabled, methods, expire_after_access].hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Builds the object from hash
|
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
158
|
+
# @return [Object] Returns the model itself
|
|
159
|
+
def self.build_from_hash(attributes)
|
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
162
|
+
transformed_hash = {}
|
|
163
|
+
openapi_types.each_pair do |key, type|
|
|
164
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
165
|
+
transformed_hash["#{key}"] = nil
|
|
166
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
167
|
+
# check to ensure the input is an array given that the attribute
|
|
168
|
+
# is documented as an array but the input is not
|
|
169
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
170
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
171
|
+
end
|
|
172
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
173
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
new(transformed_hash)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Deserializes the data based on type
|
|
180
|
+
# @param [String] type Data type
|
|
181
|
+
# @param [String] value Value to be deserialized
|
|
182
|
+
# @return [Object] Deserialized data
|
|
183
|
+
def self._deserialize(type, value)
|
|
184
|
+
case type.to_sym
|
|
185
|
+
when :Time
|
|
186
|
+
Time.parse(value)
|
|
187
|
+
when :Date
|
|
188
|
+
Date.parse(value)
|
|
189
|
+
when :String
|
|
190
|
+
value.to_s
|
|
191
|
+
when :Integer
|
|
192
|
+
value.to_i
|
|
193
|
+
when :Float
|
|
194
|
+
value.to_f
|
|
195
|
+
when :Boolean
|
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
197
|
+
true
|
|
198
|
+
else
|
|
199
|
+
false
|
|
200
|
+
end
|
|
201
|
+
when :Object
|
|
202
|
+
# generic object (usually a Hash), return directly
|
|
203
|
+
value
|
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each do |k, v|
|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
else # model
|
|
216
|
+
# models (e.g. Pet) or oneOf
|
|
217
|
+
klass = SignWell::Models.const_get(type)
|
|
218
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Returns the string representation of the object
|
|
223
|
+
# @return [String] String presentation of the object
|
|
224
|
+
def to_s
|
|
225
|
+
to_hash.to_s
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
|
230
|
+
def to_body
|
|
231
|
+
to_hash
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Returns the object in the form of hash
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
def to_hash
|
|
237
|
+
normalize_for_serialization! if respond_to?(:normalize_for_serialization!, true)
|
|
238
|
+
|
|
239
|
+
hash = {}
|
|
240
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
241
|
+
value = self.send(attr)
|
|
242
|
+
if value.nil?
|
|
243
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
244
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
hash[param] = _to_hash(value)
|
|
248
|
+
end
|
|
249
|
+
hash
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Outputs non-array value in the form of hash
|
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
254
|
+
# @param [Object] value Any valid value
|
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
|
256
|
+
def _to_hash(value)
|
|
257
|
+
if value.is_a?(Array)
|
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
|
259
|
+
elsif value.is_a?(Hash)
|
|
260
|
+
{}.tap do |hash|
|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
262
|
+
end
|
|
263
|
+
elsif value.respond_to? :to_hash
|
|
264
|
+
value.to_hash
|
|
265
|
+
else
|
|
266
|
+
value
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
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'
|
|
@@ -20,7 +19,7 @@ module SignWell
|
|
|
20
19
|
# @return [String]
|
|
21
20
|
attr_accessor :name
|
|
22
21
|
|
|
23
|
-
# Recipient's email address.
|
|
22
|
+
# Recipient's email address. Used to match the recipient to remind; not required for SMS-only recipients, who can be identified by name instead.
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :email
|
|
26
25
|
|
|
@@ -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,7 +15,7 @@ require 'time'
|
|
|
16
15
|
module SignWell
|
|
17
16
|
module Models
|
|
18
17
|
class SendReminderRequest
|
|
19
|
-
# Optional list
|
|
18
|
+
# Optional list of recipients within the document to remind. If none are specified, all recipients that have not signed yet are reminded. Each recipient is reminded through their own delivery method: email-only recipients get a reminder email, SMS-only recipients get a reminder text, and email_and_sms recipients get both. If the workspace has insufficient SMS credit, only the SMS reminder is skipped and the sender is notified once; the email reminder (if applicable) still goes out.
|
|
20
19
|
# @return [Array<ReminderRecipientsInner>]
|
|
21
20
|
attr_accessor :recipients
|
|
22
21
|
|
|
@@ -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'
|
|
@@ -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'
|
|
@@ -42,7 +41,7 @@ module SignWell
|
|
|
42
41
|
begin
|
|
43
42
|
next if klass == :AnyType # "nullable: true"
|
|
44
43
|
typed_data = find_and_cast_into_type(klass, data)
|
|
45
|
-
return typed_data
|
|
44
|
+
return typed_data unless typed_data.nil?
|
|
46
45
|
rescue SchemaMismatchError
|
|
47
46
|
next
|
|
48
47
|
end
|
|
@@ -63,7 +62,7 @@ module SignWell
|
|
|
63
62
|
when 'Boolean'
|
|
64
63
|
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
65
64
|
when 'Float'
|
|
66
|
-
return data if data.instance_of?(Float)
|
|
65
|
+
return data if data.instance_of?(Float) || data.instance_of?(Integer)
|
|
67
66
|
when 'Integer'
|
|
68
67
|
return data if data.instance_of?(Integer)
|
|
69
68
|
when 'Time'
|
|
@@ -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'
|
|
@@ -57,6 +56,14 @@ module SignWell
|
|
|
57
56
|
# @return [TextValidation]
|
|
58
57
|
attr_accessor :validation
|
|
59
58
|
|
|
59
|
+
# Text fields with custom validation only: the regex pattern used to validate field values. Required when validation is set to custom.
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :validation_regex
|
|
62
|
+
|
|
63
|
+
# Text fields with custom validation only: the error message shown to the recipient when their input doesn't match the regex pattern. Required when validation is set to custom.
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :validation_regex_error_message
|
|
66
|
+
|
|
60
67
|
# Text fields only: whether the field width will stay fixed and text will display in multiple lines, rather than one long line. If set to `false` the field width will automatically grow horizontally to fit text on one line. Defaults to `false`.
|
|
61
68
|
# @return [Boolean]
|
|
62
69
|
attr_accessor :fixed_width
|
|
@@ -124,6 +131,8 @@ module SignWell
|
|
|
124
131
|
:'api_id' => :'api_id',
|
|
125
132
|
:'name' => :'name',
|
|
126
133
|
:'validation' => :'validation',
|
|
134
|
+
:'validation_regex' => :'validation_regex',
|
|
135
|
+
:'validation_regex_error_message' => :'validation_regex_error_message',
|
|
127
136
|
:'fixed_width' => :'fixed_width',
|
|
128
137
|
:'lock_sign_date' => :'lock_sign_date',
|
|
129
138
|
:'date_format' => :'date_format',
|
|
@@ -159,6 +168,8 @@ module SignWell
|
|
|
159
168
|
:'api_id' => :'String',
|
|
160
169
|
:'name' => :'String',
|
|
161
170
|
:'validation' => :'TextValidation',
|
|
171
|
+
:'validation_regex' => :'String',
|
|
172
|
+
:'validation_regex_error_message' => :'String',
|
|
162
173
|
:'fixed_width' => :'Boolean',
|
|
163
174
|
:'lock_sign_date' => :'Boolean',
|
|
164
175
|
:'date_format' => :'DateFormat',
|
|
@@ -248,6 +259,14 @@ module SignWell
|
|
|
248
259
|
self.validation = attributes[:'validation']
|
|
249
260
|
end
|
|
250
261
|
|
|
262
|
+
if attributes.key?(:'validation_regex')
|
|
263
|
+
self.validation_regex = attributes[:'validation_regex']
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
if attributes.key?(:'validation_regex_error_message')
|
|
267
|
+
self.validation_regex_error_message = attributes[:'validation_regex_error_message']
|
|
268
|
+
end
|
|
269
|
+
|
|
251
270
|
if attributes.key?(:'fixed_width')
|
|
252
271
|
self.fixed_width = attributes[:'fixed_width']
|
|
253
272
|
else
|
|
@@ -420,6 +439,8 @@ module SignWell
|
|
|
420
439
|
api_id == o.api_id &&
|
|
421
440
|
name == o.name &&
|
|
422
441
|
validation == o.validation &&
|
|
442
|
+
validation_regex == o.validation_regex &&
|
|
443
|
+
validation_regex_error_message == o.validation_regex_error_message &&
|
|
423
444
|
fixed_width == o.fixed_width &&
|
|
424
445
|
lock_sign_date == o.lock_sign_date &&
|
|
425
446
|
date_format == o.date_format &&
|
|
@@ -439,7 +460,7 @@ module SignWell
|
|
|
439
460
|
# Calculates hash code according to all attributes.
|
|
440
461
|
# @return [Integer] Hash code
|
|
441
462
|
def hash
|
|
442
|
-
[x, y, page, placeholder_id, type, required, label, value, api_id, name, validation, fixed_width, lock_sign_date, date_format, height, width, options, default_option, allow_other].hash
|
|
463
|
+
[x, y, page, placeholder_id, type, required, label, value, api_id, name, validation, validation_regex, validation_regex_error_message, fixed_width, lock_sign_date, date_format, height, width, options, default_option, allow_other].hash
|
|
443
464
|
end
|
|
444
465
|
|
|
445
466
|
# 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 :id
|
|
22
21
|
|
|
23
|
-
# Name of the recipient.
|
|
22
|
+
# Name of the recipient. Required on 21 CFR Part 11 documents: a recipient without a name returns a 422.
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :name
|
|
26
25
|
|
|
27
|
-
# Email address for the recipient.
|
|
26
|
+
# Email address for the recipient. Required unless `delivery_method` is `sms`.
|
|
28
27
|
# @return [String]
|
|
29
28
|
attr_accessor :email
|
|
30
29
|
|
|
@@ -32,10 +31,13 @@ module SignWell
|
|
|
32
31
|
# @return [String]
|
|
33
32
|
attr_accessor :placeholder_name
|
|
34
33
|
|
|
35
|
-
# If set, signers assigned with a passcode will be required to enter the passcode before they’re able to view and complete the document.
|
|
34
|
+
# If set, signers assigned with a passcode will be required to enter the passcode before they’re able to view and complete the document. On a 21 CFR Part 11 document SignWell generates the passcode, so a sender-defined passcode returns a 422.
|
|
36
35
|
# @return [String]
|
|
37
36
|
attr_accessor :passcode
|
|
38
37
|
|
|
38
|
+
# @return [RecipientsInnerPasscodeDelivery]
|
|
39
|
+
attr_accessor :passcode_delivery
|
|
40
|
+
|
|
39
41
|
# Email subject for the signature request that the recipient will see. Overrides the general subject for the template.
|
|
40
42
|
# @return [String]
|
|
41
43
|
attr_accessor :subject
|
|
@@ -52,6 +54,44 @@ module SignWell
|
|
|
52
54
|
# @return [Integer]
|
|
53
55
|
attr_accessor :send_email_delay
|
|
54
56
|
|
|
57
|
+
# How the recipient is notified and receives the signing link: `email` (default), `sms`, or `email_and_sms`. SMS delivery is available only to workspaces that are eligible for SMS and have it enabled. `email` requires `email`, `sms` requires `phone_number`, and `email_and_sms` requires both. SMS content always uses fixed system templates; `subject` and `message` apply to email notifications only. A 21 CFR Part 11 document records one verified channel per recipient: `email` and `sms` are both accepted, while `email_and_sms` returns a 422.
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :delivery_method
|
|
60
|
+
|
|
61
|
+
# Recipient phone number in E.164 format (for example `+14155551234`). Required when `delivery_method` is `sms` or `email_and_sms`. Only phone numbers from the country codes currently enabled for SMS are accepted.
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :phone_number
|
|
64
|
+
|
|
65
|
+
# Applies only when `embedded_signing` is `true` and the recipient's `delivery_method` includes SMS. By default, recipients are not notified through SMS when doing embedded signing. Setting this to `true` will send the SMS notification to the recipient. Default is `false`.
|
|
66
|
+
# @return [Boolean]
|
|
67
|
+
attr_accessor :send_sms
|
|
68
|
+
|
|
69
|
+
# If `send_sms` is `true` the recipient will receive the SMS notification immediately. In the case of embedded signing, you can delay this notification to only send if the document is not completed within a few minutes. The SMS will not go out if the document is completed before the delay time is over. Valid values are in minutes ranging from `0` to `60`. Defaults to `0`.
|
|
70
|
+
# @return [Integer]
|
|
71
|
+
attr_accessor :send_sms_delay
|
|
72
|
+
|
|
73
|
+
class EnumAttributeValidator
|
|
74
|
+
attr_reader :datatype
|
|
75
|
+
attr_reader :allowable_values
|
|
76
|
+
|
|
77
|
+
def initialize(datatype, allowable_values)
|
|
78
|
+
@allowable_values = allowable_values.map do |value|
|
|
79
|
+
case datatype.to_s
|
|
80
|
+
when /Integer/i
|
|
81
|
+
value.to_i
|
|
82
|
+
when /Float/i
|
|
83
|
+
value.to_f
|
|
84
|
+
else
|
|
85
|
+
value
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def valid?(value)
|
|
91
|
+
!value || allowable_values.include?(value)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
55
95
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
96
|
def self.attribute_map
|
|
57
97
|
{
|
|
@@ -60,10 +100,15 @@ module SignWell
|
|
|
60
100
|
:'email' => :'email',
|
|
61
101
|
:'placeholder_name' => :'placeholder_name',
|
|
62
102
|
:'passcode' => :'passcode',
|
|
103
|
+
:'passcode_delivery' => :'passcode_delivery',
|
|
63
104
|
:'subject' => :'subject',
|
|
64
105
|
:'message' => :'message',
|
|
65
106
|
:'send_email' => :'send_email',
|
|
66
|
-
:'send_email_delay' => :'send_email_delay'
|
|
107
|
+
:'send_email_delay' => :'send_email_delay',
|
|
108
|
+
:'delivery_method' => :'delivery_method',
|
|
109
|
+
:'phone_number' => :'phone_number',
|
|
110
|
+
:'send_sms' => :'send_sms',
|
|
111
|
+
:'send_sms_delay' => :'send_sms_delay'
|
|
67
112
|
}
|
|
68
113
|
end
|
|
69
114
|
|
|
@@ -85,10 +130,15 @@ module SignWell
|
|
|
85
130
|
:'email' => :'String',
|
|
86
131
|
:'placeholder_name' => :'String',
|
|
87
132
|
:'passcode' => :'String',
|
|
133
|
+
:'passcode_delivery' => :'RecipientsInnerPasscodeDelivery',
|
|
88
134
|
:'subject' => :'String',
|
|
89
135
|
:'message' => :'String',
|
|
90
136
|
:'send_email' => :'Boolean',
|
|
91
|
-
:'send_email_delay' => :'Integer'
|
|
137
|
+
:'send_email_delay' => :'Integer',
|
|
138
|
+
:'delivery_method' => :'String',
|
|
139
|
+
:'phone_number' => :'String',
|
|
140
|
+
:'send_sms' => :'Boolean',
|
|
141
|
+
:'send_sms_delay' => :'Integer'
|
|
92
142
|
}
|
|
93
143
|
end
|
|
94
144
|
|
|
@@ -126,8 +176,6 @@ module SignWell
|
|
|
126
176
|
|
|
127
177
|
if attributes.key?(:'email')
|
|
128
178
|
self.email = attributes[:'email']
|
|
129
|
-
else
|
|
130
|
-
self.email = nil
|
|
131
179
|
end
|
|
132
180
|
|
|
133
181
|
if attributes.key?(:'placeholder_name')
|
|
@@ -138,6 +186,10 @@ module SignWell
|
|
|
138
186
|
self.passcode = attributes[:'passcode']
|
|
139
187
|
end
|
|
140
188
|
|
|
189
|
+
if attributes.key?(:'passcode_delivery')
|
|
190
|
+
self.passcode_delivery = attributes[:'passcode_delivery']
|
|
191
|
+
end
|
|
192
|
+
|
|
141
193
|
if attributes.key?(:'subject')
|
|
142
194
|
self.subject = attributes[:'subject']
|
|
143
195
|
end
|
|
@@ -157,6 +209,28 @@ module SignWell
|
|
|
157
209
|
else
|
|
158
210
|
self.send_email_delay = 0
|
|
159
211
|
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'delivery_method')
|
|
214
|
+
self.delivery_method = attributes[:'delivery_method']
|
|
215
|
+
else
|
|
216
|
+
self.delivery_method = 'email'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'phone_number')
|
|
220
|
+
self.phone_number = attributes[:'phone_number']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'send_sms')
|
|
224
|
+
self.send_sms = attributes[:'send_sms']
|
|
225
|
+
else
|
|
226
|
+
self.send_sms = false
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'send_sms_delay')
|
|
230
|
+
self.send_sms_delay = attributes[:'send_sms_delay']
|
|
231
|
+
else
|
|
232
|
+
self.send_sms_delay = 0
|
|
233
|
+
end
|
|
160
234
|
end
|
|
161
235
|
|
|
162
236
|
|
|
@@ -169,10 +243,6 @@ module SignWell
|
|
|
169
243
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
170
244
|
end
|
|
171
245
|
|
|
172
|
-
if @email.nil?
|
|
173
|
-
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
|
174
|
-
end
|
|
175
|
-
|
|
176
246
|
invalid_properties
|
|
177
247
|
end
|
|
178
248
|
|
|
@@ -181,7 +251,8 @@ module SignWell
|
|
|
181
251
|
def valid?
|
|
182
252
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
183
253
|
return false if @id.nil?
|
|
184
|
-
|
|
254
|
+
delivery_method_validator = EnumAttributeValidator.new('String', %w[email sms email_and_sms unknown_default_open_api])
|
|
255
|
+
return false unless delivery_method_validator.valid?(@delivery_method)
|
|
185
256
|
true
|
|
186
257
|
end
|
|
187
258
|
|
|
@@ -195,14 +266,18 @@ module SignWell
|
|
|
195
266
|
@id = id
|
|
196
267
|
end
|
|
197
268
|
|
|
198
|
-
# Custom attribute writer method
|
|
199
|
-
# @param [Object]
|
|
200
|
-
def
|
|
201
|
-
|
|
202
|
-
|
|
269
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
270
|
+
# @param [Object] delivery_method Object to be assigned
|
|
271
|
+
def delivery_method=(delivery_method)
|
|
272
|
+
validator = EnumAttributeValidator.new('String', %w[email sms email_and_sms unknown_default_open_api])
|
|
273
|
+
unless validator.valid?(delivery_method)
|
|
274
|
+
if delivery_method.is_a?(String)
|
|
275
|
+
delivery_method = "unknown_default_open_api"
|
|
276
|
+
else
|
|
277
|
+
fail ArgumentError, "invalid value for \"delivery_method\", must be one of #{validator.allowable_values}."
|
|
278
|
+
end
|
|
203
279
|
end
|
|
204
|
-
|
|
205
|
-
@email = email
|
|
280
|
+
@delivery_method = delivery_method
|
|
206
281
|
end
|
|
207
282
|
|
|
208
283
|
# Checks equality by comparing each attribute.
|
|
@@ -215,10 +290,15 @@ module SignWell
|
|
|
215
290
|
email == o.email &&
|
|
216
291
|
placeholder_name == o.placeholder_name &&
|
|
217
292
|
passcode == o.passcode &&
|
|
293
|
+
passcode_delivery == o.passcode_delivery &&
|
|
218
294
|
subject == o.subject &&
|
|
219
295
|
message == o.message &&
|
|
220
296
|
send_email == o.send_email &&
|
|
221
|
-
send_email_delay == o.send_email_delay
|
|
297
|
+
send_email_delay == o.send_email_delay &&
|
|
298
|
+
delivery_method == o.delivery_method &&
|
|
299
|
+
phone_number == o.phone_number &&
|
|
300
|
+
send_sms == o.send_sms &&
|
|
301
|
+
send_sms_delay == o.send_sms_delay
|
|
222
302
|
end
|
|
223
303
|
|
|
224
304
|
# @see the `==` method
|
|
@@ -230,7 +310,7 @@ module SignWell
|
|
|
230
310
|
# Calculates hash code according to all attributes.
|
|
231
311
|
# @return [Integer] Hash code
|
|
232
312
|
def hash
|
|
233
|
-
[id, name, email, placeholder_name, passcode, subject, message, send_email, send_email_delay].hash
|
|
313
|
+
[id, name, email, placeholder_name, passcode, passcode_delivery, subject, message, send_email, send_email_delay, delivery_method, phone_number, send_sms, send_sms_delay].hash
|
|
234
314
|
end
|
|
235
315
|
|
|
236
316
|
# Builds the object from hash
|