form_api 1.6.0 → 1.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +21 -10
- data/docs/{CreateSubmissionDataBatchV1.md → CombinePdfsData.md} +4 -4
- data/docs/CombinedSubmission.md +1 -0
- data/docs/CreateCustomFileData.md +8 -0
- data/docs/CreateCustomFileResponse.md +10 -0
- data/docs/CreateTemplateData.md +8 -0
- data/docs/CustomFile.md +9 -0
- data/docs/PDFApi.md +208 -12
- data/docs/SubmissionBatchData.md +1 -1
- data/docs/{CreateSubmissionData.md → SubmissionData.md} +1 -1
- data/docs/{CreateSubmissionDataBatchRequest.md → SubmissionDataBatchRequest.md} +5 -5
- data/docs/Templatesv2Template.md +19 -0
- data/docs/Templatesv2TemplateDocument.md +10 -0
- data/docs/Templatesv2TemplateDocumentMetadata.md +10 -0
- data/lib/form_api.rb +10 -3
- data/lib/form_api/api/client.rb +25 -9
- data/lib/form_api/api/pdf_api.rb +224 -20
- data/lib/form_api/models/{create_submission_data_batch_request.rb → combine_pdfs_data.rb} +31 -43
- data/lib/form_api/models/combined_submission.rb +12 -1
- data/lib/form_api/models/create_custom_file_data.rb +188 -0
- data/lib/form_api/models/create_custom_file_response.rb +237 -0
- data/lib/form_api/models/create_template_data.rb +188 -0
- data/lib/form_api/models/custom_file.rb +192 -0
- data/lib/form_api/models/submission_batch_data.rb +1 -1
- data/lib/form_api/models/{create_submission_data.rb → submission_data.rb} +1 -1
- data/lib/form_api/models/{create_submission_data_batch_v1.rb → submission_data_batch_request.rb} +32 -28
- data/lib/form_api/models/templatesv2_template.rb +316 -0
- data/lib/form_api/models/templatesv2_template_document.rb +235 -0
- data/lib/form_api/models/templatesv2_template_document_metadata.rb +235 -0
- data/lib/form_api/version.rb +1 -1
- data/spec/api/client_integration_spec.rb +41 -4
- data/spec/api/pdf_api_integration_spec.rb +7 -7
- data/spec/api/pdf_api_spec_original.skipped.rb +55 -9
- data/spec/models/{create_submission_data_batch_v1_spec.rb → combine_pdfs_data_spec.rb} +10 -10
- data/spec/models/combined_submission_spec.rb +6 -0
- data/spec/models/create_custom_file_data_spec.rb +41 -0
- data/spec/models/create_custom_file_response_spec.rb +57 -0
- data/spec/models/create_template_data_spec.rb +41 -0
- data/spec/models/custom_file_spec.rb +47 -0
- data/spec/models/{create_submission_data_batch_request_spec.rb → submission_data_batch_request_spec.rb} +12 -12
- data/spec/models/{create_submission_data_spec.rb → submission_data_spec.rb} +6 -6
- data/spec/models/templatesv2_template_document_metadata_spec.rb +57 -0
- data/spec/models/templatesv2_template_document_spec.rb +57 -0
- data/spec/models/templatesv2_template_spec.rb +111 -0
- data/spec/spec_helper.rb +3 -0
- metadata +42 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58a777d9e6dc2a11db9e8eb3c3525228743ff6ae1156f374abea9e5789965be2
|
4
|
+
data.tar.gz: fe5a3dca2d77ee29bf169d11f05edda9261f54b4d8c1470ed2939fd57e57504b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5128eb81f2242d91a8a73a01493cc0ba1d7617bc13f9f234babcce6567739716ddb6b2498ff25f5f5061092298df4d63be74f0402be69661be32f68625069406
|
7
|
+
data.tar.gz: 6c59f305169dce401d6ae88199e1df3eda5e4bffdd3461ba212d4b68d264d4a6ae411e377ca954b93a262cd4a5ef974447a14936b918c47171aca821057c5c30
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ FormAPI 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.
|
10
|
+
- Package version: 1.7.0
|
11
11
|
- Build package: io.formapi.codegen.FormApiRubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build form_api.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./form_api-1.
|
26
|
+
gem install ./form_api-1.7.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./form_api-1.
|
28
|
+
(for development, run `gem install --dev ./form_api-1.7.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 'form_api', '~> 1.
|
34
|
+
gem 'form_api', '~> 1.7.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -63,11 +63,11 @@ end
|
|
63
63
|
|
64
64
|
api_instance = FormAPI::PDFApi.new
|
65
65
|
template_id = 'tpl_000000000000000001' # String |
|
66
|
-
|
66
|
+
request_body = nil # Array<Object> |
|
67
67
|
|
68
68
|
begin
|
69
69
|
#Generates multiple PDFs
|
70
|
-
result = api_instance.batch_generate_pdf_v1(template_id,
|
70
|
+
result = api_instance.batch_generate_pdf_v1(template_id, request_body)
|
71
71
|
p result
|
72
72
|
rescue FormAPI::ApiError => e
|
73
73
|
puts "Exception when calling PDFApi->batch_generate_pdf_v1: #{e}"
|
@@ -83,14 +83,18 @@ Class | Method | HTTP request | Description
|
|
83
83
|
------------ | ------------- | ------------- | -------------
|
84
84
|
*FormAPI::PDFApi* | [**batch_generate_pdf_v1**](docs/PDFApi.md#batch_generate_pdf_v1) | **POST** /templates/{template_id}/submissions/batch | Generates multiple PDFs
|
85
85
|
*FormAPI::PDFApi* | [**batch_generate_pdfs**](docs/PDFApi.md#batch_generate_pdfs) | **POST** /submissions/batches | Generates multiple PDFs
|
86
|
+
*FormAPI::PDFApi* | [**combine_pdfs**](docs/PDFApi.md#combine_pdfs) | **POST** /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files
|
86
87
|
*FormAPI::PDFApi* | [**combine_submissions**](docs/PDFApi.md#combine_submissions) | **POST** /combined_submissions | Merge generated PDFs together
|
88
|
+
*FormAPI::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
|
87
89
|
*FormAPI::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
|
88
|
-
*FormAPI::PDFApi* | [**create_template**](docs/PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template
|
90
|
+
*FormAPI::PDFApi* | [**create_template**](docs/PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template with a file upload
|
91
|
+
*FormAPI::PDFApi* | [**create_template_from_upload**](docs/PDFApi.md#create_template_from_upload) | **POST** /templates?v=2 | Create a new PDF template from a cached presign upload
|
89
92
|
*FormAPI::PDFApi* | [**expire_combined_submission**](docs/PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
|
90
93
|
*FormAPI::PDFApi* | [**expire_submission**](docs/PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
|
91
94
|
*FormAPI::PDFApi* | [**generate_pdf**](docs/PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
|
92
95
|
*FormAPI::PDFApi* | [**get_combined_submission**](docs/PDFApi.md#get_combined_submission) | **GET** /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs)
|
93
96
|
*FormAPI::PDFApi* | [**get_data_request**](docs/PDFApi.md#get_data_request) | **GET** /data_requests/{data_request_id} | Look up a submission data request
|
97
|
+
*FormAPI::PDFApi* | [**get_presign_url**](docs/PDFApi.md#get_presign_url) | **GET** /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket
|
94
98
|
*FormAPI::PDFApi* | [**get_submission**](docs/PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
|
95
99
|
*FormAPI::PDFApi* | [**get_submission_batch**](docs/PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
|
96
100
|
*FormAPI::PDFApi* | [**get_template**](docs/PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
|
@@ -104,19 +108,21 @@ Class | Method | HTTP request | Description
|
|
104
108
|
|
105
109
|
- [FormAPI::AuthenticationError](docs/AuthenticationError.md)
|
106
110
|
- [FormAPI::AuthenticationSuccessResponse](docs/AuthenticationSuccessResponse.md)
|
111
|
+
- [FormAPI::CombinePdfsData](docs/CombinePdfsData.md)
|
107
112
|
- [FormAPI::CombinedSubmission](docs/CombinedSubmission.md)
|
108
113
|
- [FormAPI::CombinedSubmissionAction](docs/CombinedSubmissionAction.md)
|
109
114
|
- [FormAPI::CombinedSubmissionData](docs/CombinedSubmissionData.md)
|
110
115
|
- [FormAPI::CreateCombinedSubmissionResponse](docs/CreateCombinedSubmissionResponse.md)
|
116
|
+
- [FormAPI::CreateCustomFileData](docs/CreateCustomFileData.md)
|
117
|
+
- [FormAPI::CreateCustomFileResponse](docs/CreateCustomFileResponse.md)
|
111
118
|
- [FormAPI::CreateSubmissionBatchResponse](docs/CreateSubmissionBatchResponse.md)
|
112
119
|
- [FormAPI::CreateSubmissionBatchSubmissionsResponse](docs/CreateSubmissionBatchSubmissionsResponse.md)
|
113
|
-
- [FormAPI::CreateSubmissionData](docs/CreateSubmissionData.md)
|
114
|
-
- [FormAPI::CreateSubmissionDataBatchRequest](docs/CreateSubmissionDataBatchRequest.md)
|
115
|
-
- [FormAPI::CreateSubmissionDataBatchV1](docs/CreateSubmissionDataBatchV1.md)
|
116
120
|
- [FormAPI::CreateSubmissionDataRequestData](docs/CreateSubmissionDataRequestData.md)
|
117
121
|
- [FormAPI::CreateSubmissionDataRequestTokenResponse](docs/CreateSubmissionDataRequestTokenResponse.md)
|
118
122
|
- [FormAPI::CreateSubmissionDataRequestTokenResponseToken](docs/CreateSubmissionDataRequestTokenResponseToken.md)
|
119
123
|
- [FormAPI::CreateSubmissionResponse](docs/CreateSubmissionResponse.md)
|
124
|
+
- [FormAPI::CreateTemplateData](docs/CreateTemplateData.md)
|
125
|
+
- [FormAPI::CustomFile](docs/CustomFile.md)
|
120
126
|
- [FormAPI::Error](docs/Error.md)
|
121
127
|
- [FormAPI::InvalidRequest](docs/InvalidRequest.md)
|
122
128
|
- [FormAPI::PendingTemplate](docs/PendingTemplate.md)
|
@@ -124,8 +130,13 @@ Class | Method | HTTP request | Description
|
|
124
130
|
- [FormAPI::SubmissionAction](docs/SubmissionAction.md)
|
125
131
|
- [FormAPI::SubmissionBatch](docs/SubmissionBatch.md)
|
126
132
|
- [FormAPI::SubmissionBatchData](docs/SubmissionBatchData.md)
|
133
|
+
- [FormAPI::SubmissionData](docs/SubmissionData.md)
|
134
|
+
- [FormAPI::SubmissionDataBatchRequest](docs/SubmissionDataBatchRequest.md)
|
127
135
|
- [FormAPI::SubmissionDataRequest](docs/SubmissionDataRequest.md)
|
128
136
|
- [FormAPI::Template](docs/Template.md)
|
137
|
+
- [FormAPI::Templatesv2Template](docs/Templatesv2Template.md)
|
138
|
+
- [FormAPI::Templatesv2TemplateDocument](docs/Templatesv2TemplateDocument.md)
|
139
|
+
- [FormAPI::Templatesv2TemplateDocumentMetadata](docs/Templatesv2TemplateDocumentMetadata.md)
|
129
140
|
- [FormAPI::UpdateDataRequestResponse](docs/UpdateDataRequestResponse.md)
|
130
141
|
- [FormAPI::UpdateSubmissionDataRequestData](docs/UpdateSubmissionDataRequestData.md)
|
131
142
|
|
@@ -1,12 +1,12 @@
|
|
1
|
-
# FormAPI::
|
1
|
+
# FormAPI::CombinePdfsData
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**test** | **BOOLEAN** | | [optional]
|
7
|
-
**
|
8
|
-
**html** | **String** | | [optional]
|
9
|
-
**css** | **String** | | [optional]
|
7
|
+
**source_pdfs** | **Array<Object>** | |
|
10
8
|
**metadata** | **Object** | | [optional]
|
9
|
+
**expires_in** | **Integer** | | [optional]
|
10
|
+
**delete_custom_files** | **BOOLEAN** | | [optional]
|
11
11
|
|
12
12
|
|
data/docs/CombinedSubmission.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
**metadata** | **Object** | | [optional]
|
7
7
|
**expired** | **BOOLEAN** | | [optional]
|
8
8
|
**expires_at** | **String** | | [optional]
|
9
|
+
**source_pdfs** | **Array<Object>** | | [optional]
|
9
10
|
**download_url** | **String** | | [optional]
|
10
11
|
**submission_ids** | **Array<String>** | | [optional]
|
11
12
|
**id** | **String** | | [optional]
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# FormAPI::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
|
+
|
data/docs/CustomFile.md
ADDED
data/docs/PDFApi.md
CHANGED
@@ -6,14 +6,18 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**batch_generate_pdf_v1**](PDFApi.md#batch_generate_pdf_v1) | **POST** /templates/{template_id}/submissions/batch | Generates multiple PDFs
|
8
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
|
9
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
|
10
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
|
11
|
-
[**create_template**](PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template
|
13
|
+
[**create_template**](PDFApi.md#create_template) | **POST** /templates | Upload a new PDF template with a file upload
|
14
|
+
[**create_template_from_upload**](PDFApi.md#create_template_from_upload) | **POST** /templates?v=2 | Create a new PDF template from a cached presign upload
|
12
15
|
[**expire_combined_submission**](PDFApi.md#expire_combined_submission) | **DELETE** /combined_submissions/{combined_submission_id} | Expire a combined submission
|
13
16
|
[**expire_submission**](PDFApi.md#expire_submission) | **DELETE** /submissions/{submission_id} | Expire a PDF submission
|
14
17
|
[**generate_pdf**](PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
|
15
18
|
[**get_combined_submission**](PDFApi.md#get_combined_submission) | **GET** /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs)
|
16
19
|
[**get_data_request**](PDFApi.md#get_data_request) | **GET** /data_requests/{data_request_id} | Look up a submission data request
|
20
|
+
[**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
|
17
21
|
[**get_submission**](PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
|
18
22
|
[**get_submission_batch**](PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
|
19
23
|
[**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
|
@@ -24,7 +28,7 @@ Method | HTTP request | Description
|
|
24
28
|
|
25
29
|
|
26
30
|
# **batch_generate_pdf_v1**
|
27
|
-
> Array<CreateSubmissionResponse> batch_generate_pdf_v1(template_id,
|
31
|
+
> Array<CreateSubmissionResponse> batch_generate_pdf_v1(template_id, request_body)
|
28
32
|
|
29
33
|
Generates multiple PDFs
|
30
34
|
|
@@ -41,11 +45,11 @@ end
|
|
41
45
|
|
42
46
|
api_instance = FormAPI::PDFApi.new
|
43
47
|
template_id = 'tpl_000000000000000001' # String |
|
44
|
-
|
48
|
+
request_body = nil # Array<Object> |
|
45
49
|
|
46
50
|
begin
|
47
51
|
#Generates multiple PDFs
|
48
|
-
result = api_instance.batch_generate_pdf_v1(template_id,
|
52
|
+
result = api_instance.batch_generate_pdf_v1(template_id, request_body)
|
49
53
|
p result
|
50
54
|
rescue FormAPI::ApiError => e
|
51
55
|
puts "Exception when calling PDFApi->batch_generate_pdf_v1: #{e}"
|
@@ -57,7 +61,7 @@ end
|
|
57
61
|
Name | Type | Description | Notes
|
58
62
|
------------- | ------------- | ------------- | -------------
|
59
63
|
**template_id** | **String**| |
|
60
|
-
**
|
64
|
+
**request_body** | [**Array<Object>**](Array.md)| |
|
61
65
|
|
62
66
|
### Return type
|
63
67
|
|
@@ -123,6 +127,55 @@ Name | Type | Description | Notes
|
|
123
127
|
|
124
128
|
|
125
129
|
|
130
|
+
# **combine_pdfs**
|
131
|
+
> CreateCombinedSubmissionResponse combine_pdfs(combine_pdfs_data)
|
132
|
+
|
133
|
+
Merge submission PDFs, template PDFs, or custom files
|
134
|
+
|
135
|
+
### Example
|
136
|
+
```ruby
|
137
|
+
# load the gem
|
138
|
+
require 'form_api'
|
139
|
+
# setup authorization
|
140
|
+
FormAPI.configure do |config|
|
141
|
+
# Configure HTTP basic authorization: api_token_basic
|
142
|
+
config.username = 'YOUR USERNAME'
|
143
|
+
config.password = 'YOUR PASSWORD'
|
144
|
+
end
|
145
|
+
|
146
|
+
api_instance = FormAPI::PDFApi.new
|
147
|
+
combine_pdfs_data = FormAPI::CombinePdfsData.new # CombinePdfsData |
|
148
|
+
|
149
|
+
begin
|
150
|
+
#Merge submission PDFs, template PDFs, or custom files
|
151
|
+
result = api_instance.combine_pdfs(combine_pdfs_data)
|
152
|
+
p result
|
153
|
+
rescue FormAPI::ApiError => e
|
154
|
+
puts "Exception when calling PDFApi->combine_pdfs: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
Name | Type | Description | Notes
|
161
|
+
------------- | ------------- | ------------- | -------------
|
162
|
+
**combine_pdfs_data** | [**CombinePdfsData**](CombinePdfsData.md)| |
|
163
|
+
|
164
|
+
### Return type
|
165
|
+
|
166
|
+
[**CreateCombinedSubmissionResponse**](CreateCombinedSubmissionResponse.md)
|
167
|
+
|
168
|
+
### Authorization
|
169
|
+
|
170
|
+
[api_token_basic](../README.md#api_token_basic)
|
171
|
+
|
172
|
+
### HTTP request headers
|
173
|
+
|
174
|
+
- **Content-Type**: application/json
|
175
|
+
- **Accept**: application/json
|
176
|
+
|
177
|
+
|
178
|
+
|
126
179
|
# **combine_submissions**
|
127
180
|
> CreateCombinedSubmissionResponse combine_submissions(combined_submission_data)
|
128
181
|
|
@@ -172,6 +225,55 @@ Name | Type | Description | Notes
|
|
172
225
|
|
173
226
|
|
174
227
|
|
228
|
+
# **create_custom_file_from_upload**
|
229
|
+
> CreateCustomFileResponse create_custom_file_from_upload(create_custom_file_data)
|
230
|
+
|
231
|
+
Create a new custom file from a cached presign upload
|
232
|
+
|
233
|
+
### Example
|
234
|
+
```ruby
|
235
|
+
# load the gem
|
236
|
+
require 'form_api'
|
237
|
+
# setup authorization
|
238
|
+
FormAPI.configure do |config|
|
239
|
+
# Configure HTTP basic authorization: api_token_basic
|
240
|
+
config.username = 'YOUR USERNAME'
|
241
|
+
config.password = 'YOUR PASSWORD'
|
242
|
+
end
|
243
|
+
|
244
|
+
api_instance = FormAPI::PDFApi.new
|
245
|
+
create_custom_file_data = FormAPI::CreateCustomFileData.new # CreateCustomFileData |
|
246
|
+
|
247
|
+
begin
|
248
|
+
#Create a new custom file from a cached presign upload
|
249
|
+
result = api_instance.create_custom_file_from_upload(create_custom_file_data)
|
250
|
+
p result
|
251
|
+
rescue FormAPI::ApiError => e
|
252
|
+
puts "Exception when calling PDFApi->create_custom_file_from_upload: #{e}"
|
253
|
+
end
|
254
|
+
```
|
255
|
+
|
256
|
+
### Parameters
|
257
|
+
|
258
|
+
Name | Type | Description | Notes
|
259
|
+
------------- | ------------- | ------------- | -------------
|
260
|
+
**create_custom_file_data** | [**CreateCustomFileData**](CreateCustomFileData.md)| |
|
261
|
+
|
262
|
+
### Return type
|
263
|
+
|
264
|
+
[**CreateCustomFileResponse**](CreateCustomFileResponse.md)
|
265
|
+
|
266
|
+
### Authorization
|
267
|
+
|
268
|
+
[api_token_basic](../README.md#api_token_basic)
|
269
|
+
|
270
|
+
### HTTP request headers
|
271
|
+
|
272
|
+
- **Content-Type**: application/json
|
273
|
+
- **Accept**: application/json
|
274
|
+
|
275
|
+
|
276
|
+
|
175
277
|
# **create_data_request_token**
|
176
278
|
> CreateSubmissionDataRequestTokenResponse create_data_request_token(data_request_id)
|
177
279
|
|
@@ -224,7 +326,7 @@ Name | Type | Description | Notes
|
|
224
326
|
# **create_template**
|
225
327
|
> PendingTemplate create_template(template_document, template_name)
|
226
328
|
|
227
|
-
Upload a new PDF template
|
329
|
+
Upload a new PDF template with a file upload
|
228
330
|
|
229
331
|
### Example
|
230
332
|
```ruby
|
@@ -242,7 +344,7 @@ template_document = File.new('/path/to/file') # File |
|
|
242
344
|
template_name = 'template_name_example' # String |
|
243
345
|
|
244
346
|
begin
|
245
|
-
#Upload a new PDF template
|
347
|
+
#Upload a new PDF template with a file upload
|
246
348
|
result = api_instance.create_template(template_document, template_name)
|
247
349
|
p result
|
248
350
|
rescue FormAPI::ApiError => e
|
@@ -272,6 +374,55 @@ Name | Type | Description | Notes
|
|
272
374
|
|
273
375
|
|
274
376
|
|
377
|
+
# **create_template_from_upload**
|
378
|
+
> PendingTemplate create_template_from_upload(create_template_data)
|
379
|
+
|
380
|
+
Create a new PDF template from a cached presign upload
|
381
|
+
|
382
|
+
### Example
|
383
|
+
```ruby
|
384
|
+
# load the gem
|
385
|
+
require 'form_api'
|
386
|
+
# setup authorization
|
387
|
+
FormAPI.configure do |config|
|
388
|
+
# Configure HTTP basic authorization: api_token_basic
|
389
|
+
config.username = 'YOUR USERNAME'
|
390
|
+
config.password = 'YOUR PASSWORD'
|
391
|
+
end
|
392
|
+
|
393
|
+
api_instance = FormAPI::PDFApi.new
|
394
|
+
create_template_data = FormAPI::CreateTemplateData.new # CreateTemplateData |
|
395
|
+
|
396
|
+
begin
|
397
|
+
#Create a new PDF template from a cached presign upload
|
398
|
+
result = api_instance.create_template_from_upload(create_template_data)
|
399
|
+
p result
|
400
|
+
rescue FormAPI::ApiError => e
|
401
|
+
puts "Exception when calling PDFApi->create_template_from_upload: #{e}"
|
402
|
+
end
|
403
|
+
```
|
404
|
+
|
405
|
+
### Parameters
|
406
|
+
|
407
|
+
Name | Type | Description | Notes
|
408
|
+
------------- | ------------- | ------------- | -------------
|
409
|
+
**create_template_data** | [**CreateTemplateData**](CreateTemplateData.md)| |
|
410
|
+
|
411
|
+
### Return type
|
412
|
+
|
413
|
+
[**PendingTemplate**](PendingTemplate.md)
|
414
|
+
|
415
|
+
### Authorization
|
416
|
+
|
417
|
+
[api_token_basic](../README.md#api_token_basic)
|
418
|
+
|
419
|
+
### HTTP request headers
|
420
|
+
|
421
|
+
- **Content-Type**: application/json
|
422
|
+
- **Accept**: application/json
|
423
|
+
|
424
|
+
|
425
|
+
|
275
426
|
# **expire_combined_submission**
|
276
427
|
> CombinedSubmission expire_combined_submission(combined_submission_id)
|
277
428
|
|
@@ -371,7 +522,7 @@ Name | Type | Description | Notes
|
|
371
522
|
|
372
523
|
|
373
524
|
# **generate_pdf**
|
374
|
-
> CreateSubmissionResponse generate_pdf(template_id,
|
525
|
+
> CreateSubmissionResponse generate_pdf(template_id, submission_data)
|
375
526
|
|
376
527
|
Generates a new PDF
|
377
528
|
|
@@ -388,11 +539,11 @@ end
|
|
388
539
|
|
389
540
|
api_instance = FormAPI::PDFApi.new
|
390
541
|
template_id = 'tpl_000000000000000001' # String |
|
391
|
-
|
542
|
+
submission_data = FormAPI::SubmissionData.new # SubmissionData |
|
392
543
|
|
393
544
|
begin
|
394
545
|
#Generates a new PDF
|
395
|
-
result = api_instance.generate_pdf(template_id,
|
546
|
+
result = api_instance.generate_pdf(template_id, submission_data)
|
396
547
|
p result
|
397
548
|
rescue FormAPI::ApiError => e
|
398
549
|
puts "Exception when calling PDFApi->generate_pdf: #{e}"
|
@@ -404,7 +555,7 @@ end
|
|
404
555
|
Name | Type | Description | Notes
|
405
556
|
------------- | ------------- | ------------- | -------------
|
406
557
|
**template_id** | **String**| |
|
407
|
-
**
|
558
|
+
**submission_data** | [**SubmissionData**](SubmissionData.md)| |
|
408
559
|
|
409
560
|
### Return type
|
410
561
|
|
@@ -519,6 +670,51 @@ Name | Type | Description | Notes
|
|
519
670
|
|
520
671
|
|
521
672
|
|
673
|
+
# **get_presign_url**
|
674
|
+
> Hash<String, Object> get_presign_url
|
675
|
+
|
676
|
+
Get a presigned URL so that you can upload a file to our AWS S3 bucket
|
677
|
+
|
678
|
+
### Example
|
679
|
+
```ruby
|
680
|
+
# load the gem
|
681
|
+
require 'form_api'
|
682
|
+
# setup authorization
|
683
|
+
FormAPI.configure do |config|
|
684
|
+
# Configure HTTP basic authorization: api_token_basic
|
685
|
+
config.username = 'YOUR USERNAME'
|
686
|
+
config.password = 'YOUR PASSWORD'
|
687
|
+
end
|
688
|
+
|
689
|
+
api_instance = FormAPI::PDFApi.new
|
690
|
+
|
691
|
+
begin
|
692
|
+
#Get a presigned URL so that you can upload a file to our AWS S3 bucket
|
693
|
+
result = api_instance.get_presign_url
|
694
|
+
p result
|
695
|
+
rescue FormAPI::ApiError => e
|
696
|
+
puts "Exception when calling PDFApi->get_presign_url: #{e}"
|
697
|
+
end
|
698
|
+
```
|
699
|
+
|
700
|
+
### Parameters
|
701
|
+
This endpoint does not need any parameter.
|
702
|
+
|
703
|
+
### Return type
|
704
|
+
|
705
|
+
**Hash<String, Object>**
|
706
|
+
|
707
|
+
### Authorization
|
708
|
+
|
709
|
+
[api_token_basic](../README.md#api_token_basic)
|
710
|
+
|
711
|
+
### HTTP request headers
|
712
|
+
|
713
|
+
- **Content-Type**: Not defined
|
714
|
+
- **Accept**: application/json
|
715
|
+
|
716
|
+
|
717
|
+
|
522
718
|
# **get_submission**
|
523
719
|
> Submission get_submission(submission_id)
|
524
720
|
|
@@ -585,7 +781,7 @@ FormAPI.configure do |config|
|
|
585
781
|
end
|
586
782
|
|
587
783
|
api_instance = FormAPI::PDFApi.new
|
588
|
-
submission_batch_id = '
|
784
|
+
submission_batch_id = 'sbb_000000000000000001' # String |
|
589
785
|
opts = {
|
590
786
|
include_submissions: true # BOOLEAN |
|
591
787
|
}
|