docspring 1.0.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/VERSION +1 -1
  3. data/CHANGELOG.md +14 -37
  4. data/Gemfile +2 -1
  5. data/Gemfile.lock +37 -32
  6. data/LICENSE +1 -1
  7. data/README.md +26 -15
  8. data/docs/AddFieldsData.md +8 -0
  9. data/docs/AddFieldsTemplateResponse.md +10 -0
  10. data/docs/CombinePdfsData.md +4 -4
  11. data/docs/CombinedSubmission.md +1 -0
  12. data/docs/CombinedSubmissionData.md +3 -3
  13. data/docs/{CreateTemplateData.md → CreateHtmlTemplateData.md} +2 -2
  14. data/docs/CreateSubmissionDataRequestData.md +2 -2
  15. data/docs/CreateTemplateFromUploadData.md +8 -0
  16. data/docs/HtmlTemplateData.md +24 -0
  17. data/docs/PDFApi.md +169 -15
  18. data/docs/PendingTemplate.md +2 -0
  19. data/docs/Submission.md +5 -0
  20. data/docs/SubmissionBatchData.md +2 -2
  21. data/docs/SubmissionData.md +4 -3
  22. data/docs/SubmissionDataBatchRequest.md +2 -2
  23. data/docs/SubmissionDataRequest.md +2 -0
  24. data/docs/Template.md +2 -0
  25. data/docs/{Templatesv2Template.md → TemplateData.md} +11 -7
  26. data/docs/TemplatestemplateIdaddFieldsFields.md +92 -0
  27. data/docs/UpdateSubmissionDataRequestData.md +9 -9
  28. data/docs/UpdateTemplateData.md +8 -0
  29. data/docs/UpdateTemplateResponse.md +9 -0
  30. data/docs/UploadTemplateData.md +25 -0
  31. data/docs/{Templatesv2TemplateDocument.md → UploadTemplateDataDocument.md} +2 -2
  32. data/docs/{Templatesv2TemplateDocumentMetadata.md → UploadTemplateDataDocumentMetadata.md} +1 -1
  33. data/docspring.gemspec +3 -3
  34. data/lib/docspring.rb +13 -5
  35. data/lib/docspring/api/pdf_api.rb +193 -22
  36. data/lib/docspring/api_client.rb +1 -1
  37. data/lib/docspring/api_error.rb +1 -1
  38. data/lib/docspring/configuration.rb +1 -1
  39. data/lib/docspring/models/add_fields_data.rb +190 -0
  40. data/lib/docspring/models/add_fields_template_response.rb +239 -0
  41. data/lib/docspring/models/authentication_error.rb +1 -1
  42. data/lib/docspring/models/authentication_success_response.rb +1 -1
  43. data/lib/docspring/models/combine_pdfs_data.rb +28 -28
  44. data/lib/docspring/models/combined_submission.rb +11 -2
  45. data/lib/docspring/models/combined_submission_action.rb +1 -6
  46. data/lib/docspring/models/combined_submission_data.rb +23 -23
  47. data/lib/docspring/models/create_combined_submission_response.rb +1 -1
  48. data/lib/docspring/models/create_custom_file_data.rb +1 -1
  49. data/lib/docspring/models/create_custom_file_response.rb +1 -1
  50. data/lib/docspring/models/create_folder_data.rb +1 -1
  51. data/lib/docspring/models/{create_template_data.rb → create_html_template_data.rb} +3 -3
  52. data/lib/docspring/models/create_submission_batch_response.rb +1 -1
  53. data/lib/docspring/models/create_submission_batch_submissions_response.rb +1 -1
  54. data/lib/docspring/models/create_submission_data_request_data.rb +20 -20
  55. data/lib/docspring/models/create_submission_data_request_token_response.rb +1 -1
  56. data/lib/docspring/models/create_submission_data_request_token_response_token.rb +1 -1
  57. data/lib/docspring/models/create_submission_response.rb +1 -1
  58. data/lib/docspring/models/create_template_from_upload_data.rb +188 -0
  59. data/lib/docspring/models/custom_file.rb +1 -1
  60. data/lib/docspring/models/error.rb +1 -1
  61. data/lib/docspring/models/folder.rb +1 -1
  62. data/lib/docspring/models/folders_folder.rb +1 -1
  63. data/lib/docspring/models/html_template_data.rb +373 -0
  64. data/lib/docspring/models/invalid_request.rb +1 -1
  65. data/lib/docspring/models/move_folder_data.rb +1 -1
  66. data/lib/docspring/models/move_template_data.rb +1 -1
  67. data/lib/docspring/models/pending_template.rb +20 -2
  68. data/lib/docspring/models/rename_folder_data.rb +1 -1
  69. data/lib/docspring/models/submission.rb +52 -7
  70. data/lib/docspring/models/submission_action.rb +1 -6
  71. data/lib/docspring/models/submission_batch.rb +1 -1
  72. data/lib/docspring/models/submission_batch_data.rb +16 -16
  73. data/lib/docspring/models/submission_data.rb +34 -25
  74. data/lib/docspring/models/submission_data_batch_request.rb +20 -20
  75. data/lib/docspring/models/submission_data_request.rb +23 -20
  76. data/lib/docspring/models/template.rb +20 -2
  77. data/lib/docspring/models/{templatesv2_template.rb → template_data.rb} +81 -45
  78. data/lib/docspring/models/templatestemplate_idadd_fields_fields.rb +1306 -0
  79. data/lib/docspring/models/update_data_request_response.rb +1 -1
  80. data/lib/docspring/models/update_submission_data_request_data.rb +79 -79
  81. data/lib/docspring/models/update_template_data.rb +188 -0
  82. data/lib/docspring/models/update_template_response.rb +228 -0
  83. data/lib/docspring/models/upload_template_data.rb +382 -0
  84. data/lib/docspring/models/{templatesv2_template_document.rb → upload_template_data_document.rb} +3 -3
  85. data/lib/docspring/models/{templatesv2_template_document_metadata.rb → upload_template_data_document_metadata.rb} +2 -2
  86. data/lib/docspring/version.rb +2 -2
  87. data/spec/api/client_integration_spec.rb +14 -2
  88. data/spec/api/pdf_api_integration_spec.rb +49 -18
  89. data/spec/api/pdf_api_spec_original.skipped.rb +51 -11
  90. data/spec/api_client_spec.rb +1 -1
  91. data/spec/configuration_spec.rb +1 -1
  92. data/spec/models/add_fields_data_spec.rb +41 -0
  93. data/spec/models/add_fields_template_response_spec.rb +57 -0
  94. data/spec/models/authentication_error_spec.rb +1 -1
  95. data/spec/models/authentication_success_response_spec.rb +1 -1
  96. data/spec/models/combine_pdfs_data_spec.rb +5 -5
  97. data/spec/models/combined_submission_action_spec.rb +1 -1
  98. data/spec/models/combined_submission_data_spec.rb +5 -5
  99. data/spec/models/combined_submission_spec.rb +7 -1
  100. data/spec/models/create_combined_submission_response_spec.rb +1 -1
  101. data/spec/models/create_custom_file_data_spec.rb +1 -1
  102. data/spec/models/create_custom_file_response_spec.rb +1 -1
  103. data/spec/models/create_folder_data_spec.rb +1 -1
  104. data/spec/models/create_html_template_data_spec.rb +41 -0
  105. data/spec/models/create_submission_batch_response_spec.rb +1 -1
  106. data/spec/models/create_submission_batch_submissions_response_spec.rb +1 -1
  107. data/spec/models/create_submission_data_request_data_spec.rb +9 -9
  108. data/spec/models/create_submission_data_request_token_response_spec.rb +1 -1
  109. data/spec/models/create_submission_data_request_token_response_token_spec.rb +1 -1
  110. data/spec/models/create_submission_response_spec.rb +1 -1
  111. data/spec/models/{create_template_data_spec.rb → create_template_from_upload_data_spec.rb} +7 -7
  112. data/spec/models/custom_file_spec.rb +1 -1
  113. data/spec/models/error_spec.rb +1 -1
  114. data/spec/models/folder_spec.rb +1 -1
  115. data/spec/models/folders_folder_spec.rb +1 -1
  116. data/spec/models/html_template_data_spec.rb +145 -0
  117. data/spec/models/invalid_request_spec.rb +1 -1
  118. data/spec/models/move_folder_data_spec.rb +1 -1
  119. data/spec/models/move_template_data_spec.rb +1 -1
  120. data/spec/models/pending_template_spec.rb +13 -1
  121. data/spec/models/rename_folder_data_spec.rb +1 -1
  122. data/spec/models/submission_action_spec.rb +1 -1
  123. data/spec/models/submission_batch_data_spec.rb +3 -3
  124. data/spec/models/submission_batch_spec.rb +1 -1
  125. data/spec/models/submission_data_batch_request_spec.rb +5 -5
  126. data/spec/models/submission_data_request_spec.rb +13 -1
  127. data/spec/models/submission_data_spec.rb +11 -5
  128. data/spec/models/submission_spec.rb +32 -2
  129. data/spec/models/{templatesv2_template_spec.rb → template_data_spec.rb} +40 -16
  130. data/spec/models/template_spec.rb +13 -1
  131. data/spec/models/templatestemplate_idadd_fields_fields_spec.rb +589 -0
  132. data/spec/models/update_data_request_response_spec.rb +1 -1
  133. data/spec/models/update_submission_data_request_data_spec.rb +17 -17
  134. data/spec/models/update_template_data_spec.rb +41 -0
  135. data/spec/models/update_template_response_spec.rb +51 -0
  136. data/spec/models/{templatesv2_template_document_metadata_spec.rb → upload_template_data_document_metadata_spec.rb} +7 -7
  137. data/spec/models/{templatesv2_template_document_spec.rb → upload_template_data_document_spec.rb} +7 -7
  138. data/spec/models/upload_template_data_spec.rb +151 -0
  139. data/spec/spec_helper.rb +1 -1
  140. metadata +60 -32
  141. data/.swagger-codegen-ignore +0 -31
  142. data/.swagger-codegen/VERSION +0 -1
  143. data/.swagger-revision +0 -1
  144. data/.travis.yml +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cee0ce15eabd610765888e637b1e86d2e597844224f000b91889e866b0a5a851
4
- data.tar.gz: 5de24c41293961ac2fe26e0f3b863440aab35e6043f7cce350276515d94e2443
3
+ metadata.gz: 1be91b76c31c9162e4c340d87023d7db134d30348d791ff72ee62b2d594898f1
4
+ data.tar.gz: 36899cc962a45a4b600aee02a939d5785c7d4119170265ebffb5ddad27338f2d
5
5
  SHA512:
6
- metadata.gz: a26e65e0212f2b7175e4b43aa3e896302419d0f00fc376cb545dd586492ef1355b3a30c1cdab948a57f52932281ad8311f568d5ba622b08bb679d58b094bb9ee
7
- data.tar.gz: 80d79e2142642d96b72846ef6aaf22591b8ac393b5b0bf49884987e98672705bc312a2133d853335dfe6b2caf1dbffe0ae2108d140013b3db0697a6f5bb641d4
6
+ metadata.gz: fa5cf74b0d0d6c4725f3f8cbddf5035db11de42c721bc9e63d9346ad88fdc0721ff57907ca808d12018bd1997aed5865dc4e2618a9fb858c0ebb64c712eca5c0
7
+ data.tar.gz: 458febae51a15f31ea6ad97e41958c3a3f9d3647c17b64a49cb686066da9f485a22a1a90d224f16a5ea11a64c793c7f6fbcba99e310acf82e20bc400023354af
@@ -1 +1 @@
1
- 3.3.0-SNAPSHOT
1
+ 3.3.0
@@ -1,48 +1,25 @@
1
- ### 1.12.0 [October 10, 2019]
1
+ ### 1.3.1 [September 27, 2020]
2
2
 
3
- - Add permanent_download_url attribute to Submission model
3
+ - Changed gem author to DocSpring
4
4
 
5
- ### 1.11.0 [October 9, 2019]
5
+ ### 1.3.0 [September 26, 2020]
6
6
 
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
7
+ - Updated OpenAPI Generator to v3.3.0
9
8
 
10
- ### 1.10.0 [Aug 7, 2019]
11
- * Added Create Folder, List Folder, Move to Folder endpoints
9
+ ### 1.2.1 [September 24, 2020]
12
10
 
13
- ### 1.9.1 [August 2, 2019]
11
+ - Fixed the "include_data=true" option for the "Get Submission" API endpoint. Added the "data" property to the Submission model so that this is parsed and returned correctly when requested
14
12
 
15
- - Relax json dependency to support older versions (>= 1.8)
13
+ ### 1.2.0 [September 21, 2020]
16
14
 
17
- ### 1.9.0 [June 22, 2019]
15
+ - Renamed some internal models for template creation API endpoints. (CreateTemplateData / CreateTemplateData1 renamed to CreateHtmlTemplateData and CreateTemplateFromUploadData)
18
16
 
19
- - **BREAKING CHANGE** Renamed "Get Templates" endpoint to "List Templates". Added a search query parameter.
17
+ ### 1.1.0 [September 12, 2020]
20
18
 
21
- ### 1.8.0 [April 11, 2019]
19
+ - **BREAKING CHANGE**: Renamed createTemplate operation to createPDFTemplate
20
+ - Added createHTMLTemplate operation. (This uses the same API endpoint as createPDFTemplate, but the example shows how to set html, scss, etc. fields)
21
+ - Added updateTemplate operation, to update a PDF or HTML template
22
22
 
23
- - Added support for editable PDFS (editable: true)
23
+ ### 1.0.0 [May 20, 2019]
24
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
25
+ - 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.3.1)
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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2018 Form Applications Inc.
1
+ Copyright © 2018-2020 DocSpring, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
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.3.1
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.3.1.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.3.1.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.3.1'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -62,15 +62,15 @@ DocSpring.configure do |config|
62
62
  end
63
63
 
64
64
  api_instance = DocSpring::PDFApi.new
65
- template_id = 'tpl_000000000000000001' # String |
66
- request_body = nil # Array<Object> |
65
+ template_id = 'tpl_000000000000000002' # String |
66
+ add_fields_data = DocSpring::AddFieldsData.new # AddFieldsData |
67
67
 
68
68
  begin
69
- #Generates multiple PDFs
70
- result = api_instance.batch_generate_pdf_v1(template_id, request_body)
69
+ #Add new fields to a Template
70
+ result = api_instance.add_fields_to_template(template_id, add_fields_data)
71
71
  p result
72
72
  rescue DocSpring::ApiError => e
73
- puts "Exception when calling PDFApi->batch_generate_pdf_v1: #{e}"
73
+ puts "Exception when calling PDFApi->add_fields_to_template: #{e}"
74
74
  end
75
75
 
76
76
  ```
@@ -81,6 +81,7 @@ All URIs are relative to *https://api.docspring.com/api/v1*
81
81
 
82
82
  Class | Method | HTTP request | Description
83
83
  ------------ | ------------- | ------------- | -------------
84
+ *DocSpring::PDFApi* | [**add_fields_to_template**](docs/PDFApi.md#add_fields_to_template) | **PUT** /templates/{template_id}/add_fields | Add new fields to a Template
84
85
  *DocSpring::PDFApi* | [**batch_generate_pdf_v1**](docs/PDFApi.md#batch_generate_pdf_v1) | **POST** /templates/{template_id}/submissions/batch | Generates multiple PDFs
85
86
  *DocSpring::PDFApi* | [**batch_generate_pdfs**](docs/PDFApi.md#batch_generate_pdfs) | **POST** /submissions/batches | Generates multiple PDFs
86
87
  *DocSpring::PDFApi* | [**combine_pdfs**](docs/PDFApi.md#combine_pdfs) | **POST** /combined_submissions?v&#x3D;2 | Merge submission PDFs, template PDFs, or custom files
@@ -88,8 +89,9 @@ Class | Method | HTTP request | Description
88
89
  *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
90
  *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
91
  *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
92
+ *DocSpring::PDFApi* | [**create_html_template**](docs/PDFApi.md#create_html_template) | **POST** /templates?desc&#x3D;html | Create a new HTML template
93
+ *DocSpring::PDFApi* | [**create_pdf_template**](docs/PDFApi.md#create_pdf_template) | **POST** /templates | Create a new PDF template with a form POST file upload
94
+ *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
95
  *DocSpring::PDFApi* | [**delete_folder**](docs/PDFApi.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
94
96
  *DocSpring::PDFApi* | [**expire_combined_submission**](docs/PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
95
97
  *DocSpring::PDFApi* | [**expire_submission**](docs/PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
@@ -108,10 +110,13 @@ Class | Method | HTTP request | Description
108
110
  *DocSpring::PDFApi* | [**rename_folder**](docs/PDFApi.md#rename_folder) | **POST** /folders/{folder_id}/rename | Rename a folder
109
111
  *DocSpring::PDFApi* | [**test_authentication**](docs/PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
110
112
  *DocSpring::PDFApi* | [**update_data_request**](docs/PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
113
+ *DocSpring::PDFApi* | [**update_template**](docs/PDFApi.md#update_template) | **PUT** /templates/{template_id} | Update a Template
111
114
 
112
115
 
113
116
  ## Documentation for Models
114
117
 
118
+ - [DocSpring::AddFieldsData](docs/AddFieldsData.md)
119
+ - [DocSpring::AddFieldsTemplateResponse](docs/AddFieldsTemplateResponse.md)
115
120
  - [DocSpring::AuthenticationError](docs/AuthenticationError.md)
116
121
  - [DocSpring::AuthenticationSuccessResponse](docs/AuthenticationSuccessResponse.md)
117
122
  - [DocSpring::CombinePdfsData](docs/CombinePdfsData.md)
@@ -122,17 +127,19 @@ Class | Method | HTTP request | Description
122
127
  - [DocSpring::CreateCustomFileData](docs/CreateCustomFileData.md)
123
128
  - [DocSpring::CreateCustomFileResponse](docs/CreateCustomFileResponse.md)
124
129
  - [DocSpring::CreateFolderData](docs/CreateFolderData.md)
130
+ - [DocSpring::CreateHtmlTemplateData](docs/CreateHtmlTemplateData.md)
125
131
  - [DocSpring::CreateSubmissionBatchResponse](docs/CreateSubmissionBatchResponse.md)
126
132
  - [DocSpring::CreateSubmissionBatchSubmissionsResponse](docs/CreateSubmissionBatchSubmissionsResponse.md)
127
133
  - [DocSpring::CreateSubmissionDataRequestData](docs/CreateSubmissionDataRequestData.md)
128
134
  - [DocSpring::CreateSubmissionDataRequestTokenResponse](docs/CreateSubmissionDataRequestTokenResponse.md)
129
135
  - [DocSpring::CreateSubmissionDataRequestTokenResponseToken](docs/CreateSubmissionDataRequestTokenResponseToken.md)
130
136
  - [DocSpring::CreateSubmissionResponse](docs/CreateSubmissionResponse.md)
131
- - [DocSpring::CreateTemplateData](docs/CreateTemplateData.md)
137
+ - [DocSpring::CreateTemplateFromUploadData](docs/CreateTemplateFromUploadData.md)
132
138
  - [DocSpring::CustomFile](docs/CustomFile.md)
133
139
  - [DocSpring::Error](docs/Error.md)
134
140
  - [DocSpring::Folder](docs/Folder.md)
135
141
  - [DocSpring::FoldersFolder](docs/FoldersFolder.md)
142
+ - [DocSpring::HtmlTemplateData](docs/HtmlTemplateData.md)
136
143
  - [DocSpring::InvalidRequest](docs/InvalidRequest.md)
137
144
  - [DocSpring::MoveFolderData](docs/MoveFolderData.md)
138
145
  - [DocSpring::MoveTemplateData](docs/MoveTemplateData.md)
@@ -146,11 +153,15 @@ Class | Method | HTTP request | Description
146
153
  - [DocSpring::SubmissionDataBatchRequest](docs/SubmissionDataBatchRequest.md)
147
154
  - [DocSpring::SubmissionDataRequest](docs/SubmissionDataRequest.md)
148
155
  - [DocSpring::Template](docs/Template.md)
149
- - [DocSpring::Templatesv2Template](docs/Templatesv2Template.md)
150
- - [DocSpring::Templatesv2TemplateDocument](docs/Templatesv2TemplateDocument.md)
151
- - [DocSpring::Templatesv2TemplateDocumentMetadata](docs/Templatesv2TemplateDocumentMetadata.md)
156
+ - [DocSpring::TemplateData](docs/TemplateData.md)
157
+ - [DocSpring::TemplatestemplateIdaddFieldsFields](docs/TemplatestemplateIdaddFieldsFields.md)
152
158
  - [DocSpring::UpdateDataRequestResponse](docs/UpdateDataRequestResponse.md)
153
159
  - [DocSpring::UpdateSubmissionDataRequestData](docs/UpdateSubmissionDataRequestData.md)
160
+ - [DocSpring::UpdateTemplateData](docs/UpdateTemplateData.md)
161
+ - [DocSpring::UpdateTemplateResponse](docs/UpdateTemplateResponse.md)
162
+ - [DocSpring::UploadTemplateData](docs/UploadTemplateData.md)
163
+ - [DocSpring::UploadTemplateDataDocument](docs/UploadTemplateDataDocument.md)
164
+ - [DocSpring::UploadTemplateDataDocumentMetadata](docs/UploadTemplateDataDocumentMetadata.md)
154
165
 
155
166
 
156
167
  ## Documentation for Authorization
@@ -0,0 +1,8 @@
1
+ # DocSpring::AddFieldsData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **fields** | [**Array&lt;TemplatestemplateIdaddFieldsFields&gt;**](TemplatestemplateIdaddFieldsFields.md) | |
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # DocSpring::AddFieldsTemplateResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **new_field_ids** | **Array&lt;Integer&gt;** | | [optional]
7
+ **errors** | **Array&lt;String&gt;** | | [optional]
8
+ **status** | **String** | | [optional]
9
+
10
+
@@ -3,10 +3,10 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **test** | **BOOLEAN** | | [optional]
7
- **source_pdfs** | **Array&lt;Object&gt;** | |
8
- **metadata** | **Object** | | [optional]
9
- **expires_in** | **Integer** | | [optional]
10
6
  **delete_custom_files** | **BOOLEAN** | | [optional]
7
+ **expires_in** | **Integer** | | [optional]
8
+ **metadata** | **Object** | | [optional]
9
+ **source_pdfs** | **Array&lt;Object&gt;** | |
10
+ **test** | **BOOLEAN** | | [optional]
11
11
 
12
12
 
@@ -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,9 +3,9 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **test** | **BOOLEAN** | | [optional]
7
- **submission_ids** | **Array&lt;String&gt;** | |
8
- **metadata** | **Object** | | [optional]
9
6
  **expires_in** | **Integer** | | [optional]
7
+ **metadata** | **Object** | | [optional]
8
+ **submission_ids** | **Array&lt;String&gt;** | |
9
+ **test** | **BOOLEAN** | | [optional]
10
10
 
11
11
 
@@ -1,8 +1,8 @@
1
- # DocSpring::CreateTemplateData
1
+ # DocSpring::CreateHtmlTemplateData
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **template** | [**Templatesv2Template**](Templatesv2Template.md) | |
6
+ **template** | [**HtmlTemplateData**](HtmlTemplateData.md) | |
7
7
 
8
8
 
@@ -3,8 +3,8 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **metadata** | **Object** | | [optional]
7
6
  **auth_type** | **String** | | [optional]
7
+ **metadata** | **Object** | | [optional]
8
8
  **auth_second_factor_type** | **String** | | [optional]
9
9
  **auth_phone_number_hash** | **String** | | [optional]
10
10
  **auth_session_started_at** | **String** | | [optional]
@@ -13,8 +13,8 @@ Name | Type | Description | Notes
13
13
  **auth_username_hash** | **String** | | [optional]
14
14
  **name** | **String** | | [optional]
15
15
  **fields** | **Array&lt;String&gt;** | | [optional]
16
- **email** | **String** | | [optional]
17
16
  **auth_provider** | **String** | | [optional]
17
+ **email** | **String** | | [optional]
18
18
  **order** | **Integer** | | [optional]
19
19
 
20
20
 
@@ -0,0 +1,8 @@
1
+ # DocSpring::CreateTemplateFromUploadData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **template** | [**UploadTemplateData**](UploadTemplateData.md) | |
7
+
8
+
@@ -0,0 +1,24 @@
1
+ # DocSpring::HtmlTemplateData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **expiration_interval** | **String** | | [optional]
7
+ **webhook_url** | **String** | | [optional]
8
+ **scss** | **String** | | [optional]
9
+ **allow_additional_properties** | **BOOLEAN** | | [optional]
10
+ **expire_after** | **Float** | | [optional]
11
+ **description** | **String** | | [optional]
12
+ **public_submissions** | **BOOLEAN** | | [optional]
13
+ **slack_webhook_url** | **String** | | [optional]
14
+ **header_html** | **String** | | [optional]
15
+ **public_web_form** | **BOOLEAN** | | [optional]
16
+ **editable_submissions** | **BOOLEAN** | | [optional]
17
+ **expire_submissions** | **BOOLEAN** | | [optional]
18
+ **name** | **String** | | [optional]
19
+ **footer_html** | **String** | | [optional]
20
+ **html** | **String** | | [optional]
21
+ **template_type** | **String** | | [optional]
22
+ **redirect_url** | **String** | | [optional]
23
+
24
+