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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cee0ce15eabd610765888e637b1e86d2e597844224f000b91889e866b0a5a851
4
- data.tar.gz: 5de24c41293961ac2fe26e0f3b863440aab35e6043f7cce350276515d94e2443
3
+ metadata.gz: 46c0017858d8012630a820ae7499d88d2964a1bb96e771e916d338afaac9ba45
4
+ data.tar.gz: 36a5f2e2b37ab68927634e17b4536a7a3863a31cfd588b455ecde828edad53c8
5
5
  SHA512:
6
- metadata.gz: a26e65e0212f2b7175e4b43aa3e896302419d0f00fc376cb545dd586492ef1355b3a30c1cdab948a57f52932281ad8311f568d5ba622b08bb679d58b094bb9ee
7
- data.tar.gz: 80d79e2142642d96b72846ef6aaf22591b8ac393b5b0bf49884987e98672705bc312a2133d853335dfe6b2caf1dbffe0ae2108d140013b3db0697a6f5bb641d4
6
+ metadata.gz: 4bfa4fb139f798ee2ec7dcf3bdf3728aeed65b72733367c1078e0b54ad23b35c7595f7008817e3ed4fda29a90393a1d6404c210ee0b0fc71953947c5ecc32919
7
+ data.tar.gz: 9dfb52bda962c02434dc1858f66e40ecd635001132cf03534d76de8ee12e2b9daca898769d1dfd0a742b28ef7d15a3ab2c1eed00c8767434ac1b2d99b5aee55d
@@ -1,48 +1,9 @@
1
- ### 1.12.0 [October 10, 2019]
1
+ ### 1.1.0 [September 12, 2020]
2
2
 
3
- - Add permanent_download_url attribute to Submission model
3
+ - **BREAKING CHANGE**: Renamed createTemplate operation to createPDFTemplate
4
+ - Added createHTMLTemplate operation. (This uses the same API endpoint as createPDFTemplate, but the example shows how to set html, scss, etc. fields)
5
+ - Added updateTemplate operation, to update a PDF or HTML template
4
6
 
5
- ### 1.11.0 [October 9, 2019]
7
+ ### 1.0.0 [May 20, 2019]
6
8
 
7
- - Add parent folder ID and path params to GET template response
8
- - Add parent folder ID param when creating a new template, so you can upload a template into a folder
9
-
10
- ### 1.10.0 [Aug 7, 2019]
11
- * Added Create Folder, List Folder, Move to Folder endpoints
12
-
13
- ### 1.9.1 [August 2, 2019]
14
-
15
- - Relax json dependency to support older versions (>= 1.8)
16
-
17
- ### 1.9.0 [June 22, 2019]
18
-
19
- - **BREAKING CHANGE** Renamed "Get Templates" endpoint to "List Templates". Added a search query parameter.
20
-
21
- ### 1.8.0 [April 11, 2019]
22
-
23
- - Added support for editable PDFS (editable: true)
24
-
25
- ### 1.7.0 [December 23, 2018]
26
-
27
- - Added CustomFiles, and combinePdf call to support many different types of source PDFs. Renamed a few models
28
-
29
- ### 1.6.0 [December 18, 2018]
30
-
31
- - Updated API host to api.formapi.io
32
-
33
- ### 1.5.0 [December 13, 2018]
34
-
35
- - Fix model name for newly created Templates (PendingTemplate)
36
- - Added "actions" to submission and combined_submission responses. Includes information about custom S3 uploads
37
-
38
- ### 1.4.1 [December 2, 2018]
39
-
40
- - Fixed crash in 1.4.0, did not include all of the necessary files
41
-
42
- ### 1.4.0 [December 1, 2018]
43
-
44
- - Added Create Template, Get Template, and Get Template Schema endpoints
45
-
46
- ### 1.3.0 [November 4, 2018]
47
-
48
- - Initial changelog
9
+ - Renamed FormAPI to DocSpring. (View the CHANGELOG in the original FormAPI API client for prior releases.)
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '>= 12.3.3'
7
7
  gem 'pry-byebug'
8
+ gem 'bundler-audit'
8
9
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docspring (1.0.0)
4
+ docspring (1.1.0)
5
5
  ffi (~> 1.0, >= 1.9.24)
6
6
  json (>= 1.8)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
@@ -10,50 +10,54 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ZenTest (4.12.0)
13
- addressable (2.5.2)
14
- public_suffix (>= 2.0.2, < 4.0)
13
+ addressable (2.7.0)
14
+ public_suffix (>= 2.0.2, < 5.0)
15
15
  autotest (4.4.6)
16
16
  ZenTest (>= 4.4.1)
17
- autotest-fsevent (0.2.14)
17
+ autotest-fsevent (0.2.15)
18
18
  sys-uname
19
19
  autotest-growl (0.2.16)
20
20
  autotest-rails-pure (4.1.2)
21
- byebug (10.0.2)
21
+ bundler-audit (0.6.1)
22
+ bundler (>= 1.2.0, < 3)
23
+ thor (~> 0.18)
24
+ byebug (11.1.1)
22
25
  coderay (1.1.2)
23
26
  crack (0.4.3)
24
27
  safe_yaml (~> 1.0.0)
25
28
  diff-lcs (1.3)
26
- ethon (0.11.0)
29
+ ethon (0.12.0)
27
30
  ffi (>= 1.3.0)
28
- ffi (1.9.25)
29
- hashdiff (0.3.7)
30
- json (2.1.0)
31
- method_source (0.9.0)
32
- pry (0.11.3)
31
+ ffi (1.12.2)
32
+ hashdiff (1.0.1)
33
+ json (2.3.0)
34
+ method_source (0.9.2)
35
+ pry (0.12.2)
33
36
  coderay (~> 1.1.0)
34
37
  method_source (~> 0.9.0)
35
- pry-byebug (3.6.0)
36
- byebug (~> 10.0)
38
+ pry-byebug (3.8.0)
39
+ byebug (~> 11.0)
37
40
  pry (~> 0.10)
38
- public_suffix (3.0.3)
39
- rake (12.0.0)
40
- rspec (3.8.0)
41
- rspec-core (~> 3.8.0)
42
- rspec-expectations (~> 3.8.0)
43
- rspec-mocks (~> 3.8.0)
44
- rspec-core (3.8.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-expectations (3.8.1)
41
+ public_suffix (4.0.3)
42
+ rake (13.0.1)
43
+ rspec (3.9.0)
44
+ rspec-core (~> 3.9.0)
45
+ rspec-expectations (~> 3.9.0)
46
+ rspec-mocks (~> 3.9.0)
47
+ rspec-core (3.9.1)
48
+ rspec-support (~> 3.9.1)
49
+ rspec-expectations (3.9.0)
47
50
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.8.0)
49
- rspec-mocks (3.8.0)
51
+ rspec-support (~> 3.9.0)
52
+ rspec-mocks (3.9.1)
50
53
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.8.0)
52
- rspec-support (3.8.0)
53
- safe_yaml (1.0.4)
54
- sys-uname (1.0.3)
54
+ rspec-support (~> 3.9.0)
55
+ rspec-support (3.9.2)
56
+ safe_yaml (1.0.5)
57
+ sys-uname (1.2.0)
55
58
  ffi (>= 1.0.0)
56
- typhoeus (1.3.0)
59
+ thor (0.20.3)
60
+ typhoeus (1.3.1)
57
61
  ethon (>= 0.9.0)
58
62
  vcr (3.0.3)
59
63
  webmock (1.24.6)
@@ -66,15 +70,16 @@ PLATFORMS
66
70
 
67
71
  DEPENDENCIES
68
72
  autotest (~> 4.4, >= 4.4.6)
69
- autotest-fsevent (~> 0.2, >= 0.2.12)
73
+ autotest-fsevent (~> 0.2, >= 0.2.15)
70
74
  autotest-growl (~> 0.2, >= 0.2.16)
71
75
  autotest-rails-pure (~> 4.1, >= 4.1.2)
76
+ bundler-audit
72
77
  docspring!
73
78
  pry-byebug
74
- rake (~> 12.0.0)
79
+ rake (>= 12.3.3)
75
80
  rspec (~> 3.6, >= 3.6.0)
76
81
  vcr (~> 3.0, >= 3.0.1)
77
82
  webmock (~> 1.24, >= 1.24.3)
78
83
 
79
84
  BUNDLED WITH
80
- 2.0.2
85
+ 2.1.4
data/README.md CHANGED
@@ -7,7 +7,7 @@ DocSpring is a service that helps you fill out and sign PDF templates.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.0.0
10
+ - Package version: 1.1.0
11
11
  - Build package: com.docspring.codegen.DocSpringRubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build docspring.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./docspring-1.0.0.gem
26
+ gem install ./docspring-1.1.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./docspring-1.0.0.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./docspring-1.1.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'docspring', '~> 1.0.0'
34
+ gem 'docspring', '~> 1.1.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -88,8 +88,9 @@ Class | Method | HTTP request | Description
88
88
  *DocSpring::PDFApi* | [**create_custom_file_from_upload**](docs/PDFApi.md#create_custom_file_from_upload) | **POST** /custom_files | Create a new custom file from a cached presign upload
89
89
  *DocSpring::PDFApi* | [**create_data_request_token**](docs/PDFApi.md#create_data_request_token) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
90
90
  *DocSpring::PDFApi* | [**create_folder**](docs/PDFApi.md#create_folder) | **POST** /folders/ | Create a folder
91
- *DocSpring::PDFApi* | [**create_template**](docs/PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template with a file upload
92
- *DocSpring::PDFApi* | [**create_template_from_upload**](docs/PDFApi.md#create_template_from_upload) | **POST** /templates?v&#x3D;2 | Create a new PDF template from a cached presign upload
91
+ *DocSpring::PDFApi* | [**create_html_template**](docs/PDFApi.md#create_html_template) | **POST** /templates?desc&#x3D;html | Create a new HTML template
92
+ *DocSpring::PDFApi* | [**create_pdf_template**](docs/PDFApi.md#create_pdf_template) | **POST** /templates | Create a new PDF template with a form POST file upload
93
+ *DocSpring::PDFApi* | [**create_pdf_template_from_upload**](docs/PDFApi.md#create_pdf_template_from_upload) | **POST** /templates?desc&#x3D;cached_upload | Create a new PDF template from a cached presign upload
93
94
  *DocSpring::PDFApi* | [**delete_folder**](docs/PDFApi.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
94
95
  *DocSpring::PDFApi* | [**expire_combined_submission**](docs/PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
95
96
  *DocSpring::PDFApi* | [**expire_submission**](docs/PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
@@ -108,6 +109,7 @@ Class | Method | HTTP request | Description
108
109
  *DocSpring::PDFApi* | [**rename_folder**](docs/PDFApi.md#rename_folder) | **POST** /folders/{folder_id}/rename | Rename a folder
109
110
  *DocSpring::PDFApi* | [**test_authentication**](docs/PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
110
111
  *DocSpring::PDFApi* | [**update_data_request**](docs/PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
112
+ *DocSpring::PDFApi* | [**update_template**](docs/PDFApi.md#update_template) | **PUT** /templates/{template_id} | Update a Template
111
113
 
112
114
 
113
115
  ## Documentation for Models
@@ -129,6 +131,7 @@ Class | Method | HTTP request | Description
129
131
  - [DocSpring::CreateSubmissionDataRequestTokenResponseToken](docs/CreateSubmissionDataRequestTokenResponseToken.md)
130
132
  - [DocSpring::CreateSubmissionResponse](docs/CreateSubmissionResponse.md)
131
133
  - [DocSpring::CreateTemplateData](docs/CreateTemplateData.md)
134
+ - [DocSpring::CreateTemplateData1](docs/CreateTemplateData1.md)
132
135
  - [DocSpring::CustomFile](docs/CustomFile.md)
133
136
  - [DocSpring::Error](docs/Error.md)
134
137
  - [DocSpring::Folder](docs/Folder.md)
@@ -146,11 +149,14 @@ Class | Method | HTTP request | Description
146
149
  - [DocSpring::SubmissionDataBatchRequest](docs/SubmissionDataBatchRequest.md)
147
150
  - [DocSpring::SubmissionDataRequest](docs/SubmissionDataRequest.md)
148
151
  - [DocSpring::Template](docs/Template.md)
149
- - [DocSpring::Templatesv2Template](docs/Templatesv2Template.md)
150
- - [DocSpring::Templatesv2TemplateDocument](docs/Templatesv2TemplateDocument.md)
151
- - [DocSpring::Templatesv2TemplateDocumentMetadata](docs/Templatesv2TemplateDocumentMetadata.md)
152
+ - [DocSpring::TemplatesdesccachedUploadTemplate](docs/TemplatesdesccachedUploadTemplate.md)
153
+ - [DocSpring::TemplatesdesccachedUploadTemplateDocument](docs/TemplatesdesccachedUploadTemplateDocument.md)
154
+ - [DocSpring::TemplatesdesccachedUploadTemplateDocumentMetadata](docs/TemplatesdesccachedUploadTemplateDocumentMetadata.md)
155
+ - [DocSpring::TemplatestemplateIdTemplate](docs/TemplatestemplateIdTemplate.md)
152
156
  - [DocSpring::UpdateDataRequestResponse](docs/UpdateDataRequestResponse.md)
153
157
  - [DocSpring::UpdateSubmissionDataRequestData](docs/UpdateSubmissionDataRequestData.md)
158
+ - [DocSpring::UpdateTemplateData](docs/UpdateTemplateData.md)
159
+ - [DocSpring::UpdateTemplateResponse](docs/UpdateTemplateResponse.md)
154
160
 
155
161
 
156
162
  ## Documentation for Authorization
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **expired** | **BOOLEAN** | | [optional]
8
8
  **expires_at** | **String** | | [optional]
9
9
  **source_pdfs** | **Array&lt;Object&gt;** | | [optional]
10
+ **pdf_hash** | **String** | | [optional]
10
11
  **download_url** | **String** | | [optional]
11
12
  **submission_ids** | **Array&lt;String&gt;** | | [optional]
12
13
  **id** | **String** | | [optional]
@@ -3,6 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **template** | [**Templatesv2Template**](Templatesv2Template.md) | |
6
+ **template** | [**TemplatesdesccachedUploadTemplate**](TemplatesdesccachedUploadTemplate.md) | |
7
7
 
8
8
 
@@ -0,0 +1,8 @@
1
+ # DocSpring::CreateTemplateData1
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **template** | [**TemplatesdesccachedUploadTemplate**](TemplatesdesccachedUploadTemplate.md) | |
7
+
8
+
@@ -11,8 +11,9 @@ Method | HTTP request | Description
11
11
  [**create_custom_file_from_upload**](PDFApi.md#create_custom_file_from_upload) | **POST** /custom_files | Create a new custom file from a cached presign upload
12
12
  [**create_data_request_token**](PDFApi.md#create_data_request_token) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
13
13
  [**create_folder**](PDFApi.md#create_folder) | **POST** /folders/ | Create a folder
14
- [**create_template**](PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template with a file upload
15
- [**create_template_from_upload**](PDFApi.md#create_template_from_upload) | **POST** /templates?v&#x3D;2 | Create a new PDF template from a cached presign upload
14
+ [**create_html_template**](PDFApi.md#create_html_template) | **POST** /templates?desc&#x3D;html | Create a new HTML template
15
+ [**create_pdf_template**](PDFApi.md#create_pdf_template) | **POST** /templates | Create a new PDF template with a form POST file upload
16
+ [**create_pdf_template_from_upload**](PDFApi.md#create_pdf_template_from_upload) | **POST** /templates?desc&#x3D;cached_upload | Create a new PDF template from a cached presign upload
16
17
  [**delete_folder**](PDFApi.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
17
18
  [**expire_combined_submission**](PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
18
19
  [**expire_submission**](PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
@@ -31,6 +32,7 @@ Method | HTTP request | Description
31
32
  [**rename_folder**](PDFApi.md#rename_folder) | **POST** /folders/{folder_id}/rename | Rename a folder
32
33
  [**test_authentication**](PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
33
34
  [**update_data_request**](PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
35
+ [**update_template**](PDFApi.md#update_template) | **PUT** /templates/{template_id} | Update a Template
34
36
 
35
37
 
36
38
  # **batch_generate_pdf_v1**
@@ -378,10 +380,59 @@ Name | Type | Description | Notes
378
380
 
379
381
 
380
382
 
381
- # **create_template**
382
- > PendingTemplate create_template(template_document, template_name, opts)
383
+ # **create_html_template**
384
+ > PendingTemplate create_html_template(create_template_data1)
383
385
 
384
- Upload a new PDF template with a file upload
386
+ Create a new HTML template
387
+
388
+ ### Example
389
+ ```ruby
390
+ # load the gem
391
+ require 'docspring'
392
+ # setup authorization
393
+ DocSpring.configure do |config|
394
+ # Configure HTTP basic authorization: api_token_basic
395
+ config.username = 'YOUR USERNAME'
396
+ config.password = 'YOUR PASSWORD'
397
+ end
398
+
399
+ api_instance = DocSpring::PDFApi.new
400
+ create_template_data1 = DocSpring::CreateTemplateData1.new # CreateTemplateData1 |
401
+
402
+ begin
403
+ #Create a new HTML template
404
+ result = api_instance.create_html_template(create_template_data1)
405
+ p result
406
+ rescue DocSpring::ApiError => e
407
+ puts "Exception when calling PDFApi->create_html_template: #{e}"
408
+ end
409
+ ```
410
+
411
+ ### Parameters
412
+
413
+ Name | Type | Description | Notes
414
+ ------------- | ------------- | ------------- | -------------
415
+ **create_template_data1** | [**CreateTemplateData1**](CreateTemplateData1.md)| |
416
+
417
+ ### Return type
418
+
419
+ [**PendingTemplate**](PendingTemplate.md)
420
+
421
+ ### Authorization
422
+
423
+ [api_token_basic](../README.md#api_token_basic)
424
+
425
+ ### HTTP request headers
426
+
427
+ - **Content-Type**: application/json
428
+ - **Accept**: application/json
429
+
430
+
431
+
432
+ # **create_pdf_template**
433
+ > PendingTemplate create_pdf_template(template_document, template_name, opts)
434
+
435
+ Create a new PDF template with a form POST file upload
385
436
 
386
437
  ### Example
387
438
  ```ruby
@@ -402,11 +453,11 @@ opts = {
402
453
  }
403
454
 
404
455
  begin
405
- #Upload a new PDF template with a file upload
406
- result = api_instance.create_template(template_document, template_name, opts)
456
+ #Create a new PDF template with a form POST file upload
457
+ result = api_instance.create_pdf_template(template_document, template_name, opts)
407
458
  p result
408
459
  rescue DocSpring::ApiError => e
409
- puts "Exception when calling PDFApi->create_template: #{e}"
460
+ puts "Exception when calling PDFApi->create_pdf_template: #{e}"
410
461
  end
411
462
  ```
412
463
 
@@ -433,8 +484,8 @@ Name | Type | Description | Notes
433
484
 
434
485
 
435
486
 
436
- # **create_template_from_upload**
437
- > PendingTemplate create_template_from_upload(create_template_data)
487
+ # **create_pdf_template_from_upload**
488
+ > PendingTemplate create_pdf_template_from_upload(create_template_data)
438
489
 
439
490
  Create a new PDF template from a cached presign upload
440
491
 
@@ -454,10 +505,10 @@ create_template_data = DocSpring::CreateTemplateData.new # CreateTemplateData |
454
505
 
455
506
  begin
456
507
  #Create a new PDF template from a cached presign upload
457
- result = api_instance.create_template_from_upload(create_template_data)
508
+ result = api_instance.create_pdf_template_from_upload(create_template_data)
458
509
  p result
459
510
  rescue DocSpring::ApiError => e
460
- puts "Exception when calling PDFApi->create_template_from_upload: #{e}"
511
+ puts "Exception when calling PDFApi->create_pdf_template_from_upload: #{e}"
461
512
  end
462
513
  ```
463
514
 
@@ -1383,3 +1434,54 @@ Name | Type | Description | Notes
1383
1434
 
1384
1435
 
1385
1436
 
1437
+ # **update_template**
1438
+ > UpdateTemplateResponse update_template(template_id, update_template_data)
1439
+
1440
+ Update a Template
1441
+
1442
+ ### Example
1443
+ ```ruby
1444
+ # load the gem
1445
+ require 'docspring'
1446
+ # setup authorization
1447
+ DocSpring.configure do |config|
1448
+ # Configure HTTP basic authorization: api_token_basic
1449
+ config.username = 'YOUR USERNAME'
1450
+ config.password = 'YOUR PASSWORD'
1451
+ end
1452
+
1453
+ api_instance = DocSpring::PDFApi.new
1454
+ template_id = 'tpl_000000000000000003' # String |
1455
+ update_template_data = DocSpring::UpdateTemplateData.new # UpdateTemplateData |
1456
+
1457
+ begin
1458
+ #Update a Template
1459
+ result = api_instance.update_template(template_id, update_template_data)
1460
+ p result
1461
+ rescue DocSpring::ApiError => e
1462
+ puts "Exception when calling PDFApi->update_template: #{e}"
1463
+ end
1464
+ ```
1465
+
1466
+ ### Parameters
1467
+
1468
+ Name | Type | Description | Notes
1469
+ ------------- | ------------- | ------------- | -------------
1470
+ **template_id** | **String**| |
1471
+ **update_template_data** | [**UpdateTemplateData**](UpdateTemplateData.md)| |
1472
+
1473
+ ### Return type
1474
+
1475
+ [**UpdateTemplateResponse**](UpdateTemplateResponse.md)
1476
+
1477
+ ### Authorization
1478
+
1479
+ [api_token_basic](../README.md#api_token_basic)
1480
+
1481
+ ### HTTP request headers
1482
+
1483
+ - **Content-Type**: application/json
1484
+ - **Accept**: application/json
1485
+
1486
+
1487
+