signwell_sdk 0.1.0 → 0.1.2
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/ISSUE_TEMPLATE/bug_report.yml +53 -0
- data/.github/ISSUE_TEMPLATE/config.yml +5 -0
- data/.github/ISSUE_TEMPLATE/feature_request.yml +35 -0
- data/.github/pull_request_template.md +39 -0
- data/.github/workflows/ci.yml +45 -0
- data/.github/workflows/generator-ownership.yml +53 -0
- data/.github/workflows/manual-release.yml +64 -0
- data/.github/workflows/release.yml +69 -0
- data/.gitignore +39 -0
- data/.release-please-manifest.json +3 -0
- data/.rspec +2 -0
- data/.rubocop.yml +200 -0
- data/CONTRIBUTING.md +13 -0
- data/Gemfile.lock +15 -25
- data/README.md +82 -6
- data/docs/{APIApplicationApi.md → ApiApplicationApi.md} +9 -9
- data/docs/BulkSendApi.md +4 -4
- data/docs/DocumentApi.md +7 -5
- data/docs/DocumentFromTemplateResponse.md +1 -1
- data/docs/DocumentFromTemplateResponseFieldsInnerInner.md +2 -0
- data/docs/DocumentResponse.md +1 -1
- data/docs/DocumentResponseFieldsInnerInner.md +2 -0
- data/docs/FileInfo.md +1 -1
- data/docs/RegionalApi.md +4 -4
- data/docs/TemplateApi.md +3 -1
- data/docs/WebhookResponse.md +0 -2
- data/examples/09_webhook_validation.rb +10 -4
- data/lib/signwell_sdk/api/api_application_api.rb +36 -40
- data/lib/signwell_sdk/api/bulk_send_api.rb +117 -111
- data/lib/signwell_sdk/api/document_api.rb +239 -150
- data/lib/signwell_sdk/api/me_api.rb +21 -20
- data/lib/signwell_sdk/api/regional_api.rb +48 -29
- data/lib/signwell_sdk/api/template_api.rb +117 -85
- data/lib/signwell_sdk/api/webhooks_api.rb +50 -46
- data/lib/signwell_sdk/api_client.rb +251 -92
- data/lib/signwell_sdk/api_error.rb +142 -17
- data/lib/signwell_sdk/configuration.rb +43 -53
- data/lib/signwell_sdk/{embedded → extras/embedded}/railtie.rb +2 -0
- data/lib/signwell_sdk/extras/embedded/view_helpers.rb +281 -0
- data/lib/signwell_sdk/{embedded.rb → extras/embedded.rb} +96 -54
- data/lib/signwell_sdk/extras/webhook.rb +257 -0
- data/lib/signwell_sdk/models/account_info_response.rb +110 -85
- data/lib/signwell_sdk/models/account_info_response_active_users_inner.rb +80 -60
- data/lib/signwell_sdk/models/account_info_response_preferences.rb +112 -102
- data/lib/signwell_sdk/models/additional_fields_inner_inner.rb +227 -145
- data/lib/signwell_sdk/models/additional_fields_inner_inner_value.rb +25 -23
- data/lib/signwell_sdk/models/additional_files_inner.rb +58 -52
- data/lib/signwell_sdk/models/api_application_response.rb +91 -72
- data/lib/signwell_sdk/models/api_application_response_owner.rb +80 -58
- data/lib/signwell_sdk/models/api_application_response_preferences.rb +67 -62
- data/lib/signwell_sdk/models/attachment_request_info.rb +66 -52
- data/lib/signwell_sdk/models/attachment_requests_inner.rb +68 -56
- data/lib/signwell_sdk/models/bulk_send_create_response.rb +110 -77
- data/lib/signwell_sdk/models/bulk_send_csv_request.rb +54 -48
- data/lib/signwell_sdk/models/bulk_send_csv_template_response.rb +46 -42
- data/lib/signwell_sdk/models/bulk_send_documents_response.rb +146 -102
- data/lib/signwell_sdk/models/bulk_send_list_item.rb +147 -97
- data/lib/signwell_sdk/models/bulk_send_list_response.rb +99 -72
- data/lib/signwell_sdk/models/bulk_send_response.rb +125 -91
- data/lib/signwell_sdk/models/bulk_send_response_templates_inner.rb +60 -48
- data/lib/signwell_sdk/models/bulk_send_validate_csv_response.rb +91 -77
- data/lib/signwell_sdk/models/checkbox_group_info.rb +111 -85
- data/lib/signwell_sdk/models/checkbox_groups_inner.rb +105 -82
- data/lib/signwell_sdk/models/checkbox_validation.rb +15 -16
- data/lib/signwell_sdk/models/completed_pdf_response.rb +24 -22
- data/lib/signwell_sdk/models/completed_pdf_url_response.rb +46 -42
- data/lib/signwell_sdk/models/copied_contact_info.rb +58 -50
- data/lib/signwell_sdk/models/copied_contacts_inner.rb +52 -46
- data/lib/signwell_sdk/models/copied_placeholders_inner.rb +57 -53
- data/lib/signwell_sdk/models/create_bulk_send_request.rb +107 -92
- data/lib/signwell_sdk/models/create_webhook_request.rb +52 -48
- data/lib/signwell_sdk/models/date_format.rb +16 -17
- data/lib/signwell_sdk/models/detailed_option.rb +60 -54
- data/lib/signwell_sdk/models/document_from_template_request.rb +266 -223
- data/lib/signwell_sdk/models/document_from_template_response.rb +291 -214
- data/lib/signwell_sdk/models/document_from_template_response_fields_inner_inner.rb +226 -139
- data/lib/signwell_sdk/models/document_from_template_response_fields_inner_inner_recipient.rb +66 -54
- data/lib/signwell_sdk/models/document_from_template_response_recipients_inner.rb +153 -121
- data/lib/signwell_sdk/models/document_list_response.rb +99 -72
- data/lib/signwell_sdk/models/document_request.rb +251 -214
- data/lib/signwell_sdk/models/document_response.rb +293 -216
- data/lib/signwell_sdk/models/document_response_attachment_requests_inner.rb +66 -54
- data/lib/signwell_sdk/models/document_response_fields_inner_inner.rb +226 -139
- data/lib/signwell_sdk/models/document_response_fields_inner_inner_options_inner.rb +51 -49
- data/lib/signwell_sdk/models/document_response_fields_inner_inner_recipient.rb +60 -48
- data/lib/signwell_sdk/models/document_response_fields_inner_inner_value.rb +25 -23
- data/lib/signwell_sdk/models/document_response_recipients_inner.rb +156 -120
- data/lib/signwell_sdk/models/document_template_list_response.rb +99 -72
- data/lib/signwell_sdk/models/document_template_request.rb +199 -166
- data/lib/signwell_sdk/models/document_template_response.rb +240 -181
- data/lib/signwell_sdk/models/document_template_response_copied_placeholders_inner.rb +83 -72
- data/lib/signwell_sdk/models/document_template_response_placeholders_inner.rb +90 -80
- data/lib/signwell_sdk/models/document_template_update_request.rb +142 -125
- data/lib/signwell_sdk/models/dropdown_option.rb +24 -22
- data/lib/signwell_sdk/models/error_response.rb +45 -45
- data/lib/signwell_sdk/models/error_response_meta.rb +67 -55
- data/lib/signwell_sdk/models/field_type.rb +27 -29
- data/lib/signwell_sdk/models/fields_inner_inner.rb +221 -141
- data/lib/signwell_sdk/models/file_format.rb +13 -14
- data/lib/signwell_sdk/models/file_info.rb +53 -57
- data/lib/signwell_sdk/models/files_inner.rb +58 -52
- data/lib/signwell_sdk/models/label_info.rb +45 -45
- data/lib/signwell_sdk/models/label_request.rb +46 -42
- data/lib/signwell_sdk/models/label_response.rb +52 -46
- data/lib/signwell_sdk/models/me_response.rb +122 -76
- data/lib/signwell_sdk/models/me_response_contact.rb +114 -85
- data/lib/signwell_sdk/models/me_response_user.rb +92 -68
- data/lib/signwell_sdk/models/me_response_user_preferences.rb +51 -49
- data/lib/signwell_sdk/models/nom151_certificate_response.rb +46 -42
- data/lib/signwell_sdk/models/nom151_certificate_response_nom151.rb +138 -82
- data/lib/signwell_sdk/models/nom151_url_response.rb +46 -42
- data/lib/signwell_sdk/models/pagination_meta.rb +88 -65
- data/lib/signwell_sdk/models/placeholders_inner.rb +71 -59
- data/lib/signwell_sdk/models/rate_limit_error_response.rb +46 -42
- data/lib/signwell_sdk/models/recipients_inner.rb +100 -80
- data/lib/signwell_sdk/models/reminder_recipients_inner.rb +45 -45
- data/lib/signwell_sdk/models/send_reminder_request.rb +40 -42
- data/lib/signwell_sdk/models/template_attachment_requests_inner.rb +65 -55
- data/lib/signwell_sdk/models/template_checkbox_groups_inner.rb +102 -81
- data/lib/signwell_sdk/models/template_field_values_inner.rb +60 -48
- data/lib/signwell_sdk/models/template_field_values_inner_value.rb +25 -23
- data/lib/signwell_sdk/models/template_fields_inner_inner.rb +218 -140
- data/lib/signwell_sdk/models/template_recipients_inner.rb +106 -84
- data/lib/signwell_sdk/models/text_validation.rb +23 -25
- data/lib/signwell_sdk/models/update_document_and_send_request.rb +170 -149
- data/lib/signwell_sdk/models/update_recipients_map_inner.rb +92 -68
- data/lib/signwell_sdk/models/update_recipients_request.rb +43 -43
- data/lib/signwell_sdk/models/validation_error_response.rb +43 -43
- data/lib/signwell_sdk/models/webhook_response.rb +68 -66
- data/lib/signwell_sdk/version.rb +1 -1
- data/lib/signwell_sdk.rb +17 -13
- data/openapi.yaml +425 -415
- data/signwell_sdk.gemspec +25 -6
- data/spec/api/api_application_api_spec.rb +16 -14
- data/spec/api/bulk_send_api_spec.rb +14 -14
- data/spec/api/document_api_spec.rb +17 -21
- data/spec/api/me_api_spec.rb +13 -11
- data/spec/api/regional_api_spec.rb +14 -12
- data/spec/api/template_api_spec.rb +13 -13
- data/spec/api/webhooks_api_spec.rb +13 -11
- data/spec/models/account_info_response_active_users_inner_spec.rb +12 -11
- data/spec/models/account_info_response_preferences_spec.rb +12 -11
- data/spec/models/account_info_response_spec.rb +12 -11
- data/spec/models/additional_fields_inner_inner_spec.rb +12 -11
- data/spec/models/additional_fields_inner_inner_value_spec.rb +10 -10
- data/spec/models/additional_files_inner_spec.rb +12 -11
- data/spec/models/api_application_response_owner_spec.rb +12 -11
- data/spec/models/api_application_response_preferences_spec.rb +12 -11
- data/spec/models/api_application_response_spec.rb +11 -10
- data/spec/models/attachment_request_info_spec.rb +12 -11
- data/spec/models/attachment_requests_inner_spec.rb +12 -11
- data/spec/models/bulk_send_create_response_spec.rb +11 -10
- data/spec/models/bulk_send_csv_request_spec.rb +12 -11
- data/spec/models/bulk_send_csv_template_response_spec.rb +12 -11
- data/spec/models/bulk_send_documents_response_spec.rb +12 -11
- data/spec/models/bulk_send_list_item_spec.rb +12 -11
- data/spec/models/bulk_send_list_response_spec.rb +11 -10
- data/spec/models/bulk_send_response_spec.rb +12 -11
- data/spec/models/bulk_send_response_templates_inner_spec.rb +12 -11
- data/spec/models/bulk_send_validate_csv_response_spec.rb +11 -10
- data/spec/models/checkbox_group_info_spec.rb +12 -11
- data/spec/models/checkbox_groups_inner_spec.rb +11 -10
- data/spec/models/checkbox_validation_spec.rb +11 -10
- data/spec/models/completed_pdf_response_spec.rb +10 -10
- data/spec/models/completed_pdf_url_response_spec.rb +12 -11
- data/spec/models/copied_contact_info_spec.rb +12 -11
- data/spec/models/copied_contacts_inner_spec.rb +12 -11
- data/spec/models/copied_placeholders_inner_spec.rb +12 -11
- data/spec/models/create_bulk_send_request_spec.rb +12 -11
- data/spec/models/create_webhook_request_spec.rb +12 -11
- data/spec/models/date_format_spec.rb +11 -10
- data/spec/models/detailed_option_spec.rb +12 -11
- data/spec/models/document_from_template_request_spec.rb +12 -11
- data/spec/models/document_from_template_response_fields_inner_inner_recipient_spec.rb +12 -11
- data/spec/models/document_from_template_response_fields_inner_inner_spec.rb +18 -11
- data/spec/models/document_from_template_response_recipients_inner_spec.rb +12 -11
- data/spec/models/document_from_template_response_spec.rb +12 -11
- data/spec/models/document_list_response_spec.rb +11 -10
- data/spec/models/document_request_spec.rb +12 -11
- data/spec/models/document_response_attachment_requests_inner_spec.rb +12 -11
- data/spec/models/document_response_fields_inner_inner_options_inner_spec.rb +12 -11
- data/spec/models/document_response_fields_inner_inner_recipient_spec.rb +12 -11
- data/spec/models/document_response_fields_inner_inner_spec.rb +18 -11
- data/spec/models/document_response_fields_inner_inner_value_spec.rb +10 -10
- data/spec/models/document_response_recipients_inner_spec.rb +12 -11
- data/spec/models/document_response_spec.rb +12 -11
- data/spec/models/document_template_list_response_spec.rb +11 -10
- data/spec/models/document_template_request_spec.rb +12 -11
- data/spec/models/document_template_response_copied_placeholders_inner_spec.rb +11 -10
- data/spec/models/document_template_response_placeholders_inner_spec.rb +11 -10
- data/spec/models/document_template_response_spec.rb +12 -11
- data/spec/models/document_template_update_request_spec.rb +12 -11
- data/spec/models/dropdown_option_spec.rb +10 -10
- data/spec/models/error_response_meta_spec.rb +12 -11
- data/spec/models/error_response_spec.rb +12 -11
- data/spec/models/field_type_spec.rb +11 -10
- data/spec/models/fields_inner_inner_spec.rb +12 -11
- data/spec/models/file_format_spec.rb +11 -10
- data/spec/models/file_info_spec.rb +12 -11
- data/spec/models/files_inner_spec.rb +12 -11
- data/spec/models/label_info_spec.rb +12 -11
- data/spec/models/label_request_spec.rb +12 -11
- data/spec/models/label_response_spec.rb +12 -11
- data/spec/models/me_response_contact_spec.rb +12 -11
- data/spec/models/me_response_spec.rb +11 -10
- data/spec/models/me_response_user_preferences_spec.rb +12 -11
- data/spec/models/me_response_user_spec.rb +11 -10
- data/spec/models/nom151_certificate_response_nom151_spec.rb +11 -10
- data/spec/models/nom151_certificate_response_spec.rb +12 -11
- data/spec/models/nom151_url_response_spec.rb +12 -11
- data/spec/models/pagination_meta_spec.rb +12 -11
- data/spec/models/placeholders_inner_spec.rb +12 -11
- data/spec/models/rate_limit_error_response_spec.rb +12 -11
- data/spec/models/recipients_inner_spec.rb +11 -10
- data/spec/models/reminder_recipients_inner_spec.rb +12 -11
- data/spec/models/send_reminder_request_spec.rb +12 -11
- data/spec/models/template_attachment_requests_inner_spec.rb +12 -11
- data/spec/models/template_checkbox_groups_inner_spec.rb +11 -10
- data/spec/models/template_field_values_inner_spec.rb +12 -11
- data/spec/models/template_field_values_inner_value_spec.rb +10 -10
- data/spec/models/template_fields_inner_inner_spec.rb +12 -11
- data/spec/models/template_recipients_inner_spec.rb +12 -11
- data/spec/models/text_validation_spec.rb +11 -10
- data/spec/models/update_document_and_send_request_spec.rb +12 -11
- data/spec/models/update_recipients_map_inner_spec.rb +11 -10
- data/spec/models/update_recipients_request_spec.rb +12 -11
- data/spec/models/validation_error_response_spec.rb +12 -11
- data/spec/models/webhook_response_spec.rb +12 -17
- data/spec/regressions/api_client_spec.rb +481 -0
- data/spec/regressions/bulk_send_api_spec.rb +47 -0
- data/spec/regressions/embedded_spec.rb +263 -0
- data/spec/regressions/generated_resource_helpers_spec.rb +119 -0
- data/spec/regressions/response_modes_spec.rb +93 -0
- data/spec/regressions/view_helpers_spec.rb +202 -0
- data/spec/regressions/webhook_spec.rb +210 -0
- data/spec/spec_helper.rb +11 -12
- metadata +127 -91
- data/lib/signwell_sdk/embedded/view_helpers.rb +0 -132
- data/lib/signwell_sdk/webhook.rb +0 -75
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
require 'time'
|
|
@@ -109,36 +109,36 @@ module SignWell
|
|
|
109
109
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
110
110
|
def self.attribute_map
|
|
111
111
|
{
|
|
112
|
-
'id'
|
|
113
|
-
'api_application_id'
|
|
114
|
-
'requester_email_address'
|
|
115
|
-
'custom_requester_name'
|
|
116
|
-
'custom_requester_email'
|
|
117
|
-
'name'
|
|
118
|
-
'subject'
|
|
119
|
-
'message'
|
|
120
|
-
'metadata'
|
|
121
|
-
'created_at'
|
|
122
|
-
'updated_at'
|
|
123
|
-
'placeholders'
|
|
124
|
-
'copied_placeholders'
|
|
125
|
-
'status'
|
|
126
|
-
'reminders'
|
|
127
|
-
'archived'
|
|
128
|
-
'embedded_edit_url'
|
|
129
|
-
'template_link'
|
|
130
|
-
'template_id'
|
|
131
|
-
'apply_signing_order'
|
|
132
|
-
'redirect_url'
|
|
133
|
-
'decline_redirect_url'
|
|
134
|
-
'language'
|
|
135
|
-
'expires_in'
|
|
136
|
-
'files'
|
|
137
|
-
'fields'
|
|
138
|
-
'allow_decline'
|
|
139
|
-
'allow_reassign'
|
|
140
|
-
'labels'
|
|
141
|
-
'checkbox_groups'
|
|
112
|
+
:'id' => :'id',
|
|
113
|
+
:'api_application_id' => :'api_application_id',
|
|
114
|
+
:'requester_email_address' => :'requester_email_address',
|
|
115
|
+
:'custom_requester_name' => :'custom_requester_name',
|
|
116
|
+
:'custom_requester_email' => :'custom_requester_email',
|
|
117
|
+
:'name' => :'name',
|
|
118
|
+
:'subject' => :'subject',
|
|
119
|
+
:'message' => :'message',
|
|
120
|
+
:'metadata' => :'metadata',
|
|
121
|
+
:'created_at' => :'created_at',
|
|
122
|
+
:'updated_at' => :'updated_at',
|
|
123
|
+
:'placeholders' => :'placeholders',
|
|
124
|
+
:'copied_placeholders' => :'copied_placeholders',
|
|
125
|
+
:'status' => :'status',
|
|
126
|
+
:'reminders' => :'reminders',
|
|
127
|
+
:'archived' => :'archived',
|
|
128
|
+
:'embedded_edit_url' => :'embedded_edit_url',
|
|
129
|
+
:'template_link' => :'template_link',
|
|
130
|
+
:'template_id' => :'template_id',
|
|
131
|
+
:'apply_signing_order' => :'apply_signing_order',
|
|
132
|
+
:'redirect_url' => :'redirect_url',
|
|
133
|
+
:'decline_redirect_url' => :'decline_redirect_url',
|
|
134
|
+
:'language' => :'language',
|
|
135
|
+
:'expires_in' => :'expires_in',
|
|
136
|
+
:'files' => :'files',
|
|
137
|
+
:'fields' => :'fields',
|
|
138
|
+
:'allow_decline' => :'allow_decline',
|
|
139
|
+
:'allow_reassign' => :'allow_reassign',
|
|
140
|
+
:'labels' => :'labels',
|
|
141
|
+
:'checkbox_groups' => :'checkbox_groups'
|
|
142
142
|
}
|
|
143
143
|
end
|
|
144
144
|
|
|
@@ -155,158 +155,219 @@ module SignWell
|
|
|
155
155
|
# Attribute type mapping.
|
|
156
156
|
def self.openapi_types
|
|
157
157
|
{
|
|
158
|
-
'id'
|
|
159
|
-
'api_application_id'
|
|
160
|
-
'requester_email_address'
|
|
161
|
-
'custom_requester_name'
|
|
162
|
-
'custom_requester_email'
|
|
163
|
-
'name'
|
|
164
|
-
'subject'
|
|
165
|
-
'message'
|
|
166
|
-
'metadata'
|
|
167
|
-
'created_at'
|
|
168
|
-
'updated_at'
|
|
169
|
-
'placeholders'
|
|
170
|
-
'copied_placeholders'
|
|
171
|
-
'status'
|
|
172
|
-
'reminders'
|
|
173
|
-
'archived'
|
|
174
|
-
'embedded_edit_url'
|
|
175
|
-
'template_link'
|
|
176
|
-
'template_id'
|
|
177
|
-
'apply_signing_order'
|
|
178
|
-
'redirect_url'
|
|
179
|
-
'decline_redirect_url'
|
|
180
|
-
'language'
|
|
181
|
-
'expires_in'
|
|
182
|
-
'files'
|
|
183
|
-
'fields'
|
|
184
|
-
'allow_decline'
|
|
185
|
-
'allow_reassign'
|
|
186
|
-
'labels'
|
|
187
|
-
'checkbox_groups'
|
|
158
|
+
:'id' => :'String',
|
|
159
|
+
:'api_application_id' => :'String',
|
|
160
|
+
:'requester_email_address' => :'String',
|
|
161
|
+
:'custom_requester_name' => :'String',
|
|
162
|
+
:'custom_requester_email' => :'String',
|
|
163
|
+
:'name' => :'String',
|
|
164
|
+
:'subject' => :'String',
|
|
165
|
+
:'message' => :'String',
|
|
166
|
+
:'metadata' => :'Hash<String, String>',
|
|
167
|
+
:'created_at' => :'Time',
|
|
168
|
+
:'updated_at' => :'Time',
|
|
169
|
+
:'placeholders' => :'Array<DocumentTemplateResponsePlaceholdersInner>',
|
|
170
|
+
:'copied_placeholders' => :'Array<DocumentTemplateResponseCopiedPlaceholdersInner>',
|
|
171
|
+
:'status' => :'String',
|
|
172
|
+
:'reminders' => :'Boolean',
|
|
173
|
+
:'archived' => :'Boolean',
|
|
174
|
+
:'embedded_edit_url' => :'String',
|
|
175
|
+
:'template_link' => :'String',
|
|
176
|
+
:'template_id' => :'String',
|
|
177
|
+
:'apply_signing_order' => :'Boolean',
|
|
178
|
+
:'redirect_url' => :'String',
|
|
179
|
+
:'decline_redirect_url' => :'String',
|
|
180
|
+
:'language' => :'String',
|
|
181
|
+
:'expires_in' => :'Integer',
|
|
182
|
+
:'files' => :'Array<FileInfo>',
|
|
183
|
+
:'fields' => :'Array<Array<DocumentResponseFieldsInnerInner>>',
|
|
184
|
+
:'allow_decline' => :'Boolean',
|
|
185
|
+
:'allow_reassign' => :'Boolean',
|
|
186
|
+
:'labels' => :'Array<LabelInfo>',
|
|
187
|
+
:'checkbox_groups' => :'Array<CheckboxGroupInfo>'
|
|
188
188
|
}
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
# List of attributes with nullable: true
|
|
192
192
|
def self.openapi_nullable
|
|
193
|
-
Set.new(
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
193
|
+
Set.new([
|
|
194
|
+
:'api_application_id',
|
|
195
|
+
:'custom_requester_name',
|
|
196
|
+
:'custom_requester_email',
|
|
197
|
+
:'metadata',
|
|
198
|
+
:'reminders',
|
|
199
|
+
:'embedded_edit_url',
|
|
200
|
+
:'template_id',
|
|
201
|
+
:'redirect_url',
|
|
202
|
+
:'decline_redirect_url',
|
|
203
|
+
:'expires_in',
|
|
204
|
+
:'allow_decline',
|
|
205
|
+
:'allow_reassign',
|
|
206
|
+
])
|
|
206
207
|
end
|
|
207
208
|
|
|
208
209
|
# Initializes the object
|
|
209
210
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
210
211
|
def initialize(attributes = {})
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
'The input argument (attributes) must be a hash in `SignWell::DocumentTemplateResponse` initialize method'
|
|
212
|
+
if (!attributes.is_a?(Hash))
|
|
213
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SignWell::DocumentTemplateResponse` initialize method"
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
217
217
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
218
|
-
attributes = attributes.each_with_object({})
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"`#{k}` is not a valid attribute in `SignWell::DocumentTemplateResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
218
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
219
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
220
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SignWell::DocumentTemplateResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
222
221
|
end
|
|
223
|
-
|
|
224
222
|
h[k.to_sym] = v
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
self.id = (attributes[:id] if attributes.key?(:id))
|
|
223
|
+
}
|
|
228
224
|
|
|
229
|
-
|
|
225
|
+
if attributes.key?(:'id')
|
|
226
|
+
self.id = attributes[:'id']
|
|
227
|
+
else
|
|
228
|
+
self.id = nil
|
|
229
|
+
end
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
if attributes.key?(:'api_application_id')
|
|
232
|
+
self.api_application_id = attributes[:'api_application_id']
|
|
233
|
+
end
|
|
232
234
|
|
|
233
|
-
|
|
235
|
+
if attributes.key?(:'requester_email_address')
|
|
236
|
+
self.requester_email_address = attributes[:'requester_email_address']
|
|
237
|
+
end
|
|
234
238
|
|
|
235
|
-
|
|
239
|
+
if attributes.key?(:'custom_requester_name')
|
|
240
|
+
self.custom_requester_name = attributes[:'custom_requester_name']
|
|
241
|
+
end
|
|
236
242
|
|
|
237
|
-
|
|
243
|
+
if attributes.key?(:'custom_requester_email')
|
|
244
|
+
self.custom_requester_email = attributes[:'custom_requester_email']
|
|
245
|
+
end
|
|
238
246
|
|
|
239
|
-
|
|
247
|
+
if attributes.key?(:'name')
|
|
248
|
+
self.name = attributes[:'name']
|
|
249
|
+
end
|
|
240
250
|
|
|
241
|
-
|
|
251
|
+
if attributes.key?(:'subject')
|
|
252
|
+
self.subject = attributes[:'subject']
|
|
253
|
+
end
|
|
242
254
|
|
|
243
|
-
if attributes.key?(:
|
|
244
|
-
self.
|
|
255
|
+
if attributes.key?(:'message')
|
|
256
|
+
self.message = attributes[:'message']
|
|
245
257
|
end
|
|
246
258
|
|
|
247
|
-
|
|
259
|
+
if attributes.key?(:'metadata')
|
|
260
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
|
261
|
+
self.metadata = value
|
|
262
|
+
end
|
|
263
|
+
end
|
|
248
264
|
|
|
249
|
-
|
|
265
|
+
if attributes.key?(:'created_at')
|
|
266
|
+
self.created_at = attributes[:'created_at']
|
|
267
|
+
end
|
|
250
268
|
|
|
251
|
-
if attributes.key?(:
|
|
252
|
-
self.
|
|
269
|
+
if attributes.key?(:'updated_at')
|
|
270
|
+
self.updated_at = attributes[:'updated_at']
|
|
253
271
|
end
|
|
254
272
|
|
|
255
|
-
if attributes.key?(:
|
|
256
|
-
|
|
273
|
+
if attributes.key?(:'placeholders')
|
|
274
|
+
if (value = attributes[:'placeholders']).is_a?(Array)
|
|
275
|
+
self.placeholders = value
|
|
276
|
+
end
|
|
257
277
|
end
|
|
258
278
|
|
|
259
|
-
|
|
279
|
+
if attributes.key?(:'copied_placeholders')
|
|
280
|
+
if (value = attributes[:'copied_placeholders']).is_a?(Array)
|
|
281
|
+
self.copied_placeholders = value
|
|
282
|
+
end
|
|
283
|
+
end
|
|
260
284
|
|
|
261
|
-
|
|
285
|
+
if attributes.key?(:'status')
|
|
286
|
+
self.status = attributes[:'status']
|
|
287
|
+
end
|
|
262
288
|
|
|
263
|
-
|
|
289
|
+
if attributes.key?(:'reminders')
|
|
290
|
+
self.reminders = attributes[:'reminders']
|
|
291
|
+
end
|
|
264
292
|
|
|
265
|
-
|
|
293
|
+
if attributes.key?(:'archived')
|
|
294
|
+
self.archived = attributes[:'archived']
|
|
295
|
+
end
|
|
266
296
|
|
|
267
|
-
|
|
297
|
+
if attributes.key?(:'embedded_edit_url')
|
|
298
|
+
self.embedded_edit_url = attributes[:'embedded_edit_url']
|
|
299
|
+
end
|
|
268
300
|
|
|
269
|
-
|
|
301
|
+
if attributes.key?(:'template_link')
|
|
302
|
+
self.template_link = attributes[:'template_link']
|
|
303
|
+
end
|
|
270
304
|
|
|
271
|
-
|
|
305
|
+
if attributes.key?(:'template_id')
|
|
306
|
+
self.template_id = attributes[:'template_id']
|
|
307
|
+
end
|
|
272
308
|
|
|
273
|
-
|
|
309
|
+
if attributes.key?(:'apply_signing_order')
|
|
310
|
+
self.apply_signing_order = attributes[:'apply_signing_order']
|
|
311
|
+
end
|
|
274
312
|
|
|
275
|
-
|
|
313
|
+
if attributes.key?(:'redirect_url')
|
|
314
|
+
self.redirect_url = attributes[:'redirect_url']
|
|
315
|
+
end
|
|
276
316
|
|
|
277
|
-
|
|
317
|
+
if attributes.key?(:'decline_redirect_url')
|
|
318
|
+
self.decline_redirect_url = attributes[:'decline_redirect_url']
|
|
319
|
+
end
|
|
278
320
|
|
|
279
|
-
|
|
321
|
+
if attributes.key?(:'language')
|
|
322
|
+
self.language = attributes[:'language']
|
|
323
|
+
end
|
|
280
324
|
|
|
281
|
-
if attributes.key?(:
|
|
282
|
-
self.
|
|
325
|
+
if attributes.key?(:'expires_in')
|
|
326
|
+
self.expires_in = attributes[:'expires_in']
|
|
283
327
|
end
|
|
284
328
|
|
|
285
|
-
if attributes.key?(:
|
|
286
|
-
|
|
329
|
+
if attributes.key?(:'files')
|
|
330
|
+
if (value = attributes[:'files']).is_a?(Array)
|
|
331
|
+
self.files = value
|
|
332
|
+
end
|
|
287
333
|
end
|
|
288
334
|
|
|
289
|
-
|
|
335
|
+
if attributes.key?(:'fields')
|
|
336
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
|
337
|
+
self.fields = value
|
|
338
|
+
end
|
|
339
|
+
end
|
|
290
340
|
|
|
291
|
-
|
|
341
|
+
if attributes.key?(:'allow_decline')
|
|
342
|
+
self.allow_decline = attributes[:'allow_decline']
|
|
343
|
+
end
|
|
292
344
|
|
|
293
|
-
if attributes.key?(:
|
|
294
|
-
self.
|
|
345
|
+
if attributes.key?(:'allow_reassign')
|
|
346
|
+
self.allow_reassign = attributes[:'allow_reassign']
|
|
295
347
|
end
|
|
296
348
|
|
|
297
|
-
|
|
349
|
+
if attributes.key?(:'labels')
|
|
350
|
+
if (value = attributes[:'labels']).is_a?(Array)
|
|
351
|
+
self.labels = value
|
|
352
|
+
end
|
|
353
|
+
end
|
|
298
354
|
|
|
299
|
-
if
|
|
300
|
-
|
|
355
|
+
if attributes.key?(:'checkbox_groups')
|
|
356
|
+
if (value = attributes[:'checkbox_groups']).is_a?(Array)
|
|
357
|
+
self.checkbox_groups = value
|
|
358
|
+
end
|
|
301
359
|
end
|
|
302
360
|
end
|
|
303
361
|
|
|
362
|
+
|
|
304
363
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
305
364
|
# @return Array for valid properties with the reasons
|
|
306
365
|
def list_invalid_properties
|
|
307
366
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
308
|
-
invalid_properties =
|
|
309
|
-
|
|
367
|
+
invalid_properties = Array.new
|
|
368
|
+
if @id.nil?
|
|
369
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
370
|
+
end
|
|
310
371
|
|
|
311
372
|
invalid_properties
|
|
312
373
|
end
|
|
@@ -316,67 +377,66 @@ module SignWell
|
|
|
316
377
|
def valid?
|
|
317
378
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
318
379
|
return false if @id.nil?
|
|
319
|
-
|
|
320
380
|
true
|
|
321
381
|
end
|
|
322
382
|
|
|
323
383
|
# Custom attribute writer method with validation
|
|
324
384
|
# @param [Object] id Value to be assigned
|
|
325
385
|
def id=(id)
|
|
326
|
-
|
|
386
|
+
if id.nil?
|
|
387
|
+
fail ArgumentError, 'id cannot be nil'
|
|
388
|
+
end
|
|
327
389
|
|
|
328
390
|
@id = id
|
|
329
391
|
end
|
|
330
392
|
|
|
331
393
|
# Checks equality by comparing each attribute.
|
|
332
394
|
# @param [Object] other Object to be compared
|
|
333
|
-
def ==(
|
|
334
|
-
return true if equal?(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
checkbox_groups == other.checkbox_groups
|
|
395
|
+
def ==(o)
|
|
396
|
+
return true if self.equal?(o)
|
|
397
|
+
self.class == o.class &&
|
|
398
|
+
id == o.id &&
|
|
399
|
+
api_application_id == o.api_application_id &&
|
|
400
|
+
requester_email_address == o.requester_email_address &&
|
|
401
|
+
custom_requester_name == o.custom_requester_name &&
|
|
402
|
+
custom_requester_email == o.custom_requester_email &&
|
|
403
|
+
name == o.name &&
|
|
404
|
+
subject == o.subject &&
|
|
405
|
+
message == o.message &&
|
|
406
|
+
metadata == o.metadata &&
|
|
407
|
+
created_at == o.created_at &&
|
|
408
|
+
updated_at == o.updated_at &&
|
|
409
|
+
placeholders == o.placeholders &&
|
|
410
|
+
copied_placeholders == o.copied_placeholders &&
|
|
411
|
+
status == o.status &&
|
|
412
|
+
reminders == o.reminders &&
|
|
413
|
+
archived == o.archived &&
|
|
414
|
+
embedded_edit_url == o.embedded_edit_url &&
|
|
415
|
+
template_link == o.template_link &&
|
|
416
|
+
template_id == o.template_id &&
|
|
417
|
+
apply_signing_order == o.apply_signing_order &&
|
|
418
|
+
redirect_url == o.redirect_url &&
|
|
419
|
+
decline_redirect_url == o.decline_redirect_url &&
|
|
420
|
+
language == o.language &&
|
|
421
|
+
expires_in == o.expires_in &&
|
|
422
|
+
files == o.files &&
|
|
423
|
+
fields == o.fields &&
|
|
424
|
+
allow_decline == o.allow_decline &&
|
|
425
|
+
allow_reassign == o.allow_reassign &&
|
|
426
|
+
labels == o.labels &&
|
|
427
|
+
checkbox_groups == o.checkbox_groups
|
|
367
428
|
end
|
|
368
429
|
|
|
369
430
|
# @see the `==` method
|
|
370
431
|
# @param [Object] other Object to be compared
|
|
371
|
-
def eql?(
|
|
372
|
-
self ==
|
|
432
|
+
def eql?(o)
|
|
433
|
+
self == o
|
|
373
434
|
end
|
|
374
435
|
|
|
375
436
|
# Calculates hash code according to all attributes.
|
|
376
437
|
# @return [Integer] Hash code
|
|
377
438
|
def hash
|
|
378
|
-
[id, api_application_id, requester_email_address, custom_requester_name, custom_requester_email, name, subject,
|
|
379
|
-
message, metadata, created_at, updated_at, placeholders, copied_placeholders, status, reminders, archived, embedded_edit_url, template_link, template_id, apply_signing_order, redirect_url, decline_redirect_url, language, expires_in, files, fields, allow_decline, allow_reassign, labels, checkbox_groups].hash
|
|
439
|
+
[id, api_application_id, requester_email_address, custom_requester_name, custom_requester_email, name, subject, message, metadata, created_at, updated_at, placeholders, copied_placeholders, status, reminders, archived, embedded_edit_url, template_link, template_id, apply_signing_order, redirect_url, decline_redirect_url, language, expires_in, files, fields, allow_decline, allow_reassign, labels, checkbox_groups].hash
|
|
380
440
|
end
|
|
381
441
|
|
|
382
442
|
# Builds the object from hash
|
|
@@ -384,22 +444,19 @@ module SignWell
|
|
|
384
444
|
# @return [Object] Returns the model itself
|
|
385
445
|
def self.build_from_hash(attributes)
|
|
386
446
|
return nil unless attributes.is_a?(Hash)
|
|
387
|
-
|
|
388
447
|
attributes = attributes.transform_keys(&:to_sym)
|
|
389
448
|
transformed_hash = {}
|
|
390
449
|
openapi_types.each_pair do |key, type|
|
|
391
450
|
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
392
|
-
transformed_hash[key
|
|
451
|
+
transformed_hash["#{key}"] = nil
|
|
393
452
|
elsif type =~ /\AArray<(.*)>/i
|
|
394
453
|
# check to ensure the input is an array given that the attribute
|
|
395
454
|
# is documented as an array but the input is not
|
|
396
455
|
if attributes[attribute_map[key]].is_a?(Array)
|
|
397
|
-
transformed_hash[key
|
|
398
|
-
_deserialize(::Regexp.last_match(1), v)
|
|
399
|
-
end
|
|
456
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
400
457
|
end
|
|
401
458
|
elsif !attributes[attribute_map[key]].nil?
|
|
402
|
-
transformed_hash[key
|
|
459
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
403
460
|
end
|
|
404
461
|
end
|
|
405
462
|
new(transformed_hash)
|
|
@@ -463,9 +520,11 @@ module SignWell
|
|
|
463
520
|
# Returns the object in the form of hash
|
|
464
521
|
# @return [Hash] Returns the object in the form of hash
|
|
465
522
|
def to_hash
|
|
523
|
+
normalize_for_serialization! if respond_to?(:normalize_for_serialization!, true)
|
|
524
|
+
|
|
466
525
|
hash = {}
|
|
467
526
|
self.class.attribute_map.each_pair do |attr, param|
|
|
468
|
-
value = send(attr)
|
|
527
|
+
value = self.send(attr)
|
|
469
528
|
if value.nil?
|
|
470
529
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
471
530
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|