diff --git a/.gitignore b/.gitignore
index 1a0307b0..8a6cd606 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,28 @@
-node_modules/
-coverage
-.nyc_output/
-*.DS_Store
-auth-info.json
-config.json
-.idea/
-npm-debug.log
-*.class
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
+
+# Package Files #
+*.jar
+*.war
+*.ear
+
+# exclude jar for gradle wrapper
+!gradle/wrapper/*.jar
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+
+# build files
+**/target
target
+.gradle
+build
+*.class
.classpath
.settings
.project
+
+# others
+.idea/
+*.iml
+.DS_Store
\ No newline at end of file
diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore
new file mode 100644
index 00000000..716bcf16
--- /dev/null
+++ b/.swagger-codegen-ignore
@@ -0,0 +1,32 @@
+# Swagger Codegen Ignore
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
+
+# Swagger and Git files
+.swagger-codegen-ignore
+git_push.sh
+
+# Project files
+LICENSE
+gradle*
+build.sbt
+.travis.yml
diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION
new file mode 100644
index 00000000..580ce109
--- /dev/null
+++ b/.swagger-codegen/VERSION
@@ -0,0 +1 @@
+2.4.21-SNAPSHOT
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 7ea808fb..27bab522 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,9 +16,11 @@ notifications:
on_failure: change
jdk:
- - oraclejdk8
- - openjdk7
+ - oraclejdk11
+ - oraclejdk12
+ - oraclejdk13
script: mvn -X clean test
after_failure: "cat /home/travis/build/docusign/docusign-java-client/target/surefire-reports/SdkUnitTests.txt && cat /home/travis/build/docusign/docusign-java-client/target/surefire-reports/TEST-SdkUnitTests.xml"
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57743d17..99af03de 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,45 +1,188 @@
# DocuSign Java Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
+## [v2.23.0] - ESignature API v2-21.3.00.00 - 2021-09-29
+### Changed
+- Added support for version v2-21.3.00.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+### Added
+- SSL certificate chain-of-trust validation. (DCM-5802)
+### Removed
+- Removed Joda dependency.
+
+## [v2.23.0-RC1] - ESignature API v2-21.2.02.00 - 2021-08-30
+### Changed
+- Added support for version v2-21.2.02.00 of the DocuSign ESignature API.
+- Updated the SDK release version.
+
+## [v2.22.0] - eSignature API v2-21.2.00.00 - 2021-07-22
+### Changed
+- Added support for version v2-21.2.00.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.22.0-RC1] - eSignature API v2-21.2.00.00 - 2021-07-09
+### Changed
+- Added support for version v2-21.2.00.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.21.1] - eSignature API v2-21.1.02.00 - 2021-07-07
+### Fixed
+- Issue [`#194`](https://github.com/docusign/docusign-java-client/issues/194): Error Reading Entity from Input Stream. (DCM-5802)
+
+## [v2.21.1-RC1] - eSignature API v2-21.1.02.00 - 2021-05-28
+### Fixed
+- Issue [`#194`](https://github.com/docusign/docusign-java-client/issues/194): Error Reading Entity from Input Stream. (DCM-5802)
+
+## [v2.21.0-RC1] - eSignature API v2-21.1.02.00 - 2021-05-24
+### Removed
+- Removed methods `getAccountSettingsExport`,`getSealProviders` from Accounts.
+- Removed methods `createConnectSecret`,`deleteConnectSecret`,`generateConnectSecret`,`getConnectSecrets` from Connect.
+- Removed methods `completeSignHash`,`getUserInfo`,`healthCheck`,`signHashSessionInfo`,`updateTransaction` from TrustServiceProviders.
+- Removed method `getUserListExport` from Users.
+### Changed
+- Added support for version v2-21.1.02.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.20.0] - eSignature API v2-21.1.01.03 - 2021-04-26
+### Added
+- Added new method `deleteConnectSecret` to connect.
+### Changed
+- Added support for version v2-21.1.01.03 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.20.0-RC1] - eSignature API v2-21.1.01 - 2021-04-13
+### Changed
+- Added support for version v2-21.1.01 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.19.0-RC2] - eSignature API v2-20.4.01 - 2021-01-20
+### Changed
+- Added support for version v2-20.4.01 of the DocuSign eSignature API.
+- Updated the SDK release version.
+### Fixed
+- Expected field name for **Group level** brands resource model is `brandOptions` (as opposed to `brands`). The model name has been renamed to `GroupBrands` (instead of `BrandsResponse`). Setter and Getter methods were also updated. (DCM-4463)
+
+## [v2.18.0] - eSignature API v2-20.3.00 - 2020-09-24
+### Changed
+- Added support for version v2-20.3.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.18.0-RC1] - eSignature API v2-20.3.00 - 2020-09-14
+### Changed
+- Added support for version v2-20.3.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [2.17.0] - Jersey2 with support of DELETE request body - 2020-08-21
+### Changed
+- Upgraded the HTTP client from Jersey1 to Jersey 2. This resulted in a non-breaking change but the dependency list has largely been changed. (DCM-3324)
+- Added support for request body in all DELETE methods. (DCM-4454)
+- Added support for version v2-20.2.02 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [2.17.0-BETA] - Jersey2 with support of DELETE request body - 2020-08-11
+### Changed
+- Upgraded the HTTP client from Jersey1 to Jersey 2. This resulted in a non-breaking change but the dependency list has largely been changed. (DCM-3324)
+- Added support for request body in all DELETE methods. (DCM-4454)
+- Added support for version v2-20.2.02 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [2.16.0-BETA] - Upgrade to Jersey2 - 2020-07-02
+### Changed
+- Upgraded the HTTP client from Jersey1 to Jersey 2. This resulted in a non-breaking change but the dependency list has largely been changed. (DCM-3324)
+- Added support for version v2-20.2.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.15.0] - eSignature API v2-20.1.02 - 2020-06-02
+### Changed
+- Added support for version v2-20.1.02 of the DocuSign eSignature API.
+- Updated the SDK release version.
+
+## [v2.14.0] - eSignature API v2-20.1.00 - 2020-03-30
+### Changed
+- Added support for version v2-20.1.00 of the DocuSign eSignature API.
+- Updated the SDK release version.
+### Fixed
+- POST calls fail on some instances of WebLogic server because of strict Content-Length policy (DCM-3939).
+### Added
+- Added the new property `copyRecipientData` to envelopes. When set to **true**, the information that recipients enter is retained when you clone an envelope. For example, if you resend an envelope that was declined or voided after one or more recipients entered data, that data is retained. Note that the new account UI setting `enableEnvelopeCopyWithData` must be enabled for the account.
+- Added `RecipientIdentityInputOption` and `inputOptions` to `RecipientIdentityVerification`: Reserved for DocuSign.
+
+## [v2.13.0] - eSignature API v2-19.4.01 - 2020-02-03
+### Changed
+- The SDK now supports version 19.4.01 of the DocuSign eSignature v2 API.
+- SDK Release Version updated.
+
+# [v2.13.0-RC2] - eSignature API v2-19.4.01 - 2019-12-31
+### Added
+- TSPs API endpoints
+
+## [v2.13.0-RC1] - eSignature API v2-19.4.01 - 2019-12-26
+### Changed
+- The SDK now supports version 19.4.01 of the DocuSign eSignature v2 API.
+- SDK Release Version updated.
+
+## [v2.12.0] - eSignature API v2-19.2.02 - 2019-10-08
+### Changed
+- The SDK now supports version 19.2.02 of the DocuSign eSignature v2 API.
+- SDK Release Version updated.
+- Changed JDK versions for TravisCI as older versions reached EOL.
+## Fixed
+- Issue [`#55`](https://github.com/docusign/docusign-java-client/issues/55): Unable to revoke OAuth token. (DCM-2926)
+- requestJWTUserToken does not give error response in exception. (DCM-3410)
+
+## [v2.12.0-RC1] - eSignature API v2-19.2.02 - 2019-08-29
+### Changed
+- The SDK now supports version 19.2.02 of the DocuSign eSignature v2 API.
+- SDK Release Version updated.
+## Fixed
+- Issue [`#55`](https://github.com/docusign/docusign-java-client/issues/55): Unable to revoke OAuth token. (DCM-2926)
+- requestJWTUserToken does not give error response in exception. (DCM-3410)
+
+## [v2.11.0] Full support of the Bulk Send API - 2019-06-26
+## Fixed
+- Issue [`#98`](https://github.com/docusign/docusign-java-client/issues/98): 411 Error thrown from BulkEnvelopesAPI updateRecipients call.
+### Removed
+- Removed hardcoded test config values from the test cases. Now getting test config values from the environment variables.
+
## [v2.10.1] - Jackson library patch - 2019-05-23
### Security
- [CVE-2019-12086](https://nvd.nist.gov/vuln/detail/CVE-2019-12086).
## [v2.10.0] - eSignature API v19.1.02 - 2019-05-16
### Changed
-* The SDK now supports version 19.1.02 of the DocuSign eSignature API.
-* SDK Release Version updated.
+- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
+- SDK Release Version updated.
### Added
-* Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
-* Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
-* Added a new *tabGroupLabels* field to all Tabs models
-* Added a new *Witnesses* field to all Recipients models
-* Implemented models for Smart Sections feature
-* Implemented initial support of HMAC for DocuSign Connect
+- Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
+- Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
+- Added a new *tabGroupLabels* field to all Tabs models
+- Added a new *Witnesses* field to all Recipients models
+- Implemented models for Smart Sections feature
+- Implemented initial support of HMAC for DocuSign Connect
### Fixed
-* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
-* A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
-* Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
+- A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
+- A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
+- Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
## [v2.10.0-RC2] - eSignature API v19.1.02 - 2019-05-09
### Fixed
-* A regression bug where the ApiClient authentications member field was locked and prevented writing to it.
+- A regression bug where the ApiClient authentications member field was locked and prevented writing to it.
## [v2.10.0-RC1] - eSignature API v19.1.02 - 2019-05-03
### Changed
-* The SDK now supports version 19.1.02 of the DocuSign eSignature API.
-* SDK Release Version updated.
+- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
+- SDK Release Version updated.
### Added
-* Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
-* Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
-* Added a new *tabGroupLabels* field to all Tabs models
-* Added a new *Witnesses* field to all Recipients models
-* Implemented models for Smart Sections feature
-* Implemented initial support of HMAC for DocuSign Connect
+- Added support for the new http.nonProxyHosts Proxy option, which you can use to indicate hosts that should be accessed without going through a proxy. (DCM-2850)
+- Added new Cache-Control and Pragma headers to OAuth server request calls. (DCM-2242)
+- Added a new *tabGroupLabels* field to all Tabs models
+- Added a new *Witnesses* field to all Recipients models
+- Implemented models for Smart Sections feature
+- Implemented initial support of HMAC for DocuSign Connect
### Fixed
-* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
-* A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
-* Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
+- A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-1403)
+- A bug that could prevent a user from replacing their JWT auth token. (DCM-3209)
+- Removed Gradle references to an insecure/outdated Jackson package. (DCM-3267)
## [v2.9.0] - eSignature API v18.4.02 - 2019-02-27
### Added
diff --git a/README.md b/README.md
index f72a5d7c..6b7ef8cf 100644
--- a/README.md
+++ b/README.md
@@ -1,91 +1,72 @@
-# The Official DocuSign Java Client
+# The Official DocuSign eSignature Java Client SDK
[![Build status][travis-image]][travis-url]
[![Maven Central status][maven-image]][maven-url]
## Requirements
-- Java 1.7+
-- Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
+* Java 1.9+
+* Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
## Compatibility
-- Java 1.7+
-
-## Note
-
-This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not 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/esign-rest-api/code-examples), follow the installation instructions below.
+* Java 1.9+
## Installation
+This 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/esign-rest-api/how-to/) from the [DocuSign Developer Center](https://developers.docusign.com/), you merely need to install it by following the instructions below.
-Note: DocuSign uses **Eclipse** with **Maven** for testing purposes.
+**Note:** DocuSign uses Eclipse with Maven for testing purposes.
### Maven:
-
-1. In Eclipse, create a new project by selecting **File** -> **New** -> **Project**.
-2. In the **New Project Wizard** , expand **Maven** , then select **Maven Project.**
+1. In Eclipse, create a new project by selecting **File > New > Project**.
+2. In the New Project Wizard, expand **Maven,** then select **Maven Project.**
3. Leave **Create a simple project** unchecked.
-4. Select **Next** , then provide a unique **Group** and **Artifact Id**.
-5. In the directory where you've saved your project, open the _pom.xml_ file.
-6. In the _pom.xml_ file, locate the **dependencies** node.
-7. Add:
-
-```
-
- com.docusign
- docusign-esign-java
- 2.10.1
-
-```
-
-8. If your project is still open, restart **Eclipse**.
+4. Select **Next,** then provide a unique **groupId** and **artifactId.**
+5. In the directory where you've saved your project, open the pom.xml file.
+6. In the pom.xml file, locate the `dependencies` node.
+7. Add:
+ ```
+
+ com.docusign
+ docusign-esign-java
+ 2.23.0
+
+ ```
+8. If your project is still open, restart Eclipse.
## Dependencies
-
This client has the following external dependencies:
-- swagger:swagger-annotations:jar:1.5.8
-- sun.jersey:jersey-client:jar:1.19.1
-- sun.jersey.contribs:jersey-multipart:jar:1.19.1
-- fasterxml.jackson.core:jackson-core:jar:2.9.9
-- fasterxml.jackson.core:jackson-annotations:jar:2.9.9
-- fasterxml.jackson.core:jackson-databind:jar:2.9.9
-- fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.9.9
-- fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.1.5
-- joda-time:joda-time:jar:2.9.3
-- brsanthu:migbase64:jar:2.2
-- apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
-- junit:junit:jar:4.12
-
-## Code Examples
-
-### Launchers
+* swagger:swagger-annotations:jar:1.5.8
+* sun.jersey:jersey-client:jar:1.19.1
+* sun.jersey.contribs:jersey-multipart:jar:1.19.1
+* fasterxml.jackson.core:jackson-core:jar:2.12.1
+* fasterxml.jackson.core:jackson-annotations:jar:2.12.1
+* fasterxml.jackson.core:jackson-databind:jar:2.12.1
+* fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.12.1
+* brsanthu:migbase64:jar:2.2
+* apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2
+* junit:junit:jar:4.13.1
-DocuSign provides a sample application referred to as a [Launcher](https://github.com/docusign/eg-03-java-auth-code-grant). The Launcher contains a set of 14 common use cases and associated source files. These examples use DocuSign's [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
+## Code examples
+You can find on our GitHub a self-executing package of code examples for the eSignature Java SDK, called a [Launcher](https://github.com/docusign/code-examples-java/blob/master/README.md), that demonstrates common use cases. You can also download a version preconfigured for your DocuSign developer account from [Quickstart](https://developers.docusign.com/docs/esign-rest-api/quickstart/). These examples can use either the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) or [JSON Web Token (JWT)](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) authentication workflows.
-### Proof-of-concept applications
+## OAuth implementations
+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/).
-If your goal is to create a proof-of-concept application, DocuSign provides a set of [Quick Start](https://github.com/docusign/qs-java) examples. The Quick Start examples are meant to be used with DocuSign's [OAuth Token Generator](https://developers.docusign.com/oauth-token-generator), which will allow you to generate tokens for the Demo/Sandbox environment only. These tokens last for eight hours and will enable you to build your proof-of-concept application without the need to fully implement an OAuth solution.
-
-## OAuth Implementations
-
-For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [REST API Authentication Overview](https://developers.docusign.com/esign-rest-api/guides/authentication) guide located on the [DocuSign Developer Center](https://developers.docusign.com/esign-rest-api/guides/authentication).
-
-For security purposes, DocuSign recommends using the Authorization Code Grant flow.
-
-There are other use-case scenarios, such as **single page applications** (SPA) that use **Cross-Origin Resource Sharing** (CORS), or where there may not be a user to interact with your Service Account. For these use cases, DocuSign also supports [JWT](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) and [Implicit](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-implicit) grants. For code examples, see the links below:
-
-- [JWT (JSON Web Token)](https://github.com/docusign/eg-01-java-jwt)
-- Implicit Grant (coming soon)
+For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
## Support
-
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
## License
+The DocuSign eSignature Java Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-java-client/blob/master/LICENSE).
-The DocuSign Java Client is licensed under the [MIT License](https://github.com/docusign/docusign-java-client/blob/master/LICENSE).
-
+### Additional resources
+* [DocuSign Developer Center](https://developers.docusign.com/)
+* [DocuSign API on Twitter](https://twitter.com/docusignapi)
+* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
+* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
[travis-image]: https://img.shields.io/travis/docusign/docusign-java-client.svg?style=flat
[travis-url]: https://travis-ci.org/docusign/docusign-java-client
diff --git a/build.gradle b/build.gradle
index 5547fe38..1b80f714 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,15 +2,15 @@ apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'com.docusign'
-version = '2.10.1'
+version = '2.23.0'
buildscript {
repositories {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:1.2.2'
- classpath 'com.github.dcendents:android-maven-plugin:1.2'
+ classpath 'com.android.tools.build:gradle:2.3.+'
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'ch.raffael.pegdown-doclet:pegdown-doclet:1.3'
}
}
@@ -25,19 +25,19 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
-
+
android {
- compileSdkVersion 22
- buildToolsVersion '22.0.0'
+ compileSdkVersion 25
+ buildToolsVersion '25.0.2'
defaultConfig {
minSdkVersion 14
- targetSdkVersion 22
+ targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
-
+
// Rename the aar correctly
libraryVariants.all { variant ->
variant.outputs.each { output ->
@@ -53,7 +53,7 @@ if(hasProperty('target') && target == 'android') {
provided 'javax.annotation:jsr250-api:1.0'
}
}
-
+
afterEvaluate {
android.libraryVariants.all { variant ->
def task = project.tasks.create "jar${variant.name.capitalize()}", Jar
@@ -65,12 +65,12 @@ if(hasProperty('target') && target == 'android') {
artifacts.add('archives', task);
}
}
-
+
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
-
+
artifacts {
archives sourcesJar
}
@@ -79,20 +79,35 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'
-
+
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
-
+
install {
repositories.mavenInstaller {
pom.artifactId = 'docusign-esign-java'
}
}
-
+
task execute(type:JavaExec) {
main = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
+
+ task sourcesJar(type: Jar, dependsOn: classes) {
+ classifier = 'sources'
+ from sourceSets.main.allSource
+ }
+
+ task javadocJar(type: Jar, dependsOn: javadoc) {
+ classifier = 'javadoc'
+ from javadoc.destinationDir
+ }
+
+ artifacts {
+ archives sourcesJar
+ archives javadocJar
+ }
}
task getDeps(type: Copy) {
@@ -101,10 +116,9 @@ task getDeps(type: Copy) {
}
ext {
- swagger_annotations_version = "1.5.8"
- jackson_version = "2.9.9"
- jersey_version = "1.19.1"
- jodatime_version = "2.9.3"
+ swagger_annotations_version = "1.5.17"
+ jackson_version = "2.10.1"
+ jersey_version = "2.29.1"
junit_version = "4.12"
oltu_version = "1.0.2"
jwt_version = "3.4.1"
@@ -113,17 +127,16 @@ ext {
dependencies {
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
- compile "com.sun.jersey:jersey-client:$jersey_version"
- compile "com.sun.jersey.contribs:jersey-multipart:$jersey_version"
+ compile "org.glassfish.jersey.core:jersey-client:$jersey_version"
+ compile "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
+ compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
- compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
- compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:2.1.5"
- compile "joda-time:joda-time:$jodatime_version"
compile "com.brsanthu:migbase64:2.2"
- compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
testCompile "junit:junit:$junit_version"
+ compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
compile "com.auth0:java-jwt:$jwt_version"
compile "org.bouncycastle:bcprov-jdk15on:$bouncy_version"
}
+
diff --git a/checkstyle.xml b/checkstyle.xml
new file mode 100644
index 00000000..ab167882
--- /dev/null
+++ b/checkstyle.xml
@@ -0,0 +1,328 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
deleted file mode 100644
index 05644f07..00000000
--- a/gradle.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-# Uncomment to build for Android
-#target = android
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 9f6f22a9..fa090fb8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,9 +4,9 @@
docusign-esign-javajardocusign-esign-java
- 2.10.1
+ 2.23.0The official DocuSign eSignature JAVA client is based on version 2 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.
- https://www.docusign.com/developer-center
+ https://developers.docusign.com2.2.0
@@ -100,7 +100,7 @@
org.apache.maven.pluginsmaven-javadoc-plugin
- 2.10.4
+ 3.1.0attach-javadocs
@@ -109,6 +109,11 @@
+
+
+ -Xdoclint:none
+
+
@@ -162,8 +167,8 @@
maven-compiler-plugin2.3.2
- 1.7
- 1.7
+ 11
+ 11
@@ -181,7 +186,7 @@
DocuSign Developer Centerdevcenter@docusign.comDocuSign
- https://www.docusign.com/developer-center
+ https://developers.docusign.com
@@ -192,101 +197,96 @@
-
- io.swagger
- swagger-annotations
- ${swagger-annotations-version}
-
-
-
-
- com.sun.jersey
- jersey-client
- ${jersey-version}
-
-
- com.sun.jersey.contribs
- jersey-multipart
- ${jersey-version}
-
-
-
-
- com.fasterxml.jackson.core
- jackson-core
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-annotations
- ${jackson-version}
-
-
- com.fasterxml.jackson.core
- jackson-databind
- ${jackson-version}
-
-
- com.fasterxml.jackson.jaxrs
- jackson-jaxrs-json-provider
- ${jackson-version}
-
-
- com.fasterxml.jackson.dataformat
- jackson-dataformat-csv
- ${jackson-version}
-
-
- com.fasterxml.jackson.datatype
- jackson-datatype-joda
- 2.1.5
-
-
- joda-time
- joda-time
- ${jodatime-version}
-
-
- org.apache.oltu.oauth2
- org.apache.oltu.oauth2.client
- ${oltu-version}
-
-
-
-
- com.auth0
- java-jwt
- 3.4.1
-
-
- org.bouncycastle
- bcprov-jdk15on
- 1.60
-
-
-
-
- com.brsanthu
- migbase64
- 2.2
-
+
+ io.swagger
+ swagger-annotations
+ ${swagger-core-version}
+
-
-
- junit
- junit
- ${junit-version}
- test
-
-
-
- UTF-8
- 1.5.8
- 1.19.1
- 2.9.9
- 2.9.3
- 1.0.0
- 4.12
- 1.0.2
-
+
+
+ org.glassfish.jersey.core
+ jersey-client
+ ${jersey-version}
+
+
+ org.glassfish.jersey.media
+ jersey-media-multipart
+ ${jersey-version}
+
+
+ org.glassfish.jersey.media
+ jersey-media-json-jackson
+ ${jersey-version}
+
+
+ org.glassfish.jersey.inject
+ jersey-hk2
+ ${jersey-version}
+
+
+
+ com.fasterxml.jackson.core
+ jackson-core
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-annotations
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ ${jackson-version}
+
+
+ com.fasterxml.jackson.jaxrs
+ jackson-jaxrs-json-provider
+ ${jackson-version}
+
+
+ org.apache.oltu.oauth2
+ org.apache.oltu.oauth2.client
+ ${oltu-version}
+
+
+
+ com.auth0
+ java-jwt
+ 3.4.1
+
+
+ org.bouncycastle
+ bcprov-jdk15on
+ 1.60
+
+
+ com.fasterxml.jackson.dataformat
+ jackson-dataformat-csv
+ ${jackson-version}
+
+
+
+ com.brsanthu
+ migbase64
+ 2.2
+
+
+
+ junit
+ junit
+ ${junit-version}
+ test
+
+
+
+ UTF-8
+ 1.5.18
+ 2.29.1
+ 2.12.1
+ 1.0.0
+ 4.13.1
+ 1.0.2
+
diff --git a/src/main/java/com/docusign/esign/api/AccountsApi.java b/src/main/java/com/docusign/esign/api/AccountsApi.java
index 71b126c4..f4519f9c 100644
--- a/src/main/java/com/docusign/esign/api/AccountsApi.java
+++ b/src/main/java/com/docusign/esign/api/AccountsApi.java
@@ -1,85 +1,88 @@
+
package com.docusign.esign.api;
-import com.sun.jersey.api.client.GenericType;
+import javax.ws.rs.core.GenericType;
import com.docusign.esign.client.ApiException;
import com.docusign.esign.client.ApiClient;
import com.docusign.esign.client.Configuration;
+import com.docusign.esign.model.*;
import com.docusign.esign.client.Pair;
-import com.docusign.esign.model.AccountIdentityVerificationResponse;
-import com.docusign.esign.model.AccountInformation;
-import com.docusign.esign.model.AccountPasswordRules;
-import com.docusign.esign.model.AccountSettingsInformation;
-import com.docusign.esign.model.AccountSharedAccess;
-import com.docusign.esign.model.AccountSignatureProviders;
-import com.docusign.esign.model.BillingChargeResponse;
-import com.docusign.esign.model.Brand;
-import com.docusign.esign.model.BrandResources;
-import com.docusign.esign.model.BrandResourcesList;
-import com.docusign.esign.model.BrandsRequest;
-import com.docusign.esign.model.BrandsResponse;
-import com.docusign.esign.model.CaptiveRecipientInformation;
-import com.docusign.esign.model.ConsumerDisclosure;
-import com.docusign.esign.model.CustomField;
-import com.docusign.esign.model.CustomFields;
-import com.docusign.esign.model.ENoteConfiguration;
-import com.docusign.esign.model.ErrorDetails;
-import com.docusign.esign.model.FileTypeList;
-import com.docusign.esign.model.NewAccountDefinition;
-import com.docusign.esign.model.NewAccountSummary;
-import com.docusign.esign.model.PaymentGatewayAccountsInfo;
-import com.docusign.esign.model.PermissionProfile;
-import com.docusign.esign.model.PermissionProfileInformation;
-import com.docusign.esign.model.ProvisioningInformation;
-import com.docusign.esign.model.RecipientNamesResponse;
-import com.docusign.esign.model.SupportedLanguages;
-import com.docusign.esign.model.TabAccountSettings;
-import com.docusign.esign.model.UserPasswordRules;
-import com.docusign.esign.model.Watermark;
-
-
-
-
- public class AccountsApi {
+
+
+
+/**
+ * AccountsApi class.
+ *
+ **/
+public class AccountsApi {
private ApiClient apiClient;
+ /**
+ * AccountsApi.
+ *
+ **/
public AccountsApi() {
- this(Configuration.getDefaultApiClient());
+ this(Configuration.getDefaultApiClient());
}
+ /**
+ * AccountsApi.
+ *
+ **/
public AccountsApi(ApiClient apiClient) {
- this.apiClient = apiClient;
+ this.apiClient = apiClient;
}
+ /**
+ * getApiClient Method.
+ *
+ * @return ApiClient
+ **/
public ApiClient getApiClient() {
- return apiClient;
+ return apiClient;
}
+ /**
+ * setApiClient Method.
+ *
+ **/
public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
+ this.apiClient = apiClient;
}
///
/// Creates new accounts. Creates new DocuSign service accounts. This is used to create multiple DocuSign accounts with one call. It uses the same information and formats as the normal a [Accounts:create](accounts_create) call with the information included within a `newAccountRequests` element. A maximum of 100 new accounts can be created at one time. Note that the structure of the XML request is slightly different than the JSON request, in that the new account information is included in a `newAccountDefinition` property inside the `newAccountRequests` element. Response The response returns the new account ID, password and the default user information for each newly created account. A 201 code is returned if the call succeeded. While the call may have succeed, some of the individual account requests may have failed. In the case of failures to create the account, an `errorDetails` node is added in the response to each specific request that failed.
///
+
+ /**
+ * CreateOptions Class.
+ *
+ **/
public class CreateOptions
{
private String previewBillingPlan = null;
- /*
- * When set to **true**, creates the account using a preview billing plan.
- */
+
+ /**
+ * setPreviewBillingPlan method.
+ */
public void setPreviewBillingPlan(String previewBillingPlan) {
this.previewBillingPlan = previewBillingPlan;
}
-
+
+ /**
+ * getPreviewBillingPlan method.
+ *
+ * @return String
+ */
public String getPreviewBillingPlan() {
return this.previewBillingPlan;
}
}
/**
- * Creates new accounts.
+ * Creates new accounts..
* Creates new DocuSign service accounts. This is used to create multiple DocuSign accounts with one call. It uses the same information and formats as the normal a [Accounts:create](accounts_create) call with the information included within a `newAccountRequests` element. A maximum of 100 new accounts can be created at one time. Note that the structure of the XML request is slightly different than the JSON request, in that the new account information is included in a `newAccountDefinition` property inside the `newAccountRequests` element. Response The response returns the new account ID, password and the default user information for each newly created account. A 201 code is returned if the call succeeded. While the call may have succeed, some of the individual account requests may have failed. In the case of failures to create the account, an `errorDetails` node is added in the response to each specific request that failed.
* @param newAccountDefinition (optional)
* @return NewAccountSummary
@@ -89,7 +92,7 @@ public NewAccountSummary create(NewAccountDefinition newAccountDefinition) throw
}
/**
- * Creates new accounts.
+ * Creates new accounts..
* Creates new DocuSign service accounts. This is used to create multiple DocuSign accounts with one call. It uses the same information and formats as the normal a [Accounts:create](accounts_create) call with the information included within a `newAccountRequests` element. A maximum of 100 new accounts can be created at one time. Note that the structure of the XML request is slightly different than the JSON request, in that the new account information is included in a `newAccountDefinition` property inside the `newAccountRequests` element. Response The response returns the new account ID, password and the default user information for each newly created account. A 201 code is returned if the call succeeded. While the call may have succeed, some of the individual account requests may have failed. In the case of failures to create the account, an `errorDetails` node is added in the response to each specific request that failed.
* @param newAccountDefinition (optional)
* @param options for modifying the method behavior.
@@ -100,38 +103,42 @@ public NewAccountSummary create(NewAccountDefinition newAccountDefinition, Accou
Object localVarPostBody = newAccountDefinition;
// create path and map variables
- String localVarPath = "/v2/accounts".replaceAll("\\{format\\}","json");
+ String localVarPath = "/v2/accounts";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "preview_billing_plan", options.previewBillingPlan));
+ localVarQueryParams.addAll(apiClient.parameterToPair("preview_billing_plan", options.previewBillingPlan));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Creates one or more brand profile files for the account.
+ * Creates one or more brand profile files for the account..
* Creates one or more brand profile files for the account. The Account Branding feature (accountSettings properties `canSelfBrandSend` and `canSelfBrandSig`) must be set to **true** for the account to use this call. An error is returned if `brandId` property for a brand profile is already set for the account. To upload a new version of an existing brand profile, you must delete the profile and then upload the newer version. When brand profile files are being uploaded, they must be combined into one zip file and the `Content-Type` must be `application/zip`.
- * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param accountId The external account number (int) or account id GUID. (required)
* @param brand (optional)
* @return BrandsResponse
* @throws ApiException if fails to make API call
@@ -139,58 +146,73 @@ public NewAccountSummary create(NewAccountDefinition newAccountDefinition, Accou
public BrandsResponse createBrand(String accountId, Brand brand) throws ApiException {
Object localVarPostBody = brand;
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling createBrand");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Creates an acount custom field.
///
+
+ /**
+ * CreateCustomFieldOptions Class.
+ *
+ **/
public class CreateCustomFieldOptions
{
private String applyToTemplates = null;
- /*
- *
- */
+
+ /**
+ * setApplyToTemplates method.
+ */
public void setApplyToTemplates(String applyToTemplates) {
this.applyToTemplates = applyToTemplates;
}
-
+
+ /**
+ * getApplyToTemplates method.
+ *
+ * @return String
+ */
public String getApplyToTemplates() {
return this.applyToTemplates;
}
}
/**
- * Creates an acount custom field.
+ * Creates an acount custom field..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param customField (optional)
@@ -201,7 +223,7 @@ public CustomFields createCustomField(String accountId, CustomField customField)
}
/**
- * Creates an acount custom field.
+ * Creates an acount custom field..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param customField (optional)
@@ -212,60 +234,75 @@ public CustomFields createCustomField(String accountId, CustomField customField)
public CustomFields createCustomField(String accountId, CustomField customField, AccountsApi.CreateCustomFieldOptions options) throws ApiException {
Object localVarPostBody = customField;
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling createCustomField");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/custom_fields".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/custom_fields"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "apply_to_templates", options.applyToTemplates));
+ localVarQueryParams.addAll(apiClient.parameterToPair("apply_to_templates", options.applyToTemplates));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Creates a new permission profile in the specified account.
///
+
+ /**
+ * CreatePermissionProfileOptions Class.
+ *
+ **/
public class CreatePermissionProfileOptions
{
private String include = null;
- /*
- *
- */
+
+ /**
+ * setInclude method.
+ */
public void setInclude(String include) {
this.include = include;
}
-
+
+ /**
+ * getInclude method.
+ *
+ * @return String
+ */
public String getInclude() {
return this.include;
}
}
/**
- * Creates a new permission profile in the specified account.
+ * Creates a new permission profile in the specified account..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param permissionProfile (optional)
@@ -276,7 +313,7 @@ public PermissionProfile createPermissionProfile(String accountId, PermissionPro
}
/**
- * Creates a new permission profile in the specified account.
+ * Creates a new permission profile in the specified account..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param permissionProfile (optional)
@@ -287,43 +324,47 @@ public PermissionProfile createPermissionProfile(String accountId, PermissionPro
public PermissionProfile createPermissionProfile(String accountId, PermissionProfile permissionProfile, AccountsApi.CreatePermissionProfileOptions options) throws ApiException {
Object localVarPostBody = permissionProfile;
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling createPermissionProfile");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/permission_profiles".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/permission_profiles"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include", options.include));
+ localVarQueryParams.addAll(apiClient.parameterToPair("include", options.include));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Deletes the specified account.
+ * Deletes the specified account..
* This closes the specified account. You must be an account admin to close your account. Once closed, an account must be reopened by DocuSign.
* @param accountId The external account number (int) or account ID Guid. (required)
* @throws ApiException if fails to make API call
@@ -331,41 +372,45 @@ public PermissionProfile createPermissionProfile(String accountId, PermissionPro
public void delete(String accountId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling delete");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Removes a brand.
+ * Removes a brand..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -374,47 +419,51 @@ public void delete(String accountId) throws ApiException {
public void deleteBrand(String accountId, String brandId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteBrand");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling deleteBrand");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Delete one branding logo.
+ * Delete one branding logo..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -424,53 +473,57 @@ public void deleteBrand(String accountId, String brandId) throws ApiException {
public void deleteBrandLogoByType(String accountId, String brandId, String logoType) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteBrandLogoByType");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling deleteBrandLogoByType");
- }
+ }
- // verify the required parameter 'logoType' is set
- if (logoType == null) {
+ // verify the required parameter 'logoType' is set
+ if (logoType == null) {
throw new ApiException(400, "Missing the required parameter 'logoType' when calling deleteBrandLogoByType");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/logos/{logoType}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/logos/{logoType}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()))
.replaceAll("\\{" + "logoType" + "\\}", apiClient.escapeString(logoType.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Deletes one or more brand profiles.
+ * Deletes one or more brand profiles..
* Deletes one or more brand profiles from an account. The Account Branding feature (accountSettings properties `canSelfBrandSend` and `canSelfBrandSend`) must be set to **true** to use this call.
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandsRequest (optional)
@@ -480,41 +533,45 @@ public void deleteBrandLogoByType(String accountId, String brandId, String logoT
public BrandsResponse deleteBrands(String accountId, BrandsRequest brandsRequest) throws ApiException {
Object localVarPostBody = brandsRequest;
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteBrands");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Deletes the signature for one or more captive recipient records.
+ * Deletes the signature for one or more captive recipient records..
* Deletes the signature for one or more captive recipient records; it is primarily used for testing. This provides a way to reset the signature associated with a client user ID so that a new signature can be created the next time the client user ID is used.
* @param accountId The external account number (int) or account ID Guid. (required)
* @param recipientPart (required)
@@ -525,75 +582,89 @@ public BrandsResponse deleteBrands(String accountId, BrandsRequest brandsRequest
public CaptiveRecipientInformation deleteCaptiveRecipient(String accountId, String recipientPart, CaptiveRecipientInformation captiveRecipientInformation) throws ApiException {
Object localVarPostBody = captiveRecipientInformation;
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteCaptiveRecipient");
- }
+ }
- // verify the required parameter 'recipientPart' is set
- if (recipientPart == null) {
+ // verify the required parameter 'recipientPart' is set
+ if (recipientPart == null) {
throw new ApiException(400, "Missing the required parameter 'recipientPart' when calling deleteCaptiveRecipient");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/captive_recipients/{recipientPart}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/captive_recipients/{recipientPart}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "recipientPart" + "\\}", apiClient.escapeString(recipientPart.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Delete an existing account custom field.
///
+
+ /**
+ * DeleteCustomFieldOptions Class.
+ *
+ **/
public class DeleteCustomFieldOptions
{
private String applyToTemplates = null;
- /*
- *
- */
+
+ /**
+ * setApplyToTemplates method.
+ */
public void setApplyToTemplates(String applyToTemplates) {
this.applyToTemplates = applyToTemplates;
}
-
+
+ /**
+ * getApplyToTemplates method.
+ *
+ * @return String
+ */
public String getApplyToTemplates() {
return this.applyToTemplates;
}
}
/**
- * Delete an existing account custom field.
+ * Delete an existing account custom field..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param customFieldId (required)
- * @return void
*/
public void deleteCustomField(String accountId, String customFieldId) throws ApiException {
deleteCustomField(accountId, customFieldId, null);
}
/**
- * Delete an existing account custom field.
+ * Delete an existing account custom field..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param customFieldId (required)
@@ -603,49 +674,53 @@ public void deleteCustomField(String accountId, String customFieldId) throws Api
public void deleteCustomField(String accountId, String customFieldId, AccountsApi.DeleteCustomFieldOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteCustomField");
- }
+ }
- // verify the required parameter 'customFieldId' is set
- if (customFieldId == null) {
+ // verify the required parameter 'customFieldId' is set
+ if (customFieldId == null) {
throw new ApiException(400, "Missing the required parameter 'customFieldId' when calling deleteCustomField");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/custom_fields/{customFieldId}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/custom_fields/{customFieldId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "customFieldId" + "\\}", apiClient.escapeString(customFieldId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "apply_to_templates", options.applyToTemplates));
+ localVarQueryParams.addAll(apiClient.parameterToPair("apply_to_templates", options.applyToTemplates));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Deletes configuration information for the eNote eOriginal integration.
+ * Deletes configuration information for the eNote eOriginal integration..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @throws ApiException if fails to make API call
@@ -653,90 +728,139 @@ public void deleteCustomField(String accountId, String customFieldId, AccountsAp
public void deleteENoteConfiguration(String accountId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deleteENoteConfiguration");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/settings/enote_configuration".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/settings/enote_configuration"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
+ ///
+ /// Deletes a permissions profile within the specified account.
+ ///
+
+ /**
+ * DeletePermissionProfileOptions Class.
+ *
+ **/
+ public class DeletePermissionProfileOptions
+ {
+ private String moveUsersTo = null;
+
+ /**
+ * setMoveUsersTo method.
+ */
+ public void setMoveUsersTo(String moveUsersTo) {
+ this.moveUsersTo = moveUsersTo;
+ }
+
+ /**
+ * getMoveUsersTo method.
+ *
+ * @return String
+ */
+ public String getMoveUsersTo() {
+ return this.moveUsersTo;
+ }
+ }
+
+ /**
+ * Deletes a permissions profile within the specified account..
+ *
+ * @param accountId The external account number (int) or account ID Guid. (required)
+ * @param permissionProfileId (required)
+ */
+ public void deletePermissionProfile(String accountId, String permissionProfileId) throws ApiException {
+ deletePermissionProfile(accountId, permissionProfileId, null);
+ }
/**
- * Deletes a permissions profile within the specified account.
+ * Deletes a permissions profile within the specified account..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param permissionProfileId (required)
+ * @param options for modifying the method behavior.
* @throws ApiException if fails to make API call
*/
- public void deletePermissionProfile(String accountId, String permissionProfileId) throws ApiException {
+ public void deletePermissionProfile(String accountId, String permissionProfileId, AccountsApi.DeletePermissionProfileOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling deletePermissionProfile");
- }
+ }
- // verify the required parameter 'permissionProfileId' is set
- if (permissionProfileId == null) {
+ // verify the required parameter 'permissionProfileId' is set
+ if (permissionProfileId == null) {
throw new ApiException(400, "Missing the required parameter 'permissionProfileId' when calling deletePermissionProfile");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/permission_profiles/{permissionProfileId}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/permission_profiles/{permissionProfileId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "permissionProfileId" + "\\}", apiClient.escapeString(permissionProfileId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+ if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("move_users_to", options.moveUsersTo));
+ }
+
-
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+
+ apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Get the list of identity verification options for an account
+ * Get the list of identity verification options for an account.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @return AccountIdentityVerificationResponse
@@ -745,58 +869,73 @@ public void deletePermissionProfile(String accountId, String permissionProfileId
public AccountIdentityVerificationResponse getAccountIdentityVerification(String accountId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountIdentityVerification");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/identity_verification".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/identity_verification"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Retrieves the account information for the specified account. Retrieves the account information for the specified account. **Response** The `canUpgrade` property contains is a Boolean that indicates whether the account can be upgraded through the API.
///
+
+ /**
+ * GetAccountInformationOptions Class.
+ *
+ **/
public class GetAccountInformationOptions
{
private String includeAccountSettings = null;
- /*
- * When set to **true**, includes the account settings for the account in the response.
- */
+
+ /**
+ * setIncludeAccountSettings method.
+ */
public void setIncludeAccountSettings(String includeAccountSettings) {
this.includeAccountSettings = includeAccountSettings;
}
-
+
+ /**
+ * getIncludeAccountSettings method.
+ *
+ * @return String
+ */
public String getIncludeAccountSettings() {
return this.includeAccountSettings;
}
}
/**
- * Retrieves the account information for the specified account.
+ * Retrieves the account information for the specified account..
* Retrieves the account information for the specified account. **Response** The `canUpgrade` property contains is a Boolean that indicates whether the account can be upgraded through the API.
* @param accountId The external account number (int) or account ID Guid. (required)
* @return AccountInformation
@@ -806,7 +945,7 @@ public AccountInformation getAccountInformation(String accountId) throws ApiExce
}
/**
- * Retrieves the account information for the specified account.
+ * Retrieves the account information for the specified account..
* Retrieves the account information for the specified account. **Response** The `canUpgrade` property contains is a Boolean that indicates whether the account can be upgraded through the API.
* @param accountId The external account number (int) or account ID Guid. (required)
* @param options for modifying the method behavior.
@@ -816,43 +955,47 @@ public AccountInformation getAccountInformation(String accountId) throws ApiExce
public AccountInformation getAccountInformation(String accountId, AccountsApi.GetAccountInformationOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountInformation");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_account_settings", options.includeAccountSettings));
+ localVarQueryParams.addAll(apiClient.parameterToPair("include_account_settings", options.includeAccountSettings));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Returns tab settings list for specified account
+ * Returns tab settings list for specified account.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @return TabAccountSettings
@@ -861,41 +1004,45 @@ public AccountInformation getAccountInformation(String accountId, AccountsApi.Ge
public TabAccountSettings getAccountTabSettings(String accountId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAccountTabSettings");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/settings/tabs".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/settings/tabs"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Get all payment gateway account for the provided accountId
+ * Get all payment gateway account for the provided accountId.
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @return PaymentGatewayAccountsInfo
@@ -904,58 +1051,73 @@ public TabAccountSettings getAccountTabSettings(String accountId) throws ApiExce
public PaymentGatewayAccountsInfo getAllPaymentGatewayAccounts(String accountId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getAllPaymentGatewayAccounts");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/payment_gateway_accounts".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/payment_gateway_accounts"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Gets list of recurring and usage charges for the account. Retrieves the list of recurring and usage charges for the account. This can be used to determine the charge structure and usage of charge plan items. Privileges required: account administrator
///
+
+ /**
+ * GetBillingChargesOptions Class.
+ *
+ **/
public class GetBillingChargesOptions
{
private String includeCharges = null;
- /*
- * Specifies which billing charges to return. Valid values are: * envelopes * seats
- */
+
+ /**
+ * setIncludeCharges method.
+ */
public void setIncludeCharges(String includeCharges) {
this.includeCharges = includeCharges;
}
-
+
+ /**
+ * getIncludeCharges method.
+ *
+ * @return String
+ */
public String getIncludeCharges() {
return this.includeCharges;
}
}
/**
- * Gets list of recurring and usage charges for the account.
+ * Gets list of recurring and usage charges for the account..
* Retrieves the list of recurring and usage charges for the account. This can be used to determine the charge structure and usage of charge plan items. Privileges required: account administrator
* @param accountId The external account number (int) or account ID Guid. (required)
* @return BillingChargeResponse
@@ -965,7 +1127,7 @@ public BillingChargeResponse getBillingCharges(String accountId) throws ApiExcep
}
/**
- * Gets list of recurring and usage charges for the account.
+ * Gets list of recurring and usage charges for the account..
* Retrieves the list of recurring and usage charges for the account. This can be used to determine the charge structure and usage of charge plan items. Privileges required: account administrator
* @param accountId The external account number (int) or account ID Guid. (required)
* @param options for modifying the method behavior.
@@ -975,71 +1137,92 @@ public BillingChargeResponse getBillingCharges(String accountId) throws ApiExcep
public BillingChargeResponse getBillingCharges(String accountId, AccountsApi.GetBillingChargesOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getBillingCharges");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/billing_charges".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/billing_charges"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_charges", options.includeCharges));
+ localVarQueryParams.addAll(apiClient.parameterToPair("include_charges", options.includeCharges));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Get information for a specific brand.
///
+
+ /**
+ * GetBrandOptions Class.
+ *
+ **/
public class GetBrandOptions
{
private String includeExternalReferences = null;
private String includeLogos = null;
- /*
- *
- */
+
+ /**
+ * setIncludeExternalReferences method.
+ */
public void setIncludeExternalReferences(String includeExternalReferences) {
this.includeExternalReferences = includeExternalReferences;
}
-
+
+ /**
+ * getIncludeExternalReferences method.
+ *
+ * @return String
+ */
public String getIncludeExternalReferences() {
return this.includeExternalReferences;
}
- /*
- *
- */
+
+ /**
+ * setIncludeLogos method.
+ */
public void setIncludeLogos(String includeLogos) {
this.includeLogos = includeLogos;
}
-
+
+ /**
+ * getIncludeLogos method.
+ *
+ * @return String
+ */
public String getIncludeLogos() {
return this.includeLogos;
}
}
/**
- * Get information for a specific brand.
+ * Get information for a specific brand..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -1050,7 +1233,7 @@ public Brand getBrand(String accountId, String brandId) throws ApiException {
}
/**
- * Get information for a specific brand.
+ * Get information for a specific brand..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -1061,50 +1244,55 @@ public Brand getBrand(String accountId, String brandId) throws ApiException {
public Brand getBrand(String accountId, String brandId, AccountsApi.GetBrandOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getBrand");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling getBrand");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_external_references", options.includeExternalReferences));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_logos", options.includeLogos));
+ localVarQueryParams.addAll(apiClient.parameterToPair("include_external_references", options.includeExternalReferences));
+ }if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("include_logos", options.includeLogos));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Export a specific brand.
+ * Export a specific brand..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -1113,47 +1301,51 @@ public Brand getBrand(String accountId, String brandId, AccountsApi.GetBrandOpti
public void getBrandExportFile(String accountId, String brandId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getBrandExportFile");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling getBrandExportFile");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/file".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/file"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+
+ apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Obtains the specified image for a brand.
+ * Obtains the specified image for a brand..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -1164,53 +1356,57 @@ public void getBrandExportFile(String accountId, String brandId) throws ApiExcep
public byte[] getBrandLogoByType(String accountId, String brandId, String logoType) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getBrandLogoByType");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling getBrandLogoByType");
- }
+ }
- // verify the required parameter 'logoType' is set
- if (logoType == null) {
+ // verify the required parameter 'logoType' is set
+ if (logoType == null) {
throw new ApiException(400, "Missing the required parameter 'logoType' when calling getBrandLogoByType");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/logos/{logoType}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/logos/{logoType}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()))
.replaceAll("\\{" + "logoType" + "\\}", apiClient.escapeString(logoType.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "image/png"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "image/png"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
/**
- * Returns the specified account's list of branding resources (metadata).
+ * Returns the specified account's list of branding resources (metadata)..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -1220,87 +1416,107 @@ public byte[] getBrandLogoByType(String accountId, String brandId, String logoTy
public BrandResourcesList getBrandResources(String accountId, String brandId) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getBrandResources");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling getBrandResources");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/resources".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/resources"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Returns the specified branding resource file.
///
+
+ /**
+ * GetBrandResourcesByContentTypeOptions Class.
+ *
+ **/
public class GetBrandResourcesByContentTypeOptions
{
private String langcode = null;
private String returnMaster = null;
- /*
- *
- */
+
+ /**
+ * setLangcode method.
+ */
public void setLangcode(String langcode) {
this.langcode = langcode;
}
-
+
+ /**
+ * getLangcode method.
+ *
+ * @return String
+ */
public String getLangcode() {
return this.langcode;
}
- /*
- *
- */
+
+ /**
+ * setReturnMaster method.
+ */
public void setReturnMaster(String returnMaster) {
this.returnMaster = returnMaster;
}
-
+
+ /**
+ * getReturnMaster method.
+ *
+ * @return String
+ */
public String getReturnMaster() {
return this.returnMaster;
}
}
/**
- * Returns the specified branding resource file.
+ * Returns the specified branding resource file..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
* @param resourceContentType (required)
- * @return void
*/
public void getBrandResourcesByContentType(String accountId, String brandId, String resourceContentType) throws ApiException {
getBrandResourcesByContentType(accountId, brandId, resourceContentType, null);
}
/**
- * Returns the specified branding resource file.
+ * Returns the specified branding resource file..
*
* @param accountId The external account number (int) or account ID Guid. (required)
* @param brandId The unique identifier of a brand. (required)
@@ -1311,123 +1527,143 @@ public void getBrandResourcesByContentType(String accountId, String brandId, Str
public void getBrandResourcesByContentType(String accountId, String brandId, String resourceContentType, AccountsApi.GetBrandResourcesByContentTypeOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getBrandResourcesByContentType");
- }
+ }
- // verify the required parameter 'brandId' is set
- if (brandId == null) {
+ // verify the required parameter 'brandId' is set
+ if (brandId == null) {
throw new ApiException(400, "Missing the required parameter 'brandId' when calling getBrandResourcesByContentType");
- }
+ }
- // verify the required parameter 'resourceContentType' is set
- if (resourceContentType == null) {
+ // verify the required parameter 'resourceContentType' is set
+ if (resourceContentType == null) {
throw new ApiException(400, "Missing the required parameter 'resourceContentType' when calling getBrandResourcesByContentType");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/resources/{resourceContentType}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/brands/{brandId}/resources/{resourceContentType}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "brandId" + "\\}", apiClient.escapeString(brandId.toString()))
.replaceAll("\\{" + "resourceContentType" + "\\}", apiClient.escapeString(resourceContentType.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "langcode", options.langcode));
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "return_master", options.returnMaster));
+ localVarQueryParams.addAll(apiClient.parameterToPair("langcode", options.langcode));
+ }if (options != null) {
+ localVarQueryParams.addAll(apiClient.parameterToPair("return_master", options.returnMaster));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
- }
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
+
+
+ apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
+ }
/**
- * Gets the Electronic Record and Signature Disclosure.
+ * Gets the Electronic Record and Signature Disclosure..
* Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, for the requested envelope recipient. This might be different than the current account disclosure depending on account settings, such as branding, and when the account disclosure was last updated. An optional query string can be included to return the language for the disclosure.
* @param accountId The external account number (int) or account ID Guid. (required)
- * @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), 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)
+ * @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)
* @return ConsumerDisclosure
* @throws ApiException if fails to make API call
*/
public ConsumerDisclosure getConsumerDisclosure(String accountId, String langCode) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getConsumerDisclosure");
- }
+ }
- // verify the required parameter 'langCode' is set
- if (langCode == null) {
+ // verify the required parameter 'langCode' is set
+ if (langCode == null) {
throw new ApiException(400, "Missing the required parameter 'langCode' when calling getConsumerDisclosure");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/consumer_disclosure/{langCode}".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/consumer_disclosure/{langCode}"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
.replaceAll("\\{" + "langCode" + "\\}", apiClient.escapeString(langCode.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "docusignAccessCode" };
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
- }
+ GenericType localVarReturnType = new GenericType() {};
+ return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
+ }
///
/// Gets the Electronic Record and Signature Disclosure for the account. Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, associated with the account. You can use an optional query string to set the language for the disclosure.
///
+
+ /**
+ * GetConsumerDisclosureDefaultOptions Class.
+ *
+ **/
public class GetConsumerDisclosureDefaultOptions
{
private String langCode = null;
- /*
- * Specifies the language used in the response. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), 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.
- */
+
+ /**
+ * setLangCode method.
+ */
public void setLangCode(String langCode) {
this.langCode = langCode;
}
-
+
+ /**
+ * getLangCode method.
+ *
+ * @return String
+ */
public String getLangCode() {
return this.langCode;
}
}
/**
- * Gets the Electronic Record and Signature Disclosure for the account.
+ * Gets the Electronic Record and Signature Disclosure for the account..
* Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, associated with the account. You can use an optional query string to set the language for the disclosure.
* @param accountId The external account number (int) or account ID Guid. (required)
* @return ConsumerDisclosure
@@ -1437,7 +1673,7 @@ public ConsumerDisclosure getConsumerDisclosureDefault(String accountId) throws
}
/**
- * Gets the Electronic Record and Signature Disclosure for the account.
+ * Gets the Electronic Record and Signature Disclosure for the account..
* Retrieves the Electronic Record and Signature Disclosure, with HTML formatting, associated with the account. You can use an optional query string to set the language for the disclosure.
* @param accountId The external account number (int) or account ID Guid. (required)
* @param options for modifying the method behavior.
@@ -1447,43 +1683,47 @@ public ConsumerDisclosure getConsumerDisclosureDefault(String accountId) throws
public ConsumerDisclosure getConsumerDisclosureDefault(String accountId, AccountsApi.GetConsumerDisclosureDefaultOptions options) throws ApiException {
Object localVarPostBody = "{}";
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
throw new ApiException(400, "Missing the required parameter 'accountId' when calling getConsumerDisclosureDefault");
- }
+ }
// create path and map variables
- String localVarPath = "/v2/accounts/{accountId}/consumer_disclosure".replaceAll("\\{format\\}","json")
+ String localVarPath = "/v2/accounts/{accountId}/consumer_disclosure"
.replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
+ java.util.List localVarCollectionQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
if (options != null) {
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "langCode", options.langCode));
+ localVarQueryParams.addAll(apiClient.parameterToPair("langCode", options.langCode));
}
+
-
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{ };
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- GenericType localVarReturnType = new GenericType