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
 
@@ -14,35 +14,35 @@ require 'date'
14
14
 
15
15
  module DocSpring
16
16
  class CombinePdfsData
17
- attr_accessor :test
17
+ attr_accessor :delete_custom_files
18
18
 
19
- attr_accessor :source_pdfs
19
+ attr_accessor :expires_in
20
20
 
21
21
  attr_accessor :metadata
22
22
 
23
- attr_accessor :expires_in
23
+ attr_accessor :source_pdfs
24
24
 
25
- attr_accessor :delete_custom_files
25
+ attr_accessor :test
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'test' => :'test',
31
- :'source_pdfs' => :'source_pdfs',
32
- :'metadata' => :'metadata',
30
+ :'delete_custom_files' => :'delete_custom_files',
33
31
  :'expires_in' => :'expires_in',
34
- :'delete_custom_files' => :'delete_custom_files'
32
+ :'metadata' => :'metadata',
33
+ :'source_pdfs' => :'source_pdfs',
34
+ :'test' => :'test'
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'test' => :'BOOLEAN',
42
- :'source_pdfs' => :'Array<Object>',
43
- :'metadata' => :'Object',
41
+ :'delete_custom_files' => :'BOOLEAN',
44
42
  :'expires_in' => :'Integer',
45
- :'delete_custom_files' => :'BOOLEAN'
43
+ :'metadata' => :'Object',
44
+ :'source_pdfs' => :'Array<Object>',
45
+ :'test' => :'BOOLEAN'
46
46
  }
47
47
  end
48
48
 
@@ -54,26 +54,26 @@ module DocSpring
54
54
  # convert string to symbol for hash key
55
55
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
56
 
57
- if attributes.has_key?(:'test')
58
- self.test = attributes[:'test']
57
+ if attributes.has_key?(:'delete_custom_files')
58
+ self.delete_custom_files = attributes[:'delete_custom_files']
59
59
  end
60
60
 
61
- if attributes.has_key?(:'source_pdfs')
62
- if (value = attributes[:'source_pdfs']).is_a?(Array)
63
- self.source_pdfs = value
64
- end
61
+ if attributes.has_key?(:'expires_in')
62
+ self.expires_in = attributes[:'expires_in']
65
63
  end
66
64
 
67
65
  if attributes.has_key?(:'metadata')
68
66
  self.metadata = attributes[:'metadata']
69
67
  end
70
68
 
71
- if attributes.has_key?(:'expires_in')
72
- self.expires_in = attributes[:'expires_in']
69
+ if attributes.has_key?(:'source_pdfs')
70
+ if (value = attributes[:'source_pdfs']).is_a?(Array)
71
+ self.source_pdfs = value
72
+ end
73
73
  end
74
74
 
75
- if attributes.has_key?(:'delete_custom_files')
76
- self.delete_custom_files = attributes[:'delete_custom_files']
75
+ if attributes.has_key?(:'test')
76
+ self.test = attributes[:'test']
77
77
  end
78
78
  end
79
79
 
@@ -100,11 +100,11 @@ module DocSpring
100
100
  def ==(o)
101
101
  return true if self.equal?(o)
102
102
  self.class == o.class &&
103
- test == o.test &&
104
- source_pdfs == o.source_pdfs &&
105
- metadata == o.metadata &&
103
+ delete_custom_files == o.delete_custom_files &&
106
104
  expires_in == o.expires_in &&
107
- delete_custom_files == o.delete_custom_files
105
+ metadata == o.metadata &&
106
+ source_pdfs == o.source_pdfs &&
107
+ test == o.test
108
108
  end
109
109
 
110
110
  # @see the `==` method
@@ -116,7 +116,7 @@ module DocSpring
116
116
  # Calculates hash code according to all attributes.
117
117
  # @return [Fixnum] Hash code
118
118
  def hash
119
- [test, source_pdfs, metadata, expires_in, delete_custom_files].hash
119
+ [delete_custom_files, expires_in, metadata, source_pdfs, test].hash
120
120
  end
121
121
 
122
122
  # 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
 
@@ -22,6 +22,8 @@ module DocSpring
22
22
 
23
23
  attr_accessor :source_pdfs
24
24
 
25
+ attr_accessor :pdf_hash
26
+
25
27
  attr_accessor :download_url
26
28
 
27
29
  attr_accessor :submission_ids
@@ -61,6 +63,7 @@ module DocSpring
61
63
  :'expired' => :'expired',
62
64
  :'expires_at' => :'expires_at',
63
65
  :'source_pdfs' => :'source_pdfs',
66
+ :'pdf_hash' => :'pdf_hash',
64
67
  :'download_url' => :'download_url',
65
68
  :'submission_ids' => :'submission_ids',
66
69
  :'id' => :'id',
@@ -76,6 +79,7 @@ module DocSpring
76
79
  :'expired' => :'BOOLEAN',
77
80
  :'expires_at' => :'String',
78
81
  :'source_pdfs' => :'Array<Object>',
82
+ :'pdf_hash' => :'String',
79
83
  :'download_url' => :'String',
80
84
  :'submission_ids' => :'Array<String>',
81
85
  :'id' => :'String',
@@ -110,6 +114,10 @@ module DocSpring
110
114
  end
111
115
  end
112
116
 
117
+ if attributes.has_key?(:'pdf_hash')
118
+ self.pdf_hash = attributes[:'pdf_hash']
119
+ end
120
+
113
121
  if attributes.has_key?(:'download_url')
114
122
  self.download_url = attributes[:'download_url']
115
123
  end
@@ -169,6 +177,7 @@ module DocSpring
169
177
  expired == o.expired &&
170
178
  expires_at == o.expires_at &&
171
179
  source_pdfs == o.source_pdfs &&
180
+ pdf_hash == o.pdf_hash &&
172
181
  download_url == o.download_url &&
173
182
  submission_ids == o.submission_ids &&
174
183
  id == o.id &&
@@ -185,7 +194,7 @@ module DocSpring
185
194
  # Calculates hash code according to all attributes.
186
195
  # @return [Fixnum] Hash code
187
196
  def hash
188
- [metadata, expired, expires_at, source_pdfs, download_url, submission_ids, id, state, actions].hash
197
+ [metadata, expired, expires_at, source_pdfs, pdf_hash, download_url, submission_ids, id, state, actions].hash
189
198
  end
190
199
 
191
200
  # 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
 
@@ -14,31 +14,31 @@ require 'date'
14
14
 
15
15
  module DocSpring
16
16
  class CombinedSubmissionData
17
- attr_accessor :test
18
-
19
- attr_accessor :submission_ids
17
+ attr_accessor :expires_in
20
18
 
21
19
  attr_accessor :metadata
22
20
 
23
- attr_accessor :expires_in
21
+ attr_accessor :submission_ids
22
+
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
- :'test' => :'test',
29
- :'submission_ids' => :'submission_ids',
28
+ :'expires_in' => :'expires_in',
30
29
  :'metadata' => :'metadata',
31
- :'expires_in' => :'expires_in'
30
+ :'submission_ids' => :'submission_ids',
31
+ :'test' => :'test'
32
32
  }
33
33
  end
34
34
 
35
35
  # Attribute type mapping.
36
36
  def self.openapi_types
37
37
  {
38
- :'test' => :'BOOLEAN',
39
- :'submission_ids' => :'Array<String>',
38
+ :'expires_in' => :'Integer',
40
39
  :'metadata' => :'Object',
41
- :'expires_in' => :'Integer'
40
+ :'submission_ids' => :'Array<String>',
41
+ :'test' => :'BOOLEAN'
42
42
  }
43
43
  end
44
44
 
@@ -50,8 +50,12 @@ module DocSpring
50
50
  # convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
52
 
53
- if attributes.has_key?(:'test')
54
- self.test = attributes[:'test']
53
+ if attributes.has_key?(:'expires_in')
54
+ self.expires_in = attributes[:'expires_in']
55
+ end
56
+
57
+ if attributes.has_key?(:'metadata')
58
+ self.metadata = attributes[:'metadata']
55
59
  end
56
60
 
57
61
  if attributes.has_key?(:'submission_ids')
@@ -60,12 +64,8 @@ module DocSpring
60
64
  end
61
65
  end
62
66
 
63
- if attributes.has_key?(:'metadata')
64
- self.metadata = attributes[:'metadata']
65
- end
66
-
67
- if attributes.has_key?(:'expires_in')
68
- self.expires_in = attributes[:'expires_in']
67
+ if attributes.has_key?(:'test')
68
+ self.test = attributes[:'test']
69
69
  end
70
70
  end
71
71
 
@@ -92,10 +92,10 @@ module DocSpring
92
92
  def ==(o)
93
93
  return true if self.equal?(o)
94
94
  self.class == o.class &&
95
- test == o.test &&
96
- submission_ids == o.submission_ids &&
95
+ expires_in == o.expires_in &&
97
96
  metadata == o.metadata &&
98
- expires_in == o.expires_in
97
+ submission_ids == o.submission_ids &&
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
- [test, submission_ids, metadata, expires_in].hash
110
+ [expires_in, metadata, submission_ids, 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
 
@@ -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,14 +6,14 @@
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 CreateTemplateData
16
+ class CreateHtmlTemplateData
17
17
  attr_accessor :template
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,7 +26,7 @@ module DocSpring
26
26
  # Attribute type mapping.
27
27
  def self.openapi_types
28
28
  {
29
- :'template' => :'Templatesv2Template'
29
+ :'template' => :'HtmlTemplateData'
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,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,10 +14,10 @@ require 'date'
14
14
 
15
15
  module DocSpring
16
16
  class CreateSubmissionDataRequestData
17
- attr_accessor :metadata
18
-
19
17
  attr_accessor :auth_type
20
18
 
19
+ attr_accessor :metadata
20
+
21
21
  attr_accessor :auth_second_factor_type
22
22
 
23
23
  attr_accessor :auth_phone_number_hash
@@ -34,10 +34,10 @@ module DocSpring
34
34
 
35
35
  attr_accessor :fields
36
36
 
37
- attr_accessor :email
38
-
39
37
  attr_accessor :auth_provider
40
38
 
39
+ attr_accessor :email
40
+
41
41
  attr_accessor :order
42
42
 
43
43
  class EnumAttributeValidator
@@ -65,8 +65,8 @@ module DocSpring
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'metadata' => :'metadata',
69
68
  :'auth_type' => :'auth_type',
69
+ :'metadata' => :'metadata',
70
70
  :'auth_second_factor_type' => :'auth_second_factor_type',
71
71
  :'auth_phone_number_hash' => :'auth_phone_number_hash',
72
72
  :'auth_session_started_at' => :'auth_session_started_at',
@@ -75,8 +75,8 @@ module DocSpring
75
75
  :'auth_username_hash' => :'auth_username_hash',
76
76
  :'name' => :'name',
77
77
  :'fields' => :'fields',
78
- :'email' => :'email',
79
78
  :'auth_provider' => :'auth_provider',
79
+ :'email' => :'email',
80
80
  :'order' => :'order'
81
81
  }
82
82
  end
@@ -84,8 +84,8 @@ module DocSpring
84
84
  # Attribute type mapping.
85
85
  def self.openapi_types
86
86
  {
87
- :'metadata' => :'Object',
88
87
  :'auth_type' => :'String',
88
+ :'metadata' => :'Object',
89
89
  :'auth_second_factor_type' => :'String',
90
90
  :'auth_phone_number_hash' => :'String',
91
91
  :'auth_session_started_at' => :'String',
@@ -94,8 +94,8 @@ module DocSpring
94
94
  :'auth_username_hash' => :'String',
95
95
  :'name' => :'String',
96
96
  :'fields' => :'Array<String>',
97
- :'email' => :'String',
98
97
  :'auth_provider' => :'String',
98
+ :'email' => :'String',
99
99
  :'order' => :'Integer'
100
100
  }
101
101
  end
@@ -108,14 +108,14 @@ 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?(:'metadata')
112
- self.metadata = attributes[:'metadata']
113
- end
114
-
115
111
  if attributes.has_key?(:'auth_type')
116
112
  self.auth_type = attributes[:'auth_type']
117
113
  end
118
114
 
115
+ if attributes.has_key?(:'metadata')
116
+ self.metadata = attributes[:'metadata']
117
+ end
118
+
119
119
  if attributes.has_key?(:'auth_second_factor_type')
120
120
  self.auth_second_factor_type = attributes[:'auth_second_factor_type']
121
121
  end
@@ -150,14 +150,14 @@ module DocSpring
150
150
  end
151
151
  end
152
152
 
153
- if attributes.has_key?(:'email')
154
- self.email = attributes[:'email']
155
- end
156
-
157
153
  if attributes.has_key?(:'auth_provider')
158
154
  self.auth_provider = attributes[:'auth_provider']
159
155
  end
160
156
 
157
+ if attributes.has_key?(:'email')
158
+ self.email = attributes[:'email']
159
+ end
160
+
161
161
  if attributes.has_key?(:'order')
162
162
  self.order = attributes[:'order']
163
163
  end
@@ -205,8 +205,8 @@ module DocSpring
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
- metadata == o.metadata &&
209
208
  auth_type == o.auth_type &&
209
+ metadata == o.metadata &&
210
210
  auth_second_factor_type == o.auth_second_factor_type &&
211
211
  auth_phone_number_hash == o.auth_phone_number_hash &&
212
212
  auth_session_started_at == o.auth_session_started_at &&
@@ -215,8 +215,8 @@ module DocSpring
215
215
  auth_username_hash == o.auth_username_hash &&
216
216
  name == o.name &&
217
217
  fields == o.fields &&
218
- email == o.email &&
219
218
  auth_provider == o.auth_provider &&
219
+ email == o.email &&
220
220
  order == o.order
221
221
  end
222
222
 
@@ -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
- [metadata, auth_type, auth_second_factor_type, auth_phone_number_hash, auth_session_started_at, auth_user_id_hash, auth_session_id_hash, auth_username_hash, name, fields, email, auth_provider, order].hash
232
+ [auth_type, metadata, auth_second_factor_type, auth_phone_number_hash, auth_session_started_at, auth_user_id_hash, auth_session_id_hash, auth_username_hash, name, fields, auth_provider, email, order].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash