docspring 1.0.0 → 1.3.1
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/.openapi-generator/VERSION +1 -1
- data/CHANGELOG.md +14 -37
- data/Gemfile +2 -1
- data/Gemfile.lock +37 -32
- data/LICENSE +1 -1
- data/README.md +26 -15
- data/docs/AddFieldsData.md +8 -0
- data/docs/AddFieldsTemplateResponse.md +10 -0
- data/docs/CombinePdfsData.md +4 -4
- data/docs/CombinedSubmission.md +1 -0
- data/docs/CombinedSubmissionData.md +3 -3
- data/docs/{CreateTemplateData.md → CreateHtmlTemplateData.md} +2 -2
- data/docs/CreateSubmissionDataRequestData.md +2 -2
- data/docs/CreateTemplateFromUploadData.md +8 -0
- data/docs/HtmlTemplateData.md +24 -0
- data/docs/PDFApi.md +169 -15
- data/docs/PendingTemplate.md +2 -0
- data/docs/Submission.md +5 -0
- data/docs/SubmissionBatchData.md +2 -2
- data/docs/SubmissionData.md +4 -3
- data/docs/SubmissionDataBatchRequest.md +2 -2
- data/docs/SubmissionDataRequest.md +2 -0
- data/docs/Template.md +2 -0
- data/docs/{Templatesv2Template.md → TemplateData.md} +11 -7
- data/docs/TemplatestemplateIdaddFieldsFields.md +92 -0
- data/docs/UpdateSubmissionDataRequestData.md +9 -9
- data/docs/UpdateTemplateData.md +8 -0
- data/docs/UpdateTemplateResponse.md +9 -0
- data/docs/UploadTemplateData.md +25 -0
- data/docs/{Templatesv2TemplateDocument.md → UploadTemplateDataDocument.md} +2 -2
- data/docs/{Templatesv2TemplateDocumentMetadata.md → UploadTemplateDataDocumentMetadata.md} +1 -1
- data/docspring.gemspec +3 -3
- data/lib/docspring.rb +13 -5
- data/lib/docspring/api/pdf_api.rb +193 -22
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/api_error.rb +1 -1
- data/lib/docspring/configuration.rb +1 -1
- data/lib/docspring/models/add_fields_data.rb +190 -0
- data/lib/docspring/models/add_fields_template_response.rb +239 -0
- data/lib/docspring/models/authentication_error.rb +1 -1
- data/lib/docspring/models/authentication_success_response.rb +1 -1
- data/lib/docspring/models/combine_pdfs_data.rb +28 -28
- data/lib/docspring/models/combined_submission.rb +11 -2
- data/lib/docspring/models/combined_submission_action.rb +1 -6
- data/lib/docspring/models/combined_submission_data.rb +23 -23
- data/lib/docspring/models/create_combined_submission_response.rb +1 -1
- data/lib/docspring/models/create_custom_file_data.rb +1 -1
- data/lib/docspring/models/create_custom_file_response.rb +1 -1
- data/lib/docspring/models/create_folder_data.rb +1 -1
- data/lib/docspring/models/{create_template_data.rb → create_html_template_data.rb} +3 -3
- data/lib/docspring/models/create_submission_batch_response.rb +1 -1
- data/lib/docspring/models/create_submission_batch_submissions_response.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_data.rb +20 -20
- data/lib/docspring/models/create_submission_data_request_token_response.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_token_response_token.rb +1 -1
- data/lib/docspring/models/create_submission_response.rb +1 -1
- data/lib/docspring/models/create_template_from_upload_data.rb +188 -0
- data/lib/docspring/models/custom_file.rb +1 -1
- data/lib/docspring/models/error.rb +1 -1
- data/lib/docspring/models/folder.rb +1 -1
- data/lib/docspring/models/folders_folder.rb +1 -1
- data/lib/docspring/models/html_template_data.rb +373 -0
- data/lib/docspring/models/invalid_request.rb +1 -1
- data/lib/docspring/models/move_folder_data.rb +1 -1
- data/lib/docspring/models/move_template_data.rb +1 -1
- data/lib/docspring/models/pending_template.rb +20 -2
- data/lib/docspring/models/rename_folder_data.rb +1 -1
- data/lib/docspring/models/submission.rb +52 -7
- data/lib/docspring/models/submission_action.rb +1 -6
- data/lib/docspring/models/submission_batch.rb +1 -1
- data/lib/docspring/models/submission_batch_data.rb +16 -16
- data/lib/docspring/models/submission_data.rb +34 -25
- data/lib/docspring/models/submission_data_batch_request.rb +20 -20
- data/lib/docspring/models/submission_data_request.rb +23 -20
- data/lib/docspring/models/template.rb +20 -2
- data/lib/docspring/models/{templatesv2_template.rb → template_data.rb} +81 -45
- data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +1306 -0
- data/lib/docspring/models/update_data_request_response.rb +1 -1
- data/lib/docspring/models/update_submission_data_request_data.rb +79 -79
- data/lib/docspring/models/update_template_data.rb +188 -0
- data/lib/docspring/models/update_template_response.rb +228 -0
- data/lib/docspring/models/upload_template_data.rb +382 -0
- data/lib/docspring/models/{templatesv2_template_document.rb → upload_template_data_document.rb} +3 -3
- data/lib/docspring/models/{templatesv2_template_document_metadata.rb → upload_template_data_document_metadata.rb} +2 -2
- data/lib/docspring/version.rb +2 -2
- data/spec/api/client_integration_spec.rb +14 -2
- data/spec/api/pdf_api_integration_spec.rb +49 -18
- data/spec/api/pdf_api_spec_original.skipped.rb +51 -11
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/add_fields_data_spec.rb +41 -0
- data/spec/models/add_fields_template_response_spec.rb +57 -0
- data/spec/models/authentication_error_spec.rb +1 -1
- data/spec/models/authentication_success_response_spec.rb +1 -1
- data/spec/models/combine_pdfs_data_spec.rb +5 -5
- data/spec/models/combined_submission_action_spec.rb +1 -1
- data/spec/models/combined_submission_data_spec.rb +5 -5
- data/spec/models/combined_submission_spec.rb +7 -1
- data/spec/models/create_combined_submission_response_spec.rb +1 -1
- data/spec/models/create_custom_file_data_spec.rb +1 -1
- data/spec/models/create_custom_file_response_spec.rb +1 -1
- data/spec/models/create_folder_data_spec.rb +1 -1
- data/spec/models/create_html_template_data_spec.rb +41 -0
- data/spec/models/create_submission_batch_response_spec.rb +1 -1
- data/spec/models/create_submission_batch_submissions_response_spec.rb +1 -1
- data/spec/models/create_submission_data_request_data_spec.rb +9 -9
- data/spec/models/create_submission_data_request_token_response_spec.rb +1 -1
- data/spec/models/create_submission_data_request_token_response_token_spec.rb +1 -1
- data/spec/models/create_submission_response_spec.rb +1 -1
- data/spec/models/{create_template_data_spec.rb → create_template_from_upload_data_spec.rb} +7 -7
- data/spec/models/custom_file_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/folder_spec.rb +1 -1
- data/spec/models/folders_folder_spec.rb +1 -1
- data/spec/models/html_template_data_spec.rb +145 -0
- data/spec/models/invalid_request_spec.rb +1 -1
- data/spec/models/move_folder_data_spec.rb +1 -1
- data/spec/models/move_template_data_spec.rb +1 -1
- data/spec/models/pending_template_spec.rb +13 -1
- data/spec/models/rename_folder_data_spec.rb +1 -1
- data/spec/models/submission_action_spec.rb +1 -1
- data/spec/models/submission_batch_data_spec.rb +3 -3
- data/spec/models/submission_batch_spec.rb +1 -1
- data/spec/models/submission_data_batch_request_spec.rb +5 -5
- data/spec/models/submission_data_request_spec.rb +13 -1
- data/spec/models/submission_data_spec.rb +11 -5
- data/spec/models/submission_spec.rb +32 -2
- data/spec/models/{templatesv2_template_spec.rb → template_data_spec.rb} +40 -16
- data/spec/models/template_spec.rb +13 -1
- data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +589 -0
- data/spec/models/update_data_request_response_spec.rb +1 -1
- data/spec/models/update_submission_data_request_data_spec.rb +17 -17
- data/spec/models/update_template_data_spec.rb +41 -0
- data/spec/models/update_template_response_spec.rb +51 -0
- data/spec/models/{templatesv2_template_document_metadata_spec.rb → upload_template_data_document_metadata_spec.rb} +7 -7
- data/spec/models/{templatesv2_template_document_spec.rb → upload_template_data_document_spec.rb} +7 -7
- data/spec/models/upload_template_data_spec.rb +151 -0
- data/spec/spec_helper.rb +1 -1
- metadata +60 -32
- data/.swagger-codegen-ignore +0 -31
- data/.swagger-codegen/VERSION +0 -1
- data/.swagger-revision +0 -1
- data/.travis.yml +0 -8
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 3.3.0
|
|
9
|
+
OpenAPI Generator version: 3.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,23 +18,23 @@ module DocSpring
|
|
|
18
18
|
|
|
19
19
|
attr_accessor :metadata
|
|
20
20
|
|
|
21
|
-
attr_accessor :test
|
|
22
|
-
|
|
23
21
|
attr_accessor :data
|
|
24
22
|
|
|
25
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :test
|
|
26
24
|
|
|
27
25
|
attr_accessor :html
|
|
28
26
|
|
|
27
|
+
attr_accessor :template_id
|
|
28
|
+
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
32
|
:'css' => :'css',
|
|
33
33
|
:'metadata' => :'metadata',
|
|
34
|
-
:'test' => :'test',
|
|
35
34
|
:'data' => :'data',
|
|
36
|
-
:'
|
|
37
|
-
:'html' => :'html'
|
|
35
|
+
:'test' => :'test',
|
|
36
|
+
:'html' => :'html',
|
|
37
|
+
:'template_id' => :'template_id'
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -43,10 +43,10 @@ module DocSpring
|
|
|
43
43
|
{
|
|
44
44
|
:'css' => :'String',
|
|
45
45
|
:'metadata' => :'Object',
|
|
46
|
-
:'test' => :'BOOLEAN',
|
|
47
46
|
:'data' => :'Object',
|
|
48
|
-
:'
|
|
49
|
-
:'html' => :'String'
|
|
47
|
+
:'test' => :'BOOLEAN',
|
|
48
|
+
:'html' => :'String',
|
|
49
|
+
:'template_id' => :'String'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -66,21 +66,21 @@ module DocSpring
|
|
|
66
66
|
self.metadata = attributes[:'metadata']
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
if attributes.has_key?(:'test')
|
|
70
|
-
self.test = attributes[:'test']
|
|
71
|
-
end
|
|
72
|
-
|
|
73
69
|
if attributes.has_key?(:'data')
|
|
74
70
|
self.data = attributes[:'data']
|
|
75
71
|
end
|
|
76
72
|
|
|
77
|
-
if attributes.has_key?(:'
|
|
78
|
-
self.
|
|
73
|
+
if attributes.has_key?(:'test')
|
|
74
|
+
self.test = attributes[:'test']
|
|
79
75
|
end
|
|
80
76
|
|
|
81
77
|
if attributes.has_key?(:'html')
|
|
82
78
|
self.html = attributes[:'html']
|
|
83
79
|
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'template_id')
|
|
82
|
+
self.template_id = attributes[:'template_id']
|
|
83
|
+
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -103,10 +103,10 @@ module DocSpring
|
|
|
103
103
|
self.class == o.class &&
|
|
104
104
|
css == o.css &&
|
|
105
105
|
metadata == o.metadata &&
|
|
106
|
-
test == o.test &&
|
|
107
106
|
data == o.data &&
|
|
108
|
-
|
|
109
|
-
html == o.html
|
|
107
|
+
test == o.test &&
|
|
108
|
+
html == o.html &&
|
|
109
|
+
template_id == o.template_id
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
# @see the `==` method
|
|
@@ -118,7 +118,7 @@ module DocSpring
|
|
|
118
118
|
# Calculates hash code according to all attributes.
|
|
119
119
|
# @return [Fixnum] Hash code
|
|
120
120
|
def hash
|
|
121
|
-
[css, metadata, test,
|
|
121
|
+
[css, metadata, data, test, html, template_id].hash
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 3.3.0
|
|
9
|
+
OpenAPI Generator version: 3.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -48,6 +48,10 @@ module DocSpring
|
|
|
48
48
|
|
|
49
49
|
attr_accessor :auth_phone_number_hash
|
|
50
50
|
|
|
51
|
+
attr_accessor :ip_address
|
|
52
|
+
|
|
53
|
+
attr_accessor :user_agent
|
|
54
|
+
|
|
51
55
|
class EnumAttributeValidator
|
|
52
56
|
attr_reader :datatype
|
|
53
57
|
attr_reader :allowable_values
|
|
@@ -89,7 +93,9 @@ module DocSpring
|
|
|
89
93
|
:'auth_session_id_hash' => :'auth_session_id_hash',
|
|
90
94
|
:'auth_user_id_hash' => :'auth_user_id_hash',
|
|
91
95
|
:'auth_username_hash' => :'auth_username_hash',
|
|
92
|
-
:'auth_phone_number_hash' => :'auth_phone_number_hash'
|
|
96
|
+
:'auth_phone_number_hash' => :'auth_phone_number_hash',
|
|
97
|
+
:'ip_address' => :'ip_address',
|
|
98
|
+
:'user_agent' => :'user_agent'
|
|
93
99
|
}
|
|
94
100
|
end
|
|
95
101
|
|
|
@@ -112,7 +118,9 @@ module DocSpring
|
|
|
112
118
|
:'auth_session_id_hash' => :'String',
|
|
113
119
|
:'auth_user_id_hash' => :'String',
|
|
114
120
|
:'auth_username_hash' => :'String',
|
|
115
|
-
:'auth_phone_number_hash' => :'String'
|
|
121
|
+
:'auth_phone_number_hash' => :'String',
|
|
122
|
+
:'ip_address' => :'String',
|
|
123
|
+
:'user_agent' => :'String'
|
|
116
124
|
}
|
|
117
125
|
end
|
|
118
126
|
|
|
@@ -193,6 +201,14 @@ module DocSpring
|
|
|
193
201
|
if attributes.has_key?(:'auth_phone_number_hash')
|
|
194
202
|
self.auth_phone_number_hash = attributes[:'auth_phone_number_hash']
|
|
195
203
|
end
|
|
204
|
+
|
|
205
|
+
if attributes.has_key?(:'ip_address')
|
|
206
|
+
self.ip_address = attributes[:'ip_address']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.has_key?(:'user_agent')
|
|
210
|
+
self.user_agent = attributes[:'user_agent']
|
|
211
|
+
end
|
|
196
212
|
end
|
|
197
213
|
|
|
198
214
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -203,22 +219,10 @@ module DocSpring
|
|
|
203
219
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
204
220
|
end
|
|
205
221
|
|
|
206
|
-
if @name.nil?
|
|
207
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
if @email.nil?
|
|
211
|
-
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
|
212
|
-
end
|
|
213
|
-
|
|
214
222
|
if @order.nil?
|
|
215
223
|
invalid_properties.push('invalid value for "order", order cannot be nil.')
|
|
216
224
|
end
|
|
217
225
|
|
|
218
|
-
if @fields.nil?
|
|
219
|
-
invalid_properties.push('invalid value for "fields", fields cannot be nil.')
|
|
220
|
-
end
|
|
221
|
-
|
|
222
226
|
if @metadata.nil?
|
|
223
227
|
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
224
228
|
end
|
|
@@ -234,10 +238,7 @@ module DocSpring
|
|
|
234
238
|
# @return true if the model is valid
|
|
235
239
|
def valid?
|
|
236
240
|
return false if @id.nil?
|
|
237
|
-
return false if @name.nil?
|
|
238
|
-
return false if @email.nil?
|
|
239
241
|
return false if @order.nil?
|
|
240
|
-
return false if @fields.nil?
|
|
241
242
|
return false if @metadata.nil?
|
|
242
243
|
return false if @state.nil?
|
|
243
244
|
state_validator = EnumAttributeValidator.new('String', ['pending', 'completed'])
|
|
@@ -300,7 +301,9 @@ module DocSpring
|
|
|
300
301
|
auth_session_id_hash == o.auth_session_id_hash &&
|
|
301
302
|
auth_user_id_hash == o.auth_user_id_hash &&
|
|
302
303
|
auth_username_hash == o.auth_username_hash &&
|
|
303
|
-
auth_phone_number_hash == o.auth_phone_number_hash
|
|
304
|
+
auth_phone_number_hash == o.auth_phone_number_hash &&
|
|
305
|
+
ip_address == o.ip_address &&
|
|
306
|
+
user_agent == o.user_agent
|
|
304
307
|
end
|
|
305
308
|
|
|
306
309
|
# @see the `==` method
|
|
@@ -312,7 +315,7 @@ module DocSpring
|
|
|
312
315
|
# Calculates hash code according to all attributes.
|
|
313
316
|
# @return [Fixnum] Hash code
|
|
314
317
|
def hash
|
|
315
|
-
[id, name, email, order, fields, metadata, state, viewed_at, completed_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash].hash
|
|
318
|
+
[id, name, email, order, fields, metadata, state, viewed_at, completed_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent].hash
|
|
316
319
|
end
|
|
317
320
|
|
|
318
321
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 3.3.0
|
|
9
|
+
OpenAPI Generator version: 3.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -24,6 +24,8 @@ module DocSpring
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :allow_additional_properties
|
|
26
26
|
|
|
27
|
+
attr_accessor :description
|
|
28
|
+
|
|
27
29
|
attr_accessor :public_submissions
|
|
28
30
|
|
|
29
31
|
attr_accessor :slack_webhook_url
|
|
@@ -46,6 +48,8 @@ module DocSpring
|
|
|
46
48
|
|
|
47
49
|
attr_accessor :page_dimensions
|
|
48
50
|
|
|
51
|
+
attr_accessor :locked
|
|
52
|
+
|
|
49
53
|
attr_accessor :redirect_url
|
|
50
54
|
|
|
51
55
|
attr_accessor :document_url
|
|
@@ -80,6 +84,7 @@ module DocSpring
|
|
|
80
84
|
:'parent_folder_id' => :'parent_folder_id',
|
|
81
85
|
:'expire_after' => :'expire_after',
|
|
82
86
|
:'allow_additional_properties' => :'allow_additional_properties',
|
|
87
|
+
:'description' => :'description',
|
|
83
88
|
:'public_submissions' => :'public_submissions',
|
|
84
89
|
:'slack_webhook_url' => :'slack_webhook_url',
|
|
85
90
|
:'path' => :'path',
|
|
@@ -91,6 +96,7 @@ module DocSpring
|
|
|
91
96
|
:'template_type' => :'template_type',
|
|
92
97
|
:'id' => :'id',
|
|
93
98
|
:'page_dimensions' => :'page_dimensions',
|
|
99
|
+
:'locked' => :'locked',
|
|
94
100
|
:'redirect_url' => :'redirect_url',
|
|
95
101
|
:'document_url' => :'document_url'
|
|
96
102
|
}
|
|
@@ -104,6 +110,7 @@ module DocSpring
|
|
|
104
110
|
:'parent_folder_id' => :'String',
|
|
105
111
|
:'expire_after' => :'Float',
|
|
106
112
|
:'allow_additional_properties' => :'BOOLEAN',
|
|
113
|
+
:'description' => :'String',
|
|
107
114
|
:'public_submissions' => :'BOOLEAN',
|
|
108
115
|
:'slack_webhook_url' => :'String',
|
|
109
116
|
:'path' => :'String',
|
|
@@ -115,6 +122,7 @@ module DocSpring
|
|
|
115
122
|
:'template_type' => :'String',
|
|
116
123
|
:'id' => :'String',
|
|
117
124
|
:'page_dimensions' => :'Array<Array<Float>>',
|
|
125
|
+
:'locked' => :'BOOLEAN',
|
|
118
126
|
:'redirect_url' => :'String',
|
|
119
127
|
:'document_url' => :'String'
|
|
120
128
|
}
|
|
@@ -148,6 +156,10 @@ module DocSpring
|
|
|
148
156
|
self.allow_additional_properties = attributes[:'allow_additional_properties']
|
|
149
157
|
end
|
|
150
158
|
|
|
159
|
+
if attributes.has_key?(:'description')
|
|
160
|
+
self.description = attributes[:'description']
|
|
161
|
+
end
|
|
162
|
+
|
|
151
163
|
if attributes.has_key?(:'public_submissions')
|
|
152
164
|
self.public_submissions = attributes[:'public_submissions']
|
|
153
165
|
end
|
|
@@ -194,6 +206,10 @@ module DocSpring
|
|
|
194
206
|
end
|
|
195
207
|
end
|
|
196
208
|
|
|
209
|
+
if attributes.has_key?(:'locked')
|
|
210
|
+
self.locked = attributes[:'locked']
|
|
211
|
+
end
|
|
212
|
+
|
|
197
213
|
if attributes.has_key?(:'redirect_url')
|
|
198
214
|
self.redirect_url = attributes[:'redirect_url']
|
|
199
215
|
end
|
|
@@ -238,6 +254,7 @@ module DocSpring
|
|
|
238
254
|
parent_folder_id == o.parent_folder_id &&
|
|
239
255
|
expire_after == o.expire_after &&
|
|
240
256
|
allow_additional_properties == o.allow_additional_properties &&
|
|
257
|
+
description == o.description &&
|
|
241
258
|
public_submissions == o.public_submissions &&
|
|
242
259
|
slack_webhook_url == o.slack_webhook_url &&
|
|
243
260
|
path == o.path &&
|
|
@@ -249,6 +266,7 @@ module DocSpring
|
|
|
249
266
|
template_type == o.template_type &&
|
|
250
267
|
id == o.id &&
|
|
251
268
|
page_dimensions == o.page_dimensions &&
|
|
269
|
+
locked == o.locked &&
|
|
252
270
|
redirect_url == o.redirect_url &&
|
|
253
271
|
document_url == o.document_url
|
|
254
272
|
end
|
|
@@ -262,7 +280,7 @@ module DocSpring
|
|
|
262
280
|
# Calculates hash code according to all attributes.
|
|
263
281
|
# @return [Fixnum] Hash code
|
|
264
282
|
def hash
|
|
265
|
-
[expiration_interval, webhook_url, parent_folder_id, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, path, public_web_form, editable_submissions, expire_submissions, name, permanent_document_url, template_type, id, page_dimensions, redirect_url, document_url].hash
|
|
283
|
+
[expiration_interval, webhook_url, parent_folder_id, expire_after, allow_additional_properties, description, public_submissions, slack_webhook_url, path, public_web_form, editable_submissions, expire_submissions, name, permanent_document_url, template_type, id, page_dimensions, locked, redirect_url, document_url].hash
|
|
266
284
|
end
|
|
267
285
|
|
|
268
286
|
# Builds the object from hash
|
|
@@ -6,35 +6,43 @@
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 3.3.0
|
|
9
|
+
OpenAPI Generator version: 3.3.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module DocSpring
|
|
16
|
-
class
|
|
16
|
+
class TemplateData
|
|
17
17
|
attr_accessor :expiration_interval
|
|
18
18
|
|
|
19
|
-
attr_accessor :public_web_form
|
|
20
|
-
|
|
21
19
|
attr_accessor :webhook_url
|
|
22
20
|
|
|
23
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :scss
|
|
24
22
|
|
|
25
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :allow_additional_properties
|
|
26
24
|
|
|
27
25
|
attr_accessor :expire_after
|
|
28
26
|
|
|
29
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :description
|
|
30
28
|
|
|
31
|
-
attr_accessor :
|
|
29
|
+
attr_accessor :public_submissions
|
|
30
|
+
|
|
31
|
+
attr_accessor :slack_webhook_url
|
|
32
|
+
|
|
33
|
+
attr_accessor :header_html
|
|
34
|
+
|
|
35
|
+
attr_accessor :public_web_form
|
|
36
|
+
|
|
37
|
+
attr_accessor :editable_submissions
|
|
38
|
+
|
|
39
|
+
attr_accessor :expire_submissions
|
|
32
40
|
|
|
33
41
|
attr_accessor :name
|
|
34
42
|
|
|
35
|
-
attr_accessor :
|
|
43
|
+
attr_accessor :footer_html
|
|
36
44
|
|
|
37
|
-
attr_accessor :
|
|
45
|
+
attr_accessor :html
|
|
38
46
|
|
|
39
47
|
attr_accessor :redirect_url
|
|
40
48
|
|
|
@@ -64,16 +72,20 @@ module DocSpring
|
|
|
64
72
|
def self.attribute_map
|
|
65
73
|
{
|
|
66
74
|
:'expiration_interval' => :'expiration_interval',
|
|
67
|
-
:'public_web_form' => :'public_web_form',
|
|
68
75
|
:'webhook_url' => :'webhook_url',
|
|
69
|
-
:'
|
|
70
|
-
:'expire_submissions' => :'expire_submissions',
|
|
71
|
-
:'expire_after' => :'expire_after',
|
|
76
|
+
:'scss' => :'scss',
|
|
72
77
|
:'allow_additional_properties' => :'allow_additional_properties',
|
|
73
|
-
:'
|
|
74
|
-
:'
|
|
78
|
+
:'expire_after' => :'expire_after',
|
|
79
|
+
:'description' => :'description',
|
|
75
80
|
:'public_submissions' => :'public_submissions',
|
|
76
81
|
:'slack_webhook_url' => :'slack_webhook_url',
|
|
82
|
+
:'header_html' => :'header_html',
|
|
83
|
+
:'public_web_form' => :'public_web_form',
|
|
84
|
+
:'editable_submissions' => :'editable_submissions',
|
|
85
|
+
:'expire_submissions' => :'expire_submissions',
|
|
86
|
+
:'name' => :'name',
|
|
87
|
+
:'footer_html' => :'footer_html',
|
|
88
|
+
:'html' => :'html',
|
|
77
89
|
:'redirect_url' => :'redirect_url'
|
|
78
90
|
}
|
|
79
91
|
end
|
|
@@ -82,16 +94,20 @@ module DocSpring
|
|
|
82
94
|
def self.openapi_types
|
|
83
95
|
{
|
|
84
96
|
:'expiration_interval' => :'String',
|
|
85
|
-
:'public_web_form' => :'BOOLEAN',
|
|
86
97
|
:'webhook_url' => :'String',
|
|
87
|
-
:'
|
|
88
|
-
:'expire_submissions' => :'BOOLEAN',
|
|
89
|
-
:'expire_after' => :'Float',
|
|
98
|
+
:'scss' => :'String',
|
|
90
99
|
:'allow_additional_properties' => :'BOOLEAN',
|
|
91
|
-
:'
|
|
92
|
-
:'
|
|
100
|
+
:'expire_after' => :'Float',
|
|
101
|
+
:'description' => :'String',
|
|
93
102
|
:'public_submissions' => :'BOOLEAN',
|
|
94
103
|
:'slack_webhook_url' => :'String',
|
|
104
|
+
:'header_html' => :'String',
|
|
105
|
+
:'public_web_form' => :'BOOLEAN',
|
|
106
|
+
:'editable_submissions' => :'BOOLEAN',
|
|
107
|
+
:'expire_submissions' => :'BOOLEAN',
|
|
108
|
+
:'name' => :'String',
|
|
109
|
+
:'footer_html' => :'String',
|
|
110
|
+
:'html' => :'String',
|
|
95
111
|
:'redirect_url' => :'String'
|
|
96
112
|
}
|
|
97
113
|
end
|
|
@@ -108,44 +124,60 @@ module DocSpring
|
|
|
108
124
|
self.expiration_interval = attributes[:'expiration_interval']
|
|
109
125
|
end
|
|
110
126
|
|
|
111
|
-
if attributes.has_key?(:'public_web_form')
|
|
112
|
-
self.public_web_form = attributes[:'public_web_form']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
127
|
if attributes.has_key?(:'webhook_url')
|
|
116
128
|
self.webhook_url = attributes[:'webhook_url']
|
|
117
129
|
end
|
|
118
130
|
|
|
119
|
-
if attributes.has_key?(:'
|
|
120
|
-
self.
|
|
131
|
+
if attributes.has_key?(:'scss')
|
|
132
|
+
self.scss = attributes[:'scss']
|
|
121
133
|
end
|
|
122
134
|
|
|
123
|
-
if attributes.has_key?(:'
|
|
124
|
-
self.
|
|
135
|
+
if attributes.has_key?(:'allow_additional_properties')
|
|
136
|
+
self.allow_additional_properties = attributes[:'allow_additional_properties']
|
|
125
137
|
end
|
|
126
138
|
|
|
127
139
|
if attributes.has_key?(:'expire_after')
|
|
128
140
|
self.expire_after = attributes[:'expire_after']
|
|
129
141
|
end
|
|
130
142
|
|
|
131
|
-
if attributes.has_key?(:'
|
|
132
|
-
self.
|
|
143
|
+
if attributes.has_key?(:'description')
|
|
144
|
+
self.description = attributes[:'description']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.has_key?(:'public_submissions')
|
|
148
|
+
self.public_submissions = attributes[:'public_submissions']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.has_key?(:'slack_webhook_url')
|
|
152
|
+
self.slack_webhook_url = attributes[:'slack_webhook_url']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.has_key?(:'header_html')
|
|
156
|
+
self.header_html = attributes[:'header_html']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.has_key?(:'public_web_form')
|
|
160
|
+
self.public_web_form = attributes[:'public_web_form']
|
|
133
161
|
end
|
|
134
162
|
|
|
135
|
-
if attributes.has_key?(:'
|
|
136
|
-
self.
|
|
163
|
+
if attributes.has_key?(:'editable_submissions')
|
|
164
|
+
self.editable_submissions = attributes[:'editable_submissions']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.has_key?(:'expire_submissions')
|
|
168
|
+
self.expire_submissions = attributes[:'expire_submissions']
|
|
137
169
|
end
|
|
138
170
|
|
|
139
171
|
if attributes.has_key?(:'name')
|
|
140
172
|
self.name = attributes[:'name']
|
|
141
173
|
end
|
|
142
174
|
|
|
143
|
-
if attributes.has_key?(:'
|
|
144
|
-
self.
|
|
175
|
+
if attributes.has_key?(:'footer_html')
|
|
176
|
+
self.footer_html = attributes[:'footer_html']
|
|
145
177
|
end
|
|
146
178
|
|
|
147
|
-
if attributes.has_key?(:'
|
|
148
|
-
self.
|
|
179
|
+
if attributes.has_key?(:'html')
|
|
180
|
+
self.html = attributes[:'html']
|
|
149
181
|
end
|
|
150
182
|
|
|
151
183
|
if attributes.has_key?(:'redirect_url')
|
|
@@ -184,16 +216,20 @@ module DocSpring
|
|
|
184
216
|
return true if self.equal?(o)
|
|
185
217
|
self.class == o.class &&
|
|
186
218
|
expiration_interval == o.expiration_interval &&
|
|
187
|
-
public_web_form == o.public_web_form &&
|
|
188
219
|
webhook_url == o.webhook_url &&
|
|
189
|
-
|
|
190
|
-
expire_submissions == o.expire_submissions &&
|
|
191
|
-
expire_after == o.expire_after &&
|
|
220
|
+
scss == o.scss &&
|
|
192
221
|
allow_additional_properties == o.allow_additional_properties &&
|
|
193
|
-
|
|
194
|
-
|
|
222
|
+
expire_after == o.expire_after &&
|
|
223
|
+
description == o.description &&
|
|
195
224
|
public_submissions == o.public_submissions &&
|
|
196
225
|
slack_webhook_url == o.slack_webhook_url &&
|
|
226
|
+
header_html == o.header_html &&
|
|
227
|
+
public_web_form == o.public_web_form &&
|
|
228
|
+
editable_submissions == o.editable_submissions &&
|
|
229
|
+
expire_submissions == o.expire_submissions &&
|
|
230
|
+
name == o.name &&
|
|
231
|
+
footer_html == o.footer_html &&
|
|
232
|
+
html == o.html &&
|
|
197
233
|
redirect_url == o.redirect_url
|
|
198
234
|
end
|
|
199
235
|
|
|
@@ -206,7 +242,7 @@ module DocSpring
|
|
|
206
242
|
# Calculates hash code according to all attributes.
|
|
207
243
|
# @return [Fixnum] Hash code
|
|
208
244
|
def hash
|
|
209
|
-
[expiration_interval,
|
|
245
|
+
[expiration_interval, webhook_url, scss, allow_additional_properties, expire_after, description, public_submissions, slack_webhook_url, header_html, public_web_form, editable_submissions, expire_submissions, name, footer_html, html, redirect_url].hash
|
|
210
246
|
end
|
|
211
247
|
|
|
212
248
|
# Builds the object from hash
|