docspring 1.0.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/VERSION +1 -1
  3. data/CHANGELOG.md +14 -37
  4. data/Gemfile +2 -1
  5. data/Gemfile.lock +37 -32
  6. data/LICENSE +1 -1
  7. data/README.md +26 -15
  8. data/docs/AddFieldsData.md +8 -0
  9. data/docs/AddFieldsTemplateResponse.md +10 -0
  10. data/docs/CombinePdfsData.md +4 -4
  11. data/docs/CombinedSubmission.md +1 -0
  12. data/docs/CombinedSubmissionData.md +3 -3
  13. data/docs/{CreateTemplateData.md → CreateHtmlTemplateData.md} +2 -2
  14. data/docs/CreateSubmissionDataRequestData.md +2 -2
  15. data/docs/CreateTemplateFromUploadData.md +8 -0
  16. data/docs/HtmlTemplateData.md +24 -0
  17. data/docs/PDFApi.md +169 -15
  18. data/docs/PendingTemplate.md +2 -0
  19. data/docs/Submission.md +5 -0
  20. data/docs/SubmissionBatchData.md +2 -2
  21. data/docs/SubmissionData.md +4 -3
  22. data/docs/SubmissionDataBatchRequest.md +2 -2
  23. data/docs/SubmissionDataRequest.md +2 -0
  24. data/docs/Template.md +2 -0
  25. data/docs/{Templatesv2Template.md → TemplateData.md} +11 -7
  26. data/docs/TemplatestemplateIdaddFieldsFields.md +92 -0
  27. data/docs/UpdateSubmissionDataRequestData.md +9 -9
  28. data/docs/UpdateTemplateData.md +8 -0
  29. data/docs/UpdateTemplateResponse.md +9 -0
  30. data/docs/UploadTemplateData.md +25 -0
  31. data/docs/{Templatesv2TemplateDocument.md → UploadTemplateDataDocument.md} +2 -2
  32. data/docs/{Templatesv2TemplateDocumentMetadata.md → UploadTemplateDataDocumentMetadata.md} +1 -1
  33. data/docspring.gemspec +3 -3
  34. data/lib/docspring.rb +13 -5
  35. data/lib/docspring/api/pdf_api.rb +193 -22
  36. data/lib/docspring/api_client.rb +1 -1
  37. data/lib/docspring/api_error.rb +1 -1
  38. data/lib/docspring/configuration.rb +1 -1
  39. data/lib/docspring/models/add_fields_data.rb +190 -0
  40. data/lib/docspring/models/add_fields_template_response.rb +239 -0
  41. data/lib/docspring/models/authentication_error.rb +1 -1
  42. data/lib/docspring/models/authentication_success_response.rb +1 -1
  43. data/lib/docspring/models/combine_pdfs_data.rb +28 -28
  44. data/lib/docspring/models/combined_submission.rb +11 -2
  45. data/lib/docspring/models/combined_submission_action.rb +1 -6
  46. data/lib/docspring/models/combined_submission_data.rb +23 -23
  47. data/lib/docspring/models/create_combined_submission_response.rb +1 -1
  48. data/lib/docspring/models/create_custom_file_data.rb +1 -1
  49. data/lib/docspring/models/create_custom_file_response.rb +1 -1
  50. data/lib/docspring/models/create_folder_data.rb +1 -1
  51. data/lib/docspring/models/{create_template_data.rb → create_html_template_data.rb} +3 -3
  52. data/lib/docspring/models/create_submission_batch_response.rb +1 -1
  53. data/lib/docspring/models/create_submission_batch_submissions_response.rb +1 -1
  54. data/lib/docspring/models/create_submission_data_request_data.rb +20 -20
  55. data/lib/docspring/models/create_submission_data_request_token_response.rb +1 -1
  56. data/lib/docspring/models/create_submission_data_request_token_response_token.rb +1 -1
  57. data/lib/docspring/models/create_submission_response.rb +1 -1
  58. data/lib/docspring/models/create_template_from_upload_data.rb +188 -0
  59. data/lib/docspring/models/custom_file.rb +1 -1
  60. data/lib/docspring/models/error.rb +1 -1
  61. data/lib/docspring/models/folder.rb +1 -1
  62. data/lib/docspring/models/folders_folder.rb +1 -1
  63. data/lib/docspring/models/html_template_data.rb +373 -0
  64. data/lib/docspring/models/invalid_request.rb +1 -1
  65. data/lib/docspring/models/move_folder_data.rb +1 -1
  66. data/lib/docspring/models/move_template_data.rb +1 -1
  67. data/lib/docspring/models/pending_template.rb +20 -2
  68. data/lib/docspring/models/rename_folder_data.rb +1 -1
  69. data/lib/docspring/models/submission.rb +52 -7
  70. data/lib/docspring/models/submission_action.rb +1 -6
  71. data/lib/docspring/models/submission_batch.rb +1 -1
  72. data/lib/docspring/models/submission_batch_data.rb +16 -16
  73. data/lib/docspring/models/submission_data.rb +34 -25
  74. data/lib/docspring/models/submission_data_batch_request.rb +20 -20
  75. data/lib/docspring/models/submission_data_request.rb +23 -20
  76. data/lib/docspring/models/template.rb +20 -2
  77. data/lib/docspring/models/{templatesv2_template.rb → template_data.rb} +81 -45
  78. data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +1306 -0
  79. data/lib/docspring/models/update_data_request_response.rb +1 -1
  80. data/lib/docspring/models/update_submission_data_request_data.rb +79 -79
  81. data/lib/docspring/models/update_template_data.rb +188 -0
  82. data/lib/docspring/models/update_template_response.rb +228 -0
  83. data/lib/docspring/models/upload_template_data.rb +382 -0
  84. data/lib/docspring/models/{templatesv2_template_document.rb → upload_template_data_document.rb} +3 -3
  85. data/lib/docspring/models/{templatesv2_template_document_metadata.rb → upload_template_data_document_metadata.rb} +2 -2
  86. data/lib/docspring/version.rb +2 -2
  87. data/spec/api/client_integration_spec.rb +14 -2
  88. data/spec/api/pdf_api_integration_spec.rb +49 -18
  89. data/spec/api/pdf_api_spec_original.skipped.rb +51 -11
  90. data/spec/api_client_spec.rb +1 -1
  91. data/spec/configuration_spec.rb +1 -1
  92. data/spec/models/add_fields_data_spec.rb +41 -0
  93. data/spec/models/add_fields_template_response_spec.rb +57 -0
  94. data/spec/models/authentication_error_spec.rb +1 -1
  95. data/spec/models/authentication_success_response_spec.rb +1 -1
  96. data/spec/models/combine_pdfs_data_spec.rb +5 -5
  97. data/spec/models/combined_submission_action_spec.rb +1 -1
  98. data/spec/models/combined_submission_data_spec.rb +5 -5
  99. data/spec/models/combined_submission_spec.rb +7 -1
  100. data/spec/models/create_combined_submission_response_spec.rb +1 -1
  101. data/spec/models/create_custom_file_data_spec.rb +1 -1
  102. data/spec/models/create_custom_file_response_spec.rb +1 -1
  103. data/spec/models/create_folder_data_spec.rb +1 -1
  104. data/spec/models/create_html_template_data_spec.rb +41 -0
  105. data/spec/models/create_submission_batch_response_spec.rb +1 -1
  106. data/spec/models/create_submission_batch_submissions_response_spec.rb +1 -1
  107. data/spec/models/create_submission_data_request_data_spec.rb +9 -9
  108. data/spec/models/create_submission_data_request_token_response_spec.rb +1 -1
  109. data/spec/models/create_submission_data_request_token_response_token_spec.rb +1 -1
  110. data/spec/models/create_submission_response_spec.rb +1 -1
  111. data/spec/models/{create_template_data_spec.rb → create_template_from_upload_data_spec.rb} +7 -7
  112. data/spec/models/custom_file_spec.rb +1 -1
  113. data/spec/models/error_spec.rb +1 -1
  114. data/spec/models/folder_spec.rb +1 -1
  115. data/spec/models/folders_folder_spec.rb +1 -1
  116. data/spec/models/html_template_data_spec.rb +145 -0
  117. data/spec/models/invalid_request_spec.rb +1 -1
  118. data/spec/models/move_folder_data_spec.rb +1 -1
  119. data/spec/models/move_template_data_spec.rb +1 -1
  120. data/spec/models/pending_template_spec.rb +13 -1
  121. data/spec/models/rename_folder_data_spec.rb +1 -1
  122. data/spec/models/submission_action_spec.rb +1 -1
  123. data/spec/models/submission_batch_data_spec.rb +3 -3
  124. data/spec/models/submission_batch_spec.rb +1 -1
  125. data/spec/models/submission_data_batch_request_spec.rb +5 -5
  126. data/spec/models/submission_data_request_spec.rb +13 -1
  127. data/spec/models/submission_data_spec.rb +11 -5
  128. data/spec/models/submission_spec.rb +32 -2
  129. data/spec/models/{templatesv2_template_spec.rb → template_data_spec.rb} +40 -16
  130. data/spec/models/template_spec.rb +13 -1
  131. data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +589 -0
  132. data/spec/models/update_data_request_response_spec.rb +1 -1
  133. data/spec/models/update_submission_data_request_data_spec.rb +17 -17
  134. data/spec/models/update_template_data_spec.rb +41 -0
  135. data/spec/models/update_template_response_spec.rb +51 -0
  136. data/spec/models/{templatesv2_template_document_metadata_spec.rb → upload_template_data_document_metadata_spec.rb} +7 -7
  137. data/spec/models/{templatesv2_template_document_spec.rb → upload_template_data_document_spec.rb} +7 -7
  138. data/spec/models/upload_template_data_spec.rb +151 -0
  139. data/spec/spec_helper.rb +1 -1
  140. metadata +60 -32
  141. data/.swagger-codegen-ignore +0 -31
  142. data/.swagger-codegen/VERSION +0 -1
  143. data/.swagger-revision +0 -1
  144. 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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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-SNAPSHOT
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
@@ -42,6 +44,8 @@ module DocSpring
42
44
 
43
45
  attr_accessor :id
44
46
 
47
+ attr_accessor :locked
48
+
45
49
  attr_accessor :redirect_url
46
50
 
47
51
  class EnumAttributeValidator
@@ -74,6 +78,7 @@ module DocSpring
74
78
  :'parent_folder_id' => :'parent_folder_id',
75
79
  :'expire_after' => :'expire_after',
76
80
  :'allow_additional_properties' => :'allow_additional_properties',
81
+ :'description' => :'description',
77
82
  :'public_submissions' => :'public_submissions',
78
83
  :'slack_webhook_url' => :'slack_webhook_url',
79
84
  :'path' => :'path',
@@ -83,6 +88,7 @@ module DocSpring
83
88
  :'name' => :'name',
84
89
  :'template_type' => :'template_type',
85
90
  :'id' => :'id',
91
+ :'locked' => :'locked',
86
92
  :'redirect_url' => :'redirect_url'
87
93
  }
88
94
  end
@@ -95,6 +101,7 @@ module DocSpring
95
101
  :'parent_folder_id' => :'String',
96
102
  :'expire_after' => :'Float',
97
103
  :'allow_additional_properties' => :'BOOLEAN',
104
+ :'description' => :'String',
98
105
  :'public_submissions' => :'BOOLEAN',
99
106
  :'slack_webhook_url' => :'String',
100
107
  :'path' => :'String',
@@ -104,6 +111,7 @@ module DocSpring
104
111
  :'name' => :'String',
105
112
  :'template_type' => :'String',
106
113
  :'id' => :'String',
114
+ :'locked' => :'BOOLEAN',
107
115
  :'redirect_url' => :'String'
108
116
  }
109
117
  end
@@ -136,6 +144,10 @@ module DocSpring
136
144
  self.allow_additional_properties = attributes[:'allow_additional_properties']
137
145
  end
138
146
 
147
+ if attributes.has_key?(:'description')
148
+ self.description = attributes[:'description']
149
+ end
150
+
139
151
  if attributes.has_key?(:'public_submissions')
140
152
  self.public_submissions = attributes[:'public_submissions']
141
153
  end
@@ -172,6 +184,10 @@ module DocSpring
172
184
  self.id = attributes[:'id']
173
185
  end
174
186
 
187
+ if attributes.has_key?(:'locked')
188
+ self.locked = attributes[:'locked']
189
+ end
190
+
175
191
  if attributes.has_key?(:'redirect_url')
176
192
  self.redirect_url = attributes[:'redirect_url']
177
193
  end
@@ -212,6 +228,7 @@ module DocSpring
212
228
  parent_folder_id == o.parent_folder_id &&
213
229
  expire_after == o.expire_after &&
214
230
  allow_additional_properties == o.allow_additional_properties &&
231
+ description == o.description &&
215
232
  public_submissions == o.public_submissions &&
216
233
  slack_webhook_url == o.slack_webhook_url &&
217
234
  path == o.path &&
@@ -221,6 +238,7 @@ module DocSpring
221
238
  name == o.name &&
222
239
  template_type == o.template_type &&
223
240
  id == o.id &&
241
+ locked == o.locked &&
224
242
  redirect_url == o.redirect_url
225
243
  end
226
244
 
@@ -233,7 +251,7 @@ module DocSpring
233
251
  # Calculates hash code according to all attributes.
234
252
  # @return [Fixnum] Hash code
235
253
  def hash
236
- [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, template_type, id, redirect_url].hash
254
+ [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, template_type, id, locked, redirect_url].hash
237
255
  end
238
256
 
239
257
  # 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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -30,8 +30,14 @@ module DocSpring
30
30
 
31
31
  attr_accessor :state
32
32
 
33
+ attr_accessor :data
34
+
33
35
  attr_accessor :metadata
34
36
 
37
+ attr_accessor :truncated_text
38
+
39
+ attr_accessor :pdf_hash
40
+
35
41
  attr_accessor :download_url
36
42
 
37
43
  attr_accessor :permanent_download_url
@@ -42,6 +48,10 @@ module DocSpring
42
48
 
43
49
  attr_accessor :actions
44
50
 
51
+ attr_accessor :source
52
+
53
+ attr_accessor :referrer
54
+
45
55
  class EnumAttributeValidator
46
56
  attr_reader :datatype
47
57
  attr_reader :allowable_values
@@ -75,12 +85,17 @@ module DocSpring
75
85
  :'expires_at' => :'expires_at',
76
86
  :'processed_at' => :'processed_at',
77
87
  :'state' => :'state',
88
+ :'data' => :'data',
78
89
  :'metadata' => :'metadata',
90
+ :'truncated_text' => :'truncated_text',
91
+ :'pdf_hash' => :'pdf_hash',
79
92
  :'download_url' => :'download_url',
80
93
  :'permanent_download_url' => :'permanent_download_url',
81
94
  :'batch_id' => :'batch_id',
82
95
  :'data_requests' => :'data_requests',
83
- :'actions' => :'actions'
96
+ :'actions' => :'actions',
97
+ :'source' => :'source',
98
+ :'referrer' => :'referrer'
84
99
  }
85
100
  end
86
101
 
@@ -95,12 +110,17 @@ module DocSpring
95
110
  :'expires_at' => :'String',
96
111
  :'processed_at' => :'String',
97
112
  :'state' => :'String',
113
+ :'data' => :'Object',
98
114
  :'metadata' => :'Object',
115
+ :'truncated_text' => :'Object',
116
+ :'pdf_hash' => :'String',
99
117
  :'download_url' => :'String',
100
118
  :'permanent_download_url' => :'String',
101
119
  :'batch_id' => :'String',
102
120
  :'data_requests' => :'Array<SubmissionDataRequest>',
103
- :'actions' => :'Array<SubmissionAction>'
121
+ :'actions' => :'Array<SubmissionAction>',
122
+ :'source' => :'String',
123
+ :'referrer' => :'String'
104
124
  }
105
125
  end
106
126
 
@@ -144,10 +164,22 @@ module DocSpring
144
164
  self.state = attributes[:'state']
145
165
  end
146
166
 
167
+ if attributes.has_key?(:'data')
168
+ self.data = attributes[:'data']
169
+ end
170
+
147
171
  if attributes.has_key?(:'metadata')
148
172
  self.metadata = attributes[:'metadata']
149
173
  end
150
174
 
175
+ if attributes.has_key?(:'truncated_text')
176
+ self.truncated_text = attributes[:'truncated_text']
177
+ end
178
+
179
+ if attributes.has_key?(:'pdf_hash')
180
+ self.pdf_hash = attributes[:'pdf_hash']
181
+ end
182
+
151
183
  if attributes.has_key?(:'download_url')
152
184
  self.download_url = attributes[:'download_url']
153
185
  end
@@ -171,6 +203,14 @@ module DocSpring
171
203
  self.actions = value
172
204
  end
173
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
174
214
  end
175
215
 
176
216
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -203,7 +243,7 @@ module DocSpring
203
243
  return false if @test.nil?
204
244
  return false if @expired.nil?
205
245
  return false if @state.nil?
206
- state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'syntax_error', 'account_suspended', 'license_revoked'])
246
+ state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'syntax_error', 'account_suspended', 'license_revoked', 'accidental'])
207
247
  return false unless state_validator.valid?(@state)
208
248
  true
209
249
  end
@@ -211,7 +251,7 @@ module DocSpring
211
251
  # Custom attribute writer method checking allowed values (enum).
212
252
  # @param [Object] state Object to be assigned
213
253
  def state=(state)
214
- validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'syntax_error', 'account_suspended', 'license_revoked'])
254
+ validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'syntax_error', 'account_suspended', 'license_revoked', 'accidental'])
215
255
  unless validator.valid?(state)
216
256
  fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
217
257
  end
@@ -231,12 +271,17 @@ module DocSpring
231
271
  expires_at == o.expires_at &&
232
272
  processed_at == o.processed_at &&
233
273
  state == o.state &&
274
+ data == o.data &&
234
275
  metadata == o.metadata &&
276
+ truncated_text == o.truncated_text &&
277
+ pdf_hash == o.pdf_hash &&
235
278
  download_url == o.download_url &&
236
279
  permanent_download_url == o.permanent_download_url &&
237
280
  batch_id == o.batch_id &&
238
281
  data_requests == o.data_requests &&
239
- actions == o.actions
282
+ actions == o.actions &&
283
+ source == o.source &&
284
+ referrer == o.referrer
240
285
  end
241
286
 
242
287
  # @see the `==` method
@@ -248,7 +293,7 @@ module DocSpring
248
293
  # Calculates hash code according to all attributes.
249
294
  # @return [Fixnum] Hash code
250
295
  def hash
251
- [id, template_id, test, editable, expired, expires_at, processed_at, state, metadata, 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
252
297
  end
253
298
 
254
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-SNAPSHOT
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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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-SNAPSHOT
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 :test
19
+ attr_accessor :submissions
20
20
 
21
21
  attr_accessor :template_id
22
22
 
23
- attr_accessor :submissions
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
- :'test' => :'test',
29
+ :'submissions' => :'submissions',
30
30
  :'template_id' => :'template_id',
31
- :'submissions' => :'submissions'
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
- :'test' => :'BOOLEAN',
39
+ :'submissions' => :'Array<SubmissionDataBatchRequest>',
40
40
  :'template_id' => :'String',
41
- :'submissions' => :'Array<SubmissionDataBatchRequest>'
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?(:'test')
58
- self.test = attributes[:'test']
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?(:'submissions')
66
- if (value = attributes[:'submissions']).is_a?(Array)
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
- test == o.test &&
96
+ submissions == o.submissions &&
97
97
  template_id == o.template_id &&
98
- submissions == o.submissions
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, test, template_id, submissions].hash
110
+ [metadata, submissions, template_id, test].hash
111
111
  end
112
112
 
113
113
  # 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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -14,39 +14,43 @@ require 'date'
14
14
 
15
15
  module DocSpring
16
16
  class SubmissionData
17
- attr_accessor :test
17
+ attr_accessor :css
18
18
 
19
19
  attr_accessor :data
20
20
 
21
- attr_accessor :html
21
+ attr_accessor :data_requests
22
22
 
23
- attr_accessor :css
23
+ attr_accessor :field_overrides
24
+
25
+ attr_accessor :html
24
26
 
25
27
  attr_accessor :metadata
26
28
 
27
- attr_accessor :data_requests
29
+ attr_accessor :test
28
30
 
29
31
  # Attribute mapping from ruby-style variable name to JSON key.
30
32
  def self.attribute_map
31
33
  {
32
- :'test' => :'test',
34
+ :'css' => :'css',
33
35
  :'data' => :'data',
36
+ :'data_requests' => :'data_requests',
37
+ :'field_overrides' => :'field_overrides',
34
38
  :'html' => :'html',
35
- :'css' => :'css',
36
39
  :'metadata' => :'metadata',
37
- :'data_requests' => :'data_requests'
40
+ :'test' => :'test'
38
41
  }
39
42
  end
40
43
 
41
44
  # Attribute type mapping.
42
45
  def self.openapi_types
43
46
  {
44
- :'test' => :'BOOLEAN',
47
+ :'css' => :'String',
45
48
  :'data' => :'Object',
49
+ :'data_requests' => :'Array<CreateSubmissionDataRequestData>',
50
+ :'field_overrides' => :'Object',
46
51
  :'html' => :'String',
47
- :'css' => :'String',
48
52
  :'metadata' => :'Object',
49
- :'data_requests' => :'Array<CreateSubmissionDataRequestData>'
53
+ :'test' => :'BOOLEAN'
50
54
  }
51
55
  end
52
56
 
@@ -58,30 +62,34 @@ module DocSpring
58
62
  # convert string to symbol for hash key
59
63
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
64
 
61
- if attributes.has_key?(:'test')
62
- self.test = attributes[:'test']
65
+ if attributes.has_key?(:'css')
66
+ self.css = attributes[:'css']
63
67
  end
64
68
 
65
69
  if attributes.has_key?(:'data')
66
70
  self.data = attributes[:'data']
67
71
  end
68
72
 
69
- if attributes.has_key?(:'html')
70
- self.html = attributes[:'html']
73
+ if attributes.has_key?(:'data_requests')
74
+ if (value = attributes[:'data_requests']).is_a?(Array)
75
+ self.data_requests = value
76
+ end
71
77
  end
72
78
 
73
- if attributes.has_key?(:'css')
74
- self.css = attributes[:'css']
79
+ if attributes.has_key?(:'field_overrides')
80
+ self.field_overrides = attributes[:'field_overrides']
81
+ end
82
+
83
+ if attributes.has_key?(:'html')
84
+ self.html = attributes[:'html']
75
85
  end
76
86
 
77
87
  if attributes.has_key?(:'metadata')
78
88
  self.metadata = attributes[:'metadata']
79
89
  end
80
90
 
81
- if attributes.has_key?(:'data_requests')
82
- if (value = attributes[:'data_requests']).is_a?(Array)
83
- self.data_requests = value
84
- end
91
+ if attributes.has_key?(:'test')
92
+ self.test = attributes[:'test']
85
93
  end
86
94
  end
87
95
 
@@ -108,12 +116,13 @@ module DocSpring
108
116
  def ==(o)
109
117
  return true if self.equal?(o)
110
118
  self.class == o.class &&
111
- test == o.test &&
119
+ css == o.css &&
112
120
  data == o.data &&
121
+ data_requests == o.data_requests &&
122
+ field_overrides == o.field_overrides &&
113
123
  html == o.html &&
114
- css == o.css &&
115
124
  metadata == o.metadata &&
116
- data_requests == o.data_requests
125
+ test == o.test
117
126
  end
118
127
 
119
128
  # @see the `==` method
@@ -125,7 +134,7 @@ module DocSpring
125
134
  # Calculates hash code according to all attributes.
126
135
  # @return [Fixnum] Hash code
127
136
  def hash
128
- [test, data, html, css, metadata, data_requests].hash
137
+ [css, data, data_requests, field_overrides, html, metadata, test].hash
129
138
  end
130
139
 
131
140
  # Builds the object from hash