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
|
|
@@ -20,10 +20,10 @@ 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
|
|
25
|
+
attr_accessor :expire_after
|
26
|
+
|
27
27
|
attr_accessor :description
|
28
28
|
|
29
29
|
attr_accessor :public_submissions
|
@@ -40,10 +40,10 @@ module DocSpring
|
|
40
40
|
|
41
41
|
attr_accessor :name
|
42
42
|
|
43
|
-
attr_accessor :html
|
44
|
-
|
45
43
|
attr_accessor :footer_html
|
46
44
|
|
45
|
+
attr_accessor :html
|
46
|
+
|
47
47
|
attr_accessor :template_type
|
48
48
|
|
49
49
|
attr_accessor :redirect_url
|
@@ -76,8 +76,8 @@ module DocSpring
|
|
76
76
|
:'expiration_interval' => :'expiration_interval',
|
77
77
|
:'webhook_url' => :'webhook_url',
|
78
78
|
:'scss' => :'scss',
|
79
|
-
:'expire_after' => :'expire_after',
|
80
79
|
:'allow_additional_properties' => :'allow_additional_properties',
|
80
|
+
:'expire_after' => :'expire_after',
|
81
81
|
:'description' => :'description',
|
82
82
|
:'public_submissions' => :'public_submissions',
|
83
83
|
:'slack_webhook_url' => :'slack_webhook_url',
|
@@ -86,8 +86,8 @@ module DocSpring
|
|
86
86
|
:'editable_submissions' => :'editable_submissions',
|
87
87
|
:'expire_submissions' => :'expire_submissions',
|
88
88
|
:'name' => :'name',
|
89
|
-
:'html' => :'html',
|
90
89
|
:'footer_html' => :'footer_html',
|
90
|
+
:'html' => :'html',
|
91
91
|
:'template_type' => :'template_type',
|
92
92
|
:'redirect_url' => :'redirect_url'
|
93
93
|
}
|
@@ -99,8 +99,8 @@ module DocSpring
|
|
99
99
|
:'expiration_interval' => :'String',
|
100
100
|
:'webhook_url' => :'String',
|
101
101
|
:'scss' => :'String',
|
102
|
-
:'expire_after' => :'Float',
|
103
102
|
:'allow_additional_properties' => :'BOOLEAN',
|
103
|
+
:'expire_after' => :'Float',
|
104
104
|
:'description' => :'String',
|
105
105
|
:'public_submissions' => :'BOOLEAN',
|
106
106
|
:'slack_webhook_url' => :'String',
|
@@ -109,8 +109,8 @@ module DocSpring
|
|
109
109
|
:'editable_submissions' => :'BOOLEAN',
|
110
110
|
:'expire_submissions' => :'BOOLEAN',
|
111
111
|
:'name' => :'String',
|
112
|
-
:'html' => :'String',
|
113
112
|
:'footer_html' => :'String',
|
113
|
+
:'html' => :'String',
|
114
114
|
:'template_type' => :'String',
|
115
115
|
:'redirect_url' => :'String'
|
116
116
|
}
|
@@ -136,14 +136,14 @@ module DocSpring
|
|
136
136
|
self.scss = attributes[:'scss']
|
137
137
|
end
|
138
138
|
|
139
|
-
if attributes.has_key?(:'expire_after')
|
140
|
-
self.expire_after = attributes[:'expire_after']
|
141
|
-
end
|
142
|
-
|
143
139
|
if attributes.has_key?(:'allow_additional_properties')
|
144
140
|
self.allow_additional_properties = attributes[:'allow_additional_properties']
|
145
141
|
end
|
146
142
|
|
143
|
+
if attributes.has_key?(:'expire_after')
|
144
|
+
self.expire_after = attributes[:'expire_after']
|
145
|
+
end
|
146
|
+
|
147
147
|
if attributes.has_key?(:'description')
|
148
148
|
self.description = attributes[:'description']
|
149
149
|
end
|
@@ -176,14 +176,14 @@ module DocSpring
|
|
176
176
|
self.name = attributes[:'name']
|
177
177
|
end
|
178
178
|
|
179
|
-
if attributes.has_key?(:'html')
|
180
|
-
self.html = attributes[:'html']
|
181
|
-
end
|
182
|
-
|
183
179
|
if attributes.has_key?(:'footer_html')
|
184
180
|
self.footer_html = attributes[:'footer_html']
|
185
181
|
end
|
186
182
|
|
183
|
+
if attributes.has_key?(:'html')
|
184
|
+
self.html = attributes[:'html']
|
185
|
+
end
|
186
|
+
|
187
187
|
if attributes.has_key?(:'template_type')
|
188
188
|
self.template_type = attributes[:'template_type']
|
189
189
|
end
|
@@ -238,8 +238,8 @@ module DocSpring
|
|
238
238
|
expiration_interval == o.expiration_interval &&
|
239
239
|
webhook_url == o.webhook_url &&
|
240
240
|
scss == o.scss &&
|
241
|
-
expire_after == o.expire_after &&
|
242
241
|
allow_additional_properties == o.allow_additional_properties &&
|
242
|
+
expire_after == o.expire_after &&
|
243
243
|
description == o.description &&
|
244
244
|
public_submissions == o.public_submissions &&
|
245
245
|
slack_webhook_url == o.slack_webhook_url &&
|
@@ -248,8 +248,8 @@ module DocSpring
|
|
248
248
|
editable_submissions == o.editable_submissions &&
|
249
249
|
expire_submissions == o.expire_submissions &&
|
250
250
|
name == o.name &&
|
251
|
-
html == o.html &&
|
252
251
|
footer_html == o.footer_html &&
|
252
|
+
html == o.html &&
|
253
253
|
template_type == o.template_type &&
|
254
254
|
redirect_url == o.redirect_url
|
255
255
|
end
|
@@ -263,7 +263,7 @@ module DocSpring
|
|
263
263
|
# Calculates hash code according to all attributes.
|
264
264
|
# @return [Fixnum] Hash code
|
265
265
|
def hash
|
266
|
-
[expiration_interval, webhook_url, scss,
|
266
|
+
[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, template_type, redirect_url].hash
|
267
267
|
end
|
268
268
|
|
269
269
|
# 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
|
|
@@ -47,12 +47,17 @@ module DocSpring
|
|
47
47
|
# @return Array for valid properties with the reasons
|
48
48
|
def list_invalid_properties
|
49
49
|
invalid_properties = Array.new
|
50
|
+
if @parent_folder_id.nil?
|
51
|
+
invalid_properties.push('invalid value for "parent_folder_id", parent_folder_id cannot be nil.')
|
52
|
+
end
|
53
|
+
|
50
54
|
invalid_properties
|
51
55
|
end
|
52
56
|
|
53
57
|
# Check to see if the all the properties in the model are valid
|
54
58
|
# @return true if the model is valid
|
55
59
|
def valid?
|
60
|
+
return false if @parent_folder_id.nil?
|
56
61
|
true
|
57
62
|
end
|
58
63
|
|
@@ -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
|
|
@@ -30,6 +30,8 @@ module DocSpring
|
|
30
30
|
|
31
31
|
attr_accessor :state
|
32
32
|
|
33
|
+
attr_accessor :data
|
34
|
+
|
33
35
|
attr_accessor :metadata
|
34
36
|
|
35
37
|
attr_accessor :truncated_text
|
@@ -46,6 +48,10 @@ module DocSpring
|
|
46
48
|
|
47
49
|
attr_accessor :actions
|
48
50
|
|
51
|
+
attr_accessor :source
|
52
|
+
|
53
|
+
attr_accessor :referrer
|
54
|
+
|
49
55
|
class EnumAttributeValidator
|
50
56
|
attr_reader :datatype
|
51
57
|
attr_reader :allowable_values
|
@@ -79,6 +85,7 @@ module DocSpring
|
|
79
85
|
:'expires_at' => :'expires_at',
|
80
86
|
:'processed_at' => :'processed_at',
|
81
87
|
:'state' => :'state',
|
88
|
+
:'data' => :'data',
|
82
89
|
:'metadata' => :'metadata',
|
83
90
|
:'truncated_text' => :'truncated_text',
|
84
91
|
:'pdf_hash' => :'pdf_hash',
|
@@ -86,7 +93,9 @@ module DocSpring
|
|
86
93
|
:'permanent_download_url' => :'permanent_download_url',
|
87
94
|
:'batch_id' => :'batch_id',
|
88
95
|
:'data_requests' => :'data_requests',
|
89
|
-
:'actions' => :'actions'
|
96
|
+
:'actions' => :'actions',
|
97
|
+
:'source' => :'source',
|
98
|
+
:'referrer' => :'referrer'
|
90
99
|
}
|
91
100
|
end
|
92
101
|
|
@@ -101,6 +110,7 @@ module DocSpring
|
|
101
110
|
:'expires_at' => :'String',
|
102
111
|
:'processed_at' => :'String',
|
103
112
|
:'state' => :'String',
|
113
|
+
:'data' => :'Object',
|
104
114
|
:'metadata' => :'Object',
|
105
115
|
:'truncated_text' => :'Object',
|
106
116
|
:'pdf_hash' => :'String',
|
@@ -108,7 +118,9 @@ module DocSpring
|
|
108
118
|
:'permanent_download_url' => :'String',
|
109
119
|
:'batch_id' => :'String',
|
110
120
|
:'data_requests' => :'Array<SubmissionDataRequest>',
|
111
|
-
:'actions' => :'Array<SubmissionAction>'
|
121
|
+
:'actions' => :'Array<SubmissionAction>',
|
122
|
+
:'source' => :'String',
|
123
|
+
:'referrer' => :'String'
|
112
124
|
}
|
113
125
|
end
|
114
126
|
|
@@ -152,6 +164,10 @@ module DocSpring
|
|
152
164
|
self.state = attributes[:'state']
|
153
165
|
end
|
154
166
|
|
167
|
+
if attributes.has_key?(:'data')
|
168
|
+
self.data = attributes[:'data']
|
169
|
+
end
|
170
|
+
|
155
171
|
if attributes.has_key?(:'metadata')
|
156
172
|
self.metadata = attributes[:'metadata']
|
157
173
|
end
|
@@ -187,6 +203,14 @@ module DocSpring
|
|
187
203
|
self.actions = value
|
188
204
|
end
|
189
205
|
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'source')
|
208
|
+
self.source = attributes[:'source']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'referrer')
|
212
|
+
self.referrer = attributes[:'referrer']
|
213
|
+
end
|
190
214
|
end
|
191
215
|
|
192
216
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -247,6 +271,7 @@ module DocSpring
|
|
247
271
|
expires_at == o.expires_at &&
|
248
272
|
processed_at == o.processed_at &&
|
249
273
|
state == o.state &&
|
274
|
+
data == o.data &&
|
250
275
|
metadata == o.metadata &&
|
251
276
|
truncated_text == o.truncated_text &&
|
252
277
|
pdf_hash == o.pdf_hash &&
|
@@ -254,7 +279,9 @@ module DocSpring
|
|
254
279
|
permanent_download_url == o.permanent_download_url &&
|
255
280
|
batch_id == o.batch_id &&
|
256
281
|
data_requests == o.data_requests &&
|
257
|
-
actions == o.actions
|
282
|
+
actions == o.actions &&
|
283
|
+
source == o.source &&
|
284
|
+
referrer == o.referrer
|
258
285
|
end
|
259
286
|
|
260
287
|
# @see the `==` method
|
@@ -266,7 +293,7 @@ module DocSpring
|
|
266
293
|
# Calculates hash code according to all attributes.
|
267
294
|
# @return [Fixnum] Hash code
|
268
295
|
def hash
|
269
|
-
[id, template_id, test, editable, expired, expires_at, processed_at, state, metadata, truncated_text, pdf_hash, download_url, permanent_download_url, batch_id, data_requests, actions].hash
|
296
|
+
[id, template_id, test, editable, expired, expires_at, processed_at, state, data, metadata, truncated_text, pdf_hash, download_url, permanent_download_url, batch_id, data_requests, actions, source, referrer].hash
|
270
297
|
end
|
271
298
|
|
272
299
|
# 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
|
|
@@ -113,10 +113,6 @@ module DocSpring
|
|
113
113
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
114
114
|
end
|
115
115
|
|
116
|
-
if @integration_id.nil?
|
117
|
-
invalid_properties.push('invalid value for "integration_id", integration_id cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
116
|
if @state.nil?
|
121
117
|
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
122
118
|
end
|
@@ -140,7 +136,6 @@ module DocSpring
|
|
140
136
|
# @return true if the model is valid
|
141
137
|
def valid?
|
142
138
|
return false if @id.nil?
|
143
|
-
return false if @integration_id.nil?
|
144
139
|
return false if @state.nil?
|
145
140
|
state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'failed', 'error'])
|
146
141
|
return false unless state_validator.valid?(@state)
|
@@ -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
|
|
@@ -16,19 +16,19 @@ module DocSpring
|
|
16
16
|
class SubmissionBatchData
|
17
17
|
attr_accessor :metadata
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :submissions
|
20
20
|
|
21
21
|
attr_accessor :template_id
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :test
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
28
|
:'metadata' => :'metadata',
|
29
|
-
:'
|
29
|
+
:'submissions' => :'submissions',
|
30
30
|
:'template_id' => :'template_id',
|
31
|
-
:'
|
31
|
+
:'test' => :'test'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
@@ -36,9 +36,9 @@ module DocSpring
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'metadata' => :'Object',
|
39
|
-
:'
|
39
|
+
:'submissions' => :'Array<SubmissionDataBatchRequest>',
|
40
40
|
:'template_id' => :'String',
|
41
|
-
:'
|
41
|
+
:'test' => :'BOOLEAN'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -54,18 +54,18 @@ module DocSpring
|
|
54
54
|
self.metadata = attributes[:'metadata']
|
55
55
|
end
|
56
56
|
|
57
|
-
if attributes.has_key?(:'
|
58
|
-
|
57
|
+
if attributes.has_key?(:'submissions')
|
58
|
+
if (value = attributes[:'submissions']).is_a?(Array)
|
59
|
+
self.submissions = value
|
60
|
+
end
|
59
61
|
end
|
60
62
|
|
61
63
|
if attributes.has_key?(:'template_id')
|
62
64
|
self.template_id = attributes[:'template_id']
|
63
65
|
end
|
64
66
|
|
65
|
-
if attributes.has_key?(:'
|
66
|
-
|
67
|
-
self.submissions = value
|
68
|
-
end
|
67
|
+
if attributes.has_key?(:'test')
|
68
|
+
self.test = attributes[:'test']
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -93,9 +93,9 @@ module DocSpring
|
|
93
93
|
return true if self.equal?(o)
|
94
94
|
self.class == o.class &&
|
95
95
|
metadata == o.metadata &&
|
96
|
-
|
96
|
+
submissions == o.submissions &&
|
97
97
|
template_id == o.template_id &&
|
98
|
-
|
98
|
+
test == o.test
|
99
99
|
end
|
100
100
|
|
101
101
|
# @see the `==` method
|
@@ -107,7 +107,7 @@ module DocSpring
|
|
107
107
|
# Calculates hash code according to all attributes.
|
108
108
|
# @return [Fixnum] Hash code
|
109
109
|
def hash
|
110
|
-
[metadata,
|
110
|
+
[metadata, submissions, template_id, test].hash
|
111
111
|
end
|
112
112
|
|
113
113
|
# Builds the object from hash
|