Skip to content

Commit 9583c81

Browse files
committed
Updated on 2021-11-28 11:29:20. Version: 1.4.1
1 parent b15f212 commit 9583c81

30 files changed

+1934
-22
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.4.1 [November 28, 2021]
2+
3+
- Added 'password' parameter to Generate PDF and Combine PDF API endpoints. You can now encrypt each generated PDF with a unique password.
4+
15
### 1.4.0 [May 21, 2021]
26

37
- Fix URI.escape deprecation warning for Ruby 2.7.0

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
docspring (1.4.0)
4+
docspring (1.4.1)
55
ffi (~> 1.0, >= 1.9.24)
66
json (>= 1.8)
77
typhoeus (~> 1.0, >= 1.0.1)
@@ -10,7 +10,7 @@ GEM
1010
remote: https://rubygems.org/
1111
specs:
1212
ZenTest (4.12.0)
13-
addressable (2.7.0)
13+
addressable (2.8.0)
1414
public_suffix (>= 2.0.2, < 5.0)
1515
autotest (4.4.6)
1616
ZenTest (>= 4.4.1)
@@ -77,4 +77,4 @@ DEPENDENCIES
7777
webmock (~> 1.24, >= 1.24.3)
7878

7979
BUNDLED WITH
80-
2.2.11
80+
2.2.29

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DocSpring is a service that helps you fill out and sign PDF templates.
77
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

99
- API version: v1
10-
- Package version: 1.4.0
10+
- Package version: 1.4.1
1111
- Build package: com.docspring.codegen.DocSpringRubyClientCodegen
1212

1313
## Installation
@@ -23,15 +23,15 @@ gem build docspring.gemspec
2323
Then either install the gem locally:
2424

2525
```shell
26-
gem install ./docspring-1.4.0.gem
26+
gem install ./docspring-1.4.1.gem
2727
```
28-
(for development, run `gem install --dev ./docspring-1.4.0.gem` to install the development dependencies)
28+
(for development, run `gem install --dev ./docspring-1.4.1.gem` to install the development dependencies)
2929

3030
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
3131

3232
Finally add this to the Gemfile:
3333

34-
gem 'docspring', '~> 1.4.0'
34+
gem 'docspring', '~> 1.4.1'
3535

3636
### Install from Git
3737

@@ -99,12 +99,15 @@ Class | Method | HTTP request | Description
9999
*DocSpring::PDFApi* | [**generate_pdf**](docs/PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
100100
*DocSpring::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)
101101
*DocSpring::PDFApi* | [**get_data_request**](docs/PDFApi.md#get_data_request) | **GET** /data_requests/{data_request_id} | Look up a submission data request
102+
*DocSpring::PDFApi* | [**get_full_template**](docs/PDFApi.md#get_full_template) | **GET** /templates/{template_id}?full&#x3D;true | Fetch the full template attributes
102103
*DocSpring::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
103104
*DocSpring::PDFApi* | [**get_submission**](docs/PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
104105
*DocSpring::PDFApi* | [**get_submission_batch**](docs/PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
105-
*DocSpring::PDFApi* | [**get_template**](docs/PDFApi.md#get_template) | **GET** /templates/{template_id} | Get a single template
106+
*DocSpring::PDFApi* | [**get_template**](docs/PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
106107
*DocSpring::PDFApi* | [**get_template_schema**](docs/PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
107108
*DocSpring::PDFApi* | [**list_folders**](docs/PDFApi.md#list_folders) | **GET** /folders/ | Get a list of all folders
109+
*DocSpring::PDFApi* | [**list_submissions**](docs/PDFApi.md#list_submissions) | **GET** /submissions | List all submissions
110+
*DocSpring::PDFApi* | [**list_submissions_0**](docs/PDFApi.md#list_submissions_0) | **GET** /templates/{template_id}/submissions | List all submissions for a given template
108111
*DocSpring::PDFApi* | [**list_templates**](docs/PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
109112
*DocSpring::PDFApi* | [**move_folder_to_folder**](docs/PDFApi.md#move_folder_to_folder) | **POST** /folders/{folder_id}/move | Move a folder
110113
*DocSpring::PDFApi* | [**move_template_to_folder**](docs/PDFApi.md#move_template_to_folder) | **POST** /templates/{template_id}/move | Move Template to folder
@@ -143,6 +146,7 @@ Class | Method | HTTP request | Description
143146
- [DocSpring::FoldersFolder](docs/FoldersFolder.md)
144147
- [DocSpring::HtmlTemplateData](docs/HtmlTemplateData.md)
145148
- [DocSpring::InvalidRequest](docs/InvalidRequest.md)
149+
- [DocSpring::ListSubmissionsResponse](docs/ListSubmissionsResponse.md)
146150
- [DocSpring::MoveFolderData](docs/MoveFolderData.md)
147151
- [DocSpring::MoveTemplateData](docs/MoveTemplateData.md)
148152
- [DocSpring::PendingTemplate](docs/PendingTemplate.md)
@@ -155,6 +159,8 @@ Class | Method | HTTP request | Description
155159
- [DocSpring::SubmissionDataBatchRequest](docs/SubmissionDataBatchRequest.md)
156160
- [DocSpring::SubmissionDataRequest](docs/SubmissionDataRequest.md)
157161
- [DocSpring::Template](docs/Template.md)
162+
- [DocSpring::Template1](docs/Template1.md)
163+
- [DocSpring::Template1Defaults](docs/Template1Defaults.md)
158164
- [DocSpring::TemplateData](docs/TemplateData.md)
159165
- [DocSpring::TemplatestemplateIdaddFieldsFields](docs/TemplatestemplateIdaddFieldsFields.md)
160166
- [DocSpring::UpdateDataRequestResponse](docs/UpdateDataRequestResponse.md)

docs/CombinePdfsData.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**delete_custom_files** | **BOOLEAN** | | [optional]
77
**expires_in** | **Integer** | | [optional]
88
**metadata** | **Object** | | [optional]
9+
**password** | **String** | | [optional]
910
**source_pdfs** | **Array&lt;Object&gt;** | |
1011
**test** | **BOOLEAN** | | [optional]
1112

docs/CombinedSubmission.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**metadata** | **Object** | | [optional]
7+
**password** | **String** | | [optional]
78
**expired** | **BOOLEAN** | | [optional]
89
**expires_at** | **String** | | [optional]
910
**source_pdfs** | **Array&lt;Object&gt;** | | [optional]

docs/CombinedSubmissionData.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**expires_in** | **Integer** | | [optional]
77
**metadata** | **Object** | | [optional]
8+
**password** | **String** | | [optional]
89
**submission_ids** | **Array&lt;String&gt;** | |
910
**test** | **BOOLEAN** | | [optional]
1011

docs/ListSubmissionsResponse.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# DocSpring::ListSubmissionsResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**next_cursor** | **String** | | [optional]
7+
**submissions** | [**Array&lt;Submission&gt;**](Submission.md) | | [optional]
8+
**limit** | **Float** | | [optional]
9+
10+

docs/PDFApi.md

Lines changed: 180 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ Method | HTTP request | Description
2222
[**generate_pdf**](PDFApi.md#generate_pdf) | **POST** /templates/{template_id}/submissions | Generates a new PDF
2323
[**get_combined_submission**](PDFApi.md#get_combined_submission) | **GET** /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs)
2424
[**get_data_request**](PDFApi.md#get_data_request) | **GET** /data_requests/{data_request_id} | Look up a submission data request
25+
[**get_full_template**](PDFApi.md#get_full_template) | **GET** /templates/{template_id}?full&#x3D;true | Fetch the full template attributes
2526
[**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
2627
[**get_submission**](PDFApi.md#get_submission) | **GET** /submissions/{submission_id} | Check the status of a PDF
2728
[**get_submission_batch**](PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
28-
[**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Get a single template
29+
[**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
2930
[**get_template_schema**](PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
3031
[**list_folders**](PDFApi.md#list_folders) | **GET** /folders/ | Get a list of all folders
32+
[**list_submissions**](PDFApi.md#list_submissions) | **GET** /submissions | List all submissions
33+
[**list_submissions_0**](PDFApi.md#list_submissions_0) | **GET** /templates/{template_id}/submissions | List all submissions for a given template
3134
[**list_templates**](PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
3235
[**move_folder_to_folder**](PDFApi.md#move_folder_to_folder) | **POST** /folders/{folder_id}/move | Move a folder
3336
[**move_template_to_folder**](PDFApi.md#move_template_to_folder) | **POST** /templates/{template_id}/move | Move Template to folder
@@ -933,6 +936,55 @@ Name | Type | Description | Notes
933936

934937

935938

939+
# **get_full_template**
940+
> Template1 get_full_template(template_id)
941+
942+
Fetch the full template attributes
943+
944+
### Example
945+
```ruby
946+
# load the gem
947+
require 'docspring'
948+
# setup authorization
949+
DocSpring.configure do |config|
950+
# Configure HTTP basic authorization: api_token_basic
951+
config.username = 'YOUR USERNAME'
952+
config.password = 'YOUR PASSWORD'
953+
end
954+
955+
api_instance = DocSpring::PDFApi.new
956+
template_id = 'tpl_000000000000000001' # String |
957+
958+
begin
959+
#Fetch the full template attributes
960+
result = api_instance.get_full_template(template_id)
961+
p result
962+
rescue DocSpring::ApiError => e
963+
puts "Exception when calling PDFApi->get_full_template: #{e}"
964+
end
965+
```
966+
967+
### Parameters
968+
969+
Name | Type | Description | Notes
970+
------------- | ------------- | ------------- | -------------
971+
**template_id** | **String**| |
972+
973+
### Return type
974+
975+
[**Template1**](Template1.md)
976+
977+
### Authorization
978+
979+
[api_token_basic](../README.md#api_token_basic)
980+
981+
### HTTP request headers
982+
983+
- **Content-Type**: Not defined
984+
- **Accept**: application/json
985+
986+
987+
936988
# **get_presign_url**
937989
> Hash&lt;String, Object&gt; get_presign_url
938990
@@ -1087,7 +1139,7 @@ Name | Type | Description | Notes
10871139
# **get_template**
10881140
> Template get_template(template_id)
10891141
1090-
Get a single template
1142+
Check the status of an uploaded template
10911143

10921144
### Example
10931145
```ruby
@@ -1101,10 +1153,10 @@ DocSpring.configure do |config|
11011153
end
11021154

11031155
api_instance = DocSpring::PDFApi.new
1104-
template_id = 'tpl_000000000000000011' # String |
1156+
template_id = 'tpl_000000000000000001' # String |
11051157

11061158
begin
1107-
#Get a single template
1159+
#Check the status of an uploaded template
11081160
result = api_instance.get_template(template_id)
11091161
p result
11101162
rescue DocSpring::ApiError => e
@@ -1233,6 +1285,130 @@ Name | Type | Description | Notes
12331285

12341286

12351287

1288+
# **list_submissions**
1289+
> ListSubmissionsResponse list_submissions(opts)
1290+
1291+
List all submissions
1292+
1293+
### Example
1294+
```ruby
1295+
# load the gem
1296+
require 'docspring'
1297+
# setup authorization
1298+
DocSpring.configure do |config|
1299+
# Configure HTTP basic authorization: api_token_basic
1300+
config.username = 'YOUR USERNAME'
1301+
config.password = 'YOUR PASSWORD'
1302+
end
1303+
1304+
api_instance = DocSpring::PDFApi.new
1305+
opts = {
1306+
cursor: 'sub_list_000012', # String |
1307+
limit: 3, # Float |
1308+
created_after: '2019-01-01T09:00:00-05:00', # String |
1309+
created_before: '2020-01-01T09:00:00-05:00', # String |
1310+
type: 'test', # String |
1311+
include_data: true # BOOLEAN |
1312+
}
1313+
1314+
begin
1315+
#List all submissions
1316+
result = api_instance.list_submissions(opts)
1317+
p result
1318+
rescue DocSpring::ApiError => e
1319+
puts "Exception when calling PDFApi->list_submissions: #{e}"
1320+
end
1321+
```
1322+
1323+
### Parameters
1324+
1325+
Name | Type | Description | Notes
1326+
------------- | ------------- | ------------- | -------------
1327+
**cursor** | **String**| | [optional]
1328+
**limit** | **Float**| | [optional]
1329+
**created_after** | **String**| | [optional]
1330+
**created_before** | **String**| | [optional]
1331+
**type** | **String**| | [optional]
1332+
**include_data** | **BOOLEAN**| | [optional]
1333+
1334+
### Return type
1335+
1336+
[**ListSubmissionsResponse**](ListSubmissionsResponse.md)
1337+
1338+
### Authorization
1339+
1340+
[api_token_basic](../README.md#api_token_basic)
1341+
1342+
### HTTP request headers
1343+
1344+
- **Content-Type**: Not defined
1345+
- **Accept**: application/json
1346+
1347+
1348+
1349+
# **list_submissions_0**
1350+
> ListSubmissionsResponse list_submissions_0(template_id, opts)
1351+
1352+
List all submissions for a given template
1353+
1354+
### Example
1355+
```ruby
1356+
# load the gem
1357+
require 'docspring'
1358+
# setup authorization
1359+
DocSpring.configure do |config|
1360+
# Configure HTTP basic authorization: api_token_basic
1361+
config.username = 'YOUR USERNAME'
1362+
config.password = 'YOUR PASSWORD'
1363+
end
1364+
1365+
api_instance = DocSpring::PDFApi.new
1366+
template_id = 'tpl_000000000000000002' # String |
1367+
opts = {
1368+
cursor: 'cursor_example', # String |
1369+
limit: 3.4, # Float |
1370+
created_after: 'created_after_example', # String |
1371+
created_before: 'created_before_example', # String |
1372+
type: 'type_example', # String |
1373+
include_data: true # BOOLEAN |
1374+
}
1375+
1376+
begin
1377+
#List all submissions for a given template
1378+
result = api_instance.list_submissions_0(template_id, opts)
1379+
p result
1380+
rescue DocSpring::ApiError => e
1381+
puts "Exception when calling PDFApi->list_submissions_0: #{e}"
1382+
end
1383+
```
1384+
1385+
### Parameters
1386+
1387+
Name | Type | Description | Notes
1388+
------------- | ------------- | ------------- | -------------
1389+
**template_id** | **String**| |
1390+
**cursor** | **String**| | [optional]
1391+
**limit** | **Float**| | [optional]
1392+
**created_after** | **String**| | [optional]
1393+
**created_before** | **String**| | [optional]
1394+
**type** | **String**| | [optional]
1395+
**include_data** | **BOOLEAN**| | [optional]
1396+
1397+
### Return type
1398+
1399+
[**ListSubmissionsResponse**](ListSubmissionsResponse.md)
1400+
1401+
### Authorization
1402+
1403+
[api_token_basic](../README.md#api_token_basic)
1404+
1405+
### HTTP request headers
1406+
1407+
- **Content-Type**: Not defined
1408+
- **Accept**: application/json
1409+
1410+
1411+
12361412
# **list_templates**
12371413
> Array&lt;Template&gt; list_templates(opts)
12381414

docs/SubmissionData.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**field_overrides** | **Object** | | [optional]
1010
**html** | **String** | | [optional]
1111
**metadata** | **Object** | | [optional]
12+
**password** | **String** | | [optional]
1213
**test** | **BOOLEAN** | | [optional]
1314

1415

0 commit comments

Comments
 (0)