docspring 1.2.0 → 1.4.0
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 +20 -0
- data/Gemfile.lock +2 -7
- data/LICENSE +1 -1
- data/README.md +6 -4
- data/docs/CombinePdfsData.md +4 -4
- data/docs/CombinedSubmissionData.md +3 -3
- data/docs/CopyTemplateData.md +9 -0
- data/docs/CreateSubmissionDataRequestData.md +2 -2
- data/docs/HtmlTemplateData.md +2 -2
- data/docs/MoveTemplateData.md +1 -1
- data/docs/PDFApi.md +53 -1
- data/docs/Submission.md +3 -0
- data/docs/SubmissionBatchData.md +2 -2
- data/docs/SubmissionData.md +4 -4
- data/docs/SubmissionDataBatchRequest.md +2 -2
- data/docs/SubmissionDataRequest.md +1 -0
- data/docs/TemplateData.md +2 -2
- data/docs/TemplatestemplateIdaddFieldsFields.md +9 -9
- data/docs/UpdateSubmissionDataRequestData.md +9 -9
- data/docs/UploadTemplateData.md +2 -2
- data/docspring.gemspec +2 -3
- data/lib/docspring.rb +2 -1
- data/lib/docspring/api/pdf_api.rb +60 -1
- data/lib/docspring/api_client.rb +2 -2
- data/lib/docspring/api_error.rb +1 -1
- data/lib/docspring/configuration.rb +2 -3
- data/lib/docspring/models/add_fields_data.rb +1 -1
- data/lib/docspring/models/add_fields_template_response.rb +1 -1
- 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 +1 -1
- data/lib/docspring/models/combined_submission_action.rb +1 -6
- data/lib/docspring/models/combined_submission_data.rb +23 -23
- data/lib/docspring/models/copy_template_data.rb +197 -0
- 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_html_template_data.rb +1 -1
- 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 +1 -1
- 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 +20 -20
- 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 +6 -1
- data/lib/docspring/models/pending_template.rb +1 -1
- data/lib/docspring/models/rename_folder_data.rb +1 -1
- data/lib/docspring/models/submission.rb +32 -5
- 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 -34
- data/lib/docspring/models/submission_data_batch_request.rb +20 -20
- data/lib/docspring/models/submission_data_request.rb +14 -15
- data/lib/docspring/models/template.rb +1 -1
- data/lib/docspring/models/template_data.rb +20 -20
- data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +107 -107
- 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 +1 -1
- data/lib/docspring/models/update_template_response.rb +1 -1
- data/lib/docspring/models/upload_template_data.rb +20 -20
- data/lib/docspring/models/upload_template_data_document.rb +1 -1
- data/lib/docspring/models/upload_template_data_document_metadata.rb +1 -1
- data/lib/docspring/version.rb +2 -2
- data/spec/api/pdf_api_spec_original.skipped.rb +16 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/add_fields_data_spec.rb +1 -1
- data/spec/models/add_fields_template_response_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/copy_template_data_spec.rb +47 -0
- 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 +1 -1
- 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_from_upload_data_spec.rb +1 -1
- 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 +5 -5
- 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 +1 -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 +7 -1
- data/spec/models/submission_data_spec.rb +7 -7
- data/spec/models/submission_spec.rb +19 -1
- data/spec/models/template_data_spec.rb +5 -5
- data/spec/models/template_spec.rb +1 -1
- data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +27 -27
- 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 +1 -1
- data/spec/models/update_template_response_spec.rb +1 -1
- data/spec/models/upload_template_data_document_metadata_spec.rb +1 -1
- data/spec/models/upload_template_data_document_spec.rb +1 -1
- data/spec/models/upload_template_data_spec.rb +6 -6
- data/spec/spec_helper.rb +1 -1
- metadata +11 -27
@@ -3,18 +3,18 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**email** | **String** | | [optional]
|
8
|
-
**order** | **Integer** | | [optional]
|
9
|
-
**fields** | **Array<String>** | | [optional]
|
10
|
-
**metadata** | **Object** | | [optional]
|
11
|
-
**auth_type** | **String** | | [optional]
|
12
|
-
**auth_second_factor_type** | **String** | | [optional]
|
6
|
+
**auth_phone_number_hash** | **String** | | [optional]
|
13
7
|
**auth_provider** | **String** | | [optional]
|
14
|
-
**
|
8
|
+
**auth_second_factor_type** | **String** | | [optional]
|
15
9
|
**auth_session_id_hash** | **String** | | [optional]
|
10
|
+
**auth_session_started_at** | **String** | | [optional]
|
11
|
+
**auth_type** | **String** | | [optional]
|
16
12
|
**auth_user_id_hash** | **String** | | [optional]
|
17
13
|
**auth_username_hash** | **String** | | [optional]
|
18
|
-
**
|
14
|
+
**email** | **String** | | [optional]
|
15
|
+
**fields** | **Array<String>** | | [optional]
|
16
|
+
**metadata** | **Object** | | [optional]
|
17
|
+
**name** | **String** | | [optional]
|
18
|
+
**order** | **Integer** | | [optional]
|
19
19
|
|
20
20
|
|
data/docs/UploadTemplateData.md
CHANGED
@@ -6,9 +6,9 @@ Name | Type | Description | Notes
|
|
6
6
|
**expiration_interval** | **String** | | [optional]
|
7
7
|
**webhook_url** | **String** | | [optional]
|
8
8
|
**scss** | **String** | | [optional]
|
9
|
-
**expire_after** | **Float** | | [optional]
|
10
9
|
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
11
10
|
**document** | [**UploadTemplateDataDocument**](UploadTemplateDataDocument.md) | | [optional]
|
11
|
+
**expire_after** | **Float** | | [optional]
|
12
12
|
**description** | **String** | | [optional]
|
13
13
|
**public_submissions** | **BOOLEAN** | | [optional]
|
14
14
|
**slack_webhook_url** | **String** | | [optional]
|
@@ -17,8 +17,8 @@ Name | Type | Description | Notes
|
|
17
17
|
**editable_submissions** | **BOOLEAN** | | [optional]
|
18
18
|
**expire_submissions** | **BOOLEAN** | | [optional]
|
19
19
|
**name** | **String** | | [optional]
|
20
|
-
**html** | **String** | | [optional]
|
21
20
|
**footer_html** | **String** | | [optional]
|
21
|
+
**html** | **String** | | [optional]
|
22
22
|
**template_type** | **String** | | [optional]
|
23
23
|
**redirect_url** | **String** | | [optional]
|
24
24
|
|
data/docspring.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
OpenAPI spec version: v1
|
9
9
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 3.3.0
|
11
|
+
OpenAPI Generator version: 3.3.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.name = "docspring"
|
20
20
|
s.version = DocSpring::VERSION
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
|
-
s.authors = ["
|
22
|
+
s.authors = ["DocSpring"]
|
23
23
|
s.email = ["support@docspring.com"]
|
24
24
|
s.homepage = "https://github.com/DocSpring/docspring-ruby"
|
25
25
|
s.summary = "DocSpring API Client"
|
@@ -37,7 +37,6 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
38
38
|
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
39
39
|
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
40
|
-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.15'
|
41
40
|
|
42
41
|
# Use git ls-files to ignore anything in .gitignore
|
43
42
|
s.files = `git ls-files`.split("\n").uniq.sort.select{|f| !f.empty? }
|
data/lib/docspring.rb
CHANGED
@@ -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
|
|
@@ -25,6 +25,7 @@ require 'docspring/models/combine_pdfs_data'
|
|
25
25
|
require 'docspring/models/combined_submission'
|
26
26
|
require 'docspring/models/combined_submission_action'
|
27
27
|
require 'docspring/models/combined_submission_data'
|
28
|
+
require 'docspring/models/copy_template_data'
|
28
29
|
require 'docspring/models/create_combined_submission_response'
|
29
30
|
require 'docspring/models/create_custom_file_data'
|
30
31
|
require 'docspring/models/create_custom_file_response'
|
@@ -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
|
|
@@ -296,6 +296,65 @@ module DocSpring
|
|
296
296
|
return data, status_code, headers
|
297
297
|
end
|
298
298
|
|
299
|
+
# Copy a Template
|
300
|
+
# @param template_id
|
301
|
+
# @param copy_template_data
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @return [Template]
|
304
|
+
def copy_template(template_id, copy_template_data, opts = {})
|
305
|
+
data, _status_code, _headers = copy_template_with_http_info(template_id, copy_template_data, opts)
|
306
|
+
data
|
307
|
+
end
|
308
|
+
|
309
|
+
# Copy a Template
|
310
|
+
# @param template_id
|
311
|
+
# @param copy_template_data
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [Array<(Template, Fixnum, Hash)>] Template data, response status code and response headers
|
314
|
+
def copy_template_with_http_info(template_id, copy_template_data, opts = {})
|
315
|
+
if @api_client.config.debugging
|
316
|
+
@api_client.config.logger.debug 'Calling API: PDFApi.copy_template ...'
|
317
|
+
end
|
318
|
+
# verify the required parameter 'template_id' is set
|
319
|
+
if @api_client.config.client_side_validation && template_id.nil?
|
320
|
+
fail ArgumentError, "Missing the required parameter 'template_id' when calling PDFApi.copy_template"
|
321
|
+
end
|
322
|
+
# verify the required parameter 'copy_template_data' is set
|
323
|
+
if @api_client.config.client_side_validation && copy_template_data.nil?
|
324
|
+
fail ArgumentError, "Missing the required parameter 'copy_template_data' when calling PDFApi.copy_template"
|
325
|
+
end
|
326
|
+
# resource path
|
327
|
+
local_var_path = '/templates/{template_id}/copy'.sub('{' + 'template_id' + '}', template_id.to_s)
|
328
|
+
|
329
|
+
# query parameters
|
330
|
+
query_params = {}
|
331
|
+
|
332
|
+
# header parameters
|
333
|
+
header_params = {}
|
334
|
+
# HTTP header 'Accept' (if needed)
|
335
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
336
|
+
# HTTP header 'Content-Type'
|
337
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
338
|
+
|
339
|
+
# form parameters
|
340
|
+
form_params = {}
|
341
|
+
|
342
|
+
# http body (model)
|
343
|
+
post_body = @api_client.object_to_http_body(copy_template_data)
|
344
|
+
auth_names = ['api_token_basic']
|
345
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
346
|
+
:header_params => header_params,
|
347
|
+
:query_params => query_params,
|
348
|
+
:form_params => form_params,
|
349
|
+
:body => post_body,
|
350
|
+
:auth_names => auth_names,
|
351
|
+
:return_type => 'Template')
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: PDFApi#copy_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
return data, status_code, headers
|
356
|
+
end
|
357
|
+
|
299
358
|
# Create a new custom file from a cached presign upload
|
300
359
|
# @param create_custom_file_data
|
301
360
|
# @param [Hash] opts the optional parameters
|
data/lib/docspring/api_client.rb
CHANGED
@@ -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
|
|
@@ -281,7 +281,7 @@ module DocSpring
|
|
281
281
|
def build_request_url(path)
|
282
282
|
# Add leading and trailing slashes to path
|
283
283
|
path = "/#{path}".gsub(/\/+/, '/')
|
284
|
-
|
284
|
+
@config.base_url + path
|
285
285
|
end
|
286
286
|
|
287
287
|
# Builds the HTTP request body
|
data/lib/docspring/api_error.rb
CHANGED
@@ -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
|
|
@@ -195,8 +195,7 @@ module DocSpring
|
|
195
195
|
end
|
196
196
|
|
197
197
|
def base_url
|
198
|
-
|
199
|
-
URI.encode(url)
|
198
|
+
"#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
200
199
|
end
|
201
200
|
|
202
201
|
# Gets API key (with prefix if set).
|
@@ -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
|
|
@@ -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
|