Skip to content

Commit 2c01734

Browse files
committed
Updated on 2020-11-19 00:04:38. Version: 1.3.1
1 parent 184def7 commit 2c01734

File tree

61 files changed

+300
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+300
-56
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.3.1 [November 19, 2020]
2+
3+
- Added "sort_order" property for Submission Data Requests
4+
15
### 1.3.0 [September 26, 2020]
26

37
- Updated OpenAPI Generator to v3.3.0.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2018 Form Applications Inc.
1+
Copyright © 2018-2020 DocSpring, Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ After the client library is installed/deployed, you can use it in your Maven pro
2626
<dependency>
2727
<groupId>com.docspring</groupId>
2828
<artifactId>DocSpring</artifactId>
29-
<version>1.3.0</version>
29+
<version>1.3.1</version>
3030
<scope>compile</scope>
3131
</dependency>
3232

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.docspring'
5-
version = '1.3.0'
5+
version = '1.3.1'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.docspring",
44
name := "DocSpring",
5-
version := "1.3.0",
5+
version := "1.3.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CopyTemplateData.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# CopyTemplateData
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | | [optional]
8+
**parentFolderId** | **String** | |
9+
10+
11+

docs/MoveTemplateData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**parentFolderId** | **String** | | [optional]
7+
**parentFolderId** | **String** | |
88

99

1010

docs/PdfApi.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Method | HTTP request | Description
99
[**batchGeneratePdfs**](PdfApi.md#batchGeneratePdfs) | **POST** submissions/batches | Generates multiple PDFs
1010
[**combinePdfs**](PdfApi.md#combinePdfs) | **POST** combined_submissions?v&#x3D;2 | Merge submission PDFs, template PDFs, or custom files
1111
[**combineSubmissions**](PdfApi.md#combineSubmissions) | **POST** combined_submissions | Merge generated PDFs together
12+
[**copyTemplate**](PdfApi.md#copyTemplate) | **POST** templates/{template_id}/copy | Copy a Template
1213
[**createCustomFileFromUpload**](PdfApi.md#createCustomFileFromUpload) | **POST** custom_files | Create a new custom file from a cached presign upload
1314
[**createDataRequestToken**](PdfApi.md#createDataRequestToken) | **POST** data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
1415
[**createFolder**](PdfApi.md#createFolder) | **POST** folders/ | Create a folder
@@ -295,6 +296,60 @@ Name | Type | Description | Notes
295296

296297
[api_token_basic](../README.md#api_token_basic)
297298

299+
### HTTP request headers
300+
301+
- **Content-Type**: application/json
302+
- **Accept**: application/json
303+
304+
<a name="copyTemplate"></a>
305+
# **copyTemplate**
306+
> Template copyTemplate(templateId, copyTemplateData)
307+
308+
Copy a Template
309+
310+
### Example
311+
```java
312+
// Import classes:
313+
//import com.docspring.ApiClient;
314+
//import com.docspring.ApiException;
315+
//import com.docspring.Configuration;
316+
//import com.docspring.auth.*;
317+
//import com.docspring.PdfApi;
318+
319+
ApiClient defaultClient = Configuration.getDefaultApiClient();
320+
321+
// Configure HTTP basic authorization: api_token_basic
322+
HttpBasicAuth api_token_basic = (HttpBasicAuth) defaultClient.getAuthentication("api_token_basic");
323+
api_token_basic.setUsername("YOUR USERNAME");
324+
api_token_basic.setPassword("YOUR PASSWORD");
325+
326+
PdfApi apiInstance = new PdfApi();
327+
String templateId = tpl_000000000000000001; // String |
328+
CopyTemplateData copyTemplateData = new CopyTemplateData(); // CopyTemplateData |
329+
try {
330+
Template result = apiInstance.copyTemplate(templateId, copyTemplateData);
331+
System.out.println(result);
332+
} catch (ApiException e) {
333+
System.err.println("Exception when calling PdfApi#copyTemplate");
334+
e.printStackTrace();
335+
}
336+
```
337+
338+
### Parameters
339+
340+
Name | Type | Description | Notes
341+
------------- | ------------- | ------------- | -------------
342+
**templateId** | **String**| |
343+
**copyTemplateData** | [**CopyTemplateData**](CopyTemplateData.md)| |
344+
345+
### Return type
346+
347+
[**Template**](Template.md)
348+
349+
### Authorization
350+
351+
[api_token_basic](../README.md#api_token_basic)
352+
298353
### HTTP request headers
299354

300355
- **Content-Type**: application/json

docs/SubmissionDataRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**name** | **String** | |
99
**email** | **String** | |
1010
**order** | **Integer** | |
11+
**sortOrder** | **Integer** | |
1112
**fields** | **List&lt;String&gt;** | |
1213
**metadata** | **Object** | |
1314
**state** | [**StateEnum**](#StateEnum) | |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>DocSpring</artifactId>
66
<packaging>jar</packaging>
77
<name>DocSpring</name>
8-
<version>1.3.0</version>
8+
<version>1.3.1</version>
99
<url>https://github.com/DocSpring/docspring-java</url>
1010
<description>Java API client for the DocSpring PDF generation service</description>
1111
<scm>

0 commit comments

Comments
 (0)