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,371 @@
|
|
|
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
|
+
class ConditionalRuleRequestConditionsInner
|
|
18
|
+
# How the field_api_ids combine within a condition: `any_of`, `all_of`, `none_of`, or `not_all_of`.
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :condition_type
|
|
21
|
+
|
|
22
|
+
# The field state the condition tests for: `completed` or `not_completed`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :status
|
|
25
|
+
|
|
26
|
+
# How this condition joins the next one in the rule: `and_operator` or `or_operator`. The first condition's value is ignored.
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :join_operator
|
|
29
|
+
|
|
30
|
+
# api_ids of the trigger fields the condition watches.
|
|
31
|
+
# @return [Array<String>]
|
|
32
|
+
attr_accessor :field_api_ids
|
|
33
|
+
|
|
34
|
+
# 1-indexed order of the condition within the rule.
|
|
35
|
+
# @return [Integer]
|
|
36
|
+
attr_accessor :position
|
|
37
|
+
|
|
38
|
+
class EnumAttributeValidator
|
|
39
|
+
attr_reader :datatype
|
|
40
|
+
attr_reader :allowable_values
|
|
41
|
+
|
|
42
|
+
def initialize(datatype, allowable_values)
|
|
43
|
+
@allowable_values = allowable_values.map do |value|
|
|
44
|
+
case datatype.to_s
|
|
45
|
+
when /Integer/i
|
|
46
|
+
value.to_i
|
|
47
|
+
when /Float/i
|
|
48
|
+
value.to_f
|
|
49
|
+
else
|
|
50
|
+
value
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def valid?(value)
|
|
56
|
+
!value || allowable_values.include?(value)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
61
|
+
def self.attribute_map
|
|
62
|
+
{
|
|
63
|
+
:'condition_type' => :'condition_type',
|
|
64
|
+
:'status' => :'status',
|
|
65
|
+
:'join_operator' => :'join_operator',
|
|
66
|
+
:'field_api_ids' => :'field_api_ids',
|
|
67
|
+
:'position' => :'position'
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Returns attribute mapping this model knows about
|
|
72
|
+
def self.acceptable_attribute_map
|
|
73
|
+
attribute_map
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Returns all the JSON keys this model knows about
|
|
77
|
+
def self.acceptable_attributes
|
|
78
|
+
acceptable_attribute_map.values
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Attribute type mapping.
|
|
82
|
+
def self.openapi_types
|
|
83
|
+
{
|
|
84
|
+
:'condition_type' => :'String',
|
|
85
|
+
:'status' => :'String',
|
|
86
|
+
:'join_operator' => :'String',
|
|
87
|
+
:'field_api_ids' => :'Array<String>',
|
|
88
|
+
:'position' => :'Integer'
|
|
89
|
+
}
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# List of attributes with nullable: true
|
|
93
|
+
def self.openapi_nullable
|
|
94
|
+
Set.new([
|
|
95
|
+
])
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Initializes the object
|
|
99
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
100
|
+
def initialize(attributes = {})
|
|
101
|
+
if (!attributes.is_a?(Hash))
|
|
102
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SignWell::ConditionalRuleRequestConditionsInner` initialize method"
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
106
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
107
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
108
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
109
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SignWell::ConditionalRuleRequestConditionsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
110
|
+
end
|
|
111
|
+
h[k.to_sym] = v
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'condition_type')
|
|
115
|
+
self.condition_type = attributes[:'condition_type']
|
|
116
|
+
else
|
|
117
|
+
self.condition_type = nil
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'status')
|
|
121
|
+
self.status = attributes[:'status']
|
|
122
|
+
else
|
|
123
|
+
self.status = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'join_operator')
|
|
127
|
+
self.join_operator = attributes[:'join_operator']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'field_api_ids')
|
|
131
|
+
if (value = attributes[:'field_api_ids']).is_a?(Array)
|
|
132
|
+
self.field_api_ids = value
|
|
133
|
+
end
|
|
134
|
+
else
|
|
135
|
+
self.field_api_ids = nil
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'position')
|
|
139
|
+
self.position = attributes[:'position']
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
145
|
+
# @return Array for valid properties with the reasons
|
|
146
|
+
def list_invalid_properties
|
|
147
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
148
|
+
invalid_properties = Array.new
|
|
149
|
+
if @condition_type.nil?
|
|
150
|
+
invalid_properties.push('invalid value for "condition_type", condition_type cannot be nil.')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if @status.nil?
|
|
154
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if @field_api_ids.nil?
|
|
158
|
+
invalid_properties.push('invalid value for "field_api_ids", field_api_ids cannot be nil.')
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
invalid_properties
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Check to see if the all the properties in the model are valid
|
|
165
|
+
# @return true if the model is valid
|
|
166
|
+
def valid?
|
|
167
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
|
+
return false if @condition_type.nil?
|
|
169
|
+
condition_type_validator = EnumAttributeValidator.new('String', %w[any_of all_of none_of not_all_of unknown_default_open_api])
|
|
170
|
+
return false unless condition_type_validator.valid?(@condition_type)
|
|
171
|
+
return false if @status.nil?
|
|
172
|
+
status_validator = EnumAttributeValidator.new('String', %w[completed not_completed unknown_default_open_api])
|
|
173
|
+
return false unless status_validator.valid?(@status)
|
|
174
|
+
join_operator_validator = EnumAttributeValidator.new('String', %w[and_operator or_operator unknown_default_open_api])
|
|
175
|
+
return false unless join_operator_validator.valid?(@join_operator)
|
|
176
|
+
return false if @field_api_ids.nil?
|
|
177
|
+
true
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
181
|
+
# @param [Object] condition_type Object to be assigned
|
|
182
|
+
def condition_type=(condition_type)
|
|
183
|
+
validator = EnumAttributeValidator.new('String', %w[any_of all_of none_of not_all_of unknown_default_open_api])
|
|
184
|
+
unless validator.valid?(condition_type)
|
|
185
|
+
if condition_type.is_a?(String)
|
|
186
|
+
condition_type = "unknown_default_open_api"
|
|
187
|
+
else
|
|
188
|
+
fail ArgumentError, "invalid value for \"condition_type\", must be one of #{validator.allowable_values}."
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
@condition_type = condition_type
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
195
|
+
# @param [Object] status Object to be assigned
|
|
196
|
+
def status=(status)
|
|
197
|
+
validator = EnumAttributeValidator.new('String', %w[completed not_completed unknown_default_open_api])
|
|
198
|
+
unless validator.valid?(status)
|
|
199
|
+
if status.is_a?(String)
|
|
200
|
+
status = "unknown_default_open_api"
|
|
201
|
+
else
|
|
202
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
@status = status
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
209
|
+
# @param [Object] join_operator Object to be assigned
|
|
210
|
+
def join_operator=(join_operator)
|
|
211
|
+
validator = EnumAttributeValidator.new('String', %w[and_operator or_operator unknown_default_open_api])
|
|
212
|
+
unless validator.valid?(join_operator)
|
|
213
|
+
if join_operator.is_a?(String)
|
|
214
|
+
join_operator = "unknown_default_open_api"
|
|
215
|
+
else
|
|
216
|
+
fail ArgumentError, "invalid value for \"join_operator\", must be one of #{validator.allowable_values}."
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
@join_operator = join_operator
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Custom attribute writer method with validation
|
|
223
|
+
# @param [Object] field_api_ids Value to be assigned
|
|
224
|
+
def field_api_ids=(field_api_ids)
|
|
225
|
+
if field_api_ids.nil?
|
|
226
|
+
fail ArgumentError, 'field_api_ids cannot be nil'
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
@field_api_ids = field_api_ids
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Checks equality by comparing each attribute.
|
|
233
|
+
# @param [Object] other Object to be compared
|
|
234
|
+
def ==(o)
|
|
235
|
+
return true if self.equal?(o)
|
|
236
|
+
self.class == o.class &&
|
|
237
|
+
condition_type == o.condition_type &&
|
|
238
|
+
status == o.status &&
|
|
239
|
+
join_operator == o.join_operator &&
|
|
240
|
+
field_api_ids == o.field_api_ids &&
|
|
241
|
+
position == o.position
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# @see the `==` method
|
|
245
|
+
# @param [Object] other Object to be compared
|
|
246
|
+
def eql?(o)
|
|
247
|
+
self == o
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Calculates hash code according to all attributes.
|
|
251
|
+
# @return [Integer] Hash code
|
|
252
|
+
def hash
|
|
253
|
+
[condition_type, status, join_operator, field_api_ids, position].hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Builds the object from hash
|
|
257
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
258
|
+
# @return [Object] Returns the model itself
|
|
259
|
+
def self.build_from_hash(attributes)
|
|
260
|
+
return nil unless attributes.is_a?(Hash)
|
|
261
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
262
|
+
transformed_hash = {}
|
|
263
|
+
openapi_types.each_pair do |key, type|
|
|
264
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
265
|
+
transformed_hash["#{key}"] = nil
|
|
266
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
267
|
+
# check to ensure the input is an array given that the attribute
|
|
268
|
+
# is documented as an array but the input is not
|
|
269
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
270
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
271
|
+
end
|
|
272
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
273
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
new(transformed_hash)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Deserializes the data based on type
|
|
280
|
+
# @param [String] type Data type
|
|
281
|
+
# @param [String] value Value to be deserialized
|
|
282
|
+
# @return [Object] Deserialized data
|
|
283
|
+
def self._deserialize(type, value)
|
|
284
|
+
case type.to_sym
|
|
285
|
+
when :Time
|
|
286
|
+
Time.parse(value)
|
|
287
|
+
when :Date
|
|
288
|
+
Date.parse(value)
|
|
289
|
+
when :String
|
|
290
|
+
value.to_s
|
|
291
|
+
when :Integer
|
|
292
|
+
value.to_i
|
|
293
|
+
when :Float
|
|
294
|
+
value.to_f
|
|
295
|
+
when :Boolean
|
|
296
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
297
|
+
true
|
|
298
|
+
else
|
|
299
|
+
false
|
|
300
|
+
end
|
|
301
|
+
when :Object
|
|
302
|
+
# generic object (usually a Hash), return directly
|
|
303
|
+
value
|
|
304
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
305
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
306
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
307
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
308
|
+
k_type = Regexp.last_match[:k_type]
|
|
309
|
+
v_type = Regexp.last_match[:v_type]
|
|
310
|
+
{}.tap do |hash|
|
|
311
|
+
value.each do |k, v|
|
|
312
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
else # model
|
|
316
|
+
# models (e.g. Pet) or oneOf
|
|
317
|
+
klass = SignWell::Models.const_get(type)
|
|
318
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
319
|
+
end
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Returns the string representation of the object
|
|
323
|
+
# @return [String] String presentation of the object
|
|
324
|
+
def to_s
|
|
325
|
+
to_hash.to_s
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
329
|
+
# @return [Hash] Returns the object in the form of hash
|
|
330
|
+
def to_body
|
|
331
|
+
to_hash
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# Returns the object in the form of hash
|
|
335
|
+
# @return [Hash] Returns the object in the form of hash
|
|
336
|
+
def to_hash
|
|
337
|
+
normalize_for_serialization! if respond_to?(:normalize_for_serialization!, true)
|
|
338
|
+
|
|
339
|
+
hash = {}
|
|
340
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
341
|
+
value = self.send(attr)
|
|
342
|
+
if value.nil?
|
|
343
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
344
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
hash[param] = _to_hash(value)
|
|
348
|
+
end
|
|
349
|
+
hash
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Outputs non-array value in the form of hash
|
|
353
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
354
|
+
# @param [Object] value Any valid value
|
|
355
|
+
# @return [Hash] Returns the value in the form of hash
|
|
356
|
+
def _to_hash(value)
|
|
357
|
+
if value.is_a?(Array)
|
|
358
|
+
value.compact.map { |v| _to_hash(v) }
|
|
359
|
+
elsif value.is_a?(Hash)
|
|
360
|
+
{}.tap do |hash|
|
|
361
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
362
|
+
end
|
|
363
|
+
elsif value.respond_to? :to_hash
|
|
364
|
+
value.to_hash
|
|
365
|
+
else
|
|
366
|
+
value
|
|
367
|
+
end
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
end
|
|
371
|
+
end
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -6,8 +6,7 @@ API for creating, managing, and tracking electronic signature workflows.
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
Contact: support@signwell.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
10
|
-
|
|
9
|
+
Generator version: 7.26.0
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
@@ -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
|
-
# In some cases, it may be necessary to pre-fill the name and email for a placeholder because it will always be the same person for all documents created from this template. This sets the name.
|
|
22
|
+
# In some cases, it may be necessary to pre-fill the name and email for a placeholder because it will always be the same person for all documents created from this template. This sets the name. Every recipient on a 21 CFR Part 11 document needs a name, so leaving it unset means the name has to be supplied when the document is created.
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :preassigned_recipient_name
|
|
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,11 +15,11 @@ require 'time'
|
|
|
16
15
|
module SignWell
|
|
17
16
|
module Models
|
|
18
17
|
class CreateBulkSendRequest
|
|
19
|
-
# Unique identifiers for a list of templates.
|
|
18
|
+
# Unique identifiers for a list of templates. A template that carries a pre-applied signature or initials field cannot be used while 21 CFR Part 11 is enabled, which requires every signature to be signed by the recipient: it returns a 422.
|
|
20
19
|
# @return [Array<String>]
|
|
21
20
|
attr_accessor :template_ids
|
|
22
21
|
|
|
23
|
-
# A RFC 4648 base64 string of the template CSV file to be validated.
|
|
22
|
+
# A RFC 4648 base64 string of the template CSV file to be validated. While 21 CFR Part 11 is enabled, every recipient needs a name: the CSV must carry a name column next to each placeholder email column (for example `signer_name` alongside `signer_email`), and each row must fill that name in wherever it carries the matching email, otherwise it returns a 422. A row that leaves both the email and the name blank sends nothing to that placeholder, so no name is needed there.
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :bulk_send_csv
|
|
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'
|
|
@@ -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'
|
|
@@ -21,9 +20,10 @@ module SignWell
|
|
|
21
20
|
YYYY_MM_DD = "YYYY/MM/DD".freeze
|
|
22
21
|
MONTH_DD_YYYY = "Month DD, YYYY".freeze
|
|
23
22
|
MM_DD_YYYY_HH_MM_SS_A = "MM/DD/YYYY hh:mm:ss a".freeze
|
|
23
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
24
24
|
|
|
25
25
|
def self.all_vars
|
|
26
|
-
@all_vars ||= [MM_DD_YYYY, DD_MM_YYYY, YYYY_MM_DD, MONTH_DD_YYYY, MM_DD_YYYY_HH_MM_SS_A].freeze
|
|
26
|
+
@all_vars ||= [MM_DD_YYYY, DD_MM_YYYY, YYYY_MM_DD, MONTH_DD_YYYY, MM_DD_YYYY_HH_MM_SS_A, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Builds the enum from string
|
|
@@ -38,6 +38,7 @@ module SignWell
|
|
|
38
38
|
# @return [String] The enum value
|
|
39
39
|
def build_from_hash(value)
|
|
40
40
|
return value if DateFormat.all_vars.include?(value)
|
|
41
|
+
return UNKNOWN_DEFAULT_OPEN_API if value.is_a?(String)
|
|
41
42
|
raise "Invalid ENUM value #{value} for class #DateFormat"
|
|
42
43
|
end
|
|
43
44
|
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'
|