docspring 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/VERSION +1 -1
  3. data/CHANGELOG.md +20 -0
  4. data/Gemfile.lock +2 -7
  5. data/LICENSE +1 -1
  6. data/README.md +6 -4
  7. data/docs/CombinePdfsData.md +4 -4
  8. data/docs/CombinedSubmissionData.md +3 -3
  9. data/docs/CopyTemplateData.md +9 -0
  10. data/docs/CreateSubmissionDataRequestData.md +2 -2
  11. data/docs/HtmlTemplateData.md +2 -2
  12. data/docs/MoveTemplateData.md +1 -1
  13. data/docs/PDFApi.md +53 -1
  14. data/docs/Submission.md +3 -0
  15. data/docs/SubmissionBatchData.md +2 -2
  16. data/docs/SubmissionData.md +4 -4
  17. data/docs/SubmissionDataBatchRequest.md +2 -2
  18. data/docs/SubmissionDataRequest.md +1 -0
  19. data/docs/TemplateData.md +2 -2
  20. data/docs/TemplatestemplateIdaddFieldsFields.md +9 -9
  21. data/docs/UpdateSubmissionDataRequestData.md +9 -9
  22. data/docs/UploadTemplateData.md +2 -2
  23. data/docspring.gemspec +2 -3
  24. data/lib/docspring.rb +2 -1
  25. data/lib/docspring/api/pdf_api.rb +60 -1
  26. data/lib/docspring/api_client.rb +2 -2
  27. data/lib/docspring/api_error.rb +1 -1
  28. data/lib/docspring/configuration.rb +2 -3
  29. data/lib/docspring/models/add_fields_data.rb +1 -1
  30. data/lib/docspring/models/add_fields_template_response.rb +1 -1
  31. data/lib/docspring/models/authentication_error.rb +1 -1
  32. data/lib/docspring/models/authentication_success_response.rb +1 -1
  33. data/lib/docspring/models/combine_pdfs_data.rb +28 -28
  34. data/lib/docspring/models/combined_submission.rb +1 -1
  35. data/lib/docspring/models/combined_submission_action.rb +1 -6
  36. data/lib/docspring/models/combined_submission_data.rb +23 -23
  37. data/lib/docspring/models/copy_template_data.rb +197 -0
  38. data/lib/docspring/models/create_combined_submission_response.rb +1 -1
  39. data/lib/docspring/models/create_custom_file_data.rb +1 -1
  40. data/lib/docspring/models/create_custom_file_response.rb +1 -1
  41. data/lib/docspring/models/create_folder_data.rb +1 -1
  42. data/lib/docspring/models/create_html_template_data.rb +1 -1
  43. data/lib/docspring/models/create_submission_batch_response.rb +1 -1
  44. data/lib/docspring/models/create_submission_batch_submissions_response.rb +1 -1
  45. data/lib/docspring/models/create_submission_data_request_data.rb +20 -20
  46. data/lib/docspring/models/create_submission_data_request_token_response.rb +1 -1
  47. data/lib/docspring/models/create_submission_data_request_token_response_token.rb +1 -1
  48. data/lib/docspring/models/create_submission_response.rb +1 -1
  49. data/lib/docspring/models/create_template_from_upload_data.rb +1 -1
  50. data/lib/docspring/models/custom_file.rb +1 -1
  51. data/lib/docspring/models/error.rb +1 -1
  52. data/lib/docspring/models/folder.rb +1 -1
  53. data/lib/docspring/models/folders_folder.rb +1 -1
  54. data/lib/docspring/models/html_template_data.rb +20 -20
  55. data/lib/docspring/models/invalid_request.rb +1 -1
  56. data/lib/docspring/models/move_folder_data.rb +1 -1
  57. data/lib/docspring/models/move_template_data.rb +6 -1
  58. data/lib/docspring/models/pending_template.rb +1 -1
  59. data/lib/docspring/models/rename_folder_data.rb +1 -1
  60. data/lib/docspring/models/submission.rb +32 -5
  61. data/lib/docspring/models/submission_action.rb +1 -6
  62. data/lib/docspring/models/submission_batch.rb +1 -1
  63. data/lib/docspring/models/submission_batch_data.rb +16 -16
  64. data/lib/docspring/models/submission_data.rb +34 -34
  65. data/lib/docspring/models/submission_data_batch_request.rb +20 -20
  66. data/lib/docspring/models/submission_data_request.rb +14 -15
  67. data/lib/docspring/models/template.rb +1 -1
  68. data/lib/docspring/models/template_data.rb +20 -20
  69. data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +107 -107
  70. data/lib/docspring/models/update_data_request_response.rb +1 -1
  71. data/lib/docspring/models/update_submission_data_request_data.rb +79 -79
  72. data/lib/docspring/models/update_template_data.rb +1 -1
  73. data/lib/docspring/models/update_template_response.rb +1 -1
  74. data/lib/docspring/models/upload_template_data.rb +20 -20
  75. data/lib/docspring/models/upload_template_data_document.rb +1 -1
  76. data/lib/docspring/models/upload_template_data_document_metadata.rb +1 -1
  77. data/lib/docspring/version.rb +2 -2
  78. data/spec/api/pdf_api_spec_original.skipped.rb +16 -2
  79. data/spec/api_client_spec.rb +1 -1
  80. data/spec/configuration_spec.rb +1 -1
  81. data/spec/models/add_fields_data_spec.rb +1 -1
  82. data/spec/models/add_fields_template_response_spec.rb +1 -1
  83. data/spec/models/authentication_error_spec.rb +1 -1
  84. data/spec/models/authentication_success_response_spec.rb +1 -1
  85. data/spec/models/combine_pdfs_data_spec.rb +5 -5
  86. data/spec/models/combined_submission_action_spec.rb +1 -1
  87. data/spec/models/combined_submission_data_spec.rb +5 -5
  88. data/spec/models/combined_submission_spec.rb +1 -1
  89. data/spec/models/copy_template_data_spec.rb +47 -0
  90. data/spec/models/create_combined_submission_response_spec.rb +1 -1
  91. data/spec/models/create_custom_file_data_spec.rb +1 -1
  92. data/spec/models/create_custom_file_response_spec.rb +1 -1
  93. data/spec/models/create_folder_data_spec.rb +1 -1
  94. data/spec/models/create_html_template_data_spec.rb +1 -1
  95. data/spec/models/create_submission_batch_response_spec.rb +1 -1
  96. data/spec/models/create_submission_batch_submissions_response_spec.rb +1 -1
  97. data/spec/models/create_submission_data_request_data_spec.rb +9 -9
  98. data/spec/models/create_submission_data_request_token_response_spec.rb +1 -1
  99. data/spec/models/create_submission_data_request_token_response_token_spec.rb +1 -1
  100. data/spec/models/create_submission_response_spec.rb +1 -1
  101. data/spec/models/create_template_from_upload_data_spec.rb +1 -1
  102. data/spec/models/custom_file_spec.rb +1 -1
  103. data/spec/models/error_spec.rb +1 -1
  104. data/spec/models/folder_spec.rb +1 -1
  105. data/spec/models/folders_folder_spec.rb +1 -1
  106. data/spec/models/html_template_data_spec.rb +5 -5
  107. data/spec/models/invalid_request_spec.rb +1 -1
  108. data/spec/models/move_folder_data_spec.rb +1 -1
  109. data/spec/models/move_template_data_spec.rb +1 -1
  110. data/spec/models/pending_template_spec.rb +1 -1
  111. data/spec/models/rename_folder_data_spec.rb +1 -1
  112. data/spec/models/submission_action_spec.rb +1 -1
  113. data/spec/models/submission_batch_data_spec.rb +3 -3
  114. data/spec/models/submission_batch_spec.rb +1 -1
  115. data/spec/models/submission_data_batch_request_spec.rb +5 -5
  116. data/spec/models/submission_data_request_spec.rb +7 -1
  117. data/spec/models/submission_data_spec.rb +7 -7
  118. data/spec/models/submission_spec.rb +19 -1
  119. data/spec/models/template_data_spec.rb +5 -5
  120. data/spec/models/template_spec.rb +1 -1
  121. data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +27 -27
  122. data/spec/models/update_data_request_response_spec.rb +1 -1
  123. data/spec/models/update_submission_data_request_data_spec.rb +17 -17
  124. data/spec/models/update_template_data_spec.rb +1 -1
  125. data/spec/models/update_template_response_spec.rb +1 -1
  126. data/spec/models/upload_template_data_document_metadata_spec.rb +1 -1
  127. data/spec/models/upload_template_data_document_spec.rb +1 -1
  128. data/spec/models/upload_template_data_spec.rb +6 -6
  129. data/spec/spec_helper.rb +1 -1
  130. metadata +11 -27
@@ -3,18 +3,18 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **name** | **String** | | [optional]
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
- **auth_session_started_at** | **String** | | [optional]
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
- **auth_phone_number_hash** | **String** | | [optional]
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
 
@@ -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-SNAPSHOT
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 = ["Form Applications, Inc."]
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-SNAPSHOT
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-SNAPSHOT
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
@@ -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
 
@@ -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
- URI.encode(@config.base_url + path)
284
+ @config.base_url + path
285
285
  end
286
286
 
287
287
  # Builds the HTTP request body
@@ -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
 
@@ -195,8 +195,7 @@ module DocSpring
195
195
  end
196
196
 
197
197
  def base_url
198
- url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
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-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,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
 
@@ -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