docspring 1.0.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 (150) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +39 -0
  3. data/.openapi-generator-ignore +23 -0
  4. data/.openapi-generator/VERSION +1 -0
  5. data/.rspec +2 -0
  6. data/.rubocop.yml +154 -0
  7. data/.swagger-codegen-ignore +31 -0
  8. data/.swagger-codegen/VERSION +1 -0
  9. data/.swagger-revision +1 -0
  10. data/.travis.yml +8 -0
  11. data/CHANGELOG.md +48 -0
  12. data/Gemfile +8 -0
  13. data/Gemfile.lock +80 -0
  14. data/LICENSE +7 -0
  15. data/README.md +162 -0
  16. data/Rakefile +10 -0
  17. data/docs/AuthenticationError.md +9 -0
  18. data/docs/AuthenticationSuccessResponse.md +8 -0
  19. data/docs/CombinePdfsData.md +12 -0
  20. data/docs/CombinedSubmission.md +16 -0
  21. data/docs/CombinedSubmissionAction.md +13 -0
  22. data/docs/CombinedSubmissionData.md +11 -0
  23. data/docs/CreateCombinedSubmissionResponse.md +10 -0
  24. data/docs/CreateCustomFileData.md +8 -0
  25. data/docs/CreateCustomFileResponse.md +10 -0
  26. data/docs/CreateFolderData.md +8 -0
  27. data/docs/CreateSubmissionBatchResponse.md +12 -0
  28. data/docs/CreateSubmissionBatchSubmissionsResponse.md +10 -0
  29. data/docs/CreateSubmissionDataRequestData.md +20 -0
  30. data/docs/CreateSubmissionDataRequestTokenResponse.md +10 -0
  31. data/docs/CreateSubmissionDataRequestTokenResponseToken.md +11 -0
  32. data/docs/CreateSubmissionResponse.md +10 -0
  33. data/docs/CreateTemplateData.md +8 -0
  34. data/docs/CustomFile.md +9 -0
  35. data/docs/Error.md +9 -0
  36. data/docs/Folder.md +11 -0
  37. data/docs/FoldersFolder.md +9 -0
  38. data/docs/InvalidRequest.md +9 -0
  39. data/docs/MoveFolderData.md +8 -0
  40. data/docs/MoveTemplateData.md +8 -0
  41. data/docs/PDFApi.md +1385 -0
  42. data/docs/PendingTemplate.md +22 -0
  43. data/docs/RenameFolderData.md +8 -0
  44. data/docs/Submission.md +21 -0
  45. data/docs/SubmissionAction.md +13 -0
  46. data/docs/SubmissionBatch.md +16 -0
  47. data/docs/SubmissionBatchData.md +11 -0
  48. data/docs/SubmissionData.md +13 -0
  49. data/docs/SubmissionDataBatchRequest.md +13 -0
  50. data/docs/SubmissionDataRequest.md +24 -0
  51. data/docs/Template.md +25 -0
  52. data/docs/Templatesv2Template.md +19 -0
  53. data/docs/Templatesv2TemplateDocument.md +10 -0
  54. data/docs/Templatesv2TemplateDocumentMetadata.md +10 -0
  55. data/docs/UpdateDataRequestResponse.md +10 -0
  56. data/docs/UpdateSubmissionDataRequestData.md +20 -0
  57. data/docspring.gemspec +47 -0
  58. data/git_push.sh +55 -0
  59. data/lib/docspring.rb +82 -0
  60. data/lib/docspring/api/client.rb +174 -0
  61. data/lib/docspring/api/pdf_api.rb +1481 -0
  62. data/lib/docspring/api_client.rb +406 -0
  63. data/lib/docspring/api_error.rb +38 -0
  64. data/lib/docspring/configuration.rb +230 -0
  65. data/lib/docspring/models/authentication_error.rb +231 -0
  66. data/lib/docspring/models/authentication_success_response.rb +217 -0
  67. data/lib/docspring/models/combine_pdfs_data.rb +226 -0
  68. data/lib/docspring/models/combined_submission.rb +295 -0
  69. data/lib/docspring/models/combined_submission_action.rb +316 -0
  70. data/lib/docspring/models/combined_submission_data.rb +217 -0
  71. data/lib/docspring/models/create_combined_submission_response.rb +237 -0
  72. data/lib/docspring/models/create_custom_file_data.rb +207 -0
  73. data/lib/docspring/models/create_custom_file_response.rb +237 -0
  74. data/lib/docspring/models/create_folder_data.rb +188 -0
  75. data/lib/docspring/models/create_submission_batch_response.rb +257 -0
  76. data/lib/docspring/models/create_submission_batch_submissions_response.rb +237 -0
  77. data/lib/docspring/models/create_submission_data_request_data.rb +339 -0
  78. data/lib/docspring/models/create_submission_data_request_token_response.rb +237 -0
  79. data/lib/docspring/models/create_submission_data_request_token_response_token.rb +210 -0
  80. data/lib/docspring/models/create_submission_response.rb +237 -0
  81. data/lib/docspring/models/create_template_data.rb +188 -0
  82. data/lib/docspring/models/custom_file.rb +192 -0
  83. data/lib/docspring/models/error.rb +236 -0
  84. data/lib/docspring/models/folder.rb +210 -0
  85. data/lib/docspring/models/folders_folder.rb +192 -0
  86. data/lib/docspring/models/invalid_request.rb +238 -0
  87. data/lib/docspring/models/move_folder_data.rb +183 -0
  88. data/lib/docspring/models/move_template_data.rb +183 -0
  89. data/lib/docspring/models/pending_template.rb +343 -0
  90. data/lib/docspring/models/rename_folder_data.rb +188 -0
  91. data/lib/docspring/models/submission.rb +358 -0
  92. data/lib/docspring/models/submission_action.rb +316 -0
  93. data/lib/docspring/models/submission_batch.rb +291 -0
  94. data/lib/docspring/models/submission_batch_data.rb +217 -0
  95. data/lib/docspring/models/submission_data.rb +235 -0
  96. data/lib/docspring/models/submission_data_batch_request.rb +228 -0
  97. data/lib/docspring/models/submission_data_request.rb +422 -0
  98. data/lib/docspring/models/template.rb +372 -0
  99. data/lib/docspring/models/templatesv2_template.rb +316 -0
  100. data/lib/docspring/models/templatesv2_template_document.rb +235 -0
  101. data/lib/docspring/models/templatesv2_template_document_metadata.rb +235 -0
  102. data/lib/docspring/models/update_data_request_response.rb +237 -0
  103. data/lib/docspring/models/update_submission_data_request_data.rb +339 -0
  104. data/lib/docspring/version.rb +15 -0
  105. data/spec/api/client_integration_spec.rb +259 -0
  106. data/spec/api/pdf_api_integration_spec.rb +377 -0
  107. data/spec/api/pdf_api_spec_original.skipped.rb +397 -0
  108. data/spec/api_client_spec.rb +226 -0
  109. data/spec/configuration_spec.rb +53 -0
  110. data/spec/models/authentication_error_spec.rb +51 -0
  111. data/spec/models/authentication_success_response_spec.rb +45 -0
  112. data/spec/models/combine_pdfs_data_spec.rb +65 -0
  113. data/spec/models/combined_submission_action_spec.rb +83 -0
  114. data/spec/models/combined_submission_data_spec.rb +59 -0
  115. data/spec/models/combined_submission_spec.rb +93 -0
  116. data/spec/models/create_combined_submission_response_spec.rb +57 -0
  117. data/spec/models/create_custom_file_data_spec.rb +41 -0
  118. data/spec/models/create_custom_file_response_spec.rb +57 -0
  119. data/spec/models/create_folder_data_spec.rb +41 -0
  120. data/spec/models/create_submission_batch_response_spec.rb +69 -0
  121. data/spec/models/create_submission_batch_submissions_response_spec.rb +57 -0
  122. data/spec/models/create_submission_data_request_data_spec.rb +121 -0
  123. data/spec/models/create_submission_data_request_token_response_spec.rb +57 -0
  124. data/spec/models/create_submission_data_request_token_response_token_spec.rb +59 -0
  125. data/spec/models/create_submission_response_spec.rb +57 -0
  126. data/spec/models/create_template_data_spec.rb +41 -0
  127. data/spec/models/custom_file_spec.rb +47 -0
  128. data/spec/models/error_spec.rb +51 -0
  129. data/spec/models/folder_spec.rb +59 -0
  130. data/spec/models/folders_folder_spec.rb +47 -0
  131. data/spec/models/invalid_request_spec.rb +51 -0
  132. data/spec/models/move_folder_data_spec.rb +41 -0
  133. data/spec/models/move_template_data_spec.rb +41 -0
  134. data/spec/models/pending_template_spec.rb +129 -0
  135. data/spec/models/rename_folder_data_spec.rb +41 -0
  136. data/spec/models/submission_action_spec.rb +83 -0
  137. data/spec/models/submission_batch_data_spec.rb +59 -0
  138. data/spec/models/submission_batch_spec.rb +93 -0
  139. data/spec/models/submission_data_batch_request_spec.rb +71 -0
  140. data/spec/models/submission_data_request_spec.rb +149 -0
  141. data/spec/models/submission_data_spec.rb +71 -0
  142. data/spec/models/submission_spec.rb +123 -0
  143. data/spec/models/template_spec.rb +147 -0
  144. data/spec/models/templatesv2_template_document_metadata_spec.rb +57 -0
  145. data/spec/models/templatesv2_template_document_spec.rb +57 -0
  146. data/spec/models/templatesv2_template_spec.rb +111 -0
  147. data/spec/models/update_data_request_response_spec.rb +57 -0
  148. data/spec/models/update_submission_data_request_data_spec.rb +121 -0
  149. data/spec/spec_helper.rb +117 -0
  150. metadata +430 -0
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,9 @@
1
+ # DocSpring::AuthenticationError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+ **error** | **String** | |
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # DocSpring::AuthenticationSuccessResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,12 @@
1
+ # DocSpring::CombinePdfsData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **test** | **BOOLEAN** | | [optional]
7
+ **source_pdfs** | **Array<Object>** | |
8
+ **metadata** | **Object** | | [optional]
9
+ **expires_in** | **Integer** | | [optional]
10
+ **delete_custom_files** | **BOOLEAN** | | [optional]
11
+
12
+
@@ -0,0 +1,16 @@
1
+ # DocSpring::CombinedSubmission
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **metadata** | **Object** | | [optional]
7
+ **expired** | **BOOLEAN** | | [optional]
8
+ **expires_at** | **String** | | [optional]
9
+ **source_pdfs** | **Array<Object>** | | [optional]
10
+ **download_url** | **String** | | [optional]
11
+ **submission_ids** | **Array<String>** | | [optional]
12
+ **id** | **String** | | [optional]
13
+ **state** | **String** | | [optional]
14
+ **actions** | [**Array<CombinedSubmissionAction>**](CombinedSubmissionAction.md) | | [optional]
15
+
16
+
@@ -0,0 +1,13 @@
1
+ # DocSpring::CombinedSubmissionAction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **integration_id** | **String** | |
8
+ **state** | **String** | |
9
+ **action_category** | **String** | |
10
+ **action_type** | **String** | |
11
+ **result_data** | **Object** | |
12
+
13
+
@@ -0,0 +1,11 @@
1
+ # DocSpring::CombinedSubmissionData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **test** | **BOOLEAN** | | [optional]
7
+ **submission_ids** | **Array<String>** | |
8
+ **metadata** | **Object** | | [optional]
9
+ **expires_in** | **Integer** | | [optional]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # DocSpring::CreateCombinedSubmissionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **combined_submission** | [**CombinedSubmission**](CombinedSubmission.md) | | [optional]
7
+ **errors** | **Array<String>** | | [optional]
8
+ **status** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # DocSpring::CreateCustomFileData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cache_id** | **String** | |
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # DocSpring::CreateCustomFileResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **custom_file** | [**CustomFile**](CustomFile.md) | | [optional]
7
+ **errors** | **Array<String>** | | [optional]
8
+ **status** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # DocSpring::CreateFolderData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **folder** | [**FoldersFolder**](FoldersFolder.md) | |
7
+
8
+
@@ -0,0 +1,12 @@
1
+ # DocSpring::CreateSubmissionBatchResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **submission_batch** | [**SubmissionBatch**](SubmissionBatch.md) | | [optional]
7
+ **submissions** | [**Array<CreateSubmissionBatchSubmissionsResponse>**](CreateSubmissionBatchSubmissionsResponse.md) | | [optional]
8
+ **error** | **String** | | [optional]
9
+ **errors** | **Array<String>** | | [optional]
10
+ **status** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,10 @@
1
+ # DocSpring::CreateSubmissionBatchSubmissionsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **submission** | [**Submission**](Submission.md) | | [optional]
7
+ **errors** | **Array<String>** | | [optional]
8
+ **status** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,20 @@
1
+ # DocSpring::CreateSubmissionDataRequestData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **metadata** | **Object** | | [optional]
7
+ **auth_type** | **String** | | [optional]
8
+ **auth_second_factor_type** | **String** | | [optional]
9
+ **auth_phone_number_hash** | **String** | | [optional]
10
+ **auth_session_started_at** | **String** | | [optional]
11
+ **auth_user_id_hash** | **String** | | [optional]
12
+ **auth_session_id_hash** | **String** | | [optional]
13
+ **auth_username_hash** | **String** | | [optional]
14
+ **name** | **String** | | [optional]
15
+ **fields** | **Array<String>** | | [optional]
16
+ **email** | **String** | | [optional]
17
+ **auth_provider** | **String** | | [optional]
18
+ **order** | **Integer** | | [optional]
19
+
20
+
@@ -0,0 +1,10 @@
1
+ # DocSpring::CreateSubmissionDataRequestTokenResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **errors** | **Array<String>** | | [optional]
7
+ **status** | **String** | | [optional]
8
+ **token** | [**CreateSubmissionDataRequestTokenResponseToken**](CreateSubmissionDataRequestTokenResponseToken.md) | | [optional]
9
+
10
+
@@ -0,0 +1,11 @@
1
+ # DocSpring::CreateSubmissionDataRequestTokenResponseToken
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **expires_at** | **String** | | [optional]
7
+ **id** | **String** | | [optional]
8
+ **secret** | **String** | | [optional]
9
+ **data_request_url** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # DocSpring::CreateSubmissionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **submission** | [**Submission**](Submission.md) | | [optional]
7
+ **errors** | **Array<String>** | | [optional]
8
+ **status** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # DocSpring::CreateTemplateData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **template** | [**Templatesv2Template**](Templatesv2Template.md) | |
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # DocSpring::CustomFile
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **url** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # DocSpring::Error
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | |
7
+ **error** | **String** | |
8
+
9
+
@@ -0,0 +1,11 @@
1
+ # DocSpring::Folder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **path** | **String** | | [optional]
7
+ **parent_folder_id** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+ **id** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,9 @@
1
+ # DocSpring::FoldersFolder
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **parent_folder_id** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # DocSpring::InvalidRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | |
7
+ **errors** | **Array<String>** | |
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # DocSpring::MoveFolderData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **parent_folder_id** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # DocSpring::MoveTemplateData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **parent_folder_id** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,1385 @@
1
+ # DocSpring::PDFApi
2
+
3
+ All URIs are relative to *https://api.docspring.com/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**batch_generate_pdf_v1**](PDFApi.md#batch_generate_pdf_v1) | **POST** /templates/{template_id}/submissions/batch | Generates multiple PDFs
8
+ [**batch_generate_pdfs**](PDFApi.md#batch_generate_pdfs) | **POST** /submissions/batches | Generates multiple PDFs
9
+ [**combine_pdfs**](PDFApi.md#combine_pdfs) | **POST** /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files
10
+ [**combine_submissions**](PDFApi.md#combine_submissions) | **POST** /combined_submissions | Merge generated PDFs together
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
+ [**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
+ [**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=2 | Create a new PDF template from a cached presign upload
16
+ [**delete_folder**](PDFApi.md#delete_folder) | **DELETE** /folders/{folder_id} | Delete a folder
17
+ [**expire_combined_submission**](PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
18
+ [**expire_submission**](PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
19
+ [**generate_pdf**](PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
20
+ [**get_combined_submission**](PDFApi.md#get_combined_submission) | **GET** /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs)
21
+ [**get_data_request**](PDFApi.md#get_data_request) | **GET** /data_requests/{data_request_id} | Look up a submission data request
22
+ [**get_presign_url**](PDFApi.md#get_presign_url) | **GET** /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket
23
+ [**get_submission**](PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
24
+ [**get_submission_batch**](PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
25
+ [**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Get a single template
26
+ [**get_template_schema**](PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
27
+ [**list_folders**](PDFApi.md#list_folders) | **GET** /folders/ | Get a list of all folders
28
+ [**list_templates**](PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
29
+ [**move_folder_to_folder**](PDFApi.md#move_folder_to_folder) | **POST** /folders/{folder_id}/move | Move a folder
30
+ [**move_template_to_folder**](PDFApi.md#move_template_to_folder) | **POST** /templates/{template_id}/move | Move Template to folder
31
+ [**rename_folder**](PDFApi.md#rename_folder) | **POST** /folders/{folder_id}/rename | Rename a folder
32
+ [**test_authentication**](PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
33
+ [**update_data_request**](PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
34
+
35
+
36
+ # **batch_generate_pdf_v1**
37
+ > Array<CreateSubmissionResponse> batch_generate_pdf_v1(template_id, request_body)
38
+
39
+ Generates multiple PDFs
40
+
41
+ ### Example
42
+ ```ruby
43
+ # load the gem
44
+ require 'docspring'
45
+ # setup authorization
46
+ DocSpring.configure do |config|
47
+ # Configure HTTP basic authorization: api_token_basic
48
+ config.username = 'YOUR USERNAME'
49
+ config.password = 'YOUR PASSWORD'
50
+ end
51
+
52
+ api_instance = DocSpring::PDFApi.new
53
+ template_id = 'tpl_000000000000000001' # String |
54
+ request_body = nil # Array<Object> |
55
+
56
+ begin
57
+ #Generates multiple PDFs
58
+ result = api_instance.batch_generate_pdf_v1(template_id, request_body)
59
+ p result
60
+ rescue DocSpring::ApiError => e
61
+ puts "Exception when calling PDFApi->batch_generate_pdf_v1: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ Name | Type | Description | Notes
68
+ ------------- | ------------- | ------------- | -------------
69
+ **template_id** | **String**| |
70
+ **request_body** | [**Array&lt;Object&gt;**](Array.md)| |
71
+
72
+ ### Return type
73
+
74
+ [**Array&lt;CreateSubmissionResponse&gt;**](CreateSubmissionResponse.md)
75
+
76
+ ### Authorization
77
+
78
+ [api_token_basic](../README.md#api_token_basic)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: application/json
83
+ - **Accept**: application/json
84
+
85
+
86
+
87
+ # **batch_generate_pdfs**
88
+ > CreateSubmissionBatchResponse batch_generate_pdfs(submission_batch_data)
89
+
90
+ Generates multiple PDFs
91
+
92
+ ### Example
93
+ ```ruby
94
+ # load the gem
95
+ require 'docspring'
96
+ # setup authorization
97
+ DocSpring.configure do |config|
98
+ # Configure HTTP basic authorization: api_token_basic
99
+ config.username = 'YOUR USERNAME'
100
+ config.password = 'YOUR PASSWORD'
101
+ end
102
+
103
+ api_instance = DocSpring::PDFApi.new
104
+ submission_batch_data = DocSpring::SubmissionBatchData.new # SubmissionBatchData |
105
+
106
+ begin
107
+ #Generates multiple PDFs
108
+ result = api_instance.batch_generate_pdfs(submission_batch_data)
109
+ p result
110
+ rescue DocSpring::ApiError => e
111
+ puts "Exception when calling PDFApi->batch_generate_pdfs: #{e}"
112
+ end
113
+ ```
114
+
115
+ ### Parameters
116
+
117
+ Name | Type | Description | Notes
118
+ ------------- | ------------- | ------------- | -------------
119
+ **submission_batch_data** | [**SubmissionBatchData**](SubmissionBatchData.md)| |
120
+
121
+ ### Return type
122
+
123
+ [**CreateSubmissionBatchResponse**](CreateSubmissionBatchResponse.md)
124
+
125
+ ### Authorization
126
+
127
+ [api_token_basic](../README.md#api_token_basic)
128
+
129
+ ### HTTP request headers
130
+
131
+ - **Content-Type**: application/json
132
+ - **Accept**: application/json
133
+
134
+
135
+
136
+ # **combine_pdfs**
137
+ > CreateCombinedSubmissionResponse combine_pdfs(combine_pdfs_data)
138
+
139
+ Merge submission PDFs, template PDFs, or custom files
140
+
141
+ ### Example
142
+ ```ruby
143
+ # load the gem
144
+ require 'docspring'
145
+ # setup authorization
146
+ DocSpring.configure do |config|
147
+ # Configure HTTP basic authorization: api_token_basic
148
+ config.username = 'YOUR USERNAME'
149
+ config.password = 'YOUR PASSWORD'
150
+ end
151
+
152
+ api_instance = DocSpring::PDFApi.new
153
+ combine_pdfs_data = DocSpring::CombinePdfsData.new # CombinePdfsData |
154
+
155
+ begin
156
+ #Merge submission PDFs, template PDFs, or custom files
157
+ result = api_instance.combine_pdfs(combine_pdfs_data)
158
+ p result
159
+ rescue DocSpring::ApiError => e
160
+ puts "Exception when calling PDFApi->combine_pdfs: #{e}"
161
+ end
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+ Name | Type | Description | Notes
167
+ ------------- | ------------- | ------------- | -------------
168
+ **combine_pdfs_data** | [**CombinePdfsData**](CombinePdfsData.md)| |
169
+
170
+ ### Return type
171
+
172
+ [**CreateCombinedSubmissionResponse**](CreateCombinedSubmissionResponse.md)
173
+
174
+ ### Authorization
175
+
176
+ [api_token_basic](../README.md#api_token_basic)
177
+
178
+ ### HTTP request headers
179
+
180
+ - **Content-Type**: application/json
181
+ - **Accept**: application/json
182
+
183
+
184
+
185
+ # **combine_submissions**
186
+ > CreateCombinedSubmissionResponse combine_submissions(combined_submission_data)
187
+
188
+ Merge generated PDFs together
189
+
190
+ ### Example
191
+ ```ruby
192
+ # load the gem
193
+ require 'docspring'
194
+ # setup authorization
195
+ DocSpring.configure do |config|
196
+ # Configure HTTP basic authorization: api_token_basic
197
+ config.username = 'YOUR USERNAME'
198
+ config.password = 'YOUR PASSWORD'
199
+ end
200
+
201
+ api_instance = DocSpring::PDFApi.new
202
+ combined_submission_data = DocSpring::CombinedSubmissionData.new # CombinedSubmissionData |
203
+
204
+ begin
205
+ #Merge generated PDFs together
206
+ result = api_instance.combine_submissions(combined_submission_data)
207
+ p result
208
+ rescue DocSpring::ApiError => e
209
+ puts "Exception when calling PDFApi->combine_submissions: #{e}"
210
+ end
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ Name | Type | Description | Notes
216
+ ------------- | ------------- | ------------- | -------------
217
+ **combined_submission_data** | [**CombinedSubmissionData**](CombinedSubmissionData.md)| |
218
+
219
+ ### Return type
220
+
221
+ [**CreateCombinedSubmissionResponse**](CreateCombinedSubmissionResponse.md)
222
+
223
+ ### Authorization
224
+
225
+ [api_token_basic](../README.md#api_token_basic)
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: application/json
230
+ - **Accept**: application/json
231
+
232
+
233
+
234
+ # **create_custom_file_from_upload**
235
+ > CreateCustomFileResponse create_custom_file_from_upload(create_custom_file_data)
236
+
237
+ Create a new custom file from a cached presign upload
238
+
239
+ ### Example
240
+ ```ruby
241
+ # load the gem
242
+ require 'docspring'
243
+ # setup authorization
244
+ DocSpring.configure do |config|
245
+ # Configure HTTP basic authorization: api_token_basic
246
+ config.username = 'YOUR USERNAME'
247
+ config.password = 'YOUR PASSWORD'
248
+ end
249
+
250
+ api_instance = DocSpring::PDFApi.new
251
+ create_custom_file_data = DocSpring::CreateCustomFileData.new # CreateCustomFileData |
252
+
253
+ begin
254
+ #Create a new custom file from a cached presign upload
255
+ result = api_instance.create_custom_file_from_upload(create_custom_file_data)
256
+ p result
257
+ rescue DocSpring::ApiError => e
258
+ puts "Exception when calling PDFApi->create_custom_file_from_upload: #{e}"
259
+ end
260
+ ```
261
+
262
+ ### Parameters
263
+
264
+ Name | Type | Description | Notes
265
+ ------------- | ------------- | ------------- | -------------
266
+ **create_custom_file_data** | [**CreateCustomFileData**](CreateCustomFileData.md)| |
267
+
268
+ ### Return type
269
+
270
+ [**CreateCustomFileResponse**](CreateCustomFileResponse.md)
271
+
272
+ ### Authorization
273
+
274
+ [api_token_basic](../README.md#api_token_basic)
275
+
276
+ ### HTTP request headers
277
+
278
+ - **Content-Type**: application/json
279
+ - **Accept**: application/json
280
+
281
+
282
+
283
+ # **create_data_request_token**
284
+ > CreateSubmissionDataRequestTokenResponse create_data_request_token(data_request_id)
285
+
286
+ Creates a new data request token for form authentication
287
+
288
+ ### Example
289
+ ```ruby
290
+ # load the gem
291
+ require 'docspring'
292
+ # setup authorization
293
+ DocSpring.configure do |config|
294
+ # Configure HTTP basic authorization: api_token_basic
295
+ config.username = 'YOUR USERNAME'
296
+ config.password = 'YOUR PASSWORD'
297
+ end
298
+
299
+ api_instance = DocSpring::PDFApi.new
300
+ data_request_id = 'drq_000000000000000001' # String |
301
+
302
+ begin
303
+ #Creates a new data request token for form authentication
304
+ result = api_instance.create_data_request_token(data_request_id)
305
+ p result
306
+ rescue DocSpring::ApiError => e
307
+ puts "Exception when calling PDFApi->create_data_request_token: #{e}"
308
+ end
309
+ ```
310
+
311
+ ### Parameters
312
+
313
+ Name | Type | Description | Notes
314
+ ------------- | ------------- | ------------- | -------------
315
+ **data_request_id** | **String**| |
316
+
317
+ ### Return type
318
+
319
+ [**CreateSubmissionDataRequestTokenResponse**](CreateSubmissionDataRequestTokenResponse.md)
320
+
321
+ ### Authorization
322
+
323
+ [api_token_basic](../README.md#api_token_basic)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: Not defined
328
+ - **Accept**: application/json
329
+
330
+
331
+
332
+ # **create_folder**
333
+ > Folder create_folder(create_folder_data)
334
+
335
+ Create a folder
336
+
337
+ ### Example
338
+ ```ruby
339
+ # load the gem
340
+ require 'docspring'
341
+ # setup authorization
342
+ DocSpring.configure do |config|
343
+ # Configure HTTP basic authorization: api_token_basic
344
+ config.username = 'YOUR USERNAME'
345
+ config.password = 'YOUR PASSWORD'
346
+ end
347
+
348
+ api_instance = DocSpring::PDFApi.new
349
+ create_folder_data = DocSpring::CreateFolderData.new # CreateFolderData |
350
+
351
+ begin
352
+ #Create a folder
353
+ result = api_instance.create_folder(create_folder_data)
354
+ p result
355
+ rescue DocSpring::ApiError => e
356
+ puts "Exception when calling PDFApi->create_folder: #{e}"
357
+ end
358
+ ```
359
+
360
+ ### Parameters
361
+
362
+ Name | Type | Description | Notes
363
+ ------------- | ------------- | ------------- | -------------
364
+ **create_folder_data** | [**CreateFolderData**](CreateFolderData.md)| |
365
+
366
+ ### Return type
367
+
368
+ [**Folder**](Folder.md)
369
+
370
+ ### Authorization
371
+
372
+ [api_token_basic](../README.md#api_token_basic)
373
+
374
+ ### HTTP request headers
375
+
376
+ - **Content-Type**: application/json
377
+ - **Accept**: application/json
378
+
379
+
380
+
381
+ # **create_template**
382
+ > PendingTemplate create_template(template_document, template_name, opts)
383
+
384
+ Upload a new PDF template with a file upload
385
+
386
+ ### Example
387
+ ```ruby
388
+ # load the gem
389
+ require 'docspring'
390
+ # setup authorization
391
+ DocSpring.configure do |config|
392
+ # Configure HTTP basic authorization: api_token_basic
393
+ config.username = 'YOUR USERNAME'
394
+ config.password = 'YOUR PASSWORD'
395
+ end
396
+
397
+ api_instance = DocSpring::PDFApi.new
398
+ template_document = File.new('/path/to/file') # File |
399
+ template_name = 'template_name_example' # String |
400
+ opts = {
401
+ template_parent_folder_id: 'template_parent_folder_id_example' # String |
402
+ }
403
+
404
+ begin
405
+ #Upload a new PDF template with a file upload
406
+ result = api_instance.create_template(template_document, template_name, opts)
407
+ p result
408
+ rescue DocSpring::ApiError => e
409
+ puts "Exception when calling PDFApi->create_template: #{e}"
410
+ end
411
+ ```
412
+
413
+ ### Parameters
414
+
415
+ Name | Type | Description | Notes
416
+ ------------- | ------------- | ------------- | -------------
417
+ **template_document** | **File**| |
418
+ **template_name** | **String**| |
419
+ **template_parent_folder_id** | **String**| | [optional]
420
+
421
+ ### Return type
422
+
423
+ [**PendingTemplate**](PendingTemplate.md)
424
+
425
+ ### Authorization
426
+
427
+ [api_token_basic](../README.md#api_token_basic)
428
+
429
+ ### HTTP request headers
430
+
431
+ - **Content-Type**: multipart/form-data
432
+ - **Accept**: application/json
433
+
434
+
435
+
436
+ # **create_template_from_upload**
437
+ > PendingTemplate create_template_from_upload(create_template_data)
438
+
439
+ Create a new PDF template from a cached presign upload
440
+
441
+ ### Example
442
+ ```ruby
443
+ # load the gem
444
+ require 'docspring'
445
+ # setup authorization
446
+ DocSpring.configure do |config|
447
+ # Configure HTTP basic authorization: api_token_basic
448
+ config.username = 'YOUR USERNAME'
449
+ config.password = 'YOUR PASSWORD'
450
+ end
451
+
452
+ api_instance = DocSpring::PDFApi.new
453
+ create_template_data = DocSpring::CreateTemplateData.new # CreateTemplateData |
454
+
455
+ begin
456
+ #Create a new PDF template from a cached presign upload
457
+ result = api_instance.create_template_from_upload(create_template_data)
458
+ p result
459
+ rescue DocSpring::ApiError => e
460
+ puts "Exception when calling PDFApi->create_template_from_upload: #{e}"
461
+ end
462
+ ```
463
+
464
+ ### Parameters
465
+
466
+ Name | Type | Description | Notes
467
+ ------------- | ------------- | ------------- | -------------
468
+ **create_template_data** | [**CreateTemplateData**](CreateTemplateData.md)| |
469
+
470
+ ### Return type
471
+
472
+ [**PendingTemplate**](PendingTemplate.md)
473
+
474
+ ### Authorization
475
+
476
+ [api_token_basic](../README.md#api_token_basic)
477
+
478
+ ### HTTP request headers
479
+
480
+ - **Content-Type**: application/json
481
+ - **Accept**: application/json
482
+
483
+
484
+
485
+ # **delete_folder**
486
+ > Folder delete_folder(folder_id)
487
+
488
+ Delete a folder
489
+
490
+ ### Example
491
+ ```ruby
492
+ # load the gem
493
+ require 'docspring'
494
+ # setup authorization
495
+ DocSpring.configure do |config|
496
+ # Configure HTTP basic authorization: api_token_basic
497
+ config.username = 'YOUR USERNAME'
498
+ config.password = 'YOUR PASSWORD'
499
+ end
500
+
501
+ api_instance = DocSpring::PDFApi.new
502
+ folder_id = 'fld_000000000000000001' # String |
503
+
504
+ begin
505
+ #Delete a folder
506
+ result = api_instance.delete_folder(folder_id)
507
+ p result
508
+ rescue DocSpring::ApiError => e
509
+ puts "Exception when calling PDFApi->delete_folder: #{e}"
510
+ end
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+ Name | Type | Description | Notes
516
+ ------------- | ------------- | ------------- | -------------
517
+ **folder_id** | **String**| |
518
+
519
+ ### Return type
520
+
521
+ [**Folder**](Folder.md)
522
+
523
+ ### Authorization
524
+
525
+ [api_token_basic](../README.md#api_token_basic)
526
+
527
+ ### HTTP request headers
528
+
529
+ - **Content-Type**: Not defined
530
+ - **Accept**: application/json
531
+
532
+
533
+
534
+ # **expire_combined_submission**
535
+ > CombinedSubmission expire_combined_submission(combined_submission_id)
536
+
537
+ Expire a combined submission
538
+
539
+ ### Example
540
+ ```ruby
541
+ # load the gem
542
+ require 'docspring'
543
+ # setup authorization
544
+ DocSpring.configure do |config|
545
+ # Configure HTTP basic authorization: api_token_basic
546
+ config.username = 'YOUR USERNAME'
547
+ config.password = 'YOUR PASSWORD'
548
+ end
549
+
550
+ api_instance = DocSpring::PDFApi.new
551
+ combined_submission_id = 'com_000000000000000001' # String |
552
+
553
+ begin
554
+ #Expire a combined submission
555
+ result = api_instance.expire_combined_submission(combined_submission_id)
556
+ p result
557
+ rescue DocSpring::ApiError => e
558
+ puts "Exception when calling PDFApi->expire_combined_submission: #{e}"
559
+ end
560
+ ```
561
+
562
+ ### Parameters
563
+
564
+ Name | Type | Description | Notes
565
+ ------------- | ------------- | ------------- | -------------
566
+ **combined_submission_id** | **String**| |
567
+
568
+ ### Return type
569
+
570
+ [**CombinedSubmission**](CombinedSubmission.md)
571
+
572
+ ### Authorization
573
+
574
+ [api_token_basic](../README.md#api_token_basic)
575
+
576
+ ### HTTP request headers
577
+
578
+ - **Content-Type**: Not defined
579
+ - **Accept**: application/json
580
+
581
+
582
+
583
+ # **expire_submission**
584
+ > Submission expire_submission(submission_id)
585
+
586
+ Expire a PDF submission
587
+
588
+ ### Example
589
+ ```ruby
590
+ # load the gem
591
+ require 'docspring'
592
+ # setup authorization
593
+ DocSpring.configure do |config|
594
+ # Configure HTTP basic authorization: api_token_basic
595
+ config.username = 'YOUR USERNAME'
596
+ config.password = 'YOUR PASSWORD'
597
+ end
598
+
599
+ api_instance = DocSpring::PDFApi.new
600
+ submission_id = 'sub_000000000000000001' # String |
601
+
602
+ begin
603
+ #Expire a PDF submission
604
+ result = api_instance.expire_submission(submission_id)
605
+ p result
606
+ rescue DocSpring::ApiError => e
607
+ puts "Exception when calling PDFApi->expire_submission: #{e}"
608
+ end
609
+ ```
610
+
611
+ ### Parameters
612
+
613
+ Name | Type | Description | Notes
614
+ ------------- | ------------- | ------------- | -------------
615
+ **submission_id** | **String**| |
616
+
617
+ ### Return type
618
+
619
+ [**Submission**](Submission.md)
620
+
621
+ ### Authorization
622
+
623
+ [api_token_basic](../README.md#api_token_basic)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: Not defined
628
+ - **Accept**: application/json
629
+
630
+
631
+
632
+ # **generate_pdf**
633
+ > CreateSubmissionResponse generate_pdf(template_id, submission_data)
634
+
635
+ Generates a new PDF
636
+
637
+ ### Example
638
+ ```ruby
639
+ # load the gem
640
+ require 'docspring'
641
+ # setup authorization
642
+ DocSpring.configure do |config|
643
+ # Configure HTTP basic authorization: api_token_basic
644
+ config.username = 'YOUR USERNAME'
645
+ config.password = 'YOUR PASSWORD'
646
+ end
647
+
648
+ api_instance = DocSpring::PDFApi.new
649
+ template_id = 'tpl_000000000000000001' # String |
650
+ submission_data = DocSpring::SubmissionData.new # SubmissionData |
651
+
652
+ begin
653
+ #Generates a new PDF
654
+ result = api_instance.generate_pdf(template_id, submission_data)
655
+ p result
656
+ rescue DocSpring::ApiError => e
657
+ puts "Exception when calling PDFApi->generate_pdf: #{e}"
658
+ end
659
+ ```
660
+
661
+ ### Parameters
662
+
663
+ Name | Type | Description | Notes
664
+ ------------- | ------------- | ------------- | -------------
665
+ **template_id** | **String**| |
666
+ **submission_data** | [**SubmissionData**](SubmissionData.md)| |
667
+
668
+ ### Return type
669
+
670
+ [**CreateSubmissionResponse**](CreateSubmissionResponse.md)
671
+
672
+ ### Authorization
673
+
674
+ [api_token_basic](../README.md#api_token_basic)
675
+
676
+ ### HTTP request headers
677
+
678
+ - **Content-Type**: application/json
679
+ - **Accept**: application/json
680
+
681
+
682
+
683
+ # **get_combined_submission**
684
+ > CombinedSubmission get_combined_submission(combined_submission_id)
685
+
686
+ Check the status of a combined submission (merged PDFs)
687
+
688
+ ### Example
689
+ ```ruby
690
+ # load the gem
691
+ require 'docspring'
692
+ # setup authorization
693
+ DocSpring.configure do |config|
694
+ # Configure HTTP basic authorization: api_token_basic
695
+ config.username = 'YOUR USERNAME'
696
+ config.password = 'YOUR PASSWORD'
697
+ end
698
+
699
+ api_instance = DocSpring::PDFApi.new
700
+ combined_submission_id = 'com_000000000000000001' # String |
701
+
702
+ begin
703
+ #Check the status of a combined submission (merged PDFs)
704
+ result = api_instance.get_combined_submission(combined_submission_id)
705
+ p result
706
+ rescue DocSpring::ApiError => e
707
+ puts "Exception when calling PDFApi->get_combined_submission: #{e}"
708
+ end
709
+ ```
710
+
711
+ ### Parameters
712
+
713
+ Name | Type | Description | Notes
714
+ ------------- | ------------- | ------------- | -------------
715
+ **combined_submission_id** | **String**| |
716
+
717
+ ### Return type
718
+
719
+ [**CombinedSubmission**](CombinedSubmission.md)
720
+
721
+ ### Authorization
722
+
723
+ [api_token_basic](../README.md#api_token_basic)
724
+
725
+ ### HTTP request headers
726
+
727
+ - **Content-Type**: Not defined
728
+ - **Accept**: application/json
729
+
730
+
731
+
732
+ # **get_data_request**
733
+ > SubmissionDataRequest get_data_request(data_request_id)
734
+
735
+ Look up a submission data request
736
+
737
+ ### Example
738
+ ```ruby
739
+ # load the gem
740
+ require 'docspring'
741
+ # setup authorization
742
+ DocSpring.configure do |config|
743
+ # Configure HTTP basic authorization: api_token_basic
744
+ config.username = 'YOUR USERNAME'
745
+ config.password = 'YOUR PASSWORD'
746
+ end
747
+
748
+ api_instance = DocSpring::PDFApi.new
749
+ data_request_id = 'drq_000000000000000001' # String |
750
+
751
+ begin
752
+ #Look up a submission data request
753
+ result = api_instance.get_data_request(data_request_id)
754
+ p result
755
+ rescue DocSpring::ApiError => e
756
+ puts "Exception when calling PDFApi->get_data_request: #{e}"
757
+ end
758
+ ```
759
+
760
+ ### Parameters
761
+
762
+ Name | Type | Description | Notes
763
+ ------------- | ------------- | ------------- | -------------
764
+ **data_request_id** | **String**| |
765
+
766
+ ### Return type
767
+
768
+ [**SubmissionDataRequest**](SubmissionDataRequest.md)
769
+
770
+ ### Authorization
771
+
772
+ [api_token_basic](../README.md#api_token_basic)
773
+
774
+ ### HTTP request headers
775
+
776
+ - **Content-Type**: Not defined
777
+ - **Accept**: application/json
778
+
779
+
780
+
781
+ # **get_presign_url**
782
+ > Hash&lt;String, Object&gt; get_presign_url
783
+
784
+ Get a presigned URL so that you can upload a file to our AWS S3 bucket
785
+
786
+ ### Example
787
+ ```ruby
788
+ # load the gem
789
+ require 'docspring'
790
+ # setup authorization
791
+ DocSpring.configure do |config|
792
+ # Configure HTTP basic authorization: api_token_basic
793
+ config.username = 'YOUR USERNAME'
794
+ config.password = 'YOUR PASSWORD'
795
+ end
796
+
797
+ api_instance = DocSpring::PDFApi.new
798
+
799
+ begin
800
+ #Get a presigned URL so that you can upload a file to our AWS S3 bucket
801
+ result = api_instance.get_presign_url
802
+ p result
803
+ rescue DocSpring::ApiError => e
804
+ puts "Exception when calling PDFApi->get_presign_url: #{e}"
805
+ end
806
+ ```
807
+
808
+ ### Parameters
809
+ This endpoint does not need any parameter.
810
+
811
+ ### Return type
812
+
813
+ **Hash&lt;String, Object&gt;**
814
+
815
+ ### Authorization
816
+
817
+ [api_token_basic](../README.md#api_token_basic)
818
+
819
+ ### HTTP request headers
820
+
821
+ - **Content-Type**: Not defined
822
+ - **Accept**: application/json
823
+
824
+
825
+
826
+ # **get_submission**
827
+ > Submission get_submission(submission_id, opts)
828
+
829
+ Check the status of a PDF
830
+
831
+ ### Example
832
+ ```ruby
833
+ # load the gem
834
+ require 'docspring'
835
+ # setup authorization
836
+ DocSpring.configure do |config|
837
+ # Configure HTTP basic authorization: api_token_basic
838
+ config.username = 'YOUR USERNAME'
839
+ config.password = 'YOUR PASSWORD'
840
+ end
841
+
842
+ api_instance = DocSpring::PDFApi.new
843
+ submission_id = 'sub_000000000000000001' # String |
844
+ opts = {
845
+ include_data: false # BOOLEAN |
846
+ }
847
+
848
+ begin
849
+ #Check the status of a PDF
850
+ result = api_instance.get_submission(submission_id, opts)
851
+ p result
852
+ rescue DocSpring::ApiError => e
853
+ puts "Exception when calling PDFApi->get_submission: #{e}"
854
+ end
855
+ ```
856
+
857
+ ### Parameters
858
+
859
+ Name | Type | Description | Notes
860
+ ------------- | ------------- | ------------- | -------------
861
+ **submission_id** | **String**| |
862
+ **include_data** | **BOOLEAN**| | [optional]
863
+
864
+ ### Return type
865
+
866
+ [**Submission**](Submission.md)
867
+
868
+ ### Authorization
869
+
870
+ [api_token_basic](../README.md#api_token_basic)
871
+
872
+ ### HTTP request headers
873
+
874
+ - **Content-Type**: Not defined
875
+ - **Accept**: application/json
876
+
877
+
878
+
879
+ # **get_submission_batch**
880
+ > SubmissionBatch get_submission_batch(submission_batch_id, opts)
881
+
882
+ Check the status of a submission batch job
883
+
884
+ ### Example
885
+ ```ruby
886
+ # load the gem
887
+ require 'docspring'
888
+ # setup authorization
889
+ DocSpring.configure do |config|
890
+ # Configure HTTP basic authorization: api_token_basic
891
+ config.username = 'YOUR USERNAME'
892
+ config.password = 'YOUR PASSWORD'
893
+ end
894
+
895
+ api_instance = DocSpring::PDFApi.new
896
+ submission_batch_id = 'sbb_000000000000000001' # String |
897
+ opts = {
898
+ include_submissions: true # BOOLEAN |
899
+ }
900
+
901
+ begin
902
+ #Check the status of a submission batch job
903
+ result = api_instance.get_submission_batch(submission_batch_id, opts)
904
+ p result
905
+ rescue DocSpring::ApiError => e
906
+ puts "Exception when calling PDFApi->get_submission_batch: #{e}"
907
+ end
908
+ ```
909
+
910
+ ### Parameters
911
+
912
+ Name | Type | Description | Notes
913
+ ------------- | ------------- | ------------- | -------------
914
+ **submission_batch_id** | **String**| |
915
+ **include_submissions** | **BOOLEAN**| | [optional]
916
+
917
+ ### Return type
918
+
919
+ [**SubmissionBatch**](SubmissionBatch.md)
920
+
921
+ ### Authorization
922
+
923
+ [api_token_basic](../README.md#api_token_basic)
924
+
925
+ ### HTTP request headers
926
+
927
+ - **Content-Type**: Not defined
928
+ - **Accept**: application/json
929
+
930
+
931
+
932
+ # **get_template**
933
+ > Template get_template(template_id)
934
+
935
+ Get a single template
936
+
937
+ ### Example
938
+ ```ruby
939
+ # load the gem
940
+ require 'docspring'
941
+ # setup authorization
942
+ DocSpring.configure do |config|
943
+ # Configure HTTP basic authorization: api_token_basic
944
+ config.username = 'YOUR USERNAME'
945
+ config.password = 'YOUR PASSWORD'
946
+ end
947
+
948
+ api_instance = DocSpring::PDFApi.new
949
+ template_id = 'tpl_000000000000000011' # String |
950
+
951
+ begin
952
+ #Get a single template
953
+ result = api_instance.get_template(template_id)
954
+ p result
955
+ rescue DocSpring::ApiError => e
956
+ puts "Exception when calling PDFApi->get_template: #{e}"
957
+ end
958
+ ```
959
+
960
+ ### Parameters
961
+
962
+ Name | Type | Description | Notes
963
+ ------------- | ------------- | ------------- | -------------
964
+ **template_id** | **String**| |
965
+
966
+ ### Return type
967
+
968
+ [**Template**](Template.md)
969
+
970
+ ### Authorization
971
+
972
+ [api_token_basic](../README.md#api_token_basic)
973
+
974
+ ### HTTP request headers
975
+
976
+ - **Content-Type**: Not defined
977
+ - **Accept**: application/json
978
+
979
+
980
+
981
+ # **get_template_schema**
982
+ > Hash&lt;String, Object&gt; get_template_schema(template_id)
983
+
984
+ Fetch the JSON schema for a template
985
+
986
+ ### Example
987
+ ```ruby
988
+ # load the gem
989
+ require 'docspring'
990
+ # setup authorization
991
+ DocSpring.configure do |config|
992
+ # Configure HTTP basic authorization: api_token_basic
993
+ config.username = 'YOUR USERNAME'
994
+ config.password = 'YOUR PASSWORD'
995
+ end
996
+
997
+ api_instance = DocSpring::PDFApi.new
998
+ template_id = 'tpl_000000000000000001' # String |
999
+
1000
+ begin
1001
+ #Fetch the JSON schema for a template
1002
+ result = api_instance.get_template_schema(template_id)
1003
+ p result
1004
+ rescue DocSpring::ApiError => e
1005
+ puts "Exception when calling PDFApi->get_template_schema: #{e}"
1006
+ end
1007
+ ```
1008
+
1009
+ ### Parameters
1010
+
1011
+ Name | Type | Description | Notes
1012
+ ------------- | ------------- | ------------- | -------------
1013
+ **template_id** | **String**| |
1014
+
1015
+ ### Return type
1016
+
1017
+ **Hash&lt;String, Object&gt;**
1018
+
1019
+ ### Authorization
1020
+
1021
+ [api_token_basic](../README.md#api_token_basic)
1022
+
1023
+ ### HTTP request headers
1024
+
1025
+ - **Content-Type**: Not defined
1026
+ - **Accept**: application/json
1027
+
1028
+
1029
+
1030
+ # **list_folders**
1031
+ > Array&lt;Folder&gt; list_folders(opts)
1032
+
1033
+ Get a list of all folders
1034
+
1035
+ ### Example
1036
+ ```ruby
1037
+ # load the gem
1038
+ require 'docspring'
1039
+ # setup authorization
1040
+ DocSpring.configure do |config|
1041
+ # Configure HTTP basic authorization: api_token_basic
1042
+ config.username = 'YOUR USERNAME'
1043
+ config.password = 'YOUR PASSWORD'
1044
+ end
1045
+
1046
+ api_instance = DocSpring::PDFApi.new
1047
+ opts = {
1048
+ parent_folder_id: 'fld_000000000000000002' # String | Filter By Folder Id
1049
+ }
1050
+
1051
+ begin
1052
+ #Get a list of all folders
1053
+ result = api_instance.list_folders(opts)
1054
+ p result
1055
+ rescue DocSpring::ApiError => e
1056
+ puts "Exception when calling PDFApi->list_folders: #{e}"
1057
+ end
1058
+ ```
1059
+
1060
+ ### Parameters
1061
+
1062
+ Name | Type | Description | Notes
1063
+ ------------- | ------------- | ------------- | -------------
1064
+ **parent_folder_id** | **String**| Filter By Folder Id | [optional]
1065
+
1066
+ ### Return type
1067
+
1068
+ [**Array&lt;Folder&gt;**](Folder.md)
1069
+
1070
+ ### Authorization
1071
+
1072
+ [api_token_basic](../README.md#api_token_basic)
1073
+
1074
+ ### HTTP request headers
1075
+
1076
+ - **Content-Type**: Not defined
1077
+ - **Accept**: application/json
1078
+
1079
+
1080
+
1081
+ # **list_templates**
1082
+ > Array&lt;Template&gt; list_templates(opts)
1083
+
1084
+ Get a list of all templates
1085
+
1086
+ ### Example
1087
+ ```ruby
1088
+ # load the gem
1089
+ require 'docspring'
1090
+ # setup authorization
1091
+ DocSpring.configure do |config|
1092
+ # Configure HTTP basic authorization: api_token_basic
1093
+ config.username = 'YOUR USERNAME'
1094
+ config.password = 'YOUR PASSWORD'
1095
+ end
1096
+
1097
+ api_instance = DocSpring::PDFApi.new
1098
+ opts = {
1099
+ query: '2', # String | Search By Name
1100
+ parent_folder_id: 'fld_000000000000000001', # String | Filter By Folder Id
1101
+ page: 2, # Integer | Default: 1
1102
+ per_page: 1 # Integer | Default: 50
1103
+ }
1104
+
1105
+ begin
1106
+ #Get a list of all templates
1107
+ result = api_instance.list_templates(opts)
1108
+ p result
1109
+ rescue DocSpring::ApiError => e
1110
+ puts "Exception when calling PDFApi->list_templates: #{e}"
1111
+ end
1112
+ ```
1113
+
1114
+ ### Parameters
1115
+
1116
+ Name | Type | Description | Notes
1117
+ ------------- | ------------- | ------------- | -------------
1118
+ **query** | **String**| Search By Name | [optional]
1119
+ **parent_folder_id** | **String**| Filter By Folder Id | [optional]
1120
+ **page** | **Integer**| Default: 1 | [optional]
1121
+ **per_page** | **Integer**| Default: 50 | [optional]
1122
+
1123
+ ### Return type
1124
+
1125
+ [**Array&lt;Template&gt;**](Template.md)
1126
+
1127
+ ### Authorization
1128
+
1129
+ [api_token_basic](../README.md#api_token_basic)
1130
+
1131
+ ### HTTP request headers
1132
+
1133
+ - **Content-Type**: Not defined
1134
+ - **Accept**: application/json
1135
+
1136
+
1137
+
1138
+ # **move_folder_to_folder**
1139
+ > Folder move_folder_to_folder(folder_id, move_folder_data)
1140
+
1141
+ Move a folder
1142
+
1143
+ ### Example
1144
+ ```ruby
1145
+ # load the gem
1146
+ require 'docspring'
1147
+ # setup authorization
1148
+ DocSpring.configure do |config|
1149
+ # Configure HTTP basic authorization: api_token_basic
1150
+ config.username = 'YOUR USERNAME'
1151
+ config.password = 'YOUR PASSWORD'
1152
+ end
1153
+
1154
+ api_instance = DocSpring::PDFApi.new
1155
+ folder_id = 'fld_000000000000000001' # String |
1156
+ move_folder_data = DocSpring::MoveFolderData.new # MoveFolderData |
1157
+
1158
+ begin
1159
+ #Move a folder
1160
+ result = api_instance.move_folder_to_folder(folder_id, move_folder_data)
1161
+ p result
1162
+ rescue DocSpring::ApiError => e
1163
+ puts "Exception when calling PDFApi->move_folder_to_folder: #{e}"
1164
+ end
1165
+ ```
1166
+
1167
+ ### Parameters
1168
+
1169
+ Name | Type | Description | Notes
1170
+ ------------- | ------------- | ------------- | -------------
1171
+ **folder_id** | **String**| |
1172
+ **move_folder_data** | [**MoveFolderData**](MoveFolderData.md)| |
1173
+
1174
+ ### Return type
1175
+
1176
+ [**Folder**](Folder.md)
1177
+
1178
+ ### Authorization
1179
+
1180
+ [api_token_basic](../README.md#api_token_basic)
1181
+
1182
+ ### HTTP request headers
1183
+
1184
+ - **Content-Type**: application/json
1185
+ - **Accept**: application/json
1186
+
1187
+
1188
+
1189
+ # **move_template_to_folder**
1190
+ > Template move_template_to_folder(template_id, move_template_data)
1191
+
1192
+ Move Template to folder
1193
+
1194
+ ### Example
1195
+ ```ruby
1196
+ # load the gem
1197
+ require 'docspring'
1198
+ # setup authorization
1199
+ DocSpring.configure do |config|
1200
+ # Configure HTTP basic authorization: api_token_basic
1201
+ config.username = 'YOUR USERNAME'
1202
+ config.password = 'YOUR PASSWORD'
1203
+ end
1204
+
1205
+ api_instance = DocSpring::PDFApi.new
1206
+ template_id = 'tpl_000000000000000001' # String |
1207
+ move_template_data = DocSpring::MoveTemplateData.new # MoveTemplateData |
1208
+
1209
+ begin
1210
+ #Move Template to folder
1211
+ result = api_instance.move_template_to_folder(template_id, move_template_data)
1212
+ p result
1213
+ rescue DocSpring::ApiError => e
1214
+ puts "Exception when calling PDFApi->move_template_to_folder: #{e}"
1215
+ end
1216
+ ```
1217
+
1218
+ ### Parameters
1219
+
1220
+ Name | Type | Description | Notes
1221
+ ------------- | ------------- | ------------- | -------------
1222
+ **template_id** | **String**| |
1223
+ **move_template_data** | [**MoveTemplateData**](MoveTemplateData.md)| |
1224
+
1225
+ ### Return type
1226
+
1227
+ [**Template**](Template.md)
1228
+
1229
+ ### Authorization
1230
+
1231
+ [api_token_basic](../README.md#api_token_basic)
1232
+
1233
+ ### HTTP request headers
1234
+
1235
+ - **Content-Type**: application/json
1236
+ - **Accept**: application/json
1237
+
1238
+
1239
+
1240
+ # **rename_folder**
1241
+ > rename_folder(folder_id, rename_folder_data)
1242
+
1243
+ Rename a folder
1244
+
1245
+ ### Example
1246
+ ```ruby
1247
+ # load the gem
1248
+ require 'docspring'
1249
+ # setup authorization
1250
+ DocSpring.configure do |config|
1251
+ # Configure HTTP basic authorization: api_token_basic
1252
+ config.username = 'YOUR USERNAME'
1253
+ config.password = 'YOUR PASSWORD'
1254
+ end
1255
+
1256
+ api_instance = DocSpring::PDFApi.new
1257
+ folder_id = 'fld_000000000000000001' # String |
1258
+ rename_folder_data = DocSpring::RenameFolderData.new # RenameFolderData |
1259
+
1260
+ begin
1261
+ #Rename a folder
1262
+ api_instance.rename_folder(folder_id, rename_folder_data)
1263
+ rescue DocSpring::ApiError => e
1264
+ puts "Exception when calling PDFApi->rename_folder: #{e}"
1265
+ end
1266
+ ```
1267
+
1268
+ ### Parameters
1269
+
1270
+ Name | Type | Description | Notes
1271
+ ------------- | ------------- | ------------- | -------------
1272
+ **folder_id** | **String**| |
1273
+ **rename_folder_data** | [**RenameFolderData**](RenameFolderData.md)| |
1274
+
1275
+ ### Return type
1276
+
1277
+ nil (empty response body)
1278
+
1279
+ ### Authorization
1280
+
1281
+ [api_token_basic](../README.md#api_token_basic)
1282
+
1283
+ ### HTTP request headers
1284
+
1285
+ - **Content-Type**: application/json
1286
+ - **Accept**: application/json
1287
+
1288
+
1289
+
1290
+ # **test_authentication**
1291
+ > AuthenticationSuccessResponse test_authentication
1292
+
1293
+ Test Authentication
1294
+
1295
+ ### Example
1296
+ ```ruby
1297
+ # load the gem
1298
+ require 'docspring'
1299
+ # setup authorization
1300
+ DocSpring.configure do |config|
1301
+ # Configure HTTP basic authorization: api_token_basic
1302
+ config.username = 'YOUR USERNAME'
1303
+ config.password = 'YOUR PASSWORD'
1304
+ end
1305
+
1306
+ api_instance = DocSpring::PDFApi.new
1307
+
1308
+ begin
1309
+ #Test Authentication
1310
+ result = api_instance.test_authentication
1311
+ p result
1312
+ rescue DocSpring::ApiError => e
1313
+ puts "Exception when calling PDFApi->test_authentication: #{e}"
1314
+ end
1315
+ ```
1316
+
1317
+ ### Parameters
1318
+ This endpoint does not need any parameter.
1319
+
1320
+ ### Return type
1321
+
1322
+ [**AuthenticationSuccessResponse**](AuthenticationSuccessResponse.md)
1323
+
1324
+ ### Authorization
1325
+
1326
+ [api_token_basic](../README.md#api_token_basic)
1327
+
1328
+ ### HTTP request headers
1329
+
1330
+ - **Content-Type**: Not defined
1331
+ - **Accept**: application/json
1332
+
1333
+
1334
+
1335
+ # **update_data_request**
1336
+ > UpdateDataRequestResponse update_data_request(data_request_id, update_submission_data_request_data)
1337
+
1338
+ Update a submission data request
1339
+
1340
+ ### Example
1341
+ ```ruby
1342
+ # load the gem
1343
+ require 'docspring'
1344
+ # setup authorization
1345
+ DocSpring.configure do |config|
1346
+ # Configure HTTP basic authorization: api_token_basic
1347
+ config.username = 'YOUR USERNAME'
1348
+ config.password = 'YOUR PASSWORD'
1349
+ end
1350
+
1351
+ api_instance = DocSpring::PDFApi.new
1352
+ data_request_id = 'drq_000000000000000001' # String |
1353
+ update_submission_data_request_data = DocSpring::UpdateSubmissionDataRequestData.new # UpdateSubmissionDataRequestData |
1354
+
1355
+ begin
1356
+ #Update a submission data request
1357
+ result = api_instance.update_data_request(data_request_id, update_submission_data_request_data)
1358
+ p result
1359
+ rescue DocSpring::ApiError => e
1360
+ puts "Exception when calling PDFApi->update_data_request: #{e}"
1361
+ end
1362
+ ```
1363
+
1364
+ ### Parameters
1365
+
1366
+ Name | Type | Description | Notes
1367
+ ------------- | ------------- | ------------- | -------------
1368
+ **data_request_id** | **String**| |
1369
+ **update_submission_data_request_data** | [**UpdateSubmissionDataRequestData**](UpdateSubmissionDataRequestData.md)| |
1370
+
1371
+ ### Return type
1372
+
1373
+ [**UpdateDataRequestResponse**](UpdateDataRequestResponse.md)
1374
+
1375
+ ### Authorization
1376
+
1377
+ [api_token_basic](../README.md#api_token_basic)
1378
+
1379
+ ### HTTP request headers
1380
+
1381
+ - **Content-Type**: application/json
1382
+ - **Accept**: application/json
1383
+
1384
+
1385
+