├── .swagger-codegen └── VERSION ├── settings.gradle ├── src ├── test │ ├── docs │ │ ├── DS.png │ │ ├── SignTest1.pdf │ │ ├── SignTest1.docx │ │ └── WordDocTest.docx │ ├── manifest.mf │ ├── nbproject │ │ ├── genfiles.properties │ │ ├── project.xml │ │ └── project.properties │ ├── dist │ │ └── README.TXT │ └── build.xml └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── docusign │ └── click │ ├── client │ ├── auth │ │ ├── OAuthFlow.java │ │ ├── AccessTokenListener.java │ │ ├── Authentication.java │ │ ├── HttpBasicAuth.java │ │ └── ApiKeyAuth.java │ ├── RFC3339DateFormat.java │ ├── Configuration.java │ ├── Pair.java │ ├── ApiResponse.java │ ├── StringUtil.java │ ├── JSON.java │ └── ApiException.java │ └── model │ ├── DocumentConversionRequest.java │ ├── DocumentConversionResponse.java │ ├── HtmlResult.java │ ├── ClickwrapsDeleteResponse.java │ ├── ErrorDetails.java │ ├── DisclosureLinkStyles.java │ ├── ServiceVersion.java │ ├── ConversionDocument.java │ ├── DataField.java │ ├── ClickwrapTransferRequest.java │ ├── BulkClickwrapRequest.java │ ├── ClickwrapsResponse.java │ ├── ClickwrapVersionsDeleteResponse.java │ ├── ClickwrapScheduledReacceptance.java │ ├── ContainerStyles.java │ ├── ClickwrapVersionsResponse.java │ ├── UserAgreementRequest.java │ ├── DocumentData.java │ ├── ClickwrapDeleteResponse.java │ ├── ClickwrapAgreementsResponse.java │ ├── AgreementStatementStyles.java │ ├── ServiceInformation.java │ ├── HeaderStyles.java │ ├── Document.java │ ├── ClickwrapVersionsPagedResponse.java │ ├── DocumentLinkStylesFocus.java │ └── ClickwrapVersionDeleteInfo.java ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .travis.yml ├── LICENSE ├── .swagger-codegen-ignore ├── CHANGELOG.md ├── stylesheets ├── github-light.css ├── stylesheet.css └── normalize.css └── README.md /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.21-SNAPSHOT -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "docusign-click-java" -------------------------------------------------------------------------------- /src/test/docs/DS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-click-java-client/master/src/test/docs/DS.png -------------------------------------------------------------------------------- /src/test/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /src/test/docs/SignTest1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-click-java-client/master/src/test/docs/SignTest1.pdf -------------------------------------------------------------------------------- /src/test/docs/SignTest1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-click-java-client/master/src/test/docs/SignTest1.docx -------------------------------------------------------------------------------- /src/test/docs/WordDocTest.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-click-java-client/master/src/test/docs/WordDocTest.docx -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-click-java-client/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/auth/OAuthFlow.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client.auth; 4 | 5 | /** 6 | * enum. 7 | * 8 | */ 9 | 10 | public enum OAuthFlow { 11 | accessCode, implicit, password, application 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/auth/AccessTokenListener.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.client.auth; 2 | 3 | import org.apache.oltu.oauth2.common.token.BasicOAuthToken; 4 | 5 | public interface AccessTokenListener { 6 | void notify(BasicOAuthToken token); 7 | } 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue May 17 23:08:05 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Mobile Tools for Java (J2ME) 2 | .mtj.tmp/ 3 | 4 | # Package Files # 5 | *.jar 6 | *.war 7 | *.ear 8 | 9 | # exclude jar for gradle wrapper 10 | !gradle/wrapper/*.jar 11 | 12 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 13 | hs_err_pid* 14 | 15 | # build files 16 | **/target 17 | target 18 | .gradle 19 | build 20 | *.class 21 | .classpath 22 | .settings 23 | .project 24 | 25 | # others 26 | .idea/ 27 | *.iml 28 | .DS_Store -------------------------------------------------------------------------------- /src/test/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=f04d81fd 2 | build.xml.script.CRC32=1b83c451 3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=f04d81fd 7 | nbproject/build-impl.xml.script.CRC32=dcf6b1d8 8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48 9 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/auth/Authentication.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client.auth; 4 | 5 | import com.docusign.click.client.Pair; 6 | 7 | import java.util.Map; 8 | import java.util.List; 9 | 10 | public interface Authentication { 11 | /** 12 | * Apply authentication settings to header and query params. 13 | * 14 | * @param queryParams List of query parameters 15 | * @param headerParams Map of header parameters 16 | */ 17 | void applyToParams(List queryParams, Map headerParams); 18 | } 19 | -------------------------------------------------------------------------------- /src/test/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | SdkTests 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | dist: trusty 3 | install: true 4 | 5 | branches: 6 | only: 7 | - master 8 | 9 | language: java 10 | 11 | notifications: 12 | email: 13 | recipients: 14 | - devcenter@docusign.com 15 | on_success: never 16 | on_failure: change 17 | 18 | jdk: 19 | - oraclejdk11 20 | - oraclejdk12 21 | - oraclejdk13 22 | 23 | script: mvn -X clean test 24 | 25 | after_failure: "cat /home/travis/build/docusign/docusign-click-java-client/target/surefire-reports/SdkUnitTests.txt && cat /home/travis/build/docusign/docusign-click-java-client/target/surefire-reports/TEST-SdkUnitTests.xml" 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/RFC3339DateFormat.java: -------------------------------------------------------------------------------- 1 | 2 | package com.docusign.click.client; 3 | 4 | import com.fasterxml.jackson.databind.util.ISO8601DateFormat; 5 | import com.fasterxml.jackson.databind.util.ISO8601Utils; 6 | 7 | import java.text.FieldPosition; 8 | import java.util.Date; 9 | 10 | /** 11 | * RFC3339DateFormat class. 12 | * 13 | **/ 14 | public class RFC3339DateFormat extends ISO8601DateFormat { 15 | 16 | // Same as ISO8601DateFormat but serializing milliseconds. 17 | @Override 18 | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { 19 | String value = ISO8601Utils.format(date, true); 20 | toAppendTo.append(value); 21 | return toAppendTo; 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/Configuration.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client; 4 | 5 | 6 | /** 7 | * Configuration class. 8 | * 9 | **/ 10 | public class Configuration { 11 | private static ApiClient defaultApiClient = new ApiClient(); 12 | 13 | /** 14 | * Get the default API client, which would be used when creating API 15 | * instances without providing an API client. 16 | * 17 | * @return Default API client 18 | */ 19 | public static ApiClient getDefaultApiClient() { 20 | return defaultApiClient; 21 | } 22 | 23 | /** 24 | * Set the default API client, which would be used when creating API 25 | * instances without providing an API client. 26 | * 27 | * @param apiClient API client 28 | */ 29 | public static void setDefaultApiClient(ApiClient apiClient) { 30 | defaultApiClient = apiClient; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2016- DocuSign, Inc. (https://www.docusign.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.swagger-codegen-ignore: -------------------------------------------------------------------------------- 1 | # Swagger Codegen Ignore 2 | 3 | # Use this file to prevent files from being overwritten by the generator. 4 | # The patterns follow closely to .gitignore or .dockerignore. 5 | 6 | # As an example, the C# client generator defines ApiClient.cs. 7 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 8 | #ApiClient.cs 9 | 10 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 11 | #foo/*/qux 12 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 13 | 14 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 15 | #foo/**/qux 16 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 17 | 18 | # You can also negate patterns with an exclamation (!). 19 | # For example, you can ignore all files in a docs folder with the file extension .md: 20 | #docs/*.md 21 | # Then explicitly reverse the ignore rule for a single file: 22 | #!docs/README.md 23 | 24 | # Swagger and Git files 25 | .swagger-codegen-ignore 26 | git_push.sh 27 | 28 | # Project files 29 | LICENSE 30 | gradle* 31 | build.sbt 32 | .travis.yml 33 | -------------------------------------------------------------------------------- /src/test/dist/README.TXT: -------------------------------------------------------------------------------- 1 | ======================== 2 | BUILD OUTPUT DESCRIPTION 3 | ======================== 4 | 5 | When you build an Java application project that has a main class, the IDE 6 | automatically copies all of the JAR 7 | files on the projects classpath to your projects dist/lib folder. The IDE 8 | also adds each of the JAR files to the Class-Path element in the application 9 | JAR files manifest file (MANIFEST.MF). 10 | 11 | To run the project from the command line, go to the dist folder and 12 | type the following: 13 | 14 | java -jar "SdkTests.jar" 15 | 16 | To distribute this project, zip up the dist folder (including the lib folder) 17 | and distribute the ZIP file. 18 | 19 | Notes: 20 | 21 | * If two JAR files on the project classpath have the same name, only the first 22 | JAR file is copied to the lib folder. 23 | * Only JAR files are copied to the lib folder. 24 | If the classpath contains other types of files or folders, these files (folders) 25 | are not copied. 26 | * If a library on the projects classpath also has a Class-Path element 27 | specified in the manifest,the content of the Class-Path element has to be on 28 | the projects runtime path. 29 | * To set a main class in a standard Java project, right-click the project node 30 | in the Projects window and choose Properties. Then click Run and enter the 31 | class name in the Main Class field. Alternatively, you can manually type the 32 | class name in the manifest Main-Class element. 33 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/Pair.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client; 4 | 5 | 6 | 7 | /** 8 | * Pair class. 9 | */ 10 | public class Pair { 11 | private String name = ""; 12 | private String value = ""; 13 | 14 | /** 15 | * Pair constructor. 16 | * 17 | * @param name The pair name 18 | * @param value The pair value 19 | */ 20 | public Pair (String name, String value) { 21 | setName(name); 22 | setValue(value); 23 | } 24 | 25 | private void setName(String name) { 26 | if (!isValidString(name)) { 27 | return; 28 | } 29 | 30 | this.name = name; 31 | } 32 | 33 | private void setValue(String value) { 34 | if (!isValidString(value)) { 35 | return; 36 | } 37 | 38 | this.value = value; 39 | } 40 | 41 | /** 42 | * getName method. 43 | * 44 | * @return String 45 | */ 46 | public String getName() { 47 | return this.name; 48 | } 49 | 50 | /** 51 | * getValue method. 52 | * 53 | * @return String 54 | */ 55 | public String getValue() { 56 | return this.value; 57 | } 58 | 59 | private boolean isValidString(String arg) { 60 | if (arg == null) { 61 | return false; 62 | } 63 | 64 | if (arg.trim().isEmpty()) { 65 | return false; 66 | } 67 | 68 | return true; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/ApiResponse.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | /** 9 | * API response returned by API call. 10 | * 11 | * @param The type of data that is deserialized from response body 12 | */ 13 | public class ApiResponse { 14 | private final int statusCode; 15 | private final Map> headers; 16 | private final T data; 17 | 18 | /** 19 | * ApiResponse method. 20 | * 21 | * @param statusCode The status code of HTTP response 22 | * @param headers The headers of HTTP response 23 | */ 24 | public ApiResponse(int statusCode, Map> headers) { 25 | this(statusCode, headers, null); 26 | } 27 | 28 | /** 29 | * ApiResponse method. 30 | * 31 | * @param statusCode The status code of HTTP response 32 | * @param headers The headers of HTTP response 33 | * @param data The object deserialized from response bod 34 | */ 35 | public ApiResponse(int statusCode, Map> headers, T data) { 36 | this.statusCode = statusCode; 37 | this.headers = headers; 38 | this.data = data; 39 | } 40 | 41 | public int getStatusCode() { 42 | return statusCode; 43 | } 44 | 45 | public Map> getHeaders() { 46 | return headers; 47 | } 48 | 49 | public T getData() { 50 | return data; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/StringUtil.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client; 4 | 5 | 6 | /** 7 | * StringUtil class. 8 | * 9 | **/ 10 | public class StringUtil { 11 | /** 12 | * Check if the given array contains the given value (with case-insensitive comparison). 13 | * 14 | * @param array The array 15 | * @param value The value to search 16 | * @return true if the array contains the value 17 | */ 18 | public static boolean containsIgnoreCase(String[] array, String value) { 19 | for (String str : array) { 20 | if (value == null && str == null) { 21 | return true; 22 | } 23 | 24 | if (value != null && value.equalsIgnoreCase(str)) { 25 | return true; 26 | } 27 | } 28 | return false; 29 | } 30 | 31 | /** 32 | * Join an array of strings with the given separator. 33 | *

34 | * Note: This might be replaced by utility method from commons-lang or guava someday 35 | * if one of those libraries is added as dependency. 36 | *

37 | * 38 | * @param array The array of strings 39 | * @param separator The separator 40 | * @return the resulting string 41 | */ 42 | public static String join(String[] array, String separator) { 43 | int len = array.length; 44 | if (len == 0) { 45 | return ""; 46 | } 47 | 48 | StringBuilder out = new StringBuilder(); 49 | out.append(array[0]); 50 | for (int i = 1; i < len; i++) { 51 | out.append(separator).append(array[i]); 52 | } 53 | return out.toString(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # DocuSign Click Java Client Changelog 2 | See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes. 3 | 4 | ## [v1.5.0] - Click API v1-22.4.02.00 - 2023-06-12 5 | ### Changed 6 | - Added support for version v1-22.4.02.00 of the DocuSign Click API. 7 | - Updated the SDK release version. 8 | 9 | ## [v1.4.0] - Click API v1-22.4.01.00 - 2023-05-09 10 | ### Changed 11 | - Added support for version v1-22.4.01.00 of the DocuSign Click API. 12 | - Added support for Jakarta library integration 13 | - Updated the SDK release version. 14 | 15 | ## [v1.3.0] - Click API v1-22.4.01.00 - 2023-02-13 16 | ### Changed 17 | - Added support for version v1-22.4.01.00 of the DocuSign Click API. 18 | - Updated the SDK release version. 19 | 20 | ## [v1.2.2] - Click API v1-22.3.01.00 - 2022-10-28 21 | ### Changed 22 | - Added support for version v1-22.3.01.00 of the DocuSign Click API. 23 | - Updated the SDK release version. 24 | 25 | ## [1.1.0] - Click API v1-21.4.01 - 2021-12-08 26 | ### Changed 27 | - Added support for version v1-21.4.01 of the DocuSign Click API. 28 | - Updated the SDK release version. 29 | 30 | 31 | ## [1.1.0-RC1] - Click API v1-21.4.00 - 2021-11-22 32 | ### Changed 33 | - Added support for version v1-21.4.00 of the DocuSign Click API. 34 | - Updated the SDK release version. 35 | 36 | 37 | ## [v1.0.0] - DocuSign Click API v1-20.4.02 - 2021-02-11 38 | ### Changed 39 | - Added support for version v1-20.4.02 of the DocuSign Click API. 40 | - Updated the SDK release version. 41 | 42 | ## [v1.0.0-BETA] - DocuSign Click API v1.0.0 - 2020-12-28 43 | ### Changed 44 | - First Beta version of DocuSign Click API. 45 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/auth/HttpBasicAuth.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client.auth; 4 | 5 | import com.docusign.click.client.Pair; 6 | 7 | import java.util.Base64; 8 | import java.nio.charset.StandardCharsets; 9 | 10 | import java.util.Map; 11 | import java.util.List; 12 | 13 | 14 | 15 | 16 | /** 17 | * HttpBasicAuth class. 18 | * 19 | */ 20 | public class HttpBasicAuth implements Authentication { 21 | private String username; 22 | private String password; 23 | 24 | /** 25 | * getUsername method. 26 | * 27 | * @return String 28 | */ 29 | public String getUsername() { 30 | return username; 31 | } 32 | 33 | /** 34 | * setUsername method. 35 | * 36 | * @param username Sets username 37 | */ 38 | public void setUsername(String username) { 39 | this.username = username; 40 | } 41 | 42 | /** 43 | * getPassword method. 44 | * 45 | * @return String 46 | */ 47 | public String getPassword() { 48 | return password; 49 | } 50 | 51 | /** 52 | * setPassword method. 53 | * 54 | * @param password Sets password 55 | */ 56 | public void setPassword(String password) { 57 | this.password = password; 58 | } 59 | 60 | /** 61 | * applyToParams method. 62 | * 63 | * @param queryParams The query params 64 | * @param headerParams The header params 65 | */ 66 | @Override 67 | public void applyToParams(List queryParams, Map headerParams) { 68 | if (username == null && password == null) { 69 | return; 70 | } 71 | String str = (username == null ? "" : username) + ":" + (password == null ? "" : password); 72 | headerParams.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8))); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/JSON.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.client; 2 | 3 | import com.fasterxml.jackson.annotation.*; 4 | import com.fasterxml.jackson.databind.*; 5 | 6 | import java.text.DateFormat; 7 | 8 | import jakarta.ws.rs.ext.ContextResolver; 9 | 10 | 11 | 12 | /** 13 | * JSON Class. 14 | * 15 | **/ 16 | 17 | public class JSON implements ContextResolver { 18 | private ObjectMapper mapper; 19 | 20 | /** 21 | * JSON Class constructor doc. 22 | * 23 | **/ 24 | public JSON() { 25 | mapper = new ObjectMapper(); 26 | mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); 27 | mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); 28 | mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); 29 | mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); 30 | mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); 31 | mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); 32 | mapper.setDateFormat(new RFC3339DateFormat()); 33 | } 34 | 35 | /** 36 | * Returns the current object mapper used for JSON serialization/deserialization. 37 | *

38 | * Note: If you make changes to the object mapper, remember to set it back via 39 | * setObjectMapper in order to trigger HTTP client rebuilding. 40 | *

41 | * @return Object mapper 42 | */ 43 | public ObjectMapper getObjectMapper() { 44 | return mapper; 45 | } 46 | 47 | public JSON setObjectMapper(ObjectMapper mapper) { 48 | this.mapper = mapper; 49 | return this; 50 | } 51 | 52 | /** 53 | * Set the date format for JSON (de)serialization with Date properties. 54 | * @param dateFormat Date format 55 | */ 56 | public void setDateFormat(DateFormat dateFormat) { 57 | mapper.setDateFormat(dateFormat); 58 | } 59 | 60 | @Override 61 | public ObjectMapper getContext(Class type) { 62 | return mapper; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/auth/ApiKeyAuth.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client.auth; 4 | 5 | import com.docusign.click.client.Pair; 6 | 7 | import java.util.Map; 8 | import java.util.List; 9 | 10 | 11 | /** 12 | * ApiKeyAuth class. 13 | * 14 | */ 15 | public class ApiKeyAuth implements Authentication { 16 | private final String location; 17 | private final String paramName; 18 | 19 | private String apiKey; 20 | private String apiKeyPrefix; 21 | 22 | /** 23 | * ApiKeyAuth constructor. 24 | * 25 | * @param location Sets location 26 | * @param paramName Sets paramName 27 | */ 28 | public ApiKeyAuth(String location, String paramName) { 29 | this.location = location; 30 | this.paramName = paramName; 31 | } 32 | 33 | /** 34 | * getLocation method. 35 | * 36 | * @return String 37 | */ 38 | public String getLocation() { 39 | return location; 40 | } 41 | 42 | /** 43 | * getParamName method. 44 | * 45 | * @return String 46 | */ 47 | public String getParamName() { 48 | return paramName; 49 | } 50 | 51 | /** 52 | * getApiKey method. 53 | * 54 | * @return String 55 | */ 56 | public String getApiKey() { 57 | return apiKey; 58 | } 59 | 60 | /** 61 | * setApiKey method. 62 | * 63 | * @param apiKey The apiKey 64 | */ 65 | public void setApiKey(String apiKey) { 66 | this.apiKey = apiKey; 67 | } 68 | 69 | /** 70 | * getApiKeyPrefix method. 71 | * 72 | * @return String 73 | */ 74 | public String getApiKeyPrefix() { 75 | return apiKeyPrefix; 76 | } 77 | 78 | /** 79 | * setApiKeyPrefix method. 80 | * 81 | * @param apiKeyPrefix The apiKeyPrefix 82 | */ 83 | public void setApiKeyPrefix(String apiKeyPrefix) { 84 | this.apiKeyPrefix = apiKeyPrefix; 85 | } 86 | 87 | /** 88 | * applyToParams method. 89 | * 90 | * @param queryParams The query params 91 | * @param headerParams The header params 92 | */ 93 | @Override 94 | public void applyToParams(List queryParams, Map headerParams) { 95 | if (apiKey == null) { 96 | return; 97 | } 98 | String value; 99 | if (apiKeyPrefix != null) { 100 | value = apiKeyPrefix + " " + apiKey; 101 | } else { 102 | value = apiKey; 103 | } 104 | if ("query".equals(location)) { 105 | queryParams.add(new Pair(paramName, value)); 106 | } else if ("header".equals(location)) { 107 | headerParams.put(paramName, value); 108 | } 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/DocumentConversionRequest.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ConversionDocument; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * DocumentConversionRequest 13 | */ 14 | 15 | public class DocumentConversionRequest { 16 | @JsonProperty("documents") 17 | private java.util.List documents = null; 18 | 19 | public DocumentConversionRequest documents(java.util.List documents) { 20 | this.documents = documents; 21 | return this; 22 | } 23 | 24 | public DocumentConversionRequest addDocumentsItem(ConversionDocument documentsItem) { 25 | if (this.documents == null) { 26 | this.documents = new java.util.ArrayList(); 27 | } 28 | this.documents.add(documentsItem); 29 | return this; 30 | } 31 | 32 | /** 33 | * 34 | * @return documents 35 | **/ 36 | @Schema(description = "") 37 | public java.util.List getDocuments() { 38 | return documents; 39 | } 40 | 41 | public void setDocuments(java.util.List documents) { 42 | this.documents = documents; 43 | } 44 | 45 | 46 | @Override 47 | public boolean equals(java.lang.Object o) { 48 | if (this == o) { 49 | return true; 50 | } 51 | if (o == null || getClass() != o.getClass()) { 52 | return false; 53 | } 54 | DocumentConversionRequest documentConversionRequest = (DocumentConversionRequest) o; 55 | return Objects.equals(this.documents, documentConversionRequest.documents); 56 | } 57 | 58 | @Override 59 | public int hashCode() { 60 | return Objects.hash(documents); 61 | } 62 | 63 | 64 | @Override 65 | public String toString() { 66 | StringBuilder sb = new StringBuilder(); 67 | sb.append("class DocumentConversionRequest {\n"); 68 | 69 | sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); 70 | sb.append("}"); 71 | return sb.toString(); 72 | } 73 | 74 | /** 75 | * Convert the given object to string with each line indented by 4 spaces 76 | * (except the first line). 77 | */ 78 | private String toIndentedString(java.lang.Object o) { 79 | if (o == null) { 80 | return "null"; 81 | } 82 | return o.toString().replace("\n", "\n "); 83 | } 84 | 85 | } 86 | 87 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/DocumentConversionResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.HtmlResult; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * DocumentConversionResponse 13 | */ 14 | 15 | public class DocumentConversionResponse { 16 | @JsonProperty("htmlResults") 17 | private java.util.List htmlResults = null; 18 | 19 | public DocumentConversionResponse htmlResults(java.util.List htmlResults) { 20 | this.htmlResults = htmlResults; 21 | return this; 22 | } 23 | 24 | public DocumentConversionResponse addHtmlResultsItem(HtmlResult htmlResultsItem) { 25 | if (this.htmlResults == null) { 26 | this.htmlResults = new java.util.ArrayList(); 27 | } 28 | this.htmlResults.add(htmlResultsItem); 29 | return this; 30 | } 31 | 32 | /** 33 | * 34 | * @return htmlResults 35 | **/ 36 | @Schema(description = "") 37 | public java.util.List getHtmlResults() { 38 | return htmlResults; 39 | } 40 | 41 | public void setHtmlResults(java.util.List htmlResults) { 42 | this.htmlResults = htmlResults; 43 | } 44 | 45 | 46 | @Override 47 | public boolean equals(java.lang.Object o) { 48 | if (this == o) { 49 | return true; 50 | } 51 | if (o == null || getClass() != o.getClass()) { 52 | return false; 53 | } 54 | DocumentConversionResponse documentConversionResponse = (DocumentConversionResponse) o; 55 | return Objects.equals(this.htmlResults, documentConversionResponse.htmlResults); 56 | } 57 | 58 | @Override 59 | public int hashCode() { 60 | return Objects.hash(htmlResults); 61 | } 62 | 63 | 64 | @Override 65 | public String toString() { 66 | StringBuilder sb = new StringBuilder(); 67 | sb.append("class DocumentConversionResponse {\n"); 68 | 69 | sb.append(" htmlResults: ").append(toIndentedString(htmlResults)).append("\n"); 70 | sb.append("}"); 71 | return sb.toString(); 72 | } 73 | 74 | /** 75 | * Convert the given object to string with each line indented by 4 spaces 76 | * (except the first line). 77 | */ 78 | private String toIndentedString(java.lang.Object o) { 79 | if (o == null) { 80 | return "null"; 81 | } 82 | return o.toString().replace("\n", "\n "); 83 | } 84 | 85 | } 86 | 87 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/HtmlResult.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * HtmlResult 12 | */ 13 | 14 | public class HtmlResult { 15 | @JsonProperty("fileName") 16 | private String fileName = null; 17 | 18 | @JsonProperty("html") 19 | private String html = null; 20 | 21 | public HtmlResult fileName(String fileName) { 22 | this.fileName = fileName; 23 | return this; 24 | } 25 | 26 | /** 27 | * 28 | * @return fileName 29 | **/ 30 | @Schema(description = "") 31 | public String getFileName() { 32 | return fileName; 33 | } 34 | 35 | public void setFileName(String fileName) { 36 | this.fileName = fileName; 37 | } 38 | 39 | public HtmlResult html(String html) { 40 | this.html = html; 41 | return this; 42 | } 43 | 44 | /** 45 | * 46 | * @return html 47 | **/ 48 | @Schema(description = "") 49 | public String getHtml() { 50 | return html; 51 | } 52 | 53 | public void setHtml(String html) { 54 | this.html = html; 55 | } 56 | 57 | 58 | @Override 59 | public boolean equals(java.lang.Object o) { 60 | if (this == o) { 61 | return true; 62 | } 63 | if (o == null || getClass() != o.getClass()) { 64 | return false; 65 | } 66 | HtmlResult htmlResult = (HtmlResult) o; 67 | return Objects.equals(this.fileName, htmlResult.fileName) && 68 | Objects.equals(this.html, htmlResult.html); 69 | } 70 | 71 | @Override 72 | public int hashCode() { 73 | return Objects.hash(fileName, html); 74 | } 75 | 76 | 77 | @Override 78 | public String toString() { 79 | StringBuilder sb = new StringBuilder(); 80 | sb.append("class HtmlResult {\n"); 81 | 82 | sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); 83 | sb.append(" html: ").append(toIndentedString(html)).append("\n"); 84 | sb.append("}"); 85 | return sb.toString(); 86 | } 87 | 88 | /** 89 | * Convert the given object to string with each line indented by 4 spaces 90 | * (except the first line). 91 | */ 92 | private String toIndentedString(java.lang.Object o) { 93 | if (o == null) { 94 | return "null"; 95 | } 96 | return o.toString().replace("\n", "\n "); 97 | } 98 | 99 | } 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapsDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ClickwrapDeleteResponse; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * ClickwrapsDeleteResponse. 13 | * 14 | */ 15 | 16 | public class ClickwrapsDeleteResponse { 17 | @JsonProperty("clickwraps") 18 | private java.util.List clickwraps = null; 19 | 20 | 21 | /** 22 | * clickwraps. 23 | * 24 | * @return ClickwrapsDeleteResponse 25 | **/ 26 | public ClickwrapsDeleteResponse clickwraps(java.util.List clickwraps) { 27 | this.clickwraps = clickwraps; 28 | return this; 29 | } 30 | 31 | /** 32 | * addClickwrapsItem. 33 | * 34 | * @return ClickwrapsDeleteResponse 35 | **/ 36 | public ClickwrapsDeleteResponse addClickwrapsItem(ClickwrapDeleteResponse clickwrapsItem) { 37 | if (this.clickwraps == null) { 38 | this.clickwraps = new java.util.ArrayList<>(); 39 | } 40 | this.clickwraps.add(clickwrapsItem); 41 | return this; 42 | } 43 | 44 | /** 45 | * An array of clickwrap deletion results.. 46 | * @return clickwraps 47 | **/ 48 | @Schema(description = "An array of clickwrap deletion results.") 49 | public java.util.List getClickwraps() { 50 | return clickwraps; 51 | } 52 | 53 | /** 54 | * setClickwraps. 55 | **/ 56 | public void setClickwraps(java.util.List clickwraps) { 57 | this.clickwraps = clickwraps; 58 | } 59 | 60 | 61 | /** 62 | * Compares objects. 63 | * 64 | * @return true or false depending on comparison result. 65 | */ 66 | @Override 67 | public boolean equals(java.lang.Object o) { 68 | if (this == o) { 69 | return true; 70 | } 71 | if (o == null || getClass() != o.getClass()) { 72 | return false; 73 | } 74 | ClickwrapsDeleteResponse clickwrapsDeleteResponse = (ClickwrapsDeleteResponse) o; 75 | return Objects.equals(this.clickwraps, clickwrapsDeleteResponse.clickwraps); 76 | } 77 | 78 | /** 79 | * Returns the HashCode. 80 | */ 81 | @Override 82 | public int hashCode() { 83 | return Objects.hash(clickwraps); 84 | } 85 | 86 | 87 | /** 88 | * Converts the given object to string. 89 | */ 90 | @Override 91 | public String toString() { 92 | StringBuilder sb = new StringBuilder(); 93 | sb.append("class ClickwrapsDeleteResponse {\n"); 94 | 95 | sb.append(" clickwraps: ").append(toIndentedString(clickwraps)).append("\n"); 96 | sb.append("}"); 97 | return sb.toString(); 98 | } 99 | 100 | /** 101 | * Convert the given object to string with each line indented by 4 spaces 102 | * (except the first line). 103 | */ 104 | private String toIndentedString(java.lang.Object o) { 105 | if (o == null) { 106 | return "null"; 107 | } 108 | return o.toString().replace("\n", "\n "); 109 | } 110 | 111 | } 112 | 113 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ErrorDetails.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Error details.. 12 | * 13 | */ 14 | @Schema(description = "Error details.") 15 | 16 | public class ErrorDetails { 17 | @JsonProperty("errorCode") 18 | private String errorCode = null; 19 | 20 | @JsonProperty("message") 21 | private String message = null; 22 | 23 | 24 | /** 25 | * errorCode. 26 | * 27 | * @return ErrorDetails 28 | **/ 29 | public ErrorDetails errorCode(String errorCode) { 30 | this.errorCode = errorCode; 31 | return this; 32 | } 33 | 34 | /** 35 | * The error code.. 36 | * @return errorCode 37 | **/ 38 | @Schema(description = "The error code.") 39 | public String getErrorCode() { 40 | return errorCode; 41 | } 42 | 43 | /** 44 | * setErrorCode. 45 | **/ 46 | public void setErrorCode(String errorCode) { 47 | this.errorCode = errorCode; 48 | } 49 | 50 | 51 | /** 52 | * message. 53 | * 54 | * @return ErrorDetails 55 | **/ 56 | public ErrorDetails message(String message) { 57 | this.message = message; 58 | return this; 59 | } 60 | 61 | /** 62 | * The error message.. 63 | * @return message 64 | **/ 65 | @Schema(description = "The error message.") 66 | public String getMessage() { 67 | return message; 68 | } 69 | 70 | /** 71 | * setMessage. 72 | **/ 73 | public void setMessage(String message) { 74 | this.message = message; 75 | } 76 | 77 | 78 | /** 79 | * Compares objects. 80 | * 81 | * @return true or false depending on comparison result. 82 | */ 83 | @Override 84 | public boolean equals(java.lang.Object o) { 85 | if (this == o) { 86 | return true; 87 | } 88 | if (o == null || getClass() != o.getClass()) { 89 | return false; 90 | } 91 | ErrorDetails errorDetails = (ErrorDetails) o; 92 | return Objects.equals(this.errorCode, errorDetails.errorCode) && 93 | Objects.equals(this.message, errorDetails.message); 94 | } 95 | 96 | /** 97 | * Returns the HashCode. 98 | */ 99 | @Override 100 | public int hashCode() { 101 | return Objects.hash(errorCode, message); 102 | } 103 | 104 | 105 | /** 106 | * Converts the given object to string. 107 | */ 108 | @Override 109 | public String toString() { 110 | StringBuilder sb = new StringBuilder(); 111 | sb.append("class ErrorDetails {\n"); 112 | 113 | sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); 114 | sb.append(" message: ").append(toIndentedString(message)).append("\n"); 115 | sb.append("}"); 116 | return sb.toString(); 117 | } 118 | 119 | /** 120 | * Convert the given object to string with each line indented by 4 spaces 121 | * (except the first line). 122 | */ 123 | private String toIndentedString(java.lang.Object o) { 124 | if (o == null) { 125 | return "null"; 126 | } 127 | return o.toString().replace("\n", "\n "); 128 | } 129 | 130 | } 131 | 132 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/DisclosureLinkStyles.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Control the display of the disclosure link.. 12 | * 13 | */ 14 | @Schema(description = "Control the display of the disclosure link.") 15 | 16 | public class DisclosureLinkStyles { 17 | /** 18 | * Gets or Sets display 19 | */ 20 | public enum DisplayEnum { 21 | NONE("none"); 22 | 23 | private String value; 24 | 25 | DisplayEnum(String value) { 26 | this.value = value; 27 | } 28 | 29 | @JsonValue 30 | public String getValue() { 31 | return value; 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return String.valueOf(value); 37 | } 38 | 39 | @JsonCreator 40 | public static DisplayEnum fromValue(String value) { 41 | for (DisplayEnum b : DisplayEnum.values()) { 42 | if (b.value.equals(value)) { 43 | return b; 44 | } 45 | } 46 | return null; 47 | } 48 | } 49 | 50 | @JsonProperty("display") 51 | private DisplayEnum display = null; 52 | 53 | 54 | /** 55 | * display. 56 | * 57 | * @return DisclosureLinkStyles 58 | **/ 59 | public DisclosureLinkStyles display(DisplayEnum display) { 60 | this.display = display; 61 | return this; 62 | } 63 | 64 | /** 65 | * Get display. 66 | * @return display 67 | **/ 68 | @Schema(description = "") 69 | public DisplayEnum getDisplay() { 70 | return display; 71 | } 72 | 73 | /** 74 | * setDisplay. 75 | **/ 76 | public void setDisplay(DisplayEnum display) { 77 | this.display = display; 78 | } 79 | 80 | 81 | /** 82 | * Compares objects. 83 | * 84 | * @return true or false depending on comparison result. 85 | */ 86 | @Override 87 | public boolean equals(java.lang.Object o) { 88 | if (this == o) { 89 | return true; 90 | } 91 | if (o == null || getClass() != o.getClass()) { 92 | return false; 93 | } 94 | DisclosureLinkStyles disclosureLinkStyles = (DisclosureLinkStyles) o; 95 | return Objects.equals(this.display, disclosureLinkStyles.display); 96 | } 97 | 98 | /** 99 | * Returns the HashCode. 100 | */ 101 | @Override 102 | public int hashCode() { 103 | return Objects.hash(display); 104 | } 105 | 106 | 107 | /** 108 | * Converts the given object to string. 109 | */ 110 | @Override 111 | public String toString() { 112 | StringBuilder sb = new StringBuilder(); 113 | sb.append("class DisclosureLinkStyles {\n"); 114 | 115 | sb.append(" display: ").append(toIndentedString(display)).append("\n"); 116 | sb.append("}"); 117 | return sb.toString(); 118 | } 119 | 120 | /** 121 | * Convert the given object to string with each line indented by 4 spaces 122 | * (except the first line). 123 | */ 124 | private String toIndentedString(java.lang.Object o) { 125 | if (o == null) { 126 | return "null"; 127 | } 128 | return o.toString().replace("\n", "\n "); 129 | } 130 | 131 | } 132 | 133 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ServiceVersion.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * ServiceVersion. 12 | * 13 | */ 14 | 15 | public class ServiceVersion { 16 | @JsonProperty("version") 17 | private String version = null; 18 | 19 | @JsonProperty("versionUrl") 20 | private String versionUrl = null; 21 | 22 | 23 | /** 24 | * version. 25 | * 26 | * @return ServiceVersion 27 | **/ 28 | public ServiceVersion version(String version) { 29 | this.version = version; 30 | return this; 31 | } 32 | 33 | /** 34 | * The human-readable semver version string.. 35 | * @return version 36 | **/ 37 | @Schema(description = "The human-readable semver version string.") 38 | public String getVersion() { 39 | return version; 40 | } 41 | 42 | /** 43 | * setVersion. 44 | **/ 45 | public void setVersion(String version) { 46 | this.version = version; 47 | } 48 | 49 | 50 | /** 51 | * versionUrl. 52 | * 53 | * @return ServiceVersion 54 | **/ 55 | public ServiceVersion versionUrl(String versionUrl) { 56 | this.versionUrl = versionUrl; 57 | return this; 58 | } 59 | 60 | /** 61 | * The URL where this version of the API can be found.. 62 | * @return versionUrl 63 | **/ 64 | @Schema(description = "The URL where this version of the API can be found.") 65 | public String getVersionUrl() { 66 | return versionUrl; 67 | } 68 | 69 | /** 70 | * setVersionUrl. 71 | **/ 72 | public void setVersionUrl(String versionUrl) { 73 | this.versionUrl = versionUrl; 74 | } 75 | 76 | 77 | /** 78 | * Compares objects. 79 | * 80 | * @return true or false depending on comparison result. 81 | */ 82 | @Override 83 | public boolean equals(java.lang.Object o) { 84 | if (this == o) { 85 | return true; 86 | } 87 | if (o == null || getClass() != o.getClass()) { 88 | return false; 89 | } 90 | ServiceVersion serviceVersion = (ServiceVersion) o; 91 | return Objects.equals(this.version, serviceVersion.version) && 92 | Objects.equals(this.versionUrl, serviceVersion.versionUrl); 93 | } 94 | 95 | /** 96 | * Returns the HashCode. 97 | */ 98 | @Override 99 | public int hashCode() { 100 | return Objects.hash(version, versionUrl); 101 | } 102 | 103 | 104 | /** 105 | * Converts the given object to string. 106 | */ 107 | @Override 108 | public String toString() { 109 | StringBuilder sb = new StringBuilder(); 110 | sb.append("class ServiceVersion {\n"); 111 | 112 | sb.append(" version: ").append(toIndentedString(version)).append("\n"); 113 | sb.append(" versionUrl: ").append(toIndentedString(versionUrl)).append("\n"); 114 | sb.append("}"); 115 | return sb.toString(); 116 | } 117 | 118 | /** 119 | * Convert the given object to string with each line indented by 4 spaces 120 | * (except the first line). 121 | */ 122 | private String toIndentedString(java.lang.Object o) { 123 | if (o == null) { 124 | return "null"; 125 | } 126 | return o.toString().replace("\n", "\n "); 127 | } 128 | 129 | } 130 | 131 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ConversionDocument.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * ConversionDocument 12 | */ 13 | 14 | public class ConversionDocument { 15 | @JsonProperty("base64") 16 | private String base64 = null; 17 | 18 | @JsonProperty("fileExtension") 19 | private String fileExtension = null; 20 | 21 | @JsonProperty("fileName") 22 | private String fileName = null; 23 | 24 | public ConversionDocument base64(String base64) { 25 | this.base64 = base64; 26 | return this; 27 | } 28 | 29 | /** 30 | * 31 | * @return base64 32 | **/ 33 | @Schema(description = "") 34 | public String getBase64() { 35 | return base64; 36 | } 37 | 38 | public void setBase64(String base64) { 39 | this.base64 = base64; 40 | } 41 | 42 | public ConversionDocument fileExtension(String fileExtension) { 43 | this.fileExtension = fileExtension; 44 | return this; 45 | } 46 | 47 | /** 48 | * 49 | * @return fileExtension 50 | **/ 51 | @Schema(description = "") 52 | public String getFileExtension() { 53 | return fileExtension; 54 | } 55 | 56 | public void setFileExtension(String fileExtension) { 57 | this.fileExtension = fileExtension; 58 | } 59 | 60 | public ConversionDocument fileName(String fileName) { 61 | this.fileName = fileName; 62 | return this; 63 | } 64 | 65 | /** 66 | * 67 | * @return fileName 68 | **/ 69 | @Schema(description = "") 70 | public String getFileName() { 71 | return fileName; 72 | } 73 | 74 | public void setFileName(String fileName) { 75 | this.fileName = fileName; 76 | } 77 | 78 | 79 | @Override 80 | public boolean equals(java.lang.Object o) { 81 | if (this == o) { 82 | return true; 83 | } 84 | if (o == null || getClass() != o.getClass()) { 85 | return false; 86 | } 87 | ConversionDocument conversionDocument = (ConversionDocument) o; 88 | return Objects.equals(this.base64, conversionDocument.base64) && 89 | Objects.equals(this.fileExtension, conversionDocument.fileExtension) && 90 | Objects.equals(this.fileName, conversionDocument.fileName); 91 | } 92 | 93 | @Override 94 | public int hashCode() { 95 | return Objects.hash(base64, fileExtension, fileName); 96 | } 97 | 98 | 99 | @Override 100 | public String toString() { 101 | StringBuilder sb = new StringBuilder(); 102 | sb.append("class ConversionDocument {\n"); 103 | 104 | sb.append(" base64: ").append(toIndentedString(base64)).append("\n"); 105 | sb.append(" fileExtension: ").append(toIndentedString(fileExtension)).append("\n"); 106 | sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); 107 | sb.append("}"); 108 | return sb.toString(); 109 | } 110 | 111 | /** 112 | * Convert the given object to string with each line indented by 4 spaces 113 | * (except the first line). 114 | */ 115 | private String toIndentedString(java.lang.Object o) { 116 | if (o == null) { 117 | return "null"; 118 | } 119 | return o.toString().replace("\n", "\n "); 120 | } 121 | 122 | } 123 | 124 | -------------------------------------------------------------------------------- /stylesheets/github-light.css: -------------------------------------------------------------------------------- 1 | /* 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2016 GitHub, Inc. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | */ 25 | 26 | .pl-c /* comment */ { 27 | color: #969896; 28 | } 29 | 30 | .pl-c1 /* constant, variable.other.constant, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header */, 31 | .pl-s .pl-v /* string variable */ { 32 | color: #0086b3; 33 | } 34 | 35 | .pl-e /* entity */, 36 | .pl-en /* entity.name */ { 37 | color: #795da3; 38 | } 39 | 40 | .pl-smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */, 41 | .pl-s .pl-s1 /* string source */ { 42 | color: #333; 43 | } 44 | 45 | .pl-ent /* entity.name.tag */ { 46 | color: #63a35c; 47 | } 48 | 49 | .pl-k /* keyword, storage, storage.type */ { 50 | color: #a71d5d; 51 | } 52 | 53 | .pl-s /* string */, 54 | .pl-pds /* punctuation.definition.string, string.regexp.character-class */, 55 | .pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, 56 | .pl-sr /* string.regexp */, 57 | .pl-sr .pl-cce /* string.regexp constant.character.escape */, 58 | .pl-sr .pl-sre /* string.regexp source.ruby.embedded */, 59 | .pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */ { 60 | color: #183691; 61 | } 62 | 63 | .pl-v /* variable */ { 64 | color: #ed6a43; 65 | } 66 | 67 | .pl-id /* invalid.deprecated */ { 68 | color: #b52a1d; 69 | } 70 | 71 | .pl-ii /* invalid.illegal */ { 72 | color: #f8f8f8; 73 | background-color: #b52a1d; 74 | } 75 | 76 | .pl-sr .pl-cce /* string.regexp constant.character.escape */ { 77 | font-weight: bold; 78 | color: #63a35c; 79 | } 80 | 81 | .pl-ml /* markup.list */ { 82 | color: #693a17; 83 | } 84 | 85 | .pl-mh /* markup.heading */, 86 | .pl-mh .pl-en /* markup.heading entity.name */, 87 | .pl-ms /* meta.separator */ { 88 | font-weight: bold; 89 | color: #1d3e81; 90 | } 91 | 92 | .pl-mq /* markup.quote */ { 93 | color: #008080; 94 | } 95 | 96 | .pl-mi /* markup.italic */ { 97 | font-style: italic; 98 | color: #333; 99 | } 100 | 101 | .pl-mb /* markup.bold */ { 102 | font-weight: bold; 103 | color: #333; 104 | } 105 | 106 | .pl-md /* markup.deleted, meta.diff.header.from-file */ { 107 | color: #bd2c00; 108 | background-color: #ffecec; 109 | } 110 | 111 | .pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { 112 | color: #55a532; 113 | background-color: #eaffea; 114 | } 115 | 116 | .pl-mdr /* meta.diff.range */ { 117 | font-weight: bold; 118 | color: #795da3; 119 | } 120 | 121 | .pl-mo /* meta.output */ { 122 | color: #1d3e81; 123 | } 124 | 125 | -------------------------------------------------------------------------------- /src/test/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Builds, tests, and runs the project SdkTests. 12 | 13 | 73 | 74 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/DataField.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * DataField. 12 | * 13 | */ 14 | 15 | public class DataField { 16 | @JsonProperty("label") 17 | private String label = null; 18 | 19 | @JsonProperty("name") 20 | private String name = null; 21 | 22 | @JsonProperty("type") 23 | private String type = null; 24 | 25 | 26 | /** 27 | * label. 28 | * 29 | * @return DataField 30 | **/ 31 | public DataField label(String label) { 32 | this.label = label; 33 | return this; 34 | } 35 | 36 | /** 37 | * . 38 | * @return label 39 | **/ 40 | @Schema(description = "") 41 | public String getLabel() { 42 | return label; 43 | } 44 | 45 | /** 46 | * setLabel. 47 | **/ 48 | public void setLabel(String label) { 49 | this.label = label; 50 | } 51 | 52 | 53 | /** 54 | * name. 55 | * 56 | * @return DataField 57 | **/ 58 | public DataField name(String name) { 59 | this.name = name; 60 | return this; 61 | } 62 | 63 | /** 64 | * . 65 | * @return name 66 | **/ 67 | @Schema(description = "") 68 | public String getName() { 69 | return name; 70 | } 71 | 72 | /** 73 | * setName. 74 | **/ 75 | public void setName(String name) { 76 | this.name = name; 77 | } 78 | 79 | 80 | /** 81 | * type. 82 | * 83 | * @return DataField 84 | **/ 85 | public DataField type(String type) { 86 | this.type = type; 87 | return this; 88 | } 89 | 90 | /** 91 | * . 92 | * @return type 93 | **/ 94 | @Schema(description = "") 95 | public String getType() { 96 | return type; 97 | } 98 | 99 | /** 100 | * setType. 101 | **/ 102 | public void setType(String type) { 103 | this.type = type; 104 | } 105 | 106 | 107 | /** 108 | * Compares objects. 109 | * 110 | * @return true or false depending on comparison result. 111 | */ 112 | @Override 113 | public boolean equals(java.lang.Object o) { 114 | if (this == o) { 115 | return true; 116 | } 117 | if (o == null || getClass() != o.getClass()) { 118 | return false; 119 | } 120 | DataField dataField = (DataField) o; 121 | return Objects.equals(this.label, dataField.label) && 122 | Objects.equals(this.name, dataField.name) && 123 | Objects.equals(this.type, dataField.type); 124 | } 125 | 126 | /** 127 | * Returns the HashCode. 128 | */ 129 | @Override 130 | public int hashCode() { 131 | return Objects.hash(label, name, type); 132 | } 133 | 134 | 135 | /** 136 | * Converts the given object to string. 137 | */ 138 | @Override 139 | public String toString() { 140 | StringBuilder sb = new StringBuilder(); 141 | sb.append("class DataField {\n"); 142 | 143 | sb.append(" label: ").append(toIndentedString(label)).append("\n"); 144 | sb.append(" name: ").append(toIndentedString(name)).append("\n"); 145 | sb.append(" type: ").append(toIndentedString(type)).append("\n"); 146 | sb.append("}"); 147 | return sb.toString(); 148 | } 149 | 150 | /** 151 | * Convert the given object to string with each line indented by 4 spaces 152 | * (except the first line). 153 | */ 154 | private String toIndentedString(java.lang.Object o) { 155 | if (o == null) { 156 | return "null"; 157 | } 158 | return o.toString().replace("\n", "\n "); 159 | } 160 | 161 | } 162 | 163 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapTransferRequest.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Data used to transfer a clickwrap from one user to another.. 12 | * 13 | */ 14 | @Schema(description = "Data used to transfer a clickwrap from one user to another.") 15 | 16 | public class ClickwrapTransferRequest { 17 | @JsonProperty("transferFromUserId") 18 | private String transferFromUserId = null; 19 | 20 | @JsonProperty("transferToUserId") 21 | private String transferToUserId = null; 22 | 23 | 24 | /** 25 | * transferFromUserId. 26 | * 27 | * @return ClickwrapTransferRequest 28 | **/ 29 | public ClickwrapTransferRequest transferFromUserId(String transferFromUserId) { 30 | this.transferFromUserId = transferFromUserId; 31 | return this; 32 | } 33 | 34 | /** 35 | * ID of the user to transfer from. This property is required.. 36 | * @return transferFromUserId 37 | **/ 38 | @Schema(description = "ID of the user to transfer from. This property is required.") 39 | public String getTransferFromUserId() { 40 | return transferFromUserId; 41 | } 42 | 43 | /** 44 | * setTransferFromUserId. 45 | **/ 46 | public void setTransferFromUserId(String transferFromUserId) { 47 | this.transferFromUserId = transferFromUserId; 48 | } 49 | 50 | 51 | /** 52 | * transferToUserId. 53 | * 54 | * @return ClickwrapTransferRequest 55 | **/ 56 | public ClickwrapTransferRequest transferToUserId(String transferToUserId) { 57 | this.transferToUserId = transferToUserId; 58 | return this; 59 | } 60 | 61 | /** 62 | * ID of the user to transfer to. This property is required.. 63 | * @return transferToUserId 64 | **/ 65 | @Schema(description = "ID of the user to transfer to. This property is required.") 66 | public String getTransferToUserId() { 67 | return transferToUserId; 68 | } 69 | 70 | /** 71 | * setTransferToUserId. 72 | **/ 73 | public void setTransferToUserId(String transferToUserId) { 74 | this.transferToUserId = transferToUserId; 75 | } 76 | 77 | 78 | /** 79 | * Compares objects. 80 | * 81 | * @return true or false depending on comparison result. 82 | */ 83 | @Override 84 | public boolean equals(java.lang.Object o) { 85 | if (this == o) { 86 | return true; 87 | } 88 | if (o == null || getClass() != o.getClass()) { 89 | return false; 90 | } 91 | ClickwrapTransferRequest clickwrapTransferRequest = (ClickwrapTransferRequest) o; 92 | return Objects.equals(this.transferFromUserId, clickwrapTransferRequest.transferFromUserId) && 93 | Objects.equals(this.transferToUserId, clickwrapTransferRequest.transferToUserId); 94 | } 95 | 96 | /** 97 | * Returns the HashCode. 98 | */ 99 | @Override 100 | public int hashCode() { 101 | return Objects.hash(transferFromUserId, transferToUserId); 102 | } 103 | 104 | 105 | /** 106 | * Converts the given object to string. 107 | */ 108 | @Override 109 | public String toString() { 110 | StringBuilder sb = new StringBuilder(); 111 | sb.append("class ClickwrapTransferRequest {\n"); 112 | 113 | sb.append(" transferFromUserId: ").append(toIndentedString(transferFromUserId)).append("\n"); 114 | sb.append(" transferToUserId: ").append(toIndentedString(transferToUserId)).append("\n"); 115 | sb.append("}"); 116 | return sb.toString(); 117 | } 118 | 119 | /** 120 | * Convert the given object to string with each line indented by 4 spaces 121 | * (except the first line). 122 | */ 123 | private String toIndentedString(java.lang.Object o) { 124 | if (o == null) { 125 | return "null"; 126 | } 127 | return o.toString().replace("\n", "\n "); 128 | } 129 | 130 | } 131 | 132 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/client/ApiException.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.docusign.click.client; 4 | 5 | import java.util.Map; 6 | import java.util.List; 7 | 8 | 9 | 10 | /** 11 | * ApiException class. 12 | */ 13 | public class ApiException extends Exception { 14 | private int code = 0; 15 | private Map> responseHeaders = null; 16 | private String responseBody = null; 17 | 18 | /** 19 | * ApiException constructor. 20 | */ 21 | public ApiException() {} 22 | 23 | /** 24 | * ApiException constructor. 25 | * 26 | * @param throwable The Throwable type 27 | */ 28 | public ApiException(Throwable throwable) { 29 | super(throwable); 30 | } 31 | 32 | /** 33 | * ApiException constructor. 34 | * 35 | * @param message The string message 36 | */ 37 | public ApiException(String message) { 38 | super(message); 39 | } 40 | 41 | /** 42 | * ApiException constructor. 43 | * 44 | * @param message The string message 45 | * @param throwable The Throwable type 46 | * @param code The error code 47 | * @param responseHeaders The response headers 48 | * @param responseBody The body of response 49 | */ 50 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { 51 | super(message, throwable); 52 | this.code = code; 53 | this.responseHeaders = responseHeaders; 54 | this.responseBody = responseBody; 55 | } 56 | 57 | /** 58 | * ApiException constructor. 59 | * 60 | * @param message The string message 61 | * @param code The error code 62 | * @param responseHeaders The response headers 63 | * @param responseBody The body of response 64 | */ 65 | public ApiException(String message, int code, Map> responseHeaders, String responseBody) { 66 | this(message, (Throwable) null, code, responseHeaders, responseBody); 67 | } 68 | 69 | /** 70 | * ApiException constructor. 71 | * 72 | * @param message The string message 73 | * @param throwable The Throwable type 74 | * @param code The error code 75 | * @param responseHeaders The response headers 76 | */ 77 | public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { 78 | this(message, throwable, code, responseHeaders, null); 79 | } 80 | 81 | /** 82 | * ApiException constructor. 83 | * 84 | * @param code The error code 85 | * @param responseHeaders The response headers 86 | * @param responseBody The body of response 87 | */ 88 | public ApiException(int code, Map> responseHeaders, String responseBody) { 89 | this((String) null, (Throwable) null, code, responseHeaders, responseBody); 90 | } 91 | 92 | /** 93 | * ApiException constructor. 94 | * 95 | * @param code The error code 96 | * @param message The string message 97 | */ 98 | public ApiException(int code, String message) { 99 | super(message); 100 | this.code = code; 101 | } 102 | 103 | /** 104 | * ApiException constructor. 105 | * 106 | * @param code The error code 107 | * @param message The string message 108 | * @param responseHeaders The response headers 109 | * @param responseBody The body of response 110 | */ 111 | public ApiException(int code, String message, Map> responseHeaders, String responseBody) { 112 | this(code, message); 113 | this.responseHeaders = responseHeaders; 114 | this.responseBody = responseBody; 115 | } 116 | 117 | /** 118 | * Get the HTTP status code. 119 | * 120 | * @return HTTP status code 121 | */ 122 | public int getCode() { 123 | return code; 124 | } 125 | 126 | /** 127 | * Get the HTTP response headers. 128 | * 129 | * @return A map of list of string 130 | */ 131 | public Map> getResponseHeaders() { 132 | return responseHeaders; 133 | } 134 | 135 | /** 136 | * Get the HTTP response body. 137 | * 138 | * @return Response body in the form of string 139 | */ 140 | public String getResponseBody() { 141 | return responseBody; 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/BulkClickwrapRequest.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Data used to start a bulk agreements export.. 12 | * 13 | */ 14 | @Schema(description = "Data used to start a bulk agreements export.") 15 | 16 | public class BulkClickwrapRequest { 17 | @JsonProperty("fromDate") 18 | private Object fromDate = null; 19 | 20 | @JsonProperty("status") 21 | private String status = null; 22 | 23 | @JsonProperty("toDate") 24 | private Object toDate = null; 25 | 26 | 27 | /** 28 | * fromDate. 29 | * 30 | * @return BulkClickwrapRequest 31 | **/ 32 | public BulkClickwrapRequest fromDate(Object fromDate) { 33 | this.fromDate = fromDate; 34 | return this; 35 | } 36 | 37 | /** 38 | * The earliest date to return agreements from.. 39 | * @return fromDate 40 | **/ 41 | @Schema(description = "The earliest date to return agreements from.") 42 | public Object getFromDate() { 43 | return fromDate; 44 | } 45 | 46 | /** 47 | * setFromDate. 48 | **/ 49 | public void setFromDate(Object fromDate) { 50 | this.fromDate = fromDate; 51 | } 52 | 53 | 54 | /** 55 | * status. 56 | * 57 | * @return BulkClickwrapRequest 58 | **/ 59 | public BulkClickwrapRequest status(String status) { 60 | this.status = status; 61 | return this; 62 | } 63 | 64 | /** 65 | * User agreement status. One of: - `agreed` - `declined`. 66 | * @return status 67 | **/ 68 | @Schema(description = "User agreement status. One of: - `agreed` - `declined`") 69 | public String getStatus() { 70 | return status; 71 | } 72 | 73 | /** 74 | * setStatus. 75 | **/ 76 | public void setStatus(String status) { 77 | this.status = status; 78 | } 79 | 80 | 81 | /** 82 | * toDate. 83 | * 84 | * @return BulkClickwrapRequest 85 | **/ 86 | public BulkClickwrapRequest toDate(Object toDate) { 87 | this.toDate = toDate; 88 | return this; 89 | } 90 | 91 | /** 92 | * The latest date to return agreements from.. 93 | * @return toDate 94 | **/ 95 | @Schema(description = "The latest date to return agreements from.") 96 | public Object getToDate() { 97 | return toDate; 98 | } 99 | 100 | /** 101 | * setToDate. 102 | **/ 103 | public void setToDate(Object toDate) { 104 | this.toDate = toDate; 105 | } 106 | 107 | 108 | /** 109 | * Compares objects. 110 | * 111 | * @return true or false depending on comparison result. 112 | */ 113 | @Override 114 | public boolean equals(java.lang.Object o) { 115 | if (this == o) { 116 | return true; 117 | } 118 | if (o == null || getClass() != o.getClass()) { 119 | return false; 120 | } 121 | BulkClickwrapRequest bulkClickwrapRequest = (BulkClickwrapRequest) o; 122 | return Objects.equals(this.fromDate, bulkClickwrapRequest.fromDate) && 123 | Objects.equals(this.status, bulkClickwrapRequest.status) && 124 | Objects.equals(this.toDate, bulkClickwrapRequest.toDate); 125 | } 126 | 127 | /** 128 | * Returns the HashCode. 129 | */ 130 | @Override 131 | public int hashCode() { 132 | return Objects.hash(fromDate, status, toDate); 133 | } 134 | 135 | 136 | /** 137 | * Converts the given object to string. 138 | */ 139 | @Override 140 | public String toString() { 141 | StringBuilder sb = new StringBuilder(); 142 | sb.append("class BulkClickwrapRequest {\n"); 143 | 144 | sb.append(" fromDate: ").append(toIndentedString(fromDate)).append("\n"); 145 | sb.append(" status: ").append(toIndentedString(status)).append("\n"); 146 | sb.append(" toDate: ").append(toIndentedString(toDate)).append("\n"); 147 | sb.append("}"); 148 | return sb.toString(); 149 | } 150 | 151 | /** 152 | * Convert the given object to string with each line indented by 4 spaces 153 | * (except the first line). 154 | */ 155 | private String toIndentedString(java.lang.Object o) { 156 | if (o == null) { 157 | return "null"; 158 | } 159 | return o.toString().replace("\n", "\n "); 160 | } 161 | 162 | } 163 | 164 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Official DocuSign Click Java Client SDK 2 | 3 | [![Build status][travis-image]][travis-url] 4 | [![Maven Central status][maven-image]][maven-url] 5 | 6 | ## Requirements 7 | 8 | - Java 1.9+ 9 | - Free [developer account](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531) 10 | 11 | ## Compatibility 12 | 13 | - Java 1.9+ 14 | 15 | ## Installation 16 | 17 | 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 simply want to use the SDK with any of the examples shown in the [Developer Center](https://developers.docusign.com/docs/click-api/how-to/), you merely need to install it by following the instructions below. 18 | 19 | Note: DocuSign uses **Eclipse** with **Maven** for testing purposes. 20 | 21 | ### Maven: 22 | 23 | 1. In Eclipse, create a new project by selecting **File** -> **New** -> **Project**. 24 | 2. In the **New Project Wizard** , expand **Maven** , then select **Maven Project.** 25 | 3. Leave **Create a simple project** unchecked. 26 | 4. Select **Next** , then provide a unique **Group** and **Artifact Id**. 27 | 5. In the directory where you've saved your project, open the pom.xml file. 28 | 6. In the pom.xml file, locate the **dependencies** node. 29 | 7. Add: 30 | 31 | ``` 32 | 33 | com.docusign 34 | docusign-click-java 35 | 1.1.0 36 | 37 | ``` 38 | 39 | 8. If your project is still open, restart **Eclipse**. 40 | 41 | ## Dependencies 42 | 43 | This client has the following external dependencies: 44 | 45 | - io.swagger:swagger-annotations:jar:1.5.17 46 | - org.glassfish.jersey.core:jersey-client:jar:2.29.1 47 | - org.glassfish.jersey.media:jersey-media-multipart:jar:2.29.1 48 | - org.glassfish.jersey.media:jersey-media-json-jackson:2.29.1 49 | - com.fasterxml.jackson.core:jackson-core:jar:2.10.1 50 | - com.fasterxml.jackson.core:jackson-annotations:jar:2.10.1 51 | - com.fasterxml.jackson.core:jackson-databind:2.10.1 52 | - com.brsanthu:migbase64:2.2 53 | - junit:junit:jar:4.12 54 | - com.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.2 55 | - com.auth0:java-jwt:3.4.1 56 | - org.bouncycastle:bcprov-jdk15on:1.60 57 | 58 | ## Code examples 59 | 60 | DocuSign provides a sample application code referred to as a [Launcher](https://github.com/docusign/code-examples-java). The Launcher includes, in addition to eSignature and Rooms code examples, a set of code examples and associated source files for common Click use cases. These examples can use either the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) or [JSON Web Token (JWT) Grant](https://developers.docusign.com/platform/auth/jwt/) authentication flow. 61 | 62 | ## OAuth implementations 63 | 64 | For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [Choose OAuth Type](https://developers.docusign.com/platform/auth/choose/) guide located on the [DocuSign Developer Center](https://developers.docusign.com/). 65 | 66 | For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/platform/auth/authcode/) flow. 67 | 68 | ## Support 69 | 70 | Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi). 71 | 72 | ## License 73 | 74 | The DocuSign Click Java Client SDK is licensed under the [MIT License](https://github.com/docusign/docusign-click-java-client/blob 75 | /master/LICENSE). 76 | 77 | 78 | [travis-image]: https://img.shields.io/travis/docusign/docusign-click-java-client.svg?style=flat 79 | [travis-url]: https://travis-ci.org/docusign/docusign-click-java-client 80 | [maven-image]: https://img.shields.io/maven-central/v/com.docusign/docusign-click-java.svg?style=flat 81 | [maven-url]: https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.docusign%22 82 | 83 | ### Additional resources 84 | * [DocuSign Click API documentation](https://developers.docusign.com/docs/click-api) 85 | * [DocuSign Developer Center](https://developers.docusign.com) 86 | * [DocuSign API on Twitter](https://twitter.com/docusignapi) 87 | * [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/) 88 | * [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ) 89 | -------------------------------------------------------------------------------- /src/test/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=false 3 | annotation.processing.processors.list= 4 | annotation.processing.run.all.processors=true 5 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 6 | application.title=SdkTests 7 | application.vendor=mike.roseleip 8 | build.classes.dir=${build.dir}/classes 9 | build.classes.excludes=**/*.java,**/*.form 10 | # This directory is removed when the project is cleaned: 11 | build.dir=build 12 | build.generated.dir=${build.dir}/generated 13 | build.generated.sources.dir=${build.dir}/generated-sources 14 | # Only compile against the classpath explicitly listed here: 15 | build.sysclasspath=ignore 16 | build.test.classes.dir=${build.dir}/test/classes 17 | build.test.results.dir=${build.dir}/test/results 18 | # Uncomment to specify the preferred debugger connection transport: 19 | #debug.transport=dt_socket 20 | debug.classpath=\ 21 | ${run.classpath} 22 | debug.test.classpath=\ 23 | ${run.test.classpath} 24 | # Files in build.classes.dir which should be excluded from distribution jar 25 | dist.archive.excludes= 26 | # This directory is removed when the project is cleaned: 27 | dist.dir=dist 28 | dist.jar=${dist.dir}/SdkTests.jar 29 | dist.javadoc.dir=${dist.dir}/javadoc 30 | endorsed.classpath= 31 | excludes= 32 | file.reference.com.docusign.click-15.4.0.jar=../../sdk/target/com.docusign.click-15.4.0.jar 33 | file.reference.jackson-annotations-2.4.2.jar=../../sdk/target/lib/jackson-annotations-2.4.2.jar 34 | file.reference.jackson-core-2.4.2.jar=../../sdk/target/lib/jackson-core-2.4.2.jar 35 | file.reference.jackson-databind-2.4.2.jar=../../sdk/target/lib/jackson-databind-2.4.2.jar 36 | file.reference.jackson-jaxrs-base-2.4.2.jar=../../sdk/target/lib/jackson-jaxrs-base-2.4.2.jar 37 | file.reference.jackson-jaxrs-json-provider-2.4.2.jar=../../sdk/target/lib/jackson-jaxrs-json-provider-2.4.2.jar 38 | file.reference.jackson-module-jaxb-annotations-2.4.2.jar=../../sdk/target/lib/jackson-module-jaxb-annotations-2.4.2.jar 39 | file.reference.jersey-client-1.18.jar=../../sdk/target/lib/jersey-client-1.18.jar 40 | file.reference.jersey-core-1.18.jar=../../sdk/target/lib/jersey-core-1.18.jar 41 | file.reference.jersey-multipart-1.18.jar=../../sdk/target/lib/jersey-multipart-1.18.jar 42 | file.reference.junit-4.8.1.jar=../../sdk/target/lib/junit-4.8.1.jar 43 | file.reference.migbase64-2.2.jar=../../sdk/target/lib/migbase64-2.2.jar 44 | file.reference.mimepull-1.9.3.jar=../../sdk/target/lib/mimepull-1.9.3.jar 45 | includes=** 46 | jar.compress=false 47 | javac.classpath=\ 48 | ${file.reference.jackson-annotations-2.4.2.jar}:\ 49 | ${file.reference.jackson-core-2.4.2.jar}:\ 50 | ${file.reference.jackson-databind-2.4.2.jar}:\ 51 | ${file.reference.jersey-client-1.18.jar}:\ 52 | ${file.reference.jersey-core-1.18.jar}:\ 53 | ${file.reference.jersey-multipart-1.18.jar}:\ 54 | ${file.reference.junit-4.8.1.jar}:\ 55 | ${file.reference.mimepull-1.9.3.jar}:\ 56 | ${file.reference.jackson-jaxrs-base-2.4.2.jar}:\ 57 | ${file.reference.jackson-jaxrs-json-provider-2.4.2.jar}:\ 58 | ${file.reference.jackson-module-jaxb-annotations-2.4.2.jar}:\ 59 | ${file.reference.migbase64-2.2.jar}:\ 60 | ${file.reference.com.docusign.click-15.4.0.jar} 61 | # Space-separated list of extra javac options 62 | javac.compilerargs= 63 | javac.deprecation=false 64 | javac.processorpath=\ 65 | ${javac.classpath} 66 | javac.source=1.8 67 | javac.target=1.8 68 | javac.test.classpath=\ 69 | ${javac.classpath}:\ 70 | ${build.classes.dir}:\ 71 | ${libs.junit_4.classpath} 72 | javac.test.processorpath=\ 73 | ${javac.test.classpath} 74 | javadoc.additionalparam= 75 | javadoc.author=false 76 | javadoc.encoding=${source.encoding} 77 | javadoc.noindex=false 78 | javadoc.nonavbar=false 79 | javadoc.notree=false 80 | javadoc.private=false 81 | javadoc.splitindex=true 82 | javadoc.use=true 83 | javadoc.version=false 84 | javadoc.windowtitle= 85 | main.class= 86 | manifest.file=manifest.mf 87 | meta.inf.dir=${src.dir}/META-INF 88 | mkdist.disabled=false 89 | platform.active=default_platform 90 | run.classpath=\ 91 | ${javac.classpath}:\ 92 | ${build.classes.dir} 93 | # Space-separated list of JVM arguments used when running the project. 94 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. 95 | # To set system properties for unit tests define test-sys-prop.name=value: 96 | run.jvmargs= 97 | run.test.classpath=\ 98 | ${javac.test.classpath}:\ 99 | ${build.test.classes.dir} 100 | source.encoding=UTF-8 101 | src.dir=src 102 | test.src.dir=test 103 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapsResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ClickwrapSummaryResponse; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * ClickwrapsResponse 13 | */ 14 | 15 | public class ClickwrapsResponse { 16 | @JsonProperty("clickwraps") 17 | private java.util.List clickwraps = null; 18 | 19 | @JsonProperty("minimumPagesRemaining") 20 | private Integer minimumPagesRemaining = null; 21 | 22 | @JsonProperty("page") 23 | private Integer page = null; 24 | 25 | @JsonProperty("pageSize") 26 | private Integer pageSize = null; 27 | 28 | public ClickwrapsResponse clickwraps(java.util.List clickwraps) { 29 | this.clickwraps = clickwraps; 30 | return this; 31 | } 32 | 33 | public ClickwrapsResponse addClickwrapsItem(ClickwrapSummaryResponse clickwrapsItem) { 34 | if (this.clickwraps == null) { 35 | this.clickwraps = new java.util.ArrayList(); 36 | } 37 | this.clickwraps.add(clickwrapsItem); 38 | return this; 39 | } 40 | 41 | /** 42 | * 43 | * @return clickwraps 44 | **/ 45 | @Schema(description = "") 46 | public java.util.List getClickwraps() { 47 | return clickwraps; 48 | } 49 | 50 | public void setClickwraps(java.util.List clickwraps) { 51 | this.clickwraps = clickwraps; 52 | } 53 | 54 | public ClickwrapsResponse minimumPagesRemaining(Integer minimumPagesRemaining) { 55 | this.minimumPagesRemaining = minimumPagesRemaining; 56 | return this; 57 | } 58 | 59 | /** 60 | * 61 | * @return minimumPagesRemaining 62 | **/ 63 | @Schema(description = "") 64 | public Integer getMinimumPagesRemaining() { 65 | return minimumPagesRemaining; 66 | } 67 | 68 | public void setMinimumPagesRemaining(Integer minimumPagesRemaining) { 69 | this.minimumPagesRemaining = minimumPagesRemaining; 70 | } 71 | 72 | public ClickwrapsResponse page(Integer page) { 73 | this.page = page; 74 | return this; 75 | } 76 | 77 | /** 78 | * 79 | * @return page 80 | **/ 81 | @Schema(description = "") 82 | public Integer getPage() { 83 | return page; 84 | } 85 | 86 | public void setPage(Integer page) { 87 | this.page = page; 88 | } 89 | 90 | public ClickwrapsResponse pageSize(Integer pageSize) { 91 | this.pageSize = pageSize; 92 | return this; 93 | } 94 | 95 | /** 96 | * 97 | * @return pageSize 98 | **/ 99 | @Schema(description = "") 100 | public Integer getPageSize() { 101 | return pageSize; 102 | } 103 | 104 | public void setPageSize(Integer pageSize) { 105 | this.pageSize = pageSize; 106 | } 107 | 108 | 109 | @Override 110 | public boolean equals(java.lang.Object o) { 111 | if (this == o) { 112 | return true; 113 | } 114 | if (o == null || getClass() != o.getClass()) { 115 | return false; 116 | } 117 | ClickwrapsResponse clickwrapsResponse = (ClickwrapsResponse) o; 118 | return Objects.equals(this.clickwraps, clickwrapsResponse.clickwraps) && 119 | Objects.equals(this.minimumPagesRemaining, clickwrapsResponse.minimumPagesRemaining) && 120 | Objects.equals(this.page, clickwrapsResponse.page) && 121 | Objects.equals(this.pageSize, clickwrapsResponse.pageSize); 122 | } 123 | 124 | @Override 125 | public int hashCode() { 126 | return Objects.hash(clickwraps, minimumPagesRemaining, page, pageSize); 127 | } 128 | 129 | 130 | @Override 131 | public String toString() { 132 | StringBuilder sb = new StringBuilder(); 133 | sb.append("class ClickwrapsResponse {\n"); 134 | 135 | sb.append(" clickwraps: ").append(toIndentedString(clickwraps)).append("\n"); 136 | sb.append(" minimumPagesRemaining: ").append(toIndentedString(minimumPagesRemaining)).append("\n"); 137 | sb.append(" page: ").append(toIndentedString(page)).append("\n"); 138 | sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); 139 | sb.append("}"); 140 | return sb.toString(); 141 | } 142 | 143 | /** 144 | * Convert the given object to string with each line indented by 4 spaces 145 | * (except the first line). 146 | */ 147 | private String toIndentedString(java.lang.Object o) { 148 | if (o == null) { 149 | return "null"; 150 | } 151 | return o.toString().replace("\n", "\n "); 152 | } 153 | 154 | } 155 | 156 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapVersionsDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ClickwrapVersionDeleteResponse; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * ClickwrapVersionsDeleteResponse. 13 | * 14 | */ 15 | 16 | public class ClickwrapVersionsDeleteResponse { 17 | @JsonProperty("clickwrapId") 18 | private String clickwrapId = null; 19 | 20 | @JsonProperty("clickwrapName") 21 | private String clickwrapName = null; 22 | 23 | @JsonProperty("versions") 24 | private java.util.List versions = null; 25 | 26 | 27 | /** 28 | * clickwrapId. 29 | * 30 | * @return ClickwrapVersionsDeleteResponse 31 | **/ 32 | public ClickwrapVersionsDeleteResponse clickwrapId(String clickwrapId) { 33 | this.clickwrapId = clickwrapId; 34 | return this; 35 | } 36 | 37 | /** 38 | * The ID of the clickwrap.. 39 | * @return clickwrapId 40 | **/ 41 | @Schema(description = "The ID of the clickwrap.") 42 | public String getClickwrapId() { 43 | return clickwrapId; 44 | } 45 | 46 | /** 47 | * setClickwrapId. 48 | **/ 49 | public void setClickwrapId(String clickwrapId) { 50 | this.clickwrapId = clickwrapId; 51 | } 52 | 53 | 54 | /** 55 | * clickwrapName. 56 | * 57 | * @return ClickwrapVersionsDeleteResponse 58 | **/ 59 | public ClickwrapVersionsDeleteResponse clickwrapName(String clickwrapName) { 60 | this.clickwrapName = clickwrapName; 61 | return this; 62 | } 63 | 64 | /** 65 | * The name of the clickwrap.. 66 | * @return clickwrapName 67 | **/ 68 | @Schema(description = "The name of the clickwrap.") 69 | public String getClickwrapName() { 70 | return clickwrapName; 71 | } 72 | 73 | /** 74 | * setClickwrapName. 75 | **/ 76 | public void setClickwrapName(String clickwrapName) { 77 | this.clickwrapName = clickwrapName; 78 | } 79 | 80 | 81 | /** 82 | * versions. 83 | * 84 | * @return ClickwrapVersionsDeleteResponse 85 | **/ 86 | public ClickwrapVersionsDeleteResponse versions(java.util.List versions) { 87 | this.versions = versions; 88 | return this; 89 | } 90 | 91 | /** 92 | * addVersionsItem. 93 | * 94 | * @return ClickwrapVersionsDeleteResponse 95 | **/ 96 | public ClickwrapVersionsDeleteResponse addVersionsItem(ClickwrapVersionDeleteResponse versionsItem) { 97 | if (this.versions == null) { 98 | this.versions = new java.util.ArrayList<>(); 99 | } 100 | this.versions.add(versionsItem); 101 | return this; 102 | } 103 | 104 | /** 105 | * An array of delete responses.. 106 | * @return versions 107 | **/ 108 | @Schema(description = "An array of delete responses.") 109 | public java.util.List getVersions() { 110 | return versions; 111 | } 112 | 113 | /** 114 | * setVersions. 115 | **/ 116 | public void setVersions(java.util.List versions) { 117 | this.versions = versions; 118 | } 119 | 120 | 121 | /** 122 | * Compares objects. 123 | * 124 | * @return true or false depending on comparison result. 125 | */ 126 | @Override 127 | public boolean equals(java.lang.Object o) { 128 | if (this == o) { 129 | return true; 130 | } 131 | if (o == null || getClass() != o.getClass()) { 132 | return false; 133 | } 134 | ClickwrapVersionsDeleteResponse clickwrapVersionsDeleteResponse = (ClickwrapVersionsDeleteResponse) o; 135 | return Objects.equals(this.clickwrapId, clickwrapVersionsDeleteResponse.clickwrapId) && 136 | Objects.equals(this.clickwrapName, clickwrapVersionsDeleteResponse.clickwrapName) && 137 | Objects.equals(this.versions, clickwrapVersionsDeleteResponse.versions); 138 | } 139 | 140 | /** 141 | * Returns the HashCode. 142 | */ 143 | @Override 144 | public int hashCode() { 145 | return Objects.hash(clickwrapId, clickwrapName, versions); 146 | } 147 | 148 | 149 | /** 150 | * Converts the given object to string. 151 | */ 152 | @Override 153 | public String toString() { 154 | StringBuilder sb = new StringBuilder(); 155 | sb.append("class ClickwrapVersionsDeleteResponse {\n"); 156 | 157 | sb.append(" clickwrapId: ").append(toIndentedString(clickwrapId)).append("\n"); 158 | sb.append(" clickwrapName: ").append(toIndentedString(clickwrapName)).append("\n"); 159 | sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); 160 | sb.append("}"); 161 | return sb.toString(); 162 | } 163 | 164 | /** 165 | * Convert the given object to string with each line indented by 4 spaces 166 | * (except the first line). 167 | */ 168 | private String toIndentedString(java.lang.Object o) { 169 | if (o == null) { 170 | return "null"; 171 | } 172 | return o.toString().replace("\n", "\n "); 173 | } 174 | 175 | } 176 | 177 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapScheduledReacceptance.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * ClickwrapScheduledReacceptance. 12 | * 13 | */ 14 | 15 | public class ClickwrapScheduledReacceptance { 16 | @JsonProperty("recurrenceInterval") 17 | private Integer recurrenceInterval = null; 18 | 19 | @JsonProperty("recurrenceIntervalType") 20 | private String recurrenceIntervalType = null; 21 | 22 | @JsonProperty("startDateTime") 23 | private Object startDateTime = null; 24 | 25 | 26 | /** 27 | * recurrenceInterval. 28 | * 29 | * @return ClickwrapScheduledReacceptance 30 | **/ 31 | public ClickwrapScheduledReacceptance recurrenceInterval(Integer recurrenceInterval) { 32 | this.recurrenceInterval = recurrenceInterval; 33 | return this; 34 | } 35 | 36 | /** 37 | * The time between recurrences specified in `recurrenceIntervalType` units. The minimum and maximum values depend on `recurrenceIntervalType`: - `days`: 1 - 365 - `weeks`: 1 - 52 - `months`: 1 - 12 - `years`: 1. 38 | * @return recurrenceInterval 39 | **/ 40 | @Schema(description = "The time between recurrences specified in `recurrenceIntervalType` units. The minimum and maximum values depend on `recurrenceIntervalType`: - `days`: 1 - 365 - `weeks`: 1 - 52 - `months`: 1 - 12 - `years`: 1") 41 | public Integer getRecurrenceInterval() { 42 | return recurrenceInterval; 43 | } 44 | 45 | /** 46 | * setRecurrenceInterval. 47 | **/ 48 | public void setRecurrenceInterval(Integer recurrenceInterval) { 49 | this.recurrenceInterval = recurrenceInterval; 50 | } 51 | 52 | 53 | /** 54 | * recurrenceIntervalType. 55 | * 56 | * @return ClickwrapScheduledReacceptance 57 | **/ 58 | public ClickwrapScheduledReacceptance recurrenceIntervalType(String recurrenceIntervalType) { 59 | this.recurrenceIntervalType = recurrenceIntervalType; 60 | return this; 61 | } 62 | 63 | /** 64 | * The units of the `recurrenceInterval`. Must be one of: - `days` - `weeks` - `month` - `years` . 65 | * @return recurrenceIntervalType 66 | **/ 67 | @Schema(description = "The units of the `recurrenceInterval`. Must be one of: - `days` - `weeks` - `month` - `years` ") 68 | public String getRecurrenceIntervalType() { 69 | return recurrenceIntervalType; 70 | } 71 | 72 | /** 73 | * setRecurrenceIntervalType. 74 | **/ 75 | public void setRecurrenceIntervalType(String recurrenceIntervalType) { 76 | this.recurrenceIntervalType = recurrenceIntervalType; 77 | } 78 | 79 | 80 | /** 81 | * startDateTime. 82 | * 83 | * @return ClickwrapScheduledReacceptance 84 | **/ 85 | public ClickwrapScheduledReacceptance startDateTime(Object startDateTime) { 86 | this.startDateTime = startDateTime; 87 | return this; 88 | } 89 | 90 | /** 91 | * The date when the recurrence interval starts.. 92 | * @return startDateTime 93 | **/ 94 | @Schema(description = "The date when the recurrence interval starts.") 95 | public Object getStartDateTime() { 96 | return startDateTime; 97 | } 98 | 99 | /** 100 | * setStartDateTime. 101 | **/ 102 | public void setStartDateTime(Object startDateTime) { 103 | this.startDateTime = startDateTime; 104 | } 105 | 106 | 107 | /** 108 | * Compares objects. 109 | * 110 | * @return true or false depending on comparison result. 111 | */ 112 | @Override 113 | public boolean equals(java.lang.Object o) { 114 | if (this == o) { 115 | return true; 116 | } 117 | if (o == null || getClass() != o.getClass()) { 118 | return false; 119 | } 120 | ClickwrapScheduledReacceptance clickwrapScheduledReacceptance = (ClickwrapScheduledReacceptance) o; 121 | return Objects.equals(this.recurrenceInterval, clickwrapScheduledReacceptance.recurrenceInterval) && 122 | Objects.equals(this.recurrenceIntervalType, clickwrapScheduledReacceptance.recurrenceIntervalType) && 123 | Objects.equals(this.startDateTime, clickwrapScheduledReacceptance.startDateTime); 124 | } 125 | 126 | /** 127 | * Returns the HashCode. 128 | */ 129 | @Override 130 | public int hashCode() { 131 | return Objects.hash(recurrenceInterval, recurrenceIntervalType, startDateTime); 132 | } 133 | 134 | 135 | /** 136 | * Converts the given object to string. 137 | */ 138 | @Override 139 | public String toString() { 140 | StringBuilder sb = new StringBuilder(); 141 | sb.append("class ClickwrapScheduledReacceptance {\n"); 142 | 143 | sb.append(" recurrenceInterval: ").append(toIndentedString(recurrenceInterval)).append("\n"); 144 | sb.append(" recurrenceIntervalType: ").append(toIndentedString(recurrenceIntervalType)).append("\n"); 145 | sb.append(" startDateTime: ").append(toIndentedString(startDateTime)).append("\n"); 146 | sb.append("}"); 147 | return sb.toString(); 148 | } 149 | 150 | /** 151 | * Convert the given object to string with each line indented by 4 spaces 152 | * (except the first line). 153 | */ 154 | private String toIndentedString(java.lang.Object o) { 155 | if (o == null) { 156 | return "null"; 157 | } 158 | return o.toString().replace("\n", "\n "); 159 | } 160 | 161 | } 162 | 163 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ContainerStyles.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Control the overall clickwrap container and inherited styles such as font.. 12 | * 13 | */ 14 | @Schema(description = "Control the overall clickwrap container and inherited styles such as font.") 15 | 16 | public class ContainerStyles { 17 | @JsonProperty("backgroundColor") 18 | private String backgroundColor = null; 19 | 20 | @JsonProperty("borderColor") 21 | private String borderColor = null; 22 | 23 | @JsonProperty("borderRadius") 24 | private String borderRadius = null; 25 | 26 | @JsonProperty("borderStyle") 27 | private String borderStyle = null; 28 | 29 | @JsonProperty("borderWidth") 30 | private String borderWidth = null; 31 | 32 | 33 | /** 34 | * backgroundColor. 35 | * 36 | * @return ContainerStyles 37 | **/ 38 | public ContainerStyles backgroundColor(String backgroundColor) { 39 | this.backgroundColor = backgroundColor; 40 | return this; 41 | } 42 | 43 | /** 44 | * This will be restricted to values not equal to: 'transparent', 'none'. 45 | * @return backgroundColor 46 | **/ 47 | @Schema(description = "This will be restricted to values not equal to: 'transparent', 'none'") 48 | public String getBackgroundColor() { 49 | return backgroundColor; 50 | } 51 | 52 | /** 53 | * setBackgroundColor. 54 | **/ 55 | public void setBackgroundColor(String backgroundColor) { 56 | this.backgroundColor = backgroundColor; 57 | } 58 | 59 | 60 | /** 61 | * borderColor. 62 | * 63 | * @return ContainerStyles 64 | **/ 65 | public ContainerStyles borderColor(String borderColor) { 66 | this.borderColor = borderColor; 67 | return this; 68 | } 69 | 70 | /** 71 | * Adjust the border color of the clickwrap surrouding container.. 72 | * @return borderColor 73 | **/ 74 | @Schema(description = "Adjust the border color of the clickwrap surrouding container.") 75 | public String getBorderColor() { 76 | return borderColor; 77 | } 78 | 79 | /** 80 | * setBorderColor. 81 | **/ 82 | public void setBorderColor(String borderColor) { 83 | this.borderColor = borderColor; 84 | } 85 | 86 | 87 | /** 88 | * borderRadius. 89 | * 90 | * @return ContainerStyles 91 | **/ 92 | public ContainerStyles borderRadius(String borderRadius) { 93 | this.borderRadius = borderRadius; 94 | return this; 95 | } 96 | 97 | /** 98 | * Adjust the border radius of the clickwrap surrouding container.. 99 | * @return borderRadius 100 | **/ 101 | @Schema(description = "Adjust the border radius of the clickwrap surrouding container.") 102 | public String getBorderRadius() { 103 | return borderRadius; 104 | } 105 | 106 | /** 107 | * setBorderRadius. 108 | **/ 109 | public void setBorderRadius(String borderRadius) { 110 | this.borderRadius = borderRadius; 111 | } 112 | 113 | 114 | /** 115 | * borderStyle. 116 | * 117 | * @return ContainerStyles 118 | **/ 119 | public ContainerStyles borderStyle(String borderStyle) { 120 | this.borderStyle = borderStyle; 121 | return this; 122 | } 123 | 124 | /** 125 | * Adjust the border style of the clickwrap surrouding container.. 126 | * @return borderStyle 127 | **/ 128 | @Schema(description = "Adjust the border style of the clickwrap surrouding container.") 129 | public String getBorderStyle() { 130 | return borderStyle; 131 | } 132 | 133 | /** 134 | * setBorderStyle. 135 | **/ 136 | public void setBorderStyle(String borderStyle) { 137 | this.borderStyle = borderStyle; 138 | } 139 | 140 | 141 | /** 142 | * borderWidth. 143 | * 144 | * @return ContainerStyles 145 | **/ 146 | public ContainerStyles borderWidth(String borderWidth) { 147 | this.borderWidth = borderWidth; 148 | return this; 149 | } 150 | 151 | /** 152 | * Adjust the border width of the clickwrap surrouding container.. 153 | * @return borderWidth 154 | **/ 155 | @Schema(description = "Adjust the border width of the clickwrap surrouding container.") 156 | public String getBorderWidth() { 157 | return borderWidth; 158 | } 159 | 160 | /** 161 | * setBorderWidth. 162 | **/ 163 | public void setBorderWidth(String borderWidth) { 164 | this.borderWidth = borderWidth; 165 | } 166 | 167 | 168 | /** 169 | * Compares objects. 170 | * 171 | * @return true or false depending on comparison result. 172 | */ 173 | @Override 174 | public boolean equals(java.lang.Object o) { 175 | if (this == o) { 176 | return true; 177 | } 178 | if (o == null || getClass() != o.getClass()) { 179 | return false; 180 | } 181 | ContainerStyles containerStyles = (ContainerStyles) o; 182 | return Objects.equals(this.backgroundColor, containerStyles.backgroundColor) && 183 | Objects.equals(this.borderColor, containerStyles.borderColor) && 184 | Objects.equals(this.borderRadius, containerStyles.borderRadius) && 185 | Objects.equals(this.borderStyle, containerStyles.borderStyle) && 186 | Objects.equals(this.borderWidth, containerStyles.borderWidth); 187 | } 188 | 189 | /** 190 | * Returns the HashCode. 191 | */ 192 | @Override 193 | public int hashCode() { 194 | return Objects.hash(backgroundColor, borderColor, borderRadius, borderStyle, borderWidth); 195 | } 196 | 197 | 198 | /** 199 | * Converts the given object to string. 200 | */ 201 | @Override 202 | public String toString() { 203 | StringBuilder sb = new StringBuilder(); 204 | sb.append("class ContainerStyles {\n"); 205 | 206 | sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n"); 207 | sb.append(" borderColor: ").append(toIndentedString(borderColor)).append("\n"); 208 | sb.append(" borderRadius: ").append(toIndentedString(borderRadius)).append("\n"); 209 | sb.append(" borderStyle: ").append(toIndentedString(borderStyle)).append("\n"); 210 | sb.append(" borderWidth: ").append(toIndentedString(borderWidth)).append("\n"); 211 | sb.append("}"); 212 | return sb.toString(); 213 | } 214 | 215 | /** 216 | * Convert the given object to string with each line indented by 4 spaces 217 | * (except the first line). 218 | */ 219 | private String toIndentedString(java.lang.Object o) { 220 | if (o == null) { 221 | return "null"; 222 | } 223 | return o.toString().replace("\n", "\n "); 224 | } 225 | 226 | } 227 | 228 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapVersionsResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ClickwrapVersionSummaryResponse; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * The results are paginated. Use the following properties to navigate the pages. Use the `page_number` query parameter to specify a page. - `page`: The page number of the current results. - `pageSize`: The number of results in the current page. - `minimumPagesRemaining`: The number of pages that follow this one. . 13 | * 14 | */ 15 | @Schema(description = "The results are paginated. Use the following properties to navigate the pages. Use the `page_number` query parameter to specify a page. - `page`: The page number of the current results. - `pageSize`: The number of results in the current page. - `minimumPagesRemaining`: The number of pages that follow this one. ") 16 | 17 | public class ClickwrapVersionsResponse { 18 | @JsonProperty("clickwraps") 19 | private java.util.List clickwraps = null; 20 | 21 | @JsonProperty("minimumPagesRemaining") 22 | private Integer minimumPagesRemaining = null; 23 | 24 | @JsonProperty("page") 25 | private Integer page = null; 26 | 27 | @JsonProperty("pageSize") 28 | private Integer pageSize = null; 29 | 30 | 31 | /** 32 | * clickwraps. 33 | * 34 | * @return ClickwrapVersionsResponse 35 | **/ 36 | public ClickwrapVersionsResponse clickwraps(java.util.List clickwraps) { 37 | this.clickwraps = clickwraps; 38 | return this; 39 | } 40 | 41 | /** 42 | * addClickwrapsItem. 43 | * 44 | * @return ClickwrapVersionsResponse 45 | **/ 46 | public ClickwrapVersionsResponse addClickwrapsItem(ClickwrapVersionSummaryResponse clickwrapsItem) { 47 | if (this.clickwraps == null) { 48 | this.clickwraps = new java.util.ArrayList<>(); 49 | } 50 | this.clickwraps.add(clickwrapsItem); 51 | return this; 52 | } 53 | 54 | /** 55 | * An array of `clickwrapVersionSummaryResponse` objects.. 56 | * @return clickwraps 57 | **/ 58 | @Schema(description = "An array of `clickwrapVersionSummaryResponse` objects.") 59 | public java.util.List getClickwraps() { 60 | return clickwraps; 61 | } 62 | 63 | /** 64 | * setClickwraps. 65 | **/ 66 | public void setClickwraps(java.util.List clickwraps) { 67 | this.clickwraps = clickwraps; 68 | } 69 | 70 | 71 | /** 72 | * minimumPagesRemaining. 73 | * 74 | * @return ClickwrapVersionsResponse 75 | **/ 76 | public ClickwrapVersionsResponse minimumPagesRemaining(Integer minimumPagesRemaining) { 77 | this.minimumPagesRemaining = minimumPagesRemaining; 78 | return this; 79 | } 80 | 81 | /** 82 | * Number of pages remaining in the response.. 83 | * @return minimumPagesRemaining 84 | **/ 85 | @Schema(description = "Number of pages remaining in the response.") 86 | public Integer getMinimumPagesRemaining() { 87 | return minimumPagesRemaining; 88 | } 89 | 90 | /** 91 | * setMinimumPagesRemaining. 92 | **/ 93 | public void setMinimumPagesRemaining(Integer minimumPagesRemaining) { 94 | this.minimumPagesRemaining = minimumPagesRemaining; 95 | } 96 | 97 | 98 | /** 99 | * page. 100 | * 101 | * @return ClickwrapVersionsResponse 102 | **/ 103 | public ClickwrapVersionsResponse page(Integer page) { 104 | this.page = page; 105 | return this; 106 | } 107 | 108 | /** 109 | * The number of the current page.. 110 | * @return page 111 | **/ 112 | @Schema(description = "The number of the current page.") 113 | public Integer getPage() { 114 | return page; 115 | } 116 | 117 | /** 118 | * setPage. 119 | **/ 120 | public void setPage(Integer page) { 121 | this.page = page; 122 | } 123 | 124 | 125 | /** 126 | * pageSize. 127 | * 128 | * @return ClickwrapVersionsResponse 129 | **/ 130 | public ClickwrapVersionsResponse pageSize(Integer pageSize) { 131 | this.pageSize = pageSize; 132 | return this; 133 | } 134 | 135 | /** 136 | * The number of items per page.. 137 | * @return pageSize 138 | **/ 139 | @Schema(description = "The number of items per page.") 140 | public Integer getPageSize() { 141 | return pageSize; 142 | } 143 | 144 | /** 145 | * setPageSize. 146 | **/ 147 | public void setPageSize(Integer pageSize) { 148 | this.pageSize = pageSize; 149 | } 150 | 151 | 152 | /** 153 | * Compares objects. 154 | * 155 | * @return true or false depending on comparison result. 156 | */ 157 | @Override 158 | public boolean equals(java.lang.Object o) { 159 | if (this == o) { 160 | return true; 161 | } 162 | if (o == null || getClass() != o.getClass()) { 163 | return false; 164 | } 165 | ClickwrapVersionsResponse clickwrapVersionsResponse = (ClickwrapVersionsResponse) o; 166 | return Objects.equals(this.clickwraps, clickwrapVersionsResponse.clickwraps) && 167 | Objects.equals(this.minimumPagesRemaining, clickwrapVersionsResponse.minimumPagesRemaining) && 168 | Objects.equals(this.page, clickwrapVersionsResponse.page) && 169 | Objects.equals(this.pageSize, clickwrapVersionsResponse.pageSize); 170 | } 171 | 172 | /** 173 | * Returns the HashCode. 174 | */ 175 | @Override 176 | public int hashCode() { 177 | return Objects.hash(clickwraps, minimumPagesRemaining, page, pageSize); 178 | } 179 | 180 | 181 | /** 182 | * Converts the given object to string. 183 | */ 184 | @Override 185 | public String toString() { 186 | StringBuilder sb = new StringBuilder(); 187 | sb.append("class ClickwrapVersionsResponse {\n"); 188 | 189 | sb.append(" clickwraps: ").append(toIndentedString(clickwraps)).append("\n"); 190 | sb.append(" minimumPagesRemaining: ").append(toIndentedString(minimumPagesRemaining)).append("\n"); 191 | sb.append(" page: ").append(toIndentedString(page)).append("\n"); 192 | sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); 193 | sb.append("}"); 194 | return sb.toString(); 195 | } 196 | 197 | /** 198 | * Convert the given object to string with each line indented by 4 spaces 199 | * (except the first line). 200 | */ 201 | private String toIndentedString(java.lang.Object o) { 202 | if (o == null) { 203 | return "null"; 204 | } 205 | return o.toString().replace("\n", "\n "); 206 | } 207 | 208 | } 209 | 210 | -------------------------------------------------------------------------------- /stylesheets/stylesheet.css: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; } 3 | 4 | body { 5 | padding: 0; 6 | margin: 0; 7 | font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 8 | font-size: 16px; 9 | line-height: 1.5; 10 | color: #606c71; } 11 | 12 | a { 13 | color: #1e6bb8; 14 | text-decoration: none; } 15 | a:hover { 16 | text-decoration: underline; } 17 | 18 | .btn { 19 | display: inline-block; 20 | margin-bottom: 1rem; 21 | color: rgba(255, 255, 255, 0.7); 22 | background-color: rgba(255, 255, 255, 0.08); 23 | border-color: rgba(255, 255, 255, 0.2); 24 | border-style: solid; 25 | border-width: 1px; 26 | border-radius: 0.3rem; 27 | transition: color 0.2s, background-color 0.2s, border-color 0.2s; } 28 | .btn + .btn { 29 | margin-left: 1rem; } 30 | 31 | .btn:hover { 32 | color: rgba(255, 255, 255, 0.8); 33 | text-decoration: none; 34 | background-color: rgba(255, 255, 255, 0.2); 35 | border-color: rgba(255, 255, 255, 0.3); } 36 | 37 | @media screen and (min-width: 64em) { 38 | .btn { 39 | padding: 0.75rem 1rem; } } 40 | 41 | @media screen and (min-width: 42em) and (max-width: 64em) { 42 | .btn { 43 | padding: 0.6rem 0.9rem; 44 | font-size: 0.9rem; } } 45 | 46 | @media screen and (max-width: 42em) { 47 | .btn { 48 | display: block; 49 | width: 100%; 50 | padding: 0.75rem; 51 | font-size: 0.9rem; } 52 | .btn + .btn { 53 | margin-top: 1rem; 54 | margin-left: 0; } } 55 | 56 | .page-header { 57 | color: #fff; 58 | text-align: center; 59 | background-color: #159957; 60 | background-image: linear-gradient(120deg, #155799, #159957); } 61 | 62 | @media screen and (min-width: 64em) { 63 | .page-header { 64 | padding: 5rem 6rem; } } 65 | 66 | @media screen and (min-width: 42em) and (max-width: 64em) { 67 | .page-header { 68 | padding: 3rem 4rem; } } 69 | 70 | @media screen and (max-width: 42em) { 71 | .page-header { 72 | padding: 2rem 1rem; } } 73 | 74 | .project-name { 75 | margin-top: 0; 76 | margin-bottom: 0.1rem; } 77 | 78 | @media screen and (min-width: 64em) { 79 | .project-name { 80 | font-size: 3.25rem; } } 81 | 82 | @media screen and (min-width: 42em) and (max-width: 64em) { 83 | .project-name { 84 | font-size: 2.25rem; } } 85 | 86 | @media screen and (max-width: 42em) { 87 | .project-name { 88 | font-size: 1.75rem; } } 89 | 90 | .project-tagline { 91 | margin-bottom: 2rem; 92 | font-weight: normal; 93 | opacity: 0.7; } 94 | 95 | @media screen and (min-width: 64em) { 96 | .project-tagline { 97 | font-size: 1.25rem; } } 98 | 99 | @media screen and (min-width: 42em) and (max-width: 64em) { 100 | .project-tagline { 101 | font-size: 1.15rem; } } 102 | 103 | @media screen and (max-width: 42em) { 104 | .project-tagline { 105 | font-size: 1rem; } } 106 | 107 | .main-content :first-child { 108 | margin-top: 0; } 109 | .main-content img { 110 | max-width: 100%; } 111 | .main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 { 112 | margin-top: 2rem; 113 | margin-bottom: 1rem; 114 | font-weight: normal; 115 | color: #159957; } 116 | .main-content p { 117 | margin-bottom: 1em; } 118 | .main-content code { 119 | padding: 2px 4px; 120 | font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; 121 | font-size: 0.9rem; 122 | color: #383e41; 123 | background-color: #f3f6fa; 124 | border-radius: 0.3rem; } 125 | .main-content pre { 126 | padding: 0.8rem; 127 | margin-top: 0; 128 | margin-bottom: 1rem; 129 | font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; 130 | color: #567482; 131 | word-wrap: normal; 132 | background-color: #f3f6fa; 133 | border: solid 1px #dce6f0; 134 | border-radius: 0.3rem; } 135 | .main-content pre > code { 136 | padding: 0; 137 | margin: 0; 138 | font-size: 0.9rem; 139 | color: #567482; 140 | word-break: normal; 141 | white-space: pre; 142 | background: transparent; 143 | border: 0; } 144 | .main-content .highlight { 145 | margin-bottom: 1rem; } 146 | .main-content .highlight pre { 147 | margin-bottom: 0; 148 | word-break: normal; } 149 | .main-content .highlight pre, .main-content pre { 150 | padding: 0.8rem; 151 | overflow: auto; 152 | font-size: 0.9rem; 153 | line-height: 1.45; 154 | border-radius: 0.3rem; } 155 | .main-content pre code, .main-content pre tt { 156 | display: inline; 157 | max-width: initial; 158 | padding: 0; 159 | margin: 0; 160 | overflow: initial; 161 | line-height: inherit; 162 | word-wrap: normal; 163 | background-color: transparent; 164 | border: 0; } 165 | .main-content pre code:before, .main-content pre code:after, .main-content pre tt:before, .main-content pre tt:after { 166 | content: normal; } 167 | .main-content ul, .main-content ol { 168 | margin-top: 0; } 169 | .main-content blockquote { 170 | padding: 0 1rem; 171 | margin-left: 0; 172 | color: #819198; 173 | border-left: 0.3rem solid #dce6f0; } 174 | .main-content blockquote > :first-child { 175 | margin-top: 0; } 176 | .main-content blockquote > :last-child { 177 | margin-bottom: 0; } 178 | .main-content table { 179 | display: block; 180 | width: 100%; 181 | overflow: auto; 182 | word-break: normal; 183 | word-break: keep-all; } 184 | .main-content table th { 185 | font-weight: bold; } 186 | .main-content table th, .main-content table td { 187 | padding: 0.5rem 1rem; 188 | border: 1px solid #e9ebec; } 189 | .main-content dl { 190 | padding: 0; } 191 | .main-content dl dt { 192 | padding: 0; 193 | margin-top: 1rem; 194 | font-size: 1rem; 195 | font-weight: bold; } 196 | .main-content dl dd { 197 | padding: 0; 198 | margin-bottom: 1rem; } 199 | .main-content hr { 200 | height: 2px; 201 | padding: 0; 202 | margin: 1rem 0; 203 | background-color: #eff0f1; 204 | border: 0; } 205 | 206 | @media screen and (min-width: 64em) { 207 | .main-content { 208 | max-width: 64rem; 209 | padding: 2rem 6rem; 210 | margin: 0 auto; 211 | font-size: 1.1rem; } } 212 | 213 | @media screen and (min-width: 42em) and (max-width: 64em) { 214 | .main-content { 215 | padding: 2rem 4rem; 216 | font-size: 1.1rem; } } 217 | 218 | @media screen and (max-width: 42em) { 219 | .main-content { 220 | padding: 2rem 1rem; 221 | font-size: 1rem; } } 222 | 223 | .site-footer { 224 | padding-top: 2rem; 225 | margin-top: 2rem; 226 | border-top: solid 1px #eff0f1; } 227 | 228 | .site-footer-owner { 229 | display: block; 230 | font-weight: bold; } 231 | 232 | .site-footer-credits { 233 | color: #819198; } 234 | 235 | @media screen and (min-width: 64em) { 236 | .site-footer { 237 | font-size: 1rem; } } 238 | 239 | @media screen and (min-width: 42em) and (max-width: 64em) { 240 | .site-footer { 241 | font-size: 1rem; } } 242 | 243 | @media screen and (max-width: 42em) { 244 | .site-footer { 245 | font-size: 0.9rem; } } 246 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/UserAgreementRequest.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Data used to create the agreement.. 12 | * 13 | */ 14 | @Schema(description = "Data used to create the agreement.") 15 | 16 | public class UserAgreementRequest { 17 | @JsonProperty("clientUserId") 18 | private String clientUserId = null; 19 | 20 | @JsonProperty("documentData") 21 | private java.util.Map documentData = null; 22 | 23 | @JsonProperty("metadata") 24 | private String metadata = null; 25 | 26 | @JsonProperty("returnUrl") 27 | private String returnUrl = null; 28 | 29 | 30 | /** 31 | * clientUserId. 32 | * 33 | * @return UserAgreementRequest 34 | **/ 35 | public UserAgreementRequest clientUserId(String clientUserId) { 36 | this.clientUserId = clientUserId; 37 | return this; 38 | } 39 | 40 | /** 41 | * A unique value that identifies a user. You can use anything that your system uses to identify unique users, such as employee IDs, email addresses, and surrogate keys as the value of `clientUserId`. A clickwrap with a specific `clientUserId` will not appear again once it has been accepted. . 42 | * @return clientUserId 43 | **/ 44 | @Schema(description = "A unique value that identifies a user. You can use anything that your system uses to identify unique users, such as employee IDs, email addresses, and surrogate keys as the value of `clientUserId`. A clickwrap with a specific `clientUserId` will not appear again once it has been accepted. ") 45 | public String getClientUserId() { 46 | return clientUserId; 47 | } 48 | 49 | /** 50 | * setClientUserId. 51 | **/ 52 | public void setClientUserId(String clientUserId) { 53 | this.clientUserId = clientUserId; 54 | } 55 | 56 | 57 | /** 58 | * documentData. 59 | * 60 | * @return UserAgreementRequest 61 | **/ 62 | public UserAgreementRequest documentData(java.util.Map documentData) { 63 | this.documentData = documentData; 64 | return this; 65 | } 66 | 67 | /** 68 | * putDocumentDataItem. 69 | * 70 | * @return UserAgreementRequest 71 | **/ 72 | public UserAgreementRequest putDocumentDataItem(String key, String documentDataItem) { 73 | if (this.documentData == null) { 74 | this.documentData = new java.util.HashMap<>(); 75 | } 76 | this.documentData.put(key, documentDataItem); 77 | return this; 78 | } 79 | 80 | /** 81 | * This property specifies the data used to create a clickwrap with [dynamic content][]. [dynamic content]: /docs/click-api/click101/customize-clickwrap-fields/#embed-clickwraps-that-contain-dynamic-content . 82 | * @return documentData 83 | **/ 84 | @Schema(description = "This property specifies the data used to create a clickwrap with [dynamic content][]. [dynamic content]: /docs/click-api/click101/customize-clickwrap-fields/#embed-clickwraps-that-contain-dynamic-content ") 85 | public java.util.Map getDocumentData() { 86 | return documentData; 87 | } 88 | 89 | /** 90 | * setDocumentData. 91 | **/ 92 | public void setDocumentData(java.util.Map documentData) { 93 | this.documentData = documentData; 94 | } 95 | 96 | 97 | /** 98 | * metadata. 99 | * 100 | * @return UserAgreementRequest 101 | **/ 102 | public UserAgreementRequest metadata(String metadata) { 103 | this.metadata = metadata; 104 | return this; 105 | } 106 | 107 | /** 108 | * A customer-defined string you can use in requests. This string will appear in the corresponding response.. 109 | * @return metadata 110 | **/ 111 | @Schema(description = "A customer-defined string you can use in requests. This string will appear in the corresponding response.") 112 | public String getMetadata() { 113 | return metadata; 114 | } 115 | 116 | /** 117 | * setMetadata. 118 | **/ 119 | public void setMetadata(String metadata) { 120 | this.metadata = metadata; 121 | } 122 | 123 | 124 | /** 125 | * returnUrl. 126 | * 127 | * @return UserAgreementRequest 128 | **/ 129 | public UserAgreementRequest returnUrl(String returnUrl) { 130 | this.returnUrl = returnUrl; 131 | return this; 132 | } 133 | 134 | /** 135 | * The URL to redirect to after the agreement is complete when the agreement is not rendered in an iframe.. 136 | * @return returnUrl 137 | **/ 138 | @Schema(description = "The URL to redirect to after the agreement is complete when the agreement is not rendered in an iframe.") 139 | public String getReturnUrl() { 140 | return returnUrl; 141 | } 142 | 143 | /** 144 | * setReturnUrl. 145 | **/ 146 | public void setReturnUrl(String returnUrl) { 147 | this.returnUrl = returnUrl; 148 | } 149 | 150 | 151 | /** 152 | * Compares objects. 153 | * 154 | * @return true or false depending on comparison result. 155 | */ 156 | @Override 157 | public boolean equals(java.lang.Object o) { 158 | if (this == o) { 159 | return true; 160 | } 161 | if (o == null || getClass() != o.getClass()) { 162 | return false; 163 | } 164 | UserAgreementRequest userAgreementRequest = (UserAgreementRequest) o; 165 | return Objects.equals(this.clientUserId, userAgreementRequest.clientUserId) && 166 | Objects.equals(this.documentData, userAgreementRequest.documentData) && 167 | Objects.equals(this.metadata, userAgreementRequest.metadata) && 168 | Objects.equals(this.returnUrl, userAgreementRequest.returnUrl); 169 | } 170 | 171 | /** 172 | * Returns the HashCode. 173 | */ 174 | @Override 175 | public int hashCode() { 176 | return Objects.hash(clientUserId, documentData, metadata, returnUrl); 177 | } 178 | 179 | 180 | /** 181 | * Converts the given object to string. 182 | */ 183 | @Override 184 | public String toString() { 185 | StringBuilder sb = new StringBuilder(); 186 | sb.append("class UserAgreementRequest {\n"); 187 | 188 | sb.append(" clientUserId: ").append(toIndentedString(clientUserId)).append("\n"); 189 | sb.append(" documentData: ").append(toIndentedString(documentData)).append("\n"); 190 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); 191 | sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); 192 | sb.append("}"); 193 | return sb.toString(); 194 | } 195 | 196 | /** 197 | * Convert the given object to string with each line indented by 4 spaces 198 | * (except the first line). 199 | */ 200 | private String toIndentedString(java.lang.Object o) { 201 | if (o == null) { 202 | return "null"; 203 | } 204 | return o.toString().replace("\n", "\n "); 205 | } 206 | 207 | } 208 | 209 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/DocumentData.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * The object of data to be merged with the clickwrap document. A merged document must be created from Click's web editor and supports fullName, email, company, title and date.. 12 | * 13 | */ 14 | @Schema(description = "The object of data to be merged with the clickwrap document. A merged document must be created from Click's web editor and supports fullName, email, company, title and date.") 15 | 16 | public class DocumentData { 17 | @JsonProperty("fullName") 18 | private String fullName = null; 19 | 20 | @JsonProperty("email") 21 | private String email = null; 22 | 23 | @JsonProperty("company") 24 | private String company = null; 25 | 26 | @JsonProperty("jobTitle") 27 | private String jobTitle = null; 28 | 29 | @JsonProperty("date") 30 | private String date = null; 31 | 32 | 33 | /** 34 | * fullName. 35 | * 36 | * @return DocumentData 37 | **/ 38 | public DocumentData fullName(String fullName) { 39 | this.fullName = fullName; 40 | return this; 41 | } 42 | 43 | /** 44 | * The full name of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.. 45 | * @return fullName 46 | **/ 47 | @Schema(description = "The full name of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.") 48 | public String getFullName() { 49 | return fullName; 50 | } 51 | 52 | /** 53 | * setFullName. 54 | **/ 55 | public void setFullName(String fullName) { 56 | this.fullName = fullName; 57 | } 58 | 59 | 60 | /** 61 | * email. 62 | * 63 | * @return DocumentData 64 | **/ 65 | public DocumentData email(String email) { 66 | this.email = email; 67 | return this; 68 | } 69 | 70 | /** 71 | * The email address of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.. 72 | * @return email 73 | **/ 74 | @Schema(description = "The email address of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.") 75 | public String getEmail() { 76 | return email; 77 | } 78 | 79 | /** 80 | * setEmail. 81 | **/ 82 | public void setEmail(String email) { 83 | this.email = email; 84 | } 85 | 86 | 87 | /** 88 | * company. 89 | * 90 | * @return DocumentData 91 | **/ 92 | public DocumentData company(String company) { 93 | this.company = company; 94 | return this; 95 | } 96 | 97 | /** 98 | * The company name of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.. 99 | * @return company 100 | **/ 101 | @Schema(description = "The company name of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.") 102 | public String getCompany() { 103 | return company; 104 | } 105 | 106 | /** 107 | * setCompany. 108 | **/ 109 | public void setCompany(String company) { 110 | this.company = company; 111 | } 112 | 113 | 114 | /** 115 | * jobTitle. 116 | * 117 | * @return DocumentData 118 | **/ 119 | public DocumentData jobTitle(String jobTitle) { 120 | this.jobTitle = jobTitle; 121 | return this; 122 | } 123 | 124 | /** 125 | * The job title of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.. 126 | * @return jobTitle 127 | **/ 128 | @Schema(description = "The job title of the signer. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.") 129 | public String getJobTitle() { 130 | return jobTitle; 131 | } 132 | 133 | /** 134 | * setJobTitle. 135 | **/ 136 | public void setJobTitle(String jobTitle) { 137 | this.jobTitle = jobTitle; 138 | } 139 | 140 | 141 | /** 142 | * date. 143 | * 144 | * @return DocumentData 145 | **/ 146 | public DocumentData date(String date) { 147 | this.date = date; 148 | return this; 149 | } 150 | 151 | /** 152 | * A custom date for the contract. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.. 153 | * @return date 154 | **/ 155 | @Schema(description = "A custom date for the contract. This field is created in the UI editor for a Clickwrap document. Only required if present in the document.") 156 | public String getDate() { 157 | return date; 158 | } 159 | 160 | /** 161 | * setDate. 162 | **/ 163 | public void setDate(String date) { 164 | this.date = date; 165 | } 166 | 167 | 168 | /** 169 | * Compares objects. 170 | * 171 | * @return true or false depending on comparison result. 172 | */ 173 | @Override 174 | public boolean equals(java.lang.Object o) { 175 | if (this == o) { 176 | return true; 177 | } 178 | if (o == null || getClass() != o.getClass()) { 179 | return false; 180 | } 181 | DocumentData documentData = (DocumentData) o; 182 | return Objects.equals(this.fullName, documentData.fullName) && 183 | Objects.equals(this.email, documentData.email) && 184 | Objects.equals(this.company, documentData.company) && 185 | Objects.equals(this.jobTitle, documentData.jobTitle) && 186 | Objects.equals(this.date, documentData.date); 187 | } 188 | 189 | /** 190 | * Returns the HashCode. 191 | */ 192 | @Override 193 | public int hashCode() { 194 | return Objects.hash(fullName, email, company, jobTitle, date); 195 | } 196 | 197 | 198 | /** 199 | * Converts the given object to string. 200 | */ 201 | @Override 202 | public String toString() { 203 | StringBuilder sb = new StringBuilder(); 204 | sb.append("class DocumentData {\n"); 205 | 206 | sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); 207 | sb.append(" email: ").append(toIndentedString(email)).append("\n"); 208 | sb.append(" company: ").append(toIndentedString(company)).append("\n"); 209 | sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n"); 210 | sb.append(" date: ").append(toIndentedString(date)).append("\n"); 211 | sb.append("}"); 212 | return sb.toString(); 213 | } 214 | 215 | /** 216 | * Convert the given object to string with each line indented by 4 spaces 217 | * (except the first line). 218 | */ 219 | private String toIndentedString(java.lang.Object o) { 220 | if (o == null) { 221 | return "null"; 222 | } 223 | return o.toString().replace("\n", "\n "); 224 | } 225 | 226 | } 227 | 228 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * The result of a clickwrap deletion request.. 12 | * 13 | */ 14 | @Schema(description = "The result of a clickwrap deletion request.") 15 | 16 | public class ClickwrapDeleteResponse { 17 | @JsonProperty("clickwrapId") 18 | private String clickwrapId = null; 19 | 20 | @JsonProperty("clickwrapName") 21 | private String clickwrapName = null; 22 | 23 | @JsonProperty("deletionMessage") 24 | private String deletionMessage = null; 25 | 26 | @JsonProperty("deletionSuccess") 27 | private Boolean deletionSuccess = null; 28 | 29 | @JsonProperty("status") 30 | private String status = null; 31 | 32 | 33 | /** 34 | * clickwrapId. 35 | * 36 | * @return ClickwrapDeleteResponse 37 | **/ 38 | public ClickwrapDeleteResponse clickwrapId(String clickwrapId) { 39 | this.clickwrapId = clickwrapId; 40 | return this; 41 | } 42 | 43 | /** 44 | * The ID of the clickwrap.. 45 | * @return clickwrapId 46 | **/ 47 | @Schema(description = "The ID of the clickwrap.") 48 | public String getClickwrapId() { 49 | return clickwrapId; 50 | } 51 | 52 | /** 53 | * setClickwrapId. 54 | **/ 55 | public void setClickwrapId(String clickwrapId) { 56 | this.clickwrapId = clickwrapId; 57 | } 58 | 59 | 60 | /** 61 | * clickwrapName. 62 | * 63 | * @return ClickwrapDeleteResponse 64 | **/ 65 | public ClickwrapDeleteResponse clickwrapName(String clickwrapName) { 66 | this.clickwrapName = clickwrapName; 67 | return this; 68 | } 69 | 70 | /** 71 | * The name of the clickwrap.. 72 | * @return clickwrapName 73 | **/ 74 | @Schema(description = "The name of the clickwrap.") 75 | public String getClickwrapName() { 76 | return clickwrapName; 77 | } 78 | 79 | /** 80 | * setClickwrapName. 81 | **/ 82 | public void setClickwrapName(String clickwrapName) { 83 | this.clickwrapName = clickwrapName; 84 | } 85 | 86 | 87 | /** 88 | * deletionMessage. 89 | * 90 | * @return ClickwrapDeleteResponse 91 | **/ 92 | public ClickwrapDeleteResponse deletionMessage(String deletionMessage) { 93 | this.deletionMessage = deletionMessage; 94 | return this; 95 | } 96 | 97 | /** 98 | * A message describing the result of deletion request. One of: - `alreadyDeleted`: Clickwrap is already deleted. - `deletionSuccess`: Successfully deleted the clickwrap. - `deletionFailure`: Failed to delete the clickwrap. - `cannotDelete`: Active clickwrap version cannot be deleted.. 99 | * @return deletionMessage 100 | **/ 101 | @Schema(description = "A message describing the result of deletion request. One of: - `alreadyDeleted`: Clickwrap is already deleted. - `deletionSuccess`: Successfully deleted the clickwrap. - `deletionFailure`: Failed to delete the clickwrap. - `cannotDelete`: Active clickwrap version cannot be deleted.") 102 | public String getDeletionMessage() { 103 | return deletionMessage; 104 | } 105 | 106 | /** 107 | * setDeletionMessage. 108 | **/ 109 | public void setDeletionMessage(String deletionMessage) { 110 | this.deletionMessage = deletionMessage; 111 | } 112 | 113 | 114 | /** 115 | * deletionSuccess. 116 | * 117 | * @return ClickwrapDeleteResponse 118 | **/ 119 | public ClickwrapDeleteResponse deletionSuccess(Boolean deletionSuccess) { 120 | this.deletionSuccess = deletionSuccess; 121 | return this; 122 | } 123 | 124 | /** 125 | * **True** if the clickwrap was deleted successfully. **False** otherwise.. 126 | * @return deletionSuccess 127 | **/ 128 | @Schema(description = "**True** if the clickwrap was deleted successfully. **False** otherwise.") 129 | public Boolean isDeletionSuccess() { 130 | return deletionSuccess; 131 | } 132 | 133 | /** 134 | * setDeletionSuccess. 135 | **/ 136 | public void setDeletionSuccess(Boolean deletionSuccess) { 137 | this.deletionSuccess = deletionSuccess; 138 | } 139 | 140 | 141 | /** 142 | * status. 143 | * 144 | * @return ClickwrapDeleteResponse 145 | **/ 146 | public ClickwrapDeleteResponse status(String status) { 147 | this.status = status; 148 | return this; 149 | } 150 | 151 | /** 152 | * Clickwrap status. Possible values: - `active` - `inactive` - `deleted`. 153 | * @return status 154 | **/ 155 | @Schema(description = "Clickwrap status. Possible values: - `active` - `inactive` - `deleted`") 156 | public String getStatus() { 157 | return status; 158 | } 159 | 160 | /** 161 | * setStatus. 162 | **/ 163 | public void setStatus(String status) { 164 | this.status = status; 165 | } 166 | 167 | 168 | /** 169 | * Compares objects. 170 | * 171 | * @return true or false depending on comparison result. 172 | */ 173 | @Override 174 | public boolean equals(java.lang.Object o) { 175 | if (this == o) { 176 | return true; 177 | } 178 | if (o == null || getClass() != o.getClass()) { 179 | return false; 180 | } 181 | ClickwrapDeleteResponse clickwrapDeleteResponse = (ClickwrapDeleteResponse) o; 182 | return Objects.equals(this.clickwrapId, clickwrapDeleteResponse.clickwrapId) && 183 | Objects.equals(this.clickwrapName, clickwrapDeleteResponse.clickwrapName) && 184 | Objects.equals(this.deletionMessage, clickwrapDeleteResponse.deletionMessage) && 185 | Objects.equals(this.deletionSuccess, clickwrapDeleteResponse.deletionSuccess) && 186 | Objects.equals(this.status, clickwrapDeleteResponse.status); 187 | } 188 | 189 | /** 190 | * Returns the HashCode. 191 | */ 192 | @Override 193 | public int hashCode() { 194 | return Objects.hash(clickwrapId, clickwrapName, deletionMessage, deletionSuccess, status); 195 | } 196 | 197 | 198 | /** 199 | * Converts the given object to string. 200 | */ 201 | @Override 202 | public String toString() { 203 | StringBuilder sb = new StringBuilder(); 204 | sb.append("class ClickwrapDeleteResponse {\n"); 205 | 206 | sb.append(" clickwrapId: ").append(toIndentedString(clickwrapId)).append("\n"); 207 | sb.append(" clickwrapName: ").append(toIndentedString(clickwrapName)).append("\n"); 208 | sb.append(" deletionMessage: ").append(toIndentedString(deletionMessage)).append("\n"); 209 | sb.append(" deletionSuccess: ").append(toIndentedString(deletionSuccess)).append("\n"); 210 | sb.append(" status: ").append(toIndentedString(status)).append("\n"); 211 | sb.append("}"); 212 | return sb.toString(); 213 | } 214 | 215 | /** 216 | * Convert the given object to string with each line indented by 4 spaces 217 | * (except the first line). 218 | */ 219 | private String toIndentedString(java.lang.Object o) { 220 | if (o == null) { 221 | return "null"; 222 | } 223 | return o.toString().replace("\n", "\n "); 224 | } 225 | 226 | } 227 | 228 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapAgreementsResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.UserAgreementResponse; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * ClickwrapAgreementsResponse. 13 | * 14 | */ 15 | 16 | public class ClickwrapAgreementsResponse { 17 | @JsonProperty("beginCreatedOn") 18 | private Object beginCreatedOn = null; 19 | 20 | @JsonProperty("minimumPagesRemaining") 21 | private Integer minimumPagesRemaining = null; 22 | 23 | @JsonProperty("page") 24 | private Integer page = null; 25 | 26 | @JsonProperty("pageSize") 27 | private Integer pageSize = null; 28 | 29 | @JsonProperty("userAgreements") 30 | private java.util.List userAgreements = null; 31 | 32 | 33 | /** 34 | * beginCreatedOn. 35 | * 36 | * @return ClickwrapAgreementsResponse 37 | **/ 38 | public ClickwrapAgreementsResponse beginCreatedOn(Object beginCreatedOn) { 39 | this.beginCreatedOn = beginCreatedOn; 40 | return this; 41 | } 42 | 43 | /** 44 | * User agreements from this datetime.. 45 | * @return beginCreatedOn 46 | **/ 47 | @Schema(description = "User agreements from this datetime.") 48 | public Object getBeginCreatedOn() { 49 | return beginCreatedOn; 50 | } 51 | 52 | /** 53 | * setBeginCreatedOn. 54 | **/ 55 | public void setBeginCreatedOn(Object beginCreatedOn) { 56 | this.beginCreatedOn = beginCreatedOn; 57 | } 58 | 59 | 60 | /** 61 | * minimumPagesRemaining. 62 | * 63 | * @return ClickwrapAgreementsResponse 64 | **/ 65 | public ClickwrapAgreementsResponse minimumPagesRemaining(Integer minimumPagesRemaining) { 66 | this.minimumPagesRemaining = minimumPagesRemaining; 67 | return this; 68 | } 69 | 70 | /** 71 | * Number of pages remaining in the response.. 72 | * @return minimumPagesRemaining 73 | **/ 74 | @Schema(description = "Number of pages remaining in the response.") 75 | public Integer getMinimumPagesRemaining() { 76 | return minimumPagesRemaining; 77 | } 78 | 79 | /** 80 | * setMinimumPagesRemaining. 81 | **/ 82 | public void setMinimumPagesRemaining(Integer minimumPagesRemaining) { 83 | this.minimumPagesRemaining = minimumPagesRemaining; 84 | } 85 | 86 | 87 | /** 88 | * page. 89 | * 90 | * @return ClickwrapAgreementsResponse 91 | **/ 92 | public ClickwrapAgreementsResponse page(Integer page) { 93 | this.page = page; 94 | return this; 95 | } 96 | 97 | /** 98 | * The number of the current page.. 99 | * @return page 100 | **/ 101 | @Schema(description = "The number of the current page.") 102 | public Integer getPage() { 103 | return page; 104 | } 105 | 106 | /** 107 | * setPage. 108 | **/ 109 | public void setPage(Integer page) { 110 | this.page = page; 111 | } 112 | 113 | 114 | /** 115 | * pageSize. 116 | * 117 | * @return ClickwrapAgreementsResponse 118 | **/ 119 | public ClickwrapAgreementsResponse pageSize(Integer pageSize) { 120 | this.pageSize = pageSize; 121 | return this; 122 | } 123 | 124 | /** 125 | * The number of items per page.. 126 | * @return pageSize 127 | **/ 128 | @Schema(description = "The number of items per page.") 129 | public Integer getPageSize() { 130 | return pageSize; 131 | } 132 | 133 | /** 134 | * setPageSize. 135 | **/ 136 | public void setPageSize(Integer pageSize) { 137 | this.pageSize = pageSize; 138 | } 139 | 140 | 141 | /** 142 | * userAgreements. 143 | * 144 | * @return ClickwrapAgreementsResponse 145 | **/ 146 | public ClickwrapAgreementsResponse userAgreements(java.util.List userAgreements) { 147 | this.userAgreements = userAgreements; 148 | return this; 149 | } 150 | 151 | /** 152 | * addUserAgreementsItem. 153 | * 154 | * @return ClickwrapAgreementsResponse 155 | **/ 156 | public ClickwrapAgreementsResponse addUserAgreementsItem(UserAgreementResponse userAgreementsItem) { 157 | if (this.userAgreements == null) { 158 | this.userAgreements = new java.util.ArrayList<>(); 159 | } 160 | this.userAgreements.add(userAgreementsItem); 161 | return this; 162 | } 163 | 164 | /** 165 | * An array of user agreements.. 166 | * @return userAgreements 167 | **/ 168 | @Schema(description = "An array of user agreements.") 169 | public java.util.List getUserAgreements() { 170 | return userAgreements; 171 | } 172 | 173 | /** 174 | * setUserAgreements. 175 | **/ 176 | public void setUserAgreements(java.util.List userAgreements) { 177 | this.userAgreements = userAgreements; 178 | } 179 | 180 | 181 | /** 182 | * Compares objects. 183 | * 184 | * @return true or false depending on comparison result. 185 | */ 186 | @Override 187 | public boolean equals(java.lang.Object o) { 188 | if (this == o) { 189 | return true; 190 | } 191 | if (o == null || getClass() != o.getClass()) { 192 | return false; 193 | } 194 | ClickwrapAgreementsResponse clickwrapAgreementsResponse = (ClickwrapAgreementsResponse) o; 195 | return Objects.equals(this.beginCreatedOn, clickwrapAgreementsResponse.beginCreatedOn) && 196 | Objects.equals(this.minimumPagesRemaining, clickwrapAgreementsResponse.minimumPagesRemaining) && 197 | Objects.equals(this.page, clickwrapAgreementsResponse.page) && 198 | Objects.equals(this.pageSize, clickwrapAgreementsResponse.pageSize) && 199 | Objects.equals(this.userAgreements, clickwrapAgreementsResponse.userAgreements); 200 | } 201 | 202 | /** 203 | * Returns the HashCode. 204 | */ 205 | @Override 206 | public int hashCode() { 207 | return Objects.hash(beginCreatedOn, minimumPagesRemaining, page, pageSize, userAgreements); 208 | } 209 | 210 | 211 | /** 212 | * Converts the given object to string. 213 | */ 214 | @Override 215 | public String toString() { 216 | StringBuilder sb = new StringBuilder(); 217 | sb.append("class ClickwrapAgreementsResponse {\n"); 218 | 219 | sb.append(" beginCreatedOn: ").append(toIndentedString(beginCreatedOn)).append("\n"); 220 | sb.append(" minimumPagesRemaining: ").append(toIndentedString(minimumPagesRemaining)).append("\n"); 221 | sb.append(" page: ").append(toIndentedString(page)).append("\n"); 222 | sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); 223 | sb.append(" userAgreements: ").append(toIndentedString(userAgreements)).append("\n"); 224 | sb.append("}"); 225 | return sb.toString(); 226 | } 227 | 228 | /** 229 | * Convert the given object to string with each line indented by 4 spaces 230 | * (except the first line). 231 | */ 232 | private String toIndentedString(java.lang.Object o) { 233 | if (o == null) { 234 | return "null"; 235 | } 236 | return o.toString().replace("\n", "\n "); 237 | } 238 | 239 | } 240 | 241 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/AgreementStatementStyles.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Control the display of the agreement statement.. 12 | * 13 | */ 14 | @Schema(description = "Control the display of the agreement statement.") 15 | 16 | public class AgreementStatementStyles { 17 | @JsonProperty("color") 18 | private String color = null; 19 | 20 | /** 21 | * Control the display of the header. Can only be set to 'none' over the default for hiding purposes. 22 | */ 23 | public enum DisplayEnum { 24 | NONE("none"); 25 | 26 | private String value; 27 | 28 | DisplayEnum(String value) { 29 | this.value = value; 30 | } 31 | 32 | @JsonValue 33 | public String getValue() { 34 | return value; 35 | } 36 | 37 | @Override 38 | public String toString() { 39 | return String.valueOf(value); 40 | } 41 | 42 | @JsonCreator 43 | public static DisplayEnum fromValue(String value) { 44 | for (DisplayEnum b : DisplayEnum.values()) { 45 | if (b.value.equals(value)) { 46 | return b; 47 | } 48 | } 49 | return null; 50 | } 51 | } 52 | 53 | @JsonProperty("display") 54 | private DisplayEnum display = null; 55 | 56 | @JsonProperty("fontFamily") 57 | private String fontFamily = null; 58 | 59 | @JsonProperty("fontSize") 60 | private String fontSize = null; 61 | 62 | @JsonProperty("fontStyle") 63 | private String fontStyle = null; 64 | 65 | @JsonProperty("fontWeight") 66 | private Object fontWeight = null; 67 | 68 | 69 | /** 70 | * color. 71 | * 72 | * @return AgreementStatementStyles 73 | **/ 74 | public AgreementStatementStyles color(String color) { 75 | this.color = color; 76 | return this; 77 | } 78 | 79 | /** 80 | * Control the fore-ground color of the element.. 81 | * @return color 82 | **/ 83 | @Schema(description = "Control the fore-ground color of the element.") 84 | public String getColor() { 85 | return color; 86 | } 87 | 88 | /** 89 | * setColor. 90 | **/ 91 | public void setColor(String color) { 92 | this.color = color; 93 | } 94 | 95 | 96 | /** 97 | * display. 98 | * 99 | * @return AgreementStatementStyles 100 | **/ 101 | public AgreementStatementStyles display(DisplayEnum display) { 102 | this.display = display; 103 | return this; 104 | } 105 | 106 | /** 107 | * Control the display of the header. Can only be set to 'none' over the default for hiding purposes.. 108 | * @return display 109 | **/ 110 | @Schema(description = "Control the display of the header. Can only be set to 'none' over the default for hiding purposes.") 111 | public DisplayEnum getDisplay() { 112 | return display; 113 | } 114 | 115 | /** 116 | * setDisplay. 117 | **/ 118 | public void setDisplay(DisplayEnum display) { 119 | this.display = display; 120 | } 121 | 122 | 123 | /** 124 | * fontFamily. 125 | * 126 | * @return AgreementStatementStyles 127 | **/ 128 | public AgreementStatementStyles fontFamily(String fontFamily) { 129 | this.fontFamily = fontFamily; 130 | return this; 131 | } 132 | 133 | /** 134 | * Control the font family of the text.. 135 | * @return fontFamily 136 | **/ 137 | @Schema(description = "Control the font family of the text.") 138 | public String getFontFamily() { 139 | return fontFamily; 140 | } 141 | 142 | /** 143 | * setFontFamily. 144 | **/ 145 | public void setFontFamily(String fontFamily) { 146 | this.fontFamily = fontFamily; 147 | } 148 | 149 | 150 | /** 151 | * fontSize. 152 | * 153 | * @return AgreementStatementStyles 154 | **/ 155 | public AgreementStatementStyles fontSize(String fontSize) { 156 | this.fontSize = fontSize; 157 | return this; 158 | } 159 | 160 | /** 161 | * Control the font size of the text.. 162 | * @return fontSize 163 | **/ 164 | @Schema(description = "Control the font size of the text.") 165 | public String getFontSize() { 166 | return fontSize; 167 | } 168 | 169 | /** 170 | * setFontSize. 171 | **/ 172 | public void setFontSize(String fontSize) { 173 | this.fontSize = fontSize; 174 | } 175 | 176 | 177 | /** 178 | * fontStyle. 179 | * 180 | * @return AgreementStatementStyles 181 | **/ 182 | public AgreementStatementStyles fontStyle(String fontStyle) { 183 | this.fontStyle = fontStyle; 184 | return this; 185 | } 186 | 187 | /** 188 | * Control the font style of the text.. 189 | * @return fontStyle 190 | **/ 191 | @Schema(description = "Control the font style of the text.") 192 | public String getFontStyle() { 193 | return fontStyle; 194 | } 195 | 196 | /** 197 | * setFontStyle. 198 | **/ 199 | public void setFontStyle(String fontStyle) { 200 | this.fontStyle = fontStyle; 201 | } 202 | 203 | 204 | /** 205 | * fontWeight. 206 | * 207 | * @return AgreementStatementStyles 208 | **/ 209 | public AgreementStatementStyles fontWeight(Object fontWeight) { 210 | this.fontWeight = fontWeight; 211 | return this; 212 | } 213 | 214 | /** 215 | * Control the font weight of the text.. 216 | * @return fontWeight 217 | **/ 218 | @Schema(description = "Control the font weight of the text.") 219 | public Object getFontWeight() { 220 | return fontWeight; 221 | } 222 | 223 | /** 224 | * setFontWeight. 225 | **/ 226 | public void setFontWeight(Object fontWeight) { 227 | this.fontWeight = fontWeight; 228 | } 229 | 230 | 231 | /** 232 | * Compares objects. 233 | * 234 | * @return true or false depending on comparison result. 235 | */ 236 | @Override 237 | public boolean equals(java.lang.Object o) { 238 | if (this == o) { 239 | return true; 240 | } 241 | if (o == null || getClass() != o.getClass()) { 242 | return false; 243 | } 244 | AgreementStatementStyles agreementStatementStyles = (AgreementStatementStyles) o; 245 | return Objects.equals(this.color, agreementStatementStyles.color) && 246 | Objects.equals(this.display, agreementStatementStyles.display) && 247 | Objects.equals(this.fontFamily, agreementStatementStyles.fontFamily) && 248 | Objects.equals(this.fontSize, agreementStatementStyles.fontSize) && 249 | Objects.equals(this.fontStyle, agreementStatementStyles.fontStyle) && 250 | Objects.equals(this.fontWeight, agreementStatementStyles.fontWeight); 251 | } 252 | 253 | /** 254 | * Returns the HashCode. 255 | */ 256 | @Override 257 | public int hashCode() { 258 | return Objects.hash(color, display, fontFamily, fontSize, fontStyle, fontWeight); 259 | } 260 | 261 | 262 | /** 263 | * Converts the given object to string. 264 | */ 265 | @Override 266 | public String toString() { 267 | StringBuilder sb = new StringBuilder(); 268 | sb.append("class AgreementStatementStyles {\n"); 269 | 270 | sb.append(" color: ").append(toIndentedString(color)).append("\n"); 271 | sb.append(" display: ").append(toIndentedString(display)).append("\n"); 272 | sb.append(" fontFamily: ").append(toIndentedString(fontFamily)).append("\n"); 273 | sb.append(" fontSize: ").append(toIndentedString(fontSize)).append("\n"); 274 | sb.append(" fontStyle: ").append(toIndentedString(fontStyle)).append("\n"); 275 | sb.append(" fontWeight: ").append(toIndentedString(fontWeight)).append("\n"); 276 | sb.append("}"); 277 | return sb.toString(); 278 | } 279 | 280 | /** 281 | * Convert the given object to string with each line indented by 4 spaces 282 | * (except the first line). 283 | */ 284 | private String toIndentedString(java.lang.Object o) { 285 | if (o == null) { 286 | return "null"; 287 | } 288 | return o.toString().replace("\n", "\n "); 289 | } 290 | 291 | } 292 | 293 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ServiceInformation.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ServiceVersion; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * ServiceInformation. 13 | * 14 | */ 15 | 16 | public class ServiceInformation { 17 | @JsonProperty("buildBranch") 18 | private String buildBranch = null; 19 | 20 | @JsonProperty("buildBranchDeployedDateTime") 21 | private String buildBranchDeployedDateTime = null; 22 | 23 | @JsonProperty("buildSHA") 24 | private String buildSHA = null; 25 | 26 | @JsonProperty("buildVersion") 27 | private String buildVersion = null; 28 | 29 | @JsonProperty("linkedSites") 30 | private java.util.List linkedSites = null; 31 | 32 | @JsonProperty("serviceVersions") 33 | private java.util.List serviceVersions = null; 34 | 35 | 36 | /** 37 | * buildBranch. 38 | * 39 | * @return ServiceInformation 40 | **/ 41 | public ServiceInformation buildBranch(String buildBranch) { 42 | this.buildBranch = buildBranch; 43 | return this; 44 | } 45 | 46 | /** 47 | * The internal source control branch.. 48 | * @return buildBranch 49 | **/ 50 | @Schema(description = "The internal source control branch.") 51 | public String getBuildBranch() { 52 | return buildBranch; 53 | } 54 | 55 | /** 56 | * setBuildBranch. 57 | **/ 58 | public void setBuildBranch(String buildBranch) { 59 | this.buildBranch = buildBranch; 60 | } 61 | 62 | 63 | /** 64 | * buildBranchDeployedDateTime. 65 | * 66 | * @return ServiceInformation 67 | **/ 68 | public ServiceInformation buildBranchDeployedDateTime(String buildBranchDeployedDateTime) { 69 | this.buildBranchDeployedDateTime = buildBranchDeployedDateTime; 70 | return this; 71 | } 72 | 73 | /** 74 | * The date-time this branch was deployed.. 75 | * @return buildBranchDeployedDateTime 76 | **/ 77 | @Schema(description = "The date-time this branch was deployed.") 78 | public String getBuildBranchDeployedDateTime() { 79 | return buildBranchDeployedDateTime; 80 | } 81 | 82 | /** 83 | * setBuildBranchDeployedDateTime. 84 | **/ 85 | public void setBuildBranchDeployedDateTime(String buildBranchDeployedDateTime) { 86 | this.buildBranchDeployedDateTime = buildBranchDeployedDateTime; 87 | } 88 | 89 | 90 | /** 91 | * buildSHA. 92 | * 93 | * @return ServiceInformation 94 | **/ 95 | public ServiceInformation buildSHA(String buildSHA) { 96 | this.buildSHA = buildSHA; 97 | return this; 98 | } 99 | 100 | /** 101 | * The internal source control SHA.. 102 | * @return buildSHA 103 | **/ 104 | @Schema(description = "The internal source control SHA.") 105 | public String getBuildSHA() { 106 | return buildSHA; 107 | } 108 | 109 | /** 110 | * setBuildSHA. 111 | **/ 112 | public void setBuildSHA(String buildSHA) { 113 | this.buildSHA = buildSHA; 114 | } 115 | 116 | 117 | /** 118 | * buildVersion. 119 | * 120 | * @return ServiceInformation 121 | **/ 122 | public ServiceInformation buildVersion(String buildVersion) { 123 | this.buildVersion = buildVersion; 124 | return this; 125 | } 126 | 127 | /** 128 | * The internal build version information.. 129 | * @return buildVersion 130 | **/ 131 | @Schema(description = "The internal build version information.") 132 | public String getBuildVersion() { 133 | return buildVersion; 134 | } 135 | 136 | /** 137 | * setBuildVersion. 138 | **/ 139 | public void setBuildVersion(String buildVersion) { 140 | this.buildVersion = buildVersion; 141 | } 142 | 143 | 144 | /** 145 | * linkedSites. 146 | * 147 | * @return ServiceInformation 148 | **/ 149 | public ServiceInformation linkedSites(java.util.List linkedSites) { 150 | this.linkedSites = linkedSites; 151 | return this; 152 | } 153 | 154 | /** 155 | * addLinkedSitesItem. 156 | * 157 | * @return ServiceInformation 158 | **/ 159 | public ServiceInformation addLinkedSitesItem(String linkedSitesItem) { 160 | if (this.linkedSites == null) { 161 | this.linkedSites = new java.util.ArrayList<>(); 162 | } 163 | this.linkedSites.add(linkedSitesItem); 164 | return this; 165 | } 166 | 167 | /** 168 | * An array of URLs (strings) of related sites.. 169 | * @return linkedSites 170 | **/ 171 | @Schema(description = "An array of URLs (strings) of related sites.") 172 | public java.util.List getLinkedSites() { 173 | return linkedSites; 174 | } 175 | 176 | /** 177 | * setLinkedSites. 178 | **/ 179 | public void setLinkedSites(java.util.List linkedSites) { 180 | this.linkedSites = linkedSites; 181 | } 182 | 183 | 184 | /** 185 | * serviceVersions. 186 | * 187 | * @return ServiceInformation 188 | **/ 189 | public ServiceInformation serviceVersions(java.util.List serviceVersions) { 190 | this.serviceVersions = serviceVersions; 191 | return this; 192 | } 193 | 194 | /** 195 | * addServiceVersionsItem. 196 | * 197 | * @return ServiceInformation 198 | **/ 199 | public ServiceInformation addServiceVersionsItem(ServiceVersion serviceVersionsItem) { 200 | if (this.serviceVersions == null) { 201 | this.serviceVersions = new java.util.ArrayList<>(); 202 | } 203 | this.serviceVersions.add(serviceVersionsItem); 204 | return this; 205 | } 206 | 207 | /** 208 | * An array of `serviceVersion` objects.. 209 | * @return serviceVersions 210 | **/ 211 | @Schema(description = "An array of `serviceVersion` objects.") 212 | public java.util.List getServiceVersions() { 213 | return serviceVersions; 214 | } 215 | 216 | /** 217 | * setServiceVersions. 218 | **/ 219 | public void setServiceVersions(java.util.List serviceVersions) { 220 | this.serviceVersions = serviceVersions; 221 | } 222 | 223 | 224 | /** 225 | * Compares objects. 226 | * 227 | * @return true or false depending on comparison result. 228 | */ 229 | @Override 230 | public boolean equals(java.lang.Object o) { 231 | if (this == o) { 232 | return true; 233 | } 234 | if (o == null || getClass() != o.getClass()) { 235 | return false; 236 | } 237 | ServiceInformation serviceInformation = (ServiceInformation) o; 238 | return Objects.equals(this.buildBranch, serviceInformation.buildBranch) && 239 | Objects.equals(this.buildBranchDeployedDateTime, serviceInformation.buildBranchDeployedDateTime) && 240 | Objects.equals(this.buildSHA, serviceInformation.buildSHA) && 241 | Objects.equals(this.buildVersion, serviceInformation.buildVersion) && 242 | Objects.equals(this.linkedSites, serviceInformation.linkedSites) && 243 | Objects.equals(this.serviceVersions, serviceInformation.serviceVersions); 244 | } 245 | 246 | /** 247 | * Returns the HashCode. 248 | */ 249 | @Override 250 | public int hashCode() { 251 | return Objects.hash(buildBranch, buildBranchDeployedDateTime, buildSHA, buildVersion, linkedSites, serviceVersions); 252 | } 253 | 254 | 255 | /** 256 | * Converts the given object to string. 257 | */ 258 | @Override 259 | public String toString() { 260 | StringBuilder sb = new StringBuilder(); 261 | sb.append("class ServiceInformation {\n"); 262 | 263 | sb.append(" buildBranch: ").append(toIndentedString(buildBranch)).append("\n"); 264 | sb.append(" buildBranchDeployedDateTime: ").append(toIndentedString(buildBranchDeployedDateTime)).append("\n"); 265 | sb.append(" buildSHA: ").append(toIndentedString(buildSHA)).append("\n"); 266 | sb.append(" buildVersion: ").append(toIndentedString(buildVersion)).append("\n"); 267 | sb.append(" linkedSites: ").append(toIndentedString(linkedSites)).append("\n"); 268 | sb.append(" serviceVersions: ").append(toIndentedString(serviceVersions)).append("\n"); 269 | sb.append("}"); 270 | return sb.toString(); 271 | } 272 | 273 | /** 274 | * Convert the given object to string with each line indented by 4 spaces 275 | * (except the first line). 276 | */ 277 | private String toIndentedString(java.lang.Object o) { 278 | if (o == null) { 279 | return "null"; 280 | } 281 | return o.toString().replace("\n", "\n "); 282 | } 283 | 284 | } 285 | 286 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/HeaderStyles.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Control the display of the header.. 12 | * 13 | */ 14 | @Schema(description = "Control the display of the header.") 15 | 16 | public class HeaderStyles { 17 | @JsonProperty("color") 18 | private String color = null; 19 | 20 | /** 21 | * Control the display of the header. Can only be set to 'none' over the default for hiding purposes. 22 | */ 23 | public enum DisplayEnum { 24 | NONE("none"); 25 | 26 | private String value; 27 | 28 | DisplayEnum(String value) { 29 | this.value = value; 30 | } 31 | 32 | @JsonValue 33 | public String getValue() { 34 | return value; 35 | } 36 | 37 | @Override 38 | public String toString() { 39 | return String.valueOf(value); 40 | } 41 | 42 | @JsonCreator 43 | public static DisplayEnum fromValue(String value) { 44 | for (DisplayEnum b : DisplayEnum.values()) { 45 | if (b.value.equals(value)) { 46 | return b; 47 | } 48 | } 49 | return null; 50 | } 51 | } 52 | 53 | @JsonProperty("display") 54 | private DisplayEnum display = null; 55 | 56 | @JsonProperty("fontFamily") 57 | private String fontFamily = null; 58 | 59 | @JsonProperty("fontSize") 60 | private String fontSize = null; 61 | 62 | @JsonProperty("fontStyle") 63 | private String fontStyle = null; 64 | 65 | @JsonProperty("fontWeight") 66 | private Object fontWeight = null; 67 | 68 | @JsonProperty("textDecoration") 69 | private String textDecoration = null; 70 | 71 | 72 | /** 73 | * color. 74 | * 75 | * @return HeaderStyles 76 | **/ 77 | public HeaderStyles color(String color) { 78 | this.color = color; 79 | return this; 80 | } 81 | 82 | /** 83 | * Control the fore-ground color of the element.. 84 | * @return color 85 | **/ 86 | @Schema(description = "Control the fore-ground color of the element.") 87 | public String getColor() { 88 | return color; 89 | } 90 | 91 | /** 92 | * setColor. 93 | **/ 94 | public void setColor(String color) { 95 | this.color = color; 96 | } 97 | 98 | 99 | /** 100 | * display. 101 | * 102 | * @return HeaderStyles 103 | **/ 104 | public HeaderStyles display(DisplayEnum display) { 105 | this.display = display; 106 | return this; 107 | } 108 | 109 | /** 110 | * Control the display of the header. Can only be set to 'none' over the default for hiding purposes.. 111 | * @return display 112 | **/ 113 | @Schema(description = "Control the display of the header. Can only be set to 'none' over the default for hiding purposes.") 114 | public DisplayEnum getDisplay() { 115 | return display; 116 | } 117 | 118 | /** 119 | * setDisplay. 120 | **/ 121 | public void setDisplay(DisplayEnum display) { 122 | this.display = display; 123 | } 124 | 125 | 126 | /** 127 | * fontFamily. 128 | * 129 | * @return HeaderStyles 130 | **/ 131 | public HeaderStyles fontFamily(String fontFamily) { 132 | this.fontFamily = fontFamily; 133 | return this; 134 | } 135 | 136 | /** 137 | * Control the font family of the text.. 138 | * @return fontFamily 139 | **/ 140 | @Schema(description = "Control the font family of the text.") 141 | public String getFontFamily() { 142 | return fontFamily; 143 | } 144 | 145 | /** 146 | * setFontFamily. 147 | **/ 148 | public void setFontFamily(String fontFamily) { 149 | this.fontFamily = fontFamily; 150 | } 151 | 152 | 153 | /** 154 | * fontSize. 155 | * 156 | * @return HeaderStyles 157 | **/ 158 | public HeaderStyles fontSize(String fontSize) { 159 | this.fontSize = fontSize; 160 | return this; 161 | } 162 | 163 | /** 164 | * Control the font size of the text.. 165 | * @return fontSize 166 | **/ 167 | @Schema(description = "Control the font size of the text.") 168 | public String getFontSize() { 169 | return fontSize; 170 | } 171 | 172 | /** 173 | * setFontSize. 174 | **/ 175 | public void setFontSize(String fontSize) { 176 | this.fontSize = fontSize; 177 | } 178 | 179 | 180 | /** 181 | * fontStyle. 182 | * 183 | * @return HeaderStyles 184 | **/ 185 | public HeaderStyles fontStyle(String fontStyle) { 186 | this.fontStyle = fontStyle; 187 | return this; 188 | } 189 | 190 | /** 191 | * Control the font style of the text.. 192 | * @return fontStyle 193 | **/ 194 | @Schema(description = "Control the font style of the text.") 195 | public String getFontStyle() { 196 | return fontStyle; 197 | } 198 | 199 | /** 200 | * setFontStyle. 201 | **/ 202 | public void setFontStyle(String fontStyle) { 203 | this.fontStyle = fontStyle; 204 | } 205 | 206 | 207 | /** 208 | * fontWeight. 209 | * 210 | * @return HeaderStyles 211 | **/ 212 | public HeaderStyles fontWeight(Object fontWeight) { 213 | this.fontWeight = fontWeight; 214 | return this; 215 | } 216 | 217 | /** 218 | * Control the font weight of the text.. 219 | * @return fontWeight 220 | **/ 221 | @Schema(description = "Control the font weight of the text.") 222 | public Object getFontWeight() { 223 | return fontWeight; 224 | } 225 | 226 | /** 227 | * setFontWeight. 228 | **/ 229 | public void setFontWeight(Object fontWeight) { 230 | this.fontWeight = fontWeight; 231 | } 232 | 233 | 234 | /** 235 | * textDecoration. 236 | * 237 | * @return HeaderStyles 238 | **/ 239 | public HeaderStyles textDecoration(String textDecoration) { 240 | this.textDecoration = textDecoration; 241 | return this; 242 | } 243 | 244 | /** 245 | * Control the underline and other styles of the text.. 246 | * @return textDecoration 247 | **/ 248 | @Schema(description = "Control the underline and other styles of the text.") 249 | public String getTextDecoration() { 250 | return textDecoration; 251 | } 252 | 253 | /** 254 | * setTextDecoration. 255 | **/ 256 | public void setTextDecoration(String textDecoration) { 257 | this.textDecoration = textDecoration; 258 | } 259 | 260 | 261 | /** 262 | * Compares objects. 263 | * 264 | * @return true or false depending on comparison result. 265 | */ 266 | @Override 267 | public boolean equals(java.lang.Object o) { 268 | if (this == o) { 269 | return true; 270 | } 271 | if (o == null || getClass() != o.getClass()) { 272 | return false; 273 | } 274 | HeaderStyles headerStyles = (HeaderStyles) o; 275 | return Objects.equals(this.color, headerStyles.color) && 276 | Objects.equals(this.display, headerStyles.display) && 277 | Objects.equals(this.fontFamily, headerStyles.fontFamily) && 278 | Objects.equals(this.fontSize, headerStyles.fontSize) && 279 | Objects.equals(this.fontStyle, headerStyles.fontStyle) && 280 | Objects.equals(this.fontWeight, headerStyles.fontWeight) && 281 | Objects.equals(this.textDecoration, headerStyles.textDecoration); 282 | } 283 | 284 | /** 285 | * Returns the HashCode. 286 | */ 287 | @Override 288 | public int hashCode() { 289 | return Objects.hash(color, display, fontFamily, fontSize, fontStyle, fontWeight, textDecoration); 290 | } 291 | 292 | 293 | /** 294 | * Converts the given object to string. 295 | */ 296 | @Override 297 | public String toString() { 298 | StringBuilder sb = new StringBuilder(); 299 | sb.append("class HeaderStyles {\n"); 300 | 301 | sb.append(" color: ").append(toIndentedString(color)).append("\n"); 302 | sb.append(" display: ").append(toIndentedString(display)).append("\n"); 303 | sb.append(" fontFamily: ").append(toIndentedString(fontFamily)).append("\n"); 304 | sb.append(" fontSize: ").append(toIndentedString(fontSize)).append("\n"); 305 | sb.append(" fontStyle: ").append(toIndentedString(fontStyle)).append("\n"); 306 | sb.append(" fontWeight: ").append(toIndentedString(fontWeight)).append("\n"); 307 | sb.append(" textDecoration: ").append(toIndentedString(textDecoration)).append("\n"); 308 | sb.append("}"); 309 | return sb.toString(); 310 | } 311 | 312 | /** 313 | * Convert the given object to string with each line indented by 4 spaces 314 | * (except the first line). 315 | */ 316 | private String toIndentedString(java.lang.Object o) { 317 | if (o == null) { 318 | return "null"; 319 | } 320 | return o.toString().replace("\n", "\n "); 321 | } 322 | 323 | } 324 | 325 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/Document.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * Information about a document.. 12 | * 13 | */ 14 | @Schema(description = "Information about a document.") 15 | 16 | public class Document { 17 | @JsonProperty("documentBase64") 18 | private String documentBase64 = null; 19 | 20 | @JsonProperty("documentDisplay") 21 | private String documentDisplay = null; 22 | 23 | @JsonProperty("documentHtml") 24 | private String documentHtml = null; 25 | 26 | @JsonProperty("documentName") 27 | private String documentName = null; 28 | 29 | @JsonProperty("fileExtension") 30 | private String fileExtension = null; 31 | 32 | @JsonProperty("mustRead") 33 | private Boolean mustRead = null; 34 | 35 | @JsonProperty("mustView") 36 | private Boolean mustView = null; 37 | 38 | @JsonProperty("order") 39 | private Integer order = null; 40 | 41 | 42 | /** 43 | * documentBase64. 44 | * 45 | * @return Document 46 | **/ 47 | public Document documentBase64(String documentBase64) { 48 | this.documentBase64 = documentBase64; 49 | return this; 50 | } 51 | 52 | /** 53 | * The base64-encoded contents of the document.. 54 | * @return documentBase64 55 | **/ 56 | @Schema(description = "The base64-encoded contents of the document.") 57 | public String getDocumentBase64() { 58 | return documentBase64; 59 | } 60 | 61 | /** 62 | * setDocumentBase64. 63 | **/ 64 | public void setDocumentBase64(String documentBase64) { 65 | this.documentBase64 = documentBase64; 66 | } 67 | 68 | 69 | /** 70 | * documentDisplay. 71 | * 72 | * @return Document 73 | **/ 74 | public Document documentDisplay(String documentDisplay) { 75 | this.documentDisplay = documentDisplay; 76 | return this; 77 | } 78 | 79 | /** 80 | * Display type: link, document or pdf. 81 | * @return documentDisplay 82 | **/ 83 | @Schema(description = "Display type: link, document or pdf") 84 | public String getDocumentDisplay() { 85 | return documentDisplay; 86 | } 87 | 88 | /** 89 | * setDocumentDisplay. 90 | **/ 91 | public void setDocumentDisplay(String documentDisplay) { 92 | this.documentDisplay = documentDisplay; 93 | } 94 | 95 | 96 | /** 97 | * documentHtml. 98 | * 99 | * @return Document 100 | **/ 101 | public Document documentHtml(String documentHtml) { 102 | this.documentHtml = documentHtml; 103 | return this; 104 | } 105 | 106 | /** 107 | * The HTML representation of the document.. 108 | * @return documentHtml 109 | **/ 110 | @Schema(description = "The HTML representation of the document.") 111 | public String getDocumentHtml() { 112 | return documentHtml; 113 | } 114 | 115 | /** 116 | * setDocumentHtml. 117 | **/ 118 | public void setDocumentHtml(String documentHtml) { 119 | this.documentHtml = documentHtml; 120 | } 121 | 122 | 123 | /** 124 | * documentName. 125 | * 126 | * @return Document 127 | **/ 128 | public Document documentName(String documentName) { 129 | this.documentName = documentName; 130 | return this; 131 | } 132 | 133 | /** 134 | * The name of the document.. 135 | * @return documentName 136 | **/ 137 | @Schema(description = "The name of the document.") 138 | public String getDocumentName() { 139 | return documentName; 140 | } 141 | 142 | /** 143 | * setDocumentName. 144 | **/ 145 | public void setDocumentName(String documentName) { 146 | this.documentName = documentName; 147 | } 148 | 149 | 150 | /** 151 | * fileExtension. 152 | * 153 | * @return Document 154 | **/ 155 | public Document fileExtension(String fileExtension) { 156 | this.fileExtension = fileExtension; 157 | return this; 158 | } 159 | 160 | /** 161 | * The file extension of the document.. 162 | * @return fileExtension 163 | **/ 164 | @Schema(description = "The file extension of the document.") 165 | public String getFileExtension() { 166 | return fileExtension; 167 | } 168 | 169 | /** 170 | * setFileExtension. 171 | **/ 172 | public void setFileExtension(String fileExtension) { 173 | this.fileExtension = fileExtension; 174 | } 175 | 176 | 177 | /** 178 | * mustRead. 179 | * 180 | * @return Document 181 | **/ 182 | public Document mustRead(Boolean mustRead) { 183 | this.mustRead = mustRead; 184 | return this; 185 | } 186 | 187 | /** 188 | * **True** if the user needs to scroll to the end of the document.. 189 | * @return mustRead 190 | **/ 191 | @Schema(description = "**True** if the user needs to scroll to the end of the document.") 192 | public Boolean isMustRead() { 193 | return mustRead; 194 | } 195 | 196 | /** 197 | * setMustRead. 198 | **/ 199 | public void setMustRead(Boolean mustRead) { 200 | this.mustRead = mustRead; 201 | } 202 | 203 | 204 | /** 205 | * mustView. 206 | * 207 | * @return Document 208 | **/ 209 | public Document mustView(Boolean mustView) { 210 | this.mustView = mustView; 211 | return this; 212 | } 213 | 214 | /** 215 | * **True** if the user must view the document.. 216 | * @return mustView 217 | **/ 218 | @Schema(description = "**True** if the user must view the document.") 219 | public Boolean isMustView() { 220 | return mustView; 221 | } 222 | 223 | /** 224 | * setMustView. 225 | **/ 226 | public void setMustView(Boolean mustView) { 227 | this.mustView = mustView; 228 | } 229 | 230 | 231 | /** 232 | * order. 233 | * 234 | * @return Document 235 | **/ 236 | public Document order(Integer order) { 237 | this.order = order; 238 | return this; 239 | } 240 | 241 | /** 242 | * The order of document layout.. 243 | * @return order 244 | **/ 245 | @Schema(description = "The order of document layout.") 246 | public Integer getOrder() { 247 | return order; 248 | } 249 | 250 | /** 251 | * setOrder. 252 | **/ 253 | public void setOrder(Integer order) { 254 | this.order = order; 255 | } 256 | 257 | 258 | /** 259 | * Compares objects. 260 | * 261 | * @return true or false depending on comparison result. 262 | */ 263 | @Override 264 | public boolean equals(java.lang.Object o) { 265 | if (this == o) { 266 | return true; 267 | } 268 | if (o == null || getClass() != o.getClass()) { 269 | return false; 270 | } 271 | Document document = (Document) o; 272 | return Objects.equals(this.documentBase64, document.documentBase64) && 273 | Objects.equals(this.documentDisplay, document.documentDisplay) && 274 | Objects.equals(this.documentHtml, document.documentHtml) && 275 | Objects.equals(this.documentName, document.documentName) && 276 | Objects.equals(this.fileExtension, document.fileExtension) && 277 | Objects.equals(this.mustRead, document.mustRead) && 278 | Objects.equals(this.mustView, document.mustView) && 279 | Objects.equals(this.order, document.order); 280 | } 281 | 282 | /** 283 | * Returns the HashCode. 284 | */ 285 | @Override 286 | public int hashCode() { 287 | return Objects.hash(documentBase64, documentDisplay, documentHtml, documentName, fileExtension, mustRead, mustView, order); 288 | } 289 | 290 | 291 | /** 292 | * Converts the given object to string. 293 | */ 294 | @Override 295 | public String toString() { 296 | StringBuilder sb = new StringBuilder(); 297 | sb.append("class Document {\n"); 298 | 299 | sb.append(" documentBase64: ").append(toIndentedString(documentBase64)).append("\n"); 300 | sb.append(" documentDisplay: ").append(toIndentedString(documentDisplay)).append("\n"); 301 | sb.append(" documentHtml: ").append(toIndentedString(documentHtml)).append("\n"); 302 | sb.append(" documentName: ").append(toIndentedString(documentName)).append("\n"); 303 | sb.append(" fileExtension: ").append(toIndentedString(fileExtension)).append("\n"); 304 | sb.append(" mustRead: ").append(toIndentedString(mustRead)).append("\n"); 305 | sb.append(" mustView: ").append(toIndentedString(mustView)).append("\n"); 306 | sb.append(" order: ").append(toIndentedString(order)).append("\n"); 307 | sb.append("}"); 308 | return sb.toString(); 309 | } 310 | 311 | /** 312 | * Convert the given object to string with each line indented by 4 spaces 313 | * (except the first line). 314 | */ 315 | private String toIndentedString(java.lang.Object o) { 316 | if (o == null) { 317 | return "null"; 318 | } 319 | return o.toString().replace("\n", "\n "); 320 | } 321 | 322 | } 323 | 324 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapVersionsPagedResponse.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ClickwrapVersion; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * The results are paginated. Use the following properties to navigate the pages. - `page`: The page number of the current results. - `pageSize`: The number of results in the current page. - `minimumPagesRemaining`: The number of pages that follow this one. . 13 | * 14 | */ 15 | @Schema(description = "The results are paginated. Use the following properties to navigate the pages. - `page`: The page number of the current results. - `pageSize`: The number of results in the current page. - `minimumPagesRemaining`: The number of pages that follow this one. ") 16 | 17 | public class ClickwrapVersionsPagedResponse { 18 | @JsonProperty("accountId") 19 | private String accountId = null; 20 | 21 | @JsonProperty("clickwrapId") 22 | private String clickwrapId = null; 23 | 24 | @JsonProperty("clickwrapName") 25 | private String clickwrapName = null; 26 | 27 | @JsonProperty("minimumPagesRemaining") 28 | private Integer minimumPagesRemaining = null; 29 | 30 | @JsonProperty("page") 31 | private Integer page = null; 32 | 33 | @JsonProperty("pageSize") 34 | private Integer pageSize = null; 35 | 36 | @JsonProperty("versions") 37 | private java.util.List versions = null; 38 | 39 | 40 | /** 41 | * accountId. 42 | * 43 | * @return ClickwrapVersionsPagedResponse 44 | **/ 45 | public ClickwrapVersionsPagedResponse accountId(String accountId) { 46 | this.accountId = accountId; 47 | return this; 48 | } 49 | 50 | /** 51 | * The external account number (int) or account ID GUID.. 52 | * @return accountId 53 | **/ 54 | @Schema(description = "The external account number (int) or account ID GUID.") 55 | public String getAccountId() { 56 | return accountId; 57 | } 58 | 59 | /** 60 | * setAccountId. 61 | **/ 62 | public void setAccountId(String accountId) { 63 | this.accountId = accountId; 64 | } 65 | 66 | 67 | /** 68 | * clickwrapId. 69 | * 70 | * @return ClickwrapVersionsPagedResponse 71 | **/ 72 | public ClickwrapVersionsPagedResponse clickwrapId(String clickwrapId) { 73 | this.clickwrapId = clickwrapId; 74 | return this; 75 | } 76 | 77 | /** 78 | * The ID of the clickwrap.. 79 | * @return clickwrapId 80 | **/ 81 | @Schema(description = "The ID of the clickwrap.") 82 | public String getClickwrapId() { 83 | return clickwrapId; 84 | } 85 | 86 | /** 87 | * setClickwrapId. 88 | **/ 89 | public void setClickwrapId(String clickwrapId) { 90 | this.clickwrapId = clickwrapId; 91 | } 92 | 93 | 94 | /** 95 | * clickwrapName. 96 | * 97 | * @return ClickwrapVersionsPagedResponse 98 | **/ 99 | public ClickwrapVersionsPagedResponse clickwrapName(String clickwrapName) { 100 | this.clickwrapName = clickwrapName; 101 | return this; 102 | } 103 | 104 | /** 105 | * The name of the clickwrap.. 106 | * @return clickwrapName 107 | **/ 108 | @Schema(description = "The name of the clickwrap.") 109 | public String getClickwrapName() { 110 | return clickwrapName; 111 | } 112 | 113 | /** 114 | * setClickwrapName. 115 | **/ 116 | public void setClickwrapName(String clickwrapName) { 117 | this.clickwrapName = clickwrapName; 118 | } 119 | 120 | 121 | /** 122 | * minimumPagesRemaining. 123 | * 124 | * @return ClickwrapVersionsPagedResponse 125 | **/ 126 | public ClickwrapVersionsPagedResponse minimumPagesRemaining(Integer minimumPagesRemaining) { 127 | this.minimumPagesRemaining = minimumPagesRemaining; 128 | return this; 129 | } 130 | 131 | /** 132 | * An array of clickwrap versions.. 133 | * @return minimumPagesRemaining 134 | **/ 135 | @Schema(description = "An array of clickwrap versions.") 136 | public Integer getMinimumPagesRemaining() { 137 | return minimumPagesRemaining; 138 | } 139 | 140 | /** 141 | * setMinimumPagesRemaining. 142 | **/ 143 | public void setMinimumPagesRemaining(Integer minimumPagesRemaining) { 144 | this.minimumPagesRemaining = minimumPagesRemaining; 145 | } 146 | 147 | 148 | /** 149 | * page. 150 | * 151 | * @return ClickwrapVersionsPagedResponse 152 | **/ 153 | public ClickwrapVersionsPagedResponse page(Integer page) { 154 | this.page = page; 155 | return this; 156 | } 157 | 158 | /** 159 | * The number of the current page.. 160 | * @return page 161 | **/ 162 | @Schema(description = "The number of the current page.") 163 | public Integer getPage() { 164 | return page; 165 | } 166 | 167 | /** 168 | * setPage. 169 | **/ 170 | public void setPage(Integer page) { 171 | this.page = page; 172 | } 173 | 174 | 175 | /** 176 | * pageSize. 177 | * 178 | * @return ClickwrapVersionsPagedResponse 179 | **/ 180 | public ClickwrapVersionsPagedResponse pageSize(Integer pageSize) { 181 | this.pageSize = pageSize; 182 | return this; 183 | } 184 | 185 | /** 186 | * The number of items per page.. 187 | * @return pageSize 188 | **/ 189 | @Schema(description = "The number of items per page.") 190 | public Integer getPageSize() { 191 | return pageSize; 192 | } 193 | 194 | /** 195 | * setPageSize. 196 | **/ 197 | public void setPageSize(Integer pageSize) { 198 | this.pageSize = pageSize; 199 | } 200 | 201 | 202 | /** 203 | * versions. 204 | * 205 | * @return ClickwrapVersionsPagedResponse 206 | **/ 207 | public ClickwrapVersionsPagedResponse versions(java.util.List versions) { 208 | this.versions = versions; 209 | return this; 210 | } 211 | 212 | /** 213 | * addVersionsItem. 214 | * 215 | * @return ClickwrapVersionsPagedResponse 216 | **/ 217 | public ClickwrapVersionsPagedResponse addVersionsItem(ClickwrapVersion versionsItem) { 218 | if (this.versions == null) { 219 | this.versions = new java.util.ArrayList<>(); 220 | } 221 | this.versions.add(versionsItem); 222 | return this; 223 | } 224 | 225 | /** 226 | * An array of clickwrap versions.. 227 | * @return versions 228 | **/ 229 | @Schema(description = "An array of clickwrap versions.") 230 | public java.util.List getVersions() { 231 | return versions; 232 | } 233 | 234 | /** 235 | * setVersions. 236 | **/ 237 | public void setVersions(java.util.List versions) { 238 | this.versions = versions; 239 | } 240 | 241 | 242 | /** 243 | * Compares objects. 244 | * 245 | * @return true or false depending on comparison result. 246 | */ 247 | @Override 248 | public boolean equals(java.lang.Object o) { 249 | if (this == o) { 250 | return true; 251 | } 252 | if (o == null || getClass() != o.getClass()) { 253 | return false; 254 | } 255 | ClickwrapVersionsPagedResponse clickwrapVersionsPagedResponse = (ClickwrapVersionsPagedResponse) o; 256 | return Objects.equals(this.accountId, clickwrapVersionsPagedResponse.accountId) && 257 | Objects.equals(this.clickwrapId, clickwrapVersionsPagedResponse.clickwrapId) && 258 | Objects.equals(this.clickwrapName, clickwrapVersionsPagedResponse.clickwrapName) && 259 | Objects.equals(this.minimumPagesRemaining, clickwrapVersionsPagedResponse.minimumPagesRemaining) && 260 | Objects.equals(this.page, clickwrapVersionsPagedResponse.page) && 261 | Objects.equals(this.pageSize, clickwrapVersionsPagedResponse.pageSize) && 262 | Objects.equals(this.versions, clickwrapVersionsPagedResponse.versions); 263 | } 264 | 265 | /** 266 | * Returns the HashCode. 267 | */ 268 | @Override 269 | public int hashCode() { 270 | return Objects.hash(accountId, clickwrapId, clickwrapName, minimumPagesRemaining, page, pageSize, versions); 271 | } 272 | 273 | 274 | /** 275 | * Converts the given object to string. 276 | */ 277 | @Override 278 | public String toString() { 279 | StringBuilder sb = new StringBuilder(); 280 | sb.append("class ClickwrapVersionsPagedResponse {\n"); 281 | 282 | sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); 283 | sb.append(" clickwrapId: ").append(toIndentedString(clickwrapId)).append("\n"); 284 | sb.append(" clickwrapName: ").append(toIndentedString(clickwrapName)).append("\n"); 285 | sb.append(" minimumPagesRemaining: ").append(toIndentedString(minimumPagesRemaining)).append("\n"); 286 | sb.append(" page: ").append(toIndentedString(page)).append("\n"); 287 | sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); 288 | sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); 289 | sb.append("}"); 290 | return sb.toString(); 291 | } 292 | 293 | /** 294 | * Convert the given object to string with each line indented by 4 spaces 295 | * (except the first line). 296 | */ 297 | private String toIndentedString(java.lang.Object o) { 298 | if (o == null) { 299 | return "null"; 300 | } 301 | return o.toString().replace("\n", "\n "); 302 | } 303 | 304 | } 305 | 306 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/DocumentLinkStylesFocus.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.fasterxml.jackson.annotation.JsonProperty; 6 | import com.fasterxml.jackson.annotation.JsonCreator; 7 | import com.fasterxml.jackson.annotation.JsonValue; 8 | import io.swagger.v3.oas.annotations.media.Schema; 9 | 10 | /** 11 | * DocumentLinkStylesFocus. 12 | * 13 | */ 14 | 15 | public class DocumentLinkStylesFocus { 16 | @JsonProperty("border") 17 | private String border = null; 18 | 19 | @JsonProperty("color") 20 | private String color = null; 21 | 22 | @JsonProperty("fontFamily") 23 | private String fontFamily = null; 24 | 25 | @JsonProperty("fontSize") 26 | private String fontSize = null; 27 | 28 | @JsonProperty("fontStyle") 29 | private String fontStyle = null; 30 | 31 | @JsonProperty("fontWeight") 32 | private Object fontWeight = null; 33 | 34 | @JsonProperty("margin") 35 | private String margin = null; 36 | 37 | @JsonProperty("padding") 38 | private String padding = null; 39 | 40 | @JsonProperty("textDecoration") 41 | private String textDecoration = null; 42 | 43 | 44 | /** 45 | * border. 46 | * 47 | * @return DocumentLinkStylesFocus 48 | **/ 49 | public DocumentLinkStylesFocus border(String border) { 50 | this.border = border; 51 | return this; 52 | } 53 | 54 | /** 55 | * Control the border of the element.. 56 | * @return border 57 | **/ 58 | @Schema(description = "Control the border of the element.") 59 | public String getBorder() { 60 | return border; 61 | } 62 | 63 | /** 64 | * setBorder. 65 | **/ 66 | public void setBorder(String border) { 67 | this.border = border; 68 | } 69 | 70 | 71 | /** 72 | * color. 73 | * 74 | * @return DocumentLinkStylesFocus 75 | **/ 76 | public DocumentLinkStylesFocus color(String color) { 77 | this.color = color; 78 | return this; 79 | } 80 | 81 | /** 82 | * Control the fore-ground color of the element.. 83 | * @return color 84 | **/ 85 | @Schema(description = "Control the fore-ground color of the element.") 86 | public String getColor() { 87 | return color; 88 | } 89 | 90 | /** 91 | * setColor. 92 | **/ 93 | public void setColor(String color) { 94 | this.color = color; 95 | } 96 | 97 | 98 | /** 99 | * fontFamily. 100 | * 101 | * @return DocumentLinkStylesFocus 102 | **/ 103 | public DocumentLinkStylesFocus fontFamily(String fontFamily) { 104 | this.fontFamily = fontFamily; 105 | return this; 106 | } 107 | 108 | /** 109 | * Control the font family of the text.. 110 | * @return fontFamily 111 | **/ 112 | @Schema(description = "Control the font family of the text.") 113 | public String getFontFamily() { 114 | return fontFamily; 115 | } 116 | 117 | /** 118 | * setFontFamily. 119 | **/ 120 | public void setFontFamily(String fontFamily) { 121 | this.fontFamily = fontFamily; 122 | } 123 | 124 | 125 | /** 126 | * fontSize. 127 | * 128 | * @return DocumentLinkStylesFocus 129 | **/ 130 | public DocumentLinkStylesFocus fontSize(String fontSize) { 131 | this.fontSize = fontSize; 132 | return this; 133 | } 134 | 135 | /** 136 | * Control the font size of the text.. 137 | * @return fontSize 138 | **/ 139 | @Schema(description = "Control the font size of the text.") 140 | public String getFontSize() { 141 | return fontSize; 142 | } 143 | 144 | /** 145 | * setFontSize. 146 | **/ 147 | public void setFontSize(String fontSize) { 148 | this.fontSize = fontSize; 149 | } 150 | 151 | 152 | /** 153 | * fontStyle. 154 | * 155 | * @return DocumentLinkStylesFocus 156 | **/ 157 | public DocumentLinkStylesFocus fontStyle(String fontStyle) { 158 | this.fontStyle = fontStyle; 159 | return this; 160 | } 161 | 162 | /** 163 | * Control the font style of the text.. 164 | * @return fontStyle 165 | **/ 166 | @Schema(description = "Control the font style of the text.") 167 | public String getFontStyle() { 168 | return fontStyle; 169 | } 170 | 171 | /** 172 | * setFontStyle. 173 | **/ 174 | public void setFontStyle(String fontStyle) { 175 | this.fontStyle = fontStyle; 176 | } 177 | 178 | 179 | /** 180 | * fontWeight. 181 | * 182 | * @return DocumentLinkStylesFocus 183 | **/ 184 | public DocumentLinkStylesFocus fontWeight(Object fontWeight) { 185 | this.fontWeight = fontWeight; 186 | return this; 187 | } 188 | 189 | /** 190 | * Control the font weight of the text.. 191 | * @return fontWeight 192 | **/ 193 | @Schema(description = "Control the font weight of the text.") 194 | public Object getFontWeight() { 195 | return fontWeight; 196 | } 197 | 198 | /** 199 | * setFontWeight. 200 | **/ 201 | public void setFontWeight(Object fontWeight) { 202 | this.fontWeight = fontWeight; 203 | } 204 | 205 | 206 | /** 207 | * margin. 208 | * 209 | * @return DocumentLinkStylesFocus 210 | **/ 211 | public DocumentLinkStylesFocus margin(String margin) { 212 | this.margin = margin; 213 | return this; 214 | } 215 | 216 | /** 217 | * Control the margin of the element.. 218 | * @return margin 219 | **/ 220 | @Schema(description = "Control the margin of the element.") 221 | public String getMargin() { 222 | return margin; 223 | } 224 | 225 | /** 226 | * setMargin. 227 | **/ 228 | public void setMargin(String margin) { 229 | this.margin = margin; 230 | } 231 | 232 | 233 | /** 234 | * padding. 235 | * 236 | * @return DocumentLinkStylesFocus 237 | **/ 238 | public DocumentLinkStylesFocus padding(String padding) { 239 | this.padding = padding; 240 | return this; 241 | } 242 | 243 | /** 244 | * Control the padding of the element.. 245 | * @return padding 246 | **/ 247 | @Schema(description = "Control the padding of the element.") 248 | public String getPadding() { 249 | return padding; 250 | } 251 | 252 | /** 253 | * setPadding. 254 | **/ 255 | public void setPadding(String padding) { 256 | this.padding = padding; 257 | } 258 | 259 | 260 | /** 261 | * textDecoration. 262 | * 263 | * @return DocumentLinkStylesFocus 264 | **/ 265 | public DocumentLinkStylesFocus textDecoration(String textDecoration) { 266 | this.textDecoration = textDecoration; 267 | return this; 268 | } 269 | 270 | /** 271 | * Control the underline and other styles of the text.. 272 | * @return textDecoration 273 | **/ 274 | @Schema(description = "Control the underline and other styles of the text.") 275 | public String getTextDecoration() { 276 | return textDecoration; 277 | } 278 | 279 | /** 280 | * setTextDecoration. 281 | **/ 282 | public void setTextDecoration(String textDecoration) { 283 | this.textDecoration = textDecoration; 284 | } 285 | 286 | 287 | /** 288 | * Compares objects. 289 | * 290 | * @return true or false depending on comparison result. 291 | */ 292 | @Override 293 | public boolean equals(java.lang.Object o) { 294 | if (this == o) { 295 | return true; 296 | } 297 | if (o == null || getClass() != o.getClass()) { 298 | return false; 299 | } 300 | DocumentLinkStylesFocus documentLinkStylesFocus = (DocumentLinkStylesFocus) o; 301 | return Objects.equals(this.border, documentLinkStylesFocus.border) && 302 | Objects.equals(this.color, documentLinkStylesFocus.color) && 303 | Objects.equals(this.fontFamily, documentLinkStylesFocus.fontFamily) && 304 | Objects.equals(this.fontSize, documentLinkStylesFocus.fontSize) && 305 | Objects.equals(this.fontStyle, documentLinkStylesFocus.fontStyle) && 306 | Objects.equals(this.fontWeight, documentLinkStylesFocus.fontWeight) && 307 | Objects.equals(this.margin, documentLinkStylesFocus.margin) && 308 | Objects.equals(this.padding, documentLinkStylesFocus.padding) && 309 | Objects.equals(this.textDecoration, documentLinkStylesFocus.textDecoration); 310 | } 311 | 312 | /** 313 | * Returns the HashCode. 314 | */ 315 | @Override 316 | public int hashCode() { 317 | return Objects.hash(border, color, fontFamily, fontSize, fontStyle, fontWeight, margin, padding, textDecoration); 318 | } 319 | 320 | 321 | /** 322 | * Converts the given object to string. 323 | */ 324 | @Override 325 | public String toString() { 326 | StringBuilder sb = new StringBuilder(); 327 | sb.append("class DocumentLinkStylesFocus {\n"); 328 | 329 | sb.append(" border: ").append(toIndentedString(border)).append("\n"); 330 | sb.append(" color: ").append(toIndentedString(color)).append("\n"); 331 | sb.append(" fontFamily: ").append(toIndentedString(fontFamily)).append("\n"); 332 | sb.append(" fontSize: ").append(toIndentedString(fontSize)).append("\n"); 333 | sb.append(" fontStyle: ").append(toIndentedString(fontStyle)).append("\n"); 334 | sb.append(" fontWeight: ").append(toIndentedString(fontWeight)).append("\n"); 335 | sb.append(" margin: ").append(toIndentedString(margin)).append("\n"); 336 | sb.append(" padding: ").append(toIndentedString(padding)).append("\n"); 337 | sb.append(" textDecoration: ").append(toIndentedString(textDecoration)).append("\n"); 338 | sb.append("}"); 339 | return sb.toString(); 340 | } 341 | 342 | /** 343 | * Convert the given object to string with each line indented by 4 spaces 344 | * (except the first line). 345 | */ 346 | private String toIndentedString(java.lang.Object o) { 347 | if (o == null) { 348 | return "null"; 349 | } 350 | return o.toString().replace("\n", "\n "); 351 | } 352 | 353 | } 354 | 355 | -------------------------------------------------------------------------------- /stylesheets/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ 2 | 3 | /** 4 | * 1. Set default font family to sans-serif. 5 | * 2. Prevent iOS text size adjust after orientation change, without disabling 6 | * user zoom. 7 | */ 8 | 9 | html { 10 | font-family: sans-serif; /* 1 */ 11 | -ms-text-size-adjust: 100%; /* 2 */ 12 | -webkit-text-size-adjust: 100%; /* 2 */ 13 | } 14 | 15 | /** 16 | * Remove default margin. 17 | */ 18 | 19 | body { 20 | margin: 0; 21 | } 22 | 23 | /* HTML5 display definitions 24 | ========================================================================== */ 25 | 26 | /** 27 | * Correct `block` display not defined for any HTML5 element in IE 8/9. 28 | * Correct `block` display not defined for `details` or `summary` in IE 10/11 29 | * and Firefox. 30 | * Correct `block` display not defined for `main` in IE 11. 31 | */ 32 | 33 | article, 34 | aside, 35 | details, 36 | figcaption, 37 | figure, 38 | footer, 39 | header, 40 | hgroup, 41 | main, 42 | menu, 43 | nav, 44 | section, 45 | summary { 46 | display: block; 47 | } 48 | 49 | /** 50 | * 1. Correct `inline-block` display not defined in IE 8/9. 51 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. 52 | */ 53 | 54 | audio, 55 | canvas, 56 | progress, 57 | video { 58 | display: inline-block; /* 1 */ 59 | vertical-align: baseline; /* 2 */ 60 | } 61 | 62 | /** 63 | * Prevent modern browsers from displaying `audio` without controls. 64 | * Remove excess height in iOS 5 devices. 65 | */ 66 | 67 | audio:not([controls]) { 68 | display: none; 69 | height: 0; 70 | } 71 | 72 | /** 73 | * Address `[hidden]` styling not present in IE 8/9/10. 74 | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. 75 | */ 76 | 77 | [hidden], 78 | template { 79 | display: none; 80 | } 81 | 82 | /* Links 83 | ========================================================================== */ 84 | 85 | /** 86 | * Remove the gray background color from active links in IE 10. 87 | */ 88 | 89 | a { 90 | background-color: transparent; 91 | } 92 | 93 | /** 94 | * Improve readability when focused and also mouse hovered in all browsers. 95 | */ 96 | 97 | a:active, 98 | a:hover { 99 | outline: 0; 100 | } 101 | 102 | /* Text-level semantics 103 | ========================================================================== */ 104 | 105 | /** 106 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. 107 | */ 108 | 109 | abbr[title] { 110 | border-bottom: 1px dotted; 111 | } 112 | 113 | /** 114 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. 115 | */ 116 | 117 | b, 118 | strong { 119 | font-weight: bold; 120 | } 121 | 122 | /** 123 | * Address styling not present in Safari and Chrome. 124 | */ 125 | 126 | dfn { 127 | font-style: italic; 128 | } 129 | 130 | /** 131 | * Address variable `h1` font-size and margin within `section` and `article` 132 | * contexts in Firefox 4+, Safari, and Chrome. 133 | */ 134 | 135 | h1 { 136 | font-size: 2em; 137 | margin: 0.67em 0; 138 | } 139 | 140 | /** 141 | * Address styling not present in IE 8/9. 142 | */ 143 | 144 | mark { 145 | background: #ff0; 146 | color: #000; 147 | } 148 | 149 | /** 150 | * Address inconsistent and variable font size in all browsers. 151 | */ 152 | 153 | small { 154 | font-size: 80%; 155 | } 156 | 157 | /** 158 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. 159 | */ 160 | 161 | sub, 162 | sup { 163 | font-size: 75%; 164 | line-height: 0; 165 | position: relative; 166 | vertical-align: baseline; 167 | } 168 | 169 | sup { 170 | top: -0.5em; 171 | } 172 | 173 | sub { 174 | bottom: -0.25em; 175 | } 176 | 177 | /* Embedded content 178 | ========================================================================== */ 179 | 180 | /** 181 | * Remove border when inside `a` element in IE 8/9/10. 182 | */ 183 | 184 | img { 185 | border: 0; 186 | } 187 | 188 | /** 189 | * Correct overflow not hidden in IE 9/10/11. 190 | */ 191 | 192 | svg:not(:root) { 193 | overflow: hidden; 194 | } 195 | 196 | /* Grouping content 197 | ========================================================================== */ 198 | 199 | /** 200 | * Address margin not present in IE 8/9 and Safari. 201 | */ 202 | 203 | figure { 204 | margin: 1em 40px; 205 | } 206 | 207 | /** 208 | * Address differences between Firefox and other browsers. 209 | */ 210 | 211 | hr { 212 | box-sizing: content-box; 213 | height: 0; 214 | } 215 | 216 | /** 217 | * Contain overflow in all browsers. 218 | */ 219 | 220 | pre { 221 | overflow: auto; 222 | } 223 | 224 | /** 225 | * Address odd `em`-unit font size rendering in all browsers. 226 | */ 227 | 228 | code, 229 | kbd, 230 | pre, 231 | samp { 232 | font-family: monospace, monospace; 233 | font-size: 1em; 234 | } 235 | 236 | /* Forms 237 | ========================================================================== */ 238 | 239 | /** 240 | * Known limitation: by default, Chrome and Safari on OS X allow very limited 241 | * styling of `select`, unless a `border` property is set. 242 | */ 243 | 244 | /** 245 | * 1. Correct color not being inherited. 246 | * Known issue: affects color of disabled elements. 247 | * 2. Correct font properties not being inherited. 248 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. 249 | */ 250 | 251 | button, 252 | input, 253 | optgroup, 254 | select, 255 | textarea { 256 | color: inherit; /* 1 */ 257 | font: inherit; /* 2 */ 258 | margin: 0; /* 3 */ 259 | } 260 | 261 | /** 262 | * Address `overflow` set to `hidden` in IE 8/9/10/11. 263 | */ 264 | 265 | button { 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Address inconsistent `text-transform` inheritance for `button` and `select`. 271 | * All other form control elements do not inherit `text-transform` values. 272 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. 273 | * Correct `select` style inheritance in Firefox. 274 | */ 275 | 276 | button, 277 | select { 278 | text-transform: none; 279 | } 280 | 281 | /** 282 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 283 | * and `video` controls. 284 | * 2. Correct inability to style clickable `input` types in iOS. 285 | * 3. Improve usability and consistency of cursor style between image-type 286 | * `input` and others. 287 | */ 288 | 289 | button, 290 | html input[type="button"], /* 1 */ 291 | input[type="reset"], 292 | input[type="submit"] { 293 | -webkit-appearance: button; /* 2 */ 294 | cursor: pointer; /* 3 */ 295 | } 296 | 297 | /** 298 | * Re-set default cursor for disabled elements. 299 | */ 300 | 301 | button[disabled], 302 | html input[disabled] { 303 | cursor: default; 304 | } 305 | 306 | /** 307 | * Remove inner padding and border in Firefox 4+. 308 | */ 309 | 310 | button::-moz-focus-inner, 311 | input::-moz-focus-inner { 312 | border: 0; 313 | padding: 0; 314 | } 315 | 316 | /** 317 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in 318 | * the UA stylesheet. 319 | */ 320 | 321 | input { 322 | line-height: normal; 323 | } 324 | 325 | /** 326 | * It's recommended that you don't attempt to style these elements. 327 | * Firefox's implementation doesn't respect box-sizing, padding, or width. 328 | * 329 | * 1. Address box sizing set to `content-box` in IE 8/9/10. 330 | * 2. Remove excess padding in IE 8/9/10. 331 | */ 332 | 333 | input[type="checkbox"], 334 | input[type="radio"] { 335 | box-sizing: border-box; /* 1 */ 336 | padding: 0; /* 2 */ 337 | } 338 | 339 | /** 340 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain 341 | * `font-size` values of the `input`, it causes the cursor style of the 342 | * decrement button to change from `default` to `text`. 343 | */ 344 | 345 | input[type="number"]::-webkit-inner-spin-button, 346 | input[type="number"]::-webkit-outer-spin-button { 347 | height: auto; 348 | } 349 | 350 | /** 351 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. 352 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome 353 | * (include `-moz` to future-proof). 354 | */ 355 | 356 | input[type="search"] { 357 | -webkit-appearance: textfield; /* 1 */ /* 2 */ 358 | box-sizing: content-box; 359 | } 360 | 361 | /** 362 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. 363 | * Safari (but not Chrome) clips the cancel button when the search input has 364 | * padding (and `textfield` appearance). 365 | */ 366 | 367 | input[type="search"]::-webkit-search-cancel-button, 368 | input[type="search"]::-webkit-search-decoration { 369 | -webkit-appearance: none; 370 | } 371 | 372 | /** 373 | * Define consistent border, margin, and padding. 374 | */ 375 | 376 | fieldset { 377 | border: 1px solid #c0c0c0; 378 | margin: 0 2px; 379 | padding: 0.35em 0.625em 0.75em; 380 | } 381 | 382 | /** 383 | * 1. Correct `color` not being inherited in IE 8/9/10/11. 384 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. 385 | */ 386 | 387 | legend { 388 | border: 0; /* 1 */ 389 | padding: 0; /* 2 */ 390 | } 391 | 392 | /** 393 | * Remove default vertical scrollbar in IE 8/9/10/11. 394 | */ 395 | 396 | textarea { 397 | overflow: auto; 398 | } 399 | 400 | /** 401 | * Don't inherit the `font-weight` (applied by a rule above). 402 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. 403 | */ 404 | 405 | optgroup { 406 | font-weight: bold; 407 | } 408 | 409 | /* Tables 410 | ========================================================================== */ 411 | 412 | /** 413 | * Remove most spacing between table cells. 414 | */ 415 | 416 | table { 417 | border-collapse: collapse; 418 | border-spacing: 0; 419 | } 420 | 421 | td, 422 | th { 423 | padding: 0; 424 | } 425 | -------------------------------------------------------------------------------- /src/main/java/com/docusign/click/model/ClickwrapVersionDeleteInfo.java: -------------------------------------------------------------------------------- 1 | package com.docusign.click.model; 2 | 3 | import java.util.Objects; 4 | import java.util.Arrays; 5 | import com.docusign.click.model.ClickwrapScheduledReacceptance; 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.fasterxml.jackson.annotation.JsonCreator; 8 | import com.fasterxml.jackson.annotation.JsonValue; 9 | import io.swagger.v3.oas.annotations.media.Schema; 10 | 11 | /** 12 | * ClickwrapVersionDeleteInfo 13 | */ 14 | 15 | public class ClickwrapVersionDeleteInfo { 16 | @JsonProperty("createdTime") 17 | private Object createdTime = null; 18 | 19 | @JsonProperty("deletionMessage") 20 | private String deletionMessage = null; 21 | 22 | @JsonProperty("deletionSuccess") 23 | private Boolean deletionSuccess = null; 24 | 25 | @JsonProperty("lastModified") 26 | private Object lastModified = null; 27 | 28 | @JsonProperty("lastModifiedBy") 29 | private String lastModifiedBy = null; 30 | 31 | @JsonProperty("ownerUserId") 32 | private String ownerUserId = null; 33 | 34 | @JsonProperty("requireReacceptance") 35 | private Boolean requireReacceptance = null; 36 | 37 | @JsonProperty("scheduledDate") 38 | private Object scheduledDate = null; 39 | 40 | @JsonProperty("scheduledReacceptance") 41 | private ClickwrapScheduledReacceptance scheduledReacceptance = null; 42 | 43 | @JsonProperty("status") 44 | private String status = null; 45 | 46 | @JsonProperty("versionId") 47 | private String versionId = null; 48 | 49 | @JsonProperty("versionNumber") 50 | private Integer versionNumber = null; 51 | 52 | public ClickwrapVersionDeleteInfo createdTime(Object createdTime) { 53 | this.createdTime = createdTime; 54 | return this; 55 | } 56 | 57 | /** 58 | * 59 | * @return createdTime 60 | **/ 61 | @Schema(description = "") 62 | public Object getCreatedTime() { 63 | return createdTime; 64 | } 65 | 66 | public void setCreatedTime(Object createdTime) { 67 | this.createdTime = createdTime; 68 | } 69 | 70 | public ClickwrapVersionDeleteInfo deletionMessage(String deletionMessage) { 71 | this.deletionMessage = deletionMessage; 72 | return this; 73 | } 74 | 75 | /** 76 | * 77 | * @return deletionMessage 78 | **/ 79 | @Schema(description = "") 80 | public String getDeletionMessage() { 81 | return deletionMessage; 82 | } 83 | 84 | public void setDeletionMessage(String deletionMessage) { 85 | this.deletionMessage = deletionMessage; 86 | } 87 | 88 | public ClickwrapVersionDeleteInfo deletionSuccess(Boolean deletionSuccess) { 89 | this.deletionSuccess = deletionSuccess; 90 | return this; 91 | } 92 | 93 | /** 94 | * 95 | * @return deletionSuccess 96 | **/ 97 | @Schema(description = "") 98 | public Boolean isDeletionSuccess() { 99 | return deletionSuccess; 100 | } 101 | 102 | public void setDeletionSuccess(Boolean deletionSuccess) { 103 | this.deletionSuccess = deletionSuccess; 104 | } 105 | 106 | public ClickwrapVersionDeleteInfo lastModified(Object lastModified) { 107 | this.lastModified = lastModified; 108 | return this; 109 | } 110 | 111 | /** 112 | * 113 | * @return lastModified 114 | **/ 115 | @Schema(description = "") 116 | public Object getLastModified() { 117 | return lastModified; 118 | } 119 | 120 | public void setLastModified(Object lastModified) { 121 | this.lastModified = lastModified; 122 | } 123 | 124 | public ClickwrapVersionDeleteInfo lastModifiedBy(String lastModifiedBy) { 125 | this.lastModifiedBy = lastModifiedBy; 126 | return this; 127 | } 128 | 129 | /** 130 | * 131 | * @return lastModifiedBy 132 | **/ 133 | @Schema(description = "") 134 | public String getLastModifiedBy() { 135 | return lastModifiedBy; 136 | } 137 | 138 | public void setLastModifiedBy(String lastModifiedBy) { 139 | this.lastModifiedBy = lastModifiedBy; 140 | } 141 | 142 | public ClickwrapVersionDeleteInfo ownerUserId(String ownerUserId) { 143 | this.ownerUserId = ownerUserId; 144 | return this; 145 | } 146 | 147 | /** 148 | * 149 | * @return ownerUserId 150 | **/ 151 | @Schema(description = "") 152 | public String getOwnerUserId() { 153 | return ownerUserId; 154 | } 155 | 156 | public void setOwnerUserId(String ownerUserId) { 157 | this.ownerUserId = ownerUserId; 158 | } 159 | 160 | public ClickwrapVersionDeleteInfo requireReacceptance(Boolean requireReacceptance) { 161 | this.requireReacceptance = requireReacceptance; 162 | return this; 163 | } 164 | 165 | /** 166 | * 167 | * @return requireReacceptance 168 | **/ 169 | @Schema(description = "") 170 | public Boolean isRequireReacceptance() { 171 | return requireReacceptance; 172 | } 173 | 174 | public void setRequireReacceptance(Boolean requireReacceptance) { 175 | this.requireReacceptance = requireReacceptance; 176 | } 177 | 178 | public ClickwrapVersionDeleteInfo scheduledDate(Object scheduledDate) { 179 | this.scheduledDate = scheduledDate; 180 | return this; 181 | } 182 | 183 | /** 184 | * 185 | * @return scheduledDate 186 | **/ 187 | @Schema(description = "") 188 | public Object getScheduledDate() { 189 | return scheduledDate; 190 | } 191 | 192 | public void setScheduledDate(Object scheduledDate) { 193 | this.scheduledDate = scheduledDate; 194 | } 195 | 196 | public ClickwrapVersionDeleteInfo scheduledReacceptance(ClickwrapScheduledReacceptance scheduledReacceptance) { 197 | this.scheduledReacceptance = scheduledReacceptance; 198 | return this; 199 | } 200 | 201 | /** 202 | * Get scheduledReacceptance 203 | * @return scheduledReacceptance 204 | **/ 205 | @Schema(description = "") 206 | public ClickwrapScheduledReacceptance getScheduledReacceptance() { 207 | return scheduledReacceptance; 208 | } 209 | 210 | public void setScheduledReacceptance(ClickwrapScheduledReacceptance scheduledReacceptance) { 211 | this.scheduledReacceptance = scheduledReacceptance; 212 | } 213 | 214 | public ClickwrapVersionDeleteInfo status(String status) { 215 | this.status = status; 216 | return this; 217 | } 218 | 219 | /** 220 | * 221 | * @return status 222 | **/ 223 | @Schema(description = "") 224 | public String getStatus() { 225 | return status; 226 | } 227 | 228 | public void setStatus(String status) { 229 | this.status = status; 230 | } 231 | 232 | public ClickwrapVersionDeleteInfo versionId(String versionId) { 233 | this.versionId = versionId; 234 | return this; 235 | } 236 | 237 | /** 238 | * 239 | * @return versionId 240 | **/ 241 | @Schema(description = "") 242 | public String getVersionId() { 243 | return versionId; 244 | } 245 | 246 | public void setVersionId(String versionId) { 247 | this.versionId = versionId; 248 | } 249 | 250 | public ClickwrapVersionDeleteInfo versionNumber(Integer versionNumber) { 251 | this.versionNumber = versionNumber; 252 | return this; 253 | } 254 | 255 | /** 256 | * 257 | * @return versionNumber 258 | **/ 259 | @Schema(description = "") 260 | public Integer getVersionNumber() { 261 | return versionNumber; 262 | } 263 | 264 | public void setVersionNumber(Integer versionNumber) { 265 | this.versionNumber = versionNumber; 266 | } 267 | 268 | 269 | @Override 270 | public boolean equals(java.lang.Object o) { 271 | if (this == o) { 272 | return true; 273 | } 274 | if (o == null || getClass() != o.getClass()) { 275 | return false; 276 | } 277 | ClickwrapVersionDeleteInfo clickwrapVersionDeleteInfo = (ClickwrapVersionDeleteInfo) o; 278 | return Objects.equals(this.createdTime, clickwrapVersionDeleteInfo.createdTime) && 279 | Objects.equals(this.deletionMessage, clickwrapVersionDeleteInfo.deletionMessage) && 280 | Objects.equals(this.deletionSuccess, clickwrapVersionDeleteInfo.deletionSuccess) && 281 | Objects.equals(this.lastModified, clickwrapVersionDeleteInfo.lastModified) && 282 | Objects.equals(this.lastModifiedBy, clickwrapVersionDeleteInfo.lastModifiedBy) && 283 | Objects.equals(this.ownerUserId, clickwrapVersionDeleteInfo.ownerUserId) && 284 | Objects.equals(this.requireReacceptance, clickwrapVersionDeleteInfo.requireReacceptance) && 285 | Objects.equals(this.scheduledDate, clickwrapVersionDeleteInfo.scheduledDate) && 286 | Objects.equals(this.scheduledReacceptance, clickwrapVersionDeleteInfo.scheduledReacceptance) && 287 | Objects.equals(this.status, clickwrapVersionDeleteInfo.status) && 288 | Objects.equals(this.versionId, clickwrapVersionDeleteInfo.versionId) && 289 | Objects.equals(this.versionNumber, clickwrapVersionDeleteInfo.versionNumber); 290 | } 291 | 292 | @Override 293 | public int hashCode() { 294 | return Objects.hash(createdTime, deletionMessage, deletionSuccess, lastModified, lastModifiedBy, ownerUserId, requireReacceptance, scheduledDate, scheduledReacceptance, status, versionId, versionNumber); 295 | } 296 | 297 | 298 | @Override 299 | public String toString() { 300 | StringBuilder sb = new StringBuilder(); 301 | sb.append("class ClickwrapVersionDeleteInfo {\n"); 302 | 303 | sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); 304 | sb.append(" deletionMessage: ").append(toIndentedString(deletionMessage)).append("\n"); 305 | sb.append(" deletionSuccess: ").append(toIndentedString(deletionSuccess)).append("\n"); 306 | sb.append(" lastModified: ").append(toIndentedString(lastModified)).append("\n"); 307 | sb.append(" lastModifiedBy: ").append(toIndentedString(lastModifiedBy)).append("\n"); 308 | sb.append(" ownerUserId: ").append(toIndentedString(ownerUserId)).append("\n"); 309 | sb.append(" requireReacceptance: ").append(toIndentedString(requireReacceptance)).append("\n"); 310 | sb.append(" scheduledDate: ").append(toIndentedString(scheduledDate)).append("\n"); 311 | sb.append(" scheduledReacceptance: ").append(toIndentedString(scheduledReacceptance)).append("\n"); 312 | sb.append(" status: ").append(toIndentedString(status)).append("\n"); 313 | sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); 314 | sb.append(" versionNumber: ").append(toIndentedString(versionNumber)).append("\n"); 315 | sb.append("}"); 316 | return sb.toString(); 317 | } 318 | 319 | /** 320 | * Convert the given object to string with each line indented by 4 spaces 321 | * (except the first line). 322 | */ 323 | private String toIndentedString(java.lang.Object o) { 324 | if (o == null) { 325 | return "null"; 326 | } 327 | return o.toString().replace("\n", "\n "); 328 | } 329 | 330 | } 331 | 332 | --------------------------------------------------------------------------------