Skip to content

Commit 458d53c

Browse files
garg-muditroot
andauthored
Version 4.6.0-RC1-v2.1-23.4.02.00 release (#273)
Co-authored-by: root <[email protected]>
1 parent 9b73c86 commit 458d53c

16 files changed

+554
-31
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# DocuSign Java Client Changelog
22
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
33

4+
## [v4.6.0-RC1] - eSignature API v2.1-23.4.02.00 - 2024-03-12
5+
### Changed
6+
- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API.
7+
- Updated the SDK release version.
8+
9+
## [v4.6.0-ALPHA1] - eSignature API v2.1-23.4.02.00 - 2024-03-07
10+
### BREAKING CHANGES
11+
- Modified the default basePath to `DEMO_REST_BASEPATH`.
12+
### OTHER CHANGES
13+
- Revised the logic to determine the `oAuthBasePath` based on the `basePath`.
14+
- Added support for version v2.1-23.4.02.00 of the DocuSign ESignature API.
15+
- Updated the SDK release version.
16+
417
## [v4.5.0] - eSignature API v2.1-23.3.01.02 - 2023-10-25
518
### Changed
619
- Added support for version v2.1-23.3.01.02 of the DocuSign ESignature API.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>docusign-esign-java</artifactId>
66
<packaging>jar</packaging>
77
<name>docusign-esign-java</name>
8-
<version>4.5.0</version>
8+
<version>4.6.0-RC1</version>
99
<url>https://developers.docusign.com</url>
1010
<description>The official DocuSign eSignature JAVA client is based on version 2.1 of the DocuSign REST API and provides libraries for JAVA application integration. It is recommended that you use this version of the library for new development.</description>
1111

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

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

src/main/java/com/docusign/esign/api/EnvelopesApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4320,7 +4320,7 @@ public String getLangCode2() {
43204320
* @param accountId The external account number (int) or account ID Guid. (required)
43214321
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43224322
* @param recipientId The ID of the recipient being accessed. (required)
4323-
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
4323+
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
43244324
* @return ConsumerDisclosure
43254325
*/
43264326
public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelopeId, String recipientId, String langCode) throws ApiException {
@@ -4333,7 +4333,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
43334333
* @param accountId The external account number (int) or account ID Guid. (required)
43344334
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43354335
* @param recipientId The ID of the recipient being accessed. (required)
4336-
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
4336+
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
43374337
* @param options for modifying the method behavior.
43384338
* @return ConsumerDisclosure
43394339
* @throws ApiException if fails to make API call
@@ -4349,7 +4349,7 @@ public ConsumerDisclosure getConsumerDisclosure(String accountId, String envelop
43494349
* @param accountId The external account number (int) or account ID Guid. (required)
43504350
* @param envelopeId The envelopeId Guid of the envelope being accessed. (required)
43514351
* @param recipientId The ID of the recipient being accessed. (required)
4352-
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
4352+
* @param langCode The simple type enumeration the language used in the response. The supported languages, with the language value shown in parenthesis, are:Arabic (ar), Armenian (hy), Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Bahasa Indonesia (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Bahasa Melayu (ms), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro), Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi). Additionally, the value can be set to �browser� to automatically detect the browser language being used by the viewer and display the disclosure in that language. (required)
43534353
* @param options for modifying the method behavior.
43544354
* @return ConsumerDisclosure
43554355
* @throws ApiException if fails to make API call

src/main/java/com/docusign/esign/api/UsersApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,7 +2505,7 @@ public String getTransparentPng() {
25052505
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
25062506
* @param signatureId The ID of the signature being accessed. (required)
25072507
* @param imageType One of **signature_image** or **initials_image**. (required)
2508-
* @param imageBytes Image content. (required)
2508+
* @param imageBytes Updated image content. (required)
25092509
* @return UserSignature
25102510
*/
25112511
public UserSignature updateSignatureImage(String accountId, String userId, String signatureId, String imageType, byte[] imageBytes) throws ApiException {
@@ -2519,7 +2519,7 @@ public UserSignature updateSignatureImage(String accountId, String userId, Strin
25192519
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
25202520
* @param signatureId The ID of the signature being accessed. (required)
25212521
* @param imageType One of **signature_image** or **initials_image**. (required)
2522-
* @param imageBytes Image content. (required)
2522+
* @param imageBytes Updated image content. (required)
25232523
* @param options for modifying the method behavior.
25242524
* @return UserSignature
25252525
* @throws ApiException if fails to make API call
@@ -2536,7 +2536,7 @@ public UserSignature updateSignatureImage(String accountId, String userId, Strin
25362536
* @param userId The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. (required)
25372537
* @param signatureId The ID of the signature being accessed. (required)
25382538
* @param imageType One of **signature_image** or **initials_image**. (required)
2539-
* @param imageBytes Image content. (required)
2539+
* @param imageBytes Updated image content. (required)
25402540
* @param options for modifying the method behavior.
25412541
* @return UserSignature
25422542
* @throws ApiException if fails to make API call

src/main/java/com/docusign/esign/client/ApiClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class ApiClient {
6666
/** stage base path. */
6767
public final static String STAGE_REST_BASEPATH = "https://stage.docusign.net/restapi";
6868

69-
private String basePath = PRODUCTION_REST_BASEPATH;
69+
private String basePath = DEMO_REST_BASEPATH;
7070
private String oAuthBasePath = OAuth.PRODUCTION_OAUTH_BASEPATH;
7171
protected boolean debugging = false;
7272
protected int connectionTimeout = 0;
@@ -96,7 +96,7 @@ public ApiClient() {
9696
String javaVersion = System.getProperty("java.version");
9797

9898
// Set default User-Agent.
99-
setUserAgent("/SDK/4.5.0/Java/");
99+
setUserAgent("Swagger-Codegen/v2.1/4.6.0-RC1/Java/" + javaVersion);
100100

101101
// Setup authentications (key: authentication name, value: authentication).
102102
authentications = new HashMap<String, Authentication>();
@@ -630,10 +630,10 @@ public URI getAuthorizationUri(String clientId, java.util.List<String> scopes, S
630630

631631
private void deriveOAuthBasePathFromRestBasePath() {
632632
if (this.basePath == null) { // this case should not happen but just in case
633-
this.oAuthBasePath = OAuth.PRODUCTION_OAUTH_BASEPATH;
634-
} else if (this.basePath.startsWith("https://demo") || this.basePath.startsWith("http://demo")) {
635633
this.oAuthBasePath = OAuth.DEMO_OAUTH_BASEPATH;
636-
} else if (this.basePath.startsWith("https://stage") || this.basePath.startsWith("http://stage")) {
634+
} else if (this.basePath.startsWith("https://demo") || this.basePath.startsWith("http://demo") || this.basePath.startsWith("https://apps-d") || this.basePath.startsWith("http://apps-d")) {
635+
this.oAuthBasePath = OAuth.DEMO_OAUTH_BASEPATH;
636+
} else if (this.basePath.startsWith("https://stage") || this.basePath.startsWith("http://stage") || this.basePath.startsWith("https://apps-s") || this.basePath.startsWith("http://apps-s")) {
637637
this.oAuthBasePath = OAuth.STAGE_OAUTH_BASEPATH;
638638
} else {
639639
this.oAuthBasePath = OAuth.PRODUCTION_OAUTH_BASEPATH;

0 commit comments

Comments
 (0)