docspring 1.1.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/VERSION +1 -1
  3. data/CHANGELOG.md +20 -0
  4. data/Gemfile.lock +1 -1
  5. data/LICENSE +1 -1
  6. data/README.md +22 -15
  7. data/docs/AddFieldsData.md +8 -0
  8. data/docs/AddFieldsTemplateResponse.md +10 -0
  9. data/docs/CombinePdfsData.md +4 -4
  10. data/docs/CombinedSubmissionData.md +3 -3
  11. data/docs/CopyTemplateData.md +9 -0
  12. data/docs/CreateHtmlTemplateData.md +8 -0
  13. data/docs/CreateSubmissionDataRequestData.md +2 -2
  14. data/docs/CreateTemplateFromUploadData.md +8 -0
  15. data/docs/{TemplatesdesccachedUploadTemplate.md → HtmlTemplateData.md} +3 -4
  16. data/docs/MoveTemplateData.md +1 -1
  17. data/docs/PDFApi.md +113 -9
  18. data/docs/PendingTemplate.md +1 -0
  19. data/docs/Submission.md +4 -0
  20. data/docs/SubmissionBatchData.md +2 -2
  21. data/docs/SubmissionData.md +4 -4
  22. data/docs/SubmissionDataBatchRequest.md +2 -2
  23. data/docs/SubmissionDataRequest.md +1 -0
  24. data/docs/Template.md +1 -0
  25. data/docs/{TemplatestemplateIdTemplate.md → TemplateData.md} +3 -3
  26. data/docs/TemplatestemplateIdaddFieldsFields.md +92 -0
  27. data/docs/UpdateSubmissionDataRequestData.md +9 -9
  28. data/docs/UpdateTemplateData.md +1 -1
  29. data/docs/UploadTemplateData.md +25 -0
  30. data/docs/UploadTemplateDataDocument.md +10 -0
  31. data/docs/{TemplatesdesccachedUploadTemplateDocumentMetadata.md → UploadTemplateDataDocumentMetadata.md} +1 -1
  32. data/docspring.gemspec +2 -2
  33. data/lib/docspring.rb +12 -7
  34. data/lib/docspring/api/pdf_api.rb +137 -19
  35. data/lib/docspring/api_client.rb +1 -1
  36. data/lib/docspring/api_error.rb +1 -1
  37. data/lib/docspring/configuration.rb +1 -1
  38. data/lib/docspring/models/add_fields_data.rb +190 -0
  39. data/lib/docspring/models/add_fields_template_response.rb +239 -0
  40. data/lib/docspring/models/authentication_error.rb +1 -1
  41. data/lib/docspring/models/authentication_success_response.rb +1 -1
  42. data/lib/docspring/models/combine_pdfs_data.rb +28 -28
  43. data/lib/docspring/models/combined_submission.rb +1 -1
  44. data/lib/docspring/models/combined_submission_action.rb +1 -6
  45. data/lib/docspring/models/combined_submission_data.rb +23 -23
  46. data/lib/docspring/models/copy_template_data.rb +197 -0
  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_data1.rb → create_template_from_upload_data.rb} +3 -3
  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 +6 -1
  67. data/lib/docspring/models/pending_template.rb +11 -2
  68. data/lib/docspring/models/rename_folder_data.rb +1 -1
  69. data/lib/docspring/models/submission.rb +41 -5
  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 -34
  74. data/lib/docspring/models/submission_data_batch_request.rb +20 -20
  75. data/lib/docspring/models/submission_data_request.rb +14 -15
  76. data/lib/docspring/models/template.rb +11 -2
  77. data/lib/docspring/models/{templatestemplate_id_template.rb → template_data.rb} +21 -21
  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 +2 -2
  82. data/lib/docspring/models/update_template_response.rb +1 -1
  83. data/lib/docspring/models/{templatesdesccached_upload_template.rb → upload_template_data.rb} +22 -22
  84. data/lib/docspring/models/{templatesdesccached_upload_template_document.rb → upload_template_data_document.rb} +3 -3
  85. data/lib/docspring/models/{templatesdesccached_upload_template_document_metadata.rb → upload_template_data_document_metadata.rb} +2 -2
  86. data/lib/docspring/version.rb +2 -2
  87. data/spec/api/pdf_api_integration_spec.rb +49 -18
  88. data/spec/api/pdf_api_spec_original.skipped.rb +36 -8
  89. data/spec/api_client_spec.rb +1 -1
  90. data/spec/configuration_spec.rb +1 -1
  91. data/spec/models/add_fields_data_spec.rb +41 -0
  92. data/spec/models/add_fields_template_response_spec.rb +57 -0
  93. data/spec/models/authentication_error_spec.rb +1 -1
  94. data/spec/models/authentication_success_response_spec.rb +1 -1
  95. data/spec/models/combine_pdfs_data_spec.rb +5 -5
  96. data/spec/models/combined_submission_action_spec.rb +1 -1
  97. data/spec/models/combined_submission_data_spec.rb +5 -5
  98. data/spec/models/combined_submission_spec.rb +1 -1
  99. data/spec/models/copy_template_data_spec.rb +47 -0
  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_template_data_spec.rb → create_html_template_data_spec.rb} +7 -7
  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_data1_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 +7 -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 +7 -1
  127. data/spec/models/submission_data_spec.rb +7 -7
  128. data/spec/models/submission_spec.rb +25 -1
  129. data/spec/models/{templatestemplate_id_template_spec.rb → template_data_spec.rb} +11 -11
  130. data/spec/models/template_spec.rb +7 -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 +1 -1
  135. data/spec/models/update_template_response_spec.rb +1 -1
  136. data/spec/models/{templatesdesccached_upload_template_document_metadata_spec.rb → upload_template_data_document_metadata_spec.rb} +7 -7
  137. data/spec/models/{templatesdesccached_upload_template_document_spec.rb → upload_template_data_document_spec.rb} +7 -7
  138. data/spec/models/{templatesdesccached_upload_template_spec.rb → upload_template_data_spec.rb} +12 -12
  139. data/spec/spec_helper.rb +1 -1
  140. metadata +50 -30
  141. data/docs/CreateTemplateData.md +0 -8
  142. data/docs/CreateTemplateData1.md +0 -8
  143. data/docs/TemplatesdesccachedUploadTemplateDocument.md +0 -10
@@ -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
 
@@ -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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -44,6 +44,8 @@ module DocSpring
44
44
 
45
45
  attr_accessor :id
46
46
 
47
+ attr_accessor :locked
48
+
47
49
  attr_accessor :redirect_url
48
50
 
49
51
  class EnumAttributeValidator
@@ -86,6 +88,7 @@ module DocSpring
86
88
  :'name' => :'name',
87
89
  :'template_type' => :'template_type',
88
90
  :'id' => :'id',
91
+ :'locked' => :'locked',
89
92
  :'redirect_url' => :'redirect_url'
90
93
  }
91
94
  end
@@ -108,6 +111,7 @@ module DocSpring
108
111
  :'name' => :'String',
109
112
  :'template_type' => :'String',
110
113
  :'id' => :'String',
114
+ :'locked' => :'BOOLEAN',
111
115
  :'redirect_url' => :'String'
112
116
  }
113
117
  end
@@ -180,6 +184,10 @@ module DocSpring
180
184
  self.id = attributes[:'id']
181
185
  end
182
186
 
187
+ if attributes.has_key?(:'locked')
188
+ self.locked = attributes[:'locked']
189
+ end
190
+
183
191
  if attributes.has_key?(:'redirect_url')
184
192
  self.redirect_url = attributes[:'redirect_url']
185
193
  end
@@ -230,6 +238,7 @@ module DocSpring
230
238
  name == o.name &&
231
239
  template_type == o.template_type &&
232
240
  id == o.id &&
241
+ locked == o.locked &&
233
242
  redirect_url == o.redirect_url
234
243
  end
235
244
 
@@ -242,7 +251,7 @@ module DocSpring
242
251
  # Calculates hash code according to all attributes.
243
252
  # @return [Fixnum] Hash code
244
253
  def hash
245
- [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, 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
246
255
  end
247
256
 
248
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,12 @@ 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
+
35
39
  attr_accessor :pdf_hash
36
40
 
37
41
  attr_accessor :download_url
@@ -44,6 +48,10 @@ module DocSpring
44
48
 
45
49
  attr_accessor :actions
46
50
 
51
+ attr_accessor :source
52
+
53
+ attr_accessor :referrer
54
+
47
55
  class EnumAttributeValidator
48
56
  attr_reader :datatype
49
57
  attr_reader :allowable_values
@@ -77,13 +85,17 @@ module DocSpring
77
85
  :'expires_at' => :'expires_at',
78
86
  :'processed_at' => :'processed_at',
79
87
  :'state' => :'state',
88
+ :'data' => :'data',
80
89
  :'metadata' => :'metadata',
90
+ :'truncated_text' => :'truncated_text',
81
91
  :'pdf_hash' => :'pdf_hash',
82
92
  :'download_url' => :'download_url',
83
93
  :'permanent_download_url' => :'permanent_download_url',
84
94
  :'batch_id' => :'batch_id',
85
95
  :'data_requests' => :'data_requests',
86
- :'actions' => :'actions'
96
+ :'actions' => :'actions',
97
+ :'source' => :'source',
98
+ :'referrer' => :'referrer'
87
99
  }
88
100
  end
89
101
 
@@ -98,13 +110,17 @@ module DocSpring
98
110
  :'expires_at' => :'String',
99
111
  :'processed_at' => :'String',
100
112
  :'state' => :'String',
113
+ :'data' => :'Object',
101
114
  :'metadata' => :'Object',
115
+ :'truncated_text' => :'Object',
102
116
  :'pdf_hash' => :'String',
103
117
  :'download_url' => :'String',
104
118
  :'permanent_download_url' => :'String',
105
119
  :'batch_id' => :'String',
106
120
  :'data_requests' => :'Array<SubmissionDataRequest>',
107
- :'actions' => :'Array<SubmissionAction>'
121
+ :'actions' => :'Array<SubmissionAction>',
122
+ :'source' => :'String',
123
+ :'referrer' => :'String'
108
124
  }
109
125
  end
110
126
 
@@ -148,10 +164,18 @@ module DocSpring
148
164
  self.state = attributes[:'state']
149
165
  end
150
166
 
167
+ if attributes.has_key?(:'data')
168
+ self.data = attributes[:'data']
169
+ end
170
+
151
171
  if attributes.has_key?(:'metadata')
152
172
  self.metadata = attributes[:'metadata']
153
173
  end
154
174
 
175
+ if attributes.has_key?(:'truncated_text')
176
+ self.truncated_text = attributes[:'truncated_text']
177
+ end
178
+
155
179
  if attributes.has_key?(:'pdf_hash')
156
180
  self.pdf_hash = attributes[:'pdf_hash']
157
181
  end
@@ -179,6 +203,14 @@ module DocSpring
179
203
  self.actions = value
180
204
  end
181
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
182
214
  end
183
215
 
184
216
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -239,13 +271,17 @@ module DocSpring
239
271
  expires_at == o.expires_at &&
240
272
  processed_at == o.processed_at &&
241
273
  state == o.state &&
274
+ data == o.data &&
242
275
  metadata == o.metadata &&
276
+ truncated_text == o.truncated_text &&
243
277
  pdf_hash == o.pdf_hash &&
244
278
  download_url == o.download_url &&
245
279
  permanent_download_url == o.permanent_download_url &&
246
280
  batch_id == o.batch_id &&
247
281
  data_requests == o.data_requests &&
248
- actions == o.actions
282
+ actions == o.actions &&
283
+ source == o.source &&
284
+ referrer == o.referrer
249
285
  end
250
286
 
251
287
  # @see the `==` method
@@ -257,7 +293,7 @@ module DocSpring
257
293
  # Calculates hash code according to all attributes.
258
294
  # @return [Fixnum] Hash code
259
295
  def hash
260
- [id, template_id, test, editable, expired, expires_at, processed_at, state, metadata, 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
261
297
  end
262
298
 
263
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,43 +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
24
 
25
- attr_accessor :metadata
25
+ attr_accessor :html
26
26
 
27
- attr_accessor :field_overrides
27
+ attr_accessor :metadata
28
28
 
29
- attr_accessor :data_requests
29
+ attr_accessor :test
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'test' => :'test',
34
+ :'css' => :'css',
35
35
  :'data' => :'data',
36
+ :'data_requests' => :'data_requests',
37
+ :'field_overrides' => :'field_overrides',
36
38
  :'html' => :'html',
37
- :'css' => :'css',
38
39
  :'metadata' => :'metadata',
39
- :'field_overrides' => :'field_overrides',
40
- :'data_requests' => :'data_requests'
40
+ :'test' => :'test'
41
41
  }
42
42
  end
43
43
 
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'test' => :'BOOLEAN',
47
+ :'css' => :'String',
48
48
  :'data' => :'Object',
49
+ :'data_requests' => :'Array<CreateSubmissionDataRequestData>',
50
+ :'field_overrides' => :'Object',
49
51
  :'html' => :'String',
50
- :'css' => :'String',
51
52
  :'metadata' => :'Object',
52
- :'field_overrides' => :'Object',
53
- :'data_requests' => :'Array<CreateSubmissionDataRequestData>'
53
+ :'test' => :'BOOLEAN'
54
54
  }
55
55
  end
56
56
 
@@ -62,34 +62,34 @@ module DocSpring
62
62
  # convert string to symbol for hash key
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
64
64
 
65
- if attributes.has_key?(:'test')
66
- self.test = attributes[:'test']
65
+ if attributes.has_key?(:'css')
66
+ self.css = attributes[:'css']
67
67
  end
68
68
 
69
69
  if attributes.has_key?(:'data')
70
70
  self.data = attributes[:'data']
71
71
  end
72
72
 
73
- if attributes.has_key?(:'html')
74
- 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
75
77
  end
76
78
 
77
- if attributes.has_key?(:'css')
78
- self.css = attributes[:'css']
79
+ if attributes.has_key?(:'field_overrides')
80
+ self.field_overrides = attributes[:'field_overrides']
79
81
  end
80
82
 
81
- if attributes.has_key?(:'metadata')
82
- self.metadata = attributes[:'metadata']
83
+ if attributes.has_key?(:'html')
84
+ self.html = attributes[:'html']
83
85
  end
84
86
 
85
- if attributes.has_key?(:'field_overrides')
86
- self.field_overrides = attributes[:'field_overrides']
87
+ if attributes.has_key?(:'metadata')
88
+ self.metadata = attributes[:'metadata']
87
89
  end
88
90
 
89
- if attributes.has_key?(:'data_requests')
90
- if (value = attributes[:'data_requests']).is_a?(Array)
91
- self.data_requests = value
92
- end
91
+ if attributes.has_key?(:'test')
92
+ self.test = attributes[:'test']
93
93
  end
94
94
  end
95
95
 
@@ -116,13 +116,13 @@ module DocSpring
116
116
  def ==(o)
117
117
  return true if self.equal?(o)
118
118
  self.class == o.class &&
119
- test == o.test &&
119
+ css == o.css &&
120
120
  data == o.data &&
121
+ data_requests == o.data_requests &&
122
+ field_overrides == o.field_overrides &&
121
123
  html == o.html &&
122
- css == o.css &&
123
124
  metadata == o.metadata &&
124
- field_overrides == o.field_overrides &&
125
- data_requests == o.data_requests
125
+ test == o.test
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module DocSpring
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Fixnum] Hash code
136
136
  def hash
137
- [test, data, html, css, metadata, field_overrides, data_requests].hash
137
+ [css, data, data_requests, field_overrides, html, metadata, test].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash