docspring 1.0.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.openapi-generator/VERSION +1 -1
- data/CHANGELOG.md +14 -37
- data/Gemfile +2 -1
- data/Gemfile.lock +37 -32
- data/LICENSE +1 -1
- data/README.md +26 -15
- data/docs/AddFieldsData.md +8 -0
- data/docs/AddFieldsTemplateResponse.md +10 -0
- data/docs/CombinePdfsData.md +4 -4
- data/docs/CombinedSubmission.md +1 -0
- data/docs/CombinedSubmissionData.md +3 -3
- data/docs/{CreateTemplateData.md → CreateHtmlTemplateData.md} +2 -2
- data/docs/CreateSubmissionDataRequestData.md +2 -2
- data/docs/CreateTemplateFromUploadData.md +8 -0
- data/docs/HtmlTemplateData.md +24 -0
- data/docs/PDFApi.md +169 -15
- data/docs/PendingTemplate.md +2 -0
- data/docs/Submission.md +5 -0
- data/docs/SubmissionBatchData.md +2 -2
- data/docs/SubmissionData.md +4 -3
- data/docs/SubmissionDataBatchRequest.md +2 -2
- data/docs/SubmissionDataRequest.md +2 -0
- data/docs/Template.md +2 -0
- data/docs/{Templatesv2Template.md → TemplateData.md} +11 -7
- data/docs/TemplatestemplateIdaddFieldsFields.md +92 -0
- data/docs/UpdateSubmissionDataRequestData.md +9 -9
- data/docs/UpdateTemplateData.md +8 -0
- data/docs/UpdateTemplateResponse.md +9 -0
- data/docs/UploadTemplateData.md +25 -0
- data/docs/{Templatesv2TemplateDocument.md → UploadTemplateDataDocument.md} +2 -2
- data/docs/{Templatesv2TemplateDocumentMetadata.md → UploadTemplateDataDocumentMetadata.md} +1 -1
- data/docspring.gemspec +3 -3
- data/lib/docspring.rb +13 -5
- data/lib/docspring/api/pdf_api.rb +193 -22
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/api_error.rb +1 -1
- data/lib/docspring/configuration.rb +1 -1
- data/lib/docspring/models/add_fields_data.rb +190 -0
- data/lib/docspring/models/add_fields_template_response.rb +239 -0
- data/lib/docspring/models/authentication_error.rb +1 -1
- data/lib/docspring/models/authentication_success_response.rb +1 -1
- data/lib/docspring/models/combine_pdfs_data.rb +28 -28
- data/lib/docspring/models/combined_submission.rb +11 -2
- data/lib/docspring/models/combined_submission_action.rb +1 -6
- data/lib/docspring/models/combined_submission_data.rb +23 -23
- data/lib/docspring/models/create_combined_submission_response.rb +1 -1
- data/lib/docspring/models/create_custom_file_data.rb +1 -1
- data/lib/docspring/models/create_custom_file_response.rb +1 -1
- data/lib/docspring/models/create_folder_data.rb +1 -1
- data/lib/docspring/models/{create_template_data.rb → create_html_template_data.rb} +3 -3
- data/lib/docspring/models/create_submission_batch_response.rb +1 -1
- data/lib/docspring/models/create_submission_batch_submissions_response.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_data.rb +20 -20
- data/lib/docspring/models/create_submission_data_request_token_response.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_token_response_token.rb +1 -1
- data/lib/docspring/models/create_submission_response.rb +1 -1
- data/lib/docspring/models/create_template_from_upload_data.rb +188 -0
- data/lib/docspring/models/custom_file.rb +1 -1
- data/lib/docspring/models/error.rb +1 -1
- data/lib/docspring/models/folder.rb +1 -1
- data/lib/docspring/models/folders_folder.rb +1 -1
- data/lib/docspring/models/html_template_data.rb +373 -0
- data/lib/docspring/models/invalid_request.rb +1 -1
- data/lib/docspring/models/move_folder_data.rb +1 -1
- data/lib/docspring/models/move_template_data.rb +1 -1
- data/lib/docspring/models/pending_template.rb +20 -2
- data/lib/docspring/models/rename_folder_data.rb +1 -1
- data/lib/docspring/models/submission.rb +52 -7
- data/lib/docspring/models/submission_action.rb +1 -6
- data/lib/docspring/models/submission_batch.rb +1 -1
- data/lib/docspring/models/submission_batch_data.rb +16 -16
- data/lib/docspring/models/submission_data.rb +34 -25
- data/lib/docspring/models/submission_data_batch_request.rb +20 -20
- data/lib/docspring/models/submission_data_request.rb +23 -20
- data/lib/docspring/models/template.rb +20 -2
- data/lib/docspring/models/{templatesv2_template.rb → template_data.rb} +81 -45
- data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +1306 -0
- data/lib/docspring/models/update_data_request_response.rb +1 -1
- data/lib/docspring/models/update_submission_data_request_data.rb +79 -79
- data/lib/docspring/models/update_template_data.rb +188 -0
- data/lib/docspring/models/update_template_response.rb +228 -0
- data/lib/docspring/models/upload_template_data.rb +382 -0
- data/lib/docspring/models/{templatesv2_template_document.rb → upload_template_data_document.rb} +3 -3
- data/lib/docspring/models/{templatesv2_template_document_metadata.rb → upload_template_data_document_metadata.rb} +2 -2
- data/lib/docspring/version.rb +2 -2
- data/spec/api/client_integration_spec.rb +14 -2
- data/spec/api/pdf_api_integration_spec.rb +49 -18
- data/spec/api/pdf_api_spec_original.skipped.rb +51 -11
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/add_fields_data_spec.rb +41 -0
- data/spec/models/add_fields_template_response_spec.rb +57 -0
- data/spec/models/authentication_error_spec.rb +1 -1
- data/spec/models/authentication_success_response_spec.rb +1 -1
- data/spec/models/combine_pdfs_data_spec.rb +5 -5
- data/spec/models/combined_submission_action_spec.rb +1 -1
- data/spec/models/combined_submission_data_spec.rb +5 -5
- data/spec/models/combined_submission_spec.rb +7 -1
- data/spec/models/create_combined_submission_response_spec.rb +1 -1
- data/spec/models/create_custom_file_data_spec.rb +1 -1
- data/spec/models/create_custom_file_response_spec.rb +1 -1
- data/spec/models/create_folder_data_spec.rb +1 -1
- data/spec/models/create_html_template_data_spec.rb +41 -0
- data/spec/models/create_submission_batch_response_spec.rb +1 -1
- data/spec/models/create_submission_batch_submissions_response_spec.rb +1 -1
- data/spec/models/create_submission_data_request_data_spec.rb +9 -9
- data/spec/models/create_submission_data_request_token_response_spec.rb +1 -1
- data/spec/models/create_submission_data_request_token_response_token_spec.rb +1 -1
- data/spec/models/create_submission_response_spec.rb +1 -1
- data/spec/models/{create_template_data_spec.rb → create_template_from_upload_data_spec.rb} +7 -7
- data/spec/models/custom_file_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/folder_spec.rb +1 -1
- data/spec/models/folders_folder_spec.rb +1 -1
- data/spec/models/html_template_data_spec.rb +145 -0
- data/spec/models/invalid_request_spec.rb +1 -1
- data/spec/models/move_folder_data_spec.rb +1 -1
- data/spec/models/move_template_data_spec.rb +1 -1
- data/spec/models/pending_template_spec.rb +13 -1
- data/spec/models/rename_folder_data_spec.rb +1 -1
- data/spec/models/submission_action_spec.rb +1 -1
- data/spec/models/submission_batch_data_spec.rb +3 -3
- data/spec/models/submission_batch_spec.rb +1 -1
- data/spec/models/submission_data_batch_request_spec.rb +5 -5
- data/spec/models/submission_data_request_spec.rb +13 -1
- data/spec/models/submission_data_spec.rb +11 -5
- data/spec/models/submission_spec.rb +32 -2
- data/spec/models/{templatesv2_template_spec.rb → template_data_spec.rb} +40 -16
- data/spec/models/template_spec.rb +13 -1
- data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +589 -0
- data/spec/models/update_data_request_response_spec.rb +1 -1
- data/spec/models/update_submission_data_request_data_spec.rb +17 -17
- data/spec/models/update_template_data_spec.rb +41 -0
- data/spec/models/update_template_response_spec.rb +51 -0
- data/spec/models/{templatesv2_template_document_metadata_spec.rb → upload_template_data_document_metadata_spec.rb} +7 -7
- data/spec/models/{templatesv2_template_document_spec.rb → upload_template_data_document_spec.rb} +7 -7
- data/spec/models/upload_template_data_spec.rb +151 -0
- data/spec/spec_helper.rb +1 -1
- metadata +60 -32
- data/.swagger-codegen-ignore +0 -31
- data/.swagger-codegen/VERSION +0 -1
- data/.swagger-revision +0 -1
- 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
|
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 :
|
17
|
+
attr_accessor :delete_custom_files
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :expires_in
|
20
20
|
|
21
21
|
attr_accessor :metadata
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :source_pdfs
|
24
24
|
|
25
|
-
attr_accessor :
|
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
|
-
:'
|
31
|
-
:'source_pdfs' => :'source_pdfs',
|
32
|
-
:'metadata' => :'metadata',
|
30
|
+
:'delete_custom_files' => :'delete_custom_files',
|
33
31
|
:'expires_in' => :'expires_in',
|
34
|
-
:'
|
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
|
-
:'
|
42
|
-
:'source_pdfs' => :'Array<Object>',
|
43
|
-
:'metadata' => :'Object',
|
41
|
+
:'delete_custom_files' => :'BOOLEAN',
|
44
42
|
:'expires_in' => :'Integer',
|
45
|
-
:'
|
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?(:'
|
58
|
-
self.
|
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?(:'
|
62
|
-
|
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?(:'
|
72
|
-
|
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?(:'
|
76
|
-
self.
|
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
|
-
|
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
|
-
|
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
|
-
[
|
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
|
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
|
9
|
+
OpenAPI Generator version: 3.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -113,10 +113,6 @@ module DocSpring
|
|
113
113
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
114
114
|
end
|
115
115
|
|
116
|
-
if @integration_id.nil?
|
117
|
-
invalid_properties.push('invalid value for "integration_id", integration_id cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
116
|
if @state.nil?
|
121
117
|
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
122
118
|
end
|
@@ -140,7 +136,6 @@ module DocSpring
|
|
140
136
|
# @return true if the model is valid
|
141
137
|
def valid?
|
142
138
|
return false if @id.nil?
|
143
|
-
return false if @integration_id.nil?
|
144
139
|
return false if @state.nil?
|
145
140
|
state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'failed', 'error'])
|
146
141
|
return false unless state_validator.valid?(@state)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 3.3.0
|
9
|
+
OpenAPI Generator version: 3.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,31 +14,31 @@ require 'date'
|
|
14
14
|
|
15
15
|
module DocSpring
|
16
16
|
class CombinedSubmissionData
|
17
|
-
attr_accessor :
|
18
|
-
|
19
|
-
attr_accessor :submission_ids
|
17
|
+
attr_accessor :expires_in
|
20
18
|
|
21
19
|
attr_accessor :metadata
|
22
20
|
|
23
|
-
attr_accessor :
|
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
|
-
:'
|
29
|
-
:'submission_ids' => :'submission_ids',
|
28
|
+
:'expires_in' => :'expires_in',
|
30
29
|
:'metadata' => :'metadata',
|
31
|
-
:'
|
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
|
-
:'
|
39
|
-
:'submission_ids' => :'Array<String>',
|
38
|
+
:'expires_in' => :'Integer',
|
40
39
|
:'metadata' => :'Object',
|
41
|
-
:'
|
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?(:'
|
54
|
-
self.
|
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?(:'
|
64
|
-
self.
|
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
|
-
|
96
|
-
submission_ids == o.submission_ids &&
|
95
|
+
expires_in == o.expires_in &&
|
97
96
|
metadata == o.metadata &&
|
98
|
-
|
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
|
-
[
|
110
|
+
[expires_in, metadata, submission_ids, test].hash
|
111
111
|
end
|
112
112
|
|
113
113
|
# Builds the object from hash
|
@@ -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
|
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
|
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' => :'
|
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
|
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
|
-
[
|
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
|