docspring 1.2.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.openapi-generator/VERSION +1 -1
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +2 -7
- data/LICENSE +1 -1
- data/README.md +6 -4
- data/docs/CombinePdfsData.md +4 -4
- data/docs/CombinedSubmissionData.md +3 -3
- data/docs/CopyTemplateData.md +9 -0
- data/docs/CreateSubmissionDataRequestData.md +2 -2
- data/docs/HtmlTemplateData.md +2 -2
- data/docs/MoveTemplateData.md +1 -1
- data/docs/PDFApi.md +53 -1
- data/docs/Submission.md +3 -0
- data/docs/SubmissionBatchData.md +2 -2
- data/docs/SubmissionData.md +4 -4
- data/docs/SubmissionDataBatchRequest.md +2 -2
- data/docs/SubmissionDataRequest.md +1 -0
- data/docs/TemplateData.md +2 -2
- data/docs/TemplatestemplateIdaddFieldsFields.md +9 -9
- data/docs/UpdateSubmissionDataRequestData.md +9 -9
- data/docs/UploadTemplateData.md +2 -2
- data/docspring.gemspec +2 -3
- data/lib/docspring.rb +2 -1
- data/lib/docspring/api/pdf_api.rb +60 -1
- data/lib/docspring/api_client.rb +2 -2
- data/lib/docspring/api_error.rb +1 -1
- data/lib/docspring/configuration.rb +2 -3
- data/lib/docspring/models/add_fields_data.rb +1 -1
- data/lib/docspring/models/add_fields_template_response.rb +1 -1
- 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 +1 -1
- data/lib/docspring/models/combined_submission_action.rb +1 -6
- data/lib/docspring/models/combined_submission_data.rb +23 -23
- data/lib/docspring/models/copy_template_data.rb +197 -0
- 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_html_template_data.rb +1 -1
- 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 +1 -1
- 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 +20 -20
- 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 +6 -1
- data/lib/docspring/models/pending_template.rb +1 -1
- data/lib/docspring/models/rename_folder_data.rb +1 -1
- data/lib/docspring/models/submission.rb +32 -5
- 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 -34
- data/lib/docspring/models/submission_data_batch_request.rb +20 -20
- data/lib/docspring/models/submission_data_request.rb +14 -15
- data/lib/docspring/models/template.rb +1 -1
- data/lib/docspring/models/template_data.rb +20 -20
- data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +107 -107
- 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 +1 -1
- data/lib/docspring/models/update_template_response.rb +1 -1
- data/lib/docspring/models/upload_template_data.rb +20 -20
- data/lib/docspring/models/upload_template_data_document.rb +1 -1
- data/lib/docspring/models/upload_template_data_document_metadata.rb +1 -1
- data/lib/docspring/version.rb +2 -2
- data/spec/api/pdf_api_spec_original.skipped.rb +16 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/add_fields_data_spec.rb +1 -1
- data/spec/models/add_fields_template_response_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/copy_template_data_spec.rb +47 -0
- 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 +1 -1
- 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_from_upload_data_spec.rb +1 -1
- 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 +5 -5
- 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 +1 -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 +7 -1
- data/spec/models/submission_data_spec.rb +7 -7
- data/spec/models/submission_spec.rb +19 -1
- data/spec/models/template_data_spec.rb +5 -5
- data/spec/models/template_spec.rb +1 -1
- data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +27 -27
- 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 +1 -1
- data/spec/models/update_template_response_spec.rb +1 -1
- data/spec/models/upload_template_data_document_metadata_spec.rb +1 -1
- data/spec/models/upload_template_data_document_spec.rb +1 -1
- data/spec/models/upload_template_data_spec.rb +6 -6
- data/spec/spec_helper.rb +1 -1
- metadata +11 -27
@@ -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
|
|
@@ -14,31 +14,31 @@ require 'date'
|
|
14
14
|
|
15
15
|
module DocSpring
|
16
16
|
class UpdateSubmissionDataRequestData
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :auth_phone_number_hash
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :auth_provider
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :auth_second_factor_type
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :auth_session_id_hash
|
24
24
|
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :auth_session_started_at
|
26
26
|
|
27
27
|
attr_accessor :auth_type
|
28
28
|
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :auth_user_id_hash
|
30
30
|
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :auth_username_hash
|
32
32
|
|
33
|
-
attr_accessor :
|
33
|
+
attr_accessor :email
|
34
34
|
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :fields
|
36
36
|
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :metadata
|
38
38
|
|
39
|
-
attr_accessor :
|
39
|
+
attr_accessor :name
|
40
40
|
|
41
|
-
attr_accessor :
|
41
|
+
attr_accessor :order
|
42
42
|
|
43
43
|
class EnumAttributeValidator
|
44
44
|
attr_reader :datatype
|
@@ -65,38 +65,38 @@ module DocSpring
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
66
|
def self.attribute_map
|
67
67
|
{
|
68
|
-
:'
|
69
|
-
:'email' => :'email',
|
70
|
-
:'order' => :'order',
|
71
|
-
:'fields' => :'fields',
|
72
|
-
:'metadata' => :'metadata',
|
73
|
-
:'auth_type' => :'auth_type',
|
74
|
-
:'auth_second_factor_type' => :'auth_second_factor_type',
|
68
|
+
:'auth_phone_number_hash' => :'auth_phone_number_hash',
|
75
69
|
:'auth_provider' => :'auth_provider',
|
76
|
-
:'
|
70
|
+
:'auth_second_factor_type' => :'auth_second_factor_type',
|
77
71
|
:'auth_session_id_hash' => :'auth_session_id_hash',
|
72
|
+
:'auth_session_started_at' => :'auth_session_started_at',
|
73
|
+
:'auth_type' => :'auth_type',
|
78
74
|
:'auth_user_id_hash' => :'auth_user_id_hash',
|
79
75
|
:'auth_username_hash' => :'auth_username_hash',
|
80
|
-
:'
|
76
|
+
:'email' => :'email',
|
77
|
+
:'fields' => :'fields',
|
78
|
+
:'metadata' => :'metadata',
|
79
|
+
:'name' => :'name',
|
80
|
+
:'order' => :'order'
|
81
81
|
}
|
82
82
|
end
|
83
83
|
|
84
84
|
# Attribute type mapping.
|
85
85
|
def self.openapi_types
|
86
86
|
{
|
87
|
-
:'
|
88
|
-
:'email' => :'String',
|
89
|
-
:'order' => :'Integer',
|
90
|
-
:'fields' => :'Array<String>',
|
91
|
-
:'metadata' => :'Object',
|
92
|
-
:'auth_type' => :'String',
|
93
|
-
:'auth_second_factor_type' => :'String',
|
87
|
+
:'auth_phone_number_hash' => :'String',
|
94
88
|
:'auth_provider' => :'String',
|
95
|
-
:'
|
89
|
+
:'auth_second_factor_type' => :'String',
|
96
90
|
:'auth_session_id_hash' => :'String',
|
91
|
+
:'auth_session_started_at' => :'String',
|
92
|
+
:'auth_type' => :'String',
|
97
93
|
:'auth_user_id_hash' => :'String',
|
98
94
|
:'auth_username_hash' => :'String',
|
99
|
-
:'
|
95
|
+
:'email' => :'String',
|
96
|
+
:'fields' => :'Array<String>',
|
97
|
+
:'metadata' => :'Object',
|
98
|
+
:'name' => :'String',
|
99
|
+
:'order' => :'Integer'
|
100
100
|
}
|
101
101
|
end
|
102
102
|
|
@@ -108,58 +108,58 @@ module DocSpring
|
|
108
108
|
# convert string to symbol for hash key
|
109
109
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
110
110
|
|
111
|
-
if attributes.has_key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.has_key?(:'auth_phone_number_hash')
|
112
|
+
self.auth_phone_number_hash = attributes[:'auth_phone_number_hash']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.has_key?(:'
|
116
|
-
self.
|
115
|
+
if attributes.has_key?(:'auth_provider')
|
116
|
+
self.auth_provider = attributes[:'auth_provider']
|
117
117
|
end
|
118
118
|
|
119
|
-
if attributes.has_key?(:'
|
120
|
-
self.
|
119
|
+
if attributes.has_key?(:'auth_second_factor_type')
|
120
|
+
self.auth_second_factor_type = attributes[:'auth_second_factor_type']
|
121
121
|
end
|
122
122
|
|
123
|
-
if attributes.has_key?(:'
|
124
|
-
|
125
|
-
self.fields = value
|
126
|
-
end
|
123
|
+
if attributes.has_key?(:'auth_session_id_hash')
|
124
|
+
self.auth_session_id_hash = attributes[:'auth_session_id_hash']
|
127
125
|
end
|
128
126
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.
|
127
|
+
if attributes.has_key?(:'auth_session_started_at')
|
128
|
+
self.auth_session_started_at = attributes[:'auth_session_started_at']
|
131
129
|
end
|
132
130
|
|
133
131
|
if attributes.has_key?(:'auth_type')
|
134
132
|
self.auth_type = attributes[:'auth_type']
|
135
133
|
end
|
136
134
|
|
137
|
-
if attributes.has_key?(:'
|
138
|
-
self.
|
135
|
+
if attributes.has_key?(:'auth_user_id_hash')
|
136
|
+
self.auth_user_id_hash = attributes[:'auth_user_id_hash']
|
139
137
|
end
|
140
138
|
|
141
|
-
if attributes.has_key?(:'
|
142
|
-
self.
|
139
|
+
if attributes.has_key?(:'auth_username_hash')
|
140
|
+
self.auth_username_hash = attributes[:'auth_username_hash']
|
143
141
|
end
|
144
142
|
|
145
|
-
if attributes.has_key?(:'
|
146
|
-
self.
|
143
|
+
if attributes.has_key?(:'email')
|
144
|
+
self.email = attributes[:'email']
|
147
145
|
end
|
148
146
|
|
149
|
-
if attributes.has_key?(:'
|
150
|
-
|
147
|
+
if attributes.has_key?(:'fields')
|
148
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
149
|
+
self.fields = value
|
150
|
+
end
|
151
151
|
end
|
152
152
|
|
153
|
-
if attributes.has_key?(:'
|
154
|
-
self.
|
153
|
+
if attributes.has_key?(:'metadata')
|
154
|
+
self.metadata = attributes[:'metadata']
|
155
155
|
end
|
156
156
|
|
157
|
-
if attributes.has_key?(:'
|
158
|
-
self.
|
157
|
+
if attributes.has_key?(:'name')
|
158
|
+
self.name = attributes[:'name']
|
159
159
|
end
|
160
160
|
|
161
|
-
if attributes.has_key?(:'
|
162
|
-
self.
|
161
|
+
if attributes.has_key?(:'order')
|
162
|
+
self.order = attributes[:'order']
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -173,23 +173,13 @@ module DocSpring
|
|
173
173
|
# Check to see if the all the properties in the model are valid
|
174
174
|
# @return true if the model is valid
|
175
175
|
def valid?
|
176
|
-
auth_type_validator = EnumAttributeValidator.new('String', ['none', 'password', 'oauth', 'email_link', 'phone_number', 'ldap', 'saml'])
|
177
|
-
return false unless auth_type_validator.valid?(@auth_type)
|
178
176
|
auth_second_factor_type_validator = EnumAttributeValidator.new('String', ['none', 'phone_number', 'totp', 'mobile_push', 'security_key', 'fingerprint'])
|
179
177
|
return false unless auth_second_factor_type_validator.valid?(@auth_second_factor_type)
|
178
|
+
auth_type_validator = EnumAttributeValidator.new('String', ['none', 'password', 'oauth', 'email_link', 'phone_number', 'ldap', 'saml'])
|
179
|
+
return false unless auth_type_validator.valid?(@auth_type)
|
180
180
|
true
|
181
181
|
end
|
182
182
|
|
183
|
-
# Custom attribute writer method checking allowed values (enum).
|
184
|
-
# @param [Object] auth_type Object to be assigned
|
185
|
-
def auth_type=(auth_type)
|
186
|
-
validator = EnumAttributeValidator.new('String', ['none', 'password', 'oauth', 'email_link', 'phone_number', 'ldap', 'saml'])
|
187
|
-
unless validator.valid?(auth_type)
|
188
|
-
fail ArgumentError, 'invalid value for "auth_type", must be one of #{validator.allowable_values}.'
|
189
|
-
end
|
190
|
-
@auth_type = auth_type
|
191
|
-
end
|
192
|
-
|
193
183
|
# Custom attribute writer method checking allowed values (enum).
|
194
184
|
# @param [Object] auth_second_factor_type Object to be assigned
|
195
185
|
def auth_second_factor_type=(auth_second_factor_type)
|
@@ -200,24 +190,34 @@ module DocSpring
|
|
200
190
|
@auth_second_factor_type = auth_second_factor_type
|
201
191
|
end
|
202
192
|
|
193
|
+
# Custom attribute writer method checking allowed values (enum).
|
194
|
+
# @param [Object] auth_type Object to be assigned
|
195
|
+
def auth_type=(auth_type)
|
196
|
+
validator = EnumAttributeValidator.new('String', ['none', 'password', 'oauth', 'email_link', 'phone_number', 'ldap', 'saml'])
|
197
|
+
unless validator.valid?(auth_type)
|
198
|
+
fail ArgumentError, 'invalid value for "auth_type", must be one of #{validator.allowable_values}.'
|
199
|
+
end
|
200
|
+
@auth_type = auth_type
|
201
|
+
end
|
202
|
+
|
203
203
|
# Checks equality by comparing each attribute.
|
204
204
|
# @param [Object] Object to be compared
|
205
205
|
def ==(o)
|
206
206
|
return true if self.equal?(o)
|
207
207
|
self.class == o.class &&
|
208
|
-
|
209
|
-
email == o.email &&
|
210
|
-
order == o.order &&
|
211
|
-
fields == o.fields &&
|
212
|
-
metadata == o.metadata &&
|
213
|
-
auth_type == o.auth_type &&
|
214
|
-
auth_second_factor_type == o.auth_second_factor_type &&
|
208
|
+
auth_phone_number_hash == o.auth_phone_number_hash &&
|
215
209
|
auth_provider == o.auth_provider &&
|
216
|
-
|
210
|
+
auth_second_factor_type == o.auth_second_factor_type &&
|
217
211
|
auth_session_id_hash == o.auth_session_id_hash &&
|
212
|
+
auth_session_started_at == o.auth_session_started_at &&
|
213
|
+
auth_type == o.auth_type &&
|
218
214
|
auth_user_id_hash == o.auth_user_id_hash &&
|
219
215
|
auth_username_hash == o.auth_username_hash &&
|
220
|
-
|
216
|
+
email == o.email &&
|
217
|
+
fields == o.fields &&
|
218
|
+
metadata == o.metadata &&
|
219
|
+
name == o.name &&
|
220
|
+
order == o.order
|
221
221
|
end
|
222
222
|
|
223
223
|
# @see the `==` method
|
@@ -229,7 +229,7 @@ module DocSpring
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Fixnum] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[auth_phone_number_hash, auth_provider, auth_second_factor_type, auth_session_id_hash, auth_session_started_at, auth_type, auth_user_id_hash, auth_username_hash, email, fields, metadata, name, order].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# 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
|
|
@@ -20,12 +20,12 @@ module DocSpring
|
|
20
20
|
|
21
21
|
attr_accessor :scss
|
22
22
|
|
23
|
-
attr_accessor :expire_after
|
24
|
-
|
25
23
|
attr_accessor :allow_additional_properties
|
26
24
|
|
27
25
|
attr_accessor :document
|
28
26
|
|
27
|
+
attr_accessor :expire_after
|
28
|
+
|
29
29
|
attr_accessor :description
|
30
30
|
|
31
31
|
attr_accessor :public_submissions
|
@@ -42,10 +42,10 @@ module DocSpring
|
|
42
42
|
|
43
43
|
attr_accessor :name
|
44
44
|
|
45
|
-
attr_accessor :html
|
46
|
-
|
47
45
|
attr_accessor :footer_html
|
48
46
|
|
47
|
+
attr_accessor :html
|
48
|
+
|
49
49
|
attr_accessor :template_type
|
50
50
|
|
51
51
|
attr_accessor :redirect_url
|
@@ -78,9 +78,9 @@ module DocSpring
|
|
78
78
|
:'expiration_interval' => :'expiration_interval',
|
79
79
|
:'webhook_url' => :'webhook_url',
|
80
80
|
:'scss' => :'scss',
|
81
|
-
:'expire_after' => :'expire_after',
|
82
81
|
:'allow_additional_properties' => :'allow_additional_properties',
|
83
82
|
:'document' => :'document',
|
83
|
+
:'expire_after' => :'expire_after',
|
84
84
|
:'description' => :'description',
|
85
85
|
:'public_submissions' => :'public_submissions',
|
86
86
|
:'slack_webhook_url' => :'slack_webhook_url',
|
@@ -89,8 +89,8 @@ module DocSpring
|
|
89
89
|
:'editable_submissions' => :'editable_submissions',
|
90
90
|
:'expire_submissions' => :'expire_submissions',
|
91
91
|
:'name' => :'name',
|
92
|
-
:'html' => :'html',
|
93
92
|
:'footer_html' => :'footer_html',
|
93
|
+
:'html' => :'html',
|
94
94
|
:'template_type' => :'template_type',
|
95
95
|
:'redirect_url' => :'redirect_url'
|
96
96
|
}
|
@@ -102,9 +102,9 @@ module DocSpring
|
|
102
102
|
:'expiration_interval' => :'String',
|
103
103
|
:'webhook_url' => :'String',
|
104
104
|
:'scss' => :'String',
|
105
|
-
:'expire_after' => :'Float',
|
106
105
|
:'allow_additional_properties' => :'BOOLEAN',
|
107
106
|
:'document' => :'UploadTemplateDataDocument',
|
107
|
+
:'expire_after' => :'Float',
|
108
108
|
:'description' => :'String',
|
109
109
|
:'public_submissions' => :'BOOLEAN',
|
110
110
|
:'slack_webhook_url' => :'String',
|
@@ -113,8 +113,8 @@ module DocSpring
|
|
113
113
|
:'editable_submissions' => :'BOOLEAN',
|
114
114
|
:'expire_submissions' => :'BOOLEAN',
|
115
115
|
:'name' => :'String',
|
116
|
-
:'html' => :'String',
|
117
116
|
:'footer_html' => :'String',
|
117
|
+
:'html' => :'String',
|
118
118
|
:'template_type' => :'String',
|
119
119
|
:'redirect_url' => :'String'
|
120
120
|
}
|
@@ -140,10 +140,6 @@ module DocSpring
|
|
140
140
|
self.scss = attributes[:'scss']
|
141
141
|
end
|
142
142
|
|
143
|
-
if attributes.has_key?(:'expire_after')
|
144
|
-
self.expire_after = attributes[:'expire_after']
|
145
|
-
end
|
146
|
-
|
147
143
|
if attributes.has_key?(:'allow_additional_properties')
|
148
144
|
self.allow_additional_properties = attributes[:'allow_additional_properties']
|
149
145
|
end
|
@@ -152,6 +148,10 @@ module DocSpring
|
|
152
148
|
self.document = attributes[:'document']
|
153
149
|
end
|
154
150
|
|
151
|
+
if attributes.has_key?(:'expire_after')
|
152
|
+
self.expire_after = attributes[:'expire_after']
|
153
|
+
end
|
154
|
+
|
155
155
|
if attributes.has_key?(:'description')
|
156
156
|
self.description = attributes[:'description']
|
157
157
|
end
|
@@ -184,14 +184,14 @@ module DocSpring
|
|
184
184
|
self.name = attributes[:'name']
|
185
185
|
end
|
186
186
|
|
187
|
-
if attributes.has_key?(:'html')
|
188
|
-
self.html = attributes[:'html']
|
189
|
-
end
|
190
|
-
|
191
187
|
if attributes.has_key?(:'footer_html')
|
192
188
|
self.footer_html = attributes[:'footer_html']
|
193
189
|
end
|
194
190
|
|
191
|
+
if attributes.has_key?(:'html')
|
192
|
+
self.html = attributes[:'html']
|
193
|
+
end
|
194
|
+
|
195
195
|
if attributes.has_key?(:'template_type')
|
196
196
|
self.template_type = attributes[:'template_type']
|
197
197
|
end
|
@@ -246,9 +246,9 @@ module DocSpring
|
|
246
246
|
expiration_interval == o.expiration_interval &&
|
247
247
|
webhook_url == o.webhook_url &&
|
248
248
|
scss == o.scss &&
|
249
|
-
expire_after == o.expire_after &&
|
250
249
|
allow_additional_properties == o.allow_additional_properties &&
|
251
250
|
document == o.document &&
|
251
|
+
expire_after == o.expire_after &&
|
252
252
|
description == o.description &&
|
253
253
|
public_submissions == o.public_submissions &&
|
254
254
|
slack_webhook_url == o.slack_webhook_url &&
|
@@ -257,8 +257,8 @@ module DocSpring
|
|
257
257
|
editable_submissions == o.editable_submissions &&
|
258
258
|
expire_submissions == o.expire_submissions &&
|
259
259
|
name == o.name &&
|
260
|
-
html == o.html &&
|
261
260
|
footer_html == o.footer_html &&
|
261
|
+
html == o.html &&
|
262
262
|
template_type == o.template_type &&
|
263
263
|
redirect_url == o.redirect_url
|
264
264
|
end
|
@@ -272,7 +272,7 @@ module DocSpring
|
|
272
272
|
# Calculates hash code according to all attributes.
|
273
273
|
# @return [Fixnum] Hash code
|
274
274
|
def hash
|
275
|
-
[expiration_interval, webhook_url, scss,
|
275
|
+
[expiration_interval, webhook_url, scss, allow_additional_properties, document, expire_after, description, public_submissions, slack_webhook_url, header_html, public_web_form, editable_submissions, expire_submissions, name, footer_html, html, template_type, redirect_url].hash
|
276
276
|
end
|
277
277
|
|
278
278
|
# Builds the object from hash
|