Skip to content

Commit 458c54b

Browse files
authored
Merge pull request #15 from docusign/2.0.0-RC1-v2.1-1.4.0
Version 2.0.0-RC1 release
2 parents 6c9f2e5 + 6b1b106 commit 458c54b

File tree

156 files changed

+7935
-426
lines changed

Some content is hidden

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

156 files changed

+7935
-426
lines changed

.swagger-codegen/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.21-SNAPSHOT
1+
2.4.21

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
# DocuSign Admin Java Client Changelog
22
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
33

4+
## [v2.0.0-RC1] - Admin API v2.1-1.4.0 - 2024-08-27
5+
### Breaking Changes
6+
<details>
7+
<summary>API Changes (Click to expand)</summary>
8+
9+
<br/>
10+
<div style="margin-left: 20px;">
11+
12+
Added new query parameter "include_ds_groups" to the API "/v2/organizations/{organizationId}/users":
13+
14+
<h3>Added New APIs for Account Creation</h3>
15+
<li>GET: get subscription details for organization</li>
16+
<li>POST: initiate Create account request</li>
17+
<li>GET: get ongoing process details by org ID</li>
18+
<li>GET: get individual process details by org ID, asset group ID, asset group work ID</li>
19+
20+
21+
</div>
22+
</details>
23+
24+
- Modified the default basePath to `DEMO_REST_BASEPATH`.
25+
- Deprecation of OLTU library: The OLTU library for handling OAuth is no longer used.
26+
27+
### Other Changes
28+
- Revised the logic to determine the `oAuthBasePath` based on the `basePath`.
29+
- Model classes are now serializable.
30+
- Resolved an issue** where setting a default SSL socket for the entire JVM caused unintended side effects.
31+
- **Fixed a memory leak** related to the class loader.
32+
- **Addressed dependency vulnerabilities** in the following libraries:
33+
- `bcprov-jdk18on` updated to version 1.78.1
34+
- `com.fasterxml.jackson.core` updated to version 2.17.1
35+
- `org.json` updated to version 20240303
36+
- `jersey` updated to version 3.1.6
37+
- Upgradation of OWASP for vulnerability check of dependencies.
38+
- Added support for version v2.1-1.4.0 of the DocuSign Admin API.
39+
- Updated the SDK release version.
440
## [v1.3.0] - Admin API v2.1-1.3.0 - 2023-08-14
541
### Changed
642
- Added support for version v2.1-1.3.0 of the DocuSign Admin API.

README.md

Lines changed: 100 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,119 @@
1-
# The Official DocuSign Admin Java Client
1+
# The Official Docusign Admin Java Client SDK
22

33
[![Build status][travis-image]][travis-url]
44
[![Maven Central status][maven-image]][maven-url]
55

6-
## Requirements
7-
8-
- Java 1.9+
9-
- Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
10-
11-
## Compatibility
12-
13-
- Java 1.9+
14-
15-
## Note
6+
The Docusign SDK makes integrating Docusign into your apps and websites a seamless experience.
7+
8+
## Table of Contents
9+
- [Introduction](#introduction)
10+
- [Installation](#installation)
11+
* [Version Information](#versionInformation)
12+
* [Requirements](#requirements)
13+
* [Compatibility](#compatibility)
14+
* [Maven](#maven)
15+
- [Dependencies](#dependencies)
16+
- [API Reference](#apiReference)
17+
- [Code Examples](#codeExamples)
18+
- [OAuth Implementations](#oauthImplementations)
19+
- [Changelog](#changeLog)
20+
- [Support](#support)
21+
- [License](#license)
22+
- [Additional Resources](#additionalResources)
23+
24+
<a id="introduction"></a>
25+
## Introduction
26+
The Docusign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
27+
28+
<a id="installation"></a>
29+
## Installation
30+
This client SDK is provided as open source, which enables you to customize its functionality to suit your particular use case. To do so, download or clone the repository. If the SDK’s given functionality meets your integration needs, or if you’re working through our [code examples](https://developers.docusign.com/docs/admin-api/how-to/) from the [Docusign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below.
1631

17-
This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not
18-
provide out-of-the-box. If you simply want to use the SDK with any of the examples shown in the [Developer Center ](https://developers.docusign.com/docs/admin-api), follow the installation instructions below.
32+
<a id="versionInformation"></a>
33+
### Version Information
34+
- **API version**: v2.1
35+
- **Latest SDK version (Including prerelease)**:
1936

20-
## Installation
37+
<a id="requirements"></a>
38+
## Requirements
39+
* Java 1.9+
40+
* Free [developer account](https://go.docusign.com/o/sandbox/?postActivateUrl=https://developers.docusign.com/)
2141

22-
Note: DocuSign uses **Eclipse** with **Maven** for testing purposes.
42+
<a id="compatibility"></a>
43+
## Compatibility
44+
* Java 1.9+
2345

46+
<a id="maven"></a>
47+
**Note:** Docusign uses Eclipse with Maven for testing purposes.
2448
### Maven:
25-
26-
1. In Eclipse, create a new project by selecting **File** -> **New** -> **Project**.
27-
2. In the **New Project Wizard** , expand **Maven** , then select **Maven Project.**
49+
1. In Eclipse, create a new project by selecting **File > New > Project**.
50+
2. In the New Project Wizard, expand **Maven,** then select **Maven Project.**
2851
3. Leave **Create a simple project** unchecked.
29-
4. Select **Next** , then provide a unique **Group** and **Artifact Id**.
30-
5. In the directory where you've saved your project, open the _pom.xml_ file.
31-
6. In the _pom.xml_ file, locate the **dependencies** node.
32-
7. Add:
33-
34-
```
35-
<dependency>
36-
<groupId>com.docusign</groupId>
37-
<artifactId>docusign-admin-java</artifactId>
38-
<version>1.1.0</version>
39-
</dependency>
40-
```
41-
42-
8. If your project is still open, restart **Eclipse**.
43-
44-
## Dependencies
45-
52+
4. Select **Next,** then provide a unique **groupId** and **artifactId.**
53+
5. In the directory where you've saved your project, open the pom.xml file.
54+
6. In the pom.xml file, locate the `dependencies` node.
55+
7. Add:
56+
```
57+
<dependency>
58+
<groupId>com.docusign</groupId>
59+
<artifactId>docusign-admin-java</artifactId>
60+
<version>2.0.0-RC1</version>
61+
</dependency>
62+
```
63+
8. If your project is still open, restart Eclipse.
64+
65+
<a id="dependencies"></a>
66+
## SDK Dependencies
4667
This client has the following external dependencies:
47-
48-
- io.swagger:swagger-annotations:jar:1.5.17
49-
- org.glassfish.jersey.core:jersey-client:jar:2.29.1
50-
- org.glassfish.jersey.media:jersey-media-multipart:jar:2.29.1
51-
- org.glassfish.jersey.media:jersey-media-json-jackson:2.29.1
52-
- com.fasterxml.jackson.core:jackson-core:jar:2.10.1
53-
- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.1
54-
- com.fasterxml.jackson.core:jackson-databind:2.10.1
55-
- junit:junit:jar:4.12
56-
- com.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
57-
- com.auth0:java-jwt:3.4.1
58-
- org.bouncycastle:bcprov-jdk15on:1.60
59-
60-
## OAuth Implementations
61-
62-
For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [REST API
63-
Authentication Overview](https://developers.docusign.com/docs/admin-api/admin101/auth/) guide located on the [DocuSign Developer Center](https://developers.docusign.com/).
64-
65-
For security purposes, DocuSign recommends using the Authorization Code Grant flow.
66-
68+
* io.swagger.core.v3:swagger-annotations:2.2.8
69+
* org.glassfish.jersey.core:jersey-client:3.1.6
70+
* org.glassfish.jersey.media:jersey-media-multipart:3.1.6
71+
* org.glassfish.jersey.media:jersey-media-json-jackson:3.1.6
72+
* org.glassfish.jersey.inject:jersey-hk2:3.1.6
73+
* com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-base:2.14.2
74+
* com.auth0:java-jwt:3.4.1
75+
* org.bouncycastle:bcprov-jdk18on:1.78.1
76+
* com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.14.2
77+
* com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2
78+
* com.brsanthu:migbase64:2.2
79+
* com.fasterxml.jackson.core:jackson-core:2.17.1
80+
* org.json:json:20240303
81+
82+
83+
<a id="apiReference"></a>
84+
## API Reference
85+
You can refer to the API reference [here](https://developers.docusign.com/docs/admin-api/reference/).
86+
87+
<a id="codeExamples"></a>
88+
## Code examples
89+
Explore our GitHub repository for the [Launcher](https://github.com/docusign/code-examples-java/), a self-executing package housing code examples for the Admin Java SDK. This package showcases several common use cases and their respective source files. Additionally, you can download a version preconfigured for your Docusign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples support both the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) and [JSON Web Token (JWT)](https://developers.docusign.com/platform/auth/jwt/) authentication workflows.
90+
91+
<a id="oauthImplementations"></a>
92+
## OAuth implementations
93+
For details regarding which type of OAuth grant will work best for your Docusign integration, see [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) in the [Docusign Developer Center](https://developers.docusign.com/).
94+
95+
For security purposes, Docusign recommends using the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) flow.
96+
97+
<a id="changeLog"></a>
98+
## Changelog
99+
You can refer to the complete changelog [here](https://github.com/docusign/docusign-admin-java-client/blob/master/CHANGELOG.md).
100+
101+
<a id="support"></a>
67102
## Support
103+
Log issues against this client SDK through GitHub. You can also reach out to us through [Docusign Community](https://community.docusign.com/developer-59) and [Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
68104
69-
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
70-
105+
<a id="license"></a>
71106
## License
107+
The Docusign Admin Java Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-admin-java-client/blob/master/LICENSE).
72108
73-
The DocuSign Java Client is licensed under the [MIT License](https://github.com/docusign/docusign-admin-java-client/blob
74-
/master/LICENSE).
75-
109+
<a id="additionalResources"></a>
110+
### Additional resources
111+
* [Docusign Developer Center](https://developers.docusign.com/)
112+
* [Docusign API on Twitter](https://twitter.com/docusignapi)
113+
* [Docusign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
114+
* [Docusign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
76115
77116
[travis-image]: https://api.travis-ci.com/docusign/docusign-admin-java-client.svg?branch=master
78117
[travis-url]: https://app.travis-ci.com/github/docusign/docusign-admin-java-client
79-
[maven-image]: https://img.shields.io/maven-central/v/com.docusign/docusign-admin-java.svg?style=flat
118+
[maven-image]: https://img.shields.io/maven-central/v/com.docusign/.svg?style=flat
80119
[maven-url]: https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.docusign%22
81-
82-
### Additional Resources
83-
* [DocuSign Developer Center](https://developers.docusign.com)
84-
* [DocuSign API on Twitter](https://twitter.com/docusignapi)
85-
* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
86-
* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)

pom.xml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<artifactId>docusign-admin-java</artifactId>
66
<packaging>jar</packaging>
77
<name>docusign-admin-java</name>
8-
<version>1.3.0</version>
8+
<version>2.0.0-RC1</version>
99
<url>https://developers.docusign.com</url>
10-
<description>The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.</description>
10+
<description>The Docusign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.</description>
1111

1212
<prerequisites>
1313
<maven>2.2.0</maven>
@@ -227,6 +227,21 @@
227227
</execution>
228228
</executions>
229229
</plugin>
230+
<plugin>
231+
<groupId>org.owasp</groupId>
232+
<artifactId>dependency-check-maven</artifactId>
233+
<version>10.0.2</version>
234+
<configuration>
235+
<failBuildOnCVSS>8</failBuildOnCVSS>
236+
</configuration>
237+
<executions>
238+
<execution>
239+
<goals>
240+
<goal>check</goal>
241+
</goals>
242+
</execution>
243+
</executions>
244+
</plugin>
230245
<plugin>
231246
<groupId>org.apache.maven.plugins</groupId>
232247
<artifactId>maven-source-plugin</artifactId>
@@ -341,11 +356,6 @@
341356
<artifactId>jackson-jakarta-rs-base</artifactId>
342357
<version>${jackson-version}</version>
343358
</dependency>
344-
<dependency>
345-
<groupId>org.apache.oltu.oauth2</groupId>
346-
<artifactId>org.apache.oltu.oauth2.client</artifactId>
347-
<version>${oltu-version}</version>
348-
</dependency>
349359
<!-- JWT signing and verifying -->
350360
<dependency>
351361
<groupId>com.auth0</groupId>
@@ -354,8 +364,8 @@
354364
</dependency>
355365
<dependency>
356366
<groupId>org.bouncycastle</groupId>
357-
<artifactId>bcprov-jdk15on</artifactId>
358-
<version>1.69</version>
367+
<artifactId>bcprov-jdk18on</artifactId>
368+
<version>1.78.1</version>
359369
</dependency>
360370
<dependency>
361371
<groupId>com.fasterxml.jackson.dataformat</groupId>
@@ -391,13 +401,28 @@
391401
<artifactId>migbase64</artifactId>
392402
<version>2.2</version>
393403
</dependency>
404+
<dependency>
405+
<groupId>org.junit.jupiter</groupId>
406+
<artifactId>junit-jupiter-api</artifactId>
407+
<version>5.10.2</version>
408+
<scope>test</scope>
409+
</dependency>
410+
<dependency>
411+
<groupId>com.fasterxml.jackson.core</groupId>
412+
<artifactId>jackson-core</artifactId>
413+
<version>2.17.1</version>
414+
</dependency>
415+
<dependency>
416+
<groupId>org.json</groupId>
417+
<artifactId>json</artifactId>
418+
<version>20240303</version>
419+
</dependency>
394420
</dependencies>
395421
<properties>
396422
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
397423
<swagger-core-version>2.2.8</swagger-core-version>
398-
<jersey-version>3.0.9</jersey-version>
424+
<jersey-version>3.1.6</jersey-version>
399425
<jackson-version>2.14.2</jackson-version>
400426
<junit-version>4.13.1</junit-version>
401-
<oltu-version>1.0.2</oltu-version>
402427
</properties>
403428
</project>

src/main/java/com/docusign/admin/api/AccountsApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public ApiResponse<MemberGroupsResponse > getGroupsWithHttpInfo(java.util.UUID o
196196
};
197197
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
198198

199-
String[] localVarAuthNames = new String[] { };
199+
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
200200

201201
GenericType<MemberGroupsResponse> localVarReturnType = new GenericType<MemberGroupsResponse>() {};
202202
MemberGroupsResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
@@ -289,7 +289,7 @@ public ApiResponse<OrganizationsResponse > getOrganizationsWithHttpInfo(Accounts
289289
};
290290
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
291291

292-
String[] localVarAuthNames = new String[] { };
292+
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
293293

294294
GenericType<OrganizationsResponse> localVarReturnType = new GenericType<OrganizationsResponse>() {};
295295
OrganizationsResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
@@ -357,7 +357,7 @@ public ApiResponse<PermissionsResponse > getPermissionsWithHttpInfo(java.util.UU
357357
};
358358
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
359359

360-
String[] localVarAuthNames = new String[] { };
360+
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
361361

362362
GenericType<PermissionsResponse> localVarReturnType = new GenericType<PermissionsResponse>() {};
363363
PermissionsResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
@@ -424,7 +424,7 @@ public ApiResponse<IndividualUserDataRedactionResponse > redactIndividualMembers
424424
};
425425
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
426426

427-
String[] localVarAuthNames = new String[] { };
427+
String[] localVarAuthNames = new String[] { "docusignAccessCode" };
428428

429429
GenericType<IndividualUserDataRedactionResponse> localVarReturnType = new GenericType<IndividualUserDataRedactionResponse>() {};
430430
IndividualUserDataRedactionResponse localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);

0 commit comments

Comments
 (0)