docspring 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -45
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +37 -32
  5. data/README.md +15 -9
  6. data/docs/CombinedSubmission.md +1 -0
  7. data/docs/CreateTemplateData.md +1 -1
  8. data/docs/CreateTemplateData1.md +8 -0
  9. data/docs/PDFApi.md +114 -12
  10. data/docs/PendingTemplate.md +1 -0
  11. data/docs/Submission.md +1 -0
  12. data/docs/SubmissionData.md +1 -0
  13. data/docs/SubmissionDataRequest.md +2 -0
  14. data/docs/Template.md +1 -0
  15. data/docs/TemplatesdesccachedUploadTemplate.md +25 -0
  16. data/docs/TemplatesdesccachedUploadTemplateDocument.md +10 -0
  17. data/docs/{Templatesv2TemplateDocumentMetadata.md → TemplatesdesccachedUploadTemplateDocumentMetadata.md} +1 -1
  18. data/docs/{Templatesv2Template.md → TemplatestemplateIdTemplate.md} +10 -6
  19. data/docs/UpdateTemplateData.md +8 -0
  20. data/docs/UpdateTemplateResponse.md +9 -0
  21. data/docspring.gemspec +1 -1
  22. data/lib/docspring.rb +7 -3
  23. data/lib/docspring/api/pdf_api.rb +128 -16
  24. data/lib/docspring/models/combined_submission.rb +10 -1
  25. data/lib/docspring/models/create_template_data.rb +1 -1
  26. data/lib/docspring/models/create_template_data1.rb +188 -0
  27. data/lib/docspring/models/pending_template.rb +10 -1
  28. data/lib/docspring/models/submission.rb +12 -3
  29. data/lib/docspring/models/submission_data.rb +10 -1
  30. data/lib/docspring/models/submission_data_request.rb +22 -4
  31. data/lib/docspring/models/template.rb +10 -1
  32. data/lib/docspring/models/templatesdesccached_upload_template.rb +382 -0
  33. data/lib/docspring/models/{templatesv2_template_document.rb → templatesdesccached_upload_template_document.rb} +2 -2
  34. data/lib/docspring/models/{templatesv2_template_document_metadata.rb → templatesdesccached_upload_template_document_metadata.rb} +1 -1
  35. data/lib/docspring/models/{templatesv2_template.rb → templatestemplate_id_template.rb} +77 -41
  36. data/lib/docspring/models/update_template_data.rb +188 -0
  37. data/lib/docspring/models/update_template_response.rb +228 -0
  38. data/lib/docspring/version.rb +1 -1
  39. data/spec/api/client_integration_spec.rb +14 -2
  40. data/spec/api/pdf_api_spec_original.skipped.rb +33 -7
  41. data/spec/models/combined_submission_spec.rb +6 -0
  42. data/spec/models/create_template_data1_spec.rb +41 -0
  43. data/spec/models/pending_template_spec.rb +6 -0
  44. data/spec/models/submission_data_request_spec.rb +12 -0
  45. data/spec/models/submission_data_spec.rb +6 -0
  46. data/spec/models/submission_spec.rb +7 -1
  47. data/spec/models/template_spec.rb +6 -0
  48. data/spec/models/{templatesv2_template_document_metadata_spec.rb → templatesdesccached_upload_template_document_metadata_spec.rb} +6 -6
  49. data/spec/models/{templatesv2_template_document_spec.rb → templatesdesccached_upload_template_document_spec.rb} +6 -6
  50. data/spec/models/templatesdesccached_upload_template_spec.rb +151 -0
  51. data/spec/models/{templatesv2_template_spec.rb → templatestemplate_id_template_spec.rb} +39 -15
  52. data/spec/models/update_template_data_spec.rb +41 -0
  53. data/spec/models/update_template_response_spec.rb +51 -0
  54. metadata +39 -27
  55. data/.swagger-codegen-ignore +0 -31
  56. data/.swagger-codegen/VERSION +0 -1
  57. data/.swagger-revision +0 -1
  58. data/.travis.yml +0 -8
  59. data/docs/Templatesv2TemplateDocument.md +0 -10
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for DocSpring::Templatesv2Template
17
+ # Unit tests for DocSpring::TemplatestemplateIdTemplate
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'Templatesv2Template' do
20
+ describe 'TemplatestemplateIdTemplate' do
21
21
  before do
22
22
  # run before each test
23
- @instance = DocSpring::Templatesv2Template.new
23
+ @instance = DocSpring::TemplatestemplateIdTemplate.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Templatesv2Template' do
31
- it 'should create an instance of Templatesv2Template' do
32
- expect(@instance).to be_instance_of(DocSpring::Templatesv2Template)
30
+ describe 'test an instance of TemplatestemplateIdTemplate' do
31
+ it 'should create an instance of TemplatestemplateIdTemplate' do
32
+ expect(@instance).to be_instance_of(DocSpring::TemplatestemplateIdTemplate)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "expiration_interval"' do
@@ -42,43 +42,67 @@ describe 'Templatesv2Template' do
42
42
  end
43
43
  end
44
44
 
45
- describe 'test attribute "public_web_form"' do
45
+ describe 'test attribute "webhook_url"' do
46
46
  it 'should work' do
47
47
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
48
  end
49
49
  end
50
50
 
51
- describe 'test attribute "webhook_url"' do
51
+ describe 'test attribute "scss"' do
52
52
  it 'should work' do
53
53
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
54
  end
55
55
  end
56
56
 
57
- describe 'test attribute "editable_submissions"' do
57
+ describe 'test attribute "expire_after"' do
58
58
  it 'should work' do
59
59
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
60
  end
61
61
  end
62
62
 
63
- describe 'test attribute "expire_submissions"' do
63
+ describe 'test attribute "allow_additional_properties"' do
64
64
  it 'should work' do
65
65
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
66
  end
67
67
  end
68
68
 
69
- describe 'test attribute "expire_after"' do
69
+ describe 'test attribute "description"' do
70
70
  it 'should work' do
71
71
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
72
  end
73
73
  end
74
74
 
75
- describe 'test attribute "allow_additional_properties"' do
75
+ describe 'test attribute "public_submissions"' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ describe 'test attribute "slack_webhook_url"' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ describe 'test attribute "header_html"' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ describe 'test attribute "public_web_form"' do
76
94
  it 'should work' do
77
95
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
96
  end
79
97
  end
80
98
 
81
- describe 'test attribute "document"' do
99
+ describe 'test attribute "editable_submissions"' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ describe 'test attribute "expire_submissions"' do
82
106
  it 'should work' do
83
107
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
108
  end
@@ -90,13 +114,13 @@ describe 'Templatesv2Template' do
90
114
  end
91
115
  end
92
116
 
93
- describe 'test attribute "public_submissions"' do
117
+ describe 'test attribute "html"' do
94
118
  it 'should work' do
95
119
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
120
  end
97
121
  end
98
122
 
99
- describe 'test attribute "slack_webhook_url"' do
123
+ describe 'test attribute "footer_html"' do
100
124
  it 'should work' do
101
125
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
126
  end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::UpdateTemplateData
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UpdateTemplateData' do
21
+ before do
22
+ # run before each test
23
+ @instance = DocSpring::UpdateTemplateData.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UpdateTemplateData' do
31
+ it 'should create an instance of UpdateTemplateData' do
32
+ expect(@instance).to be_instance_of(DocSpring::UpdateTemplateData)
33
+ end
34
+ end
35
+ describe 'test attribute "template"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,51 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::UpdateTemplateResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UpdateTemplateResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = DocSpring::UpdateTemplateResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UpdateTemplateResponse' do
31
+ it 'should create an instance of UpdateTemplateResponse' do
32
+ expect(@instance).to be_instance_of(DocSpring::UpdateTemplateResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "errors"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "status"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["success", "error"])
45
+ # validator.allowable_values.each do |value|
46
+ # expect { @instance.status = value }.not_to raise_error
47
+ # end
48
+ end
49
+ end
50
+
51
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docspring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Form Applications, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-08 00:00:00.000000000 Z
11
+ date: 2020-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -68,22 +68,22 @@ dependencies:
68
68
  name: rspec
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 3.6.0
74
71
  - - "~>"
75
72
  - !ruby/object:Gem::Version
76
73
  version: '3.6'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 3.6.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 3.6.0
84
81
  - - "~>"
85
82
  - !ruby/object:Gem::Version
86
83
  version: '3.6'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 3.6.0
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: vcr
89
89
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +193,7 @@ dependencies:
193
193
  version: '0.2'
194
194
  - - ">="
195
195
  - !ruby/object:Gem::Version
196
- version: 0.2.12
196
+ version: 0.2.15
197
197
  type: :development
198
198
  prerelease: false
199
199
  version_requirements: !ruby/object:Gem::Requirement
@@ -203,7 +203,7 @@ dependencies:
203
203
  version: '0.2'
204
204
  - - ">="
205
205
  - !ruby/object:Gem::Version
206
- version: 0.2.12
206
+ version: 0.2.15
207
207
  description: Client library for the DocSpring PDF generation and e-signature service
208
208
  email:
209
209
  - support@docspring.com
@@ -216,10 +216,6 @@ files:
216
216
  - ".openapi-generator/VERSION"
217
217
  - ".rspec"
218
218
  - ".rubocop.yml"
219
- - ".swagger-codegen-ignore"
220
- - ".swagger-codegen/VERSION"
221
- - ".swagger-revision"
222
- - ".travis.yml"
223
219
  - CHANGELOG.md
224
220
  - Gemfile
225
221
  - Gemfile.lock
@@ -243,6 +239,7 @@ files:
243
239
  - docs/CreateSubmissionDataRequestTokenResponseToken.md
244
240
  - docs/CreateSubmissionResponse.md
245
241
  - docs/CreateTemplateData.md
242
+ - docs/CreateTemplateData1.md
246
243
  - docs/CustomFile.md
247
244
  - docs/Error.md
248
245
  - docs/Folder.md
@@ -261,11 +258,14 @@ files:
261
258
  - docs/SubmissionDataBatchRequest.md
262
259
  - docs/SubmissionDataRequest.md
263
260
  - docs/Template.md
264
- - docs/Templatesv2Template.md
265
- - docs/Templatesv2TemplateDocument.md
266
- - docs/Templatesv2TemplateDocumentMetadata.md
261
+ - docs/TemplatesdesccachedUploadTemplate.md
262
+ - docs/TemplatesdesccachedUploadTemplateDocument.md
263
+ - docs/TemplatesdesccachedUploadTemplateDocumentMetadata.md
264
+ - docs/TemplatestemplateIdTemplate.md
267
265
  - docs/UpdateDataRequestResponse.md
268
266
  - docs/UpdateSubmissionDataRequestData.md
267
+ - docs/UpdateTemplateData.md
268
+ - docs/UpdateTemplateResponse.md
269
269
  - docspring.gemspec
270
270
  - git_push.sh
271
271
  - lib/docspring.rb
@@ -291,6 +291,7 @@ files:
291
291
  - lib/docspring/models/create_submission_data_request_token_response_token.rb
292
292
  - lib/docspring/models/create_submission_response.rb
293
293
  - lib/docspring/models/create_template_data.rb
294
+ - lib/docspring/models/create_template_data1.rb
294
295
  - lib/docspring/models/custom_file.rb
295
296
  - lib/docspring/models/error.rb
296
297
  - lib/docspring/models/folder.rb
@@ -308,11 +309,14 @@ files:
308
309
  - lib/docspring/models/submission_data_batch_request.rb
309
310
  - lib/docspring/models/submission_data_request.rb
310
311
  - lib/docspring/models/template.rb
311
- - lib/docspring/models/templatesv2_template.rb
312
- - lib/docspring/models/templatesv2_template_document.rb
313
- - lib/docspring/models/templatesv2_template_document_metadata.rb
312
+ - lib/docspring/models/templatesdesccached_upload_template.rb
313
+ - lib/docspring/models/templatesdesccached_upload_template_document.rb
314
+ - lib/docspring/models/templatesdesccached_upload_template_document_metadata.rb
315
+ - lib/docspring/models/templatestemplate_id_template.rb
314
316
  - lib/docspring/models/update_data_request_response.rb
315
317
  - lib/docspring/models/update_submission_data_request_data.rb
318
+ - lib/docspring/models/update_template_data.rb
319
+ - lib/docspring/models/update_template_response.rb
316
320
  - lib/docspring/version.rb
317
321
  - spec/api/client_integration_spec.rb
318
322
  - spec/api/pdf_api_integration_spec.rb
@@ -335,6 +339,7 @@ files:
335
339
  - spec/models/create_submission_data_request_token_response_spec.rb
336
340
  - spec/models/create_submission_data_request_token_response_token_spec.rb
337
341
  - spec/models/create_submission_response_spec.rb
342
+ - spec/models/create_template_data1_spec.rb
338
343
  - spec/models/create_template_data_spec.rb
339
344
  - spec/models/custom_file_spec.rb
340
345
  - spec/models/error_spec.rb
@@ -353,11 +358,14 @@ files:
353
358
  - spec/models/submission_data_spec.rb
354
359
  - spec/models/submission_spec.rb
355
360
  - spec/models/template_spec.rb
356
- - spec/models/templatesv2_template_document_metadata_spec.rb
357
- - spec/models/templatesv2_template_document_spec.rb
358
- - spec/models/templatesv2_template_spec.rb
361
+ - spec/models/templatesdesccached_upload_template_document_metadata_spec.rb
362
+ - spec/models/templatesdesccached_upload_template_document_spec.rb
363
+ - spec/models/templatesdesccached_upload_template_spec.rb
364
+ - spec/models/templatestemplate_id_template_spec.rb
359
365
  - spec/models/update_data_request_response_spec.rb
360
366
  - spec/models/update_submission_data_request_data_spec.rb
367
+ - spec/models/update_template_data_spec.rb
368
+ - spec/models/update_template_response_spec.rb
361
369
  - spec/spec_helper.rb
362
370
  homepage: https://github.com/DocSpring/docspring-ruby
363
371
  licenses:
@@ -378,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
386
  - !ruby/object:Gem::Version
379
387
  version: '0'
380
388
  requirements: []
381
- rubygems_version: 3.0.6
389
+ rubygems_version: 3.1.2
382
390
  signing_key:
383
391
  specification_version: 4
384
392
  summary: DocSpring API Client
@@ -404,6 +412,7 @@ test_files:
404
412
  - spec/models/create_submission_data_request_token_response_spec.rb
405
413
  - spec/models/create_submission_data_request_token_response_token_spec.rb
406
414
  - spec/models/create_submission_response_spec.rb
415
+ - spec/models/create_template_data1_spec.rb
407
416
  - spec/models/create_template_data_spec.rb
408
417
  - spec/models/custom_file_spec.rb
409
418
  - spec/models/error_spec.rb
@@ -422,9 +431,12 @@ test_files:
422
431
  - spec/models/submission_data_spec.rb
423
432
  - spec/models/submission_spec.rb
424
433
  - spec/models/template_spec.rb
425
- - spec/models/templatesv2_template_document_metadata_spec.rb
426
- - spec/models/templatesv2_template_document_spec.rb
427
- - spec/models/templatesv2_template_spec.rb
434
+ - spec/models/templatesdesccached_upload_template_document_metadata_spec.rb
435
+ - spec/models/templatesdesccached_upload_template_document_spec.rb
436
+ - spec/models/templatesdesccached_upload_template_spec.rb
437
+ - spec/models/templatestemplate_id_template_spec.rb
428
438
  - spec/models/update_data_request_response_spec.rb
429
439
  - spec/models/update_submission_data_request_data_spec.rb
440
+ - spec/models/update_template_data_spec.rb
441
+ - spec/models/update_template_response_spec.rb
430
442
  - spec/spec_helper.rb
@@ -1,31 +0,0 @@
1
- # Swagger Codegen Ignore
2
- # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
24
-
25
- README.md
26
- CHANGELOG.md
27
- git_push.sh
28
- docs/
29
- .gitignore
30
- LICENSE
31
- Rakefile
@@ -1 +0,0 @@
1
- 2.3.0-SNAPSHOT
@@ -1 +0,0 @@
1
- 28a5b74dbf313529a2fc697d46e9ed870cfd6a30
@@ -1,8 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.4.2
4
- - 2.1.10
5
- - 1.9.3
6
-
7
- before_install:
8
- - gem update bundler
@@ -1,10 +0,0 @@
1
- # DocSpring::Templatesv2TemplateDocument
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **metadata** | [**Templatesv2TemplateDocumentMetadata**](Templatesv2TemplateDocumentMetadata.md) | | [optional]
7
- **id** | **String** | | [optional]
8
- **storage** | **String** | | [optional]
9
-
10
-