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
 
@@ -14,31 +14,31 @@ require 'date'
14
14
 
15
15
  module DocSpring
16
16
  class UpdateSubmissionDataRequestData
17
- attr_accessor :name
17
+ attr_accessor :auth_phone_number_hash
18
18
 
19
- attr_accessor :email
19
+ attr_accessor :auth_provider
20
20
 
21
- attr_accessor :order
21
+ attr_accessor :auth_second_factor_type
22
22
 
23
- attr_accessor :fields
23
+ attr_accessor :auth_session_id_hash
24
24
 
25
- attr_accessor :metadata
25
+ attr_accessor :auth_session_started_at
26
26
 
27
27
  attr_accessor :auth_type
28
28
 
29
- attr_accessor :auth_second_factor_type
29
+ attr_accessor :auth_user_id_hash
30
30
 
31
- attr_accessor :auth_provider
31
+ attr_accessor :auth_username_hash
32
32
 
33
- attr_accessor :auth_session_started_at
33
+ attr_accessor :email
34
34
 
35
- attr_accessor :auth_session_id_hash
35
+ attr_accessor :fields
36
36
 
37
- attr_accessor :auth_user_id_hash
37
+ attr_accessor :metadata
38
38
 
39
- attr_accessor :auth_username_hash
39
+ attr_accessor :name
40
40
 
41
- attr_accessor :auth_phone_number_hash
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
- :'name' => :'name',
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
- :'auth_session_started_at' => :'auth_session_started_at',
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
- :'auth_phone_number_hash' => :'auth_phone_number_hash'
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
- :'name' => :'String',
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
- :'auth_session_started_at' => :'String',
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
- :'auth_phone_number_hash' => :'String'
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?(:'name')
112
- self.name = attributes[:'name']
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?(:'email')
116
- self.email = attributes[:'email']
115
+ if attributes.has_key?(:'auth_provider')
116
+ self.auth_provider = attributes[:'auth_provider']
117
117
  end
118
118
 
119
- if attributes.has_key?(:'order')
120
- self.order = attributes[:'order']
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?(:'fields')
124
- if (value = attributes[:'fields']).is_a?(Array)
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?(:'metadata')
130
- self.metadata = attributes[:'metadata']
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?(:'auth_second_factor_type')
138
- self.auth_second_factor_type = attributes[:'auth_second_factor_type']
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?(:'auth_provider')
142
- self.auth_provider = attributes[:'auth_provider']
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?(:'auth_session_started_at')
146
- self.auth_session_started_at = attributes[:'auth_session_started_at']
143
+ if attributes.has_key?(:'email')
144
+ self.email = attributes[:'email']
147
145
  end
148
146
 
149
- if attributes.has_key?(:'auth_session_id_hash')
150
- self.auth_session_id_hash = attributes[:'auth_session_id_hash']
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?(:'auth_user_id_hash')
154
- self.auth_user_id_hash = attributes[:'auth_user_id_hash']
153
+ if attributes.has_key?(:'metadata')
154
+ self.metadata = attributes[:'metadata']
155
155
  end
156
156
 
157
- if attributes.has_key?(:'auth_username_hash')
158
- self.auth_username_hash = attributes[:'auth_username_hash']
157
+ if attributes.has_key?(:'name')
158
+ self.name = attributes[:'name']
159
159
  end
160
160
 
161
- if attributes.has_key?(:'auth_phone_number_hash')
162
- self.auth_phone_number_hash = attributes[:'auth_phone_number_hash']
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
- name == o.name &&
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
- auth_session_started_at == o.auth_session_started_at &&
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
- auth_phone_number_hash == o.auth_phone_number_hash
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
- [name, email, order, fields, metadata, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash].hash
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-SNAPSHOT
9
+ OpenAPI Generator version: 3.3.0
10
10
 
11
11
  =end
12
12
 
@@ -26,7 +26,7 @@ module DocSpring
26
26
  # Attribute type mapping.
27
27
  def self.openapi_types
28
28
  {
29
- :'template' => :'TemplatestemplateIdTemplate'
29
+ :'template' => :'TemplateData'
30
30
  }
31
31
  end
32
32
 
@@ -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,26 +6,26 @@
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
 
13
13
  require 'date'
14
14
 
15
15
  module DocSpring
16
- class TemplatesdesccachedUploadTemplate
16
+ class UploadTemplateData
17
17
  attr_accessor :expiration_interval
18
18
 
19
19
  attr_accessor :webhook_url
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
- :'document' => :'TemplatesdesccachedUploadTemplateDocument',
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, expire_after, allow_additional_properties, document, description, public_submissions, slack_webhook_url, header_html, public_web_form, editable_submissions, expire_submissions, name, html, footer_html, template_type, redirect_url].hash
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