diff --git a/sdks/java-v2/README.md b/sdks/java-v2/README.md index 255e0809c..483d9ef97 100644 --- a/sdks/java-v2/README.md +++ b/sdks/java-v2/README.md @@ -56,7 +56,7 @@ Add this dependency to your project's POM: com.dropbox.sign dropbox-sign - 2.4-dev + 2.4.1-dev compile ``` @@ -72,7 +72,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.dropbox.sign:dropbox-sign:2.4-dev" + implementation "com.dropbox.sign:dropbox-sign:2.4.1-dev" } ``` @@ -86,7 +86,7 @@ mvn clean package Then manually install the following JARs: -- `target/dropbox-sign-2.4-dev.jar` +- `target/dropbox-sign-2.4.1-dev.jar` - `target/lib/*.jar` ## Getting Started @@ -452,7 +452,7 @@ apisupport@hellosign.com This Java package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `3.0.0` - - Package version: `2.4-dev` + - Package version: `2.4.1-dev` - Build package: `org.openapitools.codegen.languages.JavaClientCodegen` diff --git a/sdks/java-v2/VERSION b/sdks/java-v2/VERSION index 12144f5cf..dfb9edcf4 100644 --- a/sdks/java-v2/VERSION +++ b/sdks/java-v2/VERSION @@ -1 +1 @@ -2.4-dev +2.4.1-dev diff --git a/sdks/java-v2/bin/copy-constants.php b/sdks/java-v2/bin/copy-constants.php new file mode 100755 index 000000000..70ec3083c --- /dev/null +++ b/sdks/java-v2/bin/copy-constants.php @@ -0,0 +1,64 @@ +#!/usr/bin/env php +run(); \ No newline at end of file diff --git a/sdks/java-v2/build.gradle b/sdks/java-v2/build.gradle index dadf69fc9..36ca0dfe2 100644 --- a/sdks/java-v2/build.gradle +++ b/sdks/java-v2/build.gradle @@ -21,7 +21,7 @@ apply plugin: 'signing' group = 'com.dropbox.sign' archivesBaseName = 'dropbox-sign' -version = '2.4-dev' +version = '2.4.1-dev' sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 diff --git a/sdks/java-v2/build.sbt b/sdks/java-v2/build.sbt index 6ca675690..e5f46847c 100644 --- a/sdks/java-v2/build.sbt +++ b/sdks/java-v2/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.dropbox.sign", name := "dropbox-sign", - version := "2.4-dev", + version := "2.4.1-dev", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/sdks/java-v2/docs/SubFormFieldRuleAction.md b/sdks/java-v2/docs/SubFormFieldRuleAction.md index 6a2d43481..16928736e 100644 --- a/sdks/java-v2/docs/SubFormFieldRuleAction.md +++ b/sdks/java-v2/docs/SubFormFieldRuleAction.md @@ -19,8 +19,8 @@ | Name | Value | ---- | ----- -| FIELD_VISIBILITY | "change-field-visibility" | -| GROUP_VISIBILITY | "change-group-visibility" | +| CHANGE_FIELD_VISIBILITY | "change-field-visibility" | +| CHANGE_GROUP_VISIBILITY | "change-group-visibility" | diff --git a/sdks/java-v2/gradle.properties b/sdks/java-v2/gradle.properties index 1f08bfd5f..be029dcab 100644 --- a/sdks/java-v2/gradle.properties +++ b/sdks/java-v2/gradle.properties @@ -6,7 +6,7 @@ #target = android GROUP=com.dropbox.sign POM_ARTIFACT_ID=dropbox-sign -VERSION_NAME=2.4-dev +VERSION_NAME=2.4.1-dev POM_NAME=Dropbox Sign Java SDK POM_DESCRIPTION=Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/sdks/java-v2/openapi-config.yaml b/sdks/java-v2/openapi-config.yaml index 0c922902d..8b6cf3974 100644 --- a/sdks/java-v2/openapi-config.yaml +++ b/sdks/java-v2/openapi-config.yaml @@ -18,7 +18,7 @@ additionalProperties: groupId: com.dropbox.sign artifactId: dropbox-sign artifactName: Dropbox Sign Java SDK - artifactVersion: "2.4-dev" + artifactVersion: "2.4.1-dev" artifactUrl: https://github.com/hellosign/dropbox-sign-java artifactDescription: Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! scmConnection: scm:git:git://github.com/hellosign/dropbox-sign-java.git diff --git a/sdks/java-v2/pom.xml b/sdks/java-v2/pom.xml index f5ef2ad0e..29c230a40 100644 --- a/sdks/java-v2/pom.xml +++ b/sdks/java-v2/pom.xml @@ -5,7 +5,7 @@ dropbox-sign jar dropbox-sign - 2.4-dev + 2.4.1-dev https://github.com/hellosign/dropbox-sign-java Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! @@ -334,6 +334,7 @@ jersey-apache-connector ${jersey-version} + org.junit.jupiter @@ -355,6 +356,7 @@ 2.17.1 0.2.6 2.1.1 + 3.0.2 5.10.0 2.21.0 3.12.4 diff --git a/sdks/java-v2/run-build b/sdks/java-v2/run-build index 778da00da..2831739d6 100755 --- a/sdks/java-v2/run-build +++ b/sdks/java-v2/run-build @@ -18,7 +18,7 @@ rm -f "${DIR}/src/main/java/com/dropbox/sign/model/"*.java docker run --rm \ -v "${DIR}/:/local" \ - openapitools/openapi-generator-cli:v7.8.0 generate \ + openapitools/openapi-generator-cli:v7.12.0 generate \ -i "/local/openapi-sdk.yaml" \ -c "/local/openapi-config.yaml" \ -t "/local/templates" \ @@ -47,6 +47,9 @@ docker run --rm \ -w "${WORKING_DIR}" \ perl bash ./bin/scan_for +printf "Adding old-style constant names ...\n" +bash "${DIR}/bin/php" ./bin/copy-constants.php + # avoid docker messing with permissions if [[ -z "$GITHUB_ACTIONS" ]]; then chmod 644 "${DIR}/README.md" diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java b/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java index 6e98226ae..ff86f745a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java @@ -84,7 +84,7 @@ /** *

ApiClient class.

*/ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ApiClient extends JavaTimeFormatter { private static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); @@ -159,7 +159,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.4-dev/java"); + setUserAgent("OpenAPI-Generator/2.4.1-dev/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap<>(); @@ -807,24 +807,10 @@ public Entity serialize(Object obj, Map formParams, String co if (contentType.startsWith("multipart/form-data")) { MultiPart multiPart = new MultiPart(); for (Entry param: formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()) - .fileName(file.getName()).size(file.length()).build(); - - // Attempt to probe the content type for the file so that the form part is more correctly - // and precisely identified, but fall back to application/octet-stream if that fails. - MediaType type; - try { - type = MediaType.valueOf(Files.probeContentType(file.toPath())); - } catch (IOException | IllegalArgumentException e) { - type = MediaType.APPLICATION_OCTET_STREAM_TYPE; - } - - multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); + if (param.getValue() instanceof Iterable) { + ((Iterable)param.getValue()).forEach(v -> addParamToMultipart(v, param.getKey(), multiPart)); } else { - FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build(); - multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue()))); + addParamToMultipart(param.getValue(), param.getKey(), multiPart); } } entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE); @@ -853,6 +839,36 @@ public Entity serialize(Object obj, Map formParams, String co return entity; } + /** + * Adds the object with the provided key to the MultiPart. + * Based on the object type sets Content-Disposition and Content-Type. + * + * @param obj Object + * @param key Key of the object + * @param multiPart MultiPart to add the form param to + */ + private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + if (value instanceof File) { + File file = (File) value; + FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key) + .fileName(file.getName()).size(file.length()).build(); + + // Attempt to probe the content type for the file so that the form part is more correctly + // and precisely identified, but fall back to application/octet-stream if that fails. + MediaType type; + try { + type = MediaType.valueOf(Files.probeContentType(file.toPath())); + } catch (IOException | IllegalArgumentException e) { + type = MediaType.APPLICATION_OCTET_STREAM_TYPE; + } + + multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); + } else { + FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key).build(); + multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(value))); + } + } + /** * Serialize the given Java object into string according the given * Content-Type (only JSON, HTTP form is supported for now). @@ -1143,7 +1159,11 @@ private Response sendRequest(String method, Invocation.Builder invocationBuilder } else if ("PUT".equals(method)) { response = invocationBuilder.put(entity); } else if ("DELETE".equals(method)) { - response = invocationBuilder.method("DELETE", entity); + if ("".equals(entity.getEntity())) { + response = invocationBuilder.method("DELETE"); + } else { + response = invocationBuilder.method("DELETE", entity); + } } else if ("PATCH".equals(method)) { response = invocationBuilder.method("PATCH", entity); } else { diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/ApiException.java b/sdks/java-v2/src/main/java/com/dropbox/sign/ApiException.java index 2d61576a1..bb5104058 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/ApiException.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/ApiException.java @@ -20,7 +20,7 @@ /** * API Exception */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java b/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java index 69b20c70d..4c6edd1a1 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java @@ -13,11 +13,11 @@ package com.dropbox.sign; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class Configuration { - public static final String VERSION = "2.4-dev"; + public static final String VERSION = "2.4.1-dev"; - private static ApiClient defaultApiClient = new ApiClient(); + private static volatile ApiClient defaultApiClient = new ApiClient(); /** * Get the default API client, which would be used when creating API diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/EventCallbackHelper.java b/sdks/java-v2/src/main/java/com/dropbox/sign/EventCallbackHelper.java index 2470e2ba2..837f2118c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/EventCallbackHelper.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/EventCallbackHelper.java @@ -18,7 +18,7 @@ import org.apache.commons.codec.digest.HmacAlgorithms; import org.apache.commons.codec.digest.HmacUtils; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class EventCallbackHelper { public static final String EVENT_TYPE_ACCOUNT_CALLBACK = "account_callback"; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/JSON.java b/sdks/java-v2/src/main/java/com/dropbox/sign/JSON.java index 68a3518c5..feb72da5e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/JSON.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/JSON.java @@ -17,7 +17,6 @@ import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.json.JsonMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.dropbox.sign.model.*; import java.text.DateFormat; import java.util.HashMap; @@ -27,7 +26,7 @@ import jakarta.ws.rs.core.GenericType; import jakarta.ws.rs.ext.ContextResolver; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/JavaTimeFormatter.java b/sdks/java-v2/src/main/java/com/dropbox/sign/JavaTimeFormatter.java index f91775be0..b9cf82bd9 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/JavaTimeFormatter.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/JavaTimeFormatter.java @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/Pair.java b/sdks/java-v2/src/main/java/com/dropbox/sign/Pair.java index 271555c5e..8172fd6a8 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/Pair.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/Pair.java @@ -13,7 +13,7 @@ package com.dropbox.sign; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class Pair { private String name = ""; private String value = ""; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/RFC3339DateFormat.java b/sdks/java-v2/src/main/java/com/dropbox/sign/RFC3339DateFormat.java index df3000348..2f9033641 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/RFC3339DateFormat.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/RFC3339DateFormat.java @@ -22,7 +22,7 @@ import java.util.GregorianCalendar; import java.util.TimeZone; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class RFC3339DateFormat extends DateFormat { private static final long serialVersionUID = 1L; private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/ServerConfiguration.java b/sdks/java-v2/src/main/java/com/dropbox/sign/ServerConfiguration.java index cb85f1c74..e94793271 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/ServerConfiguration.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ServerConfiguration { public String URL; public String description; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/ServerVariable.java b/sdks/java-v2/src/main/java/com/dropbox/sign/ServerVariable.java index c40ffb456..f45333cad 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/ServerVariable.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/StringUtil.java b/sdks/java-v2/src/main/java/com/dropbox/sign/StringUtil.java index f3bd08f2b..246fae55d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/StringUtil.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java index 95a5a8a9c..3981d8dee 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class AccountApi { private ApiClient apiClient; @@ -53,13 +53,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * Create Account. + * Create Account * Creates a new Dropbox Sign Account that is associated with the specified `email_address`. * @param accountCreateRequest (required) * @return AccountCreateResponse * @throws ApiException if fails to make API call * @http.response.details - +
+ @@ -71,13 +72,14 @@ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateReq /** - * Create Account. + * Create Account * Creates a new Dropbox Sign Account that is associated with the specified `email_address`. * @param accountCreateRequest (required) * @return ApiResponse<AccountCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -114,14 +116,15 @@ public ApiResponse accountCreateWithHttpInfo(AccountCreat ); } /** - * Get Account. + * Get Account * Returns the properties and settings of your Account. * @param accountId `account_id` or `email_address` is required. If both are provided, the account id prevails. The ID of the Account. (optional) * @param emailAddress `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) * @return AccountGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -172,14 +175,15 @@ public ApiResponse accountGetWithHttpInfo(String accountId) /** - * Get Account. + * Get Account * Returns the properties and settings of your Account. * @param accountId `account_id` or `email_address` is required. If both are provided, the account id prevails. The ID of the Account. (optional) * @param emailAddress `account_id` or `email_address` is required, If both are provided, the account id prevails. The email address of the Account. (optional) * @return ApiResponse<AccountGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -217,13 +221,14 @@ public ApiResponse accountGetWithHttpInfo(String accountId, ); } /** - * Update Account. + * Update Account * Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * @param accountUpdateRequest (required) * @return AccountGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -235,13 +240,14 @@ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateReques /** - * Update Account. + * Update Account * Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. * @param accountUpdateRequest (required) * @return ApiResponse<AccountGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -278,13 +284,14 @@ public ApiResponse accountUpdateWithHttpInfo(AccountUpdateRe ); } /** - * Verify Account. + * Verify Account * Verifies whether an Dropbox Sign Account exists for the given email address. * @param accountVerifyRequest (required) * @return AccountVerifyResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -296,13 +303,14 @@ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyReq /** - * Verify Account. + * Verify Account * Verifies whether an Dropbox Sign Account exists for the given email address. * @param accountVerifyRequest (required) * @return ApiResponse<AccountVerifyResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java index 37ec596ea..813cf39c4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ApiAppApi { private ApiClient apiClient; @@ -51,13 +51,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * Create API App. + * Create API App * Creates a new API App. * @param apiAppCreateRequest (required) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -69,13 +70,14 @@ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) t /** - * Create API App. + * Create API App * Creates a new API App. * @param apiAppCreateRequest (required) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -112,12 +114,13 @@ public ApiResponse apiAppCreateWithHttpInfo(ApiAppCreateReque ); } /** - * Delete API App. + * Delete API App * Deletes an API App. Can only be invoked for apps you own. * @param clientId The client id of the API App to delete. (required) * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -129,13 +132,14 @@ public void apiAppDelete(String clientId) throws ApiException { /** - * Delete API App. + * Delete API App * Deletes an API App. Can only be invoked for apps you own. * @param clientId The client id of the API App to delete. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
204 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -175,13 +179,14 @@ public ApiResponse apiAppDeleteWithHttpInfo(String clientId) throws ApiExc ); } /** - * Get API App. + * Get API App * Returns an object with information about an API App. * @param clientId The client id of the API App to retrieve. (required) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
204 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -193,13 +198,14 @@ public ApiAppGetResponse apiAppGet(String clientId) throws ApiException { /** - * Get API App. + * Get API App * Returns an object with information about an API App. * @param clientId The client id of the API App to retrieve. (required) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -240,14 +246,15 @@ public ApiResponse apiAppGetWithHttpInfo(String clientId) thr ); } /** - * List API Apps. + * List API Apps * Returns a list of API Apps that are accessible by you. If you are on a team with an Admin or Developer role, this list will include apps owned by teammates. * @param page Which page number of the API App List to return. Defaults to `1`. (optional, default to 1) * @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) * @return ApiAppListResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -298,14 +305,15 @@ public ApiResponse apiAppListWithHttpInfo(Integer page) thro /** - * List API Apps. + * List API Apps * Returns a list of API Apps that are accessible by you. If you are on a team with an Admin or Developer role, this list will include apps owned by teammates. * @param page Which page number of the API App List to return. Defaults to `1`. (optional, default to 1) * @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) * @return ApiResponse<ApiAppListResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -349,14 +357,15 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte ); } /** - * Update API App. + * Update API App * Updates an existing API App. Can only be invoked for apps you own. Only the fields you provide will be updated. If you wish to clear an existing optional field, provide an empty string. * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) * @return ApiAppGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -368,14 +377,15 @@ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAp /** - * Update API App. + * Update API App * Updates an existing API App. Can only be invoked for apps you own. Only the fields you provide will be updated. If you wish to clear an existing optional field, provide an empty string. * @param clientId The client id of the API App to update. (required) * @param apiAppUpdateRequest (required) * @return ApiResponse<ApiAppGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java index 405caf753..098c28cce 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class BulkSendJobApi { private ApiClient apiClient; @@ -49,7 +49,7 @@ public void setApiClient(ApiClient apiClient) { } /** - * Get Bulk Send Job. + * Get Bulk Send Job * Returns the status of the BulkSendJob and its SignatureRequests specified by the `bulk_send_job_id` parameter. * @param bulkSendJobId The id of the BulkSendJob to retrieve. (required) * @param page Which page number of the BulkSendJob list to return. Defaults to `1`. (optional, default to 1) @@ -57,7 +57,8 @@ public void setApiClient(ApiClient apiClient) { * @return BulkSendJobGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -108,7 +109,7 @@ public ApiResponse bulkSendJobGetWithHttpInfo(String bul /** - * Get Bulk Send Job. + * Get Bulk Send Job * Returns the status of the BulkSendJob and its SignatureRequests specified by the `bulk_send_job_id` parameter. * @param bulkSendJobId The id of the BulkSendJob to retrieve. (required) * @param page Which page number of the BulkSendJob list to return. Defaults to `1`. (optional, default to 1) @@ -116,7 +117,8 @@ public ApiResponse bulkSendJobGetWithHttpInfo(String bul * @return ApiResponse<BulkSendJobGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -169,14 +171,15 @@ public ApiResponse bulkSendJobGetWithHttpInfo(String bul ); } /** - * List Bulk Send Jobs. + * List Bulk Send Jobs * Returns a list of BulkSendJob that you can access. * @param page Which page number of the BulkSendJob List to return. Defaults to `1`. (optional, default to 1) * @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) * @return BulkSendJobListResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -227,14 +230,15 @@ public ApiResponse bulkSendJobListWithHttpInfo(Integer /** - * List Bulk Send Jobs. + * List Bulk Send Jobs * Returns a list of BulkSendJob that you can access. * @param page Which page number of the BulkSendJob List to return. Defaults to `1`. (optional, default to 1) * @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is 20. (optional, default to 20) * @return ApiResponse<BulkSendJobListResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index 38c828e72..a847620d5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class EmbeddedApi { private ApiClient apiClient; @@ -50,14 +50,15 @@ public void setApiClient(ApiClient apiClient) { } /** - * Get Embedded Template Edit URL. + * Get Embedded Template Edit URL * Retrieves an embedded object containing a template url that can be opened in an iFrame. Note that only templates created via the embedded template process are available to be edited with this endpoint. * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) * @return EmbeddedEditUrlResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -69,14 +70,15 @@ public EmbeddedEditUrlResponse embeddedEditUrl(String templateId, EmbeddedEditUr /** - * Get Embedded Template Edit URL. + * Get Embedded Template Edit URL * Retrieves an embedded object containing a template url that can be opened in an iFrame. Note that only templates created via the embedded template process are available to be edited with this endpoint. * @param templateId The id of the template to edit. (required) * @param embeddedEditUrlRequest (required) * @return ApiResponse<EmbeddedEditUrlResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -120,13 +122,14 @@ public ApiResponse embeddedEditUrlWithHttpInfo(String t ); } /** - * Get Embedded Sign URL. + * Get Embedded Sign URL * Retrieves an embedded object containing a signature url that can be opened in an iFrame. Note that templates created via the embedded template process will only be accessible through the API. * @param signatureId The id of the signature to get a signature url for. (required) * @return EmbeddedSignUrlResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -138,13 +141,14 @@ public EmbeddedSignUrlResponse embeddedSignUrl(String signatureId) throws ApiExc /** - * Get Embedded Sign URL. + * Get Embedded Sign URL * Retrieves an embedded object containing a signature url that can be opened in an iFrame. Note that templates created via the embedded template process will only be accessible through the API. * @param signatureId The id of the signature to get a signature url for. (required) * @return ApiResponse<EmbeddedSignUrlResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java index 2bb22a100..e438d0d03 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class FaxApi { private ApiClient apiClient; @@ -51,12 +51,13 @@ public void setApiClient(ApiClient apiClient) { } /** - * Delete Fax. + * Delete Fax * Deletes the specified Fax from the system * @param faxId Fax ID (required) * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -68,13 +69,14 @@ public void faxDelete(String faxId) throws ApiException { /** - * Delete Fax. + * Delete Fax * Deletes the specified Fax from the system * @param faxId Fax ID (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
204 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -114,13 +116,14 @@ public ApiResponse faxDeleteWithHttpInfo(String faxId) throws ApiException ); } /** - * Download Fax Files. + * Download Fax Files * Downloads files associated with a Fax * @param faxId Fax ID (required) * @return File * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
204 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -132,13 +135,14 @@ public File faxFiles(String faxId) throws ApiException { /** - * Download Fax Files. + * Download Fax Files * Downloads files associated with a Fax * @param faxId Fax ID (required) * @return ApiResponse<File> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -179,13 +183,14 @@ public ApiResponse faxFilesWithHttpInfo(String faxId) throws ApiException ); } /** - * Get Fax. + * Get Fax * Returns information about a Fax * @param faxId Fax ID (required) * @return FaxGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -197,13 +202,14 @@ public FaxGetResponse faxGet(String faxId) throws ApiException { /** - * Get Fax. + * Get Fax * Returns information about a Fax * @param faxId Fax ID (required) * @return ApiResponse<FaxGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -244,14 +250,15 @@ public ApiResponse faxGetWithHttpInfo(String faxId) throws ApiEx ); } /** - * Lists Faxes. + * Lists Faxes * Returns properties of multiple Faxes * @param page Which page number of the Fax List to return. Defaults to `1`. (optional, default to 1) * @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) * @return FaxListResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -302,14 +309,15 @@ public ApiResponse faxListWithHttpInfo(Integer page) throws Api /** - * Lists Faxes. + * Lists Faxes * Returns properties of multiple Faxes * @param page Which page number of the Fax List to return. Defaults to `1`. (optional, default to 1) * @param pageSize Number of objects to be returned per page. Must be between `1` and `100`. Default is `20`. (optional, default to 20) * @return ApiResponse<FaxListResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -353,13 +361,14 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa ); } /** - * Send Fax. + * Send Fax * Creates and sends a new Fax with the submitted file(s) * @param faxSendRequest (required) * @return FaxGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -371,13 +380,14 @@ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException /** - * Send Fax. + * Send Fax * Creates and sends a new Fax with the submitted file(s) * @param faxSendRequest (required) * @return ApiResponse<FaxGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java index 53d1a3bbc..2d6eb5a96 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -23,7 +23,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class FaxLineApi { private ApiClient apiClient; @@ -54,13 +54,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * Add Fax Line User. + * Add Fax Line User * Grants a user access to the specified Fax Line. * @param faxLineAddUserRequest (required) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -72,13 +73,14 @@ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserReques /** - * Add Fax Line User. + * Add Fax Line User * Grants a user access to the specified Fax Line. * @param faxLineAddUserRequest (required) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -115,7 +117,7 @@ public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserReq ); } /** - * Get Available Fax Line Area Codes. + * Get Available Fax Line Area Codes * Returns a list of available area codes for a given state/province and city * @param country Filter area codes by country (required) * @param state Filter area codes by state (optional) @@ -124,7 +126,8 @@ public ApiResponse faxLineAddUserWithHttpInfo(FaxLineAddUserReq * @return FaxLineAreaCodeGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -197,7 +200,7 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St /** - * Get Available Fax Line Area Codes. + * Get Available Fax Line Area Codes * Returns a list of available area codes for a given state/province and city * @param country Filter area codes by country (required) * @param state Filter area codes by state (optional) @@ -206,7 +209,8 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St * @return ApiResponse<FaxLineAreaCodeGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -251,13 +255,14 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo(St ); } /** - * Purchase Fax Line. + * Purchase Fax Line * Purchases a new Fax Line * @param faxLineCreateRequest (required) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -269,13 +274,14 @@ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) /** - * Purchase Fax Line. + * Purchase Fax Line * Purchases a new Fax Line * @param faxLineCreateRequest (required) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -312,12 +318,13 @@ public ApiResponse faxLineCreateWithHttpInfo(FaxLineCreateReque ); } /** - * Delete Fax Line. + * Delete Fax Line * Deletes the specified Fax Line from the subscription. * @param faxLineDeleteRequest (required) * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -329,13 +336,14 @@ public void faxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest) throws ApiE /** - * Delete Fax Line. + * Delete Fax Line * Deletes the specified Fax Line from the subscription. * @param faxLineDeleteRequest (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -371,13 +379,14 @@ public ApiResponse faxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineD ); } /** - * Get Fax Line. + * Get Fax Line * Returns the properties and settings of a Fax Line. * @param number The Fax Line number (required) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -389,13 +398,14 @@ public FaxLineResponse faxLineGet(String number) throws ApiException { /** - * Get Fax Line. + * Get Fax Line * Returns the properties and settings of a Fax Line. * @param number The Fax Line number (required) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -437,7 +447,7 @@ public ApiResponse faxLineGetWithHttpInfo(String number) throws ); } /** - * List Fax Lines. + * List Fax Lines * Returns the properties and settings of multiple Fax Lines. * @param accountId Account ID (optional) * @param page Which page number of the Fax Line List to return. Defaults to `1`. (optional, default to 1) @@ -446,7 +456,8 @@ public ApiResponse faxLineGetWithHttpInfo(String number) throws * @return FaxLineListResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -543,7 +554,7 @@ public ApiResponse faxLineListWithHttpInfo(String accountId /** - * List Fax Lines. + * List Fax Lines * Returns the properties and settings of multiple Fax Lines. * @param accountId Account ID (optional) * @param page Which page number of the Fax Line List to return. Defaults to `1`. (optional, default to 1) @@ -552,7 +563,8 @@ public ApiResponse faxLineListWithHttpInfo(String accountId * @return ApiResponse<FaxLineListResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -598,13 +610,14 @@ public ApiResponse faxLineListWithHttpInfo(String accountId ); } /** - * Remove Fax Line Access. + * Remove Fax Line Access * Removes a user's access to the specified Fax Line * @param faxLineRemoveUserRequest (required) * @return FaxLineResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -616,13 +629,14 @@ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveU /** - * Remove Fax Line Access. + * Remove Fax Line Access * Removes a user's access to the specified Fax Line * @param faxLineRemoveUserRequest (required) * @return ApiResponse<FaxLineResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/OAuthApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/OAuthApi.java index 4d881a94e..ddcaa24aa 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/OAuthApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/OAuthApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class OAuthApi { private ApiClient apiClient; @@ -50,13 +50,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * OAuth Token Generate. + * OAuth Token Generate * Once you have retrieved the code from the user callback, you will need to exchange it for an access token via a backend call. * @param oauthTokenGenerateRequest (required) * @return OAuthTokenResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -68,13 +69,14 @@ public OAuthTokenResponse oauthTokenGenerate(OAuthTokenGenerateRequest oauthToke /** - * OAuth Token Generate. + * OAuth Token Generate * Once you have retrieved the code from the user callback, you will need to exchange it for an access token via a backend call. * @param oauthTokenGenerateRequest (required) * @return ApiResponse<OAuthTokenResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -110,13 +112,14 @@ public ApiResponse oauthTokenGenerateWithHttpInfo(OAuthToken ); } /** - * OAuth Token Refresh. + * OAuth Token Refresh * Access tokens are only valid for a given period of time (typically one hour) for security reasons. Whenever acquiring an new access token its TTL is also given (see `expires_in`), along with a refresh token that can be used to acquire a new access token after the current one has expired. * @param oauthTokenRefreshRequest (required) * @return OAuthTokenResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -128,13 +131,14 @@ public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenR /** - * OAuth Token Refresh. + * OAuth Token Refresh * Access tokens are only valid for a given period of time (typically one hour) for security reasons. Whenever acquiring an new access token its TTL is also given (see `expires_in`), along with a refresh token that can be used to acquire a new access token after the current one has expired. * @param oauthTokenRefreshRequest (required) * @return ApiResponse<OAuthTokenResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java index 4ed2aaf0d..a9a590576 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ReportApi { private ApiClient apiClient; @@ -49,13 +49,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * Create Report. + * Create Report * Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and `start_date` must not be more than 10 years in the past. * @param reportCreateRequest (required) * @return ReportCreateResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -67,13 +68,14 @@ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest /** - * Create Report. + * Create Report * Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and `start_date` must not be more than 10 years in the past. * @param reportCreateRequest (required) * @return ApiResponse<ReportCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index 93510972e..7d9564589 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -34,7 +34,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class SignatureRequestApi { private ApiClient apiClient; @@ -65,13 +65,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * Embedded Bulk Send with Template. + * Embedded Bulk Send with Template * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter to be signed in an embedded iFrame. These embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Only available for Standard plan and higher. * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -83,13 +84,14 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate(Si /** - * Embedded Bulk Send with Template. + * Embedded Bulk Send with Template * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter to be signed in an embedded iFrame. These embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. **NOTE:** Only available for Standard plan and higher. * @param signatureRequestBulkCreateEmbeddedWithTemplateRequest (required) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -126,13 +128,14 @@ public ApiResponse signatureRequestBulkCreateEmbeddedWi ); } /** - * Bulk Send with Template. + * Bulk Send with Template * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter. **NOTE:** Only available for Standard plan and higher. * @param signatureRequestBulkSendWithTemplateRequest (required) * @return BulkSendJobSendResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -144,13 +147,14 @@ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate(SignatureReq /** - * Bulk Send with Template. + * Bulk Send with Template * Creates BulkSendJob which sends up to 250 SignatureRequests in bulk based off of the provided Template(s) specified with the `template_ids` parameter. **NOTE:** Only available for Standard plan and higher. * @param signatureRequestBulkSendWithTemplateRequest (required) * @return ApiResponse<BulkSendJobSendResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -187,12 +191,13 @@ public ApiResponse signatureRequestBulkSendWithTemplate ); } /** - * Cancel Incomplete Signature Request. + * Cancel Incomplete Signature Request * Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`. * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -204,13 +209,14 @@ public void signatureRequestCancel(String signatureRequestId) throws ApiExceptio /** - * Cancel Incomplete Signature Request. + * Cancel Incomplete Signature Request * Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`. * @param signatureRequestId The id of the incomplete SignatureRequest to cancel. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -250,13 +256,14 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ ); } /** - * Create Embedded Signature Request. + * Create Embedded Signature Request * Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestCreateEmbeddedRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -268,13 +275,14 @@ public SignatureRequestGetResponse signatureRequestCreateEmbedded(SignatureReque /** - * Create Embedded Signature Request. + * Create Embedded Signature Request * Creates a new SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestCreateEmbeddedRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -311,13 +319,14 @@ public ApiResponse signatureRequestCreateEmbeddedWi ); } /** - * Create Embedded Signature Request with Template. + * Create Embedded Signature Request with Template * Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -329,13 +338,14 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate(Si /** - * Create Embedded Signature Request with Template. + * Create Embedded Signature Request with Template * Creates a new SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestCreateEmbeddedWithTemplateRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -372,14 +382,15 @@ public ApiResponse signatureRequestCreateEmbeddedWi ); } /** - * Edit Signature Request. + * Edit Signature Request * Edits and sends a SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. **NOTE:** Edit and resend will not deduct your signature request quota. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -391,14 +402,15 @@ public SignatureRequestGetResponse signatureRequestEdit(String signatureRequestI /** - * Edit Signature Request. + * Edit Signature Request * Edits and sends a SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. **NOTE:** Edit and resend will not deduct your signature request quota. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -442,14 +454,15 @@ public ApiResponse signatureRequestEditWithHttpInfo ); } /** - * Edit Embedded Signature Request. + * Edit Embedded Signature Request * Edits a SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -461,14 +474,15 @@ public SignatureRequestGetResponse signatureRequestEditEmbedded(String signature /** - * Edit Embedded Signature Request. + * Edit Embedded Signature Request * Edits a SignatureRequest with the submitted documents to be signed in an embedded iFrame. If form_fields_per_document is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -512,14 +526,15 @@ public ApiResponse signatureRequestEditEmbeddedWith ); } /** - * Edit Embedded Signature Request with Template. + * Edit Embedded Signature Request with Template * Edits a SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -531,14 +546,15 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate(Stri /** - * Edit Embedded Signature Request with Template. + * Edit Embedded Signature Request with Template * Edits a SignatureRequest based on the given Template(s) to be signed in an embedded iFrame. Note that embedded signature requests can only be signed in embedded iFrames whereas normal signature requests can only be signed on Dropbox Sign. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditEmbeddedWithTemplateRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -582,14 +598,15 @@ public ApiResponse signatureRequestEditEmbeddedWith ); } /** - * Edit Signature Request With Template. + * Edit Signature Request With Template * Edits and sends a SignatureRequest based off of the Template(s) specified with the template_ids parameter. **NOTE:** Edit and resend will not deduct your signature request quota. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -601,14 +618,15 @@ public SignatureRequestGetResponse signatureRequestEditWithTemplate(String signa /** - * Edit Signature Request With Template. + * Edit Signature Request With Template * Edits and sends a SignatureRequest based off of the Template(s) specified with the template_ids parameter. **NOTE:** Edit and resend will not deduct your signature request quota. * @param signatureRequestId The id of the SignatureRequest to edit. (required) * @param signatureRequestEditWithTemplateRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -652,14 +670,15 @@ public ApiResponse signatureRequestEditWithTemplate ); } /** - * Download Files. + * Download Files * Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a PDF or ZIP file. If the files are currently being prepared, a status code of `409` will be returned instead. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @param fileType Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) * @return File * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -690,14 +709,15 @@ public ApiResponse signatureRequestFilesWithHttpInfo(String signatureReque /** - * Download Files. + * Download Files * Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a PDF or ZIP file. If the files are currently being prepared, a status code of `409` will be returned instead. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @param fileType Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional, default to pdf) * @return ApiResponse<File> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -746,13 +766,14 @@ public ApiResponse signatureRequestFilesWithHttpInfo(String signatureReque ); } /** - * Download Files as Data Uri. + * Download Files as Data Uri * Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a JSON object with a `data_uri` representing the base64 encoded file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @return FileResponseDataUri * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -764,13 +785,14 @@ public FileResponseDataUri signatureRequestFilesAsDataUri(String signatureReques /** - * Download Files as Data Uri. + * Download Files as Data Uri * Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a JSON object with a `data_uri` representing the base64 encoded file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @return ApiResponse<FileResponseDataUri> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -811,14 +833,15 @@ public ApiResponse signatureRequestFilesAsDataUriWithHttpIn ); } /** - * Download Files as File Url. + * Download Files as File Url * Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a JSON object with a url to the file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @param forceDownload By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) * @return FileResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -849,14 +872,15 @@ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo(Stri /** - * Download Files as File Url. + * Download Files as File Url * Obtain a copy of the current documents specified by the `signature_request_id` parameter. Returns a JSON object with a url to the file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @param forceDownload By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) * @return ApiResponse<FileResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -905,13 +929,14 @@ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo(Stri ); } /** - * Get Signature Request. + * Get Signature Request * Returns the status of the SignatureRequest specified by the `signature_request_id` parameter. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -923,13 +948,14 @@ public SignatureRequestGetResponse signatureRequestGet(String signatureRequestId /** - * Get Signature Request. + * Get Signature Request * Returns the status of the SignatureRequest specified by the `signature_request_id` parameter. * @param signatureRequestId The id of the SignatureRequest to retrieve. (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -970,7 +996,7 @@ public ApiResponse signatureRequestGetWithHttpInfo( ); } /** - * List Signature Requests. + * List Signature Requests * Returns a list of SignatureRequests that you can access. This includes SignatureRequests you have sent as well as received, but not ones that you have been CCed on. Take a look at our [search guide](/api/reference/search/) to learn more about querying signature requests. * @param accountId Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. (optional) * @param page Which page number of the SignatureRequest List to return. Defaults to `1`. (optional, default to 1) @@ -979,7 +1005,8 @@ public ApiResponse signatureRequestGetWithHttpInfo( * @return SignatureRequestListResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1076,7 +1103,7 @@ public ApiResponse signatureRequestListWithHttpInf /** - * List Signature Requests. + * List Signature Requests * Returns a list of SignatureRequests that you can access. This includes SignatureRequests you have sent as well as received, but not ones that you have been CCed on. Take a look at our [search guide](/api/reference/search/) to learn more about querying signature requests. * @param accountId Which account to return SignatureRequests for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. (optional) * @param page Which page number of the SignatureRequest List to return. Defaults to `1`. (optional, default to 1) @@ -1085,7 +1112,8 @@ public ApiResponse signatureRequestListWithHttpInf * @return ApiResponse<SignatureRequestListResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1131,13 +1159,14 @@ public ApiResponse signatureRequestListWithHttpInf ); } /** - * Release On-Hold Signature Request. + * Release On-Hold Signature Request * Releases a held SignatureRequest that was claimed and prepared from an [UnclaimedDraft](/api/reference/tag/Unclaimed-Draft). The owner of the Draft must indicate at Draft creation that the SignatureRequest created from the Draft should be held. Releasing the SignatureRequest will send requests to all signers. * @param signatureRequestId The id of the SignatureRequest to release. (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1149,13 +1178,14 @@ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureR /** - * Release On-Hold Signature Request. + * Release On-Hold Signature Request * Releases a held SignatureRequest that was claimed and prepared from an [UnclaimedDraft](/api/reference/tag/Unclaimed-Draft). The owner of the Draft must indicate at Draft creation that the SignatureRequest created from the Draft should be held. Releasing the SignatureRequest will send requests to all signers. * @param signatureRequestId The id of the SignatureRequest to release. (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1196,14 +1226,15 @@ public ApiResponse signatureRequestReleaseHoldWithH ); } /** - * Send Request Reminder. + * Send Request Reminder * Sends an email to the signer reminding them to sign the signature request. You cannot send a reminder within 1 hour of the last reminder that was sent. This includes manual AND automatic reminders. **NOTE:** This action can **not** be used with embedded signature requests. * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1215,14 +1246,15 @@ public SignatureRequestGetResponse signatureRequestRemind(String signatureReques /** - * Send Request Reminder. + * Send Request Reminder * Sends an email to the signer reminding them to sign the signature request. You cannot send a reminder within 1 hour of the last reminder that was sent. This includes manual AND automatic reminders. **NOTE:** This action can **not** be used with embedded signature requests. * @param signatureRequestId The id of the SignatureRequest to send a reminder for. (required) * @param signatureRequestRemindRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1266,12 +1298,13 @@ public ApiResponse signatureRequestRemindWithHttpIn ); } /** - * Remove Signature Request Access. + * Remove Signature Request Access * Removes your access to a completed signature request. This action is **not reversible**. The signature request must be fully executed by all parties (signed or declined to sign). Other parties will continue to maintain access to the completed signature request document(s). Unlike /signature_request/cancel, this endpoint is synchronous and your access will be immediately removed. Upon successful removal, this endpoint will return a 200 OK response. * @param signatureRequestId The id of the SignatureRequest to remove. (required) * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1283,13 +1316,14 @@ public void signatureRequestRemove(String signatureRequestId) throws ApiExceptio /** - * Remove Signature Request Access. + * Remove Signature Request Access * Removes your access to a completed signature request. This action is **not reversible**. The signature request must be fully executed by all parties (signed or declined to sign). Other parties will continue to maintain access to the completed signature request document(s). Unlike /signature_request/cancel, this endpoint is synchronous and your access will be immediately removed. Upon successful removal, this endpoint will return a 200 OK response. * @param signatureRequestId The id of the SignatureRequest to remove. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1329,13 +1363,14 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ ); } /** - * Send Signature Request. + * Send Signature Request * Creates and sends a new SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. * @param signatureRequestSendRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1347,13 +1382,14 @@ public SignatureRequestGetResponse signatureRequestSend(SignatureRequestSendRequ /** - * Send Signature Request. + * Send Signature Request * Creates and sends a new SignatureRequest with the submitted documents. If `form_fields_per_document` is not specified, a signature page will be affixed where all signers will be required to add their signature, signifying their agreement to all contained documents. * @param signatureRequestSendRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1390,13 +1426,14 @@ public ApiResponse signatureRequestSendWithHttpInfo ); } /** - * Send with Template. + * Send with Template * Creates and sends a new SignatureRequest based off of the Template(s) specified with the `template_ids` parameter. * @param signatureRequestSendWithTemplateRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1408,13 +1445,14 @@ public SignatureRequestGetResponse signatureRequestSendWithTemplate(SignatureReq /** - * Send with Template. + * Send with Template * Creates and sends a new SignatureRequest based off of the Template(s) specified with the `template_ids` parameter. * @param signatureRequestSendWithTemplateRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1451,14 +1489,15 @@ public ApiResponse signatureRequestSendWithTemplate ); } /** - * Update Signature Request. + * Update Signature Request * Updates the email address and/or the name for a given signer on a signature request. You can listen for the `signature_request_email_bounce` event on your app or account to detect bounced emails, and respond with this method. Updating the email address of a signer will generate a new `signature_id` value. **NOTE:** This action cannot be performed on a signature request with an appended signature page. * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) * @return SignatureRequestGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -1470,14 +1509,15 @@ public SignatureRequestGetResponse signatureRequestUpdate(String signatureReques /** - * Update Signature Request. + * Update Signature Request * Updates the email address and/or the name for a given signer on a signature request. You can listen for the `signature_request_email_bounce` event on your app or account to detect bounced emails, and respond with this method. Updating the email address of a signer will generate a new `signature_id` value. **NOTE:** This action cannot be performed on a signature request with an appended signature page. * @param signatureRequestId The id of the SignatureRequest to update. (required) * @param signatureRequestUpdateRequest (required) * @return ApiResponse<SignatureRequestGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java index 17ca21e1f..ac28133ff 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -25,7 +25,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class TeamApi { private ApiClient apiClient; @@ -56,14 +56,15 @@ public void setApiClient(ApiClient apiClient) { } /** - * Add User to Team. + * Add User to Team * Invites a user (specified using the `email_address` parameter) to your Team. If the user does not currently have a Dropbox Sign Account, a new one will be created for them. If a user is already a part of another Team, a `team_invite_failed` error will be returned. * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -94,14 +95,15 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque /** - * Add User to Team. + * Add User to Team * Invites a user (specified using the `email_address` parameter) to your Team. If the user does not currently have a Dropbox Sign Account, a new one will be created for them. If a user is already a part of another Team, a `team_invite_failed` error will be returned. * @param teamAddMemberRequest (required) * @param teamId The id of the team. (optional) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -143,13 +145,14 @@ public ApiResponse teamAddMemberWithHttpInfo(TeamAddMemberReque ); } /** - * Create Team. + * Create Team * Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. * @param teamCreateRequest (required) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -161,13 +164,14 @@ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws Ap /** - * Create Team. + * Create Team * Creates a new Team and makes you a member. You must not currently belong to a Team to invoke. * @param teamCreateRequest (required) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -204,11 +208,12 @@ public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest tea ); } /** - * Delete Team. + * Delete Team * Deletes your Team. Can only be invoked when you have a Team with only one member (yourself). * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -220,12 +225,13 @@ public void teamDelete() throws ApiException { /** - * Delete Team. + * Delete Team * Deletes your Team. Can only be invoked when you have a Team with only one member (yourself). * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -256,12 +262,13 @@ public ApiResponse teamDeleteWithHttpInfo() throws ApiException { ); } /** - * Get Team. + * Get Team * Returns information about your Team as well as a list of its members. If you do not belong to a Team, a 404 error with an error_name of \"not_found\" will be returned. * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -273,12 +280,13 @@ public TeamGetResponse teamGet() throws ApiException { /** - * Get Team. + * Get Team * Returns information about your Team as well as a list of its members. If you do not belong to a Team, a 404 error with an error_name of \"not_found\" will be returned. * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -310,13 +318,14 @@ public ApiResponse teamGetWithHttpInfo() throws ApiException { ); } /** - * Get Team Info. + * Get Team Info * Provides information about a team. * @param teamId The id of the team. (optional) * @return TeamGetInfoResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -347,13 +356,14 @@ public ApiResponse teamInfoWithHttpInfo() throws ApiExcepti /** - * Get Team Info. + * Get Team Info * Provides information about a team. * @param teamId The id of the team. (optional) * @return ApiResponse<TeamGetInfoResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -390,13 +400,14 @@ public ApiResponse teamInfoWithHttpInfo(String teamId) thro ); } /** - * List Team Invites. + * List Team Invites * Provides a list of team invites (and their roles). * @param emailAddress The email address for which to display the team invites. (optional) * @return TeamInvitesResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -427,13 +438,14 @@ public ApiResponse teamInvitesWithHttpInfo() throws ApiExce /** - * List Team Invites. + * List Team Invites * Provides a list of team invites (and their roles). * @param emailAddress The email address for which to display the team invites. (optional) * @return ApiResponse<TeamInvitesResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -470,7 +482,7 @@ public ApiResponse teamInvitesWithHttpInfo(String emailAddr ); } /** - * List Team Members. + * List Team Members * Provides a paginated list of members (and their roles) that belong to a given team. * @param teamId The id of the team that a member list is being requested from. (required) * @param page Which page number of the team member list to return. Defaults to `1`. (optional, default to 1) @@ -478,7 +490,8 @@ public ApiResponse teamInvitesWithHttpInfo(String emailAddr * @return TeamMembersResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -529,7 +542,7 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I /** - * List Team Members. + * List Team Members * Provides a paginated list of members (and their roles) that belong to a given team. * @param teamId The id of the team that a member list is being requested from. (required) * @param page Which page number of the team member list to return. Defaults to `1`. (optional, default to 1) @@ -537,7 +550,8 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I * @return ApiResponse<TeamMembersResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -590,13 +604,14 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I ); } /** - * Remove User from Team. + * Remove User from Team * Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the `new_owner_email_address` parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed. * @param teamRemoveMemberRequest (required) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -608,13 +623,14 @@ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMember /** - * Remove User from Team. + * Remove User from Team * Removes the provided user Account from your Team. If the Account had an outstanding invitation to your Team, the invitation will be expired. If you choose to transfer documents from the removed Account to an Account provided in the `new_owner_email_address` parameter (available only for Enterprise plans), the response status code will be 201, which indicates that your request has been queued but not fully executed. * @param teamRemoveMemberRequest (required) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -651,7 +667,7 @@ public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMembe ); } /** - * List Sub Teams. + * List Sub Teams * Provides a paginated list of sub teams that belong to a given team. * @param teamId The id of the parent Team. (required) * @param page Which page number of the SubTeam List to return. Defaults to `1`. (optional, default to 1) @@ -659,7 +675,8 @@ public ApiResponse teamRemoveMemberWithHttpInfo(TeamRemoveMembe * @return TeamSubTeamsResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
201 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -710,7 +727,7 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, /** - * List Sub Teams. + * List Sub Teams * Provides a paginated list of sub teams that belong to a given team. * @param teamId The id of the parent Team. (required) * @param page Which page number of the SubTeam List to return. Defaults to `1`. (optional, default to 1) @@ -718,7 +735,8 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, * @return ApiResponse<TeamSubTeamsResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -771,13 +789,14 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, ); } /** - * Update Team. + * Update Team * Updates the name of your Team. * @param teamUpdateRequest (required) * @return TeamGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -789,13 +808,14 @@ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws Ap /** - * Update Team. + * Update Team * Updates the name of your Team. * @param teamUpdateRequest (required) * @return ApiResponse<TeamGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java index c64166a85..974e61c40 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -29,7 +29,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class TemplateApi { private ApiClient apiClient; @@ -60,14 +60,15 @@ public void setApiClient(ApiClient apiClient) { } /** - * Add User to Template. + * Add User to Template * Gives the specified Account access to the specified Template. The specified Account must be a part of your Team. * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -79,14 +80,15 @@ public TemplateGetResponse templateAddUser(String templateId, TemplateAddUserReq /** - * Add User to Template. + * Add User to Template * Gives the specified Account access to the specified Template. The specified Account must be a part of your Team. * @param templateId The id of the Template to give the Account access to. (required) * @param templateAddUserRequest (required) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -130,13 +132,14 @@ public ApiResponse templateAddUserWithHttpInfo(String templ ); } /** - * Create Template. + * Create Template * Creates a template that can then be used. * @param templateCreateRequest (required) * @return TemplateCreateResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -148,13 +151,14 @@ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreat /** - * Create Template. + * Create Template * Creates a template that can then be used. * @param templateCreateRequest (required) * @return ApiResponse<TemplateCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -191,13 +195,14 @@ public ApiResponse templateCreateWithHttpInfo(TemplateCr ); } /** - * Create Embedded Template Draft. + * Create Embedded Template Draft * The first step in an embedded template workflow. Creates a draft template that can then be further set up in the template 'edit' stage. * @param templateCreateEmbeddedDraftRequest (required) * @return TemplateCreateEmbeddedDraftResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -209,13 +214,14 @@ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft(TemplateC /** - * Create Embedded Template Draft. + * Create Embedded Template Draft * The first step in an embedded template workflow. Creates a draft template that can then be further set up in the template 'edit' stage. * @param templateCreateEmbeddedDraftRequest (required) * @return ApiResponse<TemplateCreateEmbeddedDraftResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -252,12 +258,13 @@ public ApiResponse templateCreateEmbeddedDr ); } /** - * Delete Template. + * Delete Template * Completely deletes the template specified from the account. * @param templateId The id of the Template to delete. (required) * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -269,13 +276,14 @@ public void templateDelete(String templateId) throws ApiException { /** - * Delete Template. + * Delete Template * Completely deletes the template specified from the account. * @param templateId The id of the Template to delete. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -315,14 +323,15 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap ); } /** - * Get Template Files. + * Get Template Files * Obtain a copy of the current documents specified by the `template_id` parameter. Returns a PDF or ZIP file. If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event. * @param templateId The id of the template files to retrieve. (required) * @param fileType Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) * @return File * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -353,14 +362,15 @@ public ApiResponse templateFilesWithHttpInfo(String templateId) throws Api /** - * Get Template Files. + * Get Template Files * Obtain a copy of the current documents specified by the `template_id` parameter. Returns a PDF or ZIP file. If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event. * @param templateId The id of the template files to retrieve. (required) * @param fileType Set to `pdf` for a single merged document or `zip` for a collection of individual documents. (optional) * @return ApiResponse<File> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -406,13 +416,14 @@ public ApiResponse templateFilesWithHttpInfo(String templateId, String fil ); } /** - * Get Template Files as Data Uri. + * Get Template Files as Data Uri * Obtain a copy of the current documents specified by the `template_id` parameter. Returns a JSON object with a `data_uri` representing the base64 encoded file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event. * @param templateId The id of the template files to retrieve. (required) * @return FileResponseDataUri * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -424,13 +435,14 @@ public FileResponseDataUri templateFilesAsDataUri(String templateId) throws ApiE /** - * Get Template Files as Data Uri. + * Get Template Files as Data Uri * Obtain a copy of the current documents specified by the `template_id` parameter. Returns a JSON object with a `data_uri` representing the base64 encoded file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event. * @param templateId The id of the template files to retrieve. (required) * @return ApiResponse<FileResponseDataUri> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -471,14 +483,15 @@ public ApiResponse templateFilesAsDataUriWithHttpInfo(Strin ); } /** - * Get Template Files as File Url. + * Get Template Files as File Url * Obtain a copy of the current documents specified by the `template_id` parameter. Returns a JSON object with a url to the file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event. * @param templateId The id of the template files to retrieve. (required) * @param forceDownload By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) * @return FileResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -509,14 +522,15 @@ public ApiResponse templateFilesAsFileUrlWithHttpInfo(String templ /** - * Get Template Files as File Url. + * Get Template Files as File Url * Obtain a copy of the current documents specified by the `template_id` parameter. Returns a JSON object with a url to the file (PDFs only). If the files are currently being prepared, a status code of `409` will be returned instead. In this case please wait for the `template_created` callback event. * @param templateId The id of the template files to retrieve. (required) * @param forceDownload By default when opening the `file_url` a browser will download the PDF and save it locally. When set to `0` the PDF file will be displayed in the browser. (optional, default to 1) * @return ApiResponse<FileResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -565,13 +579,14 @@ public ApiResponse templateFilesAsFileUrlWithHttpInfo(String templ ); } /** - * Get Template. + * Get Template * Returns the Template specified by the `template_id` parameter. * @param templateId The id of the Template to retrieve. (required) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -583,13 +598,14 @@ public TemplateGetResponse templateGet(String templateId) throws ApiException { /** - * Get Template. + * Get Template * Returns the Template specified by the `template_id` parameter. * @param templateId The id of the Template to retrieve. (required) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -630,7 +646,7 @@ public ApiResponse templateGetWithHttpInfo(String templateI ); } /** - * List Templates. + * List Templates * Returns a list of the Templates that are accessible by you. Take a look at our [search guide](/api/reference/search/) to learn more about querying templates. * @param accountId Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. (optional) * @param page Which page number of the Template List to return. Defaults to `1`. (optional, default to 1) @@ -639,7 +655,8 @@ public ApiResponse templateGetWithHttpInfo(String templateI * @return TemplateListResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -736,7 +753,7 @@ public ApiResponse templateListWithHttpInfo(String account /** - * List Templates. + * List Templates * Returns a list of the Templates that are accessible by you. Take a look at our [search guide](/api/reference/search/) to learn more about querying templates. * @param accountId Which account to return Templates for. Must be a team member. Use `all` to indicate all team members. Defaults to your account. (optional) * @param page Which page number of the Template List to return. Defaults to `1`. (optional, default to 1) @@ -745,7 +762,8 @@ public ApiResponse templateListWithHttpInfo(String account * @return ApiResponse<TemplateListResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -791,14 +809,15 @@ public ApiResponse templateListWithHttpInfo(String account ); } /** - * Remove User from Template. + * Remove User from Template * Removes the specified Account's access to the specified Template. * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) * @return TemplateGetResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -810,14 +829,15 @@ public TemplateGetResponse templateRemoveUser(String templateId, TemplateRemoveU /** - * Remove User from Template. + * Remove User from Template * Removes the specified Account's access to the specified Template. * @param templateId The id of the Template to remove the Account's access to. (required) * @param templateRemoveUserRequest (required) * @return ApiResponse<TemplateGetResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -861,14 +881,15 @@ public ApiResponse templateRemoveUserWithHttpInfo(String te ); } /** - * Update Template Files. + * Update Template Files * Overlays a new file with the overlay of an existing template. The new file(s) must: 1. have the same or higher page count 2. the same orientation as the file(s) being replaced. This will not overwrite or in any way affect the existing template. Both the existing template and new template will be available for use after executing this endpoint. Also note that this will decrement your template quota. Overlaying new files is asynchronous and a successful call to this endpoint will return 200 OK response if the request passes initial validation checks. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event will be sent when the files are updated or a `template_error` event will be sent if there was a problem while updating the files. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the API dashboard and retry the request if necessary. If the page orientation or page count is different from the original template document, we will notify you with a `template_error` [callback event](https://app.hellosign.com/api/eventsAndCallbacksWalkthrough). * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) * @return TemplateUpdateFilesResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -880,14 +901,15 @@ public TemplateUpdateFilesResponse templateUpdateFiles(String templateId, Templa /** - * Update Template Files. + * Update Template Files * Overlays a new file with the overlay of an existing template. The new file(s) must: 1. have the same or higher page count 2. the same orientation as the file(s) being replaced. This will not overwrite or in any way affect the existing template. Both the existing template and new template will be available for use after executing this endpoint. Also note that this will decrement your template quota. Overlaying new files is asynchronous and a successful call to this endpoint will return 200 OK response if the request passes initial validation checks. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event will be sent when the files are updated or a `template_error` event will be sent if there was a problem while updating the files. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the API dashboard and retry the request if necessary. If the page orientation or page count is different from the original template document, we will notify you with a `template_error` [callback event](https://app.hellosign.com/api/eventsAndCallbacksWalkthrough). * @param templateId The ID of the template whose files to update. (required) * @param templateUpdateFilesRequest (required) * @return ApiResponse<TemplateUpdateFilesResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index fc3710e10..8416bd8d2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class UnclaimedDraftApi { private ApiClient apiClient; @@ -52,13 +52,14 @@ public void setApiClient(ApiClient apiClient) { } /** - * Create Unclaimed Draft. + * Create Unclaimed Draft * Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the \"Sign and send\" or the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a 404. * @param unclaimedDraftCreateRequest (required) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -70,13 +71,14 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreate(UnclaimedDraftCreateReq /** - * Create Unclaimed Draft. + * Create Unclaimed Draft * Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the \"Sign and send\" or the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a 404. * @param unclaimedDraftCreateRequest (required) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -113,13 +115,14 @@ public ApiResponse unclaimedDraftCreateWithHttpInf ); } /** - * Create Embedded Unclaimed Draft. + * Create Embedded Unclaimed Draft * Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * @param unclaimedDraftCreateEmbeddedRequest (required) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -131,13 +134,14 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded(UnclaimedDraftC /** - * Create Embedded Unclaimed Draft. + * Create Embedded Unclaimed Draft * Creates a new Draft that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * @param unclaimedDraftCreateEmbeddedRequest (required) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -174,13 +178,14 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit ); } /** - * Create Embedded Unclaimed Draft with Template. + * Create Embedded Unclaimed Draft with Template * Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -192,13 +197,14 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate(Unc /** - * Create Embedded Unclaimed Draft with Template. + * Create Embedded Unclaimed Draft with Template * Creates a new Draft with a previously saved template(s) that can be claimed and used in an embedded iFrame. The first authenticated user to access the URL will claim the Draft and will be shown the \"Request signature\" page with the Draft loaded. Subsequent access to the claim URL will result in a `404`. For this embedded endpoint the `requester_email_address` parameter is required. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * @param unclaimedDraftCreateEmbeddedWithTemplateRequest (required) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -235,14 +241,15 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit ); } /** - * Edit and Resend Unclaimed Draft. + * Edit and Resend Unclaimed Draft * Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) * @return UnclaimedDraftCreateResponse * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ @@ -254,14 +261,15 @@ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend(String signature /** - * Edit and Resend Unclaimed Draft. + * Edit and Resend Unclaimed Draft * Creates a new signature request from an embedded request that can be edited prior to being sent to the recipients. Parameter `test_mode` can be edited prior to request. Signers can be edited in embedded editor. Requester's email address will remain unchanged if `requester_email_address` parameter is not set. **NOTE:** Embedded unclaimed drafts can only be accessed in embedded iFrames whereas normal drafts can be used and accessed on Dropbox Sign. * @param signatureRequestId The ID of the signature request to edit and resend. (required) * @param unclaimedDraftEditAndResendRequest (required) * @return ApiResponse<UnclaimedDraftCreateResponse> * @throws ApiException if fails to make API call * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java b/sdks/java-v2/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java index e68272c32..9b307290e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java b/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java index 3afe97bae..be2530ea2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java b/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java index 8f3273d39..9dee1a64e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java index 759bf81d1..987a841c7 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java index 9f12a6edc..cefd5b797 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java @@ -38,19 +38,23 @@ AccountCreateRequest.JSON_PROPERTY_CLIENT_SECRET, AccountCreateRequest.JSON_PROPERTY_LOCALE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountCreateRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CLIENT_SECRET = "client_secret"; + @jakarta.annotation.Nullable private String clientSecret; public static final String JSON_PROPERTY_LOCALE = "locale"; + @jakarta.annotation.Nullable private String locale; public AccountCreateRequest() { @@ -71,7 +75,7 @@ static public AccountCreateRequest init(HashMap data) throws Exception { ); } - public AccountCreateRequest emailAddress(String emailAddress) { + public AccountCreateRequest emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -91,12 +95,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } - public AccountCreateRequest clientId(String clientId) { + public AccountCreateRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -116,12 +120,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public AccountCreateRequest clientSecret(String clientSecret) { + public AccountCreateRequest clientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; return this; } @@ -141,12 +145,12 @@ public String getClientSecret() { @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientSecret(String clientSecret) { + public void setClientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; } - public AccountCreateRequest locale(String locale) { + public AccountCreateRequest locale(@jakarta.annotation.Nullable String locale) { this.locale = locale; return this; } @@ -166,7 +170,7 @@ public String getLocale() { @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocale(String locale) { + public void setLocale(@jakarta.annotation.Nullable String locale) { this.locale = locale; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java index 08fd77369..00240b91d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java @@ -42,16 +42,19 @@ AccountCreateResponse.JSON_PROPERTY_OAUTH_DATA, AccountCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountCreateResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; + @jakarta.annotation.Nonnull private AccountResponse account; public static final String JSON_PROPERTY_OAUTH_DATA = "oauth_data"; + @jakarta.annotation.Nullable private OAuthTokenResponse oauthData; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public AccountCreateResponse() { @@ -72,7 +75,7 @@ static public AccountCreateResponse init(HashMap data) throws Exception { ); } - public AccountCreateResponse account(AccountResponse account) { + public AccountCreateResponse account(@jakarta.annotation.Nonnull AccountResponse account) { this.account = account; return this; } @@ -92,12 +95,12 @@ public AccountResponse getAccount() { @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccount(AccountResponse account) { + public void setAccount(@jakarta.annotation.Nonnull AccountResponse account) { this.account = account; } - public AccountCreateResponse oauthData(OAuthTokenResponse oauthData) { + public AccountCreateResponse oauthData(@jakarta.annotation.Nullable OAuthTokenResponse oauthData) { this.oauthData = oauthData; return this; } @@ -117,12 +120,12 @@ public OAuthTokenResponse getOauthData() { @JsonProperty(JSON_PROPERTY_OAUTH_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOauthData(OAuthTokenResponse oauthData) { + public void setOauthData(@jakarta.annotation.Nullable OAuthTokenResponse oauthData) { this.oauthData = oauthData; } - public AccountCreateResponse warnings(List warnings) { + public AccountCreateResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -150,7 +153,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountGetResponse.java index 2a2fabc60..a37a29e3e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountGetResponse.java @@ -40,13 +40,15 @@ AccountGetResponse.JSON_PROPERTY_ACCOUNT, AccountGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountGetResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; + @jakarta.annotation.Nonnull private AccountResponse account; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public AccountGetResponse() { @@ -67,7 +69,7 @@ static public AccountGetResponse init(HashMap data) throws Exception { ); } - public AccountGetResponse account(AccountResponse account) { + public AccountGetResponse account(@jakarta.annotation.Nonnull AccountResponse account) { this.account = account; return this; } @@ -87,12 +89,12 @@ public AccountResponse getAccount() { @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAccount(AccountResponse account) { + public void setAccount(@jakarta.annotation.Nonnull AccountResponse account) { this.account = account; } - public AccountGetResponse warnings(List warnings) { + public AccountGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponse.java index 6f431abf6..e7140787d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponse.java @@ -47,40 +47,51 @@ AccountResponse.JSON_PROPERTY_LOCALE, AccountResponse.JSON_PROPERTY_USAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponse { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_IS_LOCKED = "is_locked"; + @jakarta.annotation.Nullable private Boolean isLocked; public static final String JSON_PROPERTY_IS_PAID_HS = "is_paid_hs"; + @jakarta.annotation.Nullable private Boolean isPaidHs; public static final String JSON_PROPERTY_IS_PAID_HF = "is_paid_hf"; + @jakarta.annotation.Nullable private Boolean isPaidHf; public static final String JSON_PROPERTY_QUOTAS = "quotas"; + @jakarta.annotation.Nullable private AccountResponseQuotas quotas; public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; public static final String JSON_PROPERTY_ROLE_CODE = "role_code"; + @jakarta.annotation.Nullable private String roleCode; public static final String JSON_PROPERTY_TEAM_ID = "team_id"; + @jakarta.annotation.Nullable private String teamId; public static final String JSON_PROPERTY_LOCALE = "locale"; + @jakarta.annotation.Nullable private String locale; public static final String JSON_PROPERTY_USAGE = "usage"; + @jakarta.annotation.Nullable private AccountResponseUsage usage; public AccountResponse() { @@ -101,7 +112,7 @@ static public AccountResponse init(HashMap data) throws Exception { ); } - public AccountResponse accountId(String accountId) { + public AccountResponse accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -121,12 +132,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public AccountResponse emailAddress(String emailAddress) { + public AccountResponse emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -146,12 +157,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public AccountResponse isLocked(Boolean isLocked) { + public AccountResponse isLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; return this; } @@ -171,12 +182,12 @@ public Boolean getIsLocked() { @JsonProperty(JSON_PROPERTY_IS_LOCKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsLocked(Boolean isLocked) { + public void setIsLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; } - public AccountResponse isPaidHs(Boolean isPaidHs) { + public AccountResponse isPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; return this; } @@ -196,12 +207,12 @@ public Boolean getIsPaidHs() { @JsonProperty(JSON_PROPERTY_IS_PAID_HS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPaidHs(Boolean isPaidHs) { + public void setIsPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; } - public AccountResponse isPaidHf(Boolean isPaidHf) { + public AccountResponse isPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; return this; } @@ -221,12 +232,12 @@ public Boolean getIsPaidHf() { @JsonProperty(JSON_PROPERTY_IS_PAID_HF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPaidHf(Boolean isPaidHf) { + public void setIsPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; } - public AccountResponse quotas(AccountResponseQuotas quotas) { + public AccountResponse quotas(@jakarta.annotation.Nullable AccountResponseQuotas quotas) { this.quotas = quotas; return this; } @@ -246,12 +257,12 @@ public AccountResponseQuotas getQuotas() { @JsonProperty(JSON_PROPERTY_QUOTAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuotas(AccountResponseQuotas quotas) { + public void setQuotas(@jakarta.annotation.Nullable AccountResponseQuotas quotas) { this.quotas = quotas; } - public AccountResponse callbackUrl(String callbackUrl) { + public AccountResponse callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -271,12 +282,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public AccountResponse roleCode(String roleCode) { + public AccountResponse roleCode(@jakarta.annotation.Nullable String roleCode) { this.roleCode = roleCode; return this; } @@ -296,12 +307,12 @@ public String getRoleCode() { @JsonProperty(JSON_PROPERTY_ROLE_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoleCode(String roleCode) { + public void setRoleCode(@jakarta.annotation.Nullable String roleCode) { this.roleCode = roleCode; } - public AccountResponse teamId(String teamId) { + public AccountResponse teamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; return this; } @@ -321,12 +332,12 @@ public String getTeamId() { @JsonProperty(JSON_PROPERTY_TEAM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTeamId(String teamId) { + public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; } - public AccountResponse locale(String locale) { + public AccountResponse locale(@jakarta.annotation.Nullable String locale) { this.locale = locale; return this; } @@ -346,12 +357,12 @@ public String getLocale() { @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocale(String locale) { + public void setLocale(@jakarta.annotation.Nullable String locale) { this.locale = locale; } - public AccountResponse usage(AccountResponseUsage usage) { + public AccountResponse usage(@jakarta.annotation.Nullable AccountResponseUsage usage) { this.usage = usage; return this; } @@ -371,7 +382,7 @@ public AccountResponseUsage getUsage() { @JsonProperty(JSON_PROPERTY_USAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsage(AccountResponseUsage usage) { + public void setUsage(@jakarta.annotation.Nullable AccountResponseUsage usage) { this.usage = usage; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java index f8a7b6c2d..e1bf4a87e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java @@ -40,25 +40,31 @@ AccountResponseQuotas.JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, AccountResponseQuotas.JSON_PROPERTY_NUM_FAX_PAGES_LEFT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponseQuotas { public static final String JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT = "api_signature_requests_left"; + @jakarta.annotation.Nullable private Integer apiSignatureRequestsLeft; public static final String JSON_PROPERTY_DOCUMENTS_LEFT = "documents_left"; + @jakarta.annotation.Nullable private Integer documentsLeft; public static final String JSON_PROPERTY_TEMPLATES_TOTAL = "templates_total"; + @jakarta.annotation.Nullable private Integer templatesTotal; public static final String JSON_PROPERTY_TEMPLATES_LEFT = "templates_left"; + @jakarta.annotation.Nullable private Integer templatesLeft; public static final String JSON_PROPERTY_SMS_VERIFICATIONS_LEFT = "sms_verifications_left"; + @jakarta.annotation.Nullable private Integer smsVerificationsLeft; public static final String JSON_PROPERTY_NUM_FAX_PAGES_LEFT = "num_fax_pages_left"; + @jakarta.annotation.Nullable private Integer numFaxPagesLeft; public AccountResponseQuotas() { @@ -79,7 +85,7 @@ static public AccountResponseQuotas init(HashMap data) throws Exception { ); } - public AccountResponseQuotas apiSignatureRequestsLeft(Integer apiSignatureRequestsLeft) { + public AccountResponseQuotas apiSignatureRequestsLeft(@jakarta.annotation.Nullable Integer apiSignatureRequestsLeft) { this.apiSignatureRequestsLeft = apiSignatureRequestsLeft; return this; } @@ -99,12 +105,12 @@ public Integer getApiSignatureRequestsLeft() { @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiSignatureRequestsLeft(Integer apiSignatureRequestsLeft) { + public void setApiSignatureRequestsLeft(@jakarta.annotation.Nullable Integer apiSignatureRequestsLeft) { this.apiSignatureRequestsLeft = apiSignatureRequestsLeft; } - public AccountResponseQuotas documentsLeft(Integer documentsLeft) { + public AccountResponseQuotas documentsLeft(@jakarta.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; return this; } @@ -124,12 +130,12 @@ public Integer getDocumentsLeft() { @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocumentsLeft(Integer documentsLeft) { + public void setDocumentsLeft(@jakarta.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; } - public AccountResponseQuotas templatesTotal(Integer templatesTotal) { + public AccountResponseQuotas templatesTotal(@jakarta.annotation.Nullable Integer templatesTotal) { this.templatesTotal = templatesTotal; return this; } @@ -149,12 +155,12 @@ public Integer getTemplatesTotal() { @JsonProperty(JSON_PROPERTY_TEMPLATES_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplatesTotal(Integer templatesTotal) { + public void setTemplatesTotal(@jakarta.annotation.Nullable Integer templatesTotal) { this.templatesTotal = templatesTotal; } - public AccountResponseQuotas templatesLeft(Integer templatesLeft) { + public AccountResponseQuotas templatesLeft(@jakarta.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; return this; } @@ -174,12 +180,12 @@ public Integer getTemplatesLeft() { @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplatesLeft(Integer templatesLeft) { + public void setTemplatesLeft(@jakarta.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; } - public AccountResponseQuotas smsVerificationsLeft(Integer smsVerificationsLeft) { + public AccountResponseQuotas smsVerificationsLeft(@jakarta.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; return this; } @@ -199,12 +205,12 @@ public Integer getSmsVerificationsLeft() { @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsVerificationsLeft(Integer smsVerificationsLeft) { + public void setSmsVerificationsLeft(@jakarta.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; } - public AccountResponseQuotas numFaxPagesLeft(Integer numFaxPagesLeft) { + public AccountResponseQuotas numFaxPagesLeft(@jakarta.annotation.Nullable Integer numFaxPagesLeft) { this.numFaxPagesLeft = numFaxPagesLeft; return this; } @@ -224,7 +230,7 @@ public Integer getNumFaxPagesLeft() { @JsonProperty(JSON_PROPERTY_NUM_FAX_PAGES_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumFaxPagesLeft(Integer numFaxPagesLeft) { + public void setNumFaxPagesLeft(@jakarta.annotation.Nullable Integer numFaxPagesLeft) { this.numFaxPagesLeft = numFaxPagesLeft; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java index 741d5e58c..32ba98cf1 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ AccountResponseUsage.JSON_PROPERTY_FAX_PAGES_SENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountResponseUsage { public static final String JSON_PROPERTY_FAX_PAGES_SENT = "fax_pages_sent"; + @jakarta.annotation.Nullable private Integer faxPagesSent; public AccountResponseUsage() { @@ -59,7 +60,7 @@ static public AccountResponseUsage init(HashMap data) throws Exception { ); } - public AccountResponseUsage faxPagesSent(Integer faxPagesSent) { + public AccountResponseUsage faxPagesSent(@jakarta.annotation.Nullable Integer faxPagesSent) { this.faxPagesSent = faxPagesSent; return this; } @@ -79,7 +80,7 @@ public Integer getFaxPagesSent() { @JsonProperty(JSON_PROPERTY_FAX_PAGES_SENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFaxPagesSent(Integer faxPagesSent) { + public void setFaxPagesSent(@jakarta.annotation.Nullable Integer faxPagesSent) { this.faxPagesSent = faxPagesSent; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java index f1bede2ea..cb2d14d73 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java @@ -37,16 +37,19 @@ AccountUpdateRequest.JSON_PROPERTY_CALLBACK_URL, AccountUpdateRequest.JSON_PROPERTY_LOCALE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountUpdateRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; public static final String JSON_PROPERTY_LOCALE = "locale"; + @jakarta.annotation.Nullable private String locale; public AccountUpdateRequest() { @@ -67,7 +70,7 @@ static public AccountUpdateRequest init(HashMap data) throws Exception { ); } - public AccountUpdateRequest accountId(String accountId) { + public AccountUpdateRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -87,12 +90,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public AccountUpdateRequest callbackUrl(String callbackUrl) { + public AccountUpdateRequest callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -112,12 +115,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public AccountUpdateRequest locale(String locale) { + public AccountUpdateRequest locale(@jakarta.annotation.Nullable String locale) { this.locale = locale; return this; } @@ -137,7 +140,7 @@ public String getLocale() { @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocale(String locale) { + public void setLocale(@jakarta.annotation.Nullable String locale) { this.locale = locale; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java index ef7ce84e0..9b272bcba 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ AccountVerifyRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountVerifyRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public AccountVerifyRequest() { @@ -59,7 +60,7 @@ static public AccountVerifyRequest init(HashMap data) throws Exception { ); } - public AccountVerifyRequest emailAddress(String emailAddress) { + public AccountVerifyRequest emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -79,7 +80,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java index a703a42dd..971d4f67e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java @@ -40,13 +40,15 @@ AccountVerifyResponse.JSON_PROPERTY_ACCOUNT, AccountVerifyResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountVerifyResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; + @jakarta.annotation.Nullable private AccountVerifyResponseAccount account; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public AccountVerifyResponse() { @@ -67,7 +69,7 @@ static public AccountVerifyResponse init(HashMap data) throws Exception { ); } - public AccountVerifyResponse account(AccountVerifyResponseAccount account) { + public AccountVerifyResponse account(@jakarta.annotation.Nullable AccountVerifyResponseAccount account) { this.account = account; return this; } @@ -87,12 +89,12 @@ public AccountVerifyResponseAccount getAccount() { @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccount(AccountVerifyResponseAccount account) { + public void setAccount(@jakarta.annotation.Nullable AccountVerifyResponseAccount account) { this.account = account; } - public AccountVerifyResponse warnings(List warnings) { + public AccountVerifyResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java index 38b66db62..932c5be5b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ AccountVerifyResponseAccount.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class AccountVerifyResponseAccount { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public AccountVerifyResponseAccount() { @@ -59,7 +60,7 @@ static public AccountVerifyResponseAccount init(HashMap data) throws Exception { ); } - public AccountVerifyResponseAccount emailAddress(String emailAddress) { + public AccountVerifyResponseAccount emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -79,7 +80,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java index 2b2cf1cd4..6edb0498e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java @@ -47,28 +47,35 @@ ApiAppCreateRequest.JSON_PROPERTY_OPTIONS, ApiAppCreateRequest.JSON_PROPERTY_WHITE_LABELING_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppCreateRequest { public static final String JSON_PROPERTY_DOMAINS = "domains"; + @jakarta.annotation.Nonnull private List domains = new ArrayList<>(); public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; public static final String JSON_PROPERTY_CUSTOM_LOGO_FILE = "custom_logo_file"; + @jakarta.annotation.Nullable private File customLogoFile; public static final String JSON_PROPERTY_OAUTH = "oauth"; + @jakarta.annotation.Nullable private SubOAuth oauth; public static final String JSON_PROPERTY_OPTIONS = "options"; + @jakarta.annotation.Nullable private SubOptions options; public static final String JSON_PROPERTY_WHITE_LABELING_OPTIONS = "white_labeling_options"; + @jakarta.annotation.Nullable private SubWhiteLabelingOptions whiteLabelingOptions; public ApiAppCreateRequest() { @@ -89,7 +96,7 @@ static public ApiAppCreateRequest init(HashMap data) throws Exception { ); } - public ApiAppCreateRequest domains(List domains) { + public ApiAppCreateRequest domains(@jakarta.annotation.Nonnull List domains) { this.domains = domains; return this; } @@ -117,12 +124,12 @@ public List getDomains() { @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDomains(List domains) { + public void setDomains(@jakarta.annotation.Nonnull List domains) { this.domains = domains; } - public ApiAppCreateRequest name(String name) { + public ApiAppCreateRequest name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -142,12 +149,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public ApiAppCreateRequest callbackUrl(String callbackUrl) { + public ApiAppCreateRequest callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -167,12 +174,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public ApiAppCreateRequest customLogoFile(File customLogoFile) { + public ApiAppCreateRequest customLogoFile(@jakarta.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; return this; } @@ -192,12 +199,12 @@ public File getCustomLogoFile() { @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomLogoFile(File customLogoFile) { + public void setCustomLogoFile(@jakarta.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; } - public ApiAppCreateRequest oauth(SubOAuth oauth) { + public ApiAppCreateRequest oauth(@jakarta.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; return this; } @@ -217,12 +224,12 @@ public SubOAuth getOauth() { @JsonProperty(JSON_PROPERTY_OAUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOauth(SubOAuth oauth) { + public void setOauth(@jakarta.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; } - public ApiAppCreateRequest options(SubOptions options) { + public ApiAppCreateRequest options(@jakarta.annotation.Nullable SubOptions options) { this.options = options; return this; } @@ -242,12 +249,12 @@ public SubOptions getOptions() { @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptions(SubOptions options) { + public void setOptions(@jakarta.annotation.Nullable SubOptions options) { this.options = options; } - public ApiAppCreateRequest whiteLabelingOptions(SubWhiteLabelingOptions whiteLabelingOptions) { + public ApiAppCreateRequest whiteLabelingOptions(@jakarta.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; return this; } @@ -267,7 +274,7 @@ public SubWhiteLabelingOptions getWhiteLabelingOptions() { @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWhiteLabelingOptions(SubWhiteLabelingOptions whiteLabelingOptions) { + public void setWhiteLabelingOptions(@jakarta.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java index a2d69e9c8..887067a0e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java @@ -40,13 +40,15 @@ ApiAppGetResponse.JSON_PROPERTY_API_APP, ApiAppGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppGetResponse { public static final String JSON_PROPERTY_API_APP = "api_app"; + @jakarta.annotation.Nonnull private ApiAppResponse apiApp; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public ApiAppGetResponse() { @@ -67,7 +69,7 @@ static public ApiAppGetResponse init(HashMap data) throws Exception { ); } - public ApiAppGetResponse apiApp(ApiAppResponse apiApp) { + public ApiAppGetResponse apiApp(@jakarta.annotation.Nonnull ApiAppResponse apiApp) { this.apiApp = apiApp; return this; } @@ -87,12 +89,12 @@ public ApiAppResponse getApiApp() { @JsonProperty(JSON_PROPERTY_API_APP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiApp(ApiAppResponse apiApp) { + public void setApiApp(@jakarta.annotation.Nonnull ApiAppResponse apiApp) { this.apiApp = apiApp; } - public ApiAppGetResponse warnings(List warnings) { + public ApiAppGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java index 7abb53610..eca7bbdc7 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java @@ -42,16 +42,19 @@ ApiAppListResponse.JSON_PROPERTY_LIST_INFO, ApiAppListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppListResponse { public static final String JSON_PROPERTY_API_APPS = "api_apps"; + @jakarta.annotation.Nonnull private List apiApps = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public ApiAppListResponse() { @@ -72,7 +75,7 @@ static public ApiAppListResponse init(HashMap data) throws Exception { ); } - public ApiAppListResponse apiApps(List apiApps) { + public ApiAppListResponse apiApps(@jakarta.annotation.Nonnull List apiApps) { this.apiApps = apiApps; return this; } @@ -100,12 +103,12 @@ public List getApiApps() { @JsonProperty(JSON_PROPERTY_API_APPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiApps(List apiApps) { + public void setApiApps(@jakarta.annotation.Nonnull List apiApps) { this.apiApps = apiApps; } - public ApiAppListResponse listInfo(ListInfoResponse listInfo) { + public ApiAppListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -125,12 +128,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public ApiAppListResponse warnings(List warnings) { + public ApiAppListResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -158,7 +161,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java index ee5f12eaf..6bd39a59c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponse.java @@ -50,37 +50,47 @@ ApiAppResponse.JSON_PROPERTY_OWNER_ACCOUNT, ApiAppResponse.JSON_PROPERTY_WHITE_LABELING_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponse { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @jakarta.annotation.Nullable private Integer createdAt; public static final String JSON_PROPERTY_DOMAINS = "domains"; + @jakarta.annotation.Nullable private List domains = null; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_IS_APPROVED = "is_approved"; + @jakarta.annotation.Nullable private Boolean isApproved; public static final String JSON_PROPERTY_OAUTH = "oauth"; + @jakarta.annotation.Nullable private ApiAppResponseOAuth oauth; public static final String JSON_PROPERTY_OPTIONS = "options"; + @jakarta.annotation.Nullable private ApiAppResponseOptions options; public static final String JSON_PROPERTY_OWNER_ACCOUNT = "owner_account"; + @jakarta.annotation.Nullable private ApiAppResponseOwnerAccount ownerAccount; public static final String JSON_PROPERTY_WHITE_LABELING_OPTIONS = "white_labeling_options"; + @jakarta.annotation.Nullable private ApiAppResponseWhiteLabelingOptions whiteLabelingOptions; public ApiAppResponse() { @@ -101,7 +111,7 @@ static public ApiAppResponse init(HashMap data) throws Exception { ); } - public ApiAppResponse callbackUrl(String callbackUrl) { + public ApiAppResponse callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -121,12 +131,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public ApiAppResponse clientId(String clientId) { + public ApiAppResponse clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -146,12 +156,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public ApiAppResponse createdAt(Integer createdAt) { + public ApiAppResponse createdAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; return this; } @@ -171,12 +181,12 @@ public Integer getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Integer createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; } - public ApiAppResponse domains(List domains) { + public ApiAppResponse domains(@jakarta.annotation.Nullable List domains) { this.domains = domains; return this; } @@ -204,12 +214,12 @@ public List getDomains() { @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDomains(List domains) { + public void setDomains(@jakarta.annotation.Nullable List domains) { this.domains = domains; } - public ApiAppResponse name(String name) { + public ApiAppResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -229,12 +239,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public ApiAppResponse isApproved(Boolean isApproved) { + public ApiAppResponse isApproved(@jakarta.annotation.Nullable Boolean isApproved) { this.isApproved = isApproved; return this; } @@ -254,12 +264,12 @@ public Boolean getIsApproved() { @JsonProperty(JSON_PROPERTY_IS_APPROVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsApproved(Boolean isApproved) { + public void setIsApproved(@jakarta.annotation.Nullable Boolean isApproved) { this.isApproved = isApproved; } - public ApiAppResponse oauth(ApiAppResponseOAuth oauth) { + public ApiAppResponse oauth(@jakarta.annotation.Nullable ApiAppResponseOAuth oauth) { this.oauth = oauth; return this; } @@ -279,12 +289,12 @@ public ApiAppResponseOAuth getOauth() { @JsonProperty(JSON_PROPERTY_OAUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOauth(ApiAppResponseOAuth oauth) { + public void setOauth(@jakarta.annotation.Nullable ApiAppResponseOAuth oauth) { this.oauth = oauth; } - public ApiAppResponse options(ApiAppResponseOptions options) { + public ApiAppResponse options(@jakarta.annotation.Nullable ApiAppResponseOptions options) { this.options = options; return this; } @@ -304,12 +314,12 @@ public ApiAppResponseOptions getOptions() { @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptions(ApiAppResponseOptions options) { + public void setOptions(@jakarta.annotation.Nullable ApiAppResponseOptions options) { this.options = options; } - public ApiAppResponse ownerAccount(ApiAppResponseOwnerAccount ownerAccount) { + public ApiAppResponse ownerAccount(@jakarta.annotation.Nullable ApiAppResponseOwnerAccount ownerAccount) { this.ownerAccount = ownerAccount; return this; } @@ -329,12 +339,12 @@ public ApiAppResponseOwnerAccount getOwnerAccount() { @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOwnerAccount(ApiAppResponseOwnerAccount ownerAccount) { + public void setOwnerAccount(@jakarta.annotation.Nullable ApiAppResponseOwnerAccount ownerAccount) { this.ownerAccount = ownerAccount; } - public ApiAppResponse whiteLabelingOptions(ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) { + public ApiAppResponse whiteLabelingOptions(@jakarta.annotation.Nullable ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; return this; } @@ -354,7 +364,7 @@ public ApiAppResponseWhiteLabelingOptions getWhiteLabelingOptions() { @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWhiteLabelingOptions(ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) { + public void setWhiteLabelingOptions(@jakarta.annotation.Nullable ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java index b071e4067..6ae38fc51 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java @@ -40,19 +40,23 @@ ApiAppResponseOAuth.JSON_PROPERTY_SCOPES, ApiAppResponseOAuth.JSON_PROPERTY_CHARGES_USERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseOAuth { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; public static final String JSON_PROPERTY_SECRET = "secret"; + @jakarta.annotation.Nullable private String secret; public static final String JSON_PROPERTY_SCOPES = "scopes"; + @jakarta.annotation.Nullable private List scopes = null; public static final String JSON_PROPERTY_CHARGES_USERS = "charges_users"; + @jakarta.annotation.Nullable private Boolean chargesUsers; public ApiAppResponseOAuth() { @@ -73,7 +77,7 @@ static public ApiAppResponseOAuth init(HashMap data) throws Exception { ); } - public ApiAppResponseOAuth callbackUrl(String callbackUrl) { + public ApiAppResponseOAuth callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -93,12 +97,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public ApiAppResponseOAuth secret(String secret) { + public ApiAppResponseOAuth secret(@jakarta.annotation.Nullable String secret) { this.secret = secret; return this; } @@ -118,12 +122,12 @@ public String getSecret() { @JsonProperty(JSON_PROPERTY_SECRET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecret(String secret) { + public void setSecret(@jakarta.annotation.Nullable String secret) { this.secret = secret; } - public ApiAppResponseOAuth scopes(List scopes) { + public ApiAppResponseOAuth scopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; return this; } @@ -151,12 +155,12 @@ public List getScopes() { @JsonProperty(JSON_PROPERTY_SCOPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScopes(List scopes) { + public void setScopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; } - public ApiAppResponseOAuth chargesUsers(Boolean chargesUsers) { + public ApiAppResponseOAuth chargesUsers(@jakarta.annotation.Nullable Boolean chargesUsers) { this.chargesUsers = chargesUsers; return this; } @@ -176,7 +180,7 @@ public Boolean getChargesUsers() { @JsonProperty(JSON_PROPERTY_CHARGES_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setChargesUsers(Boolean chargesUsers) { + public void setChargesUsers(@jakarta.annotation.Nullable Boolean chargesUsers) { this.chargesUsers = chargesUsers; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java index 2cffd69d5..1a9c91d76 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ ApiAppResponseOptions.JSON_PROPERTY_CAN_INSERT_EVERYWHERE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseOptions { public static final String JSON_PROPERTY_CAN_INSERT_EVERYWHERE = "can_insert_everywhere"; + @jakarta.annotation.Nullable private Boolean canInsertEverywhere; public ApiAppResponseOptions() { @@ -59,7 +60,7 @@ static public ApiAppResponseOptions init(HashMap data) throws Exception { ); } - public ApiAppResponseOptions canInsertEverywhere(Boolean canInsertEverywhere) { + public ApiAppResponseOptions canInsertEverywhere(@jakarta.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; return this; } @@ -79,7 +80,7 @@ public Boolean getCanInsertEverywhere() { @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanInsertEverywhere(Boolean canInsertEverywhere) { + public void setCanInsertEverywhere(@jakarta.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java index 80f95b50a..7149d8edd 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java @@ -36,13 +36,15 @@ ApiAppResponseOwnerAccount.JSON_PROPERTY_ACCOUNT_ID, ApiAppResponseOwnerAccount.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseOwnerAccount { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public ApiAppResponseOwnerAccount() { @@ -63,7 +65,7 @@ static public ApiAppResponseOwnerAccount init(HashMap data) throws Exception { ); } - public ApiAppResponseOwnerAccount accountId(String accountId) { + public ApiAppResponseOwnerAccount accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -83,12 +85,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public ApiAppResponseOwnerAccount emailAddress(String emailAddress) { + public ApiAppResponseOwnerAccount emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -108,7 +110,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java index 44b6f6e1e..2dd9a0018 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java @@ -48,49 +48,63 @@ ApiAppResponseWhiteLabelingOptions.JSON_PROPERTY_TEXT_COLOR1, ApiAppResponseWhiteLabelingOptions.JSON_PROPERTY_TEXT_COLOR2 }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppResponseWhiteLabelingOptions { public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color"; + @jakarta.annotation.Nullable private String headerBackgroundColor; public static final String JSON_PROPERTY_LEGAL_VERSION = "legal_version"; + @jakarta.annotation.Nullable private String legalVersion; public static final String JSON_PROPERTY_LINK_COLOR = "link_color"; + @jakarta.annotation.Nullable private String linkColor; public static final String JSON_PROPERTY_PAGE_BACKGROUND_COLOR = "page_background_color"; + @jakarta.annotation.Nullable private String pageBackgroundColor; public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR = "primary_button_color"; + @jakarta.annotation.Nullable private String primaryButtonColor; public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER = "primary_button_color_hover"; + @jakarta.annotation.Nullable private String primaryButtonColorHover; public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR = "primary_button_text_color"; + @jakarta.annotation.Nullable private String primaryButtonTextColor; public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER = "primary_button_text_color_hover"; + @jakarta.annotation.Nullable private String primaryButtonTextColorHover; public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR = "secondary_button_color"; + @jakarta.annotation.Nullable private String secondaryButtonColor; public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER = "secondary_button_color_hover"; + @jakarta.annotation.Nullable private String secondaryButtonColorHover; public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR = "secondary_button_text_color"; + @jakarta.annotation.Nullable private String secondaryButtonTextColor; public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER = "secondary_button_text_color_hover"; + @jakarta.annotation.Nullable private String secondaryButtonTextColorHover; public static final String JSON_PROPERTY_TEXT_COLOR1 = "text_color1"; + @jakarta.annotation.Nullable private String textColor1; public static final String JSON_PROPERTY_TEXT_COLOR2 = "text_color2"; + @jakarta.annotation.Nullable private String textColor2; public ApiAppResponseWhiteLabelingOptions() { @@ -111,7 +125,7 @@ static public ApiAppResponseWhiteLabelingOptions init(HashMap data) throws Excep ); } - public ApiAppResponseWhiteLabelingOptions headerBackgroundColor(String headerBackgroundColor) { + public ApiAppResponseWhiteLabelingOptions headerBackgroundColor(@jakarta.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; return this; } @@ -131,12 +145,12 @@ public String getHeaderBackgroundColor() { @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHeaderBackgroundColor(String headerBackgroundColor) { + public void setHeaderBackgroundColor(@jakarta.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; } - public ApiAppResponseWhiteLabelingOptions legalVersion(String legalVersion) { + public ApiAppResponseWhiteLabelingOptions legalVersion(@jakarta.annotation.Nullable String legalVersion) { this.legalVersion = legalVersion; return this; } @@ -156,12 +170,12 @@ public String getLegalVersion() { @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalVersion(String legalVersion) { + public void setLegalVersion(@jakarta.annotation.Nullable String legalVersion) { this.legalVersion = legalVersion; } - public ApiAppResponseWhiteLabelingOptions linkColor(String linkColor) { + public ApiAppResponseWhiteLabelingOptions linkColor(@jakarta.annotation.Nullable String linkColor) { this.linkColor = linkColor; return this; } @@ -181,12 +195,12 @@ public String getLinkColor() { @JsonProperty(JSON_PROPERTY_LINK_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkColor(String linkColor) { + public void setLinkColor(@jakarta.annotation.Nullable String linkColor) { this.linkColor = linkColor; } - public ApiAppResponseWhiteLabelingOptions pageBackgroundColor(String pageBackgroundColor) { + public ApiAppResponseWhiteLabelingOptions pageBackgroundColor(@jakarta.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; return this; } @@ -206,12 +220,12 @@ public String getPageBackgroundColor() { @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageBackgroundColor(String pageBackgroundColor) { + public void setPageBackgroundColor(@jakarta.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; } - public ApiAppResponseWhiteLabelingOptions primaryButtonColor(String primaryButtonColor) { + public ApiAppResponseWhiteLabelingOptions primaryButtonColor(@jakarta.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; return this; } @@ -231,12 +245,12 @@ public String getPrimaryButtonColor() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonColor(String primaryButtonColor) { + public void setPrimaryButtonColor(@jakarta.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; } - public ApiAppResponseWhiteLabelingOptions primaryButtonColorHover(String primaryButtonColorHover) { + public ApiAppResponseWhiteLabelingOptions primaryButtonColorHover(@jakarta.annotation.Nullable String primaryButtonColorHover) { this.primaryButtonColorHover = primaryButtonColorHover; return this; } @@ -256,12 +270,12 @@ public String getPrimaryButtonColorHover() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonColorHover(String primaryButtonColorHover) { + public void setPrimaryButtonColorHover(@jakarta.annotation.Nullable String primaryButtonColorHover) { this.primaryButtonColorHover = primaryButtonColorHover; } - public ApiAppResponseWhiteLabelingOptions primaryButtonTextColor(String primaryButtonTextColor) { + public ApiAppResponseWhiteLabelingOptions primaryButtonTextColor(@jakarta.annotation.Nullable String primaryButtonTextColor) { this.primaryButtonTextColor = primaryButtonTextColor; return this; } @@ -281,12 +295,12 @@ public String getPrimaryButtonTextColor() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonTextColor(String primaryButtonTextColor) { + public void setPrimaryButtonTextColor(@jakarta.annotation.Nullable String primaryButtonTextColor) { this.primaryButtonTextColor = primaryButtonTextColor; } - public ApiAppResponseWhiteLabelingOptions primaryButtonTextColorHover(String primaryButtonTextColorHover) { + public ApiAppResponseWhiteLabelingOptions primaryButtonTextColorHover(@jakarta.annotation.Nullable String primaryButtonTextColorHover) { this.primaryButtonTextColorHover = primaryButtonTextColorHover; return this; } @@ -306,12 +320,12 @@ public String getPrimaryButtonTextColorHover() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonTextColorHover(String primaryButtonTextColorHover) { + public void setPrimaryButtonTextColorHover(@jakarta.annotation.Nullable String primaryButtonTextColorHover) { this.primaryButtonTextColorHover = primaryButtonTextColorHover; } - public ApiAppResponseWhiteLabelingOptions secondaryButtonColor(String secondaryButtonColor) { + public ApiAppResponseWhiteLabelingOptions secondaryButtonColor(@jakarta.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; return this; } @@ -331,12 +345,12 @@ public String getSecondaryButtonColor() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonColor(String secondaryButtonColor) { + public void setSecondaryButtonColor(@jakarta.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; } - public ApiAppResponseWhiteLabelingOptions secondaryButtonColorHover(String secondaryButtonColorHover) { + public ApiAppResponseWhiteLabelingOptions secondaryButtonColorHover(@jakarta.annotation.Nullable String secondaryButtonColorHover) { this.secondaryButtonColorHover = secondaryButtonColorHover; return this; } @@ -356,12 +370,12 @@ public String getSecondaryButtonColorHover() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonColorHover(String secondaryButtonColorHover) { + public void setSecondaryButtonColorHover(@jakarta.annotation.Nullable String secondaryButtonColorHover) { this.secondaryButtonColorHover = secondaryButtonColorHover; } - public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColor(String secondaryButtonTextColor) { + public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColor(@jakarta.annotation.Nullable String secondaryButtonTextColor) { this.secondaryButtonTextColor = secondaryButtonTextColor; return this; } @@ -381,12 +395,12 @@ public String getSecondaryButtonTextColor() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonTextColor(String secondaryButtonTextColor) { + public void setSecondaryButtonTextColor(@jakarta.annotation.Nullable String secondaryButtonTextColor) { this.secondaryButtonTextColor = secondaryButtonTextColor; } - public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColorHover(String secondaryButtonTextColorHover) { + public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColorHover(@jakarta.annotation.Nullable String secondaryButtonTextColorHover) { this.secondaryButtonTextColorHover = secondaryButtonTextColorHover; return this; } @@ -406,12 +420,12 @@ public String getSecondaryButtonTextColorHover() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonTextColorHover(String secondaryButtonTextColorHover) { + public void setSecondaryButtonTextColorHover(@jakarta.annotation.Nullable String secondaryButtonTextColorHover) { this.secondaryButtonTextColorHover = secondaryButtonTextColorHover; } - public ApiAppResponseWhiteLabelingOptions textColor1(String textColor1) { + public ApiAppResponseWhiteLabelingOptions textColor1(@jakarta.annotation.Nullable String textColor1) { this.textColor1 = textColor1; return this; } @@ -431,12 +445,12 @@ public String getTextColor1() { @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTextColor1(String textColor1) { + public void setTextColor1(@jakarta.annotation.Nullable String textColor1) { this.textColor1 = textColor1; } - public ApiAppResponseWhiteLabelingOptions textColor2(String textColor2) { + public ApiAppResponseWhiteLabelingOptions textColor2(@jakarta.annotation.Nullable String textColor2) { this.textColor2 = textColor2; return this; } @@ -456,7 +470,7 @@ public String getTextColor2() { @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTextColor2(String textColor2) { + public void setTextColor2(@jakarta.annotation.Nullable String textColor2) { this.textColor2 = textColor2; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java index c4a484995..704ccc262 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java @@ -47,28 +47,35 @@ ApiAppUpdateRequest.JSON_PROPERTY_OPTIONS, ApiAppUpdateRequest.JSON_PROPERTY_WHITE_LABELING_OPTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ApiAppUpdateRequest { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; public static final String JSON_PROPERTY_CUSTOM_LOGO_FILE = "custom_logo_file"; + @jakarta.annotation.Nullable private File customLogoFile; public static final String JSON_PROPERTY_DOMAINS = "domains"; + @jakarta.annotation.Nullable private List domains = null; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_OAUTH = "oauth"; + @jakarta.annotation.Nullable private SubOAuth oauth; public static final String JSON_PROPERTY_OPTIONS = "options"; + @jakarta.annotation.Nullable private SubOptions options; public static final String JSON_PROPERTY_WHITE_LABELING_OPTIONS = "white_labeling_options"; + @jakarta.annotation.Nullable private SubWhiteLabelingOptions whiteLabelingOptions; public ApiAppUpdateRequest() { @@ -89,7 +96,7 @@ static public ApiAppUpdateRequest init(HashMap data) throws Exception { ); } - public ApiAppUpdateRequest callbackUrl(String callbackUrl) { + public ApiAppUpdateRequest callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -109,12 +116,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public ApiAppUpdateRequest customLogoFile(File customLogoFile) { + public ApiAppUpdateRequest customLogoFile(@jakarta.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; return this; } @@ -134,12 +141,12 @@ public File getCustomLogoFile() { @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomLogoFile(File customLogoFile) { + public void setCustomLogoFile(@jakarta.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; } - public ApiAppUpdateRequest domains(List domains) { + public ApiAppUpdateRequest domains(@jakarta.annotation.Nullable List domains) { this.domains = domains; return this; } @@ -167,12 +174,12 @@ public List getDomains() { @JsonProperty(JSON_PROPERTY_DOMAINS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDomains(List domains) { + public void setDomains(@jakarta.annotation.Nullable List domains) { this.domains = domains; } - public ApiAppUpdateRequest name(String name) { + public ApiAppUpdateRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -192,12 +199,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public ApiAppUpdateRequest oauth(SubOAuth oauth) { + public ApiAppUpdateRequest oauth(@jakarta.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; return this; } @@ -217,12 +224,12 @@ public SubOAuth getOauth() { @JsonProperty(JSON_PROPERTY_OAUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOauth(SubOAuth oauth) { + public void setOauth(@jakarta.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; } - public ApiAppUpdateRequest options(SubOptions options) { + public ApiAppUpdateRequest options(@jakarta.annotation.Nullable SubOptions options) { this.options = options; return this; } @@ -242,12 +249,12 @@ public SubOptions getOptions() { @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOptions(SubOptions options) { + public void setOptions(@jakarta.annotation.Nullable SubOptions options) { this.options = options; } - public ApiAppUpdateRequest whiteLabelingOptions(SubWhiteLabelingOptions whiteLabelingOptions) { + public ApiAppUpdateRequest whiteLabelingOptions(@jakarta.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; return this; } @@ -267,7 +274,7 @@ public SubWhiteLabelingOptions getWhiteLabelingOptions() { @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWhiteLabelingOptions(SubWhiteLabelingOptions whiteLabelingOptions) { + public void setWhiteLabelingOptions(@jakarta.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { this.whiteLabelingOptions = whiteLabelingOptions; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java index af9c33736..944191a53 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java @@ -44,19 +44,23 @@ BulkSendJobGetResponse.JSON_PROPERTY_SIGNATURE_REQUESTS, BulkSendJobGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobGetResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB = "bulk_send_job"; + @jakarta.annotation.Nonnull private BulkSendJobResponse bulkSendJob; public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_SIGNATURE_REQUESTS = "signature_requests"; + @jakarta.annotation.Nonnull private List signatureRequests = new ArrayList<>(); public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public BulkSendJobGetResponse() { @@ -77,7 +81,7 @@ static public BulkSendJobGetResponse init(HashMap data) throws Exception { ); } - public BulkSendJobGetResponse bulkSendJob(BulkSendJobResponse bulkSendJob) { + public BulkSendJobGetResponse bulkSendJob(@jakarta.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; return this; } @@ -97,12 +101,12 @@ public BulkSendJobResponse getBulkSendJob() { @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBulkSendJob(BulkSendJobResponse bulkSendJob) { + public void setBulkSendJob(@jakarta.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; } - public BulkSendJobGetResponse listInfo(ListInfoResponse listInfo) { + public BulkSendJobGetResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -122,12 +126,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public BulkSendJobGetResponse signatureRequests(List signatureRequests) { + public BulkSendJobGetResponse signatureRequests(@jakarta.annotation.Nonnull List signatureRequests) { this.signatureRequests = signatureRequests; return this; } @@ -155,12 +159,12 @@ public List getSignatureRequests() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignatureRequests(List signatureRequests) { + public void setSignatureRequests(@jakarta.annotation.Nonnull List signatureRequests) { this.signatureRequests = signatureRequests; } - public BulkSendJobGetResponse warnings(List warnings) { + public BulkSendJobGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -188,7 +192,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java index 3901db15f..2e360bc7f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java @@ -67,82 +67,107 @@ BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_SIGNATURES, BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_BULK_SEND_JOB_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobGetResponseSignatureRequests { public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_SIGNATURE_REQUEST_ID = "signature_request_id"; + @jakarta.annotation.Nullable private String signatureRequestId; public static final String JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS = "requester_email_address"; + @jakarta.annotation.Nullable private String requesterEmailAddress; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_ORIGINAL_TITLE = "original_title"; + @jakarta.annotation.Nullable private String originalTitle; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @jakarta.annotation.Nullable private Integer createdAt; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public static final String JSON_PROPERTY_IS_COMPLETE = "is_complete"; + @jakarta.annotation.Nullable private Boolean isComplete; public static final String JSON_PROPERTY_IS_DECLINED = "is_declined"; + @jakarta.annotation.Nullable private Boolean isDeclined; public static final String JSON_PROPERTY_HAS_ERROR = "has_error"; + @jakarta.annotation.Nullable private Boolean hasError; public static final String JSON_PROPERTY_FILES_URL = "files_url"; + @jakarta.annotation.Nullable private String filesUrl; public static final String JSON_PROPERTY_SIGNING_URL = "signing_url"; + @jakarta.annotation.Nullable private String signingUrl; public static final String JSON_PROPERTY_DETAILS_URL = "details_url"; + @jakarta.annotation.Nullable private String detailsUrl; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_FINAL_COPY_URI = "final_copy_uri"; + @jakarta.annotation.Nullable private String finalCopyUri; public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nullable private List templateIds = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_RESPONSE_DATA = "response_data"; + @jakarta.annotation.Nullable private List responseData = null; public static final String JSON_PROPERTY_SIGNATURES = "signatures"; + @jakarta.annotation.Nullable private List signatures = null; public static final String JSON_PROPERTY_BULK_SEND_JOB_ID = "bulk_send_job_id"; + @jakarta.annotation.Nullable private String bulkSendJobId; public BulkSendJobGetResponseSignatureRequests() { @@ -163,7 +188,7 @@ static public BulkSendJobGetResponseSignatureRequests init(HashMap data) throws ); } - public BulkSendJobGetResponseSignatureRequests testMode(Boolean testMode) { + public BulkSendJobGetResponseSignatureRequests testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -183,12 +208,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public BulkSendJobGetResponseSignatureRequests signatureRequestId(String signatureRequestId) { + public BulkSendJobGetResponseSignatureRequests signatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; return this; } @@ -208,12 +233,12 @@ public String getSignatureRequestId() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatureRequestId(String signatureRequestId) { + public void setSignatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; } - public BulkSendJobGetResponseSignatureRequests requesterEmailAddress(String requesterEmailAddress) { + public BulkSendJobGetResponseSignatureRequests requesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; return this; } @@ -233,12 +258,12 @@ public String getRequesterEmailAddress() { @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequesterEmailAddress(String requesterEmailAddress) { + public void setRequesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; } - public BulkSendJobGetResponseSignatureRequests title(String title) { + public BulkSendJobGetResponseSignatureRequests title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -258,12 +283,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public BulkSendJobGetResponseSignatureRequests originalTitle(String originalTitle) { + public BulkSendJobGetResponseSignatureRequests originalTitle(@jakarta.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; return this; } @@ -283,12 +308,12 @@ public String getOriginalTitle() { @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginalTitle(String originalTitle) { + public void setOriginalTitle(@jakarta.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; } - public BulkSendJobGetResponseSignatureRequests subject(String subject) { + public BulkSendJobGetResponseSignatureRequests subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -308,12 +333,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public BulkSendJobGetResponseSignatureRequests message(String message) { + public BulkSendJobGetResponseSignatureRequests message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -333,12 +358,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public BulkSendJobGetResponseSignatureRequests metadata(Map metadata) { + public BulkSendJobGetResponseSignatureRequests metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -366,12 +391,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public BulkSendJobGetResponseSignatureRequests createdAt(Integer createdAt) { + public BulkSendJobGetResponseSignatureRequests createdAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; return this; } @@ -391,12 +416,12 @@ public Integer getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Integer createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; } - public BulkSendJobGetResponseSignatureRequests expiresAt(Integer expiresAt) { + public BulkSendJobGetResponseSignatureRequests expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -416,12 +441,12 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } - public BulkSendJobGetResponseSignatureRequests isComplete(Boolean isComplete) { + public BulkSendJobGetResponseSignatureRequests isComplete(@jakarta.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; return this; } @@ -441,12 +466,12 @@ public Boolean getIsComplete() { @JsonProperty(JSON_PROPERTY_IS_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsComplete(Boolean isComplete) { + public void setIsComplete(@jakarta.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; } - public BulkSendJobGetResponseSignatureRequests isDeclined(Boolean isDeclined) { + public BulkSendJobGetResponseSignatureRequests isDeclined(@jakarta.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; return this; } @@ -466,12 +491,12 @@ public Boolean getIsDeclined() { @JsonProperty(JSON_PROPERTY_IS_DECLINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsDeclined(Boolean isDeclined) { + public void setIsDeclined(@jakarta.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; } - public BulkSendJobGetResponseSignatureRequests hasError(Boolean hasError) { + public BulkSendJobGetResponseSignatureRequests hasError(@jakarta.annotation.Nullable Boolean hasError) { this.hasError = hasError; return this; } @@ -491,12 +516,12 @@ public Boolean getHasError() { @JsonProperty(JSON_PROPERTY_HAS_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasError(Boolean hasError) { + public void setHasError(@jakarta.annotation.Nullable Boolean hasError) { this.hasError = hasError; } - public BulkSendJobGetResponseSignatureRequests filesUrl(String filesUrl) { + public BulkSendJobGetResponseSignatureRequests filesUrl(@jakarta.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; return this; } @@ -516,12 +541,12 @@ public String getFilesUrl() { @JsonProperty(JSON_PROPERTY_FILES_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilesUrl(String filesUrl) { + public void setFilesUrl(@jakarta.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; } - public BulkSendJobGetResponseSignatureRequests signingUrl(String signingUrl) { + public BulkSendJobGetResponseSignatureRequests signingUrl(@jakarta.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; return this; } @@ -541,12 +566,12 @@ public String getSigningUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningUrl(String signingUrl) { + public void setSigningUrl(@jakarta.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; } - public BulkSendJobGetResponseSignatureRequests detailsUrl(String detailsUrl) { + public BulkSendJobGetResponseSignatureRequests detailsUrl(@jakarta.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; return this; } @@ -566,12 +591,12 @@ public String getDetailsUrl() { @JsonProperty(JSON_PROPERTY_DETAILS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetailsUrl(String detailsUrl) { + public void setDetailsUrl(@jakarta.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; } - public BulkSendJobGetResponseSignatureRequests ccEmailAddresses(List ccEmailAddresses) { + public BulkSendJobGetResponseSignatureRequests ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -599,12 +624,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public BulkSendJobGetResponseSignatureRequests signingRedirectUrl(String signingRedirectUrl) { + public BulkSendJobGetResponseSignatureRequests signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -624,12 +649,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public BulkSendJobGetResponseSignatureRequests finalCopyUri(String finalCopyUri) { + public BulkSendJobGetResponseSignatureRequests finalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; return this; } @@ -649,12 +674,12 @@ public String getFinalCopyUri() { @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinalCopyUri(String finalCopyUri) { + public void setFinalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; } - public BulkSendJobGetResponseSignatureRequests templateIds(List templateIds) { + public BulkSendJobGetResponseSignatureRequests templateIds(@jakarta.annotation.Nullable List templateIds) { this.templateIds = templateIds; return this; } @@ -682,12 +707,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nullable List templateIds) { this.templateIds = templateIds; } - public BulkSendJobGetResponseSignatureRequests customFields(List customFields) { + public BulkSendJobGetResponseSignatureRequests customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -715,12 +740,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public BulkSendJobGetResponseSignatureRequests attachments(List attachments) { + public BulkSendJobGetResponseSignatureRequests attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -748,12 +773,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public BulkSendJobGetResponseSignatureRequests responseData(List responseData) { + public BulkSendJobGetResponseSignatureRequests responseData(@jakarta.annotation.Nullable List responseData) { this.responseData = responseData; return this; } @@ -781,12 +806,12 @@ public List getResponseData() { @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResponseData(List responseData) { + public void setResponseData(@jakarta.annotation.Nullable List responseData) { this.responseData = responseData; } - public BulkSendJobGetResponseSignatureRequests signatures(List signatures) { + public BulkSendJobGetResponseSignatureRequests signatures(@jakarta.annotation.Nullable List signatures) { this.signatures = signatures; return this; } @@ -814,12 +839,12 @@ public List getSignatures() { @JsonProperty(JSON_PROPERTY_SIGNATURES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatures(List signatures) { + public void setSignatures(@jakarta.annotation.Nullable List signatures) { this.signatures = signatures; } - public BulkSendJobGetResponseSignatureRequests bulkSendJobId(String bulkSendJobId) { + public BulkSendJobGetResponseSignatureRequests bulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; return this; } @@ -839,7 +864,7 @@ public String getBulkSendJobId() { @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBulkSendJobId(String bulkSendJobId) { + public void setBulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java index c550b3164..93fd456cd 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java @@ -42,16 +42,19 @@ BulkSendJobListResponse.JSON_PROPERTY_LIST_INFO, BulkSendJobListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobListResponse { public static final String JSON_PROPERTY_BULK_SEND_JOBS = "bulk_send_jobs"; + @jakarta.annotation.Nonnull private List bulkSendJobs = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public BulkSendJobListResponse() { @@ -72,7 +75,7 @@ static public BulkSendJobListResponse init(HashMap data) throws Exception { ); } - public BulkSendJobListResponse bulkSendJobs(List bulkSendJobs) { + public BulkSendJobListResponse bulkSendJobs(@jakarta.annotation.Nonnull List bulkSendJobs) { this.bulkSendJobs = bulkSendJobs; return this; } @@ -100,12 +103,12 @@ public List getBulkSendJobs() { @JsonProperty(JSON_PROPERTY_BULK_SEND_JOBS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBulkSendJobs(List bulkSendJobs) { + public void setBulkSendJobs(@jakarta.annotation.Nonnull List bulkSendJobs) { this.bulkSendJobs = bulkSendJobs; } - public BulkSendJobListResponse listInfo(ListInfoResponse listInfo) { + public BulkSendJobListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -125,12 +128,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public BulkSendJobListResponse warnings(List warnings) { + public BulkSendJobListResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -158,7 +161,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java index 88f0eec99..f025c4f8f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java @@ -38,19 +38,23 @@ BulkSendJobResponse.JSON_PROPERTY_IS_CREATOR, BulkSendJobResponse.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB_ID = "bulk_send_job_id"; + @jakarta.annotation.Nullable private String bulkSendJobId; public static final String JSON_PROPERTY_TOTAL = "total"; + @jakarta.annotation.Nullable private Integer total; public static final String JSON_PROPERTY_IS_CREATOR = "is_creator"; + @jakarta.annotation.Nullable private Boolean isCreator; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @jakarta.annotation.Nullable private Integer createdAt; public BulkSendJobResponse() { @@ -71,7 +75,7 @@ static public BulkSendJobResponse init(HashMap data) throws Exception { ); } - public BulkSendJobResponse bulkSendJobId(String bulkSendJobId) { + public BulkSendJobResponse bulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; return this; } @@ -91,12 +95,12 @@ public String getBulkSendJobId() { @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBulkSendJobId(String bulkSendJobId) { + public void setBulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; } - public BulkSendJobResponse total(Integer total) { + public BulkSendJobResponse total(@jakarta.annotation.Nullable Integer total) { this.total = total; return this; } @@ -116,12 +120,12 @@ public Integer getTotal() { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(Integer total) { + public void setTotal(@jakarta.annotation.Nullable Integer total) { this.total = total; } - public BulkSendJobResponse isCreator(Boolean isCreator) { + public BulkSendJobResponse isCreator(@jakarta.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; return this; } @@ -141,12 +145,12 @@ public Boolean getIsCreator() { @JsonProperty(JSON_PROPERTY_IS_CREATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsCreator(Boolean isCreator) { + public void setIsCreator(@jakarta.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; } - public BulkSendJobResponse createdAt(Integer createdAt) { + public BulkSendJobResponse createdAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; return this; } @@ -166,7 +170,7 @@ public Integer getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Integer createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java index b3be77254..9f7095f39 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java @@ -40,13 +40,15 @@ BulkSendJobSendResponse.JSON_PROPERTY_BULK_SEND_JOB, BulkSendJobSendResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class BulkSendJobSendResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB = "bulk_send_job"; + @jakarta.annotation.Nonnull private BulkSendJobResponse bulkSendJob; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public BulkSendJobSendResponse() { @@ -67,7 +69,7 @@ static public BulkSendJobSendResponse init(HashMap data) throws Exception { ); } - public BulkSendJobSendResponse bulkSendJob(BulkSendJobResponse bulkSendJob) { + public BulkSendJobSendResponse bulkSendJob(@jakarta.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; return this; } @@ -87,12 +89,12 @@ public BulkSendJobResponse getBulkSendJob() { @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBulkSendJob(BulkSendJobResponse bulkSendJob) { + public void setBulkSendJob(@jakarta.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; } - public BulkSendJobSendResponse warnings(List warnings) { + public BulkSendJobSendResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java index 103eb03ec..4ae9bf2ce 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java @@ -48,37 +48,47 @@ EmbeddedEditUrlRequest.JSON_PROPERTY_SHOW_PROGRESS_STEPPER, EmbeddedEditUrlRequest.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedEditUrlRequest { public static final String JSON_PROPERTY_ALLOW_EDIT_CCS = "allow_edit_ccs"; + @jakarta.annotation.Nullable private Boolean allowEditCcs = false; public static final String JSON_PROPERTY_CC_ROLES = "cc_roles"; + @jakarta.annotation.Nullable private List ccRoles = null; public static final String JSON_PROPERTY_EDITOR_OPTIONS = "editor_options"; + @jakarta.annotation.Nullable private SubEditorOptions editorOptions; public static final String JSON_PROPERTY_FORCE_SIGNER_ROLES = "force_signer_roles"; + @jakarta.annotation.Nullable private Boolean forceSignerRoles = false; public static final String JSON_PROPERTY_FORCE_SUBJECT_MESSAGE = "force_subject_message"; + @jakarta.annotation.Nullable private Boolean forceSubjectMessage = false; public static final String JSON_PROPERTY_MERGE_FIELDS = "merge_fields"; + @jakarta.annotation.Nullable private List mergeFields = null; public static final String JSON_PROPERTY_PREVIEW_ONLY = "preview_only"; + @jakarta.annotation.Nullable private Boolean previewOnly = false; public static final String JSON_PROPERTY_SHOW_PREVIEW = "show_preview"; + @jakarta.annotation.Nullable private Boolean showPreview = false; public static final String JSON_PROPERTY_SHOW_PROGRESS_STEPPER = "show_progress_stepper"; + @jakarta.annotation.Nullable private Boolean showProgressStepper = true; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public EmbeddedEditUrlRequest() { @@ -99,7 +109,7 @@ static public EmbeddedEditUrlRequest init(HashMap data) throws Exception { ); } - public EmbeddedEditUrlRequest allowEditCcs(Boolean allowEditCcs) { + public EmbeddedEditUrlRequest allowEditCcs(@jakarta.annotation.Nullable Boolean allowEditCcs) { this.allowEditCcs = allowEditCcs; return this; } @@ -119,12 +129,12 @@ public Boolean getAllowEditCcs() { @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowEditCcs(Boolean allowEditCcs) { + public void setAllowEditCcs(@jakarta.annotation.Nullable Boolean allowEditCcs) { this.allowEditCcs = allowEditCcs; } - public EmbeddedEditUrlRequest ccRoles(List ccRoles) { + public EmbeddedEditUrlRequest ccRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; return this; } @@ -152,12 +162,12 @@ public List getCcRoles() { @JsonProperty(JSON_PROPERTY_CC_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcRoles(List ccRoles) { + public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; } - public EmbeddedEditUrlRequest editorOptions(SubEditorOptions editorOptions) { + public EmbeddedEditUrlRequest editorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; return this; } @@ -177,12 +187,12 @@ public SubEditorOptions getEditorOptions() { @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditorOptions(SubEditorOptions editorOptions) { + public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; } - public EmbeddedEditUrlRequest forceSignerRoles(Boolean forceSignerRoles) { + public EmbeddedEditUrlRequest forceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; return this; } @@ -202,12 +212,12 @@ public Boolean getForceSignerRoles() { @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSignerRoles(Boolean forceSignerRoles) { + public void setForceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; } - public EmbeddedEditUrlRequest forceSubjectMessage(Boolean forceSubjectMessage) { + public EmbeddedEditUrlRequest forceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; return this; } @@ -227,12 +237,12 @@ public Boolean getForceSubjectMessage() { @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSubjectMessage(Boolean forceSubjectMessage) { + public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; } - public EmbeddedEditUrlRequest mergeFields(List mergeFields) { + public EmbeddedEditUrlRequest mergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; return this; } @@ -260,12 +270,12 @@ public List getMergeFields() { @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMergeFields(List mergeFields) { + public void setMergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; } - public EmbeddedEditUrlRequest previewOnly(Boolean previewOnly) { + public EmbeddedEditUrlRequest previewOnly(@jakarta.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; return this; } @@ -285,12 +295,12 @@ public Boolean getPreviewOnly() { @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreviewOnly(Boolean previewOnly) { + public void setPreviewOnly(@jakarta.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; } - public EmbeddedEditUrlRequest showPreview(Boolean showPreview) { + public EmbeddedEditUrlRequest showPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; return this; } @@ -310,12 +320,12 @@ public Boolean getShowPreview() { @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowPreview(Boolean showPreview) { + public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; } - public EmbeddedEditUrlRequest showProgressStepper(Boolean showProgressStepper) { + public EmbeddedEditUrlRequest showProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; return this; } @@ -335,12 +345,12 @@ public Boolean getShowProgressStepper() { @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowProgressStepper(Boolean showProgressStepper) { + public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; } - public EmbeddedEditUrlRequest testMode(Boolean testMode) { + public EmbeddedEditUrlRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -360,7 +370,7 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java index cf7faf9d5..11c566adc 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java @@ -40,13 +40,15 @@ EmbeddedEditUrlResponse.JSON_PROPERTY_EMBEDDED, EmbeddedEditUrlResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedEditUrlResponse { public static final String JSON_PROPERTY_EMBEDDED = "embedded"; + @jakarta.annotation.Nonnull private EmbeddedEditUrlResponseEmbedded embedded; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public EmbeddedEditUrlResponse() { @@ -67,7 +69,7 @@ static public EmbeddedEditUrlResponse init(HashMap data) throws Exception { ); } - public EmbeddedEditUrlResponse embedded(EmbeddedEditUrlResponseEmbedded embedded) { + public EmbeddedEditUrlResponse embedded(@jakarta.annotation.Nonnull EmbeddedEditUrlResponseEmbedded embedded) { this.embedded = embedded; return this; } @@ -87,12 +89,12 @@ public EmbeddedEditUrlResponseEmbedded getEmbedded() { @JsonProperty(JSON_PROPERTY_EMBEDDED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmbedded(EmbeddedEditUrlResponseEmbedded embedded) { + public void setEmbedded(@jakarta.annotation.Nonnull EmbeddedEditUrlResponseEmbedded embedded) { this.embedded = embedded; } - public EmbeddedEditUrlResponse warnings(List warnings) { + public EmbeddedEditUrlResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java index c990405ef..0518d5ee4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java @@ -36,13 +36,15 @@ EmbeddedEditUrlResponseEmbedded.JSON_PROPERTY_EDIT_URL, EmbeddedEditUrlResponseEmbedded.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedEditUrlResponseEmbedded { public static final String JSON_PROPERTY_EDIT_URL = "edit_url"; + @jakarta.annotation.Nullable private String editUrl; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public EmbeddedEditUrlResponseEmbedded() { @@ -63,7 +65,7 @@ static public EmbeddedEditUrlResponseEmbedded init(HashMap data) throws Exceptio ); } - public EmbeddedEditUrlResponseEmbedded editUrl(String editUrl) { + public EmbeddedEditUrlResponseEmbedded editUrl(@jakarta.annotation.Nullable String editUrl) { this.editUrl = editUrl; return this; } @@ -83,12 +85,12 @@ public String getEditUrl() { @JsonProperty(JSON_PROPERTY_EDIT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditUrl(String editUrl) { + public void setEditUrl(@jakarta.annotation.Nullable String editUrl) { this.editUrl = editUrl; } - public EmbeddedEditUrlResponseEmbedded expiresAt(Integer expiresAt) { + public EmbeddedEditUrlResponseEmbedded expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -108,7 +110,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java index 3455fe0cb..0ac9ccda5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java @@ -40,13 +40,15 @@ EmbeddedSignUrlResponse.JSON_PROPERTY_EMBEDDED, EmbeddedSignUrlResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedSignUrlResponse { public static final String JSON_PROPERTY_EMBEDDED = "embedded"; + @jakarta.annotation.Nonnull private EmbeddedSignUrlResponseEmbedded embedded; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public EmbeddedSignUrlResponse() { @@ -67,7 +69,7 @@ static public EmbeddedSignUrlResponse init(HashMap data) throws Exception { ); } - public EmbeddedSignUrlResponse embedded(EmbeddedSignUrlResponseEmbedded embedded) { + public EmbeddedSignUrlResponse embedded(@jakarta.annotation.Nonnull EmbeddedSignUrlResponseEmbedded embedded) { this.embedded = embedded; return this; } @@ -87,12 +89,12 @@ public EmbeddedSignUrlResponseEmbedded getEmbedded() { @JsonProperty(JSON_PROPERTY_EMBEDDED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmbedded(EmbeddedSignUrlResponseEmbedded embedded) { + public void setEmbedded(@jakarta.annotation.Nonnull EmbeddedSignUrlResponseEmbedded embedded) { this.embedded = embedded; } - public EmbeddedSignUrlResponse warnings(List warnings) { + public EmbeddedSignUrlResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java index f88dd631f..c06bd3832 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java @@ -36,13 +36,15 @@ EmbeddedSignUrlResponseEmbedded.JSON_PROPERTY_SIGN_URL, EmbeddedSignUrlResponseEmbedded.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EmbeddedSignUrlResponseEmbedded { public static final String JSON_PROPERTY_SIGN_URL = "sign_url"; + @jakarta.annotation.Nullable private String signUrl; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public EmbeddedSignUrlResponseEmbedded() { @@ -63,7 +65,7 @@ static public EmbeddedSignUrlResponseEmbedded init(HashMap data) throws Exceptio ); } - public EmbeddedSignUrlResponseEmbedded signUrl(String signUrl) { + public EmbeddedSignUrlResponseEmbedded signUrl(@jakarta.annotation.Nullable String signUrl) { this.signUrl = signUrl; return this; } @@ -83,12 +85,12 @@ public String getSignUrl() { @JsonProperty(JSON_PROPERTY_SIGN_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignUrl(String signUrl) { + public void setSignUrl(@jakarta.annotation.Nullable String signUrl) { this.signUrl = signUrl; } - public EmbeddedSignUrlResponseEmbedded expiresAt(Integer expiresAt) { + public EmbeddedSignUrlResponseEmbedded expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -108,7 +110,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponse.java index ea26e455d..d905f6752 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponse.java @@ -36,10 +36,11 @@ @JsonPropertyOrder({ ErrorResponse.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ErrorResponse { public static final String JSON_PROPERTY_ERROR = "error"; + @jakarta.annotation.Nonnull private ErrorResponseError error; public ErrorResponse() { @@ -60,7 +61,7 @@ static public ErrorResponse init(HashMap data) throws Exception { ); } - public ErrorResponse error(ErrorResponseError error) { + public ErrorResponse error(@jakarta.annotation.Nonnull ErrorResponseError error) { this.error = error; return this; } @@ -80,7 +81,7 @@ public ErrorResponseError getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setError(ErrorResponseError error) { + public void setError(@jakarta.annotation.Nonnull ErrorResponseError error) { this.error = error; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponseError.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponseError.java index 2c7277014..af87ec4aa 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponseError.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ErrorResponseError.java @@ -37,16 +37,19 @@ ErrorResponseError.JSON_PROPERTY_ERROR_NAME, ErrorResponseError.JSON_PROPERTY_ERROR_PATH }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ErrorResponseError { public static final String JSON_PROPERTY_ERROR_MSG = "error_msg"; + @jakarta.annotation.Nonnull private String errorMsg; public static final String JSON_PROPERTY_ERROR_NAME = "error_name"; + @jakarta.annotation.Nonnull private String errorName; public static final String JSON_PROPERTY_ERROR_PATH = "error_path"; + @jakarta.annotation.Nullable private String errorPath; public ErrorResponseError() { @@ -67,7 +70,7 @@ static public ErrorResponseError init(HashMap data) throws Exception { ); } - public ErrorResponseError errorMsg(String errorMsg) { + public ErrorResponseError errorMsg(@jakarta.annotation.Nonnull String errorMsg) { this.errorMsg = errorMsg; return this; } @@ -87,12 +90,12 @@ public String getErrorMsg() { @JsonProperty(JSON_PROPERTY_ERROR_MSG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorMsg(String errorMsg) { + public void setErrorMsg(@jakarta.annotation.Nonnull String errorMsg) { this.errorMsg = errorMsg; } - public ErrorResponseError errorName(String errorName) { + public ErrorResponseError errorName(@jakarta.annotation.Nonnull String errorName) { this.errorName = errorName; return this; } @@ -112,12 +115,12 @@ public String getErrorName() { @JsonProperty(JSON_PROPERTY_ERROR_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setErrorName(String errorName) { + public void setErrorName(@jakarta.annotation.Nonnull String errorName) { this.errorName = errorName; } - public ErrorResponseError errorPath(String errorPath) { + public ErrorResponseError errorPath(@jakarta.annotation.Nullable String errorPath) { this.errorPath = errorPath; return this; } @@ -137,7 +140,7 @@ public String getErrorPath() { @JsonProperty(JSON_PROPERTY_ERROR_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setErrorPath(String errorPath) { + public void setErrorPath(@jakarta.annotation.Nullable String errorPath) { this.errorPath = errorPath; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java index 0307d55a3..81eb8d0e3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java @@ -42,19 +42,23 @@ EventCallbackRequest.JSON_PROPERTY_SIGNATURE_REQUEST, EventCallbackRequest.JSON_PROPERTY_TEMPLATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EventCallbackRequest { public static final String JSON_PROPERTY_EVENT = "event"; + @jakarta.annotation.Nonnull private EventCallbackRequestEvent event; public static final String JSON_PROPERTY_ACCOUNT = "account"; + @jakarta.annotation.Nullable private AccountResponse account; public static final String JSON_PROPERTY_SIGNATURE_REQUEST = "signature_request"; + @jakarta.annotation.Nullable private SignatureRequestResponse signatureRequest; public static final String JSON_PROPERTY_TEMPLATE = "template"; + @jakarta.annotation.Nullable private TemplateResponse template; public EventCallbackRequest() { @@ -75,7 +79,7 @@ static public EventCallbackRequest init(HashMap data) throws Exception { ); } - public EventCallbackRequest event(EventCallbackRequestEvent event) { + public EventCallbackRequest event(@jakarta.annotation.Nonnull EventCallbackRequestEvent event) { this.event = event; return this; } @@ -95,12 +99,12 @@ public EventCallbackRequestEvent getEvent() { @JsonProperty(JSON_PROPERTY_EVENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEvent(EventCallbackRequestEvent event) { + public void setEvent(@jakarta.annotation.Nonnull EventCallbackRequestEvent event) { this.event = event; } - public EventCallbackRequest account(AccountResponse account) { + public EventCallbackRequest account(@jakarta.annotation.Nullable AccountResponse account) { this.account = account; return this; } @@ -120,12 +124,12 @@ public AccountResponse getAccount() { @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccount(AccountResponse account) { + public void setAccount(@jakarta.annotation.Nullable AccountResponse account) { this.account = account; } - public EventCallbackRequest signatureRequest(SignatureRequestResponse signatureRequest) { + public EventCallbackRequest signatureRequest(@jakarta.annotation.Nullable SignatureRequestResponse signatureRequest) { this.signatureRequest = signatureRequest; return this; } @@ -145,12 +149,12 @@ public SignatureRequestResponse getSignatureRequest() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatureRequest(SignatureRequestResponse signatureRequest) { + public void setSignatureRequest(@jakarta.annotation.Nullable SignatureRequestResponse signatureRequest) { this.signatureRequest = signatureRequest; } - public EventCallbackRequest template(TemplateResponse template) { + public EventCallbackRequest template(@jakarta.annotation.Nullable TemplateResponse template) { this.template = template; return this; } @@ -170,7 +174,7 @@ public TemplateResponse getTemplate() { @JsonProperty(JSON_PROPERTY_TEMPLATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplate(TemplateResponse template) { + public void setTemplate(@jakarta.annotation.Nullable TemplateResponse template) { this.template = template; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java index 583482a11..600430445 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java @@ -39,61 +39,62 @@ EventCallbackRequestEvent.JSON_PROPERTY_EVENT_HASH, EventCallbackRequestEvent.JSON_PROPERTY_EVENT_METADATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EventCallbackRequestEvent { public static final String JSON_PROPERTY_EVENT_TIME = "event_time"; + @jakarta.annotation.Nonnull private String eventTime; /** * Type of callback event that was triggered. */ public enum EventTypeEnum { - ACCOUNT_CONFIRMED("account_confirmed"), + ACCOUNT_CONFIRMED(String.valueOf("account_confirmed")), - UNKNOWN_ERROR("unknown_error"), + UNKNOWN_ERROR(String.valueOf("unknown_error")), - FILE_ERROR("file_error"), + FILE_ERROR(String.valueOf("file_error")), - SIGN_URL_INVALID("sign_url_invalid"), + SIGN_URL_INVALID(String.valueOf("sign_url_invalid")), - SIGNATURE_REQUEST_VIEWED("signature_request_viewed"), + SIGNATURE_REQUEST_VIEWED(String.valueOf("signature_request_viewed")), - SIGNATURE_REQUEST_SIGNED("signature_request_signed"), + SIGNATURE_REQUEST_SIGNED(String.valueOf("signature_request_signed")), - SIGNATURE_REQUEST_SENT("signature_request_sent"), + SIGNATURE_REQUEST_SENT(String.valueOf("signature_request_sent")), - SIGNATURE_REQUEST_ALL_SIGNED("signature_request_all_signed"), + SIGNATURE_REQUEST_ALL_SIGNED(String.valueOf("signature_request_all_signed")), - SIGNATURE_REQUEST_EMAIL_BOUNCE("signature_request_email_bounce"), + SIGNATURE_REQUEST_EMAIL_BOUNCE(String.valueOf("signature_request_email_bounce")), - SIGNATURE_REQUEST_REMIND("signature_request_remind"), + SIGNATURE_REQUEST_REMIND(String.valueOf("signature_request_remind")), - SIGNATURE_REQUEST_INCOMPLETE_QES("signature_request_incomplete_qes"), + SIGNATURE_REQUEST_INCOMPLETE_QES(String.valueOf("signature_request_incomplete_qes")), - SIGNATURE_REQUEST_DESTROYED("signature_request_destroyed"), + SIGNATURE_REQUEST_DESTROYED(String.valueOf("signature_request_destroyed")), - SIGNATURE_REQUEST_CANCELED("signature_request_canceled"), + SIGNATURE_REQUEST_CANCELED(String.valueOf("signature_request_canceled")), - SIGNATURE_REQUEST_DOWNLOADABLE("signature_request_downloadable"), + SIGNATURE_REQUEST_DOWNLOADABLE(String.valueOf("signature_request_downloadable")), - SIGNATURE_REQUEST_DECLINED("signature_request_declined"), + SIGNATURE_REQUEST_DECLINED(String.valueOf("signature_request_declined")), - SIGNATURE_REQUEST_REASSIGNED("signature_request_reassigned"), + SIGNATURE_REQUEST_REASSIGNED(String.valueOf("signature_request_reassigned")), - SIGNATURE_REQUEST_INVALID("signature_request_invalid"), + SIGNATURE_REQUEST_INVALID(String.valueOf("signature_request_invalid")), - SIGNATURE_REQUEST_PREPARED("signature_request_prepared"), + SIGNATURE_REQUEST_PREPARED(String.valueOf("signature_request_prepared")), - SIGNATURE_REQUEST_EXPIRED("signature_request_expired"), + SIGNATURE_REQUEST_EXPIRED(String.valueOf("signature_request_expired")), - TEMPLATE_CREATED("template_created"), + TEMPLATE_CREATED(String.valueOf("template_created")), - TEMPLATE_ERROR("template_error"), + TEMPLATE_ERROR(String.valueOf("template_error")), - CALLBACK_TEST("callback_test"), + CALLBACK_TEST(String.valueOf("callback_test")), - SIGNATURE_REQUEST_SIGNER_REMOVED("signature_request_signer_removed"); + SIGNATURE_REQUEST_SIGNER_REMOVED(String.valueOf("signature_request_signer_removed")); private String value; @@ -123,12 +124,15 @@ public static EventTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_EVENT_TYPE = "event_type"; + @jakarta.annotation.Nonnull private EventTypeEnum eventType; public static final String JSON_PROPERTY_EVENT_HASH = "event_hash"; + @jakarta.annotation.Nonnull private String eventHash; public static final String JSON_PROPERTY_EVENT_METADATA = "event_metadata"; + @jakarta.annotation.Nullable private EventCallbackRequestEventMetadata eventMetadata; public EventCallbackRequestEvent() { @@ -149,7 +153,7 @@ static public EventCallbackRequestEvent init(HashMap data) throws Exception { ); } - public EventCallbackRequestEvent eventTime(String eventTime) { + public EventCallbackRequestEvent eventTime(@jakarta.annotation.Nonnull String eventTime) { this.eventTime = eventTime; return this; } @@ -169,12 +173,12 @@ public String getEventTime() { @JsonProperty(JSON_PROPERTY_EVENT_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventTime(String eventTime) { + public void setEventTime(@jakarta.annotation.Nonnull String eventTime) { this.eventTime = eventTime; } - public EventCallbackRequestEvent eventType(EventTypeEnum eventType) { + public EventCallbackRequestEvent eventType(@jakarta.annotation.Nonnull EventTypeEnum eventType) { this.eventType = eventType; return this; } @@ -194,12 +198,12 @@ public EventTypeEnum getEventType() { @JsonProperty(JSON_PROPERTY_EVENT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventType(EventTypeEnum eventType) { + public void setEventType(@jakarta.annotation.Nonnull EventTypeEnum eventType) { this.eventType = eventType; } - public EventCallbackRequestEvent eventHash(String eventHash) { + public EventCallbackRequestEvent eventHash(@jakarta.annotation.Nonnull String eventHash) { this.eventHash = eventHash; return this; } @@ -219,12 +223,12 @@ public String getEventHash() { @JsonProperty(JSON_PROPERTY_EVENT_HASH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEventHash(String eventHash) { + public void setEventHash(@jakarta.annotation.Nonnull String eventHash) { this.eventHash = eventHash; } - public EventCallbackRequestEvent eventMetadata(EventCallbackRequestEventMetadata eventMetadata) { + public EventCallbackRequestEvent eventMetadata(@jakarta.annotation.Nullable EventCallbackRequestEventMetadata eventMetadata) { this.eventMetadata = eventMetadata; return this; } @@ -244,7 +248,7 @@ public EventCallbackRequestEventMetadata getEventMetadata() { @JsonProperty(JSON_PROPERTY_EVENT_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEventMetadata(EventCallbackRequestEventMetadata eventMetadata) { + public void setEventMetadata(@jakarta.annotation.Nullable EventCallbackRequestEventMetadata eventMetadata) { this.eventMetadata = eventMetadata; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java index b832ff192..70d002e3f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java @@ -38,19 +38,23 @@ EventCallbackRequestEventMetadata.JSON_PROPERTY_REPORTED_FOR_APP_ID, EventCallbackRequestEventMetadata.JSON_PROPERTY_EVENT_MESSAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class EventCallbackRequestEventMetadata { public static final String JSON_PROPERTY_RELATED_SIGNATURE_ID = "related_signature_id"; + @jakarta.annotation.Nullable private String relatedSignatureId; public static final String JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID = "reported_for_account_id"; + @jakarta.annotation.Nullable private String reportedForAccountId; public static final String JSON_PROPERTY_REPORTED_FOR_APP_ID = "reported_for_app_id"; + @jakarta.annotation.Nullable private String reportedForAppId; public static final String JSON_PROPERTY_EVENT_MESSAGE = "event_message"; + @jakarta.annotation.Nullable private String eventMessage; public EventCallbackRequestEventMetadata() { @@ -71,7 +75,7 @@ static public EventCallbackRequestEventMetadata init(HashMap data) throws Except ); } - public EventCallbackRequestEventMetadata relatedSignatureId(String relatedSignatureId) { + public EventCallbackRequestEventMetadata relatedSignatureId(@jakarta.annotation.Nullable String relatedSignatureId) { this.relatedSignatureId = relatedSignatureId; return this; } @@ -91,12 +95,12 @@ public String getRelatedSignatureId() { @JsonProperty(JSON_PROPERTY_RELATED_SIGNATURE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRelatedSignatureId(String relatedSignatureId) { + public void setRelatedSignatureId(@jakarta.annotation.Nullable String relatedSignatureId) { this.relatedSignatureId = relatedSignatureId; } - public EventCallbackRequestEventMetadata reportedForAccountId(String reportedForAccountId) { + public EventCallbackRequestEventMetadata reportedForAccountId(@jakarta.annotation.Nullable String reportedForAccountId) { this.reportedForAccountId = reportedForAccountId; return this; } @@ -116,12 +120,12 @@ public String getReportedForAccountId() { @JsonProperty(JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReportedForAccountId(String reportedForAccountId) { + public void setReportedForAccountId(@jakarta.annotation.Nullable String reportedForAccountId) { this.reportedForAccountId = reportedForAccountId; } - public EventCallbackRequestEventMetadata reportedForAppId(String reportedForAppId) { + public EventCallbackRequestEventMetadata reportedForAppId(@jakarta.annotation.Nullable String reportedForAppId) { this.reportedForAppId = reportedForAppId; return this; } @@ -141,12 +145,12 @@ public String getReportedForAppId() { @JsonProperty(JSON_PROPERTY_REPORTED_FOR_APP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReportedForAppId(String reportedForAppId) { + public void setReportedForAppId(@jakarta.annotation.Nullable String reportedForAppId) { this.reportedForAppId = reportedForAppId; } - public EventCallbackRequestEventMetadata eventMessage(String eventMessage) { + public EventCallbackRequestEventMetadata eventMessage(@jakarta.annotation.Nullable String eventMessage) { this.eventMessage = eventMessage; return this; } @@ -166,7 +170,7 @@ public String getEventMessage() { @JsonProperty(JSON_PROPERTY_EVENT_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEventMessage(String eventMessage) { + public void setEventMessage(@jakarta.annotation.Nullable String eventMessage) { this.eventMessage = eventMessage; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxGetResponse.java index 7b08c8e76..958f0880e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxGetResponse.java @@ -40,13 +40,15 @@ FaxGetResponse.JSON_PROPERTY_FAX, FaxGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxGetResponse { public static final String JSON_PROPERTY_FAX = "fax"; + @jakarta.annotation.Nonnull private FaxResponse fax; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public FaxGetResponse() { @@ -67,7 +69,7 @@ static public FaxGetResponse init(HashMap data) throws Exception { ); } - public FaxGetResponse fax(FaxResponse fax) { + public FaxGetResponse fax(@jakarta.annotation.Nonnull FaxResponse fax) { this.fax = fax; return this; } @@ -87,12 +89,12 @@ public FaxResponse getFax() { @JsonProperty(JSON_PROPERTY_FAX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFax(FaxResponse fax) { + public void setFax(@jakarta.annotation.Nonnull FaxResponse fax) { this.fax = fax; } - public FaxGetResponse warnings(List warnings) { + public FaxGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java index a4d24fbea..779e87050 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java @@ -37,16 +37,19 @@ FaxLineAddUserRequest.JSON_PROPERTY_ACCOUNT_ID, FaxLineAddUserRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineAddUserRequest { public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private String number; public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public FaxLineAddUserRequest() { @@ -67,7 +70,7 @@ static public FaxLineAddUserRequest init(HashMap data) throws Exception { ); } - public FaxLineAddUserRequest number(String number) { + public FaxLineAddUserRequest number(@jakarta.annotation.Nonnull String number) { this.number = number; return this; } @@ -87,12 +90,12 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(String number) { + public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; } - public FaxLineAddUserRequest accountId(String accountId) { + public FaxLineAddUserRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -112,12 +115,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public FaxLineAddUserRequest emailAddress(String emailAddress) { + public FaxLineAddUserRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -137,7 +140,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java index b4b2bbb03..fec49f879 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java @@ -37,10 +37,11 @@ @JsonPropertyOrder({ FaxLineAreaCodeGetResponse.JSON_PROPERTY_AREA_CODES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineAreaCodeGetResponse { public static final String JSON_PROPERTY_AREA_CODES = "area_codes"; + @jakarta.annotation.Nonnull private List areaCodes = new ArrayList<>(); public FaxLineAreaCodeGetResponse() { @@ -61,7 +62,7 @@ static public FaxLineAreaCodeGetResponse init(HashMap data) throws Exception { ); } - public FaxLineAreaCodeGetResponse areaCodes(List areaCodes) { + public FaxLineAreaCodeGetResponse areaCodes(@jakarta.annotation.Nonnull List areaCodes) { this.areaCodes = areaCodes; return this; } @@ -89,7 +90,7 @@ public List getAreaCodes() { @JsonProperty(JSON_PROPERTY_AREA_CODES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAreaCodes(List areaCodes) { + public void setAreaCodes(@jakarta.annotation.Nonnull List areaCodes) { this.areaCodes = areaCodes; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java index c05bde435..cdf527027 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java @@ -38,21 +38,22 @@ FaxLineCreateRequest.JSON_PROPERTY_CITY, FaxLineCreateRequest.JSON_PROPERTY_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineCreateRequest { public static final String JSON_PROPERTY_AREA_CODE = "area_code"; + @jakarta.annotation.Nonnull private Integer areaCode; /** * Country of the area code */ public enum CountryEnum { - CA("CA"), + CA(String.valueOf("CA")), - US("US"), + US(String.valueOf("US")), - UK("UK"); + UK(String.valueOf("UK")); private String value; @@ -82,12 +83,15 @@ public static CountryEnum fromValue(String value) { } public static final String JSON_PROPERTY_COUNTRY = "country"; + @jakarta.annotation.Nonnull private CountryEnum country; public static final String JSON_PROPERTY_CITY = "city"; + @jakarta.annotation.Nullable private String city; public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public FaxLineCreateRequest() { @@ -108,7 +112,7 @@ static public FaxLineCreateRequest init(HashMap data) throws Exception { ); } - public FaxLineCreateRequest areaCode(Integer areaCode) { + public FaxLineCreateRequest areaCode(@jakarta.annotation.Nonnull Integer areaCode) { this.areaCode = areaCode; return this; } @@ -128,12 +132,12 @@ public Integer getAreaCode() { @JsonProperty(JSON_PROPERTY_AREA_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAreaCode(Integer areaCode) { + public void setAreaCode(@jakarta.annotation.Nonnull Integer areaCode) { this.areaCode = areaCode; } - public FaxLineCreateRequest country(CountryEnum country) { + public FaxLineCreateRequest country(@jakarta.annotation.Nonnull CountryEnum country) { this.country = country; return this; } @@ -153,12 +157,12 @@ public CountryEnum getCountry() { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCountry(CountryEnum country) { + public void setCountry(@jakarta.annotation.Nonnull CountryEnum country) { this.country = country; } - public FaxLineCreateRequest city(String city) { + public FaxLineCreateRequest city(@jakarta.annotation.Nullable String city) { this.city = city; return this; } @@ -178,12 +182,12 @@ public String getCity() { @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCity(String city) { + public void setCity(@jakarta.annotation.Nullable String city) { this.city = city; } - public FaxLineCreateRequest accountId(String accountId) { + public FaxLineCreateRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -203,7 +207,7 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java index fb2e7beb5..21c1c35d0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ FaxLineDeleteRequest.JSON_PROPERTY_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineDeleteRequest { public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private String number; public FaxLineDeleteRequest() { @@ -59,7 +60,7 @@ static public FaxLineDeleteRequest init(HashMap data) throws Exception { ); } - public FaxLineDeleteRequest number(String number) { + public FaxLineDeleteRequest number(@jakarta.annotation.Nonnull String number) { this.number = number; return this; } @@ -79,7 +80,7 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(String number) { + public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java index 33163a28c..5454fa3b3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java @@ -42,16 +42,19 @@ FaxLineListResponse.JSON_PROPERTY_FAX_LINES, FaxLineListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineListResponse { public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_FAX_LINES = "fax_lines"; + @jakarta.annotation.Nonnull private List faxLines = new ArrayList<>(); public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private WarningResponse warnings; public FaxLineListResponse() { @@ -72,7 +75,7 @@ static public FaxLineListResponse init(HashMap data) throws Exception { ); } - public FaxLineListResponse listInfo(ListInfoResponse listInfo) { + public FaxLineListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -92,12 +95,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public FaxLineListResponse faxLines(List faxLines) { + public FaxLineListResponse faxLines(@jakarta.annotation.Nonnull List faxLines) { this.faxLines = faxLines; return this; } @@ -125,12 +128,12 @@ public List getFaxLines() { @JsonProperty(JSON_PROPERTY_FAX_LINES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFaxLines(List faxLines) { + public void setFaxLines(@jakarta.annotation.Nonnull List faxLines) { this.faxLines = faxLines; } - public FaxLineListResponse warnings(WarningResponse warnings) { + public FaxLineListResponse warnings(@jakarta.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; return this; } @@ -150,7 +153,7 @@ public WarningResponse getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(WarningResponse warnings) { + public void setWarnings(@jakarta.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java index 8467a4004..6ab55bbde 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java @@ -37,16 +37,19 @@ FaxLineRemoveUserRequest.JSON_PROPERTY_ACCOUNT_ID, FaxLineRemoveUserRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineRemoveUserRequest { public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nonnull private String number; public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public FaxLineRemoveUserRequest() { @@ -67,7 +70,7 @@ static public FaxLineRemoveUserRequest init(HashMap data) throws Exception { ); } - public FaxLineRemoveUserRequest number(String number) { + public FaxLineRemoveUserRequest number(@jakarta.annotation.Nonnull String number) { this.number = number; return this; } @@ -87,12 +90,12 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNumber(String number) { + public void setNumber(@jakarta.annotation.Nonnull String number) { this.number = number; } - public FaxLineRemoveUserRequest accountId(String accountId) { + public FaxLineRemoveUserRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -112,12 +115,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public FaxLineRemoveUserRequest emailAddress(String emailAddress) { + public FaxLineRemoveUserRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -137,7 +140,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponse.java index 8fae8caf7..5430836d3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponse.java @@ -38,13 +38,15 @@ FaxLineResponse.JSON_PROPERTY_FAX_LINE, FaxLineResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineResponse { public static final String JSON_PROPERTY_FAX_LINE = "fax_line"; + @jakarta.annotation.Nonnull private FaxLineResponseFaxLine faxLine; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private WarningResponse warnings; public FaxLineResponse() { @@ -65,7 +67,7 @@ static public FaxLineResponse init(HashMap data) throws Exception { ); } - public FaxLineResponse faxLine(FaxLineResponseFaxLine faxLine) { + public FaxLineResponse faxLine(@jakarta.annotation.Nonnull FaxLineResponseFaxLine faxLine) { this.faxLine = faxLine; return this; } @@ -85,12 +87,12 @@ public FaxLineResponseFaxLine getFaxLine() { @JsonProperty(JSON_PROPERTY_FAX_LINE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFaxLine(FaxLineResponseFaxLine faxLine) { + public void setFaxLine(@jakarta.annotation.Nonnull FaxLineResponseFaxLine faxLine) { this.faxLine = faxLine; } - public FaxLineResponse warnings(WarningResponse warnings) { + public FaxLineResponse warnings(@jakarta.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; return this; } @@ -110,7 +112,7 @@ public WarningResponse getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(WarningResponse warnings) { + public void setWarnings(@jakarta.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java index 9b6b8c893..a5aa7c7d6 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java @@ -41,19 +41,23 @@ FaxLineResponseFaxLine.JSON_PROPERTY_UPDATED_AT, FaxLineResponseFaxLine.JSON_PROPERTY_ACCOUNTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxLineResponseFaxLine { public static final String JSON_PROPERTY_NUMBER = "number"; + @jakarta.annotation.Nullable private String number; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @jakarta.annotation.Nullable private Integer createdAt; public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + @jakarta.annotation.Nullable private Integer updatedAt; public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + @jakarta.annotation.Nullable private List accounts = null; public FaxLineResponseFaxLine() { @@ -74,7 +78,7 @@ static public FaxLineResponseFaxLine init(HashMap data) throws Exception { ); } - public FaxLineResponseFaxLine number(String number) { + public FaxLineResponseFaxLine number(@jakarta.annotation.Nullable String number) { this.number = number; return this; } @@ -94,12 +98,12 @@ public String getNumber() { @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumber(String number) { + public void setNumber(@jakarta.annotation.Nullable String number) { this.number = number; } - public FaxLineResponseFaxLine createdAt(Integer createdAt) { + public FaxLineResponseFaxLine createdAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; return this; } @@ -119,12 +123,12 @@ public Integer getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Integer createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; } - public FaxLineResponseFaxLine updatedAt(Integer updatedAt) { + public FaxLineResponseFaxLine updatedAt(@jakarta.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; return this; } @@ -144,12 +148,12 @@ public Integer getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(Integer updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; } - public FaxLineResponseFaxLine accounts(List accounts) { + public FaxLineResponseFaxLine accounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; return this; } @@ -177,7 +181,7 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccounts(List accounts) { + public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxListResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxListResponse.java index 13c0d94e3..b54590962 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxListResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxListResponse.java @@ -40,13 +40,15 @@ FaxListResponse.JSON_PROPERTY_FAXES, FaxListResponse.JSON_PROPERTY_LIST_INFO }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxListResponse { public static final String JSON_PROPERTY_FAXES = "faxes"; + @jakarta.annotation.Nonnull private List faxes = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public FaxListResponse() { @@ -67,7 +69,7 @@ static public FaxListResponse init(HashMap data) throws Exception { ); } - public FaxListResponse faxes(List faxes) { + public FaxListResponse faxes(@jakarta.annotation.Nonnull List faxes) { this.faxes = faxes; return this; } @@ -95,12 +97,12 @@ public List getFaxes() { @JsonProperty(JSON_PROPERTY_FAXES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFaxes(List faxes) { + public void setFaxes(@jakarta.annotation.Nonnull List faxes) { this.faxes = faxes; } - public FaxListResponse listInfo(ListInfoResponse listInfo) { + public FaxListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -120,7 +122,7 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java index 9d64e25b8..156435edc 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java @@ -50,40 +50,51 @@ FaxResponse.JSON_PROPERTY_MESSAGE, FaxResponse.JSON_PROPERTY_FINAL_COPY_URI }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxResponse { public static final String JSON_PROPERTY_FAX_ID = "fax_id"; + @jakarta.annotation.Nonnull private String faxId; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nonnull private String title; public static final String JSON_PROPERTY_ORIGINAL_TITLE = "original_title"; + @jakarta.annotation.Nonnull private String originalTitle; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nonnull private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @jakarta.annotation.Nonnull private Integer createdAt; public static final String JSON_PROPERTY_SENDER = "sender"; + @jakarta.annotation.Nonnull private String sender; public static final String JSON_PROPERTY_FILES_URL = "files_url"; + @jakarta.annotation.Nonnull private String filesUrl; public static final String JSON_PROPERTY_TRANSMISSIONS = "transmissions"; + @jakarta.annotation.Nonnull private List transmissions = new ArrayList<>(); public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_FINAL_COPY_URI = "final_copy_uri"; + @jakarta.annotation.Nullable private String finalCopyUri; public FaxResponse() { @@ -104,7 +115,7 @@ static public FaxResponse init(HashMap data) throws Exception { ); } - public FaxResponse faxId(String faxId) { + public FaxResponse faxId(@jakarta.annotation.Nonnull String faxId) { this.faxId = faxId; return this; } @@ -124,12 +135,12 @@ public String getFaxId() { @JsonProperty(JSON_PROPERTY_FAX_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFaxId(String faxId) { + public void setFaxId(@jakarta.annotation.Nonnull String faxId) { this.faxId = faxId; } - public FaxResponse title(String title) { + public FaxResponse title(@jakarta.annotation.Nonnull String title) { this.title = title; return this; } @@ -149,12 +160,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nonnull String title) { this.title = title; } - public FaxResponse originalTitle(String originalTitle) { + public FaxResponse originalTitle(@jakarta.annotation.Nonnull String originalTitle) { this.originalTitle = originalTitle; return this; } @@ -174,12 +185,12 @@ public String getOriginalTitle() { @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOriginalTitle(String originalTitle) { + public void setOriginalTitle(@jakarta.annotation.Nonnull String originalTitle) { this.originalTitle = originalTitle; } - public FaxResponse metadata(Map metadata) { + public FaxResponse metadata(@jakarta.annotation.Nonnull Map metadata) { this.metadata = metadata; return this; } @@ -207,12 +218,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nonnull Map metadata) { this.metadata = metadata; } - public FaxResponse createdAt(Integer createdAt) { + public FaxResponse createdAt(@jakarta.annotation.Nonnull Integer createdAt) { this.createdAt = createdAt; return this; } @@ -232,12 +243,12 @@ public Integer getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCreatedAt(Integer createdAt) { + public void setCreatedAt(@jakarta.annotation.Nonnull Integer createdAt) { this.createdAt = createdAt; } - public FaxResponse sender(String sender) { + public FaxResponse sender(@jakarta.annotation.Nonnull String sender) { this.sender = sender; return this; } @@ -257,12 +268,12 @@ public String getSender() { @JsonProperty(JSON_PROPERTY_SENDER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSender(String sender) { + public void setSender(@jakarta.annotation.Nonnull String sender) { this.sender = sender; } - public FaxResponse filesUrl(String filesUrl) { + public FaxResponse filesUrl(@jakarta.annotation.Nonnull String filesUrl) { this.filesUrl = filesUrl; return this; } @@ -282,12 +293,12 @@ public String getFilesUrl() { @JsonProperty(JSON_PROPERTY_FILES_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFilesUrl(String filesUrl) { + public void setFilesUrl(@jakarta.annotation.Nonnull String filesUrl) { this.filesUrl = filesUrl; } - public FaxResponse transmissions(List transmissions) { + public FaxResponse transmissions(@jakarta.annotation.Nonnull List transmissions) { this.transmissions = transmissions; return this; } @@ -315,12 +326,12 @@ public List getTransmissions() { @JsonProperty(JSON_PROPERTY_TRANSMISSIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTransmissions(List transmissions) { + public void setTransmissions(@jakarta.annotation.Nonnull List transmissions) { this.transmissions = transmissions; } - public FaxResponse subject(String subject) { + public FaxResponse subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -340,12 +351,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public FaxResponse message(String message) { + public FaxResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -365,12 +376,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public FaxResponse finalCopyUri(String finalCopyUri) { + public FaxResponse finalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; return this; } @@ -390,7 +401,7 @@ public String getFinalCopyUri() { @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinalCopyUri(String finalCopyUri) { + public void setFinalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java index d53176bb7..2b350da40 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java @@ -37,31 +37,32 @@ FaxResponseTransmission.JSON_PROPERTY_STATUS_CODE, FaxResponseTransmission.JSON_PROPERTY_SENT_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxResponseTransmission { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; + @jakarta.annotation.Nonnull private String recipient; /** * Fax Transmission Status Code */ public enum StatusCodeEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - TRANSMITTING("transmitting"), + TRANSMITTING(String.valueOf("transmitting")), - ERROR_COULD_NOT_FAX("error_could_not_fax"), + ERROR_COULD_NOT_FAX(String.valueOf("error_could_not_fax")), - ERROR_UNKNOWN("error_unknown"), + ERROR_UNKNOWN(String.valueOf("error_unknown")), - ERROR_BUSY("error_busy"), + ERROR_BUSY(String.valueOf("error_busy")), - ERROR_NO_ANSWER("error_no_answer"), + ERROR_NO_ANSWER(String.valueOf("error_no_answer")), - ERROR_DISCONNECTED("error_disconnected"), + ERROR_DISCONNECTED(String.valueOf("error_disconnected")), - ERROR_BAD_DESTINATION("error_bad_destination"); + ERROR_BAD_DESTINATION(String.valueOf("error_bad_destination")); private String value; @@ -91,9 +92,11 @@ public static StatusCodeEnum fromValue(String value) { } public static final String JSON_PROPERTY_STATUS_CODE = "status_code"; + @jakarta.annotation.Nonnull private StatusCodeEnum statusCode; public static final String JSON_PROPERTY_SENT_AT = "sent_at"; + @jakarta.annotation.Nullable private Integer sentAt; public FaxResponseTransmission() { @@ -114,7 +117,7 @@ static public FaxResponseTransmission init(HashMap data) throws Exception { ); } - public FaxResponseTransmission recipient(String recipient) { + public FaxResponseTransmission recipient(@jakarta.annotation.Nonnull String recipient) { this.recipient = recipient; return this; } @@ -134,12 +137,12 @@ public String getRecipient() { @JsonProperty(JSON_PROPERTY_RECIPIENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRecipient(String recipient) { + public void setRecipient(@jakarta.annotation.Nonnull String recipient) { this.recipient = recipient; } - public FaxResponseTransmission statusCode(StatusCodeEnum statusCode) { + public FaxResponseTransmission statusCode(@jakarta.annotation.Nonnull StatusCodeEnum statusCode) { this.statusCode = statusCode; return this; } @@ -159,12 +162,12 @@ public StatusCodeEnum getStatusCode() { @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStatusCode(StatusCodeEnum statusCode) { + public void setStatusCode(@jakarta.annotation.Nonnull StatusCodeEnum statusCode) { this.statusCode = statusCode; } - public FaxResponseTransmission sentAt(Integer sentAt) { + public FaxResponseTransmission sentAt(@jakarta.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; return this; } @@ -184,7 +187,7 @@ public Integer getSentAt() { @JsonProperty(JSON_PROPERTY_SENT_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSentAt(Integer sentAt) { + public void setSentAt(@jakarta.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxSendRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxSendRequest.java index 1830b7e87..2978a4dfd 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxSendRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxSendRequest.java @@ -46,34 +46,43 @@ FaxSendRequest.JSON_PROPERTY_COVER_PAGE_MESSAGE, FaxSendRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FaxSendRequest { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; + @jakarta.annotation.Nonnull private String recipient; public static final String JSON_PROPERTY_SENDER = "sender"; + @jakarta.annotation.Nullable private String sender; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_COVER_PAGE_TO = "cover_page_to"; + @jakarta.annotation.Nullable private String coverPageTo; public static final String JSON_PROPERTY_COVER_PAGE_FROM = "cover_page_from"; + @jakarta.annotation.Nullable private String coverPageFrom; public static final String JSON_PROPERTY_COVER_PAGE_MESSAGE = "cover_page_message"; + @jakarta.annotation.Nullable private String coverPageMessage; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public FaxSendRequest() { @@ -94,7 +103,7 @@ static public FaxSendRequest init(HashMap data) throws Exception { ); } - public FaxSendRequest recipient(String recipient) { + public FaxSendRequest recipient(@jakarta.annotation.Nonnull String recipient) { this.recipient = recipient; return this; } @@ -114,12 +123,12 @@ public String getRecipient() { @JsonProperty(JSON_PROPERTY_RECIPIENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRecipient(String recipient) { + public void setRecipient(@jakarta.annotation.Nonnull String recipient) { this.recipient = recipient; } - public FaxSendRequest sender(String sender) { + public FaxSendRequest sender(@jakarta.annotation.Nullable String sender) { this.sender = sender; return this; } @@ -139,12 +148,12 @@ public String getSender() { @JsonProperty(JSON_PROPERTY_SENDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSender(String sender) { + public void setSender(@jakarta.annotation.Nullable String sender) { this.sender = sender; } - public FaxSendRequest files(List files) { + public FaxSendRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -172,12 +181,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public FaxSendRequest fileUrls(List fileUrls) { + public FaxSendRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -205,12 +214,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public FaxSendRequest testMode(Boolean testMode) { + public FaxSendRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -230,12 +239,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public FaxSendRequest coverPageTo(String coverPageTo) { + public FaxSendRequest coverPageTo(@jakarta.annotation.Nullable String coverPageTo) { this.coverPageTo = coverPageTo; return this; } @@ -255,12 +264,12 @@ public String getCoverPageTo() { @JsonProperty(JSON_PROPERTY_COVER_PAGE_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoverPageTo(String coverPageTo) { + public void setCoverPageTo(@jakarta.annotation.Nullable String coverPageTo) { this.coverPageTo = coverPageTo; } - public FaxSendRequest coverPageFrom(String coverPageFrom) { + public FaxSendRequest coverPageFrom(@jakarta.annotation.Nullable String coverPageFrom) { this.coverPageFrom = coverPageFrom; return this; } @@ -280,12 +289,12 @@ public String getCoverPageFrom() { @JsonProperty(JSON_PROPERTY_COVER_PAGE_FROM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoverPageFrom(String coverPageFrom) { + public void setCoverPageFrom(@jakarta.annotation.Nullable String coverPageFrom) { this.coverPageFrom = coverPageFrom; } - public FaxSendRequest coverPageMessage(String coverPageMessage) { + public FaxSendRequest coverPageMessage(@jakarta.annotation.Nullable String coverPageMessage) { this.coverPageMessage = coverPageMessage; return this; } @@ -305,12 +314,12 @@ public String getCoverPageMessage() { @JsonProperty(JSON_PROPERTY_COVER_PAGE_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCoverPageMessage(String coverPageMessage) { + public void setCoverPageMessage(@jakarta.annotation.Nullable String coverPageMessage) { this.coverPageMessage = coverPageMessage; } - public FaxSendRequest title(String title) { + public FaxSendRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -330,7 +339,7 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponse.java index 01908c972..aa5f04e75 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponse.java @@ -36,13 +36,15 @@ FileResponse.JSON_PROPERTY_FILE_URL, FileResponse.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FileResponse { public static final String JSON_PROPERTY_FILE_URL = "file_url"; + @jakarta.annotation.Nonnull private String fileUrl; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nonnull private Integer expiresAt; public FileResponse() { @@ -63,7 +65,7 @@ static public FileResponse init(HashMap data) throws Exception { ); } - public FileResponse fileUrl(String fileUrl) { + public FileResponse fileUrl(@jakarta.annotation.Nonnull String fileUrl) { this.fileUrl = fileUrl; return this; } @@ -83,12 +85,12 @@ public String getFileUrl() { @JsonProperty(JSON_PROPERTY_FILE_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFileUrl(String fileUrl) { + public void setFileUrl(@jakarta.annotation.Nonnull String fileUrl) { this.fileUrl = fileUrl; } - public FileResponse expiresAt(Integer expiresAt) { + public FileResponse expiresAt(@jakarta.annotation.Nonnull Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -108,7 +110,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nonnull Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java index 1ef6cdb22..fcabc19c9 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ FileResponseDataUri.JSON_PROPERTY_DATA_URI }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class FileResponseDataUri { public static final String JSON_PROPERTY_DATA_URI = "data_uri"; + @jakarta.annotation.Nonnull private String dataUri; public FileResponseDataUri() { @@ -59,7 +60,7 @@ static public FileResponseDataUri init(HashMap data) throws Exception { ); } - public FileResponseDataUri dataUri(String dataUri) { + public FileResponseDataUri dataUri(@jakarta.annotation.Nonnull String dataUri) { this.dataUri = dataUri; return this; } @@ -79,7 +80,7 @@ public String getDataUri() { @JsonProperty(JSON_PROPERTY_DATA_URI) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDataUri(String dataUri) { + public void setDataUri(@jakarta.annotation.Nonnull String dataUri) { this.dataUri = dataUri; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ListInfoResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ListInfoResponse.java index 5a8e00cc2..c0709757a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ListInfoResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ListInfoResponse.java @@ -38,19 +38,23 @@ ListInfoResponse.JSON_PROPERTY_PAGE, ListInfoResponse.JSON_PROPERTY_PAGE_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ListInfoResponse { public static final String JSON_PROPERTY_NUM_PAGES = "num_pages"; + @jakarta.annotation.Nullable private Integer numPages; public static final String JSON_PROPERTY_NUM_RESULTS = "num_results"; + @jakarta.annotation.Nullable private Integer numResults; public static final String JSON_PROPERTY_PAGE = "page"; + @jakarta.annotation.Nullable private Integer page; public static final String JSON_PROPERTY_PAGE_SIZE = "page_size"; + @jakarta.annotation.Nullable private Integer pageSize; public ListInfoResponse() { @@ -71,7 +75,7 @@ static public ListInfoResponse init(HashMap data) throws Exception { ); } - public ListInfoResponse numPages(Integer numPages) { + public ListInfoResponse numPages(@jakarta.annotation.Nullable Integer numPages) { this.numPages = numPages; return this; } @@ -91,12 +95,12 @@ public Integer getNumPages() { @JsonProperty(JSON_PROPERTY_NUM_PAGES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumPages(Integer numPages) { + public void setNumPages(@jakarta.annotation.Nullable Integer numPages) { this.numPages = numPages; } - public ListInfoResponse numResults(Integer numResults) { + public ListInfoResponse numResults(@jakarta.annotation.Nullable Integer numResults) { this.numResults = numResults; return this; } @@ -116,12 +120,12 @@ public Integer getNumResults() { @JsonProperty(JSON_PROPERTY_NUM_RESULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumResults(Integer numResults) { + public void setNumResults(@jakarta.annotation.Nullable Integer numResults) { this.numResults = numResults; } - public ListInfoResponse page(Integer page) { + public ListInfoResponse page(@jakarta.annotation.Nullable Integer page) { this.page = page; return this; } @@ -141,12 +145,12 @@ public Integer getPage() { @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPage(Integer page) { + public void setPage(@jakarta.annotation.Nullable Integer page) { this.page = page; } - public ListInfoResponse pageSize(Integer pageSize) { + public ListInfoResponse pageSize(@jakarta.annotation.Nullable Integer pageSize) { this.pageSize = pageSize; return this; } @@ -166,7 +170,7 @@ public Integer getPageSize() { @JsonProperty(JSON_PROPERTY_PAGE_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageSize(Integer pageSize) { + public void setPageSize(@jakarta.annotation.Nullable Integer pageSize) { this.pageSize = pageSize; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java index 176c0ee1e..bd6324a5d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java @@ -39,22 +39,27 @@ OAuthTokenGenerateRequest.JSON_PROPERTY_GRANT_TYPE, OAuthTokenGenerateRequest.JSON_PROPERTY_STATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class OAuthTokenGenerateRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_CLIENT_SECRET = "client_secret"; + @jakarta.annotation.Nonnull private String clientSecret; public static final String JSON_PROPERTY_CODE = "code"; + @jakarta.annotation.Nonnull private String code; public static final String JSON_PROPERTY_GRANT_TYPE = "grant_type"; + @jakarta.annotation.Nonnull private String grantType = "authorization_code"; public static final String JSON_PROPERTY_STATE = "state"; + @jakarta.annotation.Nonnull private String state; public OAuthTokenGenerateRequest() { @@ -75,7 +80,7 @@ static public OAuthTokenGenerateRequest init(HashMap data) throws Exception { ); } - public OAuthTokenGenerateRequest clientId(String clientId) { + public OAuthTokenGenerateRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -95,12 +100,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public OAuthTokenGenerateRequest clientSecret(String clientSecret) { + public OAuthTokenGenerateRequest clientSecret(@jakarta.annotation.Nonnull String clientSecret) { this.clientSecret = clientSecret; return this; } @@ -120,12 +125,12 @@ public String getClientSecret() { @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientSecret(String clientSecret) { + public void setClientSecret(@jakarta.annotation.Nonnull String clientSecret) { this.clientSecret = clientSecret; } - public OAuthTokenGenerateRequest code(String code) { + public OAuthTokenGenerateRequest code(@jakarta.annotation.Nonnull String code) { this.code = code; return this; } @@ -145,12 +150,12 @@ public String getCode() { @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(String code) { + public void setCode(@jakarta.annotation.Nonnull String code) { this.code = code; } - public OAuthTokenGenerateRequest grantType(String grantType) { + public OAuthTokenGenerateRequest grantType(@jakarta.annotation.Nonnull String grantType) { this.grantType = grantType; return this; } @@ -170,12 +175,12 @@ public String getGrantType() { @JsonProperty(JSON_PROPERTY_GRANT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantType(String grantType) { + public void setGrantType(@jakarta.annotation.Nonnull String grantType) { this.grantType = grantType; } - public OAuthTokenGenerateRequest state(String state) { + public OAuthTokenGenerateRequest state(@jakarta.annotation.Nonnull String state) { this.state = state; return this; } @@ -195,7 +200,7 @@ public String getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setState(String state) { + public void setState(@jakarta.annotation.Nonnull String state) { this.state = state; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java index fafe689fc..550d2ee1b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java @@ -38,19 +38,23 @@ OAuthTokenRefreshRequest.JSON_PROPERTY_CLIENT_ID, OAuthTokenRefreshRequest.JSON_PROPERTY_CLIENT_SECRET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class OAuthTokenRefreshRequest { public static final String JSON_PROPERTY_GRANT_TYPE = "grant_type"; + @jakarta.annotation.Nonnull private String grantType = "refresh_token"; public static final String JSON_PROPERTY_REFRESH_TOKEN = "refresh_token"; + @jakarta.annotation.Nonnull private String refreshToken; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CLIENT_SECRET = "client_secret"; + @jakarta.annotation.Nullable private String clientSecret; public OAuthTokenRefreshRequest() { @@ -71,7 +75,7 @@ static public OAuthTokenRefreshRequest init(HashMap data) throws Exception { ); } - public OAuthTokenRefreshRequest grantType(String grantType) { + public OAuthTokenRefreshRequest grantType(@jakarta.annotation.Nonnull String grantType) { this.grantType = grantType; return this; } @@ -91,12 +95,12 @@ public String getGrantType() { @JsonProperty(JSON_PROPERTY_GRANT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGrantType(String grantType) { + public void setGrantType(@jakarta.annotation.Nonnull String grantType) { this.grantType = grantType; } - public OAuthTokenRefreshRequest refreshToken(String refreshToken) { + public OAuthTokenRefreshRequest refreshToken(@jakarta.annotation.Nonnull String refreshToken) { this.refreshToken = refreshToken; return this; } @@ -116,12 +120,12 @@ public String getRefreshToken() { @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRefreshToken(String refreshToken) { + public void setRefreshToken(@jakarta.annotation.Nonnull String refreshToken) { this.refreshToken = refreshToken; } - public OAuthTokenRefreshRequest clientId(String clientId) { + public OAuthTokenRefreshRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -141,12 +145,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public OAuthTokenRefreshRequest clientSecret(String clientSecret) { + public OAuthTokenRefreshRequest clientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; return this; } @@ -166,7 +170,7 @@ public String getClientSecret() { @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientSecret(String clientSecret) { + public void setClientSecret(@jakarta.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java index 94e707373..844693917 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java @@ -39,22 +39,27 @@ OAuthTokenResponse.JSON_PROPERTY_EXPIRES_IN, OAuthTokenResponse.JSON_PROPERTY_STATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class OAuthTokenResponse { public static final String JSON_PROPERTY_ACCESS_TOKEN = "access_token"; + @jakarta.annotation.Nullable private String accessToken; public static final String JSON_PROPERTY_TOKEN_TYPE = "token_type"; + @jakarta.annotation.Nullable private String tokenType; public static final String JSON_PROPERTY_REFRESH_TOKEN = "refresh_token"; + @jakarta.annotation.Nullable private String refreshToken; public static final String JSON_PROPERTY_EXPIRES_IN = "expires_in"; + @jakarta.annotation.Nullable private Integer expiresIn; public static final String JSON_PROPERTY_STATE = "state"; + @jakarta.annotation.Nullable private String state; public OAuthTokenResponse() { @@ -75,7 +80,7 @@ static public OAuthTokenResponse init(HashMap data) throws Exception { ); } - public OAuthTokenResponse accessToken(String accessToken) { + public OAuthTokenResponse accessToken(@jakarta.annotation.Nullable String accessToken) { this.accessToken = accessToken; return this; } @@ -95,12 +100,12 @@ public String getAccessToken() { @JsonProperty(JSON_PROPERTY_ACCESS_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccessToken(String accessToken) { + public void setAccessToken(@jakarta.annotation.Nullable String accessToken) { this.accessToken = accessToken; } - public OAuthTokenResponse tokenType(String tokenType) { + public OAuthTokenResponse tokenType(@jakarta.annotation.Nullable String tokenType) { this.tokenType = tokenType; return this; } @@ -120,12 +125,12 @@ public String getTokenType() { @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTokenType(String tokenType) { + public void setTokenType(@jakarta.annotation.Nullable String tokenType) { this.tokenType = tokenType; } - public OAuthTokenResponse refreshToken(String refreshToken) { + public OAuthTokenResponse refreshToken(@jakarta.annotation.Nullable String refreshToken) { this.refreshToken = refreshToken; return this; } @@ -145,12 +150,12 @@ public String getRefreshToken() { @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRefreshToken(String refreshToken) { + public void setRefreshToken(@jakarta.annotation.Nullable String refreshToken) { this.refreshToken = refreshToken; } - public OAuthTokenResponse expiresIn(Integer expiresIn) { + public OAuthTokenResponse expiresIn(@jakarta.annotation.Nullable Integer expiresIn) { this.expiresIn = expiresIn; return this; } @@ -170,12 +175,12 @@ public Integer getExpiresIn() { @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresIn(Integer expiresIn) { + public void setExpiresIn(@jakarta.annotation.Nullable Integer expiresIn) { this.expiresIn = expiresIn; } - public OAuthTokenResponse state(String state) { + public OAuthTokenResponse state(@jakarta.annotation.Nullable String state) { this.state = state; return this; } @@ -195,7 +200,7 @@ public String getState() { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(String state) { + public void setState(@jakarta.annotation.Nullable String state) { this.state = state; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java index bef5001e6..e88dbb0e2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java @@ -39,19 +39,20 @@ ReportCreateRequest.JSON_PROPERTY_REPORT_TYPE, ReportCreateRequest.JSON_PROPERTY_START_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ReportCreateRequest { public static final String JSON_PROPERTY_END_DATE = "end_date"; + @jakarta.annotation.Nonnull private String endDate; /** * Gets or Sets reportType */ public enum ReportTypeEnum { - USER_ACTIVITY("user_activity"), + USER_ACTIVITY(String.valueOf("user_activity")), - DOCUMENT_STATUS("document_status"); + DOCUMENT_STATUS(String.valueOf("document_status")); private String value; @@ -81,9 +82,11 @@ public static ReportTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_REPORT_TYPE = "report_type"; + @jakarta.annotation.Nonnull private List reportType = new ArrayList<>(); public static final String JSON_PROPERTY_START_DATE = "start_date"; + @jakarta.annotation.Nonnull private String startDate; public ReportCreateRequest() { @@ -104,7 +107,7 @@ static public ReportCreateRequest init(HashMap data) throws Exception { ); } - public ReportCreateRequest endDate(String endDate) { + public ReportCreateRequest endDate(@jakarta.annotation.Nonnull String endDate) { this.endDate = endDate; return this; } @@ -124,12 +127,12 @@ public String getEndDate() { @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEndDate(String endDate) { + public void setEndDate(@jakarta.annotation.Nonnull String endDate) { this.endDate = endDate; } - public ReportCreateRequest reportType(List reportType) { + public ReportCreateRequest reportType(@jakarta.annotation.Nonnull List reportType) { this.reportType = reportType; return this; } @@ -157,12 +160,12 @@ public List getReportType() { @JsonProperty(JSON_PROPERTY_REPORT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReportType(List reportType) { + public void setReportType(@jakarta.annotation.Nonnull List reportType) { this.reportType = reportType; } - public ReportCreateRequest startDate(String startDate) { + public ReportCreateRequest startDate(@jakarta.annotation.Nonnull String startDate) { this.startDate = startDate; return this; } @@ -182,7 +185,7 @@ public String getStartDate() { @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setStartDate(String startDate) { + public void setStartDate(@jakarta.annotation.Nonnull String startDate) { this.startDate = startDate; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java index 3a042b474..0ca150bf4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java @@ -40,13 +40,15 @@ ReportCreateResponse.JSON_PROPERTY_REPORT, ReportCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ReportCreateResponse { public static final String JSON_PROPERTY_REPORT = "report"; + @jakarta.annotation.Nonnull private ReportResponse report; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public ReportCreateResponse() { @@ -67,7 +69,7 @@ static public ReportCreateResponse init(HashMap data) throws Exception { ); } - public ReportCreateResponse report(ReportResponse report) { + public ReportCreateResponse report(@jakarta.annotation.Nonnull ReportResponse report) { this.report = report; return this; } @@ -87,12 +89,12 @@ public ReportResponse getReport() { @JsonProperty(JSON_PROPERTY_REPORT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setReport(ReportResponse report) { + public void setReport(@jakarta.annotation.Nonnull ReportResponse report) { this.report = report; } - public ReportCreateResponse warnings(List warnings) { + public ReportCreateResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportResponse.java index 7491ccb4d..35770fa6c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/ReportResponse.java @@ -40,25 +40,28 @@ ReportResponse.JSON_PROPERTY_END_DATE, ReportResponse.JSON_PROPERTY_REPORT_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class ReportResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; + @jakarta.annotation.Nullable private String success; public static final String JSON_PROPERTY_START_DATE = "start_date"; + @jakarta.annotation.Nullable private String startDate; public static final String JSON_PROPERTY_END_DATE = "end_date"; + @jakarta.annotation.Nullable private String endDate; /** * Gets or Sets reportType */ public enum ReportTypeEnum { - USER_ACTIVITY("user_activity"), + USER_ACTIVITY(String.valueOf("user_activity")), - DOCUMENT_STATUS("document_status"); + DOCUMENT_STATUS(String.valueOf("document_status")); private String value; @@ -88,6 +91,7 @@ public static ReportTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_REPORT_TYPE = "report_type"; + @jakarta.annotation.Nullable private List reportType = null; public ReportResponse() { @@ -108,7 +112,7 @@ static public ReportResponse init(HashMap data) throws Exception { ); } - public ReportResponse success(String success) { + public ReportResponse success(@jakarta.annotation.Nullable String success) { this.success = success; return this; } @@ -128,12 +132,12 @@ public String getSuccess() { @JsonProperty(JSON_PROPERTY_SUCCESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuccess(String success) { + public void setSuccess(@jakarta.annotation.Nullable String success) { this.success = success; } - public ReportResponse startDate(String startDate) { + public ReportResponse startDate(@jakarta.annotation.Nullable String startDate) { this.startDate = startDate; return this; } @@ -153,12 +157,12 @@ public String getStartDate() { @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStartDate(String startDate) { + public void setStartDate(@jakarta.annotation.Nullable String startDate) { this.startDate = startDate; } - public ReportResponse endDate(String endDate) { + public ReportResponse endDate(@jakarta.annotation.Nullable String endDate) { this.endDate = endDate; return this; } @@ -178,12 +182,12 @@ public String getEndDate() { @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEndDate(String endDate) { + public void setEndDate(@jakarta.annotation.Nullable String endDate) { this.endDate = endDate; } - public ReportResponse reportType(List reportType) { + public ReportResponse reportType(@jakarta.annotation.Nullable List reportType) { this.reportType = reportType; return this; } @@ -211,7 +215,7 @@ public List getReportType() { @JsonProperty(JSON_PROPERTY_REPORT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReportType(List reportType) { + public void setReportType(@jakarta.annotation.Nullable List reportType) { this.reportType = reportType; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java index 0e3b1ce06..949ddb44b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java @@ -55,46 +55,59 @@ SignatureRequestBulkCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestBulkCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestBulkCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_SIGNER_FILE = "signer_file"; + @jakarta.annotation.Nullable private File signerFile; public static final String JSON_PROPERTY_SIGNER_LIST = "signer_list"; + @jakarta.annotation.Nullable private List signerList = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public SignatureRequestBulkCreateEmbeddedWithTemplateRequest() { @@ -115,7 +128,7 @@ static public SignatureRequestBulkCreateEmbeddedWithTemplateRequest init(HashMap ); } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest templateIds(List templateIds) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -143,12 +156,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest clientId(String clientId) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -168,12 +181,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signerFile(File signerFile) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signerFile(@jakarta.annotation.Nullable File signerFile) { this.signerFile = signerFile; return this; } @@ -193,12 +206,12 @@ public File getSignerFile() { @JsonProperty(JSON_PROPERTY_SIGNER_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerFile(File signerFile) { + public void setSignerFile(@jakarta.annotation.Nullable File signerFile) { this.signerFile = signerFile; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signerList(List signerList) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signerList(@jakarta.annotation.Nullable List signerList) { this.signerList = signerList; return this; } @@ -226,12 +239,12 @@ public List getSignerList() { @JsonProperty(JSON_PROPERTY_SIGNER_LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerList(List signerList) { + public void setSignerList(@jakarta.annotation.Nullable List signerList) { this.signerList = signerList; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest allowDecline(Boolean allowDecline) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -251,12 +264,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest ccs(List ccs) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -284,12 +297,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest customFields(List customFields) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -317,12 +330,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest message(String message) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -342,12 +355,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest metadata(Map metadata) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -375,12 +388,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -400,12 +413,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest subject(String subject) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -425,12 +438,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest testMode(Boolean testMode) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -450,12 +463,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestBulkCreateEmbeddedWithTemplateRequest title(String title) { + public SignatureRequestBulkCreateEmbeddedWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -475,7 +488,7 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java index f25da057d..1efde34d5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java @@ -55,46 +55,59 @@ SignatureRequestBulkSendWithTemplateRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestBulkSendWithTemplateRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestBulkSendWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_SIGNER_FILE = "signer_file"; + @jakarta.annotation.Nullable private File signerFile; public static final String JSON_PROPERTY_SIGNER_LIST = "signer_list"; + @jakarta.annotation.Nullable private List signerList = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public SignatureRequestBulkSendWithTemplateRequest() { @@ -115,7 +128,7 @@ static public SignatureRequestBulkSendWithTemplateRequest init(HashMap data) thr ); } - public SignatureRequestBulkSendWithTemplateRequest templateIds(List templateIds) { + public SignatureRequestBulkSendWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -143,12 +156,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public SignatureRequestBulkSendWithTemplateRequest signerFile(File signerFile) { + public SignatureRequestBulkSendWithTemplateRequest signerFile(@jakarta.annotation.Nullable File signerFile) { this.signerFile = signerFile; return this; } @@ -168,12 +181,12 @@ public File getSignerFile() { @JsonProperty(JSON_PROPERTY_SIGNER_FILE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerFile(File signerFile) { + public void setSignerFile(@jakarta.annotation.Nullable File signerFile) { this.signerFile = signerFile; } - public SignatureRequestBulkSendWithTemplateRequest signerList(List signerList) { + public SignatureRequestBulkSendWithTemplateRequest signerList(@jakarta.annotation.Nullable List signerList) { this.signerList = signerList; return this; } @@ -201,12 +214,12 @@ public List getSignerList() { @JsonProperty(JSON_PROPERTY_SIGNER_LIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerList(List signerList) { + public void setSignerList(@jakarta.annotation.Nullable List signerList) { this.signerList = signerList; } - public SignatureRequestBulkSendWithTemplateRequest allowDecline(Boolean allowDecline) { + public SignatureRequestBulkSendWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -226,12 +239,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestBulkSendWithTemplateRequest ccs(List ccs) { + public SignatureRequestBulkSendWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -259,12 +272,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public SignatureRequestBulkSendWithTemplateRequest clientId(String clientId) { + public SignatureRequestBulkSendWithTemplateRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -284,12 +297,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public SignatureRequestBulkSendWithTemplateRequest customFields(List customFields) { + public SignatureRequestBulkSendWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -317,12 +330,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestBulkSendWithTemplateRequest message(String message) { + public SignatureRequestBulkSendWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -342,12 +355,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestBulkSendWithTemplateRequest metadata(Map metadata) { + public SignatureRequestBulkSendWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -375,12 +388,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestBulkSendWithTemplateRequest signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestBulkSendWithTemplateRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -400,12 +413,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestBulkSendWithTemplateRequest subject(String subject) { + public SignatureRequestBulkSendWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -425,12 +438,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestBulkSendWithTemplateRequest testMode(Boolean testMode) { + public SignatureRequestBulkSendWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -450,12 +463,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestBulkSendWithTemplateRequest title(String title) { + public SignatureRequestBulkSendWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -475,7 +488,7 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java index 14fdbca17..3002deccd 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java @@ -72,79 +72,103 @@ SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestCreateEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_GROUPED_SIGNERS = "grouped_signers"; + @jakarta.annotation.Nullable private List groupedSigners = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_HIDE_TEXT_TAGS = "hide_text_tags"; + @jakarta.annotation.Nullable private Boolean hideTextTags = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; + @jakarta.annotation.Nullable private Boolean useTextTags = false; public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; + @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public SignatureRequestCreateEmbeddedRequest() { @@ -165,7 +189,7 @@ static public SignatureRequestCreateEmbeddedRequest init(HashMap data) throws Ex ); } - public SignatureRequestCreateEmbeddedRequest clientId(String clientId) { + public SignatureRequestCreateEmbeddedRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -185,12 +209,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public SignatureRequestCreateEmbeddedRequest files(List files) { + public SignatureRequestCreateEmbeddedRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -218,12 +242,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestCreateEmbeddedRequest fileUrls(List fileUrls) { + public SignatureRequestCreateEmbeddedRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -251,12 +275,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestCreateEmbeddedRequest signers(List signers) { + public SignatureRequestCreateEmbeddedRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -284,12 +308,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public SignatureRequestCreateEmbeddedRequest groupedSigners(List groupedSigners) { + public SignatureRequestCreateEmbeddedRequest groupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; return this; } @@ -317,12 +341,12 @@ public List getGroupedSigners() { @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupedSigners(List groupedSigners) { + public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; } - public SignatureRequestCreateEmbeddedRequest allowDecline(Boolean allowDecline) { + public SignatureRequestCreateEmbeddedRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -342,12 +366,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestCreateEmbeddedRequest allowReassign(Boolean allowReassign) { + public SignatureRequestCreateEmbeddedRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -367,12 +391,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public SignatureRequestCreateEmbeddedRequest attachments(List attachments) { + public SignatureRequestCreateEmbeddedRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -400,12 +424,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public SignatureRequestCreateEmbeddedRequest ccEmailAddresses(List ccEmailAddresses) { + public SignatureRequestCreateEmbeddedRequest ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -433,12 +457,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public SignatureRequestCreateEmbeddedRequest customFields(List customFields) { + public SignatureRequestCreateEmbeddedRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -466,12 +490,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestCreateEmbeddedRequest fieldOptions(SubFieldOptions fieldOptions) { + public SignatureRequestCreateEmbeddedRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -491,12 +515,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public SignatureRequestCreateEmbeddedRequest formFieldGroups(List formFieldGroups) { + public SignatureRequestCreateEmbeddedRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -524,12 +548,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public SignatureRequestCreateEmbeddedRequest formFieldRules(List formFieldRules) { + public SignatureRequestCreateEmbeddedRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -557,12 +581,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public SignatureRequestCreateEmbeddedRequest formFieldsPerDocument(List formFieldsPerDocument) { + public SignatureRequestCreateEmbeddedRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -590,12 +614,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public SignatureRequestCreateEmbeddedRequest hideTextTags(Boolean hideTextTags) { + public SignatureRequestCreateEmbeddedRequest hideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; return this; } @@ -615,12 +639,12 @@ public Boolean getHideTextTags() { @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideTextTags(Boolean hideTextTags) { + public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; } - public SignatureRequestCreateEmbeddedRequest message(String message) { + public SignatureRequestCreateEmbeddedRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -640,12 +664,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestCreateEmbeddedRequest metadata(Map metadata) { + public SignatureRequestCreateEmbeddedRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -673,12 +697,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestCreateEmbeddedRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestCreateEmbeddedRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -698,12 +722,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestCreateEmbeddedRequest subject(String subject) { + public SignatureRequestCreateEmbeddedRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -723,12 +747,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestCreateEmbeddedRequest testMode(Boolean testMode) { + public SignatureRequestCreateEmbeddedRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -748,12 +772,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestCreateEmbeddedRequest title(String title) { + public SignatureRequestCreateEmbeddedRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -773,12 +797,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestCreateEmbeddedRequest useTextTags(Boolean useTextTags) { + public SignatureRequestCreateEmbeddedRequest useTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; return this; } @@ -798,12 +822,12 @@ public Boolean getUseTextTags() { @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseTextTags(Boolean useTextTags) { + public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestCreateEmbeddedRequest populateAutoFillFields(Boolean populateAutoFillFields) { + public SignatureRequestCreateEmbeddedRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; } @@ -823,12 +847,12 @@ public Boolean getPopulateAutoFillFields() { @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPopulateAutoFillFields(Boolean populateAutoFillFields) { + public void setPopulateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; } - public SignatureRequestCreateEmbeddedRequest expiresAt(Integer expiresAt) { + public SignatureRequestCreateEmbeddedRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -848,7 +872,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java index 82e075ace..6dc29fb8e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java @@ -58,52 +58,67 @@ SignatureRequestCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_TITLE, SignatureRequestCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nonnull private List signers = new ArrayList<>(); public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; + @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; public SignatureRequestCreateEmbeddedWithTemplateRequest() { @@ -124,7 +139,7 @@ static public SignatureRequestCreateEmbeddedWithTemplateRequest init(HashMap dat ); } - public SignatureRequestCreateEmbeddedWithTemplateRequest templateIds(List templateIds) { + public SignatureRequestCreateEmbeddedWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -152,12 +167,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public SignatureRequestCreateEmbeddedWithTemplateRequest clientId(String clientId) { + public SignatureRequestCreateEmbeddedWithTemplateRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -177,12 +192,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public SignatureRequestCreateEmbeddedWithTemplateRequest signers(List signers) { + public SignatureRequestCreateEmbeddedWithTemplateRequest signers(@jakarta.annotation.Nonnull List signers) { this.signers = signers; return this; } @@ -210,12 +225,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; } - public SignatureRequestCreateEmbeddedWithTemplateRequest allowDecline(Boolean allowDecline) { + public SignatureRequestCreateEmbeddedWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -235,12 +250,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestCreateEmbeddedWithTemplateRequest ccs(List ccs) { + public SignatureRequestCreateEmbeddedWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -268,12 +283,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public SignatureRequestCreateEmbeddedWithTemplateRequest customFields(List customFields) { + public SignatureRequestCreateEmbeddedWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -301,12 +316,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestCreateEmbeddedWithTemplateRequest files(List files) { + public SignatureRequestCreateEmbeddedWithTemplateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -334,12 +349,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestCreateEmbeddedWithTemplateRequest fileUrls(List fileUrls) { + public SignatureRequestCreateEmbeddedWithTemplateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -367,12 +382,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestCreateEmbeddedWithTemplateRequest message(String message) { + public SignatureRequestCreateEmbeddedWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -392,12 +407,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestCreateEmbeddedWithTemplateRequest metadata(Map metadata) { + public SignatureRequestCreateEmbeddedWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -425,12 +440,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestCreateEmbeddedWithTemplateRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestCreateEmbeddedWithTemplateRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -450,12 +465,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestCreateEmbeddedWithTemplateRequest subject(String subject) { + public SignatureRequestCreateEmbeddedWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -475,12 +490,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestCreateEmbeddedWithTemplateRequest testMode(Boolean testMode) { + public SignatureRequestCreateEmbeddedWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -500,12 +515,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestCreateEmbeddedWithTemplateRequest title(String title) { + public SignatureRequestCreateEmbeddedWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -525,12 +540,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestCreateEmbeddedWithTemplateRequest populateAutoFillFields(Boolean populateAutoFillFields) { + public SignatureRequestCreateEmbeddedWithTemplateRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; } @@ -550,7 +565,7 @@ public Boolean getPopulateAutoFillFields() { @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPopulateAutoFillFields(Boolean populateAutoFillFields) { + public void setPopulateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java index cc5c34cc5..9a40b64a2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java @@ -72,79 +72,103 @@ SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, SignatureRequestEditEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_GROUPED_SIGNERS = "grouped_signers"; + @jakarta.annotation.Nullable private List groupedSigners = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_HIDE_TEXT_TAGS = "hide_text_tags"; + @jakarta.annotation.Nullable private Boolean hideTextTags = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; + @jakarta.annotation.Nullable private Boolean useTextTags = false; public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; + @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public SignatureRequestEditEmbeddedRequest() { @@ -165,7 +189,7 @@ static public SignatureRequestEditEmbeddedRequest init(HashMap data) throws Exce ); } - public SignatureRequestEditEmbeddedRequest clientId(String clientId) { + public SignatureRequestEditEmbeddedRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -185,12 +209,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public SignatureRequestEditEmbeddedRequest files(List files) { + public SignatureRequestEditEmbeddedRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -218,12 +242,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestEditEmbeddedRequest fileUrls(List fileUrls) { + public SignatureRequestEditEmbeddedRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -251,12 +275,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestEditEmbeddedRequest signers(List signers) { + public SignatureRequestEditEmbeddedRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -284,12 +308,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public SignatureRequestEditEmbeddedRequest groupedSigners(List groupedSigners) { + public SignatureRequestEditEmbeddedRequest groupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; return this; } @@ -317,12 +341,12 @@ public List getGroupedSigners() { @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupedSigners(List groupedSigners) { + public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; } - public SignatureRequestEditEmbeddedRequest allowDecline(Boolean allowDecline) { + public SignatureRequestEditEmbeddedRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -342,12 +366,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestEditEmbeddedRequest allowReassign(Boolean allowReassign) { + public SignatureRequestEditEmbeddedRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -367,12 +391,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public SignatureRequestEditEmbeddedRequest attachments(List attachments) { + public SignatureRequestEditEmbeddedRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -400,12 +424,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public SignatureRequestEditEmbeddedRequest ccEmailAddresses(List ccEmailAddresses) { + public SignatureRequestEditEmbeddedRequest ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -433,12 +457,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public SignatureRequestEditEmbeddedRequest customFields(List customFields) { + public SignatureRequestEditEmbeddedRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -466,12 +490,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestEditEmbeddedRequest fieldOptions(SubFieldOptions fieldOptions) { + public SignatureRequestEditEmbeddedRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -491,12 +515,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public SignatureRequestEditEmbeddedRequest formFieldGroups(List formFieldGroups) { + public SignatureRequestEditEmbeddedRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -524,12 +548,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public SignatureRequestEditEmbeddedRequest formFieldRules(List formFieldRules) { + public SignatureRequestEditEmbeddedRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -557,12 +581,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public SignatureRequestEditEmbeddedRequest formFieldsPerDocument(List formFieldsPerDocument) { + public SignatureRequestEditEmbeddedRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -590,12 +614,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public SignatureRequestEditEmbeddedRequest hideTextTags(Boolean hideTextTags) { + public SignatureRequestEditEmbeddedRequest hideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; return this; } @@ -615,12 +639,12 @@ public Boolean getHideTextTags() { @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideTextTags(Boolean hideTextTags) { + public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; } - public SignatureRequestEditEmbeddedRequest message(String message) { + public SignatureRequestEditEmbeddedRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -640,12 +664,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestEditEmbeddedRequest metadata(Map metadata) { + public SignatureRequestEditEmbeddedRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -673,12 +697,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestEditEmbeddedRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestEditEmbeddedRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -698,12 +722,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestEditEmbeddedRequest subject(String subject) { + public SignatureRequestEditEmbeddedRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -723,12 +747,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestEditEmbeddedRequest testMode(Boolean testMode) { + public SignatureRequestEditEmbeddedRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -748,12 +772,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestEditEmbeddedRequest title(String title) { + public SignatureRequestEditEmbeddedRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -773,12 +797,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestEditEmbeddedRequest useTextTags(Boolean useTextTags) { + public SignatureRequestEditEmbeddedRequest useTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; return this; } @@ -798,12 +822,12 @@ public Boolean getUseTextTags() { @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseTextTags(Boolean useTextTags) { + public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestEditEmbeddedRequest populateAutoFillFields(Boolean populateAutoFillFields) { + public SignatureRequestEditEmbeddedRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; } @@ -823,12 +847,12 @@ public Boolean getPopulateAutoFillFields() { @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPopulateAutoFillFields(Boolean populateAutoFillFields) { + public void setPopulateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; } - public SignatureRequestEditEmbeddedRequest expiresAt(Integer expiresAt) { + public SignatureRequestEditEmbeddedRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -848,7 +872,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java index 00615239f..af702922f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java @@ -58,52 +58,67 @@ SignatureRequestEditEmbeddedWithTemplateRequest.JSON_PROPERTY_TITLE, SignatureRequestEditEmbeddedWithTemplateRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nonnull private List signers = new ArrayList<>(); public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; + @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; public SignatureRequestEditEmbeddedWithTemplateRequest() { @@ -124,7 +139,7 @@ static public SignatureRequestEditEmbeddedWithTemplateRequest init(HashMap data) ); } - public SignatureRequestEditEmbeddedWithTemplateRequest templateIds(List templateIds) { + public SignatureRequestEditEmbeddedWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -152,12 +167,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public SignatureRequestEditEmbeddedWithTemplateRequest clientId(String clientId) { + public SignatureRequestEditEmbeddedWithTemplateRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -177,12 +192,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public SignatureRequestEditEmbeddedWithTemplateRequest signers(List signers) { + public SignatureRequestEditEmbeddedWithTemplateRequest signers(@jakarta.annotation.Nonnull List signers) { this.signers = signers; return this; } @@ -210,12 +225,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; } - public SignatureRequestEditEmbeddedWithTemplateRequest allowDecline(Boolean allowDecline) { + public SignatureRequestEditEmbeddedWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -235,12 +250,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestEditEmbeddedWithTemplateRequest ccs(List ccs) { + public SignatureRequestEditEmbeddedWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -268,12 +283,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public SignatureRequestEditEmbeddedWithTemplateRequest customFields(List customFields) { + public SignatureRequestEditEmbeddedWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -301,12 +316,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestEditEmbeddedWithTemplateRequest files(List files) { + public SignatureRequestEditEmbeddedWithTemplateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -334,12 +349,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestEditEmbeddedWithTemplateRequest fileUrls(List fileUrls) { + public SignatureRequestEditEmbeddedWithTemplateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -367,12 +382,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestEditEmbeddedWithTemplateRequest message(String message) { + public SignatureRequestEditEmbeddedWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -392,12 +407,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestEditEmbeddedWithTemplateRequest metadata(Map metadata) { + public SignatureRequestEditEmbeddedWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -425,12 +440,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestEditEmbeddedWithTemplateRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestEditEmbeddedWithTemplateRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -450,12 +465,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestEditEmbeddedWithTemplateRequest subject(String subject) { + public SignatureRequestEditEmbeddedWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -475,12 +490,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestEditEmbeddedWithTemplateRequest testMode(Boolean testMode) { + public SignatureRequestEditEmbeddedWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -500,12 +515,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestEditEmbeddedWithTemplateRequest title(String title) { + public SignatureRequestEditEmbeddedWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -525,12 +540,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestEditEmbeddedWithTemplateRequest populateAutoFillFields(Boolean populateAutoFillFields) { + public SignatureRequestEditEmbeddedWithTemplateRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; } @@ -550,7 +565,7 @@ public Boolean getPopulateAutoFillFields() { @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPopulateAutoFillFields(Boolean populateAutoFillFields) { + public void setPopulateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java index 96dbcb67e..719a6b457 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java @@ -73,82 +73,107 @@ SignatureRequestEditRequest.JSON_PROPERTY_USE_TEXT_TAGS, SignatureRequestEditRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditRequest { public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_GROUPED_SIGNERS = "grouped_signers"; + @jakarta.annotation.Nullable private List groupedSigners = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_HIDE_TEXT_TAGS = "hide_text_tags"; + @jakarta.annotation.Nullable private Boolean hideTextTags = false; public static final String JSON_PROPERTY_IS_EID = "is_eid"; + @jakarta.annotation.Nullable private Boolean isEid = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; + @jakarta.annotation.Nullable private Boolean useTextTags = false; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public SignatureRequestEditRequest() { @@ -169,7 +194,7 @@ static public SignatureRequestEditRequest init(HashMap data) throws Exception { ); } - public SignatureRequestEditRequest files(List files) { + public SignatureRequestEditRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -197,12 +222,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestEditRequest fileUrls(List fileUrls) { + public SignatureRequestEditRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -230,12 +255,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestEditRequest signers(List signers) { + public SignatureRequestEditRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -263,12 +288,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public SignatureRequestEditRequest groupedSigners(List groupedSigners) { + public SignatureRequestEditRequest groupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; return this; } @@ -296,12 +321,12 @@ public List getGroupedSigners() { @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupedSigners(List groupedSigners) { + public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; } - public SignatureRequestEditRequest allowDecline(Boolean allowDecline) { + public SignatureRequestEditRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -321,12 +346,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestEditRequest allowReassign(Boolean allowReassign) { + public SignatureRequestEditRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -346,12 +371,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public SignatureRequestEditRequest attachments(List attachments) { + public SignatureRequestEditRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -379,12 +404,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public SignatureRequestEditRequest ccEmailAddresses(List ccEmailAddresses) { + public SignatureRequestEditRequest ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -412,12 +437,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public SignatureRequestEditRequest clientId(String clientId) { + public SignatureRequestEditRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -437,12 +462,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public SignatureRequestEditRequest customFields(List customFields) { + public SignatureRequestEditRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -470,12 +495,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestEditRequest fieldOptions(SubFieldOptions fieldOptions) { + public SignatureRequestEditRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -495,12 +520,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public SignatureRequestEditRequest formFieldGroups(List formFieldGroups) { + public SignatureRequestEditRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -528,12 +553,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public SignatureRequestEditRequest formFieldRules(List formFieldRules) { + public SignatureRequestEditRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -561,12 +586,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public SignatureRequestEditRequest formFieldsPerDocument(List formFieldsPerDocument) { + public SignatureRequestEditRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -594,12 +619,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public SignatureRequestEditRequest hideTextTags(Boolean hideTextTags) { + public SignatureRequestEditRequest hideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; return this; } @@ -619,12 +644,12 @@ public Boolean getHideTextTags() { @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideTextTags(Boolean hideTextTags) { + public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; } - public SignatureRequestEditRequest isEid(Boolean isEid) { + public SignatureRequestEditRequest isEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; return this; } @@ -644,12 +669,12 @@ public Boolean getIsEid() { @JsonProperty(JSON_PROPERTY_IS_EID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsEid(Boolean isEid) { + public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; } - public SignatureRequestEditRequest message(String message) { + public SignatureRequestEditRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -669,12 +694,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestEditRequest metadata(Map metadata) { + public SignatureRequestEditRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -702,12 +727,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestEditRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestEditRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -727,12 +752,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestEditRequest signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestEditRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -752,12 +777,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestEditRequest subject(String subject) { + public SignatureRequestEditRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -777,12 +802,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestEditRequest testMode(Boolean testMode) { + public SignatureRequestEditRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -802,12 +827,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestEditRequest title(String title) { + public SignatureRequestEditRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -827,12 +852,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestEditRequest useTextTags(Boolean useTextTags) { + public SignatureRequestEditRequest useTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; return this; } @@ -852,12 +877,12 @@ public Boolean getUseTextTags() { @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseTextTags(Boolean useTextTags) { + public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestEditRequest expiresAt(Integer expiresAt) { + public SignatureRequestEditRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -877,7 +902,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java index 3eff53358..02f2a4d2f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java @@ -59,55 +59,71 @@ SignatureRequestEditWithTemplateRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestEditWithTemplateRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestEditWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nonnull private List signers = new ArrayList<>(); public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_IS_EID = "is_eid"; + @jakarta.annotation.Nullable private Boolean isEid = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public SignatureRequestEditWithTemplateRequest() { @@ -128,7 +144,7 @@ static public SignatureRequestEditWithTemplateRequest init(HashMap data) throws ); } - public SignatureRequestEditWithTemplateRequest templateIds(List templateIds) { + public SignatureRequestEditWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -156,12 +172,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public SignatureRequestEditWithTemplateRequest signers(List signers) { + public SignatureRequestEditWithTemplateRequest signers(@jakarta.annotation.Nonnull List signers) { this.signers = signers; return this; } @@ -189,12 +205,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; } - public SignatureRequestEditWithTemplateRequest allowDecline(Boolean allowDecline) { + public SignatureRequestEditWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -214,12 +230,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestEditWithTemplateRequest ccs(List ccs) { + public SignatureRequestEditWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -247,12 +263,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public SignatureRequestEditWithTemplateRequest clientId(String clientId) { + public SignatureRequestEditWithTemplateRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -272,12 +288,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public SignatureRequestEditWithTemplateRequest customFields(List customFields) { + public SignatureRequestEditWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -305,12 +321,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestEditWithTemplateRequest files(List files) { + public SignatureRequestEditWithTemplateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -338,12 +354,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestEditWithTemplateRequest fileUrls(List fileUrls) { + public SignatureRequestEditWithTemplateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -371,12 +387,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestEditWithTemplateRequest isEid(Boolean isEid) { + public SignatureRequestEditWithTemplateRequest isEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; return this; } @@ -396,12 +412,12 @@ public Boolean getIsEid() { @JsonProperty(JSON_PROPERTY_IS_EID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsEid(Boolean isEid) { + public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; } - public SignatureRequestEditWithTemplateRequest message(String message) { + public SignatureRequestEditWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -421,12 +437,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestEditWithTemplateRequest metadata(Map metadata) { + public SignatureRequestEditWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -454,12 +470,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestEditWithTemplateRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestEditWithTemplateRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -479,12 +495,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestEditWithTemplateRequest signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestEditWithTemplateRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -504,12 +520,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestEditWithTemplateRequest subject(String subject) { + public SignatureRequestEditWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -529,12 +545,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestEditWithTemplateRequest testMode(Boolean testMode) { + public SignatureRequestEditWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -554,12 +570,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestEditWithTemplateRequest title(String title) { + public SignatureRequestEditWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -579,7 +595,7 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java index 6f1fe1d68..489a922dc 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java @@ -40,13 +40,15 @@ SignatureRequestGetResponse.JSON_PROPERTY_SIGNATURE_REQUEST, SignatureRequestGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestGetResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUEST = "signature_request"; + @jakarta.annotation.Nonnull private SignatureRequestResponse signatureRequest; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public SignatureRequestGetResponse() { @@ -67,7 +69,7 @@ static public SignatureRequestGetResponse init(HashMap data) throws Exception { ); } - public SignatureRequestGetResponse signatureRequest(SignatureRequestResponse signatureRequest) { + public SignatureRequestGetResponse signatureRequest(@jakarta.annotation.Nonnull SignatureRequestResponse signatureRequest) { this.signatureRequest = signatureRequest; return this; } @@ -87,12 +89,12 @@ public SignatureRequestResponse getSignatureRequest() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignatureRequest(SignatureRequestResponse signatureRequest) { + public void setSignatureRequest(@jakarta.annotation.Nonnull SignatureRequestResponse signatureRequest) { this.signatureRequest = signatureRequest; } - public SignatureRequestGetResponse warnings(List warnings) { + public SignatureRequestGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java index cbb3d1fb1..5c8169269 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java @@ -42,16 +42,19 @@ SignatureRequestListResponse.JSON_PROPERTY_LIST_INFO, SignatureRequestListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestListResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUESTS = "signature_requests"; + @jakarta.annotation.Nonnull private List signatureRequests = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public SignatureRequestListResponse() { @@ -72,7 +75,7 @@ static public SignatureRequestListResponse init(HashMap data) throws Exception { ); } - public SignatureRequestListResponse signatureRequests(List signatureRequests) { + public SignatureRequestListResponse signatureRequests(@jakarta.annotation.Nonnull List signatureRequests) { this.signatureRequests = signatureRequests; return this; } @@ -100,12 +103,12 @@ public List getSignatureRequests() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignatureRequests(List signatureRequests) { + public void setSignatureRequests(@jakarta.annotation.Nonnull List signatureRequests) { this.signatureRequests = signatureRequests; } - public SignatureRequestListResponse listInfo(ListInfoResponse listInfo) { + public SignatureRequestListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -125,12 +128,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public SignatureRequestListResponse warnings(List warnings) { + public SignatureRequestListResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -158,7 +161,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java index b736aa7de..dc2b5f5fd 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java @@ -36,13 +36,15 @@ SignatureRequestRemindRequest.JSON_PROPERTY_EMAIL_ADDRESS, SignatureRequestRemindRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestRemindRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public SignatureRequestRemindRequest() { @@ -63,7 +65,7 @@ static public SignatureRequestRemindRequest init(HashMap data) throws Exception ); } - public SignatureRequestRemindRequest emailAddress(String emailAddress) { + public SignatureRequestRemindRequest emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -83,12 +85,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } - public SignatureRequestRemindRequest name(String name) { + public SignatureRequestRemindRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -108,7 +110,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java index 44fdde922..481b8bd6b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java @@ -67,82 +67,107 @@ SignatureRequestResponse.JSON_PROPERTY_SIGNATURES, SignatureRequestResponse.JSON_PROPERTY_BULK_SEND_JOB_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestResponse { public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_SIGNATURE_REQUEST_ID = "signature_request_id"; + @jakarta.annotation.Nullable private String signatureRequestId; public static final String JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS = "requester_email_address"; + @jakarta.annotation.Nullable private String requesterEmailAddress; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_ORIGINAL_TITLE = "original_title"; + @jakarta.annotation.Nullable private String originalTitle; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @jakarta.annotation.Nullable private Integer createdAt; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public static final String JSON_PROPERTY_IS_COMPLETE = "is_complete"; + @jakarta.annotation.Nullable private Boolean isComplete; public static final String JSON_PROPERTY_IS_DECLINED = "is_declined"; + @jakarta.annotation.Nullable private Boolean isDeclined; public static final String JSON_PROPERTY_HAS_ERROR = "has_error"; + @jakarta.annotation.Nullable private Boolean hasError; public static final String JSON_PROPERTY_FILES_URL = "files_url"; + @jakarta.annotation.Nullable private String filesUrl; public static final String JSON_PROPERTY_SIGNING_URL = "signing_url"; + @jakarta.annotation.Nullable private String signingUrl; public static final String JSON_PROPERTY_DETAILS_URL = "details_url"; + @jakarta.annotation.Nullable private String detailsUrl; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_FINAL_COPY_URI = "final_copy_uri"; + @jakarta.annotation.Nullable private String finalCopyUri; public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nullable private List templateIds = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_RESPONSE_DATA = "response_data"; + @jakarta.annotation.Nullable private List responseData = null; public static final String JSON_PROPERTY_SIGNATURES = "signatures"; + @jakarta.annotation.Nullable private List signatures = null; public static final String JSON_PROPERTY_BULK_SEND_JOB_ID = "bulk_send_job_id"; + @jakarta.annotation.Nullable private String bulkSendJobId; public SignatureRequestResponse() { @@ -163,7 +188,7 @@ static public SignatureRequestResponse init(HashMap data) throws Exception { ); } - public SignatureRequestResponse testMode(Boolean testMode) { + public SignatureRequestResponse testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -183,12 +208,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestResponse signatureRequestId(String signatureRequestId) { + public SignatureRequestResponse signatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; return this; } @@ -208,12 +233,12 @@ public String getSignatureRequestId() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatureRequestId(String signatureRequestId) { + public void setSignatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; } - public SignatureRequestResponse requesterEmailAddress(String requesterEmailAddress) { + public SignatureRequestResponse requesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; return this; } @@ -233,12 +258,12 @@ public String getRequesterEmailAddress() { @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequesterEmailAddress(String requesterEmailAddress) { + public void setRequesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; } - public SignatureRequestResponse title(String title) { + public SignatureRequestResponse title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -258,12 +283,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestResponse originalTitle(String originalTitle) { + public SignatureRequestResponse originalTitle(@jakarta.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; return this; } @@ -283,12 +308,12 @@ public String getOriginalTitle() { @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginalTitle(String originalTitle) { + public void setOriginalTitle(@jakarta.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; } - public SignatureRequestResponse subject(String subject) { + public SignatureRequestResponse subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -308,12 +333,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestResponse message(String message) { + public SignatureRequestResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -333,12 +358,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestResponse metadata(Map metadata) { + public SignatureRequestResponse metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -366,12 +391,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestResponse createdAt(Integer createdAt) { + public SignatureRequestResponse createdAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; return this; } @@ -391,12 +416,12 @@ public Integer getCreatedAt() { @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(Integer createdAt) { + public void setCreatedAt(@jakarta.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; } - public SignatureRequestResponse expiresAt(Integer expiresAt) { + public SignatureRequestResponse expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -416,12 +441,12 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } - public SignatureRequestResponse isComplete(Boolean isComplete) { + public SignatureRequestResponse isComplete(@jakarta.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; return this; } @@ -441,12 +466,12 @@ public Boolean getIsComplete() { @JsonProperty(JSON_PROPERTY_IS_COMPLETE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsComplete(Boolean isComplete) { + public void setIsComplete(@jakarta.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; } - public SignatureRequestResponse isDeclined(Boolean isDeclined) { + public SignatureRequestResponse isDeclined(@jakarta.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; return this; } @@ -466,12 +491,12 @@ public Boolean getIsDeclined() { @JsonProperty(JSON_PROPERTY_IS_DECLINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsDeclined(Boolean isDeclined) { + public void setIsDeclined(@jakarta.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; } - public SignatureRequestResponse hasError(Boolean hasError) { + public SignatureRequestResponse hasError(@jakarta.annotation.Nullable Boolean hasError) { this.hasError = hasError; return this; } @@ -491,12 +516,12 @@ public Boolean getHasError() { @JsonProperty(JSON_PROPERTY_HAS_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasError(Boolean hasError) { + public void setHasError(@jakarta.annotation.Nullable Boolean hasError) { this.hasError = hasError; } - public SignatureRequestResponse filesUrl(String filesUrl) { + public SignatureRequestResponse filesUrl(@jakarta.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; return this; } @@ -516,12 +541,12 @@ public String getFilesUrl() { @JsonProperty(JSON_PROPERTY_FILES_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFilesUrl(String filesUrl) { + public void setFilesUrl(@jakarta.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; } - public SignatureRequestResponse signingUrl(String signingUrl) { + public SignatureRequestResponse signingUrl(@jakarta.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; return this; } @@ -541,12 +566,12 @@ public String getSigningUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningUrl(String signingUrl) { + public void setSigningUrl(@jakarta.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; } - public SignatureRequestResponse detailsUrl(String detailsUrl) { + public SignatureRequestResponse detailsUrl(@jakarta.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; return this; } @@ -566,12 +591,12 @@ public String getDetailsUrl() { @JsonProperty(JSON_PROPERTY_DETAILS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDetailsUrl(String detailsUrl) { + public void setDetailsUrl(@jakarta.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; } - public SignatureRequestResponse ccEmailAddresses(List ccEmailAddresses) { + public SignatureRequestResponse ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -599,12 +624,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public SignatureRequestResponse signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestResponse signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -624,12 +649,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestResponse finalCopyUri(String finalCopyUri) { + public SignatureRequestResponse finalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; return this; } @@ -649,12 +674,12 @@ public String getFinalCopyUri() { @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFinalCopyUri(String finalCopyUri) { + public void setFinalCopyUri(@jakarta.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; } - public SignatureRequestResponse templateIds(List templateIds) { + public SignatureRequestResponse templateIds(@jakarta.annotation.Nullable List templateIds) { this.templateIds = templateIds; return this; } @@ -682,12 +707,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nullable List templateIds) { this.templateIds = templateIds; } - public SignatureRequestResponse customFields(List customFields) { + public SignatureRequestResponse customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -715,12 +740,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestResponse attachments(List attachments) { + public SignatureRequestResponse attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -748,12 +773,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public SignatureRequestResponse responseData(List responseData) { + public SignatureRequestResponse responseData(@jakarta.annotation.Nullable List responseData) { this.responseData = responseData; return this; } @@ -781,12 +806,12 @@ public List getResponseData() { @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResponseData(List responseData) { + public void setResponseData(@jakarta.annotation.Nullable List responseData) { this.responseData = responseData; } - public SignatureRequestResponse signatures(List signatures) { + public SignatureRequestResponse signatures(@jakarta.annotation.Nullable List signatures) { this.signatures = signatures; return this; } @@ -814,12 +839,12 @@ public List getSignatures() { @JsonProperty(JSON_PROPERTY_SIGNATURES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatures(List signatures) { + public void setSignatures(@jakarta.annotation.Nullable List signatures) { this.signatures = signatures; } - public SignatureRequestResponse bulkSendJobId(String bulkSendJobId) { + public SignatureRequestResponse bulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; return this; } @@ -839,7 +864,7 @@ public String getBulkSendJobId() { @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBulkSendJobId(String bulkSendJobId) { + public void setBulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java index 125fc6666..388774fd2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java @@ -40,25 +40,31 @@ SignatureRequestResponseAttachment.JSON_PROPERTY_INSTRUCTIONS, SignatureRequestResponseAttachment.JSON_PROPERTY_UPLOADED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestResponseAttachment { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_SIGNER = "signer"; + @jakarta.annotation.Nonnull private String signer; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nonnull private Boolean required; public static final String JSON_PROPERTY_INSTRUCTIONS = "instructions"; + @jakarta.annotation.Nullable private String instructions; public static final String JSON_PROPERTY_UPLOADED_AT = "uploaded_at"; + @jakarta.annotation.Nullable private Integer uploadedAt; public SignatureRequestResponseAttachment() { @@ -79,7 +85,7 @@ static public SignatureRequestResponseAttachment init(HashMap data) throws Excep ); } - public SignatureRequestResponseAttachment id(String id) { + public SignatureRequestResponseAttachment id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -99,12 +105,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SignatureRequestResponseAttachment signer(String signer) { + public SignatureRequestResponseAttachment signer(@jakarta.annotation.Nonnull String signer) { this.signer = signer; return this; } @@ -128,7 +134,7 @@ public String getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigner(String signer) { + public void setSigner(@jakarta.annotation.Nonnull String signer) { this.signer = signer; } @@ -137,7 +143,7 @@ public void setSigner(Integer signer) { } - public SignatureRequestResponseAttachment name(String name) { + public SignatureRequestResponseAttachment name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -157,12 +163,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SignatureRequestResponseAttachment required(Boolean required) { + public SignatureRequestResponseAttachment required(@jakarta.annotation.Nonnull Boolean required) { this.required = required; return this; } @@ -182,12 +188,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nonnull Boolean required) { this.required = required; } - public SignatureRequestResponseAttachment instructions(String instructions) { + public SignatureRequestResponseAttachment instructions(@jakarta.annotation.Nullable String instructions) { this.instructions = instructions; return this; } @@ -207,12 +213,12 @@ public String getInstructions() { @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstructions(String instructions) { + public void setInstructions(@jakarta.annotation.Nullable String instructions) { this.instructions = instructions; } - public SignatureRequestResponseAttachment uploadedAt(Integer uploadedAt) { + public SignatureRequestResponseAttachment uploadedAt(@jakarta.annotation.Nullable Integer uploadedAt) { this.uploadedAt = uploadedAt; return this; } @@ -232,7 +238,7 @@ public Integer getUploadedAt() { @JsonProperty(JSON_PROPERTY_UPLOADED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUploadedAt(Integer uploadedAt) { + public void setUploadedAt(@jakarta.annotation.Nullable Integer uploadedAt) { this.uploadedAt = uploadedAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java index fca222226..0901f46c4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java @@ -42,7 +42,7 @@ SignatureRequestResponseCustomFieldBase.JSON_PROPERTY_API_ID, SignatureRequestResponseCustomFieldBase.JSON_PROPERTY_EDITOR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -55,18 +55,23 @@ public class SignatureRequestResponseCustomFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required; public static final String JSON_PROPERTY_API_ID = "api_id"; + @jakarta.annotation.Nullable private String apiId; public static final String JSON_PROPERTY_EDITOR = "editor"; + @jakarta.annotation.Nullable private String editor; public SignatureRequestResponseCustomFieldBase() { @@ -87,7 +92,7 @@ static public SignatureRequestResponseCustomFieldBase init(HashMap data) throws ); } - public SignatureRequestResponseCustomFieldBase type(String type) { + public SignatureRequestResponseCustomFieldBase type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -107,12 +112,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SignatureRequestResponseCustomFieldBase name(String name) { + public SignatureRequestResponseCustomFieldBase name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -132,12 +137,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SignatureRequestResponseCustomFieldBase required(Boolean required) { + public SignatureRequestResponseCustomFieldBase required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -157,12 +162,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } - public SignatureRequestResponseCustomFieldBase apiId(String apiId) { + public SignatureRequestResponseCustomFieldBase apiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; return this; } @@ -182,12 +187,12 @@ public String getApiId() { @JsonProperty(JSON_PROPERTY_API_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiId(String apiId) { + public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; } - public SignatureRequestResponseCustomFieldBase editor(String editor) { + public SignatureRequestResponseCustomFieldBase editor(@jakarta.annotation.Nullable String editor) { this.editor = editor; return this; } @@ -207,7 +212,7 @@ public String getEditor() { @JsonProperty(JSON_PROPERTY_EDITOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditor(String editor) { + public void setEditor(@jakarta.annotation.Nullable String editor) { this.editor = editor; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java index 9943467c8..7ab1636dc 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java @@ -40,7 +40,7 @@ SignatureRequestResponseCustomFieldCheckbox.JSON_PROPERTY_TYPE, SignatureRequestResponseCustomFieldCheckbox.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseCustomFieldCheckbox extends SignatureRequestResponseCustomFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "checkbox"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private Boolean value; public SignatureRequestResponseCustomFieldCheckbox() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseCustomFieldCheckbox init(HashMap data) thr ); } - public SignatureRequestResponseCustomFieldCheckbox type(String type) { + public SignatureRequestResponseCustomFieldCheckbox type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SignatureRequestResponseCustomFieldCheckbox value(Boolean value) { + public SignatureRequestResponseCustomFieldCheckbox value(@jakarta.annotation.Nullable Boolean value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public Boolean getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(Boolean value) { + public void setValue(@jakarta.annotation.Nullable Boolean value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java index 9c7e628a0..7157610f4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java @@ -40,7 +40,7 @@ SignatureRequestResponseCustomFieldText.JSON_PROPERTY_TYPE, SignatureRequestResponseCustomFieldText.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseCustomFieldText extends SignatureRequestResponseCustomFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "text"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SignatureRequestResponseCustomFieldText() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseCustomFieldText init(HashMap data) throws ); } - public SignatureRequestResponseCustomFieldText type(String type) { + public SignatureRequestResponseCustomFieldText type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SignatureRequestResponseCustomFieldText value(String value) { + public SignatureRequestResponseCustomFieldText value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java index 54788629e..d572079a4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java @@ -42,7 +42,7 @@ SignatureRequestResponseDataBase.JSON_PROPERTY_REQUIRED, SignatureRequestResponseDataBase.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -62,18 +62,23 @@ public class SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_API_ID = "api_id"; + @jakarta.annotation.Nullable private String apiId; public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; + @jakarta.annotation.Nullable private String signatureId; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type; public SignatureRequestResponseDataBase() { @@ -94,7 +99,7 @@ static public SignatureRequestResponseDataBase init(HashMap data) throws Excepti ); } - public SignatureRequestResponseDataBase apiId(String apiId) { + public SignatureRequestResponseDataBase apiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; return this; } @@ -114,12 +119,12 @@ public String getApiId() { @JsonProperty(JSON_PROPERTY_API_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiId(String apiId) { + public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; } - public SignatureRequestResponseDataBase signatureId(String signatureId) { + public SignatureRequestResponseDataBase signatureId(@jakarta.annotation.Nullable String signatureId) { this.signatureId = signatureId; return this; } @@ -139,12 +144,12 @@ public String getSignatureId() { @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatureId(String signatureId) { + public void setSignatureId(@jakarta.annotation.Nullable String signatureId) { this.signatureId = signatureId; } - public SignatureRequestResponseDataBase name(String name) { + public SignatureRequestResponseDataBase name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -164,12 +169,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public SignatureRequestResponseDataBase required(Boolean required) { + public SignatureRequestResponseDataBase required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -189,12 +194,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } - public SignatureRequestResponseDataBase type(String type) { + public SignatureRequestResponseDataBase type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -214,7 +219,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java index ed72505f3..ea881f7d9 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueCheckbox.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueCheckbox.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueCheckbox extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "checkbox"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private Boolean value; public SignatureRequestResponseDataValueCheckbox() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueCheckbox init(HashMap data) throw ); } - public SignatureRequestResponseDataValueCheckbox type(String type) { + public SignatureRequestResponseDataValueCheckbox type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueCheckbox value(Boolean value) { + public SignatureRequestResponseDataValueCheckbox value(@jakarta.annotation.Nullable Boolean value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public Boolean getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(Boolean value) { + public void setValue(@jakarta.annotation.Nullable Boolean value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java index 386212b8b..b36555469 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueCheckboxMerge.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueCheckboxMerge.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueCheckboxMerge extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "checkbox-merge"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SignatureRequestResponseDataValueCheckboxMerge() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueCheckboxMerge init(HashMap data) ); } - public SignatureRequestResponseDataValueCheckboxMerge type(String type) { + public SignatureRequestResponseDataValueCheckboxMerge type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueCheckboxMerge value(String value) { + public SignatureRequestResponseDataValueCheckboxMerge value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java index c793034df..6c8c35134 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueDateSigned.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueDateSigned.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueDateSigned extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "date_signed"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SignatureRequestResponseDataValueDateSigned() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueDateSigned init(HashMap data) thr ); } - public SignatureRequestResponseDataValueDateSigned type(String type) { + public SignatureRequestResponseDataValueDateSigned type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueDateSigned value(String value) { + public SignatureRequestResponseDataValueDateSigned value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java index 9f72ae3d4..8d7a8425c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueDropdown.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueDropdown.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueDropdown extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "dropdown"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SignatureRequestResponseDataValueDropdown() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueDropdown init(HashMap data) throw ); } - public SignatureRequestResponseDataValueDropdown type(String type) { + public SignatureRequestResponseDataValueDropdown type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueDropdown value(String value) { + public SignatureRequestResponseDataValueDropdown value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index 3724d3e55..1a68d9a22 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -41,7 +41,7 @@ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -50,12 +50,15 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "initials"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + @jakarta.annotation.Nullable private Boolean isSigned; public SignatureRequestResponseDataValueInitials() { @@ -76,7 +79,7 @@ static public SignatureRequestResponseDataValueInitials init(HashMap data) throw ); } - public SignatureRequestResponseDataValueInitials type(String type) { + public SignatureRequestResponseDataValueInitials type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -96,12 +99,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueInitials value(String value) { + public SignatureRequestResponseDataValueInitials value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -121,12 +124,12 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } - public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + public SignatureRequestResponseDataValueInitials isSigned(@jakarta.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; return this; } @@ -146,7 +149,7 @@ public Boolean getIsSigned() { @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsSigned(Boolean isSigned) { + public void setIsSigned(@jakarta.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java index a3176945b..027c4d911 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueRadio.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueRadio.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueRadio extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "radio"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private Boolean value; public SignatureRequestResponseDataValueRadio() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueRadio init(HashMap data) throws E ); } - public SignatureRequestResponseDataValueRadio type(String type) { + public SignatureRequestResponseDataValueRadio type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueRadio value(Boolean value) { + public SignatureRequestResponseDataValueRadio value(@jakarta.annotation.Nullable Boolean value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public Boolean getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(Boolean value) { + public void setValue(@jakarta.annotation.Nullable Boolean value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index 1a789fb30..95953be9e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -41,7 +41,7 @@ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -50,12 +50,15 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "signature"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + @jakarta.annotation.Nullable private Boolean isSigned; public SignatureRequestResponseDataValueSignature() { @@ -76,7 +79,7 @@ static public SignatureRequestResponseDataValueSignature init(HashMap data) thro ); } - public SignatureRequestResponseDataValueSignature type(String type) { + public SignatureRequestResponseDataValueSignature type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -96,12 +99,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueSignature value(String value) { + public SignatureRequestResponseDataValueSignature value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -121,12 +124,12 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } - public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + public SignatureRequestResponseDataValueSignature isSigned(@jakarta.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; return this; } @@ -146,7 +149,7 @@ public Boolean getIsSigned() { @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsSigned(Boolean isSigned) { + public void setIsSigned(@jakarta.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java index 47f82d4d1..63225480d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueText.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueText.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueText extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "text"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SignatureRequestResponseDataValueText() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueText init(HashMap data) throws Ex ); } - public SignatureRequestResponseDataValueText type(String type) { + public SignatureRequestResponseDataValueText type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueText value(String value) { + public SignatureRequestResponseDataValueText value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java index c25f4b10e..b420f7552 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java @@ -40,7 +40,7 @@ SignatureRequestResponseDataValueTextMerge.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueTextMerge.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class SignatureRequestResponseDataValueTextMerge extends SignatureRequestResponseDataBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private String type = "text-merge"; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SignatureRequestResponseDataValueTextMerge() { @@ -72,7 +74,7 @@ static public SignatureRequestResponseDataValueTextMerge init(HashMap data) thro ); } - public SignatureRequestResponseDataValueTextMerge type(String type) { + public SignatureRequestResponseDataValueTextMerge type(@jakarta.annotation.Nullable String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nullable String type) { this.type = type; } - public SignatureRequestResponseDataValueTextMerge value(String value) { + public SignatureRequestResponseDataValueTextMerge value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -117,7 +119,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java index 16e202047..59472ad36 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java @@ -53,64 +53,83 @@ SignatureRequestResponseSignatures.JSON_PROPERTY_REASSIGNED_FROM, SignatureRequestResponseSignatures.JSON_PROPERTY_ERROR }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestResponseSignatures { public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; + @jakarta.annotation.Nullable private String signatureId; public static final String JSON_PROPERTY_SIGNER_GROUP_GUID = "signer_group_guid"; + @jakarta.annotation.Nullable private String signerGroupGuid; public static final String JSON_PROPERTY_SIGNER_EMAIL_ADDRESS = "signer_email_address"; + @jakarta.annotation.Nullable private String signerEmailAddress; public static final String JSON_PROPERTY_SIGNER_NAME = "signer_name"; + @jakarta.annotation.Nullable private String signerName; public static final String JSON_PROPERTY_SIGNER_ROLE = "signer_role"; + @jakarta.annotation.Nullable private String signerRole; public static final String JSON_PROPERTY_ORDER = "order"; + @jakarta.annotation.Nullable private Integer order; public static final String JSON_PROPERTY_STATUS_CODE = "status_code"; + @jakarta.annotation.Nullable private String statusCode; public static final String JSON_PROPERTY_DECLINE_REASON = "decline_reason"; + @jakarta.annotation.Nullable private String declineReason; public static final String JSON_PROPERTY_SIGNED_AT = "signed_at"; + @jakarta.annotation.Nullable private Integer signedAt; public static final String JSON_PROPERTY_LAST_VIEWED_AT = "last_viewed_at"; + @jakarta.annotation.Nullable private Integer lastViewedAt; public static final String JSON_PROPERTY_LAST_REMINDED_AT = "last_reminded_at"; + @jakarta.annotation.Nullable private Integer lastRemindedAt; public static final String JSON_PROPERTY_HAS_PIN = "has_pin"; + @jakarta.annotation.Nullable private Boolean hasPin; public static final String JSON_PROPERTY_HAS_SMS_AUTH = "has_sms_auth"; + @jakarta.annotation.Nullable private Boolean hasSmsAuth; public static final String JSON_PROPERTY_HAS_SMS_DELIVERY = "has_sms_delivery"; + @jakarta.annotation.Nullable private Boolean hasSmsDelivery; public static final String JSON_PROPERTY_SMS_PHONE_NUMBER = "sms_phone_number"; + @jakarta.annotation.Nullable private String smsPhoneNumber; public static final String JSON_PROPERTY_REASSIGNED_BY = "reassigned_by"; + @jakarta.annotation.Nullable private String reassignedBy; public static final String JSON_PROPERTY_REASSIGNMENT_REASON = "reassignment_reason"; + @jakarta.annotation.Nullable private String reassignmentReason; public static final String JSON_PROPERTY_REASSIGNED_FROM = "reassigned_from"; + @jakarta.annotation.Nullable private String reassignedFrom; public static final String JSON_PROPERTY_ERROR = "error"; + @jakarta.annotation.Nullable private String error; public SignatureRequestResponseSignatures() { @@ -131,7 +150,7 @@ static public SignatureRequestResponseSignatures init(HashMap data) throws Excep ); } - public SignatureRequestResponseSignatures signatureId(String signatureId) { + public SignatureRequestResponseSignatures signatureId(@jakarta.annotation.Nullable String signatureId) { this.signatureId = signatureId; return this; } @@ -151,12 +170,12 @@ public String getSignatureId() { @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatureId(String signatureId) { + public void setSignatureId(@jakarta.annotation.Nullable String signatureId) { this.signatureId = signatureId; } - public SignatureRequestResponseSignatures signerGroupGuid(String signerGroupGuid) { + public SignatureRequestResponseSignatures signerGroupGuid(@jakarta.annotation.Nullable String signerGroupGuid) { this.signerGroupGuid = signerGroupGuid; return this; } @@ -176,12 +195,12 @@ public String getSignerGroupGuid() { @JsonProperty(JSON_PROPERTY_SIGNER_GROUP_GUID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerGroupGuid(String signerGroupGuid) { + public void setSignerGroupGuid(@jakarta.annotation.Nullable String signerGroupGuid) { this.signerGroupGuid = signerGroupGuid; } - public SignatureRequestResponseSignatures signerEmailAddress(String signerEmailAddress) { + public SignatureRequestResponseSignatures signerEmailAddress(@jakarta.annotation.Nullable String signerEmailAddress) { this.signerEmailAddress = signerEmailAddress; return this; } @@ -201,12 +220,12 @@ public String getSignerEmailAddress() { @JsonProperty(JSON_PROPERTY_SIGNER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerEmailAddress(String signerEmailAddress) { + public void setSignerEmailAddress(@jakarta.annotation.Nullable String signerEmailAddress) { this.signerEmailAddress = signerEmailAddress; } - public SignatureRequestResponseSignatures signerName(String signerName) { + public SignatureRequestResponseSignatures signerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; return this; } @@ -226,12 +245,12 @@ public String getSignerName() { @JsonProperty(JSON_PROPERTY_SIGNER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerName(String signerName) { + public void setSignerName(@jakarta.annotation.Nullable String signerName) { this.signerName = signerName; } - public SignatureRequestResponseSignatures signerRole(String signerRole) { + public SignatureRequestResponseSignatures signerRole(@jakarta.annotation.Nullable String signerRole) { this.signerRole = signerRole; return this; } @@ -251,12 +270,12 @@ public String getSignerRole() { @JsonProperty(JSON_PROPERTY_SIGNER_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerRole(String signerRole) { + public void setSignerRole(@jakarta.annotation.Nullable String signerRole) { this.signerRole = signerRole; } - public SignatureRequestResponseSignatures order(Integer order) { + public SignatureRequestResponseSignatures order(@jakarta.annotation.Nullable Integer order) { this.order = order; return this; } @@ -276,12 +295,12 @@ public Integer getOrder() { @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrder(Integer order) { + public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; } - public SignatureRequestResponseSignatures statusCode(String statusCode) { + public SignatureRequestResponseSignatures statusCode(@jakarta.annotation.Nullable String statusCode) { this.statusCode = statusCode; return this; } @@ -301,12 +320,12 @@ public String getStatusCode() { @JsonProperty(JSON_PROPERTY_STATUS_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStatusCode(String statusCode) { + public void setStatusCode(@jakarta.annotation.Nullable String statusCode) { this.statusCode = statusCode; } - public SignatureRequestResponseSignatures declineReason(String declineReason) { + public SignatureRequestResponseSignatures declineReason(@jakarta.annotation.Nullable String declineReason) { this.declineReason = declineReason; return this; } @@ -326,12 +345,12 @@ public String getDeclineReason() { @JsonProperty(JSON_PROPERTY_DECLINE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeclineReason(String declineReason) { + public void setDeclineReason(@jakarta.annotation.Nullable String declineReason) { this.declineReason = declineReason; } - public SignatureRequestResponseSignatures signedAt(Integer signedAt) { + public SignatureRequestResponseSignatures signedAt(@jakarta.annotation.Nullable Integer signedAt) { this.signedAt = signedAt; return this; } @@ -351,12 +370,12 @@ public Integer getSignedAt() { @JsonProperty(JSON_PROPERTY_SIGNED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedAt(Integer signedAt) { + public void setSignedAt(@jakarta.annotation.Nullable Integer signedAt) { this.signedAt = signedAt; } - public SignatureRequestResponseSignatures lastViewedAt(Integer lastViewedAt) { + public SignatureRequestResponseSignatures lastViewedAt(@jakarta.annotation.Nullable Integer lastViewedAt) { this.lastViewedAt = lastViewedAt; return this; } @@ -376,12 +395,12 @@ public Integer getLastViewedAt() { @JsonProperty(JSON_PROPERTY_LAST_VIEWED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastViewedAt(Integer lastViewedAt) { + public void setLastViewedAt(@jakarta.annotation.Nullable Integer lastViewedAt) { this.lastViewedAt = lastViewedAt; } - public SignatureRequestResponseSignatures lastRemindedAt(Integer lastRemindedAt) { + public SignatureRequestResponseSignatures lastRemindedAt(@jakarta.annotation.Nullable Integer lastRemindedAt) { this.lastRemindedAt = lastRemindedAt; return this; } @@ -401,12 +420,12 @@ public Integer getLastRemindedAt() { @JsonProperty(JSON_PROPERTY_LAST_REMINDED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLastRemindedAt(Integer lastRemindedAt) { + public void setLastRemindedAt(@jakarta.annotation.Nullable Integer lastRemindedAt) { this.lastRemindedAt = lastRemindedAt; } - public SignatureRequestResponseSignatures hasPin(Boolean hasPin) { + public SignatureRequestResponseSignatures hasPin(@jakarta.annotation.Nullable Boolean hasPin) { this.hasPin = hasPin; return this; } @@ -426,12 +445,12 @@ public Boolean getHasPin() { @JsonProperty(JSON_PROPERTY_HAS_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasPin(Boolean hasPin) { + public void setHasPin(@jakarta.annotation.Nullable Boolean hasPin) { this.hasPin = hasPin; } - public SignatureRequestResponseSignatures hasSmsAuth(Boolean hasSmsAuth) { + public SignatureRequestResponseSignatures hasSmsAuth(@jakarta.annotation.Nullable Boolean hasSmsAuth) { this.hasSmsAuth = hasSmsAuth; return this; } @@ -451,12 +470,12 @@ public Boolean getHasSmsAuth() { @JsonProperty(JSON_PROPERTY_HAS_SMS_AUTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasSmsAuth(Boolean hasSmsAuth) { + public void setHasSmsAuth(@jakarta.annotation.Nullable Boolean hasSmsAuth) { this.hasSmsAuth = hasSmsAuth; } - public SignatureRequestResponseSignatures hasSmsDelivery(Boolean hasSmsDelivery) { + public SignatureRequestResponseSignatures hasSmsDelivery(@jakarta.annotation.Nullable Boolean hasSmsDelivery) { this.hasSmsDelivery = hasSmsDelivery; return this; } @@ -476,12 +495,12 @@ public Boolean getHasSmsDelivery() { @JsonProperty(JSON_PROPERTY_HAS_SMS_DELIVERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHasSmsDelivery(Boolean hasSmsDelivery) { + public void setHasSmsDelivery(@jakarta.annotation.Nullable Boolean hasSmsDelivery) { this.hasSmsDelivery = hasSmsDelivery; } - public SignatureRequestResponseSignatures smsPhoneNumber(String smsPhoneNumber) { + public SignatureRequestResponseSignatures smsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; return this; } @@ -501,12 +520,12 @@ public String getSmsPhoneNumber() { @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsPhoneNumber(String smsPhoneNumber) { + public void setSmsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; } - public SignatureRequestResponseSignatures reassignedBy(String reassignedBy) { + public SignatureRequestResponseSignatures reassignedBy(@jakarta.annotation.Nullable String reassignedBy) { this.reassignedBy = reassignedBy; return this; } @@ -526,12 +545,12 @@ public String getReassignedBy() { @JsonProperty(JSON_PROPERTY_REASSIGNED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReassignedBy(String reassignedBy) { + public void setReassignedBy(@jakarta.annotation.Nullable String reassignedBy) { this.reassignedBy = reassignedBy; } - public SignatureRequestResponseSignatures reassignmentReason(String reassignmentReason) { + public SignatureRequestResponseSignatures reassignmentReason(@jakarta.annotation.Nullable String reassignmentReason) { this.reassignmentReason = reassignmentReason; return this; } @@ -551,12 +570,12 @@ public String getReassignmentReason() { @JsonProperty(JSON_PROPERTY_REASSIGNMENT_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReassignmentReason(String reassignmentReason) { + public void setReassignmentReason(@jakarta.annotation.Nullable String reassignmentReason) { this.reassignmentReason = reassignmentReason; } - public SignatureRequestResponseSignatures reassignedFrom(String reassignedFrom) { + public SignatureRequestResponseSignatures reassignedFrom(@jakarta.annotation.Nullable String reassignedFrom) { this.reassignedFrom = reassignedFrom; return this; } @@ -576,12 +595,12 @@ public String getReassignedFrom() { @JsonProperty(JSON_PROPERTY_REASSIGNED_FROM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReassignedFrom(String reassignedFrom) { + public void setReassignedFrom(@jakarta.annotation.Nullable String reassignedFrom) { this.reassignedFrom = reassignedFrom; } - public SignatureRequestResponseSignatures error(String error) { + public SignatureRequestResponseSignatures error(@jakarta.annotation.Nullable String error) { this.error = error; return this; } @@ -601,7 +620,7 @@ public String getError() { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(String error) { + public void setError(@jakarta.annotation.Nullable String error) { this.error = error; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java index 160f345aa..a76ab911f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java @@ -74,86 +74,112 @@ SignatureRequestSendRequest.JSON_PROPERTY_USE_TEXT_TAGS, SignatureRequestSendRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestSendRequest { public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_GROUPED_SIGNERS = "grouped_signers"; + @jakarta.annotation.Nullable private List groupedSigners = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_HIDE_TEXT_TAGS = "hide_text_tags"; + @jakarta.annotation.Nullable private Boolean hideTextTags = false; public static final String JSON_PROPERTY_IS_QUALIFIED_SIGNATURE = "is_qualified_signature"; @Deprecated + @jakarta.annotation.Nullable private Boolean isQualifiedSignature = false; public static final String JSON_PROPERTY_IS_EID = "is_eid"; + @jakarta.annotation.Nullable private Boolean isEid = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; + @jakarta.annotation.Nullable private Boolean useTextTags = false; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public SignatureRequestSendRequest() { @@ -174,7 +200,7 @@ static public SignatureRequestSendRequest init(HashMap data) throws Exception { ); } - public SignatureRequestSendRequest files(List files) { + public SignatureRequestSendRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -202,12 +228,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestSendRequest fileUrls(List fileUrls) { + public SignatureRequestSendRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -235,12 +261,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public SignatureRequestSendRequest signers(List signers) { + public SignatureRequestSendRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -268,12 +294,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public SignatureRequestSendRequest groupedSigners(List groupedSigners) { + public SignatureRequestSendRequest groupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; return this; } @@ -301,12 +327,12 @@ public List getGroupedSigners() { @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupedSigners(List groupedSigners) { + public void setGroupedSigners(@jakarta.annotation.Nullable List groupedSigners) { this.groupedSigners = groupedSigners; } - public SignatureRequestSendRequest allowDecline(Boolean allowDecline) { + public SignatureRequestSendRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -326,12 +352,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestSendRequest allowReassign(Boolean allowReassign) { + public SignatureRequestSendRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -351,12 +377,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public SignatureRequestSendRequest attachments(List attachments) { + public SignatureRequestSendRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -384,12 +410,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public SignatureRequestSendRequest ccEmailAddresses(List ccEmailAddresses) { + public SignatureRequestSendRequest ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -417,12 +443,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public SignatureRequestSendRequest clientId(String clientId) { + public SignatureRequestSendRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -442,12 +468,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public SignatureRequestSendRequest customFields(List customFields) { + public SignatureRequestSendRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -475,12 +501,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestSendRequest fieldOptions(SubFieldOptions fieldOptions) { + public SignatureRequestSendRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -500,12 +526,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public SignatureRequestSendRequest formFieldGroups(List formFieldGroups) { + public SignatureRequestSendRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -533,12 +559,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public SignatureRequestSendRequest formFieldRules(List formFieldRules) { + public SignatureRequestSendRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -566,12 +592,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public SignatureRequestSendRequest formFieldsPerDocument(List formFieldsPerDocument) { + public SignatureRequestSendRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -599,12 +625,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public SignatureRequestSendRequest hideTextTags(Boolean hideTextTags) { + public SignatureRequestSendRequest hideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; return this; } @@ -624,13 +650,13 @@ public Boolean getHideTextTags() { @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideTextTags(Boolean hideTextTags) { + public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; } @Deprecated - public SignatureRequestSendRequest isQualifiedSignature(Boolean isQualifiedSignature) { + public SignatureRequestSendRequest isQualifiedSignature(@jakarta.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; return this; } @@ -653,12 +679,12 @@ public Boolean getIsQualifiedSignature() { @Deprecated @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsQualifiedSignature(Boolean isQualifiedSignature) { + public void setIsQualifiedSignature(@jakarta.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; } - public SignatureRequestSendRequest isEid(Boolean isEid) { + public SignatureRequestSendRequest isEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; return this; } @@ -678,12 +704,12 @@ public Boolean getIsEid() { @JsonProperty(JSON_PROPERTY_IS_EID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsEid(Boolean isEid) { + public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; } - public SignatureRequestSendRequest message(String message) { + public SignatureRequestSendRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -703,12 +729,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestSendRequest metadata(Map metadata) { + public SignatureRequestSendRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -736,12 +762,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestSendRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestSendRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -761,12 +787,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestSendRequest signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestSendRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -786,12 +812,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestSendRequest subject(String subject) { + public SignatureRequestSendRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -811,12 +837,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestSendRequest testMode(Boolean testMode) { + public SignatureRequestSendRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -836,12 +862,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestSendRequest title(String title) { + public SignatureRequestSendRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -861,12 +887,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public SignatureRequestSendRequest useTextTags(Boolean useTextTags) { + public SignatureRequestSendRequest useTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; return this; } @@ -886,12 +912,12 @@ public Boolean getUseTextTags() { @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseTextTags(Boolean useTextTags) { + public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public SignatureRequestSendRequest expiresAt(Integer expiresAt) { + public SignatureRequestSendRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -911,7 +937,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java index c498d8723..861f52e96 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java @@ -60,59 +60,76 @@ SignatureRequestSendWithTemplateRequest.JSON_PROPERTY_TEST_MODE, SignatureRequestSendWithTemplateRequest.JSON_PROPERTY_TITLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestSendWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nonnull private List signers = new ArrayList<>(); public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_IS_QUALIFIED_SIGNATURE = "is_qualified_signature"; @Deprecated + @jakarta.annotation.Nullable private Boolean isQualifiedSignature = false; public static final String JSON_PROPERTY_IS_EID = "is_eid"; + @jakarta.annotation.Nullable private Boolean isEid = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public SignatureRequestSendWithTemplateRequest() { @@ -133,7 +150,7 @@ static public SignatureRequestSendWithTemplateRequest init(HashMap data) throws ); } - public SignatureRequestSendWithTemplateRequest templateIds(List templateIds) { + public SignatureRequestSendWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -161,12 +178,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public SignatureRequestSendWithTemplateRequest signers(List signers) { + public SignatureRequestSendWithTemplateRequest signers(@jakarta.annotation.Nonnull List signers) { this.signers = signers; return this; } @@ -194,12 +211,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; } - public SignatureRequestSendWithTemplateRequest allowDecline(Boolean allowDecline) { + public SignatureRequestSendWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -219,12 +236,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public SignatureRequestSendWithTemplateRequest ccs(List ccs) { + public SignatureRequestSendWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -252,12 +269,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public SignatureRequestSendWithTemplateRequest clientId(String clientId) { + public SignatureRequestSendWithTemplateRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -277,12 +294,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public SignatureRequestSendWithTemplateRequest customFields(List customFields) { + public SignatureRequestSendWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -310,12 +327,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SignatureRequestSendWithTemplateRequest files(List files) { + public SignatureRequestSendWithTemplateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -343,12 +360,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public SignatureRequestSendWithTemplateRequest fileUrls(List fileUrls) { + public SignatureRequestSendWithTemplateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -376,13 +393,13 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } @Deprecated - public SignatureRequestSendWithTemplateRequest isQualifiedSignature(Boolean isQualifiedSignature) { + public SignatureRequestSendWithTemplateRequest isQualifiedSignature(@jakarta.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; return this; } @@ -405,12 +422,12 @@ public Boolean getIsQualifiedSignature() { @Deprecated @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsQualifiedSignature(Boolean isQualifiedSignature) { + public void setIsQualifiedSignature(@jakarta.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; } - public SignatureRequestSendWithTemplateRequest isEid(Boolean isEid) { + public SignatureRequestSendWithTemplateRequest isEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; return this; } @@ -430,12 +447,12 @@ public Boolean getIsEid() { @JsonProperty(JSON_PROPERTY_IS_EID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsEid(Boolean isEid) { + public void setIsEid(@jakarta.annotation.Nullable Boolean isEid) { this.isEid = isEid; } - public SignatureRequestSendWithTemplateRequest message(String message) { + public SignatureRequestSendWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -455,12 +472,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public SignatureRequestSendWithTemplateRequest metadata(Map metadata) { + public SignatureRequestSendWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -488,12 +505,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public SignatureRequestSendWithTemplateRequest signingOptions(SubSigningOptions signingOptions) { + public SignatureRequestSendWithTemplateRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -513,12 +530,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public SignatureRequestSendWithTemplateRequest signingRedirectUrl(String signingRedirectUrl) { + public SignatureRequestSendWithTemplateRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -538,12 +555,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public SignatureRequestSendWithTemplateRequest subject(String subject) { + public SignatureRequestSendWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -563,12 +580,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public SignatureRequestSendWithTemplateRequest testMode(Boolean testMode) { + public SignatureRequestSendWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -588,12 +605,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public SignatureRequestSendWithTemplateRequest title(String title) { + public SignatureRequestSendWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -613,7 +630,7 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java index e5b31ad56..599e2b0b6 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java @@ -38,19 +38,23 @@ SignatureRequestUpdateRequest.JSON_PROPERTY_NAME, SignatureRequestUpdateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SignatureRequestUpdateRequest { public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; + @jakarta.annotation.Nonnull private String signatureId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public SignatureRequestUpdateRequest() { @@ -71,7 +75,7 @@ static public SignatureRequestUpdateRequest init(HashMap data) throws Exception ); } - public SignatureRequestUpdateRequest signatureId(String signatureId) { + public SignatureRequestUpdateRequest signatureId(@jakarta.annotation.Nonnull String signatureId) { this.signatureId = signatureId; return this; } @@ -91,12 +95,12 @@ public String getSignatureId() { @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignatureId(String signatureId) { + public void setSignatureId(@jakarta.annotation.Nonnull String signatureId) { this.signatureId = signatureId; } - public SignatureRequestUpdateRequest emailAddress(String emailAddress) { + public SignatureRequestUpdateRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -116,12 +120,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public SignatureRequestUpdateRequest name(String name) { + public SignatureRequestUpdateRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -141,12 +145,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public SignatureRequestUpdateRequest expiresAt(Integer expiresAt) { + public SignatureRequestUpdateRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -166,7 +170,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubAttachment.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubAttachment.java index 47c26c174..2194103c4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubAttachment.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubAttachment.java @@ -38,19 +38,23 @@ SubAttachment.JSON_PROPERTY_INSTRUCTIONS, SubAttachment.JSON_PROPERTY_REQUIRED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubAttachment { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_SIGNER_INDEX = "signer_index"; + @jakarta.annotation.Nonnull private Integer signerIndex; public static final String JSON_PROPERTY_INSTRUCTIONS = "instructions"; + @jakarta.annotation.Nullable private String instructions; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required = false; public SubAttachment() { @@ -71,7 +75,7 @@ static public SubAttachment init(HashMap data) throws Exception { ); } - public SubAttachment name(String name) { + public SubAttachment name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -91,12 +95,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubAttachment signerIndex(Integer signerIndex) { + public SubAttachment signerIndex(@jakarta.annotation.Nonnull Integer signerIndex) { this.signerIndex = signerIndex; return this; } @@ -116,12 +120,12 @@ public Integer getSignerIndex() { @JsonProperty(JSON_PROPERTY_SIGNER_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignerIndex(Integer signerIndex) { + public void setSignerIndex(@jakarta.annotation.Nonnull Integer signerIndex) { this.signerIndex = signerIndex; } - public SubAttachment instructions(String instructions) { + public SubAttachment instructions(@jakarta.annotation.Nullable String instructions) { this.instructions = instructions; return this; } @@ -141,12 +145,12 @@ public String getInstructions() { @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInstructions(String instructions) { + public void setInstructions(@jakarta.annotation.Nullable String instructions) { this.instructions = instructions; } - public SubAttachment required(Boolean required) { + public SubAttachment required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -166,7 +170,7 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java index 670dd4bb4..beb21db0b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java @@ -40,13 +40,15 @@ SubBulkSignerList.JSON_PROPERTY_CUSTOM_FIELDS, SubBulkSignerList.JSON_PROPERTY_SIGNERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubBulkSignerList { public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public SubBulkSignerList() { @@ -67,7 +69,7 @@ static public SubBulkSignerList init(HashMap data) throws Exception { ); } - public SubBulkSignerList customFields(List customFields) { + public SubBulkSignerList customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -95,12 +97,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public SubBulkSignerList signers(List signers) { + public SubBulkSignerList signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -128,7 +130,7 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java index f2b250c2d..a71f2a667 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java @@ -36,13 +36,15 @@ SubBulkSignerListCustomField.JSON_PROPERTY_NAME, SubBulkSignerListCustomField.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubBulkSignerListCustomField { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nonnull private String value; public SubBulkSignerListCustomField() { @@ -63,7 +65,7 @@ static public SubBulkSignerListCustomField init(HashMap data) throws Exception { ); } - public SubBulkSignerListCustomField name(String name) { + public SubBulkSignerListCustomField name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -83,12 +85,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubBulkSignerListCustomField value(String value) { + public SubBulkSignerListCustomField value(@jakarta.annotation.Nonnull String value) { this.value = value; return this; } @@ -108,7 +110,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nonnull String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCC.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCC.java index 1edd1df1e..282cbf9fe 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCC.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCC.java @@ -36,13 +36,15 @@ SubCC.JSON_PROPERTY_ROLE, SubCC.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubCC { public static final String JSON_PROPERTY_ROLE = "role"; + @jakarta.annotation.Nonnull private String role; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public SubCC() { @@ -63,7 +65,7 @@ static public SubCC init(HashMap data) throws Exception { ); } - public SubCC role(String role) { + public SubCC role(@jakarta.annotation.Nonnull String role) { this.role = role; return this; } @@ -83,12 +85,12 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; } - public SubCC emailAddress(String emailAddress) { + public SubCC emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -108,7 +110,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCustomField.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCustomField.java index 027d857aa..425a89560 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCustomField.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubCustomField.java @@ -38,19 +38,23 @@ SubCustomField.JSON_PROPERTY_REQUIRED, SubCustomField.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubCustomField { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_EDITOR = "editor"; + @jakarta.annotation.Nullable private String editor; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required = false; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public SubCustomField() { @@ -71,7 +75,7 @@ static public SubCustomField init(HashMap data) throws Exception { ); } - public SubCustomField name(String name) { + public SubCustomField name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -91,12 +95,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubCustomField editor(String editor) { + public SubCustomField editor(@jakarta.annotation.Nullable String editor) { this.editor = editor; return this; } @@ -116,12 +120,12 @@ public String getEditor() { @JsonProperty(JSON_PROPERTY_EDITOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditor(String editor) { + public void setEditor(@jakarta.annotation.Nullable String editor) { this.editor = editor; } - public SubCustomField required(Boolean required) { + public SubCustomField required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -141,12 +145,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } - public SubCustomField value(String value) { + public SubCustomField value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -166,7 +170,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubEditorOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubEditorOptions.java index 0d2542d3e..5612b5104 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubEditorOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubEditorOptions.java @@ -36,13 +36,15 @@ SubEditorOptions.JSON_PROPERTY_ALLOW_EDIT_SIGNERS, SubEditorOptions.JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubEditorOptions { public static final String JSON_PROPERTY_ALLOW_EDIT_SIGNERS = "allow_edit_signers"; + @jakarta.annotation.Nullable private Boolean allowEditSigners = false; public static final String JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS = "allow_edit_documents"; + @jakarta.annotation.Nullable private Boolean allowEditDocuments = false; public SubEditorOptions() { @@ -63,7 +65,7 @@ static public SubEditorOptions init(HashMap data) throws Exception { ); } - public SubEditorOptions allowEditSigners(Boolean allowEditSigners) { + public SubEditorOptions allowEditSigners(@jakarta.annotation.Nullable Boolean allowEditSigners) { this.allowEditSigners = allowEditSigners; return this; } @@ -83,12 +85,12 @@ public Boolean getAllowEditSigners() { @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowEditSigners(Boolean allowEditSigners) { + public void setAllowEditSigners(@jakarta.annotation.Nullable Boolean allowEditSigners) { this.allowEditSigners = allowEditSigners; } - public SubEditorOptions allowEditDocuments(Boolean allowEditDocuments) { + public SubEditorOptions allowEditDocuments(@jakarta.annotation.Nullable Boolean allowEditDocuments) { this.allowEditDocuments = allowEditDocuments; return this; } @@ -108,7 +110,7 @@ public Boolean getAllowEditDocuments() { @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowEditDocuments(Boolean allowEditDocuments) { + public void setAllowEditDocuments(@jakarta.annotation.Nullable Boolean allowEditDocuments) { this.allowEditDocuments = allowEditDocuments; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFieldOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFieldOptions.java index 186faba37..9d39fc483 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFieldOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFieldOptions.java @@ -35,24 +35,24 @@ @JsonPropertyOrder({ SubFieldOptions.JSON_PROPERTY_DATE_FORMAT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFieldOptions { /** * Allows requester to specify the date format (see list of allowed [formats](/api/reference/constants/#date-formats)) **NOTE:** Only available for Premium and higher. */ public enum DateFormatEnum { - MMDDYYYY("MM / DD / YYYY"), + MMDDYYYY(String.valueOf("MM / DD / YYYY")), - MM_DD_YYYY("MM - DD - YYYY"), + MM_DD_YYYY(String.valueOf("MM - DD - YYYY")), - DDMMYYYY("DD / MM / YYYY"), + DDMMYYYY(String.valueOf("DD / MM / YYYY")), - DD_MM_YYYY("DD - MM - YYYY"), + DD_MM_YYYY(String.valueOf("DD - MM - YYYY")), - YYYYMMDD("YYYY / MM / DD"), + YYYYMMDD(String.valueOf("YYYY / MM / DD")), - YYYY_MM_DD("YYYY - MM - DD"); + YYYY_MM_DD(String.valueOf("YYYY - MM - DD")); private String value; @@ -82,6 +82,7 @@ public static DateFormatEnum fromValue(String value) { } public static final String JSON_PROPERTY_DATE_FORMAT = "date_format"; + @jakarta.annotation.Nonnull private DateFormatEnum dateFormat; public SubFieldOptions() { @@ -102,7 +103,7 @@ static public SubFieldOptions init(HashMap data) throws Exception { ); } - public SubFieldOptions dateFormat(DateFormatEnum dateFormat) { + public SubFieldOptions dateFormat(@jakarta.annotation.Nonnull DateFormatEnum dateFormat) { this.dateFormat = dateFormat; return this; } @@ -122,7 +123,7 @@ public DateFormatEnum getDateFormat() { @JsonProperty(JSON_PROPERTY_DATE_FORMAT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDateFormat(DateFormatEnum dateFormat) { + public void setDateFormat(@jakarta.annotation.Nonnull DateFormatEnum dateFormat) { this.dateFormat = dateFormat; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java index 80dd46eb5..9993e171b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java @@ -37,16 +37,19 @@ SubFormFieldGroup.JSON_PROPERTY_GROUP_LABEL, SubFormFieldGroup.JSON_PROPERTY_REQUIREMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldGroup { public static final String JSON_PROPERTY_GROUP_ID = "group_id"; + @jakarta.annotation.Nonnull private String groupId; public static final String JSON_PROPERTY_GROUP_LABEL = "group_label"; + @jakarta.annotation.Nonnull private String groupLabel; public static final String JSON_PROPERTY_REQUIREMENT = "requirement"; + @jakarta.annotation.Nonnull private String requirement; public SubFormFieldGroup() { @@ -67,7 +70,7 @@ static public SubFormFieldGroup init(HashMap data) throws Exception { ); } - public SubFormFieldGroup groupId(String groupId) { + public SubFormFieldGroup groupId(@jakarta.annotation.Nonnull String groupId) { this.groupId = groupId; return this; } @@ -87,12 +90,12 @@ public String getGroupId() { @JsonProperty(JSON_PROPERTY_GROUP_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGroupId(String groupId) { + public void setGroupId(@jakarta.annotation.Nonnull String groupId) { this.groupId = groupId; } - public SubFormFieldGroup groupLabel(String groupLabel) { + public SubFormFieldGroup groupLabel(@jakarta.annotation.Nonnull String groupLabel) { this.groupLabel = groupLabel; return this; } @@ -112,12 +115,12 @@ public String getGroupLabel() { @JsonProperty(JSON_PROPERTY_GROUP_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGroupLabel(String groupLabel) { + public void setGroupLabel(@jakarta.annotation.Nonnull String groupLabel) { this.groupLabel = groupLabel; } - public SubFormFieldGroup requirement(String requirement) { + public SubFormFieldGroup requirement(@jakarta.annotation.Nonnull String requirement) { this.requirement = requirement; return this; } @@ -137,7 +140,7 @@ public String getRequirement() { @JsonProperty(JSON_PROPERTY_REQUIREMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequirement(String requirement) { + public void setRequirement(@jakarta.annotation.Nonnull String requirement) { this.requirement = requirement; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java index 629d8f492..7c6eda114 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java @@ -42,19 +42,23 @@ SubFormFieldRule.JSON_PROPERTY_TRIGGERS, SubFormFieldRule.JSON_PROPERTY_ACTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldRule { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private String id; public static final String JSON_PROPERTY_TRIGGER_OPERATOR = "trigger_operator"; + @jakarta.annotation.Nonnull private String triggerOperator = "AND"; public static final String JSON_PROPERTY_TRIGGERS = "triggers"; + @jakarta.annotation.Nonnull private List triggers = new ArrayList<>(); public static final String JSON_PROPERTY_ACTIONS = "actions"; + @jakarta.annotation.Nonnull private List actions = new ArrayList<>(); public SubFormFieldRule() { @@ -75,7 +79,7 @@ static public SubFormFieldRule init(HashMap data) throws Exception { ); } - public SubFormFieldRule id(String id) { + public SubFormFieldRule id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -95,12 +99,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SubFormFieldRule triggerOperator(String triggerOperator) { + public SubFormFieldRule triggerOperator(@jakarta.annotation.Nonnull String triggerOperator) { this.triggerOperator = triggerOperator; return this; } @@ -120,12 +124,12 @@ public String getTriggerOperator() { @JsonProperty(JSON_PROPERTY_TRIGGER_OPERATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriggerOperator(String triggerOperator) { + public void setTriggerOperator(@jakarta.annotation.Nonnull String triggerOperator) { this.triggerOperator = triggerOperator; } - public SubFormFieldRule triggers(List triggers) { + public SubFormFieldRule triggers(@jakarta.annotation.Nonnull List triggers) { this.triggers = triggers; return this; } @@ -153,12 +157,12 @@ public List getTriggers() { @JsonProperty(JSON_PROPERTY_TRIGGERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTriggers(List triggers) { + public void setTriggers(@jakarta.annotation.Nonnull List triggers) { this.triggers = triggers; } - public SubFormFieldRule actions(List actions) { + public SubFormFieldRule actions(@jakarta.annotation.Nonnull List actions) { this.actions = actions; return this; } @@ -186,7 +190,7 @@ public List getActions() { @JsonProperty(JSON_PROPERTY_ACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setActions(List actions) { + public void setActions(@jakarta.annotation.Nonnull List actions) { this.actions = actions; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java index 7aebfc1c6..096164a36 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java @@ -38,19 +38,22 @@ SubFormFieldRuleAction.JSON_PROPERTY_FIELD_ID, SubFormFieldRuleAction.JSON_PROPERTY_GROUP_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldRuleAction { public static final String JSON_PROPERTY_HIDDEN = "hidden"; + @jakarta.annotation.Nonnull private Boolean hidden; /** * Gets or Sets type */ public enum TypeEnum { - FIELD_VISIBILITY("change-field-visibility"), + CHANGE_FIELD_VISIBILITY(String.valueOf("change-field-visibility")), + FIELD_VISIBILITY(String.valueOf("change-field-visibility")), - GROUP_VISIBILITY("change-group-visibility"); + CHANGE_GROUP_VISIBILITY(String.valueOf("change-group-visibility")), + GROUP_VISIBILITY(String.valueOf("change-group-visibility")); private String value; @@ -80,12 +83,15 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_FIELD_ID = "field_id"; + @jakarta.annotation.Nullable private String fieldId; public static final String JSON_PROPERTY_GROUP_ID = "group_id"; + @jakarta.annotation.Nullable private String groupId; public SubFormFieldRuleAction() { @@ -106,7 +112,7 @@ static public SubFormFieldRuleAction init(HashMap data) throws Exception { ); } - public SubFormFieldRuleAction hidden(Boolean hidden) { + public SubFormFieldRuleAction hidden(@jakarta.annotation.Nonnull Boolean hidden) { this.hidden = hidden; return this; } @@ -126,12 +132,12 @@ public Boolean getHidden() { @JsonProperty(JSON_PROPERTY_HIDDEN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHidden(Boolean hidden) { + public void setHidden(@jakarta.annotation.Nonnull Boolean hidden) { this.hidden = hidden; } - public SubFormFieldRuleAction type(TypeEnum type) { + public SubFormFieldRuleAction type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -151,12 +157,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public SubFormFieldRuleAction fieldId(String fieldId) { + public SubFormFieldRuleAction fieldId(@jakarta.annotation.Nullable String fieldId) { this.fieldId = fieldId; return this; } @@ -176,12 +182,12 @@ public String getFieldId() { @JsonProperty(JSON_PROPERTY_FIELD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldId(String fieldId) { + public void setFieldId(@jakarta.annotation.Nullable String fieldId) { this.fieldId = fieldId; } - public SubFormFieldRuleAction groupId(String groupId) { + public SubFormFieldRuleAction groupId(@jakarta.annotation.Nullable String groupId) { this.groupId = groupId; return this; } @@ -201,7 +207,7 @@ public String getGroupId() { @JsonProperty(JSON_PROPERTY_GROUP_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupId(String groupId) { + public void setGroupId(@jakarta.annotation.Nullable String groupId) { this.groupId = groupId; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java index 466d6192f..d29de9d18 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java @@ -40,25 +40,26 @@ SubFormFieldRuleTrigger.JSON_PROPERTY_VALUE, SubFormFieldRuleTrigger.JSON_PROPERTY_VALUES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubFormFieldRuleTrigger { public static final String JSON_PROPERTY_ID = "id"; + @jakarta.annotation.Nonnull private String id; /** * Different field types allow different `operator` values: - Field type of **text**: - **is**: exact match - **not**: not exact match - **match**: regular expression, without /. Example: - OK `[a-zA-Z0-9]` - Not OK `/[a-zA-Z0-9]/` - Field type of **dropdown**: - **is**: exact match, single value - **not**: not exact match, single value - **any**: exact match, array of values. - **none**: not exact match, array of values. - Field type of **checkbox**: - **is**: exact match, single value - **not**: not exact match, single value - Field type of **radio**: - **is**: exact match, single value - **not**: not exact match, single value */ public enum OperatorEnum { - ANY("any"), + ANY(String.valueOf("any")), - IS("is"), + IS(String.valueOf("is")), - MATCH("match"), + MATCH(String.valueOf("match")), - NONE("none"), + NONE(String.valueOf("none")), - NOT("not"); + NOT(String.valueOf("not")); private String value; @@ -88,12 +89,15 @@ public static OperatorEnum fromValue(String value) { } public static final String JSON_PROPERTY_OPERATOR = "operator"; + @jakarta.annotation.Nonnull private OperatorEnum operator; public static final String JSON_PROPERTY_VALUE = "value"; + @jakarta.annotation.Nullable private String value; public static final String JSON_PROPERTY_VALUES = "values"; + @jakarta.annotation.Nullable private List values = null; public SubFormFieldRuleTrigger() { @@ -114,7 +118,7 @@ static public SubFormFieldRuleTrigger init(HashMap data) throws Exception { ); } - public SubFormFieldRuleTrigger id(String id) { + public SubFormFieldRuleTrigger id(@jakarta.annotation.Nonnull String id) { this.id = id; return this; } @@ -134,12 +138,12 @@ public String getId() { @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { + public void setId(@jakarta.annotation.Nonnull String id) { this.id = id; } - public SubFormFieldRuleTrigger operator(OperatorEnum operator) { + public SubFormFieldRuleTrigger operator(@jakarta.annotation.Nonnull OperatorEnum operator) { this.operator = operator; return this; } @@ -159,12 +163,12 @@ public OperatorEnum getOperator() { @JsonProperty(JSON_PROPERTY_OPERATOR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOperator(OperatorEnum operator) { + public void setOperator(@jakarta.annotation.Nonnull OperatorEnum operator) { this.operator = operator; } - public SubFormFieldRuleTrigger value(String value) { + public SubFormFieldRuleTrigger value(@jakarta.annotation.Nullable String value) { this.value = value; return this; } @@ -184,12 +188,12 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(String value) { + public void setValue(@jakarta.annotation.Nullable String value) { this.value = value; } - public SubFormFieldRuleTrigger values(List values) { + public SubFormFieldRuleTrigger values(@jakarta.annotation.Nullable List values) { this.values = values; return this; } @@ -217,7 +221,7 @@ public List getValues() { @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValues(List values) { + public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java index a0a521746..2a37ad187 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java @@ -48,7 +48,7 @@ SubFormFieldsPerDocumentBase.JSON_PROPERTY_NAME, SubFormFieldsPerDocumentBase.JSON_PROPERTY_PAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -69,36 +69,47 @@ public class SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_DOCUMENT_INDEX = "document_index"; + @jakarta.annotation.Nonnull private Integer documentIndex; public static final String JSON_PROPERTY_API_ID = "api_id"; + @jakarta.annotation.Nonnull private String apiId; public static final String JSON_PROPERTY_HEIGHT = "height"; + @jakarta.annotation.Nonnull private Integer height; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nonnull private Boolean required; public static final String JSON_PROPERTY_SIGNER = "signer"; + @jakarta.annotation.Nonnull private String signer; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_WIDTH = "width"; + @jakarta.annotation.Nonnull private Integer width; public static final String JSON_PROPERTY_X = "x"; + @jakarta.annotation.Nonnull private Integer x; public static final String JSON_PROPERTY_Y = "y"; + @jakarta.annotation.Nonnull private Integer y; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_PAGE = "page"; + @jakarta.annotation.Nullable private Integer page; public SubFormFieldsPerDocumentBase() { @@ -119,7 +130,7 @@ static public SubFormFieldsPerDocumentBase init(HashMap data) throws Exception { ); } - public SubFormFieldsPerDocumentBase documentIndex(Integer documentIndex) { + public SubFormFieldsPerDocumentBase documentIndex(@jakarta.annotation.Nonnull Integer documentIndex) { this.documentIndex = documentIndex; return this; } @@ -139,12 +150,12 @@ public Integer getDocumentIndex() { @JsonProperty(JSON_PROPERTY_DOCUMENT_INDEX) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDocumentIndex(Integer documentIndex) { + public void setDocumentIndex(@jakarta.annotation.Nonnull Integer documentIndex) { this.documentIndex = documentIndex; } - public SubFormFieldsPerDocumentBase apiId(String apiId) { + public SubFormFieldsPerDocumentBase apiId(@jakarta.annotation.Nonnull String apiId) { this.apiId = apiId; return this; } @@ -164,12 +175,12 @@ public String getApiId() { @JsonProperty(JSON_PROPERTY_API_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setApiId(String apiId) { + public void setApiId(@jakarta.annotation.Nonnull String apiId) { this.apiId = apiId; } - public SubFormFieldsPerDocumentBase height(Integer height) { + public SubFormFieldsPerDocumentBase height(@jakarta.annotation.Nonnull Integer height) { this.height = height; return this; } @@ -189,12 +200,12 @@ public Integer getHeight() { @JsonProperty(JSON_PROPERTY_HEIGHT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setHeight(Integer height) { + public void setHeight(@jakarta.annotation.Nonnull Integer height) { this.height = height; } - public SubFormFieldsPerDocumentBase required(Boolean required) { + public SubFormFieldsPerDocumentBase required(@jakarta.annotation.Nonnull Boolean required) { this.required = required; return this; } @@ -214,12 +225,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nonnull Boolean required) { this.required = required; } - public SubFormFieldsPerDocumentBase signer(String signer) { + public SubFormFieldsPerDocumentBase signer(@jakarta.annotation.Nonnull String signer) { this.signer = signer; return this; } @@ -243,7 +254,7 @@ public String getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigner(String signer) { + public void setSigner(@jakarta.annotation.Nonnull String signer) { this.signer = signer; } @@ -252,7 +263,7 @@ public void setSigner(Integer signer) { } - public SubFormFieldsPerDocumentBase type(String type) { + public SubFormFieldsPerDocumentBase type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -272,12 +283,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentBase width(Integer width) { + public SubFormFieldsPerDocumentBase width(@jakarta.annotation.Nonnull Integer width) { this.width = width; return this; } @@ -297,12 +308,12 @@ public Integer getWidth() { @JsonProperty(JSON_PROPERTY_WIDTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWidth(Integer width) { + public void setWidth(@jakarta.annotation.Nonnull Integer width) { this.width = width; } - public SubFormFieldsPerDocumentBase x(Integer x) { + public SubFormFieldsPerDocumentBase x(@jakarta.annotation.Nonnull Integer x) { this.x = x; return this; } @@ -322,12 +333,12 @@ public Integer getX() { @JsonProperty(JSON_PROPERTY_X) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setX(Integer x) { + public void setX(@jakarta.annotation.Nonnull Integer x) { this.x = x; } - public SubFormFieldsPerDocumentBase y(Integer y) { + public SubFormFieldsPerDocumentBase y(@jakarta.annotation.Nonnull Integer y) { this.y = y; return this; } @@ -347,12 +358,12 @@ public Integer getY() { @JsonProperty(JSON_PROPERTY_Y) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setY(Integer y) { + public void setY(@jakarta.annotation.Nonnull Integer y) { this.y = y; } - public SubFormFieldsPerDocumentBase name(String name) { + public SubFormFieldsPerDocumentBase name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -372,12 +383,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public SubFormFieldsPerDocumentBase page(Integer page) { + public SubFormFieldsPerDocumentBase page(@jakarta.annotation.Nullable Integer page) { this.page = page; return this; } @@ -397,7 +408,7 @@ public Integer getPage() { @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPage(Integer page) { + public void setPage(@jakarta.annotation.Nullable Integer page) { this.page = page; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java index 25cc889d0..660550c4d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentCheckbox.JSON_PROPERTY_IS_CHECKED, SubFormFieldsPerDocumentCheckbox.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -50,12 +50,15 @@ public class SubFormFieldsPerDocumentCheckbox extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "checkbox"; public static final String JSON_PROPERTY_IS_CHECKED = "is_checked"; + @jakarta.annotation.Nonnull private Boolean isChecked; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public SubFormFieldsPerDocumentCheckbox() { @@ -76,7 +79,7 @@ static public SubFormFieldsPerDocumentCheckbox init(HashMap data) throws Excepti ); } - public SubFormFieldsPerDocumentCheckbox type(String type) { + public SubFormFieldsPerDocumentCheckbox type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -96,12 +99,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentCheckbox isChecked(Boolean isChecked) { + public SubFormFieldsPerDocumentCheckbox isChecked(@jakarta.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; return this; } @@ -121,12 +124,12 @@ public Boolean getIsChecked() { @JsonProperty(JSON_PROPERTY_IS_CHECKED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsChecked(Boolean isChecked) { + public void setIsChecked(@jakarta.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; } - public SubFormFieldsPerDocumentCheckbox group(String group) { + public SubFormFieldsPerDocumentCheckbox group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -146,7 +149,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java index ea0b0dfc6..6275827fe 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SubFormFieldsPerDocumentCheckboxMerge.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class SubFormFieldsPerDocumentCheckboxMerge extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "checkbox-merge"; public SubFormFieldsPerDocumentCheckboxMerge() { @@ -68,7 +69,7 @@ static public SubFormFieldsPerDocumentCheckboxMerge init(HashMap data) throws Ex ); } - public SubFormFieldsPerDocumentCheckboxMerge type(String type) { + public SubFormFieldsPerDocumentCheckboxMerge type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java index ff673233e..314aef5ae 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentDateSigned.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentDateSigned.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -50,43 +50,44 @@ public class SubFormFieldsPerDocumentDateSigned extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "date_signed"; /** * Font family for the field. */ public enum FontFamilyEnum { - HELVETICA("helvetica"), + HELVETICA(String.valueOf("helvetica")), - ARIAL("arial"), + ARIAL(String.valueOf("arial")), - COURIER("courier"), + COURIER(String.valueOf("courier")), - CALIBRI("calibri"), + CALIBRI(String.valueOf("calibri")), - CAMBRIA("cambria"), + CAMBRIA(String.valueOf("cambria")), - GEORGIA("georgia"), + GEORGIA(String.valueOf("georgia")), - TIMES("times"), + TIMES(String.valueOf("times")), - TREBUCHET("trebuchet"), + TREBUCHET(String.valueOf("trebuchet")), - VERDANA("verdana"), + VERDANA(String.valueOf("verdana")), - ROBOTO("roboto"), + ROBOTO(String.valueOf("roboto")), - ROBOTO_MONO("robotoMono"), + ROBOTO_MONO(String.valueOf("robotoMono")), - NOTO_SANS("notoSans"), + NOTO_SANS(String.valueOf("notoSans")), - NOTO_SERIF("notoSerif"), + NOTO_SERIF(String.valueOf("notoSerif")), - NOTO_CJK_JP_REGULAR("notoCJK-JP-Regular"), + NOTO_CJK_JP_REGULAR(String.valueOf("notoCJK-JP-Regular")), - NOTO_HEBREW_REGULAR("notoHebrew-Regular"), + NOTO_HEBREW_REGULAR(String.valueOf("notoHebrew-Regular")), - NOTO_SAN_THAI_MERGED("notoSanThaiMerged"); + NOTO_SAN_THAI_MERGED(String.valueOf("notoSanThaiMerged")); private String value; @@ -116,9 +117,11 @@ public static FontFamilyEnum fromValue(String value) { } public static final String JSON_PROPERTY_FONT_FAMILY = "font_family"; + @jakarta.annotation.Nullable private FontFamilyEnum fontFamily; public static final String JSON_PROPERTY_FONT_SIZE = "font_size"; + @jakarta.annotation.Nullable private Integer fontSize = 12; public SubFormFieldsPerDocumentDateSigned() { @@ -139,7 +142,7 @@ static public SubFormFieldsPerDocumentDateSigned init(HashMap data) throws Excep ); } - public SubFormFieldsPerDocumentDateSigned type(String type) { + public SubFormFieldsPerDocumentDateSigned type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -159,12 +162,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentDateSigned fontFamily(FontFamilyEnum fontFamily) { + public SubFormFieldsPerDocumentDateSigned fontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; return this; } @@ -184,12 +187,12 @@ public FontFamilyEnum getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(FontFamilyEnum fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; } - public SubFormFieldsPerDocumentDateSigned fontSize(Integer fontSize) { + public SubFormFieldsPerDocumentDateSigned fontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; return this; } @@ -209,7 +212,7 @@ public Integer getFontSize() { @JsonProperty(JSON_PROPERTY_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontSize(Integer fontSize) { + public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java index ce35e13ab..154fec957 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java @@ -45,7 +45,7 @@ SubFormFieldsPerDocumentDropdown.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentDropdown.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -54,49 +54,52 @@ public class SubFormFieldsPerDocumentDropdown extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "dropdown"; public static final String JSON_PROPERTY_OPTIONS = "options"; + @jakarta.annotation.Nonnull private List options = new ArrayList<>(); public static final String JSON_PROPERTY_CONTENT = "content"; + @jakarta.annotation.Nullable private String content; /** * Font family for the field. */ public enum FontFamilyEnum { - HELVETICA("helvetica"), + HELVETICA(String.valueOf("helvetica")), - ARIAL("arial"), + ARIAL(String.valueOf("arial")), - COURIER("courier"), + COURIER(String.valueOf("courier")), - CALIBRI("calibri"), + CALIBRI(String.valueOf("calibri")), - CAMBRIA("cambria"), + CAMBRIA(String.valueOf("cambria")), - GEORGIA("georgia"), + GEORGIA(String.valueOf("georgia")), - TIMES("times"), + TIMES(String.valueOf("times")), - TREBUCHET("trebuchet"), + TREBUCHET(String.valueOf("trebuchet")), - VERDANA("verdana"), + VERDANA(String.valueOf("verdana")), - ROBOTO("roboto"), + ROBOTO(String.valueOf("roboto")), - ROBOTO_MONO("robotoMono"), + ROBOTO_MONO(String.valueOf("robotoMono")), - NOTO_SANS("notoSans"), + NOTO_SANS(String.valueOf("notoSans")), - NOTO_SERIF("notoSerif"), + NOTO_SERIF(String.valueOf("notoSerif")), - NOTO_CJK_JP_REGULAR("notoCJK-JP-Regular"), + NOTO_CJK_JP_REGULAR(String.valueOf("notoCJK-JP-Regular")), - NOTO_HEBREW_REGULAR("notoHebrew-Regular"), + NOTO_HEBREW_REGULAR(String.valueOf("notoHebrew-Regular")), - NOTO_SAN_THAI_MERGED("notoSanThaiMerged"); + NOTO_SAN_THAI_MERGED(String.valueOf("notoSanThaiMerged")); private String value; @@ -126,9 +129,11 @@ public static FontFamilyEnum fromValue(String value) { } public static final String JSON_PROPERTY_FONT_FAMILY = "font_family"; + @jakarta.annotation.Nullable private FontFamilyEnum fontFamily; public static final String JSON_PROPERTY_FONT_SIZE = "font_size"; + @jakarta.annotation.Nullable private Integer fontSize = 12; public SubFormFieldsPerDocumentDropdown() { @@ -149,7 +154,7 @@ static public SubFormFieldsPerDocumentDropdown init(HashMap data) throws Excepti ); } - public SubFormFieldsPerDocumentDropdown type(String type) { + public SubFormFieldsPerDocumentDropdown type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -169,12 +174,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentDropdown options(List options) { + public SubFormFieldsPerDocumentDropdown options(@jakarta.annotation.Nonnull List options) { this.options = options; return this; } @@ -202,12 +207,12 @@ public List getOptions() { @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOptions(List options) { + public void setOptions(@jakarta.annotation.Nonnull List options) { this.options = options; } - public SubFormFieldsPerDocumentDropdown content(String content) { + public SubFormFieldsPerDocumentDropdown content(@jakarta.annotation.Nullable String content) { this.content = content; return this; } @@ -227,12 +232,12 @@ public String getContent() { @JsonProperty(JSON_PROPERTY_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContent(String content) { + public void setContent(@jakarta.annotation.Nullable String content) { this.content = content; } - public SubFormFieldsPerDocumentDropdown fontFamily(FontFamilyEnum fontFamily) { + public SubFormFieldsPerDocumentDropdown fontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; return this; } @@ -252,12 +257,12 @@ public FontFamilyEnum getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(FontFamilyEnum fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; } - public SubFormFieldsPerDocumentDropdown fontSize(Integer fontSize) { + public SubFormFieldsPerDocumentDropdown fontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; return this; } @@ -277,7 +282,7 @@ public Integer getFontSize() { @JsonProperty(JSON_PROPERTY_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontSize(Integer fontSize) { + public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java index 44cb48384..491da0641 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java @@ -43,7 +43,7 @@ SubFormFieldsPerDocumentHyperlink.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentHyperlink.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -52,49 +52,52 @@ public class SubFormFieldsPerDocumentHyperlink extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "hyperlink"; public static final String JSON_PROPERTY_CONTENT = "content"; + @jakarta.annotation.Nonnull private String content; public static final String JSON_PROPERTY_CONTENT_URL = "content_url"; + @jakarta.annotation.Nonnull private String contentUrl; /** * Font family for the field. */ public enum FontFamilyEnum { - HELVETICA("helvetica"), + HELVETICA(String.valueOf("helvetica")), - ARIAL("arial"), + ARIAL(String.valueOf("arial")), - COURIER("courier"), + COURIER(String.valueOf("courier")), - CALIBRI("calibri"), + CALIBRI(String.valueOf("calibri")), - CAMBRIA("cambria"), + CAMBRIA(String.valueOf("cambria")), - GEORGIA("georgia"), + GEORGIA(String.valueOf("georgia")), - TIMES("times"), + TIMES(String.valueOf("times")), - TREBUCHET("trebuchet"), + TREBUCHET(String.valueOf("trebuchet")), - VERDANA("verdana"), + VERDANA(String.valueOf("verdana")), - ROBOTO("roboto"), + ROBOTO(String.valueOf("roboto")), - ROBOTO_MONO("robotoMono"), + ROBOTO_MONO(String.valueOf("robotoMono")), - NOTO_SANS("notoSans"), + NOTO_SANS(String.valueOf("notoSans")), - NOTO_SERIF("notoSerif"), + NOTO_SERIF(String.valueOf("notoSerif")), - NOTO_CJK_JP_REGULAR("notoCJK-JP-Regular"), + NOTO_CJK_JP_REGULAR(String.valueOf("notoCJK-JP-Regular")), - NOTO_HEBREW_REGULAR("notoHebrew-Regular"), + NOTO_HEBREW_REGULAR(String.valueOf("notoHebrew-Regular")), - NOTO_SAN_THAI_MERGED("notoSanThaiMerged"); + NOTO_SAN_THAI_MERGED(String.valueOf("notoSanThaiMerged")); private String value; @@ -124,9 +127,11 @@ public static FontFamilyEnum fromValue(String value) { } public static final String JSON_PROPERTY_FONT_FAMILY = "font_family"; + @jakarta.annotation.Nullable private FontFamilyEnum fontFamily; public static final String JSON_PROPERTY_FONT_SIZE = "font_size"; + @jakarta.annotation.Nullable private Integer fontSize = 12; public SubFormFieldsPerDocumentHyperlink() { @@ -147,7 +152,7 @@ static public SubFormFieldsPerDocumentHyperlink init(HashMap data) throws Except ); } - public SubFormFieldsPerDocumentHyperlink type(String type) { + public SubFormFieldsPerDocumentHyperlink type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -167,12 +172,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentHyperlink content(String content) { + public SubFormFieldsPerDocumentHyperlink content(@jakarta.annotation.Nonnull String content) { this.content = content; return this; } @@ -192,12 +197,12 @@ public String getContent() { @JsonProperty(JSON_PROPERTY_CONTENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContent(String content) { + public void setContent(@jakarta.annotation.Nonnull String content) { this.content = content; } - public SubFormFieldsPerDocumentHyperlink contentUrl(String contentUrl) { + public SubFormFieldsPerDocumentHyperlink contentUrl(@jakarta.annotation.Nonnull String contentUrl) { this.contentUrl = contentUrl; return this; } @@ -217,12 +222,12 @@ public String getContentUrl() { @JsonProperty(JSON_PROPERTY_CONTENT_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setContentUrl(String contentUrl) { + public void setContentUrl(@jakarta.annotation.Nonnull String contentUrl) { this.contentUrl = contentUrl; } - public SubFormFieldsPerDocumentHyperlink fontFamily(FontFamilyEnum fontFamily) { + public SubFormFieldsPerDocumentHyperlink fontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; return this; } @@ -242,12 +247,12 @@ public FontFamilyEnum getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(FontFamilyEnum fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; } - public SubFormFieldsPerDocumentHyperlink fontSize(Integer fontSize) { + public SubFormFieldsPerDocumentHyperlink fontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; return this; } @@ -267,7 +272,7 @@ public Integer getFontSize() { @JsonProperty(JSON_PROPERTY_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontSize(Integer fontSize) { + public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java index 886c59fe8..9c522f0f4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SubFormFieldsPerDocumentInitials.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class SubFormFieldsPerDocumentInitials extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "initials"; public SubFormFieldsPerDocumentInitials() { @@ -68,7 +69,7 @@ static public SubFormFieldsPerDocumentInitials init(HashMap data) throws Excepti ); } - public SubFormFieldsPerDocumentInitials type(String type) { + public SubFormFieldsPerDocumentInitials type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java index b21b9da60..e2db055cd 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentRadio.JSON_PROPERTY_GROUP, SubFormFieldsPerDocumentRadio.JSON_PROPERTY_IS_CHECKED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -50,12 +50,15 @@ public class SubFormFieldsPerDocumentRadio extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "radio"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nonnull private String group; public static final String JSON_PROPERTY_IS_CHECKED = "is_checked"; + @jakarta.annotation.Nonnull private Boolean isChecked; public SubFormFieldsPerDocumentRadio() { @@ -76,7 +79,7 @@ static public SubFormFieldsPerDocumentRadio init(HashMap data) throws Exception ); } - public SubFormFieldsPerDocumentRadio type(String type) { + public SubFormFieldsPerDocumentRadio type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -96,12 +99,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentRadio group(String group) { + public SubFormFieldsPerDocumentRadio group(@jakarta.annotation.Nonnull String group) { this.group = group; return this; } @@ -121,12 +124,12 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; } - public SubFormFieldsPerDocumentRadio isChecked(Boolean isChecked) { + public SubFormFieldsPerDocumentRadio isChecked(@jakarta.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; return this; } @@ -146,7 +149,7 @@ public Boolean getIsChecked() { @JsonProperty(JSON_PROPERTY_IS_CHECKED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIsChecked(Boolean isChecked) { + public void setIsChecked(@jakarta.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java index fb56d681c..fd72a6bd2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SubFormFieldsPerDocumentSignature.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class SubFormFieldsPerDocumentSignature extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "signature"; public SubFormFieldsPerDocumentSignature() { @@ -68,7 +69,7 @@ static public SubFormFieldsPerDocumentSignature init(HashMap data) throws Except ); } - public SubFormFieldsPerDocumentSignature type(String type) { + public SubFormFieldsPerDocumentSignature type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java index 385ec2893..396c85dbe 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java @@ -49,7 +49,7 @@ SubFormFieldsPerDocumentText.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentText.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -58,43 +58,48 @@ public class SubFormFieldsPerDocumentText extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "text"; public static final String JSON_PROPERTY_PLACEHOLDER = "placeholder"; + @jakarta.annotation.Nullable private String placeholder; public static final String JSON_PROPERTY_AUTO_FILL_TYPE = "auto_fill_type"; + @jakarta.annotation.Nullable private String autoFillType; public static final String JSON_PROPERTY_LINK_ID = "link_id"; + @jakarta.annotation.Nullable private String linkId; public static final String JSON_PROPERTY_MASKED = "masked"; + @jakarta.annotation.Nullable private Boolean masked; /** * Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. **NOTE:** When using `custom_regex` you are required to pass a second parameter `validation_custom_regex` and you can optionally provide `validation_custom_regex_format_label` for the error message the user will see in case of an invalid value. */ public enum ValidationTypeEnum { - NUMBERS_ONLY("numbers_only"), + NUMBERS_ONLY(String.valueOf("numbers_only")), - LETTERS_ONLY("letters_only"), + LETTERS_ONLY(String.valueOf("letters_only")), - PHONE_NUMBER("phone_number"), + PHONE_NUMBER(String.valueOf("phone_number")), - BANK_ROUTING_NUMBER("bank_routing_number"), + BANK_ROUTING_NUMBER(String.valueOf("bank_routing_number")), - BANK_ACCOUNT_NUMBER("bank_account_number"), + BANK_ACCOUNT_NUMBER(String.valueOf("bank_account_number")), - EMAIL_ADDRESS("email_address"), + EMAIL_ADDRESS(String.valueOf("email_address")), - ZIP_CODE("zip_code"), + ZIP_CODE(String.valueOf("zip_code")), - SOCIAL_SECURITY_NUMBER("social_security_number"), + SOCIAL_SECURITY_NUMBER(String.valueOf("social_security_number")), - EMPLOYER_IDENTIFICATION_NUMBER("employer_identification_number"), + EMPLOYER_IDENTIFICATION_NUMBER(String.valueOf("employer_identification_number")), - CUSTOM_REGEX("custom_regex"); + CUSTOM_REGEX(String.valueOf("custom_regex")); private String value; @@ -124,52 +129,56 @@ public static ValidationTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_VALIDATION_TYPE = "validation_type"; + @jakarta.annotation.Nullable private ValidationTypeEnum validationType; public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX = "validation_custom_regex"; + @jakarta.annotation.Nullable private String validationCustomRegex; public static final String JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL = "validation_custom_regex_format_label"; + @jakarta.annotation.Nullable private String validationCustomRegexFormatLabel; public static final String JSON_PROPERTY_CONTENT = "content"; + @jakarta.annotation.Nullable private String content; /** * Font family for the field. */ public enum FontFamilyEnum { - HELVETICA("helvetica"), + HELVETICA(String.valueOf("helvetica")), - ARIAL("arial"), + ARIAL(String.valueOf("arial")), - COURIER("courier"), + COURIER(String.valueOf("courier")), - CALIBRI("calibri"), + CALIBRI(String.valueOf("calibri")), - CAMBRIA("cambria"), + CAMBRIA(String.valueOf("cambria")), - GEORGIA("georgia"), + GEORGIA(String.valueOf("georgia")), - TIMES("times"), + TIMES(String.valueOf("times")), - TREBUCHET("trebuchet"), + TREBUCHET(String.valueOf("trebuchet")), - VERDANA("verdana"), + VERDANA(String.valueOf("verdana")), - ROBOTO("roboto"), + ROBOTO(String.valueOf("roboto")), - ROBOTO_MONO("robotoMono"), + ROBOTO_MONO(String.valueOf("robotoMono")), - NOTO_SANS("notoSans"), + NOTO_SANS(String.valueOf("notoSans")), - NOTO_SERIF("notoSerif"), + NOTO_SERIF(String.valueOf("notoSerif")), - NOTO_CJK_JP_REGULAR("notoCJK-JP-Regular"), + NOTO_CJK_JP_REGULAR(String.valueOf("notoCJK-JP-Regular")), - NOTO_HEBREW_REGULAR("notoHebrew-Regular"), + NOTO_HEBREW_REGULAR(String.valueOf("notoHebrew-Regular")), - NOTO_SAN_THAI_MERGED("notoSanThaiMerged"); + NOTO_SAN_THAI_MERGED(String.valueOf("notoSanThaiMerged")); private String value; @@ -199,9 +208,11 @@ public static FontFamilyEnum fromValue(String value) { } public static final String JSON_PROPERTY_FONT_FAMILY = "font_family"; + @jakarta.annotation.Nullable private FontFamilyEnum fontFamily; public static final String JSON_PROPERTY_FONT_SIZE = "font_size"; + @jakarta.annotation.Nullable private Integer fontSize = 12; public SubFormFieldsPerDocumentText() { @@ -222,7 +233,7 @@ static public SubFormFieldsPerDocumentText init(HashMap data) throws Exception { ); } - public SubFormFieldsPerDocumentText type(String type) { + public SubFormFieldsPerDocumentText type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -242,12 +253,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentText placeholder(String placeholder) { + public SubFormFieldsPerDocumentText placeholder(@jakarta.annotation.Nullable String placeholder) { this.placeholder = placeholder; return this; } @@ -267,12 +278,12 @@ public String getPlaceholder() { @JsonProperty(JSON_PROPERTY_PLACEHOLDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPlaceholder(String placeholder) { + public void setPlaceholder(@jakarta.annotation.Nullable String placeholder) { this.placeholder = placeholder; } - public SubFormFieldsPerDocumentText autoFillType(String autoFillType) { + public SubFormFieldsPerDocumentText autoFillType(@jakarta.annotation.Nullable String autoFillType) { this.autoFillType = autoFillType; return this; } @@ -292,12 +303,12 @@ public String getAutoFillType() { @JsonProperty(JSON_PROPERTY_AUTO_FILL_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAutoFillType(String autoFillType) { + public void setAutoFillType(@jakarta.annotation.Nullable String autoFillType) { this.autoFillType = autoFillType; } - public SubFormFieldsPerDocumentText linkId(String linkId) { + public SubFormFieldsPerDocumentText linkId(@jakarta.annotation.Nullable String linkId) { this.linkId = linkId; return this; } @@ -317,12 +328,12 @@ public String getLinkId() { @JsonProperty(JSON_PROPERTY_LINK_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkId(String linkId) { + public void setLinkId(@jakarta.annotation.Nullable String linkId) { this.linkId = linkId; } - public SubFormFieldsPerDocumentText masked(Boolean masked) { + public SubFormFieldsPerDocumentText masked(@jakarta.annotation.Nullable Boolean masked) { this.masked = masked; return this; } @@ -342,12 +353,12 @@ public Boolean getMasked() { @JsonProperty(JSON_PROPERTY_MASKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMasked(Boolean masked) { + public void setMasked(@jakarta.annotation.Nullable Boolean masked) { this.masked = masked; } - public SubFormFieldsPerDocumentText validationType(ValidationTypeEnum validationType) { + public SubFormFieldsPerDocumentText validationType(@jakarta.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; return this; } @@ -367,12 +378,12 @@ public ValidationTypeEnum getValidationType() { @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationType(ValidationTypeEnum validationType) { + public void setValidationType(@jakarta.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; } - public SubFormFieldsPerDocumentText validationCustomRegex(String validationCustomRegex) { + public SubFormFieldsPerDocumentText validationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) { this.validationCustomRegex = validationCustomRegex; return this; } @@ -392,12 +403,12 @@ public String getValidationCustomRegex() { @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationCustomRegex(String validationCustomRegex) { + public void setValidationCustomRegex(@jakarta.annotation.Nullable String validationCustomRegex) { this.validationCustomRegex = validationCustomRegex; } - public SubFormFieldsPerDocumentText validationCustomRegexFormatLabel(String validationCustomRegexFormatLabel) { + public SubFormFieldsPerDocumentText validationCustomRegexFormatLabel(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) { this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel; return this; } @@ -417,12 +428,12 @@ public String getValidationCustomRegexFormatLabel() { @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationCustomRegexFormatLabel(String validationCustomRegexFormatLabel) { + public void setValidationCustomRegexFormatLabel(@jakarta.annotation.Nullable String validationCustomRegexFormatLabel) { this.validationCustomRegexFormatLabel = validationCustomRegexFormatLabel; } - public SubFormFieldsPerDocumentText content(String content) { + public SubFormFieldsPerDocumentText content(@jakarta.annotation.Nullable String content) { this.content = content; return this; } @@ -442,12 +453,12 @@ public String getContent() { @JsonProperty(JSON_PROPERTY_CONTENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContent(String content) { + public void setContent(@jakarta.annotation.Nullable String content) { this.content = content; } - public SubFormFieldsPerDocumentText fontFamily(FontFamilyEnum fontFamily) { + public SubFormFieldsPerDocumentText fontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; return this; } @@ -467,12 +478,12 @@ public FontFamilyEnum getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(FontFamilyEnum fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; } - public SubFormFieldsPerDocumentText fontSize(Integer fontSize) { + public SubFormFieldsPerDocumentText fontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; return this; } @@ -492,7 +503,7 @@ public Integer getFontSize() { @JsonProperty(JSON_PROPERTY_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontSize(Integer fontSize) { + public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java index 799a0efee..1024f05cc 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java @@ -41,7 +41,7 @@ SubFormFieldsPerDocumentTextMerge.JSON_PROPERTY_FONT_FAMILY, SubFormFieldsPerDocumentTextMerge.JSON_PROPERTY_FONT_SIZE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -50,43 +50,44 @@ public class SubFormFieldsPerDocumentTextMerge extends SubFormFieldsPerDocumentBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "text-merge"; /** * Font family for the field. */ public enum FontFamilyEnum { - HELVETICA("helvetica"), + HELVETICA(String.valueOf("helvetica")), - ARIAL("arial"), + ARIAL(String.valueOf("arial")), - COURIER("courier"), + COURIER(String.valueOf("courier")), - CALIBRI("calibri"), + CALIBRI(String.valueOf("calibri")), - CAMBRIA("cambria"), + CAMBRIA(String.valueOf("cambria")), - GEORGIA("georgia"), + GEORGIA(String.valueOf("georgia")), - TIMES("times"), + TIMES(String.valueOf("times")), - TREBUCHET("trebuchet"), + TREBUCHET(String.valueOf("trebuchet")), - VERDANA("verdana"), + VERDANA(String.valueOf("verdana")), - ROBOTO("roboto"), + ROBOTO(String.valueOf("roboto")), - ROBOTO_MONO("robotoMono"), + ROBOTO_MONO(String.valueOf("robotoMono")), - NOTO_SANS("notoSans"), + NOTO_SANS(String.valueOf("notoSans")), - NOTO_SERIF("notoSerif"), + NOTO_SERIF(String.valueOf("notoSerif")), - NOTO_CJK_JP_REGULAR("notoCJK-JP-Regular"), + NOTO_CJK_JP_REGULAR(String.valueOf("notoCJK-JP-Regular")), - NOTO_HEBREW_REGULAR("notoHebrew-Regular"), + NOTO_HEBREW_REGULAR(String.valueOf("notoHebrew-Regular")), - NOTO_SAN_THAI_MERGED("notoSanThaiMerged"); + NOTO_SAN_THAI_MERGED(String.valueOf("notoSanThaiMerged")); private String value; @@ -116,9 +117,11 @@ public static FontFamilyEnum fromValue(String value) { } public static final String JSON_PROPERTY_FONT_FAMILY = "font_family"; + @jakarta.annotation.Nullable private FontFamilyEnum fontFamily; public static final String JSON_PROPERTY_FONT_SIZE = "font_size"; + @jakarta.annotation.Nullable private Integer fontSize = 12; public SubFormFieldsPerDocumentTextMerge() { @@ -139,7 +142,7 @@ static public SubFormFieldsPerDocumentTextMerge init(HashMap data) throws Except ); } - public SubFormFieldsPerDocumentTextMerge type(String type) { + public SubFormFieldsPerDocumentTextMerge type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -159,12 +162,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public SubFormFieldsPerDocumentTextMerge fontFamily(FontFamilyEnum fontFamily) { + public SubFormFieldsPerDocumentTextMerge fontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; return this; } @@ -184,12 +187,12 @@ public FontFamilyEnum getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(FontFamilyEnum fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; } - public SubFormFieldsPerDocumentTextMerge fontSize(Integer fontSize) { + public SubFormFieldsPerDocumentTextMerge fontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; return this; } @@ -209,7 +212,7 @@ public Integer getFontSize() { @JsonProperty(JSON_PROPERTY_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontSize(Integer fontSize) { + public void setFontSize(@jakarta.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubMergeField.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubMergeField.java index cc612873d..9b039b46f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubMergeField.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubMergeField.java @@ -36,19 +36,20 @@ SubMergeField.JSON_PROPERTY_NAME, SubMergeField.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubMergeField { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; /** * The type of merge field. */ public enum TypeEnum { - TEXT("text"), + TEXT(String.valueOf("text")), - CHECKBOX("checkbox"); + CHECKBOX(String.valueOf("checkbox")); private String value; @@ -78,6 +79,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private TypeEnum type; public SubMergeField() { @@ -98,7 +100,7 @@ static public SubMergeField init(HashMap data) throws Exception { ); } - public SubMergeField name(String name) { + public SubMergeField name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -118,12 +120,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubMergeField type(TypeEnum type) { + public SubMergeField type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -143,7 +145,7 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOAuth.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOAuth.java index c9976269f..c5a779573 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOAuth.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOAuth.java @@ -38,31 +38,32 @@ SubOAuth.JSON_PROPERTY_CALLBACK_URL, SubOAuth.JSON_PROPERTY_SCOPES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubOAuth { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; + @jakarta.annotation.Nullable private String callbackUrl; /** * Gets or Sets scopes */ public enum ScopesEnum { - REQUEST_SIGNATURE("request_signature"), + REQUEST_SIGNATURE(String.valueOf("request_signature")), - BASIC_ACCOUNT_INFO("basic_account_info"), + BASIC_ACCOUNT_INFO(String.valueOf("basic_account_info")), - ACCOUNT_ACCESS("account_access"), + ACCOUNT_ACCESS(String.valueOf("account_access")), - SIGNATURE_REQUEST_ACCESS("signature_request_access"), + SIGNATURE_REQUEST_ACCESS(String.valueOf("signature_request_access")), - TEMPLATE_ACCESS("template_access"), + TEMPLATE_ACCESS(String.valueOf("template_access")), - TEAM_ACCESS("team_access"), + TEAM_ACCESS(String.valueOf("team_access")), - API_APP_ACCESS("api_app_access"), + API_APP_ACCESS(String.valueOf("api_app_access")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -92,6 +93,7 @@ public static ScopesEnum fromValue(String value) { } public static final String JSON_PROPERTY_SCOPES = "scopes"; + @jakarta.annotation.Nullable private List scopes = null; public SubOAuth() { @@ -112,7 +114,7 @@ static public SubOAuth init(HashMap data) throws Exception { ); } - public SubOAuth callbackUrl(String callbackUrl) { + public SubOAuth callbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -132,12 +134,12 @@ public String getCallbackUrl() { @JsonProperty(JSON_PROPERTY_CALLBACK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallbackUrl(String callbackUrl) { + public void setCallbackUrl(@jakarta.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; } - public SubOAuth scopes(List scopes) { + public SubOAuth scopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; return this; } @@ -165,7 +167,7 @@ public List getScopes() { @JsonProperty(JSON_PROPERTY_SCOPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setScopes(List scopes) { + public void setScopes(@jakarta.annotation.Nullable List scopes) { this.scopes = scopes; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOptions.java index 73d5df621..2ff1672a9 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubOptions.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ SubOptions.JSON_PROPERTY_CAN_INSERT_EVERYWHERE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubOptions { public static final String JSON_PROPERTY_CAN_INSERT_EVERYWHERE = "can_insert_everywhere"; + @jakarta.annotation.Nullable private Boolean canInsertEverywhere = false; public SubOptions() { @@ -59,7 +60,7 @@ static public SubOptions init(HashMap data) throws Exception { ); } - public SubOptions canInsertEverywhere(Boolean canInsertEverywhere) { + public SubOptions canInsertEverywhere(@jakarta.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; return this; } @@ -79,7 +80,7 @@ public Boolean getCanInsertEverywhere() { @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanInsertEverywhere(Boolean canInsertEverywhere) { + public void setCanInsertEverywhere(@jakarta.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java index 2120ea67b..e3906ba3f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java @@ -40,16 +40,19 @@ SubSignatureRequestGroupedSigners.JSON_PROPERTY_SIGNERS, SubSignatureRequestGroupedSigners.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSignatureRequestGroupedSigners { public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nonnull private String group; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nonnull private List signers = new ArrayList<>(); public static final String JSON_PROPERTY_ORDER = "order"; + @jakarta.annotation.Nullable private Integer order; public SubSignatureRequestGroupedSigners() { @@ -70,7 +73,7 @@ static public SubSignatureRequestGroupedSigners init(HashMap data) throws Except ); } - public SubSignatureRequestGroupedSigners group(String group) { + public SubSignatureRequestGroupedSigners group(@jakarta.annotation.Nonnull String group) { this.group = group; return this; } @@ -90,12 +93,12 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; } - public SubSignatureRequestGroupedSigners signers(List signers) { + public SubSignatureRequestGroupedSigners signers(@jakarta.annotation.Nonnull List signers) { this.signers = signers; return this; } @@ -123,12 +126,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nonnull List signers) { this.signers = signers; } - public SubSignatureRequestGroupedSigners order(Integer order) { + public SubSignatureRequestGroupedSigners order(@jakarta.annotation.Nullable Integer order) { this.order = order; return this; } @@ -148,7 +151,7 @@ public Integer getOrder() { @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrder(Integer order) { + public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java index d1900a147..c0d16fef9 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java @@ -40,31 +40,36 @@ SubSignatureRequestSigner.JSON_PROPERTY_SMS_PHONE_NUMBER, SubSignatureRequestSigner.JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSignatureRequestSigner { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public static final String JSON_PROPERTY_ORDER = "order"; + @jakarta.annotation.Nullable private Integer order; public static final String JSON_PROPERTY_PIN = "pin"; + @jakarta.annotation.Nullable private String pin; public static final String JSON_PROPERTY_SMS_PHONE_NUMBER = "sms_phone_number"; + @jakarta.annotation.Nullable private String smsPhoneNumber; /** * Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). */ public enum SmsPhoneNumberTypeEnum { - AUTHENTICATION("authentication"), + AUTHENTICATION(String.valueOf("authentication")), - DELIVERY("delivery"); + DELIVERY(String.valueOf("delivery")); private String value; @@ -94,6 +99,7 @@ public static SmsPhoneNumberTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE = "sms_phone_number_type"; + @jakarta.annotation.Nullable private SmsPhoneNumberTypeEnum smsPhoneNumberType; public SubSignatureRequestSigner() { @@ -114,7 +120,7 @@ static public SubSignatureRequestSigner init(HashMap data) throws Exception { ); } - public SubSignatureRequestSigner name(String name) { + public SubSignatureRequestSigner name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -134,12 +140,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubSignatureRequestSigner emailAddress(String emailAddress) { + public SubSignatureRequestSigner emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -159,12 +165,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } - public SubSignatureRequestSigner order(Integer order) { + public SubSignatureRequestSigner order(@jakarta.annotation.Nullable Integer order) { this.order = order; return this; } @@ -184,12 +190,12 @@ public Integer getOrder() { @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrder(Integer order) { + public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; } - public SubSignatureRequestSigner pin(String pin) { + public SubSignatureRequestSigner pin(@jakarta.annotation.Nullable String pin) { this.pin = pin; return this; } @@ -209,12 +215,12 @@ public String getPin() { @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPin(String pin) { + public void setPin(@jakarta.annotation.Nullable String pin) { this.pin = pin; } - public SubSignatureRequestSigner smsPhoneNumber(String smsPhoneNumber) { + public SubSignatureRequestSigner smsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; return this; } @@ -234,12 +240,12 @@ public String getSmsPhoneNumber() { @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsPhoneNumber(String smsPhoneNumber) { + public void setSmsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; } - public SubSignatureRequestSigner smsPhoneNumberType(SmsPhoneNumberTypeEnum smsPhoneNumberType) { + public SubSignatureRequestSigner smsPhoneNumberType(@jakarta.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { this.smsPhoneNumberType = smsPhoneNumberType; return this; } @@ -259,7 +265,7 @@ public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsPhoneNumberType(SmsPhoneNumberTypeEnum smsPhoneNumberType) { + public void setSmsPhoneNumberType(@jakarta.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { this.smsPhoneNumberType = smsPhoneNumberType; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java index 53222fa5f..c5c34786f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java @@ -40,31 +40,36 @@ SubSignatureRequestTemplateSigner.JSON_PROPERTY_SMS_PHONE_NUMBER, SubSignatureRequestTemplateSigner.JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSignatureRequestTemplateSigner { public static final String JSON_PROPERTY_ROLE = "role"; + @jakarta.annotation.Nonnull private String role; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public static final String JSON_PROPERTY_PIN = "pin"; + @jakarta.annotation.Nullable private String pin; public static final String JSON_PROPERTY_SMS_PHONE_NUMBER = "sms_phone_number"; + @jakarta.annotation.Nullable private String smsPhoneNumber; /** * Specifies the feature used with the `sms_phone_number`. Default `authentication`. If `authentication`, signer is sent a verification code via SMS that is required to access the document. If `delivery`, a link to complete the signature request is delivered via SMS (_and_ email). */ public enum SmsPhoneNumberTypeEnum { - AUTHENTICATION("authentication"), + AUTHENTICATION(String.valueOf("authentication")), - DELIVERY("delivery"); + DELIVERY(String.valueOf("delivery")); private String value; @@ -94,6 +99,7 @@ public static SmsPhoneNumberTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE = "sms_phone_number_type"; + @jakarta.annotation.Nullable private SmsPhoneNumberTypeEnum smsPhoneNumberType; public SubSignatureRequestTemplateSigner() { @@ -114,7 +120,7 @@ static public SubSignatureRequestTemplateSigner init(HashMap data) throws Except ); } - public SubSignatureRequestTemplateSigner role(String role) { + public SubSignatureRequestTemplateSigner role(@jakarta.annotation.Nonnull String role) { this.role = role; return this; } @@ -134,12 +140,12 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; } - public SubSignatureRequestTemplateSigner name(String name) { + public SubSignatureRequestTemplateSigner name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -159,12 +165,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubSignatureRequestTemplateSigner emailAddress(String emailAddress) { + public SubSignatureRequestTemplateSigner emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -184,12 +190,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } - public SubSignatureRequestTemplateSigner pin(String pin) { + public SubSignatureRequestTemplateSigner pin(@jakarta.annotation.Nullable String pin) { this.pin = pin; return this; } @@ -209,12 +215,12 @@ public String getPin() { @JsonProperty(JSON_PROPERTY_PIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPin(String pin) { + public void setPin(@jakarta.annotation.Nullable String pin) { this.pin = pin; } - public SubSignatureRequestTemplateSigner smsPhoneNumber(String smsPhoneNumber) { + public SubSignatureRequestTemplateSigner smsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; return this; } @@ -234,12 +240,12 @@ public String getSmsPhoneNumber() { @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsPhoneNumber(String smsPhoneNumber) { + public void setSmsPhoneNumber(@jakarta.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; } - public SubSignatureRequestTemplateSigner smsPhoneNumberType(SmsPhoneNumberTypeEnum smsPhoneNumberType) { + public SubSignatureRequestTemplateSigner smsPhoneNumberType(@jakarta.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { this.smsPhoneNumberType = smsPhoneNumberType; return this; } @@ -259,7 +265,7 @@ public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsPhoneNumberType(SmsPhoneNumberTypeEnum smsPhoneNumberType) { + public void setSmsPhoneNumberType(@jakarta.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { this.smsPhoneNumberType = smsPhoneNumberType; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSigningOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSigningOptions.java index 4e2c33cc5..8a194e4bf 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSigningOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubSigningOptions.java @@ -39,20 +39,20 @@ SubSigningOptions.JSON_PROPERTY_TYPE, SubSigningOptions.JSON_PROPERTY_UPLOAD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubSigningOptions { /** * The default type shown (limited to the listed types) */ public enum DefaultTypeEnum { - DRAW("draw"), + DRAW(String.valueOf("draw")), - PHONE("phone"), + PHONE(String.valueOf("phone")), - TYPE("type"), + TYPE(String.valueOf("type")), - UPLOAD("upload"); + UPLOAD(String.valueOf("upload")); private String value; @@ -82,18 +82,23 @@ public static DefaultTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_DEFAULT_TYPE = "default_type"; + @jakarta.annotation.Nonnull private DefaultTypeEnum defaultType; public static final String JSON_PROPERTY_DRAW = "draw"; + @jakarta.annotation.Nullable private Boolean draw = false; public static final String JSON_PROPERTY_PHONE = "phone"; + @jakarta.annotation.Nullable private Boolean phone = false; public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private Boolean type = false; public static final String JSON_PROPERTY_UPLOAD = "upload"; + @jakarta.annotation.Nullable private Boolean upload = false; public SubSigningOptions() { @@ -114,7 +119,7 @@ static public SubSigningOptions init(HashMap data) throws Exception { ); } - public SubSigningOptions defaultType(DefaultTypeEnum defaultType) { + public SubSigningOptions defaultType(@jakarta.annotation.Nonnull DefaultTypeEnum defaultType) { this.defaultType = defaultType; return this; } @@ -134,12 +139,12 @@ public DefaultTypeEnum getDefaultType() { @JsonProperty(JSON_PROPERTY_DEFAULT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDefaultType(DefaultTypeEnum defaultType) { + public void setDefaultType(@jakarta.annotation.Nonnull DefaultTypeEnum defaultType) { this.defaultType = defaultType; } - public SubSigningOptions draw(Boolean draw) { + public SubSigningOptions draw(@jakarta.annotation.Nullable Boolean draw) { this.draw = draw; return this; } @@ -159,12 +164,12 @@ public Boolean getDraw() { @JsonProperty(JSON_PROPERTY_DRAW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDraw(Boolean draw) { + public void setDraw(@jakarta.annotation.Nullable Boolean draw) { this.draw = draw; } - public SubSigningOptions phone(Boolean phone) { + public SubSigningOptions phone(@jakarta.annotation.Nullable Boolean phone) { this.phone = phone; return this; } @@ -184,12 +189,12 @@ public Boolean getPhone() { @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhone(Boolean phone) { + public void setPhone(@jakarta.annotation.Nullable Boolean phone) { this.phone = phone; } - public SubSigningOptions type(Boolean type) { + public SubSigningOptions type(@jakarta.annotation.Nullable Boolean type) { this.type = type; return this; } @@ -209,12 +214,12 @@ public Boolean getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(Boolean type) { + public void setType(@jakarta.annotation.Nullable Boolean type) { this.type = type; } - public SubSigningOptions upload(Boolean upload) { + public SubSigningOptions upload(@jakarta.annotation.Nullable Boolean upload) { this.upload = upload; return this; } @@ -234,7 +239,7 @@ public Boolean getUpload() { @JsonProperty(JSON_PROPERTY_UPLOAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpload(Boolean upload) { + public void setUpload(@jakarta.annotation.Nullable Boolean upload) { this.upload = upload; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTeamResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTeamResponse.java index e653cbb13..5ff941e7f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTeamResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTeamResponse.java @@ -36,13 +36,15 @@ SubTeamResponse.JSON_PROPERTY_TEAM_ID, SubTeamResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubTeamResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; + @jakarta.annotation.Nullable private String teamId; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public SubTeamResponse() { @@ -63,7 +65,7 @@ static public SubTeamResponse init(HashMap data) throws Exception { ); } - public SubTeamResponse teamId(String teamId) { + public SubTeamResponse teamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; return this; } @@ -83,12 +85,12 @@ public String getTeamId() { @JsonProperty(JSON_PROPERTY_TEAM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTeamId(String teamId) { + public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; } - public SubTeamResponse name(String name) { + public SubTeamResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -108,7 +110,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTemplateRole.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTemplateRole.java index 081d88d24..36ebe7ad3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTemplateRole.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubTemplateRole.java @@ -36,13 +36,15 @@ SubTemplateRole.JSON_PROPERTY_NAME, SubTemplateRole.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubTemplateRole { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ORDER = "order"; + @jakarta.annotation.Nullable private Integer order; public SubTemplateRole() { @@ -63,7 +65,7 @@ static public SubTemplateRole init(HashMap data) throws Exception { ); } - public SubTemplateRole name(String name) { + public SubTemplateRole name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -83,12 +85,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public SubTemplateRole order(Integer order) { + public SubTemplateRole order(@jakarta.annotation.Nullable Integer order) { this.order = order; return this; } @@ -108,7 +110,7 @@ public Integer getOrder() { @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrder(Integer order) { + public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java index bc3ea96e0..0e08dbdb8 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java @@ -37,16 +37,19 @@ SubUnclaimedDraftSigner.JSON_PROPERTY_NAME, SubUnclaimedDraftSigner.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubUnclaimedDraftSigner { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_ORDER = "order"; + @jakarta.annotation.Nullable private Integer order; public SubUnclaimedDraftSigner() { @@ -67,7 +70,7 @@ static public SubUnclaimedDraftSigner init(HashMap data) throws Exception { ); } - public SubUnclaimedDraftSigner emailAddress(String emailAddress) { + public SubUnclaimedDraftSigner emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -87,12 +90,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } - public SubUnclaimedDraftSigner name(String name) { + public SubUnclaimedDraftSigner name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -112,12 +115,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubUnclaimedDraftSigner order(Integer order) { + public SubUnclaimedDraftSigner order(@jakarta.annotation.Nullable Integer order) { this.order = order; return this; } @@ -137,7 +140,7 @@ public Integer getOrder() { @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrder(Integer order) { + public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java index 2b7d02ca5..7cb716183 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java @@ -37,16 +37,19 @@ SubUnclaimedDraftTemplateSigner.JSON_PROPERTY_NAME, SubUnclaimedDraftTemplateSigner.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubUnclaimedDraftTemplateSigner { public static final String JSON_PROPERTY_ROLE = "role"; + @jakarta.annotation.Nonnull private String role; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nonnull private String name; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nonnull private String emailAddress; public SubUnclaimedDraftTemplateSigner() { @@ -67,7 +70,7 @@ static public SubUnclaimedDraftTemplateSigner init(HashMap data) throws Exceptio ); } - public SubUnclaimedDraftTemplateSigner role(String role) { + public SubUnclaimedDraftTemplateSigner role(@jakarta.annotation.Nonnull String role) { this.role = role; return this; } @@ -87,12 +90,12 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nonnull String role) { this.role = role; } - public SubUnclaimedDraftTemplateSigner name(String name) { + public SubUnclaimedDraftTemplateSigner name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -112,12 +115,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; } - public SubUnclaimedDraftTemplateSigner emailAddress(String emailAddress) { + public SubUnclaimedDraftTemplateSigner emailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -137,7 +140,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java index a14d8cc1a..0b98b9da3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java @@ -49,19 +49,20 @@ SubWhiteLabelingOptions.JSON_PROPERTY_TEXT_COLOR2, SubWhiteLabelingOptions.JSON_PROPERTY_RESET_TO_DEFAULT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class SubWhiteLabelingOptions { public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color"; + @jakarta.annotation.Nullable private String headerBackgroundColor = "#1a1a1a"; /** * Gets or Sets legalVersion */ public enum LegalVersionEnum { - TERMS1("terms1"), + TERMS1(String.valueOf("terms1")), - TERMS2("terms2"); + TERMS2(String.valueOf("terms2")); private String value; @@ -91,45 +92,59 @@ public static LegalVersionEnum fromValue(String value) { } public static final String JSON_PROPERTY_LEGAL_VERSION = "legal_version"; + @jakarta.annotation.Nullable private LegalVersionEnum legalVersion = LegalVersionEnum.TERMS1; public static final String JSON_PROPERTY_LINK_COLOR = "link_color"; + @jakarta.annotation.Nullable private String linkColor = "#0061FE"; public static final String JSON_PROPERTY_PAGE_BACKGROUND_COLOR = "page_background_color"; + @jakarta.annotation.Nullable private String pageBackgroundColor = "#f7f8f9"; public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR = "primary_button_color"; + @jakarta.annotation.Nullable private String primaryButtonColor = "#0061FE"; public static final String JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER = "primary_button_color_hover"; + @jakarta.annotation.Nullable private String primaryButtonColorHover = "#0061FE"; public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR = "primary_button_text_color"; + @jakarta.annotation.Nullable private String primaryButtonTextColor = "#ffffff"; public static final String JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER = "primary_button_text_color_hover"; + @jakarta.annotation.Nullable private String primaryButtonTextColorHover = "#ffffff"; public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR = "secondary_button_color"; + @jakarta.annotation.Nullable private String secondaryButtonColor = "#ffffff"; public static final String JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER = "secondary_button_color_hover"; + @jakarta.annotation.Nullable private String secondaryButtonColorHover = "#ffffff"; public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR = "secondary_button_text_color"; + @jakarta.annotation.Nullable private String secondaryButtonTextColor = "#0061FE"; public static final String JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER = "secondary_button_text_color_hover"; + @jakarta.annotation.Nullable private String secondaryButtonTextColorHover = "#0061FE"; public static final String JSON_PROPERTY_TEXT_COLOR1 = "text_color1"; + @jakarta.annotation.Nullable private String textColor1 = "#808080"; public static final String JSON_PROPERTY_TEXT_COLOR2 = "text_color2"; + @jakarta.annotation.Nullable private String textColor2 = "#ffffff"; public static final String JSON_PROPERTY_RESET_TO_DEFAULT = "reset_to_default"; + @jakarta.annotation.Nullable private Boolean resetToDefault; public SubWhiteLabelingOptions() { @@ -150,7 +165,7 @@ static public SubWhiteLabelingOptions init(HashMap data) throws Exception { ); } - public SubWhiteLabelingOptions headerBackgroundColor(String headerBackgroundColor) { + public SubWhiteLabelingOptions headerBackgroundColor(@jakarta.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; return this; } @@ -170,12 +185,12 @@ public String getHeaderBackgroundColor() { @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHeaderBackgroundColor(String headerBackgroundColor) { + public void setHeaderBackgroundColor(@jakarta.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; } - public SubWhiteLabelingOptions legalVersion(LegalVersionEnum legalVersion) { + public SubWhiteLabelingOptions legalVersion(@jakarta.annotation.Nullable LegalVersionEnum legalVersion) { this.legalVersion = legalVersion; return this; } @@ -195,12 +210,12 @@ public LegalVersionEnum getLegalVersion() { @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLegalVersion(LegalVersionEnum legalVersion) { + public void setLegalVersion(@jakarta.annotation.Nullable LegalVersionEnum legalVersion) { this.legalVersion = legalVersion; } - public SubWhiteLabelingOptions linkColor(String linkColor) { + public SubWhiteLabelingOptions linkColor(@jakarta.annotation.Nullable String linkColor) { this.linkColor = linkColor; return this; } @@ -220,12 +235,12 @@ public String getLinkColor() { @JsonProperty(JSON_PROPERTY_LINK_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkColor(String linkColor) { + public void setLinkColor(@jakarta.annotation.Nullable String linkColor) { this.linkColor = linkColor; } - public SubWhiteLabelingOptions pageBackgroundColor(String pageBackgroundColor) { + public SubWhiteLabelingOptions pageBackgroundColor(@jakarta.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; return this; } @@ -245,12 +260,12 @@ public String getPageBackgroundColor() { @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPageBackgroundColor(String pageBackgroundColor) { + public void setPageBackgroundColor(@jakarta.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; } - public SubWhiteLabelingOptions primaryButtonColor(String primaryButtonColor) { + public SubWhiteLabelingOptions primaryButtonColor(@jakarta.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; return this; } @@ -270,12 +285,12 @@ public String getPrimaryButtonColor() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonColor(String primaryButtonColor) { + public void setPrimaryButtonColor(@jakarta.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; } - public SubWhiteLabelingOptions primaryButtonColorHover(String primaryButtonColorHover) { + public SubWhiteLabelingOptions primaryButtonColorHover(@jakarta.annotation.Nullable String primaryButtonColorHover) { this.primaryButtonColorHover = primaryButtonColorHover; return this; } @@ -295,12 +310,12 @@ public String getPrimaryButtonColorHover() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonColorHover(String primaryButtonColorHover) { + public void setPrimaryButtonColorHover(@jakarta.annotation.Nullable String primaryButtonColorHover) { this.primaryButtonColorHover = primaryButtonColorHover; } - public SubWhiteLabelingOptions primaryButtonTextColor(String primaryButtonTextColor) { + public SubWhiteLabelingOptions primaryButtonTextColor(@jakarta.annotation.Nullable String primaryButtonTextColor) { this.primaryButtonTextColor = primaryButtonTextColor; return this; } @@ -320,12 +335,12 @@ public String getPrimaryButtonTextColor() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonTextColor(String primaryButtonTextColor) { + public void setPrimaryButtonTextColor(@jakarta.annotation.Nullable String primaryButtonTextColor) { this.primaryButtonTextColor = primaryButtonTextColor; } - public SubWhiteLabelingOptions primaryButtonTextColorHover(String primaryButtonTextColorHover) { + public SubWhiteLabelingOptions primaryButtonTextColorHover(@jakarta.annotation.Nullable String primaryButtonTextColorHover) { this.primaryButtonTextColorHover = primaryButtonTextColorHover; return this; } @@ -345,12 +360,12 @@ public String getPrimaryButtonTextColorHover() { @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrimaryButtonTextColorHover(String primaryButtonTextColorHover) { + public void setPrimaryButtonTextColorHover(@jakarta.annotation.Nullable String primaryButtonTextColorHover) { this.primaryButtonTextColorHover = primaryButtonTextColorHover; } - public SubWhiteLabelingOptions secondaryButtonColor(String secondaryButtonColor) { + public SubWhiteLabelingOptions secondaryButtonColor(@jakarta.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; return this; } @@ -370,12 +385,12 @@ public String getSecondaryButtonColor() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonColor(String secondaryButtonColor) { + public void setSecondaryButtonColor(@jakarta.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; } - public SubWhiteLabelingOptions secondaryButtonColorHover(String secondaryButtonColorHover) { + public SubWhiteLabelingOptions secondaryButtonColorHover(@jakarta.annotation.Nullable String secondaryButtonColorHover) { this.secondaryButtonColorHover = secondaryButtonColorHover; return this; } @@ -395,12 +410,12 @@ public String getSecondaryButtonColorHover() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonColorHover(String secondaryButtonColorHover) { + public void setSecondaryButtonColorHover(@jakarta.annotation.Nullable String secondaryButtonColorHover) { this.secondaryButtonColorHover = secondaryButtonColorHover; } - public SubWhiteLabelingOptions secondaryButtonTextColor(String secondaryButtonTextColor) { + public SubWhiteLabelingOptions secondaryButtonTextColor(@jakarta.annotation.Nullable String secondaryButtonTextColor) { this.secondaryButtonTextColor = secondaryButtonTextColor; return this; } @@ -420,12 +435,12 @@ public String getSecondaryButtonTextColor() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonTextColor(String secondaryButtonTextColor) { + public void setSecondaryButtonTextColor(@jakarta.annotation.Nullable String secondaryButtonTextColor) { this.secondaryButtonTextColor = secondaryButtonTextColor; } - public SubWhiteLabelingOptions secondaryButtonTextColorHover(String secondaryButtonTextColorHover) { + public SubWhiteLabelingOptions secondaryButtonTextColorHover(@jakarta.annotation.Nullable String secondaryButtonTextColorHover) { this.secondaryButtonTextColorHover = secondaryButtonTextColorHover; return this; } @@ -445,12 +460,12 @@ public String getSecondaryButtonTextColorHover() { @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSecondaryButtonTextColorHover(String secondaryButtonTextColorHover) { + public void setSecondaryButtonTextColorHover(@jakarta.annotation.Nullable String secondaryButtonTextColorHover) { this.secondaryButtonTextColorHover = secondaryButtonTextColorHover; } - public SubWhiteLabelingOptions textColor1(String textColor1) { + public SubWhiteLabelingOptions textColor1(@jakarta.annotation.Nullable String textColor1) { this.textColor1 = textColor1; return this; } @@ -470,12 +485,12 @@ public String getTextColor1() { @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTextColor1(String textColor1) { + public void setTextColor1(@jakarta.annotation.Nullable String textColor1) { this.textColor1 = textColor1; } - public SubWhiteLabelingOptions textColor2(String textColor2) { + public SubWhiteLabelingOptions textColor2(@jakarta.annotation.Nullable String textColor2) { this.textColor2 = textColor2; return this; } @@ -495,12 +510,12 @@ public String getTextColor2() { @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTextColor2(String textColor2) { + public void setTextColor2(@jakarta.annotation.Nullable String textColor2) { this.textColor2 = textColor2; } - public SubWhiteLabelingOptions resetToDefault(Boolean resetToDefault) { + public SubWhiteLabelingOptions resetToDefault(@jakarta.annotation.Nullable Boolean resetToDefault) { this.resetToDefault = resetToDefault; return this; } @@ -520,7 +535,7 @@ public Boolean getResetToDefault() { @JsonProperty(JSON_PROPERTY_RESET_TO_DEFAULT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResetToDefault(Boolean resetToDefault) { + public void setResetToDefault(@jakarta.annotation.Nullable Boolean resetToDefault) { this.resetToDefault = resetToDefault; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java index d79399a8f..26ce74924 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java @@ -37,26 +37,28 @@ TeamAddMemberRequest.JSON_PROPERTY_EMAIL_ADDRESS, TeamAddMemberRequest.JSON_PROPERTY_ROLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamAddMemberRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; /** * A role member will take in a new Team. **NOTE:** This parameter is used only if `team_id` is provided. */ public enum RoleEnum { - MEMBER("Member"), + MEMBER(String.valueOf("Member")), - DEVELOPER("Developer"), + DEVELOPER(String.valueOf("Developer")), - TEAM_MANAGER("Team Manager"), + TEAM_MANAGER(String.valueOf("Team Manager")), - ADMIN("Admin"); + ADMIN(String.valueOf("Admin")); private String value; @@ -86,6 +88,7 @@ public static RoleEnum fromValue(String value) { } public static final String JSON_PROPERTY_ROLE = "role"; + @jakarta.annotation.Nullable private RoleEnum role; public TeamAddMemberRequest() { @@ -106,7 +109,7 @@ static public TeamAddMemberRequest init(HashMap data) throws Exception { ); } - public TeamAddMemberRequest accountId(String accountId) { + public TeamAddMemberRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -126,12 +129,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public TeamAddMemberRequest emailAddress(String emailAddress) { + public TeamAddMemberRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -151,12 +154,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public TeamAddMemberRequest role(RoleEnum role) { + public TeamAddMemberRequest role(@jakarta.annotation.Nullable RoleEnum role) { this.role = role; return this; } @@ -176,7 +179,7 @@ public RoleEnum getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRole(RoleEnum role) { + public void setRole(@jakarta.annotation.Nullable RoleEnum role) { this.role = role; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java index cb5c87e34..f5b0e92ad 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ TeamCreateRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamCreateRequest { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name = "Untitled Team"; public TeamCreateRequest() { @@ -59,7 +60,7 @@ static public TeamCreateRequest init(HashMap data) throws Exception { ); } - public TeamCreateRequest name(String name) { + public TeamCreateRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -79,7 +80,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java index f6a787003..8d2bf7896 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java @@ -40,13 +40,15 @@ TeamGetInfoResponse.JSON_PROPERTY_TEAM, TeamGetInfoResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamGetInfoResponse { public static final String JSON_PROPERTY_TEAM = "team"; + @jakarta.annotation.Nonnull private TeamInfoResponse team; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TeamGetInfoResponse() { @@ -67,7 +69,7 @@ static public TeamGetInfoResponse init(HashMap data) throws Exception { ); } - public TeamGetInfoResponse team(TeamInfoResponse team) { + public TeamGetInfoResponse team(@jakarta.annotation.Nonnull TeamInfoResponse team) { this.team = team; return this; } @@ -87,12 +89,12 @@ public TeamInfoResponse getTeam() { @JsonProperty(JSON_PROPERTY_TEAM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTeam(TeamInfoResponse team) { + public void setTeam(@jakarta.annotation.Nonnull TeamInfoResponse team) { this.team = team; } - public TeamGetInfoResponse warnings(List warnings) { + public TeamGetInfoResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetResponse.java index f1670c185..957c890db 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamGetResponse.java @@ -40,13 +40,15 @@ TeamGetResponse.JSON_PROPERTY_TEAM, TeamGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamGetResponse { public static final String JSON_PROPERTY_TEAM = "team"; + @jakarta.annotation.Nonnull private TeamResponse team; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TeamGetResponse() { @@ -67,7 +69,7 @@ static public TeamGetResponse init(HashMap data) throws Exception { ); } - public TeamGetResponse team(TeamResponse team) { + public TeamGetResponse team(@jakarta.annotation.Nonnull TeamResponse team) { this.team = team; return this; } @@ -87,12 +89,12 @@ public TeamResponse getTeam() { @JsonProperty(JSON_PROPERTY_TEAM) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTeam(TeamResponse team) { + public void setTeam(@jakarta.annotation.Nonnull TeamResponse team) { this.team = team; } - public TeamGetResponse warnings(List warnings) { + public TeamGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java index 4a1e91ae2..39282f5f5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java @@ -40,22 +40,27 @@ TeamInfoResponse.JSON_PROPERTY_NUM_MEMBERS, TeamInfoResponse.JSON_PROPERTY_NUM_SUB_TEAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamInfoResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; + @jakarta.annotation.Nullable private String teamId; public static final String JSON_PROPERTY_TEAM_PARENT = "team_parent"; + @jakarta.annotation.Nullable private TeamParentResponse teamParent; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_NUM_MEMBERS = "num_members"; + @jakarta.annotation.Nullable private Integer numMembers; public static final String JSON_PROPERTY_NUM_SUB_TEAMS = "num_sub_teams"; + @jakarta.annotation.Nullable private Integer numSubTeams; public TeamInfoResponse() { @@ -76,7 +81,7 @@ static public TeamInfoResponse init(HashMap data) throws Exception { ); } - public TeamInfoResponse teamId(String teamId) { + public TeamInfoResponse teamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; return this; } @@ -96,12 +101,12 @@ public String getTeamId() { @JsonProperty(JSON_PROPERTY_TEAM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTeamId(String teamId) { + public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; } - public TeamInfoResponse teamParent(TeamParentResponse teamParent) { + public TeamInfoResponse teamParent(@jakarta.annotation.Nullable TeamParentResponse teamParent) { this.teamParent = teamParent; return this; } @@ -121,12 +126,12 @@ public TeamParentResponse getTeamParent() { @JsonProperty(JSON_PROPERTY_TEAM_PARENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTeamParent(TeamParentResponse teamParent) { + public void setTeamParent(@jakarta.annotation.Nullable TeamParentResponse teamParent) { this.teamParent = teamParent; } - public TeamInfoResponse name(String name) { + public TeamInfoResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -146,12 +151,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TeamInfoResponse numMembers(Integer numMembers) { + public TeamInfoResponse numMembers(@jakarta.annotation.Nullable Integer numMembers) { this.numMembers = numMembers; return this; } @@ -171,12 +176,12 @@ public Integer getNumMembers() { @JsonProperty(JSON_PROPERTY_NUM_MEMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumMembers(Integer numMembers) { + public void setNumMembers(@jakarta.annotation.Nullable Integer numMembers) { this.numMembers = numMembers; } - public TeamInfoResponse numSubTeams(Integer numSubTeams) { + public TeamInfoResponse numSubTeams(@jakarta.annotation.Nullable Integer numSubTeams) { this.numSubTeams = numSubTeams; return this; } @@ -196,7 +201,7 @@ public Integer getNumSubTeams() { @JsonProperty(JSON_PROPERTY_NUM_SUB_TEAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumSubTeams(Integer numSubTeams) { + public void setNumSubTeams(@jakarta.annotation.Nullable Integer numSubTeams) { this.numSubTeams = numSubTeams; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java index fb8aef51e..1e1b4f1f0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java @@ -40,25 +40,31 @@ TeamInviteResponse.JSON_PROPERTY_REDEEMED_AT, TeamInviteResponse.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamInviteResponse { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_TEAM_ID = "team_id"; + @jakarta.annotation.Nullable private String teamId; public static final String JSON_PROPERTY_ROLE = "role"; + @jakarta.annotation.Nullable private String role; public static final String JSON_PROPERTY_SENT_AT = "sent_at"; + @jakarta.annotation.Nullable private Integer sentAt; public static final String JSON_PROPERTY_REDEEMED_AT = "redeemed_at"; + @jakarta.annotation.Nullable private Integer redeemedAt; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public TeamInviteResponse() { @@ -79,7 +85,7 @@ static public TeamInviteResponse init(HashMap data) throws Exception { ); } - public TeamInviteResponse emailAddress(String emailAddress) { + public TeamInviteResponse emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -99,12 +105,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public TeamInviteResponse teamId(String teamId) { + public TeamInviteResponse teamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; return this; } @@ -124,12 +130,12 @@ public String getTeamId() { @JsonProperty(JSON_PROPERTY_TEAM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTeamId(String teamId) { + public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; } - public TeamInviteResponse role(String role) { + public TeamInviteResponse role(@jakarta.annotation.Nullable String role) { this.role = role; return this; } @@ -149,12 +155,12 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nullable String role) { this.role = role; } - public TeamInviteResponse sentAt(Integer sentAt) { + public TeamInviteResponse sentAt(@jakarta.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; return this; } @@ -174,12 +180,12 @@ public Integer getSentAt() { @JsonProperty(JSON_PROPERTY_SENT_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSentAt(Integer sentAt) { + public void setSentAt(@jakarta.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; } - public TeamInviteResponse redeemedAt(Integer redeemedAt) { + public TeamInviteResponse redeemedAt(@jakarta.annotation.Nullable Integer redeemedAt) { this.redeemedAt = redeemedAt; return this; } @@ -199,12 +205,12 @@ public Integer getRedeemedAt() { @JsonProperty(JSON_PROPERTY_REDEEMED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRedeemedAt(Integer redeemedAt) { + public void setRedeemedAt(@jakarta.annotation.Nullable Integer redeemedAt) { this.redeemedAt = redeemedAt; } - public TeamInviteResponse expiresAt(Integer expiresAt) { + public TeamInviteResponse expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -224,7 +230,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java index b509eb0b9..4e1eb25a0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java @@ -40,13 +40,15 @@ TeamInvitesResponse.JSON_PROPERTY_TEAM_INVITES, TeamInvitesResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamInvitesResponse { public static final String JSON_PROPERTY_TEAM_INVITES = "team_invites"; + @jakarta.annotation.Nonnull private List teamInvites = new ArrayList<>(); public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TeamInvitesResponse() { @@ -67,7 +69,7 @@ static public TeamInvitesResponse init(HashMap data) throws Exception { ); } - public TeamInvitesResponse teamInvites(List teamInvites) { + public TeamInvitesResponse teamInvites(@jakarta.annotation.Nonnull List teamInvites) { this.teamInvites = teamInvites; return this; } @@ -95,12 +97,12 @@ public List getTeamInvites() { @JsonProperty(JSON_PROPERTY_TEAM_INVITES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTeamInvites(List teamInvites) { + public void setTeamInvites(@jakarta.annotation.Nonnull List teamInvites) { this.teamInvites = teamInvites; } - public TeamInvitesResponse warnings(List warnings) { + public TeamInvitesResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -128,7 +130,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java index 888e9a858..b454ffb67 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java @@ -37,16 +37,19 @@ TeamMemberResponse.JSON_PROPERTY_EMAIL_ADDRESS, TeamMemberResponse.JSON_PROPERTY_ROLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamMemberResponse { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_ROLE = "role"; + @jakarta.annotation.Nullable private String role; public TeamMemberResponse() { @@ -67,7 +70,7 @@ static public TeamMemberResponse init(HashMap data) throws Exception { ); } - public TeamMemberResponse accountId(String accountId) { + public TeamMemberResponse accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -87,12 +90,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public TeamMemberResponse emailAddress(String emailAddress) { + public TeamMemberResponse emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -112,12 +115,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public TeamMemberResponse role(String role) { + public TeamMemberResponse role(@jakarta.annotation.Nullable String role) { this.role = role; return this; } @@ -137,7 +140,7 @@ public String getRole() { @JsonProperty(JSON_PROPERTY_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRole(String role) { + public void setRole(@jakarta.annotation.Nullable String role) { this.role = role; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java index 05fb9e496..181e65e4e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java @@ -42,16 +42,19 @@ TeamMembersResponse.JSON_PROPERTY_LIST_INFO, TeamMembersResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamMembersResponse { public static final String JSON_PROPERTY_TEAM_MEMBERS = "team_members"; + @jakarta.annotation.Nonnull private List teamMembers = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TeamMembersResponse() { @@ -72,7 +75,7 @@ static public TeamMembersResponse init(HashMap data) throws Exception { ); } - public TeamMembersResponse teamMembers(List teamMembers) { + public TeamMembersResponse teamMembers(@jakarta.annotation.Nonnull List teamMembers) { this.teamMembers = teamMembers; return this; } @@ -100,12 +103,12 @@ public List getTeamMembers() { @JsonProperty(JSON_PROPERTY_TEAM_MEMBERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTeamMembers(List teamMembers) { + public void setTeamMembers(@jakarta.annotation.Nonnull List teamMembers) { this.teamMembers = teamMembers; } - public TeamMembersResponse listInfo(ListInfoResponse listInfo) { + public TeamMembersResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -125,12 +128,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public TeamMembersResponse warnings(List warnings) { + public TeamMembersResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -158,7 +161,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamParentResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamParentResponse.java index 482b58513..5928538d6 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamParentResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamParentResponse.java @@ -36,13 +36,15 @@ TeamParentResponse.JSON_PROPERTY_TEAM_ID, TeamParentResponse.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamParentResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; + @jakarta.annotation.Nullable private String teamId; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public TeamParentResponse() { @@ -63,7 +65,7 @@ static public TeamParentResponse init(HashMap data) throws Exception { ); } - public TeamParentResponse teamId(String teamId) { + public TeamParentResponse teamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; return this; } @@ -83,12 +85,12 @@ public String getTeamId() { @JsonProperty(JSON_PROPERTY_TEAM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTeamId(String teamId) { + public void setTeamId(@jakarta.annotation.Nullable String teamId) { this.teamId = teamId; } - public TeamParentResponse name(String name) { + public TeamParentResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -108,7 +110,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java index 9303f6861..f48daa1a0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java @@ -39,32 +39,36 @@ TeamRemoveMemberRequest.JSON_PROPERTY_NEW_TEAM_ID, TeamRemoveMemberRequest.JSON_PROPERTY_NEW_ROLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamRemoveMemberRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS = "new_owner_email_address"; + @jakarta.annotation.Nullable private String newOwnerEmailAddress; public static final String JSON_PROPERTY_NEW_TEAM_ID = "new_team_id"; + @jakarta.annotation.Nullable private String newTeamId; /** * A new role member will take in a new Team. **NOTE:** This parameter is used only if `new_team_id` is provided. */ public enum NewRoleEnum { - MEMBER("Member"), + MEMBER(String.valueOf("Member")), - DEVELOPER("Developer"), + DEVELOPER(String.valueOf("Developer")), - TEAM_MANAGER("Team Manager"), + TEAM_MANAGER(String.valueOf("Team Manager")), - ADMIN("Admin"); + ADMIN(String.valueOf("Admin")); private String value; @@ -94,6 +98,7 @@ public static NewRoleEnum fromValue(String value) { } public static final String JSON_PROPERTY_NEW_ROLE = "new_role"; + @jakarta.annotation.Nullable private NewRoleEnum newRole; public TeamRemoveMemberRequest() { @@ -114,7 +119,7 @@ static public TeamRemoveMemberRequest init(HashMap data) throws Exception { ); } - public TeamRemoveMemberRequest accountId(String accountId) { + public TeamRemoveMemberRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -134,12 +139,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public TeamRemoveMemberRequest emailAddress(String emailAddress) { + public TeamRemoveMemberRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -159,12 +164,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public TeamRemoveMemberRequest newOwnerEmailAddress(String newOwnerEmailAddress) { + public TeamRemoveMemberRequest newOwnerEmailAddress(@jakarta.annotation.Nullable String newOwnerEmailAddress) { this.newOwnerEmailAddress = newOwnerEmailAddress; return this; } @@ -184,12 +189,12 @@ public String getNewOwnerEmailAddress() { @JsonProperty(JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNewOwnerEmailAddress(String newOwnerEmailAddress) { + public void setNewOwnerEmailAddress(@jakarta.annotation.Nullable String newOwnerEmailAddress) { this.newOwnerEmailAddress = newOwnerEmailAddress; } - public TeamRemoveMemberRequest newTeamId(String newTeamId) { + public TeamRemoveMemberRequest newTeamId(@jakarta.annotation.Nullable String newTeamId) { this.newTeamId = newTeamId; return this; } @@ -209,12 +214,12 @@ public String getNewTeamId() { @JsonProperty(JSON_PROPERTY_NEW_TEAM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNewTeamId(String newTeamId) { + public void setNewTeamId(@jakarta.annotation.Nullable String newTeamId) { this.newTeamId = newTeamId; } - public TeamRemoveMemberRequest newRole(NewRoleEnum newRole) { + public TeamRemoveMemberRequest newRole(@jakarta.annotation.Nullable NewRoleEnum newRole) { this.newRole = newRole; return this; } @@ -234,7 +239,7 @@ public NewRoleEnum getNewRole() { @JsonProperty(JSON_PROPERTY_NEW_ROLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNewRole(NewRoleEnum newRole) { + public void setNewRole(@jakarta.annotation.Nullable NewRoleEnum newRole) { this.newRole = newRole; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamResponse.java index 39a93c476..37128c92a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamResponse.java @@ -41,19 +41,23 @@ TeamResponse.JSON_PROPERTY_INVITED_ACCOUNTS, TeamResponse.JSON_PROPERTY_INVITED_EMAILS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamResponse { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + @jakarta.annotation.Nullable private List accounts = null; public static final String JSON_PROPERTY_INVITED_ACCOUNTS = "invited_accounts"; + @jakarta.annotation.Nullable private List invitedAccounts = null; public static final String JSON_PROPERTY_INVITED_EMAILS = "invited_emails"; + @jakarta.annotation.Nullable private List invitedEmails = null; public TeamResponse() { @@ -74,7 +78,7 @@ static public TeamResponse init(HashMap data) throws Exception { ); } - public TeamResponse name(String name) { + public TeamResponse name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -94,12 +98,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TeamResponse accounts(List accounts) { + public TeamResponse accounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; return this; } @@ -127,12 +131,12 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccounts(List accounts) { + public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; } - public TeamResponse invitedAccounts(List invitedAccounts) { + public TeamResponse invitedAccounts(@jakarta.annotation.Nullable List invitedAccounts) { this.invitedAccounts = invitedAccounts; return this; } @@ -160,12 +164,12 @@ public List getInvitedAccounts() { @JsonProperty(JSON_PROPERTY_INVITED_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInvitedAccounts(List invitedAccounts) { + public void setInvitedAccounts(@jakarta.annotation.Nullable List invitedAccounts) { this.invitedAccounts = invitedAccounts; } - public TeamResponse invitedEmails(List invitedEmails) { + public TeamResponse invitedEmails(@jakarta.annotation.Nullable List invitedEmails) { this.invitedEmails = invitedEmails; return this; } @@ -193,7 +197,7 @@ public List getInvitedEmails() { @JsonProperty(JSON_PROPERTY_INVITED_EMAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setInvitedEmails(List invitedEmails) { + public void setInvitedEmails(@jakarta.annotation.Nullable List invitedEmails) { this.invitedEmails = invitedEmails; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java index b8c7190e2..1330e7c61 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java @@ -42,16 +42,19 @@ TeamSubTeamsResponse.JSON_PROPERTY_LIST_INFO, TeamSubTeamsResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamSubTeamsResponse { public static final String JSON_PROPERTY_SUB_TEAMS = "sub_teams"; + @jakarta.annotation.Nonnull private List subTeams = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TeamSubTeamsResponse() { @@ -72,7 +75,7 @@ static public TeamSubTeamsResponse init(HashMap data) throws Exception { ); } - public TeamSubTeamsResponse subTeams(List subTeams) { + public TeamSubTeamsResponse subTeams(@jakarta.annotation.Nonnull List subTeams) { this.subTeams = subTeams; return this; } @@ -100,12 +103,12 @@ public List getSubTeams() { @JsonProperty(JSON_PROPERTY_SUB_TEAMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSubTeams(List subTeams) { + public void setSubTeams(@jakarta.annotation.Nonnull List subTeams) { this.subTeams = subTeams; } - public TeamSubTeamsResponse listInfo(ListInfoResponse listInfo) { + public TeamSubTeamsResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -125,12 +128,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public TeamSubTeamsResponse warnings(List warnings) { + public TeamSubTeamsResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -158,7 +161,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java index aa668a228..100923cd5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ TeamUpdateRequest.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TeamUpdateRequest { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public TeamUpdateRequest() { @@ -59,7 +60,7 @@ static public TeamUpdateRequest init(HashMap data) throws Exception { ); } - public TeamUpdateRequest name(String name) { + public TeamUpdateRequest name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -79,7 +80,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java index dc2bf3ae0..71356ac3d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java @@ -37,16 +37,19 @@ TemplateAddUserRequest.JSON_PROPERTY_EMAIL_ADDRESS, TemplateAddUserRequest.JSON_PROPERTY_SKIP_NOTIFICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateAddUserRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_SKIP_NOTIFICATION = "skip_notification"; + @jakarta.annotation.Nullable private Boolean skipNotification = false; public TemplateAddUserRequest() { @@ -67,7 +70,7 @@ static public TemplateAddUserRequest init(HashMap data) throws Exception { ); } - public TemplateAddUserRequest accountId(String accountId) { + public TemplateAddUserRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -87,12 +90,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public TemplateAddUserRequest emailAddress(String emailAddress) { + public TemplateAddUserRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -112,12 +115,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public TemplateAddUserRequest skipNotification(Boolean skipNotification) { + public TemplateAddUserRequest skipNotification(@jakarta.annotation.Nullable Boolean skipNotification) { this.skipNotification = skipNotification; return this; } @@ -137,7 +140,7 @@ public Boolean getSkipNotification() { @JsonProperty(JSON_PROPERTY_SKIP_NOTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSkipNotification(Boolean skipNotification) { + public void setSkipNotification(@jakarta.annotation.Nullable Boolean skipNotification) { this.skipNotification = skipNotification; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java index 8c6b2babe..d7786dade 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java @@ -72,82 +72,107 @@ TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_TITLE, TemplateCreateEmbeddedDraftRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateEmbeddedDraftRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_ALLOW_CCS = "allow_ccs"; + @jakarta.annotation.Nullable private Boolean allowCcs = true; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_ROLES = "cc_roles"; + @jakarta.annotation.Nullable private List ccRoles = null; public static final String JSON_PROPERTY_EDITOR_OPTIONS = "editor_options"; + @jakarta.annotation.Nullable private SubEditorOptions editorOptions; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORCE_SIGNER_ROLES = "force_signer_roles"; + @jakarta.annotation.Nullable private Boolean forceSignerRoles = false; public static final String JSON_PROPERTY_FORCE_SUBJECT_MESSAGE = "force_subject_message"; + @jakarta.annotation.Nullable private Boolean forceSubjectMessage = false; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_MERGE_FIELDS = "merge_fields"; + @jakarta.annotation.Nullable private List mergeFields = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SHOW_PREVIEW = "show_preview"; + @jakarta.annotation.Nullable private Boolean showPreview = false; public static final String JSON_PROPERTY_SHOW_PROGRESS_STEPPER = "show_progress_stepper"; + @jakarta.annotation.Nullable private Boolean showProgressStepper = true; public static final String JSON_PROPERTY_SIGNER_ROLES = "signer_roles"; + @jakarta.annotation.Nullable private List signerRoles = null; public static final String JSON_PROPERTY_SKIP_ME_NOW = "skip_me_now"; + @jakarta.annotation.Nullable private Boolean skipMeNow = false; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; + @jakarta.annotation.Nullable private Boolean usePreexistingFields = false; public TemplateCreateEmbeddedDraftRequest() { @@ -168,7 +193,7 @@ static public TemplateCreateEmbeddedDraftRequest init(HashMap data) throws Excep ); } - public TemplateCreateEmbeddedDraftRequest clientId(String clientId) { + public TemplateCreateEmbeddedDraftRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -188,12 +213,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public TemplateCreateEmbeddedDraftRequest files(List files) { + public TemplateCreateEmbeddedDraftRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -221,12 +246,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public TemplateCreateEmbeddedDraftRequest fileUrls(List fileUrls) { + public TemplateCreateEmbeddedDraftRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -254,12 +279,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public TemplateCreateEmbeddedDraftRequest allowCcs(Boolean allowCcs) { + public TemplateCreateEmbeddedDraftRequest allowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; return this; } @@ -279,12 +304,12 @@ public Boolean getAllowCcs() { @JsonProperty(JSON_PROPERTY_ALLOW_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowCcs(Boolean allowCcs) { + public void setAllowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; } - public TemplateCreateEmbeddedDraftRequest allowReassign(Boolean allowReassign) { + public TemplateCreateEmbeddedDraftRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -304,12 +329,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public TemplateCreateEmbeddedDraftRequest attachments(List attachments) { + public TemplateCreateEmbeddedDraftRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -337,12 +362,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public TemplateCreateEmbeddedDraftRequest ccRoles(List ccRoles) { + public TemplateCreateEmbeddedDraftRequest ccRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; return this; } @@ -370,12 +395,12 @@ public List getCcRoles() { @JsonProperty(JSON_PROPERTY_CC_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcRoles(List ccRoles) { + public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; } - public TemplateCreateEmbeddedDraftRequest editorOptions(SubEditorOptions editorOptions) { + public TemplateCreateEmbeddedDraftRequest editorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; return this; } @@ -395,12 +420,12 @@ public SubEditorOptions getEditorOptions() { @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditorOptions(SubEditorOptions editorOptions) { + public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; } - public TemplateCreateEmbeddedDraftRequest fieldOptions(SubFieldOptions fieldOptions) { + public TemplateCreateEmbeddedDraftRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -420,12 +445,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public TemplateCreateEmbeddedDraftRequest forceSignerRoles(Boolean forceSignerRoles) { + public TemplateCreateEmbeddedDraftRequest forceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; return this; } @@ -445,12 +470,12 @@ public Boolean getForceSignerRoles() { @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSignerRoles(Boolean forceSignerRoles) { + public void setForceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; } - public TemplateCreateEmbeddedDraftRequest forceSubjectMessage(Boolean forceSubjectMessage) { + public TemplateCreateEmbeddedDraftRequest forceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; return this; } @@ -470,12 +495,12 @@ public Boolean getForceSubjectMessage() { @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSubjectMessage(Boolean forceSubjectMessage) { + public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; } - public TemplateCreateEmbeddedDraftRequest formFieldGroups(List formFieldGroups) { + public TemplateCreateEmbeddedDraftRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -503,12 +528,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public TemplateCreateEmbeddedDraftRequest formFieldRules(List formFieldRules) { + public TemplateCreateEmbeddedDraftRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -536,12 +561,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public TemplateCreateEmbeddedDraftRequest formFieldsPerDocument(List formFieldsPerDocument) { + public TemplateCreateEmbeddedDraftRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -569,12 +594,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public TemplateCreateEmbeddedDraftRequest mergeFields(List mergeFields) { + public TemplateCreateEmbeddedDraftRequest mergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; return this; } @@ -602,12 +627,12 @@ public List getMergeFields() { @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMergeFields(List mergeFields) { + public void setMergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; } - public TemplateCreateEmbeddedDraftRequest message(String message) { + public TemplateCreateEmbeddedDraftRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -627,12 +652,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public TemplateCreateEmbeddedDraftRequest metadata(Map metadata) { + public TemplateCreateEmbeddedDraftRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -660,12 +685,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public TemplateCreateEmbeddedDraftRequest showPreview(Boolean showPreview) { + public TemplateCreateEmbeddedDraftRequest showPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; return this; } @@ -685,12 +710,12 @@ public Boolean getShowPreview() { @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowPreview(Boolean showPreview) { + public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; } - public TemplateCreateEmbeddedDraftRequest showProgressStepper(Boolean showProgressStepper) { + public TemplateCreateEmbeddedDraftRequest showProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; return this; } @@ -710,12 +735,12 @@ public Boolean getShowProgressStepper() { @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowProgressStepper(Boolean showProgressStepper) { + public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; } - public TemplateCreateEmbeddedDraftRequest signerRoles(List signerRoles) { + public TemplateCreateEmbeddedDraftRequest signerRoles(@jakarta.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; return this; } @@ -743,12 +768,12 @@ public List getSignerRoles() { @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerRoles(List signerRoles) { + public void setSignerRoles(@jakarta.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; } - public TemplateCreateEmbeddedDraftRequest skipMeNow(Boolean skipMeNow) { + public TemplateCreateEmbeddedDraftRequest skipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; return this; } @@ -768,12 +793,12 @@ public Boolean getSkipMeNow() { @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSkipMeNow(Boolean skipMeNow) { + public void setSkipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; } - public TemplateCreateEmbeddedDraftRequest subject(String subject) { + public TemplateCreateEmbeddedDraftRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -793,12 +818,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public TemplateCreateEmbeddedDraftRequest testMode(Boolean testMode) { + public TemplateCreateEmbeddedDraftRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -818,12 +843,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public TemplateCreateEmbeddedDraftRequest title(String title) { + public TemplateCreateEmbeddedDraftRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -843,12 +868,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public TemplateCreateEmbeddedDraftRequest usePreexistingFields(Boolean usePreexistingFields) { + public TemplateCreateEmbeddedDraftRequest usePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; return this; } @@ -868,7 +893,7 @@ public Boolean getUsePreexistingFields() { @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsePreexistingFields(Boolean usePreexistingFields) { + public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java index e3e730062..3a1c18ad4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java @@ -40,13 +40,15 @@ TemplateCreateEmbeddedDraftResponse.JSON_PROPERTY_TEMPLATE, TemplateCreateEmbeddedDraftResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateEmbeddedDraftResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; + @jakarta.annotation.Nonnull private TemplateCreateEmbeddedDraftResponseTemplate template; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TemplateCreateEmbeddedDraftResponse() { @@ -67,7 +69,7 @@ static public TemplateCreateEmbeddedDraftResponse init(HashMap data) throws Exce ); } - public TemplateCreateEmbeddedDraftResponse template(TemplateCreateEmbeddedDraftResponseTemplate template) { + public TemplateCreateEmbeddedDraftResponse template(@jakarta.annotation.Nonnull TemplateCreateEmbeddedDraftResponseTemplate template) { this.template = template; return this; } @@ -87,12 +89,12 @@ public TemplateCreateEmbeddedDraftResponseTemplate getTemplate() { @JsonProperty(JSON_PROPERTY_TEMPLATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplate(TemplateCreateEmbeddedDraftResponseTemplate template) { + public void setTemplate(@jakarta.annotation.Nonnull TemplateCreateEmbeddedDraftResponseTemplate template) { this.template = template; } - public TemplateCreateEmbeddedDraftResponse warnings(List warnings) { + public TemplateCreateEmbeddedDraftResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java index f9c0286ac..d40592de4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java @@ -41,20 +41,24 @@ TemplateCreateEmbeddedDraftResponseTemplate.JSON_PROPERTY_EXPIRES_AT, TemplateCreateEmbeddedDraftResponseTemplate.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateEmbeddedDraftResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; + @jakarta.annotation.Nullable private String templateId; public static final String JSON_PROPERTY_EDIT_URL = "edit_url"; + @jakarta.annotation.Nullable private String editUrl; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public static final String JSON_PROPERTY_WARNINGS = "warnings"; @Deprecated + @jakarta.annotation.Nullable private List warnings = null; public TemplateCreateEmbeddedDraftResponseTemplate() { @@ -75,7 +79,7 @@ static public TemplateCreateEmbeddedDraftResponseTemplate init(HashMap data) thr ); } - public TemplateCreateEmbeddedDraftResponseTemplate templateId(String templateId) { + public TemplateCreateEmbeddedDraftResponseTemplate templateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; return this; } @@ -95,12 +99,12 @@ public String getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateId(String templateId) { + public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; } - public TemplateCreateEmbeddedDraftResponseTemplate editUrl(String editUrl) { + public TemplateCreateEmbeddedDraftResponseTemplate editUrl(@jakarta.annotation.Nullable String editUrl) { this.editUrl = editUrl; return this; } @@ -120,12 +124,12 @@ public String getEditUrl() { @JsonProperty(JSON_PROPERTY_EDIT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditUrl(String editUrl) { + public void setEditUrl(@jakarta.annotation.Nullable String editUrl) { this.editUrl = editUrl; } - public TemplateCreateEmbeddedDraftResponseTemplate expiresAt(Integer expiresAt) { + public TemplateCreateEmbeddedDraftResponseTemplate expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -145,13 +149,13 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } @Deprecated - public TemplateCreateEmbeddedDraftResponseTemplate warnings(List warnings) { + public TemplateCreateEmbeddedDraftResponseTemplate warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -182,7 +186,7 @@ public List getWarnings() { @Deprecated @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java index b1ff55f4a..2a353e0ec 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java @@ -64,61 +64,79 @@ TemplateCreateRequest.JSON_PROPERTY_TITLE, TemplateCreateRequest.JSON_PROPERTY_USE_PREEXISTING_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateRequest { public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nonnull private List formFieldsPerDocument = new ArrayList<>(); public static final String JSON_PROPERTY_SIGNER_ROLES = "signer_roles"; + @jakarta.annotation.Nonnull private List signerRoles = new ArrayList<>(); public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_ROLES = "cc_roles"; + @jakarta.annotation.Nullable private List ccRoles = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_MERGE_FIELDS = "merge_fields"; + @jakarta.annotation.Nullable private List mergeFields = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; + @jakarta.annotation.Nullable private Boolean usePreexistingFields = false; public TemplateCreateRequest() { @@ -139,7 +157,7 @@ static public TemplateCreateRequest init(HashMap data) throws Exception { ); } - public TemplateCreateRequest formFieldsPerDocument(List formFieldsPerDocument) { + public TemplateCreateRequest formFieldsPerDocument(@jakarta.annotation.Nonnull List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -167,12 +185,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nonnull List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public TemplateCreateRequest signerRoles(List signerRoles) { + public TemplateCreateRequest signerRoles(@jakarta.annotation.Nonnull List signerRoles) { this.signerRoles = signerRoles; return this; } @@ -200,12 +218,12 @@ public List getSignerRoles() { @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSignerRoles(List signerRoles) { + public void setSignerRoles(@jakarta.annotation.Nonnull List signerRoles) { this.signerRoles = signerRoles; } - public TemplateCreateRequest files(List files) { + public TemplateCreateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -233,12 +251,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public TemplateCreateRequest fileUrls(List fileUrls) { + public TemplateCreateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -266,12 +284,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public TemplateCreateRequest allowReassign(Boolean allowReassign) { + public TemplateCreateRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -291,12 +309,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public TemplateCreateRequest attachments(List attachments) { + public TemplateCreateRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -324,12 +342,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public TemplateCreateRequest ccRoles(List ccRoles) { + public TemplateCreateRequest ccRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; return this; } @@ -357,12 +375,12 @@ public List getCcRoles() { @JsonProperty(JSON_PROPERTY_CC_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcRoles(List ccRoles) { + public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; } - public TemplateCreateRequest clientId(String clientId) { + public TemplateCreateRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -382,12 +400,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public TemplateCreateRequest fieldOptions(SubFieldOptions fieldOptions) { + public TemplateCreateRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -407,12 +425,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public TemplateCreateRequest formFieldGroups(List formFieldGroups) { + public TemplateCreateRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -440,12 +458,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public TemplateCreateRequest formFieldRules(List formFieldRules) { + public TemplateCreateRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -473,12 +491,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public TemplateCreateRequest mergeFields(List mergeFields) { + public TemplateCreateRequest mergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; return this; } @@ -506,12 +524,12 @@ public List getMergeFields() { @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMergeFields(List mergeFields) { + public void setMergeFields(@jakarta.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; } - public TemplateCreateRequest message(String message) { + public TemplateCreateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -531,12 +549,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public TemplateCreateRequest metadata(Map metadata) { + public TemplateCreateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -564,12 +582,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public TemplateCreateRequest subject(String subject) { + public TemplateCreateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -589,12 +607,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public TemplateCreateRequest testMode(Boolean testMode) { + public TemplateCreateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -614,12 +632,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public TemplateCreateRequest title(String title) { + public TemplateCreateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -639,12 +657,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public TemplateCreateRequest usePreexistingFields(Boolean usePreexistingFields) { + public TemplateCreateRequest usePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; return this; } @@ -664,7 +682,7 @@ public Boolean getUsePreexistingFields() { @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsePreexistingFields(Boolean usePreexistingFields) { + public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java index 5d7d2c2cf..03910025a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java @@ -40,13 +40,15 @@ TemplateCreateResponse.JSON_PROPERTY_TEMPLATE, TemplateCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; + @jakarta.annotation.Nonnull private TemplateCreateResponseTemplate template; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TemplateCreateResponse() { @@ -67,7 +69,7 @@ static public TemplateCreateResponse init(HashMap data) throws Exception { ); } - public TemplateCreateResponse template(TemplateCreateResponseTemplate template) { + public TemplateCreateResponse template(@jakarta.annotation.Nonnull TemplateCreateResponseTemplate template) { this.template = template; return this; } @@ -87,12 +89,12 @@ public TemplateCreateResponseTemplate getTemplate() { @JsonProperty(JSON_PROPERTY_TEMPLATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplate(TemplateCreateResponseTemplate template) { + public void setTemplate(@jakarta.annotation.Nonnull TemplateCreateResponseTemplate template) { this.template = template; } - public TemplateCreateResponse warnings(List warnings) { + public TemplateCreateResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java index 6d668fd69..2222fc73e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ TemplateCreateResponseTemplate.JSON_PROPERTY_TEMPLATE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateCreateResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; + @jakarta.annotation.Nullable private String templateId; public TemplateCreateResponseTemplate() { @@ -59,7 +60,7 @@ static public TemplateCreateResponseTemplate init(HashMap data) throws Exception ); } - public TemplateCreateResponseTemplate templateId(String templateId) { + public TemplateCreateResponseTemplate templateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; return this; } @@ -79,7 +80,7 @@ public String getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateId(String templateId) { + public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateEditResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateEditResponse.java index f660ab209..866a87fa3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateEditResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateEditResponse.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ TemplateEditResponse.JSON_PROPERTY_TEMPLATE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateEditResponse { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; + @jakarta.annotation.Nonnull private String templateId; public TemplateEditResponse() { @@ -59,7 +60,7 @@ static public TemplateEditResponse init(HashMap data) throws Exception { ); } - public TemplateEditResponse templateId(String templateId) { + public TemplateEditResponse templateId(@jakarta.annotation.Nonnull String templateId) { this.templateId = templateId; return this; } @@ -79,7 +80,7 @@ public String getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateId(String templateId) { + public void setTemplateId(@jakarta.annotation.Nonnull String templateId) { this.templateId = templateId; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java index 30a55e879..248ae9fae 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java @@ -40,13 +40,15 @@ TemplateGetResponse.JSON_PROPERTY_TEMPLATE, TemplateGetResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateGetResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; + @jakarta.annotation.Nonnull private TemplateResponse template; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TemplateGetResponse() { @@ -67,7 +69,7 @@ static public TemplateGetResponse init(HashMap data) throws Exception { ); } - public TemplateGetResponse template(TemplateResponse template) { + public TemplateGetResponse template(@jakarta.annotation.Nonnull TemplateResponse template) { this.template = template; return this; } @@ -87,12 +89,12 @@ public TemplateResponse getTemplate() { @JsonProperty(JSON_PROPERTY_TEMPLATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplate(TemplateResponse template) { + public void setTemplate(@jakarta.annotation.Nonnull TemplateResponse template) { this.template = template; } - public TemplateGetResponse warnings(List warnings) { + public TemplateGetResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateListResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateListResponse.java index d3949c6aa..4569dbaf2 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateListResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateListResponse.java @@ -42,16 +42,19 @@ TemplateListResponse.JSON_PROPERTY_LIST_INFO, TemplateListResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateListResponse { public static final String JSON_PROPERTY_TEMPLATES = "templates"; + @jakarta.annotation.Nonnull private List templates = new ArrayList<>(); public static final String JSON_PROPERTY_LIST_INFO = "list_info"; + @jakarta.annotation.Nonnull private ListInfoResponse listInfo; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public TemplateListResponse() { @@ -72,7 +75,7 @@ static public TemplateListResponse init(HashMap data) throws Exception { ); } - public TemplateListResponse templates(List templates) { + public TemplateListResponse templates(@jakarta.annotation.Nonnull List templates) { this.templates = templates; return this; } @@ -100,12 +103,12 @@ public List getTemplates() { @JsonProperty(JSON_PROPERTY_TEMPLATES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplates(List templates) { + public void setTemplates(@jakarta.annotation.Nonnull List templates) { this.templates = templates; } - public TemplateListResponse listInfo(ListInfoResponse listInfo) { + public TemplateListResponse listInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; return this; } @@ -125,12 +128,12 @@ public ListInfoResponse getListInfo() { @JsonProperty(JSON_PROPERTY_LIST_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setListInfo(ListInfoResponse listInfo) { + public void setListInfo(@jakarta.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; } - public TemplateListResponse warnings(List warnings) { + public TemplateListResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -158,7 +161,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java index 0d9c88e63..bce53ad8e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java @@ -36,13 +36,15 @@ TemplateRemoveUserRequest.JSON_PROPERTY_ACCOUNT_ID, TemplateRemoveUserRequest.JSON_PROPERTY_EMAIL_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateRemoveUserRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public TemplateRemoveUserRequest() { @@ -63,7 +65,7 @@ static public TemplateRemoveUserRequest init(HashMap data) throws Exception { ); } - public TemplateRemoveUserRequest accountId(String accountId) { + public TemplateRemoveUserRequest accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -83,12 +85,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public TemplateRemoveUserRequest emailAddress(String emailAddress) { + public TemplateRemoveUserRequest emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -108,7 +110,7 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java index f031a0363..1796c999a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java @@ -61,57 +61,73 @@ TemplateResponse.JSON_PROPERTY_ACCOUNTS, TemplateResponse.JSON_PROPERTY_ATTACHMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponse { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; + @jakarta.annotation.Nullable private String templateId; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + @jakarta.annotation.Nullable private Integer updatedAt; public static final String JSON_PROPERTY_IS_EMBEDDED = "is_embedded"; + @jakarta.annotation.Nullable private Boolean isEmbedded; public static final String JSON_PROPERTY_IS_CREATOR = "is_creator"; + @jakarta.annotation.Nullable private Boolean isCreator; public static final String JSON_PROPERTY_CAN_EDIT = "can_edit"; + @jakarta.annotation.Nullable private Boolean canEdit; public static final String JSON_PROPERTY_IS_LOCKED = "is_locked"; + @jakarta.annotation.Nullable private Boolean isLocked; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SIGNER_ROLES = "signer_roles"; + @jakarta.annotation.Nullable private List signerRoles = null; public static final String JSON_PROPERTY_CC_ROLES = "cc_roles"; + @jakarta.annotation.Nullable private List ccRoles = null; public static final String JSON_PROPERTY_DOCUMENTS = "documents"; + @jakarta.annotation.Nullable private List documents = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; @Deprecated + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_NAMED_FORM_FIELDS = "named_form_fields"; @Deprecated + @jakarta.annotation.Nullable private List namedFormFields = null; public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + @jakarta.annotation.Nullable private List accounts = null; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public TemplateResponse() { @@ -132,7 +148,7 @@ static public TemplateResponse init(HashMap data) throws Exception { ); } - public TemplateResponse templateId(String templateId) { + public TemplateResponse templateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; return this; } @@ -152,12 +168,12 @@ public String getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateId(String templateId) { + public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; } - public TemplateResponse title(String title) { + public TemplateResponse title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -177,12 +193,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public TemplateResponse message(String message) { + public TemplateResponse message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -202,12 +218,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public TemplateResponse updatedAt(Integer updatedAt) { + public TemplateResponse updatedAt(@jakarta.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; return this; } @@ -227,12 +243,12 @@ public Integer getUpdatedAt() { @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(Integer updatedAt) { + public void setUpdatedAt(@jakarta.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; } - public TemplateResponse isEmbedded(Boolean isEmbedded) { + public TemplateResponse isEmbedded(@jakarta.annotation.Nullable Boolean isEmbedded) { this.isEmbedded = isEmbedded; return this; } @@ -252,12 +268,12 @@ public Boolean getIsEmbedded() { @JsonProperty(JSON_PROPERTY_IS_EMBEDDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsEmbedded(Boolean isEmbedded) { + public void setIsEmbedded(@jakarta.annotation.Nullable Boolean isEmbedded) { this.isEmbedded = isEmbedded; } - public TemplateResponse isCreator(Boolean isCreator) { + public TemplateResponse isCreator(@jakarta.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; return this; } @@ -277,12 +293,12 @@ public Boolean getIsCreator() { @JsonProperty(JSON_PROPERTY_IS_CREATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsCreator(Boolean isCreator) { + public void setIsCreator(@jakarta.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; } - public TemplateResponse canEdit(Boolean canEdit) { + public TemplateResponse canEdit(@jakarta.annotation.Nullable Boolean canEdit) { this.canEdit = canEdit; return this; } @@ -302,12 +318,12 @@ public Boolean getCanEdit() { @JsonProperty(JSON_PROPERTY_CAN_EDIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCanEdit(Boolean canEdit) { + public void setCanEdit(@jakarta.annotation.Nullable Boolean canEdit) { this.canEdit = canEdit; } - public TemplateResponse isLocked(Boolean isLocked) { + public TemplateResponse isLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; return this; } @@ -327,12 +343,12 @@ public Boolean getIsLocked() { @JsonProperty(JSON_PROPERTY_IS_LOCKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsLocked(Boolean isLocked) { + public void setIsLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; } - public TemplateResponse metadata(Map metadata) { + public TemplateResponse metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -360,12 +376,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public TemplateResponse signerRoles(List signerRoles) { + public TemplateResponse signerRoles(@jakarta.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; return this; } @@ -393,12 +409,12 @@ public List getSignerRoles() { @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerRoles(List signerRoles) { + public void setSignerRoles(@jakarta.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; } - public TemplateResponse ccRoles(List ccRoles) { + public TemplateResponse ccRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; return this; } @@ -426,12 +442,12 @@ public List getCcRoles() { @JsonProperty(JSON_PROPERTY_CC_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcRoles(List ccRoles) { + public void setCcRoles(@jakarta.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; } - public TemplateResponse documents(List documents) { + public TemplateResponse documents(@jakarta.annotation.Nullable List documents) { this.documents = documents; return this; } @@ -459,13 +475,13 @@ public List getDocuments() { @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocuments(List documents) { + public void setDocuments(@jakarta.annotation.Nullable List documents) { this.documents = documents; } @Deprecated - public TemplateResponse customFields(List customFields) { + public TemplateResponse customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -496,13 +512,13 @@ public List getCustomFields() { @Deprecated @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } @Deprecated - public TemplateResponse namedFormFields(List namedFormFields) { + public TemplateResponse namedFormFields(@jakarta.annotation.Nullable List namedFormFields) { this.namedFormFields = namedFormFields; return this; } @@ -533,12 +549,12 @@ public List getNamedFormFields() { @Deprecated @JsonProperty(JSON_PROPERTY_NAMED_FORM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNamedFormFields(List namedFormFields) { + public void setNamedFormFields(@jakarta.annotation.Nullable List namedFormFields) { this.namedFormFields = namedFormFields; } - public TemplateResponse accounts(List accounts) { + public TemplateResponse accounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; return this; } @@ -566,12 +582,12 @@ public List getAccounts() { @JsonProperty(JSON_PROPERTY_ACCOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccounts(List accounts) { + public void setAccounts(@jakarta.annotation.Nullable List accounts) { this.accounts = accounts; } - public TemplateResponse attachments(List attachments) { + public TemplateResponse attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -599,7 +615,7 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java index 53f50dd8a..0e9d517f0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java @@ -41,25 +41,31 @@ TemplateResponseAccount.JSON_PROPERTY_IS_PAID_HF, TemplateResponseAccount.JSON_PROPERTY_QUOTAS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseAccount { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + @jakarta.annotation.Nullable private String accountId; public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; + @jakarta.annotation.Nullable private String emailAddress; public static final String JSON_PROPERTY_IS_LOCKED = "is_locked"; + @jakarta.annotation.Nullable private Boolean isLocked; public static final String JSON_PROPERTY_IS_PAID_HS = "is_paid_hs"; + @jakarta.annotation.Nullable private Boolean isPaidHs; public static final String JSON_PROPERTY_IS_PAID_HF = "is_paid_hf"; + @jakarta.annotation.Nullable private Boolean isPaidHf; public static final String JSON_PROPERTY_QUOTAS = "quotas"; + @jakarta.annotation.Nullable private TemplateResponseAccountQuota quotas; public TemplateResponseAccount() { @@ -80,7 +86,7 @@ static public TemplateResponseAccount init(HashMap data) throws Exception { ); } - public TemplateResponseAccount accountId(String accountId) { + public TemplateResponseAccount accountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -100,12 +106,12 @@ public String getAccountId() { @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAccountId(String accountId) { + public void setAccountId(@jakarta.annotation.Nullable String accountId) { this.accountId = accountId; } - public TemplateResponseAccount emailAddress(String emailAddress) { + public TemplateResponseAccount emailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; return this; } @@ -125,12 +131,12 @@ public String getEmailAddress() { @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmailAddress(String emailAddress) { + public void setEmailAddress(@jakarta.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; } - public TemplateResponseAccount isLocked(Boolean isLocked) { + public TemplateResponseAccount isLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; return this; } @@ -150,12 +156,12 @@ public Boolean getIsLocked() { @JsonProperty(JSON_PROPERTY_IS_LOCKED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsLocked(Boolean isLocked) { + public void setIsLocked(@jakarta.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; } - public TemplateResponseAccount isPaidHs(Boolean isPaidHs) { + public TemplateResponseAccount isPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; return this; } @@ -175,12 +181,12 @@ public Boolean getIsPaidHs() { @JsonProperty(JSON_PROPERTY_IS_PAID_HS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPaidHs(Boolean isPaidHs) { + public void setIsPaidHs(@jakarta.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; } - public TemplateResponseAccount isPaidHf(Boolean isPaidHf) { + public TemplateResponseAccount isPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; return this; } @@ -200,12 +206,12 @@ public Boolean getIsPaidHf() { @JsonProperty(JSON_PROPERTY_IS_PAID_HF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsPaidHf(Boolean isPaidHf) { + public void setIsPaidHf(@jakarta.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; } - public TemplateResponseAccount quotas(TemplateResponseAccountQuota quotas) { + public TemplateResponseAccount quotas(@jakarta.annotation.Nullable TemplateResponseAccountQuota quotas) { this.quotas = quotas; return this; } @@ -225,7 +231,7 @@ public TemplateResponseAccountQuota getQuotas() { @JsonProperty(JSON_PROPERTY_QUOTAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setQuotas(TemplateResponseAccountQuota quotas) { + public void setQuotas(@jakarta.annotation.Nullable TemplateResponseAccountQuota quotas) { this.quotas = quotas; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java index 78b1f583d..8c0615b74 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java @@ -38,19 +38,23 @@ TemplateResponseAccountQuota.JSON_PROPERTY_DOCUMENTS_LEFT, TemplateResponseAccountQuota.JSON_PROPERTY_SMS_VERIFICATIONS_LEFT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseAccountQuota { public static final String JSON_PROPERTY_TEMPLATES_LEFT = "templates_left"; + @jakarta.annotation.Nullable private Integer templatesLeft; public static final String JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT = "api_signature_requests_left"; + @jakarta.annotation.Nullable private Integer apiSignatureRequestsLeft; public static final String JSON_PROPERTY_DOCUMENTS_LEFT = "documents_left"; + @jakarta.annotation.Nullable private Integer documentsLeft; public static final String JSON_PROPERTY_SMS_VERIFICATIONS_LEFT = "sms_verifications_left"; + @jakarta.annotation.Nullable private Integer smsVerificationsLeft; public TemplateResponseAccountQuota() { @@ -71,7 +75,7 @@ static public TemplateResponseAccountQuota init(HashMap data) throws Exception { ); } - public TemplateResponseAccountQuota templatesLeft(Integer templatesLeft) { + public TemplateResponseAccountQuota templatesLeft(@jakarta.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; return this; } @@ -91,12 +95,12 @@ public Integer getTemplatesLeft() { @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplatesLeft(Integer templatesLeft) { + public void setTemplatesLeft(@jakarta.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; } - public TemplateResponseAccountQuota apiSignatureRequestsLeft(Integer apiSignatureRequestsLeft) { + public TemplateResponseAccountQuota apiSignatureRequestsLeft(@jakarta.annotation.Nullable Integer apiSignatureRequestsLeft) { this.apiSignatureRequestsLeft = apiSignatureRequestsLeft; return this; } @@ -116,12 +120,12 @@ public Integer getApiSignatureRequestsLeft() { @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiSignatureRequestsLeft(Integer apiSignatureRequestsLeft) { + public void setApiSignatureRequestsLeft(@jakarta.annotation.Nullable Integer apiSignatureRequestsLeft) { this.apiSignatureRequestsLeft = apiSignatureRequestsLeft; } - public TemplateResponseAccountQuota documentsLeft(Integer documentsLeft) { + public TemplateResponseAccountQuota documentsLeft(@jakarta.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; return this; } @@ -141,12 +145,12 @@ public Integer getDocumentsLeft() { @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDocumentsLeft(Integer documentsLeft) { + public void setDocumentsLeft(@jakarta.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; } - public TemplateResponseAccountQuota smsVerificationsLeft(Integer smsVerificationsLeft) { + public TemplateResponseAccountQuota smsVerificationsLeft(@jakarta.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; return this; } @@ -166,7 +170,7 @@ public Integer getSmsVerificationsLeft() { @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSmsVerificationsLeft(Integer smsVerificationsLeft) { + public void setSmsVerificationsLeft(@jakarta.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java index 4ed3eb946..9c25e5292 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java @@ -35,10 +35,11 @@ @JsonPropertyOrder({ TemplateResponseCCRole.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseCCRole { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public TemplateResponseCCRole() { @@ -59,7 +60,7 @@ static public TemplateResponseCCRole init(HashMap data) throws Exception { ); } - public TemplateResponseCCRole name(String name) { + public TemplateResponseCCRole name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -79,7 +80,7 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java index 040c68ccc..2ea3ac11b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java @@ -46,25 +46,31 @@ TemplateResponseDocument.JSON_PROPERTY_CUSTOM_FIELDS, TemplateResponseDocument.JSON_PROPERTY_STATIC_FIELDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseDocument { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_INDEX = "index"; + @jakarta.annotation.Nullable private Integer index; public static final String JSON_PROPERTY_FIELD_GROUPS = "field_groups"; + @jakarta.annotation.Nullable private List fieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELDS = "form_fields"; + @jakarta.annotation.Nullable private List formFields = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_STATIC_FIELDS = "static_fields"; + @jakarta.annotation.Nullable private List staticFields = null; public TemplateResponseDocument() { @@ -85,7 +91,7 @@ static public TemplateResponseDocument init(HashMap data) throws Exception { ); } - public TemplateResponseDocument name(String name) { + public TemplateResponseDocument name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -105,12 +111,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TemplateResponseDocument index(Integer index) { + public TemplateResponseDocument index(@jakarta.annotation.Nullable Integer index) { this.index = index; return this; } @@ -130,12 +136,12 @@ public Integer getIndex() { @JsonProperty(JSON_PROPERTY_INDEX) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIndex(Integer index) { + public void setIndex(@jakarta.annotation.Nullable Integer index) { this.index = index; } - public TemplateResponseDocument fieldGroups(List fieldGroups) { + public TemplateResponseDocument fieldGroups(@jakarta.annotation.Nullable List fieldGroups) { this.fieldGroups = fieldGroups; return this; } @@ -163,12 +169,12 @@ public List getFieldGroups() { @JsonProperty(JSON_PROPERTY_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldGroups(List fieldGroups) { + public void setFieldGroups(@jakarta.annotation.Nullable List fieldGroups) { this.fieldGroups = fieldGroups; } - public TemplateResponseDocument formFields(List formFields) { + public TemplateResponseDocument formFields(@jakarta.annotation.Nullable List formFields) { this.formFields = formFields; return this; } @@ -196,12 +202,12 @@ public List getFormFields() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFields(List formFields) { + public void setFormFields(@jakarta.annotation.Nullable List formFields) { this.formFields = formFields; } - public TemplateResponseDocument customFields(List customFields) { + public TemplateResponseDocument customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -229,12 +235,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public TemplateResponseDocument staticFields(List staticFields) { + public TemplateResponseDocument staticFields(@jakarta.annotation.Nullable List staticFields) { this.staticFields = staticFields; return this; } @@ -262,7 +268,7 @@ public List getStaticFields() { @JsonProperty(JSON_PROPERTY_STATIC_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStaticFields(List staticFields) { + public void setStaticFields(@jakarta.annotation.Nullable List staticFields) { this.staticFields = staticFields; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java index 4797afd91..80e1e9c3f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java @@ -47,7 +47,7 @@ TemplateResponseDocumentCustomFieldBase.JSON_PROPERTY_REQUIRED, TemplateResponseDocumentCustomFieldBase.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -60,33 +60,43 @@ public class TemplateResponseDocumentCustomFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_API_ID = "api_id"; + @jakarta.annotation.Nullable private String apiId; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SIGNER = "signer"; + @jakarta.annotation.Nullable private String signer; public static final String JSON_PROPERTY_X = "x"; + @jakarta.annotation.Nullable private Integer x; public static final String JSON_PROPERTY_Y = "y"; + @jakarta.annotation.Nullable private Integer y; public static final String JSON_PROPERTY_WIDTH = "width"; + @jakarta.annotation.Nullable private Integer width; public static final String JSON_PROPERTY_HEIGHT = "height"; + @jakarta.annotation.Nullable private Integer height; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentCustomFieldBase() { @@ -107,7 +117,7 @@ static public TemplateResponseDocumentCustomFieldBase init(HashMap data) throws ); } - public TemplateResponseDocumentCustomFieldBase type(String type) { + public TemplateResponseDocumentCustomFieldBase type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -127,12 +137,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentCustomFieldBase apiId(String apiId) { + public TemplateResponseDocumentCustomFieldBase apiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; return this; } @@ -152,12 +162,12 @@ public String getApiId() { @JsonProperty(JSON_PROPERTY_API_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiId(String apiId) { + public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; } - public TemplateResponseDocumentCustomFieldBase name(String name) { + public TemplateResponseDocumentCustomFieldBase name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -177,12 +187,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TemplateResponseDocumentCustomFieldBase signer(String signer) { + public TemplateResponseDocumentCustomFieldBase signer(@jakarta.annotation.Nullable String signer) { this.signer = signer; return this; } @@ -206,7 +216,7 @@ public String getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(String signer) { + public void setSigner(@jakarta.annotation.Nullable String signer) { this.signer = signer; } @@ -215,7 +225,7 @@ public void setSigner(Integer signer) { } - public TemplateResponseDocumentCustomFieldBase x(Integer x) { + public TemplateResponseDocumentCustomFieldBase x(@jakarta.annotation.Nullable Integer x) { this.x = x; return this; } @@ -235,12 +245,12 @@ public Integer getX() { @JsonProperty(JSON_PROPERTY_X) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setX(Integer x) { + public void setX(@jakarta.annotation.Nullable Integer x) { this.x = x; } - public TemplateResponseDocumentCustomFieldBase y(Integer y) { + public TemplateResponseDocumentCustomFieldBase y(@jakarta.annotation.Nullable Integer y) { this.y = y; return this; } @@ -260,12 +270,12 @@ public Integer getY() { @JsonProperty(JSON_PROPERTY_Y) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setY(Integer y) { + public void setY(@jakarta.annotation.Nullable Integer y) { this.y = y; } - public TemplateResponseDocumentCustomFieldBase width(Integer width) { + public TemplateResponseDocumentCustomFieldBase width(@jakarta.annotation.Nullable Integer width) { this.width = width; return this; } @@ -285,12 +295,12 @@ public Integer getWidth() { @JsonProperty(JSON_PROPERTY_WIDTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWidth(Integer width) { + public void setWidth(@jakarta.annotation.Nullable Integer width) { this.width = width; } - public TemplateResponseDocumentCustomFieldBase height(Integer height) { + public TemplateResponseDocumentCustomFieldBase height(@jakarta.annotation.Nullable Integer height) { this.height = height; return this; } @@ -310,12 +320,12 @@ public Integer getHeight() { @JsonProperty(JSON_PROPERTY_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHeight(Integer height) { + public void setHeight(@jakarta.annotation.Nullable Integer height) { this.height = height; } - public TemplateResponseDocumentCustomFieldBase required(Boolean required) { + public TemplateResponseDocumentCustomFieldBase required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -335,12 +345,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } - public TemplateResponseDocumentCustomFieldBase group(String group) { + public TemplateResponseDocumentCustomFieldBase group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -360,7 +370,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java index 353dd6ac0..40a4564a3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentCustomFieldCheckbox.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentCustomFieldCheckbox extends TemplateResponseDocumentCustomFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "checkbox"; public TemplateResponseDocumentCustomFieldCheckbox() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentCustomFieldCheckbox init(HashMap data) thr ); } - public TemplateResponseDocumentCustomFieldCheckbox type(String type) { + public TemplateResponseDocumentCustomFieldCheckbox type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java index e9c2932d6..e5666932b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java @@ -44,7 +44,7 @@ TemplateResponseDocumentCustomFieldText.JSON_PROPERTY_ORIGINAL_FONT_SIZE, TemplateResponseDocumentCustomFieldText.JSON_PROPERTY_FONT_FAMILY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -53,18 +53,23 @@ public class TemplateResponseDocumentCustomFieldText extends TemplateResponseDocumentCustomFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "text"; public static final String JSON_PROPERTY_AVG_TEXT_LENGTH = "avg_text_length"; + @jakarta.annotation.Nullable private TemplateResponseFieldAvgTextLength avgTextLength; public static final String JSON_PROPERTY_IS_MULTILINE = "isMultiline"; + @jakarta.annotation.Nullable private Boolean isMultiline; public static final String JSON_PROPERTY_ORIGINAL_FONT_SIZE = "originalFontSize"; + @jakarta.annotation.Nullable private Integer originalFontSize; public static final String JSON_PROPERTY_FONT_FAMILY = "fontFamily"; + @jakarta.annotation.Nullable private String fontFamily; public TemplateResponseDocumentCustomFieldText() { @@ -85,7 +90,7 @@ static public TemplateResponseDocumentCustomFieldText init(HashMap data) throws ); } - public TemplateResponseDocumentCustomFieldText type(String type) { + public TemplateResponseDocumentCustomFieldText type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -105,12 +110,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentCustomFieldText avgTextLength(TemplateResponseFieldAvgTextLength avgTextLength) { + public TemplateResponseDocumentCustomFieldText avgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; return this; } @@ -130,12 +135,12 @@ public TemplateResponseFieldAvgTextLength getAvgTextLength() { @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAvgTextLength(TemplateResponseFieldAvgTextLength avgTextLength) { + public void setAvgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; } - public TemplateResponseDocumentCustomFieldText isMultiline(Boolean isMultiline) { + public TemplateResponseDocumentCustomFieldText isMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; return this; } @@ -155,12 +160,12 @@ public Boolean getIsMultiline() { @JsonProperty(JSON_PROPERTY_IS_MULTILINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsMultiline(Boolean isMultiline) { + public void setIsMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; } - public TemplateResponseDocumentCustomFieldText originalFontSize(Integer originalFontSize) { + public TemplateResponseDocumentCustomFieldText originalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; return this; } @@ -180,12 +185,12 @@ public Integer getOriginalFontSize() { @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginalFontSize(Integer originalFontSize) { + public void setOriginalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; } - public TemplateResponseDocumentCustomFieldText fontFamily(String fontFamily) { + public TemplateResponseDocumentCustomFieldText fontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; return this; } @@ -205,7 +210,7 @@ public String getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(String fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java index 3e724af45..bffee5bb0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java @@ -37,13 +37,15 @@ TemplateResponseDocumentFieldGroup.JSON_PROPERTY_NAME, TemplateResponseDocumentFieldGroup.JSON_PROPERTY_RULE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseDocumentFieldGroup { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_RULE = "rule"; + @jakarta.annotation.Nullable private TemplateResponseDocumentFieldGroupRule rule; public TemplateResponseDocumentFieldGroup() { @@ -64,7 +66,7 @@ static public TemplateResponseDocumentFieldGroup init(HashMap data) throws Excep ); } - public TemplateResponseDocumentFieldGroup name(String name) { + public TemplateResponseDocumentFieldGroup name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -84,12 +86,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TemplateResponseDocumentFieldGroup rule(TemplateResponseDocumentFieldGroupRule rule) { + public TemplateResponseDocumentFieldGroup rule(@jakarta.annotation.Nullable TemplateResponseDocumentFieldGroupRule rule) { this.rule = rule; return this; } @@ -109,7 +111,7 @@ public TemplateResponseDocumentFieldGroupRule getRule() { @JsonProperty(JSON_PROPERTY_RULE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRule(TemplateResponseDocumentFieldGroupRule rule) { + public void setRule(@jakarta.annotation.Nullable TemplateResponseDocumentFieldGroupRule rule) { this.rule = rule; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java index 65aa63b0f..8842e29df 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java @@ -36,13 +36,15 @@ TemplateResponseDocumentFieldGroupRule.JSON_PROPERTY_REQUIREMENT, TemplateResponseDocumentFieldGroupRule.JSON_PROPERTY_GROUP_LABEL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseDocumentFieldGroupRule { public static final String JSON_PROPERTY_REQUIREMENT = "requirement"; + @jakarta.annotation.Nullable private String requirement; public static final String JSON_PROPERTY_GROUP_LABEL = "groupLabel"; + @jakarta.annotation.Nullable private String groupLabel; public TemplateResponseDocumentFieldGroupRule() { @@ -63,7 +65,7 @@ static public TemplateResponseDocumentFieldGroupRule init(HashMap data) throws E ); } - public TemplateResponseDocumentFieldGroupRule requirement(String requirement) { + public TemplateResponseDocumentFieldGroupRule requirement(@jakarta.annotation.Nullable String requirement) { this.requirement = requirement; return this; } @@ -83,12 +85,12 @@ public String getRequirement() { @JsonProperty(JSON_PROPERTY_REQUIREMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequirement(String requirement) { + public void setRequirement(@jakarta.annotation.Nullable String requirement) { this.requirement = requirement; } - public TemplateResponseDocumentFieldGroupRule groupLabel(String groupLabel) { + public TemplateResponseDocumentFieldGroupRule groupLabel(@jakarta.annotation.Nullable String groupLabel) { this.groupLabel = groupLabel; return this; } @@ -108,7 +110,7 @@ public String getGroupLabel() { @JsonProperty(JSON_PROPERTY_GROUP_LABEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroupLabel(String groupLabel) { + public void setGroupLabel(@jakarta.annotation.Nullable String groupLabel) { this.groupLabel = groupLabel; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java index 25ee2dc73..6256087c4 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java @@ -46,7 +46,7 @@ TemplateResponseDocumentFormFieldBase.JSON_PROPERTY_HEIGHT, TemplateResponseDocumentFormFieldBase.JSON_PROPERTY_REQUIRED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -65,30 +65,39 @@ public class TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_API_ID = "api_id"; + @jakarta.annotation.Nullable private String apiId; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SIGNER = "signer"; + @jakarta.annotation.Nullable private String signer; public static final String JSON_PROPERTY_X = "x"; + @jakarta.annotation.Nullable private Integer x; public static final String JSON_PROPERTY_Y = "y"; + @jakarta.annotation.Nullable private Integer y; public static final String JSON_PROPERTY_WIDTH = "width"; + @jakarta.annotation.Nullable private Integer width; public static final String JSON_PROPERTY_HEIGHT = "height"; + @jakarta.annotation.Nullable private Integer height; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required; public TemplateResponseDocumentFormFieldBase() { @@ -109,7 +118,7 @@ static public TemplateResponseDocumentFormFieldBase init(HashMap data) throws Ex ); } - public TemplateResponseDocumentFormFieldBase type(String type) { + public TemplateResponseDocumentFormFieldBase type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -129,12 +138,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldBase apiId(String apiId) { + public TemplateResponseDocumentFormFieldBase apiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; return this; } @@ -154,12 +163,12 @@ public String getApiId() { @JsonProperty(JSON_PROPERTY_API_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiId(String apiId) { + public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; } - public TemplateResponseDocumentFormFieldBase name(String name) { + public TemplateResponseDocumentFormFieldBase name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -179,12 +188,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TemplateResponseDocumentFormFieldBase signer(String signer) { + public TemplateResponseDocumentFormFieldBase signer(@jakarta.annotation.Nullable String signer) { this.signer = signer; return this; } @@ -208,7 +217,7 @@ public String getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(String signer) { + public void setSigner(@jakarta.annotation.Nullable String signer) { this.signer = signer; } @@ -217,7 +226,7 @@ public void setSigner(Integer signer) { } - public TemplateResponseDocumentFormFieldBase x(Integer x) { + public TemplateResponseDocumentFormFieldBase x(@jakarta.annotation.Nullable Integer x) { this.x = x; return this; } @@ -237,12 +246,12 @@ public Integer getX() { @JsonProperty(JSON_PROPERTY_X) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setX(Integer x) { + public void setX(@jakarta.annotation.Nullable Integer x) { this.x = x; } - public TemplateResponseDocumentFormFieldBase y(Integer y) { + public TemplateResponseDocumentFormFieldBase y(@jakarta.annotation.Nullable Integer y) { this.y = y; return this; } @@ -262,12 +271,12 @@ public Integer getY() { @JsonProperty(JSON_PROPERTY_Y) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setY(Integer y) { + public void setY(@jakarta.annotation.Nullable Integer y) { this.y = y; } - public TemplateResponseDocumentFormFieldBase width(Integer width) { + public TemplateResponseDocumentFormFieldBase width(@jakarta.annotation.Nullable Integer width) { this.width = width; return this; } @@ -287,12 +296,12 @@ public Integer getWidth() { @JsonProperty(JSON_PROPERTY_WIDTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWidth(Integer width) { + public void setWidth(@jakarta.annotation.Nullable Integer width) { this.width = width; } - public TemplateResponseDocumentFormFieldBase height(Integer height) { + public TemplateResponseDocumentFormFieldBase height(@jakarta.annotation.Nullable Integer height) { this.height = height; return this; } @@ -312,12 +321,12 @@ public Integer getHeight() { @JsonProperty(JSON_PROPERTY_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHeight(Integer height) { + public void setHeight(@jakarta.annotation.Nullable Integer height) { this.height = height; } - public TemplateResponseDocumentFormFieldBase required(Boolean required) { + public TemplateResponseDocumentFormFieldBase required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -337,7 +346,7 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java index 110468a28..81b0ce164 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldCheckbox.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldCheckbox.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class TemplateResponseDocumentFormFieldCheckbox extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "checkbox"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldCheckbox() { @@ -72,7 +74,7 @@ static public TemplateResponseDocumentFormFieldCheckbox init(HashMap data) throw ); } - public TemplateResponseDocumentFormFieldCheckbox type(String type) { + public TemplateResponseDocumentFormFieldCheckbox type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldCheckbox group(String group) { + public TemplateResponseDocumentFormFieldCheckbox group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -117,7 +119,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java index 67ec89a5c..b59e545df 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldDateSigned.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldDateSigned.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class TemplateResponseDocumentFormFieldDateSigned extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "date_signed"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldDateSigned() { @@ -72,7 +74,7 @@ static public TemplateResponseDocumentFormFieldDateSigned init(HashMap data) thr ); } - public TemplateResponseDocumentFormFieldDateSigned type(String type) { + public TemplateResponseDocumentFormFieldDateSigned type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldDateSigned group(String group) { + public TemplateResponseDocumentFormFieldDateSigned group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -117,7 +119,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java index 8003f4c05..951081dcf 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "dropdown"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldDropdown() { @@ -72,7 +74,7 @@ static public TemplateResponseDocumentFormFieldDropdown init(HashMap data) throw ); } - public TemplateResponseDocumentFormFieldDropdown type(String type) { + public TemplateResponseDocumentFormFieldDropdown type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldDropdown group(String group) { + public TemplateResponseDocumentFormFieldDropdown group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -117,7 +119,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java index 6ce907e55..5a917fa31 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java @@ -45,7 +45,7 @@ TemplateResponseDocumentFormFieldHyperlink.JSON_PROPERTY_FONT_FAMILY, TemplateResponseDocumentFormFieldHyperlink.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -54,21 +54,27 @@ public class TemplateResponseDocumentFormFieldHyperlink extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "hyperlink"; public static final String JSON_PROPERTY_AVG_TEXT_LENGTH = "avg_text_length"; + @jakarta.annotation.Nullable private TemplateResponseFieldAvgTextLength avgTextLength; public static final String JSON_PROPERTY_IS_MULTILINE = "isMultiline"; + @jakarta.annotation.Nullable private Boolean isMultiline; public static final String JSON_PROPERTY_ORIGINAL_FONT_SIZE = "originalFontSize"; + @jakarta.annotation.Nullable private Integer originalFontSize; public static final String JSON_PROPERTY_FONT_FAMILY = "fontFamily"; + @jakarta.annotation.Nullable private String fontFamily; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldHyperlink() { @@ -89,7 +95,7 @@ static public TemplateResponseDocumentFormFieldHyperlink init(HashMap data) thro ); } - public TemplateResponseDocumentFormFieldHyperlink type(String type) { + public TemplateResponseDocumentFormFieldHyperlink type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -109,12 +115,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldHyperlink avgTextLength(TemplateResponseFieldAvgTextLength avgTextLength) { + public TemplateResponseDocumentFormFieldHyperlink avgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; return this; } @@ -134,12 +140,12 @@ public TemplateResponseFieldAvgTextLength getAvgTextLength() { @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAvgTextLength(TemplateResponseFieldAvgTextLength avgTextLength) { + public void setAvgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; } - public TemplateResponseDocumentFormFieldHyperlink isMultiline(Boolean isMultiline) { + public TemplateResponseDocumentFormFieldHyperlink isMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; return this; } @@ -159,12 +165,12 @@ public Boolean getIsMultiline() { @JsonProperty(JSON_PROPERTY_IS_MULTILINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsMultiline(Boolean isMultiline) { + public void setIsMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; } - public TemplateResponseDocumentFormFieldHyperlink originalFontSize(Integer originalFontSize) { + public TemplateResponseDocumentFormFieldHyperlink originalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; return this; } @@ -184,12 +190,12 @@ public Integer getOriginalFontSize() { @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginalFontSize(Integer originalFontSize) { + public void setOriginalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; } - public TemplateResponseDocumentFormFieldHyperlink fontFamily(String fontFamily) { + public TemplateResponseDocumentFormFieldHyperlink fontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; return this; } @@ -209,12 +215,12 @@ public String getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(String fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; } - public TemplateResponseDocumentFormFieldHyperlink group(String group) { + public TemplateResponseDocumentFormFieldHyperlink group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -234,7 +240,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java index 7aa96f533..336e01632 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldInitials.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldInitials.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class TemplateResponseDocumentFormFieldInitials extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "initials"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldInitials() { @@ -72,7 +74,7 @@ static public TemplateResponseDocumentFormFieldInitials init(HashMap data) throw ); } - public TemplateResponseDocumentFormFieldInitials type(String type) { + public TemplateResponseDocumentFormFieldInitials type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldInitials group(String group) { + public TemplateResponseDocumentFormFieldInitials group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -117,7 +119,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java index 5e9365793..7a41f8e9c 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldRadio.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldRadio.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class TemplateResponseDocumentFormFieldRadio extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "radio"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nonnull private String group; public TemplateResponseDocumentFormFieldRadio() { @@ -72,7 +74,7 @@ static public TemplateResponseDocumentFormFieldRadio init(HashMap data) throws E ); } - public TemplateResponseDocumentFormFieldRadio type(String type) { + public TemplateResponseDocumentFormFieldRadio type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldRadio group(String group) { + public TemplateResponseDocumentFormFieldRadio group(@jakarta.annotation.Nonnull String group) { this.group = group; return this; } @@ -117,7 +119,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nonnull String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java index ac0a0c321..17b167c7b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java @@ -40,7 +40,7 @@ TemplateResponseDocumentFormFieldSignature.JSON_PROPERTY_TYPE, TemplateResponseDocumentFormFieldSignature.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -49,9 +49,11 @@ public class TemplateResponseDocumentFormFieldSignature extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "signature"; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldSignature() { @@ -72,7 +74,7 @@ static public TemplateResponseDocumentFormFieldSignature init(HashMap data) thro ); } - public TemplateResponseDocumentFormFieldSignature type(String type) { + public TemplateResponseDocumentFormFieldSignature type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -92,12 +94,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldSignature group(String group) { + public TemplateResponseDocumentFormFieldSignature group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -117,7 +119,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java index db5fce4c8..7bbb7ca05 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java @@ -46,7 +46,7 @@ TemplateResponseDocumentFormFieldText.JSON_PROPERTY_VALIDATION_TYPE, TemplateResponseDocumentFormFieldText.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -55,43 +55,48 @@ public class TemplateResponseDocumentFormFieldText extends TemplateResponseDocumentFormFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "text"; public static final String JSON_PROPERTY_AVG_TEXT_LENGTH = "avg_text_length"; + @jakarta.annotation.Nullable private TemplateResponseFieldAvgTextLength avgTextLength; public static final String JSON_PROPERTY_IS_MULTILINE = "isMultiline"; + @jakarta.annotation.Nullable private Boolean isMultiline; public static final String JSON_PROPERTY_ORIGINAL_FONT_SIZE = "originalFontSize"; + @jakarta.annotation.Nullable private Integer originalFontSize; public static final String JSON_PROPERTY_FONT_FAMILY = "fontFamily"; + @jakarta.annotation.Nullable private String fontFamily; /** * Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. */ public enum ValidationTypeEnum { - NUMBERS_ONLY("numbers_only"), + NUMBERS_ONLY(String.valueOf("numbers_only")), - LETTERS_ONLY("letters_only"), + LETTERS_ONLY(String.valueOf("letters_only")), - PHONE_NUMBER("phone_number"), + PHONE_NUMBER(String.valueOf("phone_number")), - BANK_ROUTING_NUMBER("bank_routing_number"), + BANK_ROUTING_NUMBER(String.valueOf("bank_routing_number")), - BANK_ACCOUNT_NUMBER("bank_account_number"), + BANK_ACCOUNT_NUMBER(String.valueOf("bank_account_number")), - EMAIL_ADDRESS("email_address"), + EMAIL_ADDRESS(String.valueOf("email_address")), - ZIP_CODE("zip_code"), + ZIP_CODE(String.valueOf("zip_code")), - SOCIAL_SECURITY_NUMBER("social_security_number"), + SOCIAL_SECURITY_NUMBER(String.valueOf("social_security_number")), - EMPLOYER_IDENTIFICATION_NUMBER("employer_identification_number"), + EMPLOYER_IDENTIFICATION_NUMBER(String.valueOf("employer_identification_number")), - CUSTOM_REGEX("custom_regex"); + CUSTOM_REGEX(String.valueOf("custom_regex")); private String value; @@ -121,9 +126,11 @@ public static ValidationTypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_VALIDATION_TYPE = "validation_type"; + @jakarta.annotation.Nullable private ValidationTypeEnum validationType; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentFormFieldText() { @@ -144,7 +151,7 @@ static public TemplateResponseDocumentFormFieldText init(HashMap data) throws Ex ); } - public TemplateResponseDocumentFormFieldText type(String type) { + public TemplateResponseDocumentFormFieldText type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -164,12 +171,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentFormFieldText avgTextLength(TemplateResponseFieldAvgTextLength avgTextLength) { + public TemplateResponseDocumentFormFieldText avgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; return this; } @@ -189,12 +196,12 @@ public TemplateResponseFieldAvgTextLength getAvgTextLength() { @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAvgTextLength(TemplateResponseFieldAvgTextLength avgTextLength) { + public void setAvgTextLength(@jakarta.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { this.avgTextLength = avgTextLength; } - public TemplateResponseDocumentFormFieldText isMultiline(Boolean isMultiline) { + public TemplateResponseDocumentFormFieldText isMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; return this; } @@ -214,12 +221,12 @@ public Boolean getIsMultiline() { @JsonProperty(JSON_PROPERTY_IS_MULTILINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsMultiline(Boolean isMultiline) { + public void setIsMultiline(@jakarta.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; } - public TemplateResponseDocumentFormFieldText originalFontSize(Integer originalFontSize) { + public TemplateResponseDocumentFormFieldText originalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; return this; } @@ -239,12 +246,12 @@ public Integer getOriginalFontSize() { @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOriginalFontSize(Integer originalFontSize) { + public void setOriginalFontSize(@jakarta.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; } - public TemplateResponseDocumentFormFieldText fontFamily(String fontFamily) { + public TemplateResponseDocumentFormFieldText fontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; return this; } @@ -264,12 +271,12 @@ public String getFontFamily() { @JsonProperty(JSON_PROPERTY_FONT_FAMILY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFontFamily(String fontFamily) { + public void setFontFamily(@jakarta.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; } - public TemplateResponseDocumentFormFieldText validationType(ValidationTypeEnum validationType) { + public TemplateResponseDocumentFormFieldText validationType(@jakarta.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; return this; } @@ -289,12 +296,12 @@ public ValidationTypeEnum getValidationType() { @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValidationType(ValidationTypeEnum validationType) { + public void setValidationType(@jakarta.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; } - public TemplateResponseDocumentFormFieldText group(String group) { + public TemplateResponseDocumentFormFieldText group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -314,7 +321,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java index 4e1e98229..06bb9773f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java @@ -47,7 +47,7 @@ TemplateResponseDocumentStaticFieldBase.JSON_PROPERTY_REQUIRED, TemplateResponseDocumentStaticFieldBase.JSON_PROPERTY_GROUP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -66,33 +66,43 @@ public class TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type; public static final String JSON_PROPERTY_API_ID = "api_id"; + @jakarta.annotation.Nullable private String apiId; public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_SIGNER = "signer"; + @jakarta.annotation.Nullable private String signer = "me_now"; public static final String JSON_PROPERTY_X = "x"; + @jakarta.annotation.Nullable private Integer x; public static final String JSON_PROPERTY_Y = "y"; + @jakarta.annotation.Nullable private Integer y; public static final String JSON_PROPERTY_WIDTH = "width"; + @jakarta.annotation.Nullable private Integer width; public static final String JSON_PROPERTY_HEIGHT = "height"; + @jakarta.annotation.Nullable private Integer height; public static final String JSON_PROPERTY_REQUIRED = "required"; + @jakarta.annotation.Nullable private Boolean required; public static final String JSON_PROPERTY_GROUP = "group"; + @jakarta.annotation.Nullable private String group; public TemplateResponseDocumentStaticFieldBase() { @@ -113,7 +123,7 @@ static public TemplateResponseDocumentStaticFieldBase init(HashMap data) throws ); } - public TemplateResponseDocumentStaticFieldBase type(String type) { + public TemplateResponseDocumentStaticFieldBase type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -133,12 +143,12 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } - public TemplateResponseDocumentStaticFieldBase apiId(String apiId) { + public TemplateResponseDocumentStaticFieldBase apiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; return this; } @@ -158,12 +168,12 @@ public String getApiId() { @JsonProperty(JSON_PROPERTY_API_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setApiId(String apiId) { + public void setApiId(@jakarta.annotation.Nullable String apiId) { this.apiId = apiId; } - public TemplateResponseDocumentStaticFieldBase name(String name) { + public TemplateResponseDocumentStaticFieldBase name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -183,12 +193,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TemplateResponseDocumentStaticFieldBase signer(String signer) { + public TemplateResponseDocumentStaticFieldBase signer(@jakarta.annotation.Nullable String signer) { this.signer = signer; return this; } @@ -208,12 +218,12 @@ public String getSigner() { @JsonProperty(JSON_PROPERTY_SIGNER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigner(String signer) { + public void setSigner(@jakarta.annotation.Nullable String signer) { this.signer = signer; } - public TemplateResponseDocumentStaticFieldBase x(Integer x) { + public TemplateResponseDocumentStaticFieldBase x(@jakarta.annotation.Nullable Integer x) { this.x = x; return this; } @@ -233,12 +243,12 @@ public Integer getX() { @JsonProperty(JSON_PROPERTY_X) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setX(Integer x) { + public void setX(@jakarta.annotation.Nullable Integer x) { this.x = x; } - public TemplateResponseDocumentStaticFieldBase y(Integer y) { + public TemplateResponseDocumentStaticFieldBase y(@jakarta.annotation.Nullable Integer y) { this.y = y; return this; } @@ -258,12 +268,12 @@ public Integer getY() { @JsonProperty(JSON_PROPERTY_Y) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setY(Integer y) { + public void setY(@jakarta.annotation.Nullable Integer y) { this.y = y; } - public TemplateResponseDocumentStaticFieldBase width(Integer width) { + public TemplateResponseDocumentStaticFieldBase width(@jakarta.annotation.Nullable Integer width) { this.width = width; return this; } @@ -283,12 +293,12 @@ public Integer getWidth() { @JsonProperty(JSON_PROPERTY_WIDTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWidth(Integer width) { + public void setWidth(@jakarta.annotation.Nullable Integer width) { this.width = width; } - public TemplateResponseDocumentStaticFieldBase height(Integer height) { + public TemplateResponseDocumentStaticFieldBase height(@jakarta.annotation.Nullable Integer height) { this.height = height; return this; } @@ -308,12 +318,12 @@ public Integer getHeight() { @JsonProperty(JSON_PROPERTY_HEIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHeight(Integer height) { + public void setHeight(@jakarta.annotation.Nullable Integer height) { this.height = height; } - public TemplateResponseDocumentStaticFieldBase required(Boolean required) { + public TemplateResponseDocumentStaticFieldBase required(@jakarta.annotation.Nullable Boolean required) { this.required = required; return this; } @@ -333,12 +343,12 @@ public Boolean getRequired() { @JsonProperty(JSON_PROPERTY_REQUIRED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequired(Boolean required) { + public void setRequired(@jakarta.annotation.Nullable Boolean required) { this.required = required; } - public TemplateResponseDocumentStaticFieldBase group(String group) { + public TemplateResponseDocumentStaticFieldBase group(@jakarta.annotation.Nullable String group) { this.group = group; return this; } @@ -358,7 +368,7 @@ public String getGroup() { @JsonProperty(JSON_PROPERTY_GROUP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setGroup(String group) { + public void setGroup(@jakarta.annotation.Nullable String group) { this.group = group; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java index d23f85310..81c46c3c0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldCheckbox.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldCheckbox extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "checkbox"; public TemplateResponseDocumentStaticFieldCheckbox() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldCheckbox init(HashMap data) thr ); } - public TemplateResponseDocumentStaticFieldCheckbox type(String type) { + public TemplateResponseDocumentStaticFieldCheckbox type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java index 8a19f3c5b..7afedcd0a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldDateSigned.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldDateSigned extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "date_signed"; public TemplateResponseDocumentStaticFieldDateSigned() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldDateSigned init(HashMap data) t ); } - public TemplateResponseDocumentStaticFieldDateSigned type(String type) { + public TemplateResponseDocumentStaticFieldDateSigned type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java index 171417e43..41e424629 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldDropdown.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldDropdown extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "dropdown"; public TemplateResponseDocumentStaticFieldDropdown() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldDropdown init(HashMap data) thr ); } - public TemplateResponseDocumentStaticFieldDropdown type(String type) { + public TemplateResponseDocumentStaticFieldDropdown type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java index 925996dee..bea9d8426 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldHyperlink.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldHyperlink extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "hyperlink"; public TemplateResponseDocumentStaticFieldHyperlink() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldHyperlink init(HashMap data) th ); } - public TemplateResponseDocumentStaticFieldHyperlink type(String type) { + public TemplateResponseDocumentStaticFieldHyperlink type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java index 15e4b07aa..1ec5db416 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldInitials.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldInitials extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "initials"; public TemplateResponseDocumentStaticFieldInitials() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldInitials init(HashMap data) thr ); } - public TemplateResponseDocumentStaticFieldInitials type(String type) { + public TemplateResponseDocumentStaticFieldInitials type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java index 73f1fd8a4..b1401f4ca 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldRadio.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldRadio extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "radio"; public TemplateResponseDocumentStaticFieldRadio() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldRadio init(HashMap data) throws ); } - public TemplateResponseDocumentStaticFieldRadio type(String type) { + public TemplateResponseDocumentStaticFieldRadio type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java index 6e472ecf9..f72de56c5 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldSignature.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldSignature extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "signature"; public TemplateResponseDocumentStaticFieldSignature() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldSignature init(HashMap data) th ); } - public TemplateResponseDocumentStaticFieldSignature type(String type) { + public TemplateResponseDocumentStaticFieldSignature type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java index 877819958..4d313af54 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java @@ -39,7 +39,7 @@ @JsonPropertyOrder({ TemplateResponseDocumentStaticFieldText.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true @@ -48,6 +48,7 @@ public class TemplateResponseDocumentStaticFieldText extends TemplateResponseDocumentStaticFieldBase { public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private String type = "text"; public TemplateResponseDocumentStaticFieldText() { @@ -68,7 +69,7 @@ static public TemplateResponseDocumentStaticFieldText init(HashMap data) throws ); } - public TemplateResponseDocumentStaticFieldText type(String type) { + public TemplateResponseDocumentStaticFieldText type(@jakarta.annotation.Nonnull String type) { this.type = type; return this; } @@ -88,7 +89,7 @@ public String getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(@jakarta.annotation.Nonnull String type) { this.type = type; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java index 38f5acd25..e87ce403d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java @@ -36,13 +36,15 @@ TemplateResponseFieldAvgTextLength.JSON_PROPERTY_NUM_LINES, TemplateResponseFieldAvgTextLength.JSON_PROPERTY_NUM_CHARS_PER_LINE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseFieldAvgTextLength { public static final String JSON_PROPERTY_NUM_LINES = "num_lines"; + @jakarta.annotation.Nullable private Integer numLines; public static final String JSON_PROPERTY_NUM_CHARS_PER_LINE = "num_chars_per_line"; + @jakarta.annotation.Nullable private Integer numCharsPerLine; public TemplateResponseFieldAvgTextLength() { @@ -63,7 +65,7 @@ static public TemplateResponseFieldAvgTextLength init(HashMap data) throws Excep ); } - public TemplateResponseFieldAvgTextLength numLines(Integer numLines) { + public TemplateResponseFieldAvgTextLength numLines(@jakarta.annotation.Nullable Integer numLines) { this.numLines = numLines; return this; } @@ -83,12 +85,12 @@ public Integer getNumLines() { @JsonProperty(JSON_PROPERTY_NUM_LINES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumLines(Integer numLines) { + public void setNumLines(@jakarta.annotation.Nullable Integer numLines) { this.numLines = numLines; } - public TemplateResponseFieldAvgTextLength numCharsPerLine(Integer numCharsPerLine) { + public TemplateResponseFieldAvgTextLength numCharsPerLine(@jakarta.annotation.Nullable Integer numCharsPerLine) { this.numCharsPerLine = numCharsPerLine; return this; } @@ -108,7 +110,7 @@ public Integer getNumCharsPerLine() { @JsonProperty(JSON_PROPERTY_NUM_CHARS_PER_LINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumCharsPerLine(Integer numCharsPerLine) { + public void setNumCharsPerLine(@jakarta.annotation.Nullable Integer numCharsPerLine) { this.numCharsPerLine = numCharsPerLine; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java index 45d786a89..6e5e2127b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java @@ -36,13 +36,15 @@ TemplateResponseSignerRole.JSON_PROPERTY_NAME, TemplateResponseSignerRole.JSON_PROPERTY_ORDER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateResponseSignerRole { public static final String JSON_PROPERTY_NAME = "name"; + @jakarta.annotation.Nullable private String name; public static final String JSON_PROPERTY_ORDER = "order"; + @jakarta.annotation.Nullable private Integer order; public TemplateResponseSignerRole() { @@ -63,7 +65,7 @@ static public TemplateResponseSignerRole init(HashMap data) throws Exception { ); } - public TemplateResponseSignerRole name(String name) { + public TemplateResponseSignerRole name(@jakarta.annotation.Nullable String name) { this.name = name; return this; } @@ -83,12 +85,12 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { + public void setName(@jakarta.annotation.Nullable String name) { this.name = name; } - public TemplateResponseSignerRole order(Integer order) { + public TemplateResponseSignerRole order(@jakarta.annotation.Nullable Integer order) { this.order = order; return this; } @@ -108,7 +110,7 @@ public Integer getOrder() { @JsonProperty(JSON_PROPERTY_ORDER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOrder(Integer order) { + public void setOrder(@jakarta.annotation.Nullable Integer order) { this.order = order; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java index 432b36800..8e7f33fbf 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java @@ -43,25 +43,31 @@ TemplateUpdateFilesRequest.JSON_PROPERTY_SUBJECT, TemplateUpdateFilesRequest.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateUpdateFilesRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public TemplateUpdateFilesRequest() { @@ -82,7 +88,7 @@ static public TemplateUpdateFilesRequest init(HashMap data) throws Exception { ); } - public TemplateUpdateFilesRequest clientId(String clientId) { + public TemplateUpdateFilesRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -102,12 +108,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public TemplateUpdateFilesRequest files(List files) { + public TemplateUpdateFilesRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -135,12 +141,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public TemplateUpdateFilesRequest fileUrls(List fileUrls) { + public TemplateUpdateFilesRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -168,12 +174,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public TemplateUpdateFilesRequest message(String message) { + public TemplateUpdateFilesRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -193,12 +199,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public TemplateUpdateFilesRequest subject(String subject) { + public TemplateUpdateFilesRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -218,12 +224,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public TemplateUpdateFilesRequest testMode(Boolean testMode) { + public TemplateUpdateFilesRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -243,7 +249,7 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java index 862c43122..2cddd3e0b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java @@ -36,10 +36,11 @@ @JsonPropertyOrder({ TemplateUpdateFilesResponse.JSON_PROPERTY_TEMPLATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateUpdateFilesResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; + @jakarta.annotation.Nonnull private TemplateUpdateFilesResponseTemplate template; public TemplateUpdateFilesResponse() { @@ -60,7 +61,7 @@ static public TemplateUpdateFilesResponse init(HashMap data) throws Exception { ); } - public TemplateUpdateFilesResponse template(TemplateUpdateFilesResponseTemplate template) { + public TemplateUpdateFilesResponse template(@jakarta.annotation.Nonnull TemplateUpdateFilesResponseTemplate template) { this.template = template; return this; } @@ -80,7 +81,7 @@ public TemplateUpdateFilesResponseTemplate getTemplate() { @JsonProperty(JSON_PROPERTY_TEMPLATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplate(TemplateUpdateFilesResponseTemplate template) { + public void setTemplate(@jakarta.annotation.Nonnull TemplateUpdateFilesResponseTemplate template) { this.template = template; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java index 19dea91bd..3dc17d816 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java @@ -39,14 +39,16 @@ TemplateUpdateFilesResponseTemplate.JSON_PROPERTY_TEMPLATE_ID, TemplateUpdateFilesResponseTemplate.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class TemplateUpdateFilesResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; + @jakarta.annotation.Nullable private String templateId; public static final String JSON_PROPERTY_WARNINGS = "warnings"; @Deprecated + @jakarta.annotation.Nullable private List warnings = null; public TemplateUpdateFilesResponseTemplate() { @@ -67,7 +69,7 @@ static public TemplateUpdateFilesResponseTemplate init(HashMap data) throws Exce ); } - public TemplateUpdateFilesResponseTemplate templateId(String templateId) { + public TemplateUpdateFilesResponseTemplate templateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; return this; } @@ -87,13 +89,13 @@ public String getTemplateId() { @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTemplateId(String templateId) { + public void setTemplateId(@jakarta.annotation.Nullable String templateId) { this.templateId = templateId; } @Deprecated - public TemplateUpdateFilesResponseTemplate warnings(List warnings) { + public TemplateUpdateFilesResponseTemplate warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -124,7 +126,7 @@ public List getWarnings() { @Deprecated @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java index 5dd37a36f..0c762b684 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java @@ -84,109 +84,140 @@ UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, UnclaimedDraftCreateEmbeddedRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS = "requester_email_address"; + @jakarta.annotation.Nonnull private String requesterEmailAddress; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_ALLOW_CCS = "allow_ccs"; + @jakarta.annotation.Nullable private Boolean allowCcs = true; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_EDITOR_OPTIONS = "editor_options"; + @jakarta.annotation.Nullable private SubEditorOptions editorOptions; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORCE_SIGNER_PAGE = "force_signer_page"; + @jakarta.annotation.Nullable private Boolean forceSignerPage = false; public static final String JSON_PROPERTY_FORCE_SUBJECT_MESSAGE = "force_subject_message"; + @jakarta.annotation.Nullable private Boolean forceSubjectMessage = false; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_HIDE_TEXT_TAGS = "hide_text_tags"; + @jakarta.annotation.Nullable private Boolean hideTextTags = false; public static final String JSON_PROPERTY_HOLD_REQUEST = "hold_request"; + @jakarta.annotation.Nullable private Boolean holdRequest = false; public static final String JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING = "is_for_embedded_signing"; + @jakarta.annotation.Nullable private Boolean isForEmbeddedSigning = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_REQUESTING_REDIRECT_URL = "requesting_redirect_url"; + @jakarta.annotation.Nullable private String requestingRedirectUrl; public static final String JSON_PROPERTY_SHOW_PREVIEW = "show_preview"; + @jakarta.annotation.Nullable private Boolean showPreview; public static final String JSON_PROPERTY_SHOW_PROGRESS_STEPPER = "show_progress_stepper"; + @jakarta.annotation.Nullable private Boolean showProgressStepper = true; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SKIP_ME_NOW = "skip_me_now"; + @jakarta.annotation.Nullable private Boolean skipMeNow = false; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; /** * The type of the draft. By default this is `request_signature`, but you can set it to `send_document` if you want to self sign a document and download it. */ public enum TypeEnum { - SEND_DOCUMENT("send_document"), + SEND_DOCUMENT(String.valueOf("send_document")), - REQUEST_SIGNATURE("request_signature"); + REQUEST_SIGNATURE(String.valueOf("request_signature")); private String value; @@ -216,18 +247,23 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nullable private TypeEnum type = TypeEnum.REQUEST_SIGNATURE; public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; + @jakarta.annotation.Nullable private Boolean usePreexistingFields = false; public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; + @jakarta.annotation.Nullable private Boolean useTextTags = false; public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; + @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public UnclaimedDraftCreateEmbeddedRequest() { @@ -248,7 +284,7 @@ static public UnclaimedDraftCreateEmbeddedRequest init(HashMap data) throws Exce ); } - public UnclaimedDraftCreateEmbeddedRequest clientId(String clientId) { + public UnclaimedDraftCreateEmbeddedRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -268,12 +304,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public UnclaimedDraftCreateEmbeddedRequest requesterEmailAddress(String requesterEmailAddress) { + public UnclaimedDraftCreateEmbeddedRequest requesterEmailAddress(@jakarta.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; return this; } @@ -293,12 +329,12 @@ public String getRequesterEmailAddress() { @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequesterEmailAddress(String requesterEmailAddress) { + public void setRequesterEmailAddress(@jakarta.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; } - public UnclaimedDraftCreateEmbeddedRequest files(List files) { + public UnclaimedDraftCreateEmbeddedRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -326,12 +362,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public UnclaimedDraftCreateEmbeddedRequest fileUrls(List fileUrls) { + public UnclaimedDraftCreateEmbeddedRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -359,12 +395,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public UnclaimedDraftCreateEmbeddedRequest allowCcs(Boolean allowCcs) { + public UnclaimedDraftCreateEmbeddedRequest allowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; return this; } @@ -384,12 +420,12 @@ public Boolean getAllowCcs() { @JsonProperty(JSON_PROPERTY_ALLOW_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowCcs(Boolean allowCcs) { + public void setAllowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; } - public UnclaimedDraftCreateEmbeddedRequest allowDecline(Boolean allowDecline) { + public UnclaimedDraftCreateEmbeddedRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -409,12 +445,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public UnclaimedDraftCreateEmbeddedRequest allowReassign(Boolean allowReassign) { + public UnclaimedDraftCreateEmbeddedRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -434,12 +470,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public UnclaimedDraftCreateEmbeddedRequest attachments(List attachments) { + public UnclaimedDraftCreateEmbeddedRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -467,12 +503,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public UnclaimedDraftCreateEmbeddedRequest ccEmailAddresses(List ccEmailAddresses) { + public UnclaimedDraftCreateEmbeddedRequest ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -500,12 +536,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public UnclaimedDraftCreateEmbeddedRequest customFields(List customFields) { + public UnclaimedDraftCreateEmbeddedRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -533,12 +569,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public UnclaimedDraftCreateEmbeddedRequest editorOptions(SubEditorOptions editorOptions) { + public UnclaimedDraftCreateEmbeddedRequest editorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; return this; } @@ -558,12 +594,12 @@ public SubEditorOptions getEditorOptions() { @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditorOptions(SubEditorOptions editorOptions) { + public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; } - public UnclaimedDraftCreateEmbeddedRequest fieldOptions(SubFieldOptions fieldOptions) { + public UnclaimedDraftCreateEmbeddedRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -583,12 +619,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public UnclaimedDraftCreateEmbeddedRequest forceSignerPage(Boolean forceSignerPage) { + public UnclaimedDraftCreateEmbeddedRequest forceSignerPage(@jakarta.annotation.Nullable Boolean forceSignerPage) { this.forceSignerPage = forceSignerPage; return this; } @@ -608,12 +644,12 @@ public Boolean getForceSignerPage() { @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSignerPage(Boolean forceSignerPage) { + public void setForceSignerPage(@jakarta.annotation.Nullable Boolean forceSignerPage) { this.forceSignerPage = forceSignerPage; } - public UnclaimedDraftCreateEmbeddedRequest forceSubjectMessage(Boolean forceSubjectMessage) { + public UnclaimedDraftCreateEmbeddedRequest forceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; return this; } @@ -633,12 +669,12 @@ public Boolean getForceSubjectMessage() { @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSubjectMessage(Boolean forceSubjectMessage) { + public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; } - public UnclaimedDraftCreateEmbeddedRequest formFieldGroups(List formFieldGroups) { + public UnclaimedDraftCreateEmbeddedRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -666,12 +702,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public UnclaimedDraftCreateEmbeddedRequest formFieldRules(List formFieldRules) { + public UnclaimedDraftCreateEmbeddedRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -699,12 +735,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public UnclaimedDraftCreateEmbeddedRequest formFieldsPerDocument(List formFieldsPerDocument) { + public UnclaimedDraftCreateEmbeddedRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -732,12 +768,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public UnclaimedDraftCreateEmbeddedRequest hideTextTags(Boolean hideTextTags) { + public UnclaimedDraftCreateEmbeddedRequest hideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; return this; } @@ -757,12 +793,12 @@ public Boolean getHideTextTags() { @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideTextTags(Boolean hideTextTags) { + public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; } - public UnclaimedDraftCreateEmbeddedRequest holdRequest(Boolean holdRequest) { + public UnclaimedDraftCreateEmbeddedRequest holdRequest(@jakarta.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; return this; } @@ -782,12 +818,12 @@ public Boolean getHoldRequest() { @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHoldRequest(Boolean holdRequest) { + public void setHoldRequest(@jakarta.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; } - public UnclaimedDraftCreateEmbeddedRequest isForEmbeddedSigning(Boolean isForEmbeddedSigning) { + public UnclaimedDraftCreateEmbeddedRequest isForEmbeddedSigning(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; return this; } @@ -807,12 +843,12 @@ public Boolean getIsForEmbeddedSigning() { @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsForEmbeddedSigning(Boolean isForEmbeddedSigning) { + public void setIsForEmbeddedSigning(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; } - public UnclaimedDraftCreateEmbeddedRequest message(String message) { + public UnclaimedDraftCreateEmbeddedRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -832,12 +868,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public UnclaimedDraftCreateEmbeddedRequest metadata(Map metadata) { + public UnclaimedDraftCreateEmbeddedRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -865,12 +901,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public UnclaimedDraftCreateEmbeddedRequest requestingRedirectUrl(String requestingRedirectUrl) { + public UnclaimedDraftCreateEmbeddedRequest requestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; return this; } @@ -890,12 +926,12 @@ public String getRequestingRedirectUrl() { @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequestingRedirectUrl(String requestingRedirectUrl) { + public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; } - public UnclaimedDraftCreateEmbeddedRequest showPreview(Boolean showPreview) { + public UnclaimedDraftCreateEmbeddedRequest showPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; return this; } @@ -915,12 +951,12 @@ public Boolean getShowPreview() { @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowPreview(Boolean showPreview) { + public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; } - public UnclaimedDraftCreateEmbeddedRequest showProgressStepper(Boolean showProgressStepper) { + public UnclaimedDraftCreateEmbeddedRequest showProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; return this; } @@ -940,12 +976,12 @@ public Boolean getShowProgressStepper() { @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowProgressStepper(Boolean showProgressStepper) { + public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; } - public UnclaimedDraftCreateEmbeddedRequest signers(List signers) { + public UnclaimedDraftCreateEmbeddedRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -973,12 +1009,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public UnclaimedDraftCreateEmbeddedRequest signingOptions(SubSigningOptions signingOptions) { + public UnclaimedDraftCreateEmbeddedRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -998,12 +1034,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public UnclaimedDraftCreateEmbeddedRequest signingRedirectUrl(String signingRedirectUrl) { + public UnclaimedDraftCreateEmbeddedRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -1023,12 +1059,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public UnclaimedDraftCreateEmbeddedRequest skipMeNow(Boolean skipMeNow) { + public UnclaimedDraftCreateEmbeddedRequest skipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; return this; } @@ -1048,12 +1084,12 @@ public Boolean getSkipMeNow() { @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSkipMeNow(Boolean skipMeNow) { + public void setSkipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; } - public UnclaimedDraftCreateEmbeddedRequest subject(String subject) { + public UnclaimedDraftCreateEmbeddedRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -1073,12 +1109,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public UnclaimedDraftCreateEmbeddedRequest testMode(Boolean testMode) { + public UnclaimedDraftCreateEmbeddedRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -1098,12 +1134,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public UnclaimedDraftCreateEmbeddedRequest type(TypeEnum type) { + public UnclaimedDraftCreateEmbeddedRequest type(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; return this; } @@ -1123,12 +1159,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; } - public UnclaimedDraftCreateEmbeddedRequest usePreexistingFields(Boolean usePreexistingFields) { + public UnclaimedDraftCreateEmbeddedRequest usePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; return this; } @@ -1148,12 +1184,12 @@ public Boolean getUsePreexistingFields() { @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsePreexistingFields(Boolean usePreexistingFields) { + public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; } - public UnclaimedDraftCreateEmbeddedRequest useTextTags(Boolean useTextTags) { + public UnclaimedDraftCreateEmbeddedRequest useTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; return this; } @@ -1173,12 +1209,12 @@ public Boolean getUseTextTags() { @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseTextTags(Boolean useTextTags) { + public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields(Boolean populateAutoFillFields) { + public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; } @@ -1198,12 +1234,12 @@ public Boolean getPopulateAutoFillFields() { @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPopulateAutoFillFields(Boolean populateAutoFillFields) { + public void setPopulateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; } - public UnclaimedDraftCreateEmbeddedRequest expiresAt(Integer expiresAt) { + public UnclaimedDraftCreateEmbeddedRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -1223,7 +1259,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java index 7af776e67..3e598be92 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java @@ -75,97 +75,127 @@ UnclaimedDraftCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, UnclaimedDraftCreateEmbeddedWithTemplateRequest.JSON_PROPERTY_ALLOW_CCS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS = "requester_email_address"; + @jakarta.annotation.Nonnull private String requesterEmailAddress; public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; + @jakarta.annotation.Nonnull private List templateIds = new ArrayList<>(); public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ALLOW_REASSIGN = "allow_reassign"; + @jakarta.annotation.Nullable private Boolean allowReassign = false; public static final String JSON_PROPERTY_CCS = "ccs"; + @jakarta.annotation.Nullable private List ccs = null; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_EDITOR_OPTIONS = "editor_options"; + @jakarta.annotation.Nullable private SubEditorOptions editorOptions; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_FORCE_SIGNER_ROLES = "force_signer_roles"; + @jakarta.annotation.Nullable private Boolean forceSignerRoles = false; public static final String JSON_PROPERTY_FORCE_SUBJECT_MESSAGE = "force_subject_message"; + @jakarta.annotation.Nullable private Boolean forceSubjectMessage = false; public static final String JSON_PROPERTY_HOLD_REQUEST = "hold_request"; + @jakarta.annotation.Nullable private Boolean holdRequest = false; public static final String JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING = "is_for_embedded_signing"; + @jakarta.annotation.Nullable private Boolean isForEmbeddedSigning = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_PREVIEW_ONLY = "preview_only"; + @jakarta.annotation.Nullable private Boolean previewOnly = false; public static final String JSON_PROPERTY_REQUESTING_REDIRECT_URL = "requesting_redirect_url"; + @jakarta.annotation.Nullable private String requestingRedirectUrl; public static final String JSON_PROPERTY_SHOW_PREVIEW = "show_preview"; + @jakarta.annotation.Nullable private Boolean showPreview = false; public static final String JSON_PROPERTY_SHOW_PROGRESS_STEPPER = "show_progress_stepper"; + @jakarta.annotation.Nullable private Boolean showProgressStepper = true; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SKIP_ME_NOW = "skip_me_now"; + @jakarta.annotation.Nullable private Boolean skipMeNow = false; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_TITLE = "title"; + @jakarta.annotation.Nullable private String title; public static final String JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS = "populate_auto_fill_fields"; + @jakarta.annotation.Nullable private Boolean populateAutoFillFields = false; public static final String JSON_PROPERTY_ALLOW_CCS = "allow_ccs"; + @jakarta.annotation.Nullable private Boolean allowCcs = false; public UnclaimedDraftCreateEmbeddedWithTemplateRequest() { @@ -186,7 +216,7 @@ static public UnclaimedDraftCreateEmbeddedWithTemplateRequest init(HashMap data) ); } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest clientId(String clientId) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -206,12 +236,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest requesterEmailAddress(String requesterEmailAddress) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest requesterEmailAddress(@jakarta.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; return this; } @@ -231,12 +261,12 @@ public String getRequesterEmailAddress() { @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequesterEmailAddress(String requesterEmailAddress) { + public void setRequesterEmailAddress(@jakarta.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest templateIds(List templateIds) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest templateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; return this; } @@ -264,12 +294,12 @@ public List getTemplateIds() { @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTemplateIds(List templateIds) { + public void setTemplateIds(@jakarta.annotation.Nonnull List templateIds) { this.templateIds = templateIds; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowDecline(Boolean allowDecline) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -289,12 +319,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowReassign(Boolean allowReassign) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; return this; } @@ -314,12 +344,12 @@ public Boolean getAllowReassign() { @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowReassign(Boolean allowReassign) { + public void setAllowReassign(@jakarta.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest ccs(List ccs) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest ccs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; return this; } @@ -347,12 +377,12 @@ public List getCcs() { @JsonProperty(JSON_PROPERTY_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcs(List ccs) { + public void setCcs(@jakarta.annotation.Nullable List ccs) { this.ccs = ccs; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest customFields(List customFields) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -380,12 +410,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest editorOptions(SubEditorOptions editorOptions) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest editorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; return this; } @@ -405,12 +435,12 @@ public SubEditorOptions getEditorOptions() { @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditorOptions(SubEditorOptions editorOptions) { + public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest fieldOptions(SubFieldOptions fieldOptions) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -430,12 +460,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest files(List files) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -463,12 +493,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest fileUrls(List fileUrls) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -496,12 +526,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSignerRoles(Boolean forceSignerRoles) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; return this; } @@ -521,12 +551,12 @@ public Boolean getForceSignerRoles() { @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSignerRoles(Boolean forceSignerRoles) { + public void setForceSignerRoles(@jakarta.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSubjectMessage(Boolean forceSubjectMessage) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; return this; } @@ -546,12 +576,12 @@ public Boolean getForceSubjectMessage() { @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setForceSubjectMessage(Boolean forceSubjectMessage) { + public void setForceSubjectMessage(@jakarta.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest holdRequest(Boolean holdRequest) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest holdRequest(@jakarta.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; return this; } @@ -571,12 +601,12 @@ public Boolean getHoldRequest() { @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHoldRequest(Boolean holdRequest) { + public void setHoldRequest(@jakarta.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest isForEmbeddedSigning(Boolean isForEmbeddedSigning) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest isForEmbeddedSigning(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; return this; } @@ -596,12 +626,12 @@ public Boolean getIsForEmbeddedSigning() { @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsForEmbeddedSigning(Boolean isForEmbeddedSigning) { + public void setIsForEmbeddedSigning(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest message(String message) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -621,12 +651,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest metadata(Map metadata) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -654,12 +684,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest previewOnly(Boolean previewOnly) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest previewOnly(@jakarta.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; return this; } @@ -679,12 +709,12 @@ public Boolean getPreviewOnly() { @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPreviewOnly(Boolean previewOnly) { + public void setPreviewOnly(@jakarta.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest requestingRedirectUrl(String requestingRedirectUrl) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest requestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; return this; } @@ -704,12 +734,12 @@ public String getRequestingRedirectUrl() { @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequestingRedirectUrl(String requestingRedirectUrl) { + public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest showPreview(Boolean showPreview) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest showPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; return this; } @@ -729,12 +759,12 @@ public Boolean getShowPreview() { @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowPreview(Boolean showPreview) { + public void setShowPreview(@jakarta.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest showProgressStepper(Boolean showProgressStepper) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest showProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; return this; } @@ -754,12 +784,12 @@ public Boolean getShowProgressStepper() { @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowProgressStepper(Boolean showProgressStepper) { + public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest signers(List signers) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -787,12 +817,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingOptions(SubSigningOptions signingOptions) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -812,12 +842,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingRedirectUrl(String signingRedirectUrl) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -837,12 +867,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest skipMeNow(Boolean skipMeNow) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest skipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; return this; } @@ -862,12 +892,12 @@ public Boolean getSkipMeNow() { @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSkipMeNow(Boolean skipMeNow) { + public void setSkipMeNow(@jakarta.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest subject(String subject) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -887,12 +917,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest testMode(Boolean testMode) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -912,12 +942,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest title(String title) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest title(@jakarta.annotation.Nullable String title) { this.title = title; return this; } @@ -937,12 +967,12 @@ public String getTitle() { @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(String title) { + public void setTitle(@jakarta.annotation.Nullable String title) { this.title = title; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest populateAutoFillFields(Boolean populateAutoFillFields) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest populateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; return this; } @@ -962,12 +992,12 @@ public Boolean getPopulateAutoFillFields() { @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPopulateAutoFillFields(Boolean populateAutoFillFields) { + public void setPopulateAutoFillFields(@jakarta.annotation.Nullable Boolean populateAutoFillFields) { this.populateAutoFillFields = populateAutoFillFields; } - public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowCcs(Boolean allowCcs) { + public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; return this; } @@ -987,7 +1017,7 @@ public Boolean getAllowCcs() { @JsonProperty(JSON_PROPERTY_ALLOW_CCS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowCcs(Boolean allowCcs) { + public void setAllowCcs(@jakarta.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java index 9df838f68..58a73751a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java @@ -71,16 +71,16 @@ UnclaimedDraftCreateRequest.JSON_PROPERTY_USE_TEXT_TAGS, UnclaimedDraftCreateRequest.JSON_PROPERTY_EXPIRES_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateRequest { /** * The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. */ public enum TypeEnum { - SEND_DOCUMENT("send_document"), + SEND_DOCUMENT(String.valueOf("send_document")), - REQUEST_SIGNATURE("request_signature"); + REQUEST_SIGNATURE(String.valueOf("request_signature")); private String value; @@ -110,75 +110,99 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; + @jakarta.annotation.Nonnull private TypeEnum type; public static final String JSON_PROPERTY_FILES = "files"; + @jakarta.annotation.Nullable private List files = null; public static final String JSON_PROPERTY_FILE_URLS = "file_urls"; + @jakarta.annotation.Nullable private List fileUrls = null; public static final String JSON_PROPERTY_ALLOW_DECLINE = "allow_decline"; + @jakarta.annotation.Nullable private Boolean allowDecline = false; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; + @jakarta.annotation.Nullable private List attachments = null; public static final String JSON_PROPERTY_CC_EMAIL_ADDRESSES = "cc_email_addresses"; + @jakarta.annotation.Nullable private List ccEmailAddresses = null; public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nullable private String clientId; public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; + @jakarta.annotation.Nullable private List customFields = null; public static final String JSON_PROPERTY_FIELD_OPTIONS = "field_options"; + @jakarta.annotation.Nullable private SubFieldOptions fieldOptions; public static final String JSON_PROPERTY_FORM_FIELD_GROUPS = "form_field_groups"; + @jakarta.annotation.Nullable private List formFieldGroups = null; public static final String JSON_PROPERTY_FORM_FIELD_RULES = "form_field_rules"; + @jakarta.annotation.Nullable private List formFieldRules = null; public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; + @jakarta.annotation.Nullable private List formFieldsPerDocument = null; public static final String JSON_PROPERTY_HIDE_TEXT_TAGS = "hide_text_tags"; + @jakarta.annotation.Nullable private Boolean hideTextTags = false; public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; + @jakarta.annotation.Nullable private Map metadata = null; public static final String JSON_PROPERTY_SHOW_PROGRESS_STEPPER = "show_progress_stepper"; + @jakarta.annotation.Nullable private Boolean showProgressStepper = true; public static final String JSON_PROPERTY_SIGNERS = "signers"; + @jakarta.annotation.Nullable private List signers = null; public static final String JSON_PROPERTY_SIGNING_OPTIONS = "signing_options"; + @jakarta.annotation.Nullable private SubSigningOptions signingOptions; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_SUBJECT = "subject"; + @jakarta.annotation.Nullable private String subject; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public static final String JSON_PROPERTY_USE_PREEXISTING_FIELDS = "use_preexisting_fields"; + @jakarta.annotation.Nullable private Boolean usePreexistingFields = false; public static final String JSON_PROPERTY_USE_TEXT_TAGS = "use_text_tags"; + @jakarta.annotation.Nullable private Boolean useTextTags = false; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public UnclaimedDraftCreateRequest() { @@ -199,7 +223,7 @@ static public UnclaimedDraftCreateRequest init(HashMap data) throws Exception { ); } - public UnclaimedDraftCreateRequest type(TypeEnum type) { + public UnclaimedDraftCreateRequest type(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; return this; } @@ -219,12 +243,12 @@ public TypeEnum getType() { @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { + public void setType(@jakarta.annotation.Nonnull TypeEnum type) { this.type = type; } - public UnclaimedDraftCreateRequest files(List files) { + public UnclaimedDraftCreateRequest files(@jakarta.annotation.Nullable List files) { this.files = files; return this; } @@ -252,12 +276,12 @@ public List getFiles() { @JsonProperty(JSON_PROPERTY_FILES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFiles(List files) { + public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; } - public UnclaimedDraftCreateRequest fileUrls(List fileUrls) { + public UnclaimedDraftCreateRequest fileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; return this; } @@ -285,12 +309,12 @@ public List getFileUrls() { @JsonProperty(JSON_PROPERTY_FILE_URLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFileUrls(List fileUrls) { + public void setFileUrls(@jakarta.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; } - public UnclaimedDraftCreateRequest allowDecline(Boolean allowDecline) { + public UnclaimedDraftCreateRequest allowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; return this; } @@ -310,12 +334,12 @@ public Boolean getAllowDecline() { @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAllowDecline(Boolean allowDecline) { + public void setAllowDecline(@jakarta.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; } - public UnclaimedDraftCreateRequest attachments(List attachments) { + public UnclaimedDraftCreateRequest attachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; return this; } @@ -343,12 +367,12 @@ public List getAttachments() { @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttachments(List attachments) { + public void setAttachments(@jakarta.annotation.Nullable List attachments) { this.attachments = attachments; } - public UnclaimedDraftCreateRequest ccEmailAddresses(List ccEmailAddresses) { + public UnclaimedDraftCreateRequest ccEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; return this; } @@ -376,12 +400,12 @@ public List getCcEmailAddresses() { @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCcEmailAddresses(List ccEmailAddresses) { + public void setCcEmailAddresses(@jakarta.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; } - public UnclaimedDraftCreateRequest clientId(String clientId) { + public UnclaimedDraftCreateRequest clientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; return this; } @@ -401,12 +425,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nullable String clientId) { this.clientId = clientId; } - public UnclaimedDraftCreateRequest customFields(List customFields) { + public UnclaimedDraftCreateRequest customFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; return this; } @@ -434,12 +458,12 @@ public List getCustomFields() { @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomFields(List customFields) { + public void setCustomFields(@jakarta.annotation.Nullable List customFields) { this.customFields = customFields; } - public UnclaimedDraftCreateRequest fieldOptions(SubFieldOptions fieldOptions) { + public UnclaimedDraftCreateRequest fieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; return this; } @@ -459,12 +483,12 @@ public SubFieldOptions getFieldOptions() { @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFieldOptions(SubFieldOptions fieldOptions) { + public void setFieldOptions(@jakarta.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; } - public UnclaimedDraftCreateRequest formFieldGroups(List formFieldGroups) { + public UnclaimedDraftCreateRequest formFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; return this; } @@ -492,12 +516,12 @@ public List getFormFieldGroups() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldGroups(List formFieldGroups) { + public void setFormFieldGroups(@jakarta.annotation.Nullable List formFieldGroups) { this.formFieldGroups = formFieldGroups; } - public UnclaimedDraftCreateRequest formFieldRules(List formFieldRules) { + public UnclaimedDraftCreateRequest formFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; return this; } @@ -525,12 +549,12 @@ public List getFormFieldRules() { @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldRules(List formFieldRules) { + public void setFormFieldRules(@jakarta.annotation.Nullable List formFieldRules) { this.formFieldRules = formFieldRules; } - public UnclaimedDraftCreateRequest formFieldsPerDocument(List formFieldsPerDocument) { + public UnclaimedDraftCreateRequest formFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; return this; } @@ -558,12 +582,12 @@ public List getFormFieldsPerDocument() { @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFormFieldsPerDocument(List formFieldsPerDocument) { + public void setFormFieldsPerDocument(@jakarta.annotation.Nullable List formFieldsPerDocument) { this.formFieldsPerDocument = formFieldsPerDocument; } - public UnclaimedDraftCreateRequest hideTextTags(Boolean hideTextTags) { + public UnclaimedDraftCreateRequest hideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; return this; } @@ -583,12 +607,12 @@ public Boolean getHideTextTags() { @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHideTextTags(Boolean hideTextTags) { + public void setHideTextTags(@jakarta.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; } - public UnclaimedDraftCreateRequest message(String message) { + public UnclaimedDraftCreateRequest message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -608,12 +632,12 @@ public String getMessage() { @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMessage(String message) { + public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; } - public UnclaimedDraftCreateRequest metadata(Map metadata) { + public UnclaimedDraftCreateRequest metadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } @@ -641,12 +665,12 @@ public Map getMetadata() { @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Map metadata) { + public void setMetadata(@jakarta.annotation.Nullable Map metadata) { this.metadata = metadata; } - public UnclaimedDraftCreateRequest showProgressStepper(Boolean showProgressStepper) { + public UnclaimedDraftCreateRequest showProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; return this; } @@ -666,12 +690,12 @@ public Boolean getShowProgressStepper() { @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowProgressStepper(Boolean showProgressStepper) { + public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; } - public UnclaimedDraftCreateRequest signers(List signers) { + public UnclaimedDraftCreateRequest signers(@jakarta.annotation.Nullable List signers) { this.signers = signers; return this; } @@ -699,12 +723,12 @@ public List getSigners() { @JsonProperty(JSON_PROPERTY_SIGNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigners(List signers) { + public void setSigners(@jakarta.annotation.Nullable List signers) { this.signers = signers; } - public UnclaimedDraftCreateRequest signingOptions(SubSigningOptions signingOptions) { + public UnclaimedDraftCreateRequest signingOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; return this; } @@ -724,12 +748,12 @@ public SubSigningOptions getSigningOptions() { @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningOptions(SubSigningOptions signingOptions) { + public void setSigningOptions(@jakarta.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; } - public UnclaimedDraftCreateRequest signingRedirectUrl(String signingRedirectUrl) { + public UnclaimedDraftCreateRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -749,12 +773,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public UnclaimedDraftCreateRequest subject(String subject) { + public UnclaimedDraftCreateRequest subject(@jakarta.annotation.Nullable String subject) { this.subject = subject; return this; } @@ -774,12 +798,12 @@ public String getSubject() { @JsonProperty(JSON_PROPERTY_SUBJECT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubject(String subject) { + public void setSubject(@jakarta.annotation.Nullable String subject) { this.subject = subject; } - public UnclaimedDraftCreateRequest testMode(Boolean testMode) { + public UnclaimedDraftCreateRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -799,12 +823,12 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } - public UnclaimedDraftCreateRequest usePreexistingFields(Boolean usePreexistingFields) { + public UnclaimedDraftCreateRequest usePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; return this; } @@ -824,12 +848,12 @@ public Boolean getUsePreexistingFields() { @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUsePreexistingFields(Boolean usePreexistingFields) { + public void setUsePreexistingFields(@jakarta.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; } - public UnclaimedDraftCreateRequest useTextTags(Boolean useTextTags) { + public UnclaimedDraftCreateRequest useTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; return this; } @@ -849,12 +873,12 @@ public Boolean getUseTextTags() { @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUseTextTags(Boolean useTextTags) { + public void setUseTextTags(@jakarta.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; } - public UnclaimedDraftCreateRequest expiresAt(Integer expiresAt) { + public UnclaimedDraftCreateRequest expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -874,7 +898,7 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java index b0477d0bc..48eabe481 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java @@ -40,13 +40,15 @@ UnclaimedDraftCreateResponse.JSON_PROPERTY_UNCLAIMED_DRAFT, UnclaimedDraftCreateResponse.JSON_PROPERTY_WARNINGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftCreateResponse { public static final String JSON_PROPERTY_UNCLAIMED_DRAFT = "unclaimed_draft"; + @jakarta.annotation.Nonnull private UnclaimedDraftResponse unclaimedDraft; public static final String JSON_PROPERTY_WARNINGS = "warnings"; + @jakarta.annotation.Nullable private List warnings = null; public UnclaimedDraftCreateResponse() { @@ -67,7 +69,7 @@ static public UnclaimedDraftCreateResponse init(HashMap data) throws Exception { ); } - public UnclaimedDraftCreateResponse unclaimedDraft(UnclaimedDraftResponse unclaimedDraft) { + public UnclaimedDraftCreateResponse unclaimedDraft(@jakarta.annotation.Nonnull UnclaimedDraftResponse unclaimedDraft) { this.unclaimedDraft = unclaimedDraft; return this; } @@ -87,12 +89,12 @@ public UnclaimedDraftResponse getUnclaimedDraft() { @JsonProperty(JSON_PROPERTY_UNCLAIMED_DRAFT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUnclaimedDraft(UnclaimedDraftResponse unclaimedDraft) { + public void setUnclaimedDraft(@jakarta.annotation.Nonnull UnclaimedDraftResponse unclaimedDraft) { this.unclaimedDraft = unclaimedDraft; } - public UnclaimedDraftCreateResponse warnings(List warnings) { + public UnclaimedDraftCreateResponse warnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; return this; } @@ -120,7 +122,7 @@ public List getWarnings() { @JsonProperty(JSON_PROPERTY_WARNINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWarnings(List warnings) { + public void setWarnings(@jakarta.annotation.Nullable List warnings) { this.warnings = warnings; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java index 5e4c63956..62459fde0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java @@ -43,31 +43,39 @@ UnclaimedDraftEditAndResendRequest.JSON_PROPERTY_SIGNING_REDIRECT_URL, UnclaimedDraftEditAndResendRequest.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftEditAndResendRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; + @jakarta.annotation.Nonnull private String clientId; public static final String JSON_PROPERTY_EDITOR_OPTIONS = "editor_options"; + @jakarta.annotation.Nullable private SubEditorOptions editorOptions; public static final String JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING = "is_for_embedded_signing"; + @jakarta.annotation.Nullable private Boolean isForEmbeddedSigning; public static final String JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS = "requester_email_address"; + @jakarta.annotation.Nullable private String requesterEmailAddress; public static final String JSON_PROPERTY_REQUESTING_REDIRECT_URL = "requesting_redirect_url"; + @jakarta.annotation.Nullable private String requestingRedirectUrl; public static final String JSON_PROPERTY_SHOW_PROGRESS_STEPPER = "show_progress_stepper"; + @jakarta.annotation.Nullable private Boolean showProgressStepper = true; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode = false; public UnclaimedDraftEditAndResendRequest() { @@ -88,7 +96,7 @@ static public UnclaimedDraftEditAndResendRequest init(HashMap data) throws Excep ); } - public UnclaimedDraftEditAndResendRequest clientId(String clientId) { + public UnclaimedDraftEditAndResendRequest clientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; return this; } @@ -108,12 +116,12 @@ public String getClientId() { @JsonProperty(JSON_PROPERTY_CLIENT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setClientId(String clientId) { + public void setClientId(@jakarta.annotation.Nonnull String clientId) { this.clientId = clientId; } - public UnclaimedDraftEditAndResendRequest editorOptions(SubEditorOptions editorOptions) { + public UnclaimedDraftEditAndResendRequest editorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; return this; } @@ -133,12 +141,12 @@ public SubEditorOptions getEditorOptions() { @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEditorOptions(SubEditorOptions editorOptions) { + public void setEditorOptions(@jakarta.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; } - public UnclaimedDraftEditAndResendRequest isForEmbeddedSigning(Boolean isForEmbeddedSigning) { + public UnclaimedDraftEditAndResendRequest isForEmbeddedSigning(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; return this; } @@ -158,12 +166,12 @@ public Boolean getIsForEmbeddedSigning() { @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsForEmbeddedSigning(Boolean isForEmbeddedSigning) { + public void setIsForEmbeddedSigning(@jakarta.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; } - public UnclaimedDraftEditAndResendRequest requesterEmailAddress(String requesterEmailAddress) { + public UnclaimedDraftEditAndResendRequest requesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; return this; } @@ -183,12 +191,12 @@ public String getRequesterEmailAddress() { @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequesterEmailAddress(String requesterEmailAddress) { + public void setRequesterEmailAddress(@jakarta.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; } - public UnclaimedDraftEditAndResendRequest requestingRedirectUrl(String requestingRedirectUrl) { + public UnclaimedDraftEditAndResendRequest requestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; return this; } @@ -208,12 +216,12 @@ public String getRequestingRedirectUrl() { @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequestingRedirectUrl(String requestingRedirectUrl) { + public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; } - public UnclaimedDraftEditAndResendRequest showProgressStepper(Boolean showProgressStepper) { + public UnclaimedDraftEditAndResendRequest showProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; return this; } @@ -233,12 +241,12 @@ public Boolean getShowProgressStepper() { @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setShowProgressStepper(Boolean showProgressStepper) { + public void setShowProgressStepper(@jakarta.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; } - public UnclaimedDraftEditAndResendRequest signingRedirectUrl(String signingRedirectUrl) { + public UnclaimedDraftEditAndResendRequest signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -258,12 +266,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public UnclaimedDraftEditAndResendRequest testMode(Boolean testMode) { + public UnclaimedDraftEditAndResendRequest testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -283,7 +291,7 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java index a7212a2f2..b5152809e 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java @@ -40,25 +40,31 @@ UnclaimedDraftResponse.JSON_PROPERTY_EXPIRES_AT, UnclaimedDraftResponse.JSON_PROPERTY_TEST_MODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class UnclaimedDraftResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUEST_ID = "signature_request_id"; + @jakarta.annotation.Nullable private String signatureRequestId; public static final String JSON_PROPERTY_CLAIM_URL = "claim_url"; + @jakarta.annotation.Nullable private String claimUrl; public static final String JSON_PROPERTY_SIGNING_REDIRECT_URL = "signing_redirect_url"; + @jakarta.annotation.Nullable private String signingRedirectUrl; public static final String JSON_PROPERTY_REQUESTING_REDIRECT_URL = "requesting_redirect_url"; + @jakarta.annotation.Nullable private String requestingRedirectUrl; public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @jakarta.annotation.Nullable private Integer expiresAt; public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; + @jakarta.annotation.Nullable private Boolean testMode; public UnclaimedDraftResponse() { @@ -79,7 +85,7 @@ static public UnclaimedDraftResponse init(HashMap data) throws Exception { ); } - public UnclaimedDraftResponse signatureRequestId(String signatureRequestId) { + public UnclaimedDraftResponse signatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; return this; } @@ -99,12 +105,12 @@ public String getSignatureRequestId() { @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignatureRequestId(String signatureRequestId) { + public void setSignatureRequestId(@jakarta.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; } - public UnclaimedDraftResponse claimUrl(String claimUrl) { + public UnclaimedDraftResponse claimUrl(@jakarta.annotation.Nullable String claimUrl) { this.claimUrl = claimUrl; return this; } @@ -124,12 +130,12 @@ public String getClaimUrl() { @JsonProperty(JSON_PROPERTY_CLAIM_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClaimUrl(String claimUrl) { + public void setClaimUrl(@jakarta.annotation.Nullable String claimUrl) { this.claimUrl = claimUrl; } - public UnclaimedDraftResponse signingRedirectUrl(String signingRedirectUrl) { + public UnclaimedDraftResponse signingRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; return this; } @@ -149,12 +155,12 @@ public String getSigningRedirectUrl() { @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSigningRedirectUrl(String signingRedirectUrl) { + public void setSigningRedirectUrl(@jakarta.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; } - public UnclaimedDraftResponse requestingRedirectUrl(String requestingRedirectUrl) { + public UnclaimedDraftResponse requestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; return this; } @@ -174,12 +180,12 @@ public String getRequestingRedirectUrl() { @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRequestingRedirectUrl(String requestingRedirectUrl) { + public void setRequestingRedirectUrl(@jakarta.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; } - public UnclaimedDraftResponse expiresAt(Integer expiresAt) { + public UnclaimedDraftResponse expiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; return this; } @@ -199,12 +205,12 @@ public Integer getExpiresAt() { @JsonProperty(JSON_PROPERTY_EXPIRES_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setExpiresAt(Integer expiresAt) { + public void setExpiresAt(@jakarta.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; } - public UnclaimedDraftResponse testMode(Boolean testMode) { + public UnclaimedDraftResponse testMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; return this; } @@ -224,7 +230,7 @@ public Boolean getTestMode() { @JsonProperty(JSON_PROPERTY_TEST_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTestMode(Boolean testMode) { + public void setTestMode(@jakarta.annotation.Nullable Boolean testMode) { this.testMode = testMode; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/WarningResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/WarningResponse.java index 8be1d986d..d8e314cb0 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/WarningResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/WarningResponse.java @@ -36,13 +36,15 @@ WarningResponse.JSON_PROPERTY_WARNING_MSG, WarningResponse.JSON_PROPERTY_WARNING_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) public class WarningResponse { public static final String JSON_PROPERTY_WARNING_MSG = "warning_msg"; + @jakarta.annotation.Nonnull private String warningMsg; public static final String JSON_PROPERTY_WARNING_NAME = "warning_name"; + @jakarta.annotation.Nonnull private String warningName; public WarningResponse() { @@ -63,7 +65,7 @@ static public WarningResponse init(HashMap data) throws Exception { ); } - public WarningResponse warningMsg(String warningMsg) { + public WarningResponse warningMsg(@jakarta.annotation.Nonnull String warningMsg) { this.warningMsg = warningMsg; return this; } @@ -83,12 +85,12 @@ public String getWarningMsg() { @JsonProperty(JSON_PROPERTY_WARNING_MSG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWarningMsg(String warningMsg) { + public void setWarningMsg(@jakarta.annotation.Nonnull String warningMsg) { this.warningMsg = warningMsg; } - public WarningResponse warningName(String warningName) { + public WarningResponse warningName(@jakarta.annotation.Nonnull String warningName) { this.warningName = warningName; return this; } @@ -108,7 +110,7 @@ public String getWarningName() { @JsonProperty(JSON_PROPERTY_WARNING_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWarningName(String warningName) { + public void setWarningName(@jakarta.annotation.Nonnull String warningName) { this.warningName = warningName; } diff --git a/sdks/java-v2/templates/BeanValidationException.mustache b/sdks/java-v2/templates/BeanValidationException.mustache index d8b0fa695..d551902f8 100644 --- a/sdks/java-v2/templates/BeanValidationException.mustache +++ b/sdks/java-v2/templates/BeanValidationException.mustache @@ -4,8 +4,8 @@ package {{invokerPackage}}; import java.util.Set; -import jakarta.validation.ConstraintViolation; -import jakarta.validation.ValidationException; +import {{javaxPackage}}.validation.ConstraintViolation; +import {{javaxPackage}}.validation.ValidationException; public class BeanValidationException extends ValidationException { /** diff --git a/sdks/java-v2/templates/Configuration.mustache b/sdks/java-v2/templates/Configuration.mustache index 8e9720e36..61b08ab67 100644 --- a/sdks/java-v2/templates/Configuration.mustache +++ b/sdks/java-v2/templates/Configuration.mustache @@ -6,7 +6,7 @@ package {{invokerPackage}}; public class Configuration { public static final String VERSION = "{{{artifactVersion}}}"; - private static ApiClient defaultApiClient = new ApiClient(); + private static volatile ApiClient defaultApiClient = new ApiClient(); /** * Get the default API client, which would be used when creating API diff --git a/sdks/java-v2/templates/JSON.mustache b/sdks/java-v2/templates/JSON.mustache index 1d0a81387..5ef02660d 100644 --- a/sdks/java-v2/templates/JSON.mustache +++ b/sdks/java-v2/templates/JSON.mustache @@ -31,9 +31,11 @@ import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; +{{#jsr310}} import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; +{{/jsr310}} import java.util.Date; import java.util.Locale; import java.util.Map; diff --git a/sdks/java-v2/templates/Main.java b/sdks/java-v2/templates/Main.java deleted file mode 100644 index c8c8cea26..000000000 --- a/sdks/java-v2/templates/Main.java +++ /dev/null @@ -1,6 +0,0 @@ -package com.dropbox.sign_sandbox; - -public class Main { - public static void main(String[] args) { - } -} diff --git a/sdks/java-v2/templates/build.gradle.mustache b/sdks/java-v2/templates/build.gradle.mustache index 06f9bd5e9..6557a7c70 100644 --- a/sdks/java-v2/templates/build.gradle.mustache +++ b/sdks/java-v2/templates/build.gradle.mustache @@ -66,7 +66,7 @@ if(hasProperty('target') && target == 'android') { task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs - classifier = 'sources' + archiveClassifier = 'sources' } artifacts { @@ -97,12 +97,12 @@ if(hasProperty('target') && target == 'android') { } task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' + archiveClassifier = 'javadoc' from javadoc.destinationDir } @@ -126,6 +126,9 @@ ext { jersey_version = "1.19.4" jodatime_version = "2.9.9" junit_version = "5.10.2" + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} } dependencies { @@ -148,6 +151,9 @@ dependencies { {{#useBeanValidation}} implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version" {{/useBeanValidation}} + {{#useReflectionEqualsHashCode}} + implementation "org.apache.commons:commons-lang3:$commons_lang3_version" + {{/useReflectionEqualsHashCode}} testImplementation "junit:junit:$junit_version" testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" diff --git a/sdks/java-v2/templates/javaBuilder.mustache b/sdks/java-v2/templates/javaBuilder.mustache index c02730081..4a0e102b8 100644 --- a/sdks/java-v2/templates/javaBuilder.mustache +++ b/sdks/java-v2/templates/javaBuilder.mustache @@ -14,9 +14,9 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par } {{#vars}} - public {{classname}}.Builder {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} - this.instance.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); + this.instance.{{name}} = JsonNullable.<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} this.instance.{{name}} = {{name}}; @@ -24,7 +24,7 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par return this; } {{#vendorExtensions.x-is-jackson-optional-nullable}} - public {{classname}}.Builder {{name}}(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + public {{classname}}.Builder {{name}}(JsonNullable<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}> {{name}}) { this.instance.{{name}} = {{name}}; return this; } @@ -32,12 +32,12 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par {{/vars}} {{#parentVars}} - public {{classname}}.Builder {{name}}({{{datatypeWithEnum}}} {{name}}) { // inherited: {{isInherited}} + public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { // inherited: {{isInherited}} super.{{name}}({{name}}); return this; } {{#vendorExtensions.x-is-jackson-optional-nullable}} - public {{classname}}.Builder {{name}}(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + public {{classname}}.Builder {{name}}(JsonNullable<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}> {{name}}) { this.instance.{{name}} = {{name}}; return this; } diff --git a/sdks/java-v2/templates/libraries/apache-httpclient/ApiClient.mustache b/sdks/java-v2/templates/libraries/apache-httpclient/ApiClient.mustache index a00c6dc45..854d8a6cd 100644 --- a/sdks/java-v2/templates/libraries/apache-httpclient/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/apache-httpclient/ApiClient.mustache @@ -137,7 +137,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { public ApiClient(CloseableHttpClient httpClient) { objectMapper = new ObjectMapper(); objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}); objectMapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); @@ -444,7 +444,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param userAgent User agent * @return API client */ - public ApiClient setUserAgent(String userAgent) { + public final ApiClient setUserAgent(String userAgent) { addDefaultHeader("User-Agent", userAgent); return this; } @@ -622,7 +622,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param value The value of the parameter. * @return A list of {@code Pair} objects. */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { + public List parameterToPairs(String collectionFormat, String name, Collection value) { List params = new ArrayList(); // preconditions diff --git a/sdks/java-v2/templates/libraries/apache-httpclient/api.mustache b/sdks/java-v2/templates/libraries/apache-httpclient/api.mustache index 27b456417..cfcd9f04c 100644 --- a/sdks/java-v2/templates/libraries/apache-httpclient/api.mustache +++ b/sdks/java-v2/templates/libraries/apache-httpclient/api.mustache @@ -24,8 +24,8 @@ import java.util.Map; import java.util.StringJoiner; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{>generatedAnnotation}} @@ -99,7 +99,7 @@ public class {{classname}} extends BaseApi { {{/required}}{{/allParams}} // create path and map variables String localVarPath = "{{{path}}}"{{#pathParams}} - .replaceAll("\\{" + "{{baseName}}" + "\\}", apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}}; + .replaceAll("\\{" + "{{baseName}}" + "\\}", apiClient.escapeString(apiClient.parameterToString({{{paramName}}}))){{/pathParams}}; StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; diff --git a/sdks/java-v2/templates/libraries/apache-httpclient/api_test.mustache b/sdks/java-v2/templates/libraries/apache-httpclient/api_test.mustache index b4393ea82..05b2bf9fd 100644 --- a/sdks/java-v2/templates/libraries/apache-httpclient/api_test.mustache +++ b/sdks/java-v2/templates/libraries/apache-httpclient/api_test.mustache @@ -17,8 +17,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/apache-httpclient/pom.mustache b/sdks/java-v2/templates/libraries/apache-httpclient/pom.mustache index 74a70a3ea..3a506ca3f 100644 --- a/sdks/java-v2/templates/libraries/apache-httpclient/pom.mustache +++ b/sdks/java-v2/templates/libraries/apache-httpclient/pom.mustache @@ -358,13 +358,12 @@ {{/openApiNullable}} {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} 5.10.2 diff --git a/sdks/java-v2/templates/libraries/feign/ApiClient.mustache b/sdks/java-v2/templates/libraries/feign/ApiClient.mustache index 9a5b9bcd0..f744eec13 100644 --- a/sdks/java-v2/templates/libraries/feign/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/feign/ApiClient.mustache @@ -173,7 +173,12 @@ public class ApiClient { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); + {{#failOnUnknownProperties}} + objectMapper.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES); + {{/failOnUnknownProperties}} + {{^failOnUnknownProperties}} objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES); + {{/failOnUnknownProperties}} objectMapper.disable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE); objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); objectMapper.setDateFormat(new RFC3339DateFormat()); diff --git a/sdks/java-v2/templates/libraries/feign/README.mustache b/sdks/java-v2/templates/libraries/feign/README.mustache index fed3cbebd..c3d948749 100644 --- a/sdks/java-v2/templates/libraries/feign/README.mustache +++ b/sdks/java-v2/templates/libraries/feign/README.mustache @@ -32,7 +32,7 @@ After the client library is installed/deployed, you can use it in your Maven pro ``` -And to use the api you can follow the examples bellow: +And to use the api you can follow the examples below: ```java diff --git a/sdks/java-v2/templates/libraries/feign/api.mustache b/sdks/java-v2/templates/libraries/feign/api.mustache index af05d6595..d67de9a28 100644 --- a/sdks/java-v2/templates/libraries/feign/api.mustache +++ b/sdks/java-v2/templates/libraries/feign/api.mustache @@ -15,8 +15,8 @@ import java.util.HashMap; import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import feign.*; @@ -47,8 +47,8 @@ public interface {{classname}} extends ApiClient.Api { {{/isDeprecated}} @RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}") @Headers({ -{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}", -{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} +{{#vendorExtensions.x-content-type}} "Content-Type: {{{vendorExtensions.x-content-type}}}", +{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{{.}}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) @@ -77,8 +77,8 @@ public interface {{classname}} extends ApiClient.Api { {{/isDeprecated}} @RequestLine("{{httpMethod}} {{{path}}}{{#hasQueryParams}}?{{/hasQueryParams}}{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}") @Headers({ -{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}", -{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} +{{#vendorExtensions.x-content-type}} "Content-Type: {{{vendorExtensions.x-content-type}}}", +{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{{.}}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) @@ -122,8 +122,8 @@ public interface {{classname}} extends ApiClient.Api { {{/isDeprecated}} @RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}") @Headers({ -{{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}", -{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} +{{#vendorExtensions.x-content-type}} "Content-Type: {{{vendorExtensions.x-content-type}}}", +{{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{{.}}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) @@ -162,8 +162,8 @@ public interface {{classname}} extends ApiClient.Api { {{/isDeprecated}} @RequestLine("{{httpMethod}} {{{path}}}?{{#queryParams}}{{baseName}}={{=<% %>=}}{<%paramName%>}<%={{ }}=%>{{^-last}}&{{/-last}}{{/queryParams}}") @Headers({ - {{#vendorExtensions.x-content-type}} "Content-Type: {{vendorExtensions.x-content-type}}", - {{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{.}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} + {{#vendorExtensions.x-content-type}} "Content-Type: {{{vendorExtensions.x-content-type}}}", + {{/vendorExtensions.x-content-type}} "Accept: {{#vendorExtensions.x-accepts}}{{{.}}}{{^-last}},{{/-last}}{{/vendorExtensions.x-accepts}}",{{#headerParams}} "{{baseName}}: {{=<% %>=}}{<%paramName%>}<%={{ }}=%>"{{^-last}}, {{/-last}}{{/headerParams}} }) diff --git a/sdks/java-v2/templates/libraries/feign/api_test.mustache b/sdks/java-v2/templates/libraries/feign/api_test.mustache index 1db841158..62521123f 100644 --- a/sdks/java-v2/templates/libraries/feign/api_test.mustache +++ b/sdks/java-v2/templates/libraries/feign/api_test.mustache @@ -14,8 +14,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/feign/build.gradle.mustache b/sdks/java-v2/templates/libraries/feign/build.gradle.mustache index 8af1cb136..2b4e0340e 100644 --- a/sdks/java-v2/templates/libraries/feign/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/feign/build.gradle.mustache @@ -114,6 +114,9 @@ ext { feign_form_version = "3.8.0" junit_version = "5.7.0" scribejava_version = "8.0.0" + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} } dependencies { @@ -127,9 +130,9 @@ dependencies { implementation "io.github.openfeign:feign-okhttp:$feign_version" implementation "io.github.openfeign.form:feign-form:$feign_form_version" {{#jackson}} - {{#joda}} + {{#joda}} implementation "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jackson_version" - {{/joda}} + {{/joda}} implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version" implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" @@ -142,11 +145,14 @@ dependencies { implementation "com.github.scribejava:scribejava-core:$scribejava_version" implementation "com.brsanthu:migbase64:2.2" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + {{#useReflectionEqualsHashCode}} + implementation "org.apache.commons:commons-lang3:$commons_lang3_version" + {{/useReflectionEqualsHashCode}} testImplementation "org.junit.jupiter:junit-jupiter:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" testImplementation "org.junit.jupiter:junit-jupiter-params:$junit_version" testImplementation "com.github.tomakehurst:wiremock-jre8:2.35.1" testImplementation "org.hamcrest:hamcrest:2.2" - testImplementation "commons-io:commons-io:2.8.0" + testImplementation "commons-io:commons-io:2.16.1" testImplementation "ch.qos.logback:logback-classic:1.2.3" } diff --git a/sdks/java-v2/templates/libraries/feign/build.sbt.mustache b/sdks/java-v2/templates/libraries/feign/build.sbt.mustache index 9af32c270..1a24b99f5 100644 --- a/sdks/java-v2/templates/libraries/feign/build.sbt.mustache +++ b/sdks/java-v2/templates/libraries/feign/build.sbt.mustache @@ -28,11 +28,14 @@ lazy val root = (project in file(".")). "com.github.scribejava" % "scribejava-core" % "8.0.0" % "compile", "com.brsanthu" % "migbase64" % "2.2" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", +{{#useReflectionEqualsHashCode}} + "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile", +{{/useReflectionEqualsHashCode}} "org.junit.jupiter" % "junit-jupiter" % "5.7.0" % "test", "org.junit.jupiter" % "junit-jupiter-params" % "5.7.0" % "test", "com.github.tomakehurst" % "wiremock-jre8" % "2.35.1" % "test", "org.hamcrest" % "hamcrest" % "2.2" % "test", - "commons-io" % "commons-io" % "2.8.0" % "test", + "commons-io" % "commons-io" % "2.16.1" % "test", "com.novocode" % "junit-interface" % "0.10" % "test" ) ) diff --git a/sdks/java-v2/templates/libraries/feign/model.mustache b/sdks/java-v2/templates/libraries/feign/model.mustache index 5fa9bca80..108748f60 100644 --- a/sdks/java-v2/templates/libraries/feign/model.mustache +++ b/sdks/java-v2/templates/libraries/feign/model.mustache @@ -59,8 +59,8 @@ import android.os.Parcelable; import android.os.Parcel; {{/parcelableModel}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} import org.hibernate.validator.constraints.*; diff --git a/sdks/java-v2/templates/libraries/feign/pojo.mustache b/sdks/java-v2/templates/libraries/feign/pojo.mustache index fe97e3b1b..76f119eb4 100644 --- a/sdks/java-v2/templates/libraries/feign/pojo.mustache +++ b/sdks/java-v2/templates/libraries/feign/pojo.mustache @@ -72,6 +72,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/isContainer}} {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{>nullable_var_annotations}} {{#isContainer}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/isContainer}} @@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vars}} {{^isReadOnly}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}} return this; @@ -189,17 +190,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} @@ -246,7 +237,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -272,7 +263,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens }{{#hasVars}} {{classname}} {{classVarName}} = ({{classname}}) o; return {{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && - {{/-last}}{{/vars}}{{#parent}} && + {{/-last}}{{/vars}}{{#additionalPropertiesType}} && + Objects.equals(this.additionalProperties, {{classVarName}}.additionalProperties){{/additionalPropertiesType}}{{#parent}} && super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}} return {{#parent}}super.equals(o){{/parent}}{{^parent}}true{{/parent}};{{/hasVars}} {{/useReflectionEqualsHashCode}} @@ -288,7 +280,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens return HashCodeBuilder.reflectionHashCode(this); {{/useReflectionEqualsHashCode}} {{^useReflectionEqualsHashCode}} - return Objects.hash({{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}); + return Objects.hash({{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}{{#additionalPropertiesType}}, additionalProperties{{/additionalPropertiesType}}); {{/useReflectionEqualsHashCode}} }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} @@ -309,6 +301,9 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vars}} sb.append(" {{name}}: ").append({{#isPassword}}"*"{{/isPassword}}{{^isPassword}}toIndentedString({{name}}){{/isPassword}}).append("\n"); {{/vars}} + {{#additionalPropertiesType}} + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + {{/additionalPropertiesType}} sb.append("}"); return sb.toString(); } diff --git a/sdks/java-v2/templates/libraries/feign/pom.mustache b/sdks/java-v2/templates/libraries/feign/pom.mustache index 9be4a094f..c915ea0ec 100644 --- a/sdks/java-v2/templates/libraries/feign/pom.mustache +++ b/sdks/java-v2/templates/libraries/feign/pom.mustache @@ -345,6 +345,14 @@ provided {{/useBeanValidation}} + {{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + {{/useReflectionEqualsHashCode}} @@ -403,13 +411,15 @@ {{/openApiNullable}} {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} + {{#useReflectionEqualsHashCode}} + 3.17.0 + {{/useReflectionEqualsHashCode}} 5.10.0 1.0.0 8.3.3 diff --git a/sdks/java-v2/templates/libraries/google-api-client/ApiClient.mustache b/sdks/java-v2/templates/libraries/google-api-client/ApiClient.mustache index 03c44a8ed..7d3e50fe1 100644 --- a/sdks/java-v2/templates/libraries/google-api-client/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/google-api-client/ApiClient.mustache @@ -34,7 +34,12 @@ public class ApiClient { // A reasonable default object mapper. Client can pass in a chosen ObjectMapper anyway, this is just for reasonable defaults. private static ObjectMapper createDefaultObjectMapper() { ObjectMapper objectMapper = new ObjectMapper() + {{#failOnUnknownProperties}} + .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + {{/failOnUnknownProperties}} + {{^failOnUnknownProperties}} .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + {{/failOnUnknownProperties}} .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .setDateFormat(new RFC3339DateFormat()); {{#joda}} diff --git a/sdks/java-v2/templates/libraries/jersey2/ApiClient.mustache b/sdks/java-v2/templates/libraries/jersey2/ApiClient.mustache index 09563afa7..218f5452c 100644 --- a/sdks/java-v2/templates/libraries/jersey2/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/ApiClient.mustache @@ -988,24 +988,10 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { if (contentType.startsWith("multipart/form-data")) { MultiPart multiPart = new MultiPart(); for (Entry param: formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()) - .fileName(file.getName()).size(file.length()).build(); - - // Attempt to probe the content type for the file so that the form part is more correctly - // and precisely identified, but fall back to application/octet-stream if that fails. - MediaType type; - try { - type = MediaType.valueOf(Files.probeContentType(file.toPath())); - } catch (IOException | IllegalArgumentException e) { - type = MediaType.APPLICATION_OCTET_STREAM_TYPE; - } - - multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); + if (param.getValue() instanceof Iterable) { + ((Iterable)param.getValue()).forEach(v -> addParamToMultipart(v, param.getKey(), multiPart)); } else { - FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build(); - multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue()))); + addParamToMultipart(param.getValue(), param.getKey(), multiPart); } } entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE); @@ -1034,6 +1020,36 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { return entity; } + /** + * Adds the object with the provided key to the MultiPart. + * Based on the object type sets Content-Disposition and Content-Type. + * + * @param obj Object + * @param key Key of the object + * @param multiPart MultiPart to add the form param to + */ + private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + if (value instanceof File) { + File file = (File) value; + FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key) + .fileName(file.getName()).size(file.length()).build(); + + // Attempt to probe the content type for the file so that the form part is more correctly + // and precisely identified, but fall back to application/octet-stream if that fails. + MediaType type; + try { + type = MediaType.valueOf(Files.probeContentType(file.toPath())); + } catch (IOException | IllegalArgumentException e) { + type = MediaType.APPLICATION_OCTET_STREAM_TYPE; + } + + multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); + } else { + FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key).build(); + multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(value))); + } + } + /** * Serialize the given Java object into string according the given * Content-Type (only JSON, HTTP form is supported for now). @@ -1340,7 +1356,11 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } else if ("PUT".equals(method)) { response = invocationBuilder.put(entity); } else if ("DELETE".equals(method)) { - response = invocationBuilder.method("DELETE", entity); + if ("".equals(entity.getEntity())) { + response = invocationBuilder.method("DELETE"); + } else { + response = invocationBuilder.method("DELETE", entity); + } } else if ("PATCH".equals(method)) { response = invocationBuilder.method("PATCH", entity); } else { diff --git a/sdks/java-v2/templates/libraries/jersey2/JSON.mustache b/sdks/java-v2/templates/libraries/jersey2/JSON.mustache index 97cee6394..615367bb3 100644 --- a/sdks/java-v2/templates/libraries/jersey2/JSON.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/JSON.mustache @@ -12,9 +12,6 @@ import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; {{#joda}} import com.fasterxml.jackson.datatype.joda.JodaModule; {{/joda}} -{{#models.0}} -import {{modelPackage}}.*; -{{/models.0}} import java.text.DateFormat; import java.util.HashMap; @@ -32,7 +29,7 @@ public class JSON implements ContextResolver { mapper = JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false) - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true) + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}) .configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) diff --git a/sdks/java-v2/templates/libraries/jersey2/anyof_model.mustache b/sdks/java-v2/templates/libraries/jersey2/anyof_model.mustache index d480667f3..46c2cdc3a 100644 --- a/sdks/java-v2/templates/libraries/jersey2/anyof_model.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/anyof_model.mustache @@ -68,10 +68,23 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return ret; } {{/discriminator}} + {{#composedSchemas}} {{#anyOf}} - // deserialize {{{.}}} + // deserialize {{{dataType}}}{{#isNullable}} (nullable){{/isNullable}} try { - deserialized = tree.traverse(jp.getCodec()).readValueAs({{{.}}}.class); + {{^isArray}} + {{^isMap}} + deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); + {{/isMap}} + {{/isArray}} + {{#isArray}} + final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; + deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + {{/isArray}} + {{#isMap}} + final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; + deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + {{/isMap}} {{classname}} ret = new {{classname}}(); ret.setActualInstance(deserialized); return ret; @@ -81,6 +94,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/anyOf}} + {{/composedSchemas}} throw new IOException(String.format("Failed deserialization for {{classname}}: no match found")); } @@ -119,13 +133,17 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return Objects.hash(getActualInstance(), isNullable(), getSchemaType(), additionalProperties); } {{/additionalPropertiesType}} + {{#composedSchemas}} {{#anyOf}} - public {{classname}}({{{.}}} o) { + {{^vendorExtensions.x-duplicated-data-type}} + public {{classname}}({{{baseType}}} o) { super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}}); setActualInstance(o); } + {{/vendorExtensions.x-duplicated-data-type}} {{/anyOf}} + {{/composedSchemas}} static { {{#anyOf}} schemas.put("{{{.}}}", new GenericType<{{{.}}}>() { @@ -165,13 +183,17 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/isNullable}} + {{#composedSchemas}} {{#anyOf}} - if (JSON.isInstanceOf({{{.}}}.class, instance, new HashSet<>())) { + {{^vendorExtensions.x-duplicated-data-type}} + if (JSON.isInstanceOf({{{baseType}}}.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; } + {{/vendorExtensions.x-duplicated-data-type}} {{/anyOf}} + {{/composedSchemas}} throw new RuntimeException("Invalid instance type. Must be {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}"); } @@ -186,17 +208,21 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return super.getActualInstance(); } + {{#composedSchemas}} {{#anyOf}} + {{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}} /** - * Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, + * Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`, * the ClassCastException will be thrown. * - * @return The actual instance of `{{{.}}}` - * @throws ClassCastException if the instance is not `{{{.}}}` + * @return The actual instance of `{{{dataType}}}` + * @throws ClassCastException if the instance is not `{{{dataType}}}` */ - public {{{.}}} get{{{.}}}() throws ClassCastException { - return ({{{.}}})super.getActualInstance(); + public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { + return ({{{dataType}}})super.getActualInstance(); } + {{/vendorExtensions.x-duplicated-data-type-ignoring-erasure}} {{/anyOf}} + {{/composedSchemas}} } diff --git a/sdks/java-v2/templates/libraries/jersey2/api.mustache b/sdks/java-v2/templates/libraries/jersey2/api.mustache index 8d3e62f27..62edfeb8e 100644 --- a/sdks/java-v2/templates/libraries/jersey2/api.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/api.mustache @@ -12,8 +12,8 @@ import {{javaxPackage}}.ws.rs.core.GenericType; {{/imports}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import java.util.ArrayList; @@ -67,7 +67,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
200 successful operation * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-Ratelimit-Reset -
4XX failed_operation -
+
+ {{#responses}} @@ -101,7 +102,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -195,7 +197,7 @@ public class {{classname}} { {{#returnType}} GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {}; {{/returnType}} - return apiClient.invokeAPI("{{classname}}.{{operationId}}", {{#hasPathParams}}localVarPath{{/hasPathParams}}{{^hasPathParams}}"{{path}}"{{/hasPathParams}}, "{{httpMethod}}", {{#queryParams}}{{#-first}}localVarQueryParams{{/-first}}{{/queryParams}}{{^queryParams}}new ArrayList<>(){{/queryParams}}, {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, + return apiClient.invokeAPI("{{classname}}.{{operationId}}", {{#hasPathParams}}localVarPath{{/hasPathParams}}{{^hasPathParams}}"{{{path}}}"{{/hasPathParams}}, "{{httpMethod}}", {{#queryParams}}{{#-first}}localVarQueryParams{{/-first}}{{/queryParams}}{{^queryParams}}new ArrayList<>(){{/queryParams}}, {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, {{#headerParams}}{{#-first}}localVarHeaderParams{{/-first}}{{/headerParams}}{{^headerParams}}new LinkedHashMap<>(){{/headerParams}}, {{#cookieParams}}{{#-first}}localVarCookieParams{{/-first}}{{/cookieParams}}{{^cookieParams}}new LinkedHashMap<>(){{/cookieParams}}, {{#formParams}}{{#-first}}localVarFormParams{{/-first}}{{/formParams}}{{^formParams}}new LinkedHashMap<>(){{/formParams}}, localVarAccept, localVarContentType, {{#hasAuthMethods}}localVarAuthNames{{/hasAuthMethods}}{{^hasAuthMethods}}null{{/hasAuthMethods}}, {{#returnType}}localVarReturnType{{/returnType}}{{^returnType}}null{{/returnType}}, {{#bodyParam}}{{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{/bodyParam}}{{^bodyParam}}false{{/bodyParam}}); } @@ -232,7 +234,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -252,7 +255,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} diff --git a/sdks/java-v2/templates/libraries/jersey2/api_test.mustache b/sdks/java-v2/templates/libraries/jersey2/api_test.mustache index 7b8214bd4..926ba0a82 100644 --- a/sdks/java-v2/templates/libraries/jersey2/api_test.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/api_test.mustache @@ -17,8 +17,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/jersey2/build.gradle.mustache b/sdks/java-v2/templates/libraries/jersey2/build.gradle.mustache index a9ab96231..ca6ae2abe 100644 --- a/sdks/java-v2/templates/libraries/jersey2/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/build.gradle.mustache @@ -116,6 +116,9 @@ ext { {{#hasHttpSignatureMethods}} tomitribe_http_signatures_version = "1.7" {{/hasHttpSignatureMethods}} + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} } dependencies { @@ -146,6 +149,9 @@ dependencies { {{#useBeanValidation}} implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version" {{/useBeanValidation}} + {{#useReflectionEqualsHashCode}} + implementation "org.apache.commons:commons-lang3:$commons_lang3_version" + {{/useReflectionEqualsHashCode}} testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" } diff --git a/sdks/java-v2/templates/libraries/jersey2/build.sbt.mustache b/sdks/java-v2/templates/libraries/jersey2/build.sbt.mustache index d055cf378..fa3ead60a 100644 --- a/sdks/java-v2/templates/libraries/jersey2/build.sbt.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/build.sbt.mustache @@ -33,6 +33,9 @@ lazy val root = (project in file(".")). "org.tomitribe" % "tomitribe-http-signatures" % "1.7" % "compile", {{/hasHttpSignatureMethods}} "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + {{#useReflectionEqualsHashCode}} + "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile", + {{/useReflectionEqualsHashCode}} "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test" ) ) diff --git a/sdks/java-v2/templates/libraries/jersey2/model.mustache b/sdks/java-v2/templates/libraries/jersey2/model.mustache index 1904ee40e..2758278ac 100644 --- a/sdks/java-v2/templates/libraries/jersey2/model.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/model.mustache @@ -42,8 +42,8 @@ import android.os.Parcelable; import android.os.Parcel; {{/parcelableModel}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} import org.hibernate.validator.constraints.*; diff --git a/sdks/java-v2/templates/libraries/jersey2/oneof_model.mustache b/sdks/java-v2/templates/libraries/jersey2/oneof_model.mustache index 09906d7b0..5b60d0743 100644 --- a/sdks/java-v2/templates/libraries/jersey2/oneof_model.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/oneof_model.mustache @@ -112,7 +112,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im attemptParsing |= (token == JsonToken.VALUE_NUMBER_FLOAT); {{/isDecimal}} {{#isBoolean}} - attemptParsing |= (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE); {{/isBoolean}} {{#isNullable}} attemptParsing |= (token == JsonToken.VALUE_NULL); @@ -120,7 +120,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/isPrimitiveType}} if (attemptParsing) { + {{#isMap}} + final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; + deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + {{/isMap}} + {{^isMap}} deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); + {{/isMap}} // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -266,6 +272,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#composedSchemas}} {{#oneOf}} + {{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}} /** * Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`, * the ClassCastException will be thrown. @@ -273,17 +280,11 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im * @return The actual instance of `{{{dataType}}}` * @throws ClassCastException if the instance is not `{{{dataType}}}` */ - {{^isArray}} - public {{{dataType}}} get{{{dataType}}}() throws ClassCastException { + public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { return ({{{dataType}}})super.getActualInstance(); } - {{/isArray}} - {{#isArray}} - public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { - return ({{{dataType}}})super.getActualInstance(); - } - {{/isArray}} + {{/vendorExtensions.x-duplicated-data-type-ignoring-erasure}} {{/oneOf}} {{/composedSchemas}} } diff --git a/sdks/java-v2/templates/libraries/jersey2/pojo.mustache b/sdks/java-v2/templates/libraries/jersey2/pojo.mustache index 06be4ddf2..0d8bc23c6 100644 --- a/sdks/java-v2/templates/libraries/jersey2/pojo.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/pojo.mustache @@ -81,6 +81,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} + {{>nullable_var_annotations}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -197,17 +198,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -257,7 +248,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); diff --git a/sdks/java-v2/templates/libraries/jersey2/pom.mustache b/sdks/java-v2/templates/libraries/jersey2/pom.mustache index 214d3ce2b..1373579ca 100644 --- a/sdks/java-v2/templates/libraries/jersey2/pom.mustache +++ b/sdks/java-v2/templates/libraries/jersey2/pom.mustache @@ -379,6 +379,15 @@ jersey-apache-connector${jersey-version} + {{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + {{/useReflectionEqualsHashCode}} + org.junit.jupiter @@ -401,13 +410,12 @@ 0.2.6 {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} 5.10.0 {{#hasHttpSignatureMethods}} 1.8 @@ -415,6 +423,9 @@ {{#hasOAuthMethods}} 8.3.3 {{/hasOAuthMethods}} + {{#useReflectionEqualsHashCode}} + 3.17.0 + {{/useReflectionEqualsHashCode}} 2.21.0 diff --git a/sdks/java-v2/templates/libraries/jersey3/ApiClient.mustache b/sdks/java-v2/templates/libraries/jersey3/ApiClient.mustache index 344a2ec55..026a49416 100644 --- a/sdks/java-v2/templates/libraries/jersey3/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/ApiClient.mustache @@ -1002,24 +1002,10 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { if (contentType.startsWith("multipart/form-data")) { MultiPart multiPart = new MultiPart(); for (Entry param: formParams.entrySet()) { - if (param.getValue() instanceof File) { - File file = (File) param.getValue(); - FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()) - .fileName(file.getName()).size(file.length()).build(); - - // Attempt to probe the content type for the file so that the form part is more correctly - // and precisely identified, but fall back to application/octet-stream if that fails. - MediaType type; - try { - type = MediaType.valueOf(Files.probeContentType(file.toPath())); - } catch (IOException | IllegalArgumentException e) { - type = MediaType.APPLICATION_OCTET_STREAM_TYPE; - } - - multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); + if (param.getValue() instanceof Iterable) { + ((Iterable)param.getValue()).forEach(v -> addParamToMultipart(v, param.getKey(), multiPart)); } else { - FormDataContentDisposition contentDisp = FormDataContentDisposition.name(param.getKey()).build(); - multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(param.getValue()))); + addParamToMultipart(param.getValue(), param.getKey(), multiPart); } } entity = Entity.entity(multiPart, MediaType.MULTIPART_FORM_DATA_TYPE); @@ -1048,6 +1034,36 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { return entity; } + /** + * Adds the object with the provided key to the MultiPart. + * Based on the object type sets Content-Disposition and Content-Type. + * + * @param obj Object + * @param key Key of the object + * @param multiPart MultiPart to add the form param to + */ + private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + if (value instanceof File) { + File file = (File) value; + FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key) + .fileName(file.getName()).size(file.length()).build(); + + // Attempt to probe the content type for the file so that the form part is more correctly + // and precisely identified, but fall back to application/octet-stream if that fails. + MediaType type; + try { + type = MediaType.valueOf(Files.probeContentType(file.toPath())); + } catch (IOException | IllegalArgumentException e) { + type = MediaType.APPLICATION_OCTET_STREAM_TYPE; + } + + multiPart.bodyPart(new FormDataBodyPart(contentDisp, file, type)); + } else { + FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key).build(); + multiPart.bodyPart(new FormDataBodyPart(contentDisp, parameterToString(value))); + } + } + /** * Serialize the given Java object into string according the given * Content-Type (only JSON, HTTP form is supported for now). @@ -1377,7 +1393,11 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } else if ("PUT".equals(method)) { response = invocationBuilder.put(entity); } else if ("DELETE".equals(method)) { - response = invocationBuilder.method("DELETE", entity); + if ("".equals(entity.getEntity())) { + response = invocationBuilder.method("DELETE"); + } else { + response = invocationBuilder.method("DELETE", entity); + } } else if ("PATCH".equals(method)) { response = invocationBuilder.method("PATCH", entity); } else { diff --git a/sdks/java-v2/templates/libraries/jersey3/JSON.mustache b/sdks/java-v2/templates/libraries/jersey3/JSON.mustache index e1f17c972..613a4a276 100644 --- a/sdks/java-v2/templates/libraries/jersey3/JSON.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/JSON.mustache @@ -12,9 +12,6 @@ import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; {{#joda}} import com.fasterxml.jackson.datatype.joda.JodaModule; {{/joda}} -{{#models.0}} -import {{modelPackage}}.*; -{{/models.0}} import java.text.DateFormat; import java.util.HashMap; @@ -32,12 +29,7 @@ public class JSON implements ContextResolver { mapper = JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false) -{{^useCustomTemplateCode}} - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true) -{{/useCustomTemplateCode}} -{{#useCustomTemplateCode}} - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) -{{/useCustomTemplateCode}} + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}) .configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) diff --git a/sdks/java-v2/templates/libraries/jersey3/anyof_model.mustache b/sdks/java-v2/templates/libraries/jersey3/anyof_model.mustache index d480667f3..46c2cdc3a 100644 --- a/sdks/java-v2/templates/libraries/jersey3/anyof_model.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/anyof_model.mustache @@ -68,10 +68,23 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return ret; } {{/discriminator}} + {{#composedSchemas}} {{#anyOf}} - // deserialize {{{.}}} + // deserialize {{{dataType}}}{{#isNullable}} (nullable){{/isNullable}} try { - deserialized = tree.traverse(jp.getCodec()).readValueAs({{{.}}}.class); + {{^isArray}} + {{^isMap}} + deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); + {{/isMap}} + {{/isArray}} + {{#isArray}} + final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; + deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + {{/isArray}} + {{#isMap}} + final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; + deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + {{/isMap}} {{classname}} ret = new {{classname}}(); ret.setActualInstance(deserialized); return ret; @@ -81,6 +94,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/anyOf}} + {{/composedSchemas}} throw new IOException(String.format("Failed deserialization for {{classname}}: no match found")); } @@ -119,13 +133,17 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return Objects.hash(getActualInstance(), isNullable(), getSchemaType(), additionalProperties); } {{/additionalPropertiesType}} + {{#composedSchemas}} {{#anyOf}} - public {{classname}}({{{.}}} o) { + {{^vendorExtensions.x-duplicated-data-type}} + public {{classname}}({{{baseType}}} o) { super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}}); setActualInstance(o); } + {{/vendorExtensions.x-duplicated-data-type}} {{/anyOf}} + {{/composedSchemas}} static { {{#anyOf}} schemas.put("{{{.}}}", new GenericType<{{{.}}}>() { @@ -165,13 +183,17 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/isNullable}} + {{#composedSchemas}} {{#anyOf}} - if (JSON.isInstanceOf({{{.}}}.class, instance, new HashSet<>())) { + {{^vendorExtensions.x-duplicated-data-type}} + if (JSON.isInstanceOf({{{baseType}}}.class, instance, new HashSet<>())) { super.setActualInstance(instance); return; } + {{/vendorExtensions.x-duplicated-data-type}} {{/anyOf}} + {{/composedSchemas}} throw new RuntimeException("Invalid instance type. Must be {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}"); } @@ -186,17 +208,21 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return super.getActualInstance(); } + {{#composedSchemas}} {{#anyOf}} + {{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}} /** - * Get the actual instance of `{{{.}}}`. If the actual instance is not `{{{.}}}`, + * Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`, * the ClassCastException will be thrown. * - * @return The actual instance of `{{{.}}}` - * @throws ClassCastException if the instance is not `{{{.}}}` + * @return The actual instance of `{{{dataType}}}` + * @throws ClassCastException if the instance is not `{{{dataType}}}` */ - public {{{.}}} get{{{.}}}() throws ClassCastException { - return ({{{.}}})super.getActualInstance(); + public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { + return ({{{dataType}}})super.getActualInstance(); } + {{/vendorExtensions.x-duplicated-data-type-ignoring-erasure}} {{/anyOf}} + {{/composedSchemas}} } diff --git a/sdks/java-v2/templates/libraries/jersey3/api.mustache b/sdks/java-v2/templates/libraries/jersey3/api.mustache index 3ce92f7f0..0c0e2c8da 100644 --- a/sdks/java-v2/templates/libraries/jersey3/api.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/api.mustache @@ -56,12 +56,7 @@ public class {{classname}} { {{#operation}} {{^vendorExtensions.x-group-parameters}} /** -{{^useCustomTemplateCode}} * {{summary}} -{{/useCustomTemplateCode}} -{{#useCustomTemplateCode}} - * {{summary}}. -{{/useCustomTemplateCode}} * {{notes}} {{#allParams}} * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} @@ -72,7 +67,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -101,12 +97,7 @@ public class {{classname}} { {{/useCustomTemplateCode}} {{^vendorExtensions.x-group-parameters}} /** -{{^useCustomTemplateCode}} * {{summary}} -{{/useCustomTemplateCode}} -{{#useCustomTemplateCode}} - * {{summary}}. -{{/useCustomTemplateCode}} * {{notes}} {{#allParams}} * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} @@ -115,7 +106,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -226,7 +218,7 @@ public class {{classname}} { GenericType<{{{returnType}}}> localVarReturnType = new GenericType<{{{returnType}}}>() {}; {{/returnType}} {{^useCustomTemplateCode}} - return apiClient.invokeAPI("{{classname}}.{{operationId}}", {{#hasPathParams}}localVarPath{{/hasPathParams}}{{^hasPathParams}}"{{path}}"{{/hasPathParams}}, "{{httpMethod}}", {{#queryParams}}{{#-first}}localVarQueryParams{{/-first}}{{/queryParams}}{{^queryParams}}new ArrayList<>(){{/queryParams}}, {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, + return apiClient.invokeAPI("{{classname}}.{{operationId}}", {{#hasPathParams}}localVarPath{{/hasPathParams}}{{^hasPathParams}}"{{{path}}}"{{/hasPathParams}}, "{{httpMethod}}", {{#queryParams}}{{#-first}}localVarQueryParams{{/-first}}{{/queryParams}}{{^queryParams}}new ArrayList<>(){{/queryParams}}, {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}, {{#headerParams}}{{#-first}}localVarHeaderParams{{/-first}}{{/headerParams}}{{^headerParams}}new LinkedHashMap<>(){{/headerParams}}, {{#cookieParams}}{{#-first}}localVarCookieParams{{/-first}}{{/cookieParams}}{{^cookieParams}}new LinkedHashMap<>(){{/cookieParams}}, {{#formParams}}{{#-first}}localVarFormParams{{/-first}}{{/formParams}}{{^formParams}}new LinkedHashMap<>(){{/formParams}}, localVarAccept, localVarContentType, {{#hasAuthMethods}}localVarAuthNames{{/hasAuthMethods}}{{^hasAuthMethods}}null{{/hasAuthMethods}}, {{#returnType}}localVarReturnType{{/returnType}}{{^returnType}}null{{/returnType}}, {{#bodyParam}}{{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{/bodyParam}}{{^bodyParam}}false{{/bodyParam}}); {{/useCustomTemplateCode}} @@ -281,7 +273,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -301,7 +294,8 @@ public class {{classname}} { * @throws ApiException if fails to make API call {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -320,12 +314,7 @@ public class {{classname}} { } /** -{{^useCustomTemplateCode}} * {{summary}} -{{/useCustomTemplateCode}} -{{#useCustomTemplateCode}} - * {{summary}}. -{{/useCustomTemplateCode}} * {{notes}}{{#pathParams}} * @param {{paramName}} {{description}} (required){{/pathParams}} * @return {{operationId}}Request diff --git a/sdks/java-v2/templates/libraries/jersey3/build.gradle.mustache b/sdks/java-v2/templates/libraries/jersey3/build.gradle.mustache index 6d9a171b9..e29892ff2 100644 --- a/sdks/java-v2/templates/libraries/jersey3/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/build.gradle.mustache @@ -229,6 +229,9 @@ ext { {{#hasHttpSignatureMethods}} tomitribe_http_signatures_version = "1.7" {{/hasHttpSignatureMethods}} + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} {{#useCustomTemplateCode}} mockito_version = "3.12.4" {{/useCustomTemplateCode}} @@ -262,6 +265,9 @@ dependencies { {{#useBeanValidation}} implementation "jakarta.validation:jakarta.validation-api:$bean_validation_version" {{/useBeanValidation}} + {{#useReflectionEqualsHashCode}} + implementation "org.apache.commons:commons-lang3:$commons_lang3_version" + {{/useReflectionEqualsHashCode}} testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" diff --git a/sdks/java-v2/templates/libraries/jersey3/build.sbt.mustache b/sdks/java-v2/templates/libraries/jersey3/build.sbt.mustache index e4c37f99f..50d3b16d6 100644 --- a/sdks/java-v2/templates/libraries/jersey3/build.sbt.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/build.sbt.mustache @@ -36,6 +36,9 @@ lazy val root = (project in file(".")). "org.tomitribe" % "tomitribe-http-signatures" % "1.7" % "compile", {{/hasHttpSignatureMethods}} "jakarta.annotation" % "jakarta.annotation-api" % "2.1.0" % "compile", + {{#useReflectionEqualsHashCode}} + "org.apache.commons" % "commons-lang3" % "3.17.0" % "compile", + {{/useReflectionEqualsHashCode}} "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test" ) ) diff --git a/sdks/java-v2/templates/libraries/jersey3/oneof_model.mustache b/sdks/java-v2/templates/libraries/jersey3/oneof_model.mustache index 09906d7b0..5b60d0743 100644 --- a/sdks/java-v2/templates/libraries/jersey3/oneof_model.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/oneof_model.mustache @@ -112,7 +112,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im attemptParsing |= (token == JsonToken.VALUE_NUMBER_FLOAT); {{/isDecimal}} {{#isBoolean}} - attemptParsing |= (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE); {{/isBoolean}} {{#isNullable}} attemptParsing |= (token == JsonToken.VALUE_NULL); @@ -120,7 +120,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im } {{/isPrimitiveType}} if (attemptParsing) { + {{#isMap}} + final TypeReference<{{{dataType}}}> ref = new TypeReference<{{{dataType}}}>(){}; + deserialized = tree.traverse(jp.getCodec()).readValueAs(ref); + {{/isMap}} + {{^isMap}} deserialized = tree.traverse(jp.getCodec()).readValueAs({{{dataType}}}.class); + {{/isMap}} // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. @@ -266,6 +272,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#composedSchemas}} {{#oneOf}} + {{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}} /** * Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`, * the ClassCastException will be thrown. @@ -273,17 +280,11 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im * @return The actual instance of `{{{dataType}}}` * @throws ClassCastException if the instance is not `{{{dataType}}}` */ - {{^isArray}} - public {{{dataType}}} get{{{dataType}}}() throws ClassCastException { + public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { return ({{{dataType}}})super.getActualInstance(); } - {{/isArray}} - {{#isArray}} - public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { - return ({{{dataType}}})super.getActualInstance(); - } - {{/isArray}} + {{/vendorExtensions.x-duplicated-data-type-ignoring-erasure}} {{/oneOf}} {{/composedSchemas}} } diff --git a/sdks/java-v2/templates/libraries/jersey3/pojo.mustache b/sdks/java-v2/templates/libraries/jersey3/pojo.mustache index 0ba5ad05a..a73f86943 100644 --- a/sdks/java-v2/templates/libraries/jersey3/pojo.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/pojo.mustache @@ -91,6 +91,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} + {{>nullable_var_annotations}} {{^useCustomTemplateCode}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/useCustomTemplateCode}} @@ -150,7 +151,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -242,17 +243,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -302,7 +293,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @Deprecated {{/deprecated}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); diff --git a/sdks/java-v2/templates/libraries/jersey3/pom.mustache b/sdks/java-v2/templates/libraries/jersey3/pom.mustache index e2bb17240..23e2b05b7 100644 --- a/sdks/java-v2/templates/libraries/jersey3/pom.mustache +++ b/sdks/java-v2/templates/libraries/jersey3/pom.mustache @@ -404,6 +404,15 @@ jersey-apache-connector${jersey-version} + {{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + {{/useReflectionEqualsHashCode}} + org.junit.jupiter @@ -433,9 +442,7 @@ 2.17.1 0.2.6 2.1.1 - {{#useBeanValidation}} 3.0.2 - {{/useBeanValidation}} 5.10.0 {{#hasHttpSignatureMethods}} 1.8 @@ -443,6 +450,9 @@ {{#hasOAuthMethods}} 8.3.3 {{/hasOAuthMethods}} + {{#useReflectionEqualsHashCode}} + 3.17.0 + {{/useReflectionEqualsHashCode}} 2.21.0 {{#useCustomTemplateCode}} 3.12.4 diff --git a/sdks/java-v2/templates/libraries/microprofile/api.mustache b/sdks/java-v2/templates/libraries/microprofile/api.mustache index 6e25c1f10..0b0a7c4ba 100644 --- a/sdks/java-v2/templates/libraries/microprofile/api.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/api.mustache @@ -71,10 +71,10 @@ public interface {{classname}} { {{#hasProduces}} @Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }) {{/hasProduces}} -{{^useSingleRequestParameter}} - {{^vendorExtensions.x-java-is-response-void}}{{#microprofileServer}}{{> server_operation}}{{/microprofileServer}}{{^microprofileServer}}{{> client_operation}}{{/microprofileServer}}{{/vendorExtensions.x-java-is-response-void}}{{#vendorExtensions.x-java-is-response-void}}{{#microprofileMutiny}}Uni{{/microprofileMutiny}}{{^microprofileMutiny}}void{{/microprofileMutiny}}{{/vendorExtensions.x-java-is-response-void}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException, ProcessingException; -{{/useSingleRequestParameter}} -{{#useSingleRequestParameter}} +{{^singleRequestParameter}} + {{^vendorExtensions.x-java-is-response-void}}{{#microprofileServer}}{{> server_operation}}{{/microprofileServer}}{{^microprofileServer}}{{> client_operation}}{{/microprofileServer}}{{/vendorExtensions.x-java-is-response-void}}{{#vendorExtensions.x-java-is-response-void}}{{#microprofileMutiny}}Uni{{/microprofileMutiny}}{{^microprofileMutiny}}void{{/microprofileMutiny}}{{/vendorExtensions.x-java-is-response-void}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{>cookieParams}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException, ProcessingException; +{{/singleRequestParameter}} +{{#singleRequestParameter}} {{^vendorExtensions.x-java-is-response-void}}{{#microprofileMutiny}}Uni<{{{returnType}}}>{{/microprofileMutiny}}{{^microprofileMutiny}}{{{returnType}}}{{/microprofileMutiny}}{{/vendorExtensions.x-java-is-response-void}}{{#vendorExtensions.x-java-is-response-void}}{{#microprofileMutiny}}Uni{{/microprofileMutiny}}{{^microprofileMutiny}}void{{/microprofileMutiny}}{{/vendorExtensions.x-java-is-response-void}} {{nickname}}({{#hasNonBodyParams}}@BeanParam {{operationIdCamelCase}}Request request{{/hasNonBodyParams}}{{#bodyParams}}{{#hasNonBodyParams}}, {{/hasNonBodyParams}}{{>bodyParams}}{{/bodyParams}}) throws ApiException, ProcessingException; {{#hasNonBodyParams}} public class {{operationIdCamelCase}}Request { @@ -91,6 +91,9 @@ public interface {{classname}} { {{#formParams}} private {{>formParams}}; {{/formParams}} + {{#cookieParams}} + private {{>cookieParams}}; + {{/cookieParams}} private {{operationIdCamelCase}}Request() { } @@ -106,7 +109,7 @@ public interface {{classname}} { * @param {{paramName}}{{>formParamsNameSuffix}} {{description}} ({{^required}}optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}{{/required}}{{#required}}required{{/required}}) * @return {{operationIdCamelCase}}Request */ - public {{operationIdCamelCase}}Request {{paramName}}{{>formParamsNameSuffix}}({{>queryParamsImpl}}{{>pathParamsImpl}}{{>headerParamsImpl}}{{>formParamsImpl}}) { + public {{operationIdCamelCase}}Request {{paramName}}{{>formParamsNameSuffix}}({{>queryParamsImpl}}{{>pathParamsImpl}}{{>headerParamsImpl}}{{>formParamsImpl}}{{>cookieParamsImpl}}) { this.{{paramName}}{{>formParamsNameSuffix}} = {{paramName}}{{>formParamsNameSuffix}}; return this; } @@ -114,7 +117,7 @@ public interface {{classname}} { {{/allParams}} } {{/hasNonBodyParams}} -{{/useSingleRequestParameter}} +{{/singleRequestParameter}} {{/operation}} } {{/operations}} diff --git a/sdks/java-v2/templates/libraries/microprofile/beanValidationCookieParams.mustache b/sdks/java-v2/templates/libraries/microprofile/beanValidationCookieParams.mustache new file mode 100644 index 000000000..c4ff01d7e --- /dev/null +++ b/sdks/java-v2/templates/libraries/microprofile/beanValidationCookieParams.mustache @@ -0,0 +1 @@ +{{#required}} @NotNull{{/required}}{{>beanValidationCore}} \ No newline at end of file diff --git a/sdks/java-v2/templates/libraries/microprofile/cookieParams.mustache b/sdks/java-v2/templates/libraries/microprofile/cookieParams.mustache new file mode 100644 index 000000000..4cca907c6 --- /dev/null +++ b/sdks/java-v2/templates/libraries/microprofile/cookieParams.mustache @@ -0,0 +1 @@ +{{#isCookieParam}}@CookieParam("{{baseName}}") {{#useBeanValidation}}{{>beanValidationCookieParams}}{{/useBeanValidation}} {{{dataType}}} {{paramName}}{{/isCookieParam}} \ No newline at end of file diff --git a/sdks/java-v2/templates/libraries/microprofile/cookieParamsImpl.mustache b/sdks/java-v2/templates/libraries/microprofile/cookieParamsImpl.mustache new file mode 100644 index 000000000..70871f0f8 --- /dev/null +++ b/sdks/java-v2/templates/libraries/microprofile/cookieParamsImpl.mustache @@ -0,0 +1 @@ +{{#isCookieParam}}{{{dataType}}} {{paramName}}{{/isCookieParam}} \ No newline at end of file diff --git a/sdks/java-v2/templates/libraries/microprofile/enumClass.mustache b/sdks/java-v2/templates/libraries/microprofile/enumClass.mustache index cb8539bd1..7cead92c5 100644 --- a/sdks/java-v2/templates/libraries/microprofile/enumClass.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/enumClass.mustache @@ -77,7 +77,7 @@ return b; } } - {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected value '" + value + "'");{{/isNullable}} + {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}{{#enumUnknownDefaultCase}}{{#allowableValues}}{{#enumVars}}{{#-last}}return {{{name}}};{{/-last}}{{/enumVars}}{{/allowableValues}}{{/enumUnknownDefaultCase}}{{^enumUnknownDefaultCase}}throw new IllegalArgumentException("Unexpected value '" + value + "'");{{/enumUnknownDefaultCase}}{{/isNullable}} } {{/jackson}} {{/withXml}} diff --git a/sdks/java-v2/templates/libraries/microprofile/enumOuterClass.mustache b/sdks/java-v2/templates/libraries/microprofile/enumOuterClass.mustache index 2539064d1..588e52c7e 100644 --- a/sdks/java-v2/templates/libraries/microprofile/enumOuterClass.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/enumOuterClass.mustache @@ -65,6 +65,6 @@ import java.net.URI; return b; } } - {{#useNullForUnknownEnumValue}}return null;{{/useNullForUnknownEnumValue}}{{^useNullForUnknownEnumValue}}throw new IllegalArgumentException("Unexpected value '" + text + "'");{{/useNullForUnknownEnumValue}} + {{#useNullForUnknownEnumValue}}return null;{{/useNullForUnknownEnumValue}}{{^useNullForUnknownEnumValue}}{{#enumUnknownDefaultCase}}{{#allowableValues}}{{#enumVars}}{{#-last}}return {{{name}}};{{/-last}}{{/enumVars}}{{/allowableValues}}{{/enumUnknownDefaultCase}}{{^enumUnknownDefaultCase}}throw new IllegalArgumentException("Unexpected value '" + text + "'");{{/enumUnknownDefaultCase}}{{/useNullForUnknownEnumValue}} } } diff --git a/sdks/java-v2/templates/libraries/microprofile/model.mustache b/sdks/java-v2/templates/libraries/microprofile/model.mustache index e10e68d83..8ac93be1b 100644 --- a/sdks/java-v2/templates/libraries/microprofile/model.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/model.mustache @@ -1,6 +1,12 @@ {{>licenseInfo}} package {{package}}; +{{#useReflectionEqualsHashCode}} +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +{{/useReflectionEqualsHashCode}} +import java.util.Objects; +import java.util.Arrays; {{#imports}}import {{import}}; {{/imports}} {{#serializableModel}} @@ -31,9 +37,12 @@ import {{rootJavaEEPackage}}.json.bind.serializer.SerializationContext; import {{rootJavaEEPackage}}.json.stream.JsonGenerator; import {{rootJavaEEPackage}}.json.stream.JsonParser; import {{rootJavaEEPackage}}.json.bind.annotation.JsonbProperty; -{{#vendorExtensions.x-has-readonly-properties}} +{{#jsonbPolymorphism}} +import {{rootJavaEEPackage}}.json.bind.annotation.JsonbSubtype; +import {{rootJavaEEPackage}}.json.bind.annotation.JsonbTransient; +import {{rootJavaEEPackage}}.json.bind.annotation.JsonbTypeInfo; +{{/jsonbPolymorphism}} import {{rootJavaEEPackage}}.json.bind.annotation.JsonbCreator; -{{/vendorExtensions.x-has-readonly-properties}} {{/jsonb}} {{#useBeanValidation}} import {{rootJavaEEPackage}}.validation.constraints.*; diff --git a/sdks/java-v2/templates/libraries/microprofile/pojo.mustache b/sdks/java-v2/templates/libraries/microprofile/pojo.mustache index afad09aa3..9fcac409c 100644 --- a/sdks/java-v2/templates/libraries/microprofile/pojo.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/pojo.mustache @@ -22,7 +22,7 @@ * {{{.}}} */ {{/description}} -{{>additionalModelTypeAnnotations}} +{{>additionalModelTypeAnnotations}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}} {{#vendorExtensions.x-class-extra-annotation}} {{{vendorExtensions.x-class-extra-annotation}}} {{/vendorExtensions.x-class-extra-annotation}} @@ -45,7 +45,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{#vendorExtensi */ {{/description}} {{^withXml}} - {{#jsonb}}@JsonbProperty("{{baseName}}"){{/jsonb}} + {{#jsonb}}{{^isDiscriminator}}@JsonbProperty("{{baseName}}"){{/isDiscriminator}}{{#isDiscriminator}}{{#jsonbPolymorphism}}@JsonbTransient{{/jsonbPolymorphism}}{{^jsonbPolymorphism}}@JsonbProperty("{{baseName}}"){{/jsonbPolymorphism}}{{/isDiscriminator}}{{/jsonb}} {{/withXml}} {{#vendorExtensions.x-field-extra-annotation}} {{{vendorExtensions.x-field-extra-annotation}}} @@ -148,28 +148,5 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}}{{#vendorExtensi {{/isReadOnly}} {{/vars}} - - /** - * Create a string representation of this pojo. - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class {{classname}} {\n"); - {{#parent}}sb.append(" ").append(toIndentedString(super.toString())).append("\n");{{/parent}} - {{#vars}}sb.append(" {{name}}: ").append({{#isPassword}}"*"{{/isPassword}}{{^isPassword}}toIndentedString({{name}}){{/isPassword}}).append("\n"); - {{/vars}}sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private static String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } +{{>pojoOverrides}} } diff --git a/sdks/java-v2/templates/libraries/microprofile/pojoOverrides.mustache b/sdks/java-v2/templates/libraries/microprofile/pojoOverrides.mustache new file mode 100644 index 000000000..f0fbb0b20 --- /dev/null +++ b/sdks/java-v2/templates/libraries/microprofile/pojoOverrides.mustache @@ -0,0 +1,64 @@ + @Override + public boolean equals(Object o) { + {{#useReflectionEqualsHashCode}} + return EqualsBuilder.reflectionEquals(this, o, false, null, true); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + }{{#hasVars}} + {{classname}} {{classVarName}} = ({{classname}}) o; + return {{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && + {{/-last}}{{/vars}}{{#parent}} && + super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}} + return {{#parent}}super.equals(o){{/parent}}{{^parent}}true{{/parent}};{{/hasVars}} + {{/useReflectionEqualsHashCode}} + }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + + @Override + public int hashCode() { + {{#useReflectionEqualsHashCode}} + return HashCodeBuilder.reflectionHashCode(this); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + return Objects.hash({{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}); + {{/useReflectionEqualsHashCode}} + }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + + /** + * Create a string representation of this pojo. + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class {{classname}} {\n"); + {{#parent}}sb.append(" ").append(toIndentedString(super.toString())).append("\n");{{/parent}} + {{#vars}}sb.append(" {{name}}: ").append({{#isPassword}}"*"{{/isPassword}}{{^isPassword}}toIndentedString({{name}}){{/isPassword}}).append("\n"); + {{/vars}}sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private static String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } \ No newline at end of file diff --git a/sdks/java-v2/templates/libraries/microprofile/pom.mustache b/sdks/java-v2/templates/libraries/microprofile/pom.mustache index f814d4c0d..4fefd6db2 100644 --- a/sdks/java-v2/templates/libraries/microprofile/pom.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/pom.mustache @@ -196,6 +196,14 @@ ${mutiny.version} {{/microprofileMutiny}} +{{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons.lang3.version} + +{{/useReflectionEqualsHashCode}} @@ -210,10 +218,12 @@ 1.8 ${java.version} ${java.version} + UTF-8 + 1.5.18 9.2.9.v20150224 5.10.2 - 1.4.14 + 1.5.13 {{#useBeanValidation}} 3.0.2 {{/useBeanValidation}} @@ -238,9 +248,11 @@ 1.1.0 2.6 1.9.1 - UTF-8 {{#microprofileMutiny}} - 1.2.0 + 1.10.0 {{/microprofileMutiny}} +{{#useReflectionEqualsHashCode}} + 3.17.0 +{{/useReflectionEqualsHashCode}} diff --git a/sdks/java-v2/templates/libraries/microprofile/pom_3.0.mustache b/sdks/java-v2/templates/libraries/microprofile/pom_3.0.mustache index 7accc4cb2..9462e0d92 100644 --- a/sdks/java-v2/templates/libraries/microprofile/pom_3.0.mustache +++ b/sdks/java-v2/templates/libraries/microprofile/pom_3.0.mustache @@ -189,6 +189,21 @@ ${jakarta.annotation.version} provided +{{#microprofileMutiny}} + + io.smallrye.reactive + mutiny + ${mutiny.version} + +{{/microprofileMutiny}} +{{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons.lang3.version} + +{{/useReflectionEqualsHashCode}} @@ -203,10 +218,12 @@ 11 ${java.version} ${java.version} + UTF-8 + 1.5.18 9.2.9.v20150224 5.10.2 - 1.4.14 + 1.5.13 {{#useBeanValidation}} 3.0.1 {{/useBeanValidation}} @@ -217,7 +234,7 @@ {{/jackson}} 2.1.0 2.0.0 - 2.0.0 + 3.0.0 2.0.1 3.0.0 3.0.1 @@ -231,6 +248,11 @@ 1.1.0 2.6 1.9.1 - UTF-8 +{{#microprofileMutiny}} + 1.10.0 +{{/microprofileMutiny}} +{{#useReflectionEqualsHashCode}} + 3.17.0 +{{/useReflectionEqualsHashCode}} diff --git a/sdks/java-v2/templates/libraries/native/ApiClient.mustache b/sdks/java-v2/templates/libraries/native/ApiClient.mustache index a641525af..a8bede355 100644 --- a/sdks/java-v2/templates/libraries/native/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/native/ApiClient.mustache @@ -183,7 +183,7 @@ public class ApiClient { asyncResponseInterceptor = null; } - protected ObjectMapper createDefaultObjectMapper() { + public static ObjectMapper createDefaultObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -199,15 +199,15 @@ public class ApiClient { return mapper; } - protected String getDefaultBaseUri() { + private String getDefaultBaseUri() { return "{{{basePath}}}"; } - protected HttpClient.Builder createDefaultHttpClientBuilder() { + public static HttpClient.Builder createDefaultHttpClientBuilder() { return HttpClient.newBuilder(); } - public void updateBaseUri(String baseUri) { + public final void updateBaseUri(String baseUri) { URI uri = URI.create(baseUri); scheme = uri.getScheme(); host = uri.getHost(); diff --git a/sdks/java-v2/templates/libraries/native/JSON.mustache b/sdks/java-v2/templates/libraries/native/JSON.mustache index 813bb7940..496e5a1a8 100644 --- a/sdks/java-v2/templates/libraries/native/JSON.mustache +++ b/sdks/java-v2/templates/libraries/native/JSON.mustache @@ -30,7 +30,12 @@ public class JSON { mapper = JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .disable(MapperFeature.ALLOW_COERCION_OF_SCALARS) + {{#failOnUnknownProperties}} .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + {{/failOnUnknownProperties}} + {{^failOnUnknownProperties}} + .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + {{/failOnUnknownProperties}} .enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) diff --git a/sdks/java-v2/templates/libraries/native/anyof_model.mustache b/sdks/java-v2/templates/libraries/native/anyof_model.mustache index dfb6464d5..7cc5081d8 100644 --- a/sdks/java-v2/templates/libraries/native/anyof_model.mustache +++ b/sdks/java-v2/templates/libraries/native/anyof_model.mustache @@ -16,6 +16,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import {{invokerPackage}}.ApiClient; import {{invokerPackage}}.JSON; {{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{>xmlAnnotation}} @@ -241,7 +242,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im for ({{{items.dataType}}} _item : ({{{dataType}}})getActualInstance()) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(_item), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(_item)))); } i++; } @@ -251,7 +252,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im for (int i = 0; i < (({{{dataType}}})getActualInstance()).size(); i++) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getActualInstance().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance().get(i))))); } } {{/uniqueItems}} @@ -289,7 +290,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im if (_item != null) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(_item), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(_item)))); } i++; } @@ -301,7 +302,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im if (getActualInstance().get(i) != null) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf((({{{dataType}}})getActualInstance()).get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf((({{{dataType}}})getActualInstance()).get(i))))); } } } @@ -316,7 +317,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im for (String _key : (({{{dataType}}})getActualInstance()).keySet()) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getActualInstance().get(_key), URLEncoder.encode(String.valueOf((({{{dataType}}})getActualInstance()).get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getActualInstance().get(_key), ApiClient.urlEncode(String.valueOf((({{{dataType}}})getActualInstance()).get(_key))))); } } {{/items.isPrimitiveType}} @@ -334,7 +335,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{^isMap}} {{#isPrimitiveType}} if (getActualInstance() != null) { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActualInstance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, ApiClient.urlEncode(String.valueOf(getActualInstance())))); } {{/isPrimitiveType}} {{^isPrimitiveType}} @@ -345,7 +346,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{/isModel}} {{^isModel}} if (getActualInstance() != null) { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActualInstance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, ApiClient.urlEncode(String.valueOf(getActualInstance())))); } {{/isModel}} {{/isPrimitiveType}} diff --git a/sdks/java-v2/templates/libraries/native/api.mustache b/sdks/java-v2/templates/libraries/native/api.mustache index a80dcbac8..c100f2f81 100644 --- a/sdks/java-v2/templates/libraries/native/api.mustache +++ b/sdks/java-v2/templates/libraries/native/api.mustache @@ -4,6 +4,7 @@ package {{package}}; import {{invokerPackage}}.ApiClient; import {{invokerPackage}}.ApiException; import {{invokerPackage}}.ApiResponse; +import {{invokerPackage}}.Configuration; import {{invokerPackage}}.Pair; {{#imports}} @@ -14,8 +15,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#hasFormParamsInSpec}} @@ -64,7 +65,7 @@ public class {{classname}} { private final Consumer> memberVarAsyncResponseInterceptor; public {{classname}}() { - this(new ApiClient()); + this(Configuration.getDefaultApiClient()); } public {{classname}}(ApiClient apiClient) { @@ -271,22 +272,46 @@ public class {{classname}} { } {{/vendorExtensions.x-java-text-plain-string}} {{^vendorExtensions.x-java-text-plain-string}} - return new ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}>( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - {{#returnType}} - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<{{{returnType}}}>() {}) // closes the InputStream - {{/returnType}} - {{^returnType}} - null - {{/returnType}} + {{#returnType}} + {{! Fix for https://github.com/OpenAPITools/openapi-generator/issues/13968 }} + {{! This part had a bugfix for an empty response in the past, but this part of that PR was reverted because it was not doing anything. }} + {{! Keep this documentation here, because the problem is not obvious. }} + {{! `InputStream.available()` was used, but that only works for inputstreams that are already in memory, it will not give the right result if it is a remote stream. We only work with remote streams here. }} + {{! https://github.com/OpenAPITools/openapi-generator/pull/13993/commits/3e!37411d2acef0311c82e6d941a8e40b3bc0b6da }} + {{! The `available` method would work with a `PushbackInputStream`, because we could read 1 byte to check if it exists then push it back so Jackson can read it again. The issue with that is that it will also insert an ascii character for "head of input" and that will break Jackson as it does not handle special whitespace characters. }} + {{! A fix for that problem is to read it into a string and remove those characters, but if we need to read it before giving it to jackson to fix the string then just reading it into a string as is to do an emptiness check is the cleaner solution. }} + {{! We could also manipulate the inputstream to remove that bad character, but string manipulation is easier to read and this codepath is not asyncronus so we do not gain anything by reading the stream later. }} + {{! This fix does make it unsuitable for large amounts of data because `InputStream.readAllbytes` is not meant for it, but a synchronous client is already not the right tool for that.}} + if (localVarResponse.body() == null) { + return new ApiResponse<{{{returnType}}}>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + null + ); + } + + String responseBody = new String(localVarResponse.body().readAllBytes()); + localVarResponse.body().close(); + + return new ApiResponse<{{{returnType}}}>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference<{{{returnType}}}>() {}) ); + {{/returnType}} + {{^returnType}} + return new ApiResponse<{{{returnType}}}>( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + null + ); + {{/returnType}} {{/vendorExtensions.x-java-text-plain-string}} } finally { {{^returnType}} // Drain the InputStream while (localVarResponse.body().read() != -1) { - // Ignore + // Ignore } localVarResponse.body().close(); {{/returnType}} diff --git a/sdks/java-v2/templates/libraries/native/api_test.mustache b/sdks/java-v2/templates/libraries/native/api_test.mustache index 497bd5308..8558cc6f4 100644 --- a/sdks/java-v2/templates/libraries/native/api_test.mustache +++ b/sdks/java-v2/templates/libraries/native/api_test.mustache @@ -19,8 +19,8 @@ import java.util.concurrent.CompletableFuture; {{/asyncNative}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/native/build.gradle.mustache b/sdks/java-v2/templates/libraries/native/build.gradle.mustache index 24ea4fef0..a04a9645e 100644 --- a/sdks/java-v2/templates/libraries/native/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/native/build.gradle.mustache @@ -50,12 +50,12 @@ task execute(type:JavaExec) { } task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' + archiveClassifier = 'javadoc' from javadoc.destinationDir } @@ -73,11 +73,21 @@ ext { swagger_annotations_version = "2.2.9" {{/swagger2AnnotationLibrary}} jackson_version = "2.17.1" + {{#useJakartaEe}} + jakarta_annotation_version = "2.1.1" + beanvalidation_version = "3.0.2" + {{/useJakartaEe}} + {{^useJakartaEe}} jakarta_annotation_version = "1.3.5" + beanvalidation_version = "2.0.2" + {{/useJakartaEe}} junit_version = "5.10.2" {{#hasFormParamsInSpec}} httpmime_version = "4.5.13" {{/hasFormParamsInSpec}} + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} } dependencies { @@ -94,9 +104,15 @@ dependencies { implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" implementation "org.openapitools:jackson-databind-nullable:0.2.1" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + {{#useBeanValidation}} + implementation "jakarta.validation:jakarta.validation-api:$beanvalidation_version" + {{/useBeanValidation}} {{#hasFormParamsInSpec}} implementation "org.apache.httpcomponents:httpmime:$httpmime_version" {{/hasFormParamsInSpec}} + {{#useReflectionEqualsHashCode}} + implementation "org.apache.commons:commons-lang3:$commons_lang3_version" + {{/useReflectionEqualsHashCode}} testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" } diff --git a/sdks/java-v2/templates/libraries/native/model.mustache b/sdks/java-v2/templates/libraries/native/model.mustache index cd2a85a22..b3beca8d3 100644 --- a/sdks/java-v2/templates/libraries/native/model.mustache +++ b/sdks/java-v2/templates/libraries/native/model.mustache @@ -47,8 +47,8 @@ import android.os.Parcelable; import android.os.Parcel; {{/parcelableModel}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} import org.hibernate.validator.constraints.*; diff --git a/sdks/java-v2/templates/libraries/native/oneof_model.mustache b/sdks/java-v2/templates/libraries/native/oneof_model.mustache index 8aa2ef073..cbb4a6d63 100644 --- a/sdks/java-v2/templates/libraries/native/oneof_model.mustache +++ b/sdks/java-v2/templates/libraries/native/oneof_model.mustache @@ -18,6 +18,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import {{invokerPackage}}.ApiClient; import {{invokerPackage}}.JSON; {{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{>xmlAnnotation}} @@ -274,7 +275,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im for ({{{items.dataType}}} _item : ({{{dataType}}})getActualInstance()) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(_item), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(_item)))); } i++; } @@ -284,7 +285,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im for (int i = 0; i < (({{{dataType}}})getActualInstance()).size(); i++) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getActualInstance().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(getActualInstance().get(i))))); } } {{/uniqueItems}} @@ -322,7 +323,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im if (_item != null) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(_item), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf(_item)))); } i++; } @@ -334,7 +335,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im if (getActualInstance().get(i) != null) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf((({{{dataType}}})getActualInstance()).get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(String.valueOf((({{{dataType}}})getActualInstance()).get(i))))); } } } @@ -349,7 +350,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im for (String _key : (({{{dataType}}})getActualInstance()).keySet()) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getActualInstance().get(_key), URLEncoder.encode(String.valueOf((({{{dataType}}})getActualInstance()).get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getActualInstance().get(_key), ApiClient.urlEncode(String.valueOf((({{{dataType}}})getActualInstance()).get(_key))))); } } {{/items.isPrimitiveType}} @@ -367,7 +368,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{^isMap}} {{#isPrimitiveType}} if (getActualInstance() != null) { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActualInstance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, ApiClient.urlEncode(String.valueOf(getActualInstance())))); } {{/isPrimitiveType}} {{^isPrimitiveType}} @@ -378,7 +379,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{/isModel}} {{^isModel}} if (getActualInstance() != null) { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActualInstance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, ApiClient.urlEncode(String.valueOf(getActualInstance())))); } {{/isModel}} {{/isPrimitiveType}} diff --git a/sdks/java-v2/templates/libraries/native/pojo.mustache b/sdks/java-v2/templates/libraries/native/pojo.mustache index 1250a71ec..5413d1cdc 100644 --- a/sdks/java-v2/templates/libraries/native/pojo.mustache +++ b/sdks/java-v2/templates/libraries/native/pojo.mustache @@ -75,6 +75,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/isContainer}} {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{>nullable_var_annotations}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -104,7 +105,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens )); {{/vendorExtensions.x-enum-as-string}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -188,17 +189,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -244,7 +235,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); @@ -266,7 +257,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#allVars}} {{#isOverridden}} @Override - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}})); {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -395,7 +386,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens for ({{{items.dataType}}} _item : {{getter}}()) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(ApiClient.valueToString(_item), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(_item)))); } i++; } @@ -405,7 +396,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens for (int i = 0; i < {{getter}}().size(); i++) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(ApiClient.valueToString({{getter}}().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString({{getter}}().get(i))))); } } {{/uniqueItems}} @@ -443,7 +434,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens if (_item != null) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(ApiClient.valueToString(_item), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString(_item)))); } i++; } @@ -455,7 +446,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens if ({{getter}}().get(i) != null) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(ApiClient.valueToString({{getter}}().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + ApiClient.urlEncode(ApiClient.valueToString({{getter}}().get(i))))); } } } @@ -470,7 +461,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens for (String _key : {{getter}}().keySet()) { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - {{getter}}().get(_key), URLEncoder.encode(ApiClient.valueToString({{getter}}().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + {{getter}}().get(_key), ApiClient.urlEncode(ApiClient.valueToString({{getter}}().get(_key))))); } } {{/items.isModel}} @@ -488,7 +479,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isMap}} {{#isPrimitiveType}} if ({{getter}}() != null) { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString({{{getter}}}()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString({{{getter}}}())))); } {{/isPrimitiveType}} {{^isPrimitiveType}} @@ -499,7 +490,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/isModel}} {{^isModel}} if ({{getter}}() != null) { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString({{{getter}}}()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString({{{getter}}}())))); } {{/isModel}} {{/isPrimitiveType}} diff --git a/sdks/java-v2/templates/libraries/native/pom.mustache b/sdks/java-v2/templates/libraries/native/pom.mustache index 8ed827791..0ccfa8418 100644 --- a/sdks/java-v2/templates/libraries/native/pom.mustache +++ b/sdks/java-v2/templates/libraries/native/pom.mustache @@ -271,6 +271,14 @@ ${httpmime-version} {{/hasFormParamsInSpec}} + {{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + {{/useReflectionEqualsHashCode}} @@ -295,16 +303,18 @@ 0.2.6 {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} {{#hasFormParamsInSpec}} 4.5.14 {{/hasFormParamsInSpec}} + {{#useReflectionEqualsHashCode}} + 3.17.0 + {{/useReflectionEqualsHashCode}} 5.10.2 2.27.2 diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/ApiClient.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/ApiClient.mustache index c5e7ae225..519b37ed2 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/ApiClient.mustache @@ -47,9 +47,11 @@ import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.text.DateFormat; +{{#jsr310}} import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; +{{/jsr310}} import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; @@ -987,7 +989,7 @@ public class ApiClient { } {{/dynamicOperations}} - /** + /** * Formats the specified free-form query parameters to a list of {@code Pair} objects. * * @param value The free-form query parameters. @@ -1001,6 +1003,7 @@ public class ApiClient { return params; } + @SuppressWarnings("unchecked") final Map valuesMap = (Map) value; for (Map.Entry entry : valuesMap.entrySet()) { diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/JSON.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/JSON.mustache index 6cf7ec789..eee7773c4 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/JSON.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/JSON.mustache @@ -28,9 +28,11 @@ import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; +{{#jsr310}} import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; +{{/jsr310}} import java.util.Date; import java.util.Locale; import java.util.Map; diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/README.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/README.mustache index 8dbdf2451..de3afa6c1 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/README.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/README.mustache @@ -90,7 +90,7 @@ import {{{invokerPackage}}}.ApiClient; import {{{invokerPackage}}}.ApiException; import {{{invokerPackage}}}.Configuration;{{#hasAuthMethods}} import {{{invokerPackage}}}.auth.*;{{/hasAuthMethods}} -import {{{invokerPackage}}}.models.*; +import {{{modelPackage}}}.*; import {{{package}}}.{{{classname}}}; public class Example { diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/anyof_model.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/anyof_model.mustache index 18447fc12..564c1bb36 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/anyof_model.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/anyof_model.mustache @@ -283,7 +283,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#composedSchemas}} {{#anyOf}} - {{^vendorExtensions.x-duplicated-data-type}} + {{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}} /** * Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`, * the ClassCastException will be thrown. @@ -291,13 +291,13 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im * @return The actual instance of `{{{dataType}}}` * @throws ClassCastException if the instance is not `{{{dataType}}}` */ - public {{{dataType}}} get{{#isArray}}{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}{{/isArray}}{{^isArray}}{{{dataType}}}{{/isArray}}() throws ClassCastException { + public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { return ({{{dataType}}})super.getActualInstance(); } - {{/vendorExtensions.x-duplicated-data-type}} + + {{/vendorExtensions.x-duplicated-data-type-ignoring-erasure}} {{/anyOf}} {{/composedSchemas}} - /** * Validates the JSON Element and throws an exception if issues found * diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/api.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/api.mustache index 96757ed64..2dd79633e 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/api.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/api.mustache @@ -26,14 +26,14 @@ import io.swagger.v3.oas.models.parameters.Parameter; import java.io.IOException; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} -import jakarta.validation.ConstraintViolation; -import jakarta.validation.Validation; -import jakarta.validation.ValidatorFactory; -import jakarta.validation.executable.ExecutableValidator; +import {{javaxPackage}}.validation.ConstraintViolation; +import {{javaxPackage}}.validation.Validation; +import {{javaxPackage}}.validation.ValidatorFactory; +import {{javaxPackage}}.validation.executable.ExecutableValidator; import java.util.Set; import java.lang.reflect.Method; import java.lang.reflect.Type; @@ -98,7 +98,8 @@ public class {{classname}} { * @throws ApiException If fail to serialize the request body object {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -180,12 +181,6 @@ public class {{classname}} { {{/isQueryParam}} {{/constantParams}} - {{#headerParams}} - if ({{paramName}} != null) { - localVarHeaderParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); - } - - {{/headerParams}} {{#constantParams}} {{#isHeaderParam}} // Set client side default value of Header Param "{{baseName}}". @@ -230,6 +225,15 @@ public class {{classname}} { if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } + {{^dynamicOperations}} + {{#headerParams}} + + if ({{paramName}} != null) { + localVarHeaderParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); + } + + {{/headerParams}} + {{/dynamicOperations}} String[] localVarAuthNames = new String[] { {{#withAWSV4Signature}}"AWS4Auth"{{/withAWSV4Signature}}{{#authMethods}}{{#-first}}{{#withAWSV4Signature}}, {{/withAWSV4Signature}}{{/-first}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} }; return localVarApiClient.buildCall(basePath, localVarPath, {{^dynamicOperations}}"{{httpMethod}}"{{/dynamicOperations}}{{#dynamicOperations}}apiOperation.getMethod(){{/dynamicOperations}}, localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); @@ -287,7 +291,8 @@ public class {{classname}} { * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -327,7 +332,8 @@ public class {{classname}} { * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -395,7 +401,8 @@ public class {{classname}} { * @throws ApiException If fail to process the API call, e.g. serializing the request body object {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -455,7 +462,8 @@ public class {{classname}} { * @throws ApiException If fail to serialize the request body object {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -479,7 +487,8 @@ public class {{classname}} { * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -511,7 +520,8 @@ public class {{classname}} { * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -543,7 +553,8 @@ public class {{classname}} { * @throws ApiException If fail to process the API call, e.g. serializing the request body object {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} @@ -569,7 +580,8 @@ public class {{classname}} { * @return API{{operationId}}Request {{#responses.0}} * @http.response.details -
Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+
+ {{#responses}} diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/api_test.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/api_test.mustache index 29f682678..b56bdf4db 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/api_test.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/api_test.mustache @@ -17,8 +17,8 @@ import java.io.InputStream; {{/supportStreaming}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/build.gradle.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/build.gradle.mustache index eb67fc112..1b527257a 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/build.gradle.mustache @@ -126,7 +126,7 @@ dependencies { {{#hasOAuthMethods}} implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2' {{/hasOAuthMethods}} - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0' {{#joda}} implementation 'joda-time:joda-time:2.9.9' {{/joda}} diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/build.sbt.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/build.sbt.mustache index 2045b8474..54bd804c4 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/build.sbt.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/build.sbt.mustache @@ -13,7 +13,7 @@ lazy val root = (project in file(".")). "com.squareup.okhttp3" % "okhttp" % "4.12.0", "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", "com.google.code.gson" % "gson" % "2.9.1", - "org.apache.commons" % "commons-lang3" % "3.12.0", + "org.apache.commons" % "commons-lang3" % "3.17.0", "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", {{#openApiNullable}} "org.openapitools" % "jackson-databind-nullable" % "0.2.6", diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/model.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/model.mustache index c82b0fbe2..3a1cca8d7 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/model.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/model.mustache @@ -21,8 +21,8 @@ import android.os.Parcelable; import android.os.Parcel; {{/parcelableModel}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} import org.hibernate.validator.constraints.*; diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/oneof_model.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/oneof_model.mustache index 31c63263e..731b36d57 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/oneof_model.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/oneof_model.mustache @@ -361,7 +361,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{#composedSchemas}} {{#oneOf}} - {{^vendorExtensions.x-duplicated-data-type}} + {{^vendorExtensions.x-duplicated-data-type-ignoring-erasure}} /** * Get the actual instance of `{{{dataType}}}`. If the actual instance is not `{{{dataType}}}`, * the ClassCastException will be thrown. @@ -372,10 +372,10 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im public {{{dataType}}} get{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { return ({{{dataType}}})super.getActualInstance(); } - {{/vendorExtensions.x-duplicated-data-type}} + + {{/vendorExtensions.x-duplicated-data-type-ignoring-erasure}} {{/oneOf}} {{/composedSchemas}} - /** * Validates the JSON Element and throws an exception if issues found * diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/pojo.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/pojo.mustache index 0a32ef099..3d76d23b0 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/pojo.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/pojo.mustache @@ -70,6 +70,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vendorExtensions.x-field-extra-annotation}} {{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}} + {{>nullable_var_annotations}} {{#isDiscriminator}}protected{{/isDiscriminator}}{{^isDiscriminator}}private{{/isDiscriminator}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vars}} @@ -80,6 +81,11 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/parcelableModel}} {{/parent}} {{#discriminator}} + {{#discriminator.isEnum}} +{{#readWriteVars}}{{#isDiscriminator}}{{#defaultValue}} + this.{{name}} = {{defaultValue}}; +{{/defaultValue}}{{/isDiscriminator}}{{/readWriteVars}} + {{/discriminator.isEnum}} {{^discriminator.isEnum}} this.{{{discriminatorName}}} = this.getClass().getSimpleName(); {{/discriminator.isEnum}} @@ -106,7 +112,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; return this; } @@ -153,17 +159,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#useBeanValidation}} {{>beanValidation}} {{/useBeanValidation}} @@ -183,7 +179,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} {{/vendorExtensions.x-setter-extra-annotation}}{{#deprecated}} @Deprecated -{{/deprecated}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/deprecated}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; } {{/isReadOnly}} diff --git a/sdks/java-v2/templates/libraries/okhttp-gson/pom.mustache b/sdks/java-v2/templates/libraries/okhttp-gson/pom.mustache index def53f2fc..5e7bd9b86 100644 --- a/sdks/java-v2/templates/libraries/okhttp-gson/pom.mustache +++ b/sdks/java-v2/templates/libraries/okhttp-gson/pom.mustache @@ -414,7 +414,7 @@ {{/swagger2AnnotationLibrary}} 4.12.02.10.1 - 3.14.0 + 3.17.0 {{#openApiNullable}} 0.2.6 {{/openApiNullable}} @@ -423,16 +423,15 @@ {{/joda}} {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} {{#performBeanValidation}} 3.0.3 {{/performBeanValidation}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} 5.10.31.10.02.1.6 diff --git a/sdks/java-v2/templates/libraries/rest-assured/JacksonObjectMapper.mustache b/sdks/java-v2/templates/libraries/rest-assured/JacksonObjectMapper.mustache index 8919eda30..3d875d66b 100644 --- a/sdks/java-v2/templates/libraries/rest-assured/JacksonObjectMapper.mustache +++ b/sdks/java-v2/templates/libraries/rest-assured/JacksonObjectMapper.mustache @@ -27,7 +27,7 @@ public class JacksonObjectMapper extends Jackson2Mapper { ObjectMapper mapper = new ObjectMapper(); mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}); mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); diff --git a/sdks/java-v2/templates/libraries/rest-assured/api.mustache b/sdks/java-v2/templates/libraries/rest-assured/api.mustache index 5ae6e5057..1eae54272 100644 --- a/sdks/java-v2/templates/libraries/rest-assured/api.mustache +++ b/sdks/java-v2/templates/libraries/rest-assured/api.mustache @@ -33,8 +33,8 @@ import io.swagger.v3.oas.annotations.security.*; {{/swagger2AnnotationLibrary}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import java.lang.reflect.Type; @@ -146,7 +146,7 @@ public class {{classname}} { public static class {{operationIdCamelCase}}Oper implements Oper { public static final Method REQ_METHOD = {{httpMethod}}; - public static final String REQ_URI = "{{path}}"; + public static final String REQ_URI = "{{{path}}}"; private RequestSpecBuilder reqSpec; private ResponseSpecBuilder respSpec; @@ -155,15 +155,15 @@ public class {{classname}} { this.reqSpec = reqSpec; {{#vendorExtensions}} {{#x-content-type}} - reqSpec.setContentType("{{x-content-type}}"); + reqSpec.setContentType("{{{x-content-type}}}"); {{/x-content-type}} - reqSpec.setAccept("{{#x-accepts}}{{.}}{{^-last}},{{/-last}}{{/x-accepts}}"); + reqSpec.setAccept("{{#x-accepts}}{{{.}}}{{^-last}},{{/-last}}{{/x-accepts}}"); {{/vendorExtensions}} this.respSpec = new ResponseSpecBuilder(); } /** - * {{httpMethod}} {{path}} + * {{httpMethod}} {{{path}}} * @param handler handler * @param type * @return type @@ -175,7 +175,7 @@ public class {{classname}} { {{#returnType}} /** - * {{httpMethod}} {{path}} + * {{httpMethod}} {{{path}}} * @param handler handler * @return {{returnType}} */ diff --git a/sdks/java-v2/templates/libraries/rest-assured/api_test.mustache b/sdks/java-v2/templates/libraries/rest-assured/api_test.mustache index d7d9dae2b..adcbd8085 100644 --- a/sdks/java-v2/templates/libraries/rest-assured/api_test.mustache +++ b/sdks/java-v2/templates/libraries/rest-assured/api_test.mustache @@ -20,8 +20,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import static io.restassured.config.ObjectMapperConfig.objectMapperConfig; diff --git a/sdks/java-v2/templates/libraries/rest-assured/pom.mustache b/sdks/java-v2/templates/libraries/rest-assured/pom.mustache index 396dd69c2..1655d52c2 100644 --- a/sdks/java-v2/templates/libraries/rest-assured/pom.mustache +++ b/sdks/java-v2/templates/libraries/rest-assured/pom.mustache @@ -358,13 +358,12 @@ {{/jackson}} {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} 3.6.0 5.10.3 diff --git a/sdks/java-v2/templates/libraries/restclient/ApiClient.mustache b/sdks/java-v2/templates/libraries/restclient/ApiClient.mustache index 14b1af4af..e5a4bd8fc 100644 --- a/sdks/java-v2/templates/libraries/restclient/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/restclient/ApiClient.mustache @@ -44,6 +44,7 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.TimeZone; +import java.util.function.Supplier; import {{javaxPackage}}.annotation.Nullable; @@ -87,29 +88,26 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { public ApiClient() { - this.dateFormat = createDefaultDateFormat(); - this.objectMapper = createDefaultObjectMapper(this.dateFormat); - this.restClient = buildRestClient(this.objectMapper); - this.init(); + this(null); } public ApiClient(RestClient restClient) { - this(Optional.ofNullable(restClient).orElseGet(ApiClient::buildRestClient), createDefaultDateFormat()); + this(restClient, createDefaultDateFormat()); } public ApiClient(ObjectMapper mapper, DateFormat format) { - this(buildRestClient(mapper.copy()), format); + this(null, mapper, format); } public ApiClient(RestClient restClient, ObjectMapper mapper, DateFormat format) { - this(Optional.ofNullable(restClient).orElseGet(() -> buildRestClient(mapper.copy())), format); + this.objectMapper = mapper.copy(); + this.restClient = Optional.ofNullable(restClient).orElseGet(() -> buildRestClient(this.objectMapper)); + this.dateFormat = format; + this.init(); } private ApiClient(RestClient restClient, DateFormat format) { - this.restClient = restClient; - this.dateFormat = format; - this.objectMapper = createDefaultObjectMapper(format); - this.init(); + this(restClient, createDefaultObjectMapper(format), format); } public static DateFormat createDefaultDateFormat() { @@ -125,7 +123,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { ObjectMapper mapper = new ObjectMapper(); mapper.setDateFormat(dateFormat); mapper.registerModule(new JavaTimeModule()); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}); {{#openApiNullable}} JsonNullableModule jnm = new JsonNullableModule(); mapper.registerModule(jnm); @@ -159,9 +157,9 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { {{/withXml}} Consumer>> messageConverters = converters -> { - converters.add(new MappingJackson2HttpMessageConverter(mapper)); + converters.add(0, new MappingJackson2HttpMessageConverter(mapper)); {{#withXml}} - converters.add(new MappingJackson2XmlHttpMessageConverter(xmlMapper)); + converters.add(0, new MappingJackson2XmlHttpMessageConverter(xmlMapper)); {{/withXml}} }; @@ -243,6 +241,21 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { throw new RuntimeException("No Bearer authentication configured!"); } + /** + * Helper method to set the supplier of access tokens for Bearer authentication. + * + * @param tokenSupplier the token supplier function + */ + public void setBearerToken(Supplier tokenSupplier) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBearerAuth) { + ((HttpBearerAuth) auth).setBearerToken(tokenSupplier); + return; + } + } + throw new RuntimeException("No Bearer authentication configured!"); + } + /** * Helper method to set username for the first HTTP basic authentication. * @param username the username @@ -753,4 +766,4 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { return collectionFormat.collectionToString(values); } -} \ No newline at end of file +} diff --git a/sdks/java-v2/templates/libraries/restclient/api.mustache b/sdks/java-v2/templates/libraries/restclient/api.mustache index 1475fc0f4..0fff00ec8 100644 --- a/sdks/java-v2/templates/libraries/restclient/api.mustache +++ b/sdks/java-v2/templates/libraries/restclient/api.mustache @@ -11,6 +11,11 @@ import java.util.Locale; import java.util.Map; import java.util.stream.Collectors; +{{#useBeanValidation}} +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; + +{{/useBeanValidation}} import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; @@ -47,6 +52,91 @@ public class {{classname}} { } {{#operation}} +{{#singleRequestParameter}} +{{#hasParams}} +{{^hasSingleParam}} + + {{^staticRequest}} + public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){} + {{/staticRequest}} + {{#staticRequest}} + public static class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { + {{#allParams}} + private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}; + {{/allParams}} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { + {{#allParams}} + this.{{paramName}} = {{paramName}}; + {{/allParams}} + } + + {{#allParams}} + public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() { + return this.{{paramName}}; + } + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}) { + this.{{paramName}} = {{paramName}}; + return this; + } + + {{/allParams}} + } + {{/staticRequest}} + + /** + * {{summary}} + * {{notes}} +{{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} +{{/responses}} * @param requestParameters The {{operationId}} request parameters as object +{{#returnType}} * @return {{.}} +{{/returnType}} * @throws RestClientResponseException if an error occurs while attempting to invoke the API +{{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation +{{/externalDocs}} + */ + public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { + {{#returnType}}return {{/returnType}}this.{{operationId}}({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } + + /** + * {{summary}} + * {{notes}} +{{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} +{{/responses}} * @param requestParameters The {{operationId}} request parameters as object +{{#returnType}} * @return ResponseEntity<{{.}}> +{{/returnType}} * @throws RestClientResponseException if an error occurs while attempting to invoke the API +{{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation +{{/externalDocs}} + */ + public {{#returnType}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { + return this.{{operationId}}WithHttpInfo({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } + + /** + * {{summary}} + * {{notes}} +{{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} +{{/responses}} * @param requestParameters The {{operationId}} request parameters as object + * @return ResponseSpec + * @throws RestClientResponseException if an error occurs while attempting to invoke the API +{{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation +{{/externalDocs}} + */ + public ResponseSpec {{operationId}}WithResponseSpec({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws RestClientResponseException { + return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } + +{{/hasSingleParam}} +{{/hasParams}} +{{/singleRequestParameter}} /** * {{summary}} * {{notes}} diff --git a/sdks/java-v2/templates/libraries/restclient/api_test.mustache b/sdks/java-v2/templates/libraries/restclient/api_test.mustache index dc3408341..e54a4ccc2 100644 --- a/sdks/java-v2/templates/libraries/restclient/api_test.mustache +++ b/sdks/java-v2/templates/libraries/restclient/api_test.mustache @@ -4,8 +4,8 @@ package {{package}}; {{#imports}}import {{import}}; {{/imports}} -import org.junit.Test; -import org.junit.Ignore; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; @@ -13,10 +13,15 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; +{{#useBeanValidation}} +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; + +{{/useBeanValidation}} /** * API tests for {{classname}} */ -@Ignore +@Disabled public class {{classname}}Test { private final {{classname}} api = new {{classname}}(); diff --git a/sdks/java-v2/templates/libraries/restclient/auth/OAuth.mustache b/sdks/java-v2/templates/libraries/restclient/auth/OAuth.mustache index 1e1e6247c..1b7ad33a3 100644 --- a/sdks/java-v2/templates/libraries/restclient/auth/OAuth.mustache +++ b/sdks/java-v2/templates/libraries/restclient/auth/OAuth.mustache @@ -2,25 +2,49 @@ package {{invokerPackage}}.auth; +import java.util.Optional; +import java.util.function.Supplier; import org.springframework.http.HttpHeaders; import org.springframework.util.MultiValueMap; +/** + * Provides support for RFC 6750 - Bearer Token usage for OAUTH 2.0 Authorization. + */ {{>generatedAnnotation}} public class OAuth implements Authentication { - private String accessToken; + private Supplier tokenSupplier; + /** + * Returns the bearer token used for Authorization. + * + * @return The bearer token + */ public String getAccessToken() { - return accessToken; + return tokenSupplier.get(); } + /** + * Sets the bearer access token used for Authorization. + * + * @param accessToken The bearer token to send in the Authorization header + */ public void setAccessToken(String accessToken) { - this.accessToken = accessToken; + setAccessToken(() -> accessToken); + } + + /** + * Sets the supplier of bearer tokens used for Authorization. + * + * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header + */ + public void setAccessToken(Supplier tokenSupplier) { + this.tokenSupplier = tokenSupplier; } @Override public void applyToParams(MultiValueMap queryParams, HttpHeaders headerParams, MultiValueMap cookieParams) { - if (accessToken != null) { - headerParams.add(HttpHeaders.AUTHORIZATION, "Bearer " + accessToken); - } + Optional.ofNullable(tokenSupplier).map(Supplier::get).ifPresent(accessToken -> + headerParams.add(HttpHeaders.AUTHORIZATION, "Bearer " + accessToken) + ); } } diff --git a/sdks/java-v2/templates/libraries/restclient/pom.mustache b/sdks/java-v2/templates/libraries/restclient/pom.mustache index d3f6ab650..f926d47b4 100644 --- a/sdks/java-v2/templates/libraries/restclient/pom.mustache +++ b/sdks/java-v2/templates/libraries/restclient/pom.mustache @@ -73,7 +73,7 @@ -Xms512m -Xmx1500m methods - pertest + false true @@ -337,12 +337,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -362,13 +356,10 @@ {{#joda}} 2.9.9 {{/joda}} - {{#useBeanValidation}} 3.0.2 - {{/useBeanValidation}} {{#performBeanValidation}} 5.4.3.Final {{/performBeanValidation}} 5.10.2 - 1.10.0 diff --git a/sdks/java-v2/templates/libraries/resteasy/JSON.mustache b/sdks/java-v2/templates/libraries/resteasy/JSON.mustache index b57283048..e4097fc85 100644 --- a/sdks/java-v2/templates/libraries/resteasy/JSON.mustache +++ b/sdks/java-v2/templates/libraries/resteasy/JSON.mustache @@ -20,7 +20,7 @@ public class JSON implements ContextResolver { public JSON() { mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}); mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); diff --git a/sdks/java-v2/templates/libraries/resttemplate/additional_properties.mustache b/sdks/java-v2/templates/libraries/resttemplate/additional_properties.mustache new file mode 100644 index 000000000..8e7182792 --- /dev/null +++ b/sdks/java-v2/templates/libraries/resttemplate/additional_properties.mustache @@ -0,0 +1,45 @@ +{{#additionalPropertiesType}} + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public {{classname}} putAdditionalProperty(String key, {{{.}}} value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public {{{.}}} getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } +{{/additionalPropertiesType}} diff --git a/sdks/java-v2/templates/libraries/resttemplate/api.mustache b/sdks/java-v2/templates/libraries/resttemplate/api.mustache index aa1a98fd3..6cf513730 100644 --- a/sdks/java-v2/templates/libraries/resttemplate/api.mustache +++ b/sdks/java-v2/templates/libraries/resttemplate/api.mustache @@ -14,8 +14,8 @@ import java.util.Map; import java.util.stream.Collectors; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import org.springframework.beans.factory.annotation.Autowired; diff --git a/sdks/java-v2/templates/libraries/resttemplate/api_test.mustache b/sdks/java-v2/templates/libraries/resttemplate/api_test.mustache index 04a19f1f1..e1a213c02 100644 --- a/sdks/java-v2/templates/libraries/resttemplate/api_test.mustache +++ b/sdks/java-v2/templates/libraries/resttemplate/api_test.mustache @@ -16,8 +16,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/resttemplate/auth/OAuth.mustache b/sdks/java-v2/templates/libraries/resttemplate/auth/OAuth.mustache index 1e8204285..1b7ad33a3 100644 --- a/sdks/java-v2/templates/libraries/resttemplate/auth/OAuth.mustache +++ b/sdks/java-v2/templates/libraries/resttemplate/auth/OAuth.mustache @@ -26,7 +26,7 @@ public class OAuth implements Authentication { /** * Sets the bearer access token used for Authorization. * - * @param bearerToken The bearer token to send in the Authorization header + * @param accessToken The bearer token to send in the Authorization header */ public void setAccessToken(String accessToken) { setAccessToken(() -> accessToken); diff --git a/sdks/java-v2/templates/libraries/resttemplate/build.gradle.mustache b/sdks/java-v2/templates/libraries/resttemplate/build.gradle.mustache index a900fc806..edd170cd3 100644 --- a/sdks/java-v2/templates/libraries/resttemplate/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/resttemplate/build.gradle.mustache @@ -123,10 +123,12 @@ ext { {{#useJakartaEe}} spring_web_version = "6.1.5" jakarta_annotation_version = "2.1.1" + beanvalidation_version = "3.0.2" {{/useJakartaEe}} {{^useJakartaEe}} - spring_web_version = "5.3.33" + spring_web_version = "6.1.13" jakarta_annotation_version = "1.3.5" + beanvalidation_version = "2.0.2" {{/useJakartaEe}} jodatime_version = "2.9.9" junit_version = "5.10.2" @@ -145,7 +147,12 @@ dependencies { implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version" implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" + {{^useJakartaEe}} implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version" + {{/useJakartaEe}} + {{#useJakartaEe}} + implementation "com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:$jackson_version" + {{/useJakartaEe}} {{#openApiNullable}} implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" {{/openApiNullable}} diff --git a/sdks/java-v2/templates/libraries/resttemplate/model.mustache b/sdks/java-v2/templates/libraries/resttemplate/model.mustache new file mode 100644 index 000000000..108748f60 --- /dev/null +++ b/sdks/java-v2/templates/libraries/resttemplate/model.mustache @@ -0,0 +1,78 @@ +{{>licenseInfo}} + +package {{package}}; + +{{#useReflectionEqualsHashCode}} +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +{{/useReflectionEqualsHashCode}} +{{#models}} +{{#model}} +{{#additionalPropertiesType}} +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +{{/additionalPropertiesType}} +{{/model}} +{{/models}} +import java.util.Objects; +import java.util.Arrays; +{{#imports}} +import {{import}}; +{{/imports}} +{{#serializableModel}} +import java.io.Serializable; +{{/serializableModel}} +{{#jackson}} +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +{{#withXml}} +import com.fasterxml.jackson.dataformat.xml.annotation.*; +{{/withXml}} +{{#vendorExtensions.x-has-readonly-properties}} +import com.fasterxml.jackson.annotation.JsonCreator; +{{/vendorExtensions.x-has-readonly-properties}} +{{/jackson}} +{{#withXml}} +import {{javaxPackage}}.xml.bind.annotation.*; +import {{javaxPackage}}.xml.bind.annotation.adapters.*; +import io.github.threetenjaxb.core.*; +{{/withXml}} +{{#jsonb}} +import java.lang.reflect.Type; +import {{javaxPackage}}.json.bind.annotation.JsonbTypeDeserializer; +import {{javaxPackage}}.json.bind.annotation.JsonbTypeSerializer; +import {{javaxPackage}}.json.bind.serializer.DeserializationContext; +import {{javaxPackage}}.json.bind.serializer.JsonbDeserializer; +import {{javaxPackage}}.json.bind.serializer.JsonbSerializer; +import {{javaxPackage}}.json.bind.serializer.SerializationContext; +import {{javaxPackage}}.json.stream.JsonGenerator; +import {{javaxPackage}}.json.stream.JsonParser; +import {{javaxPackage}}.json.bind.annotation.JsonbProperty; +{{#vendorExtensions.x-has-readonly-properties}} +import {{javaxPackage}}.json.bind.annotation.JsonbCreator; +{{/vendorExtensions.x-has-readonly-properties}} +{{/jsonb}} +{{#parcelableModel}} +import android.os.Parcelable; +import android.os.Parcel; +{{/parcelableModel}} +{{#useBeanValidation}} +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; +{{/useBeanValidation}} +{{#performBeanValidation}} +import org.hibernate.validator.constraints.*; +{{/performBeanValidation}} +{{#supportUrlQuery}} +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; +{{/supportUrlQuery}} + +{{#models}} +{{#model}} +{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{#vendorExtensions.x-is-one-of-interface}}{{>oneof_interface}}{{/vendorExtensions.x-is-one-of-interface}}{{^vendorExtensions.x-is-one-of-interface}}{{>pojo}}{{/vendorExtensions.x-is-one-of-interface}}{{/isEnum}} +{{/model}} +{{/models}} diff --git a/sdks/java-v2/templates/libraries/resttemplate/pojo.mustache b/sdks/java-v2/templates/libraries/resttemplate/pojo.mustache new file mode 100644 index 000000000..192b7014c --- /dev/null +++ b/sdks/java-v2/templates/libraries/resttemplate/pojo.mustache @@ -0,0 +1,620 @@ +/** + * {{description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}} + * @deprecated{{/isDeprecated}} + */{{#isDeprecated}} +@Deprecated{{/isDeprecated}} +{{#swagger1AnnotationLibrary}} +{{#description}} +@ApiModel(description = "{{{.}}}") +{{/description}} +{{/swagger1AnnotationLibrary}} +{{#swagger2AnnotationLibrary}} +{{#description}} +@Schema(description = "{{{.}}}") +{{/description}} +{{/swagger2AnnotationLibrary}} +{{#jackson}} +@JsonPropertyOrder({ +{{#vars}} + {{classname}}.JSON_PROPERTY_{{nameInSnakeCase}}{{^-last}},{{/-last}} +{{/vars}} +}) +{{#isClassnameSanitized}} +{{^hasDiscriminatorWithNonEmptyMapping}} +@JsonTypeName("{{name}}") +{{/hasDiscriminatorWithNonEmptyMapping}} +{{/isClassnameSanitized}} +{{/jackson}} +{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{#vendorExtensions.x-class-extra-annotation}} +{{{vendorExtensions.x-class-extra-annotation}}} +{{/vendorExtensions.x-class-extra-annotation}} +public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtensions.x-implements}}{{#-first}}implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{#-last}} {{/-last}}{{/vendorExtensions.x-implements}}{ +{{#serializableModel}} + private static final long serialVersionUID = 1L; + +{{/serializableModel}} + {{#vars}} + {{#isEnum}} + {{^isContainer}} +{{>modelInnerEnum}} + {{/isContainer}} + {{#isContainer}} + {{#mostInnerItems}} +{{>modelInnerEnum}} + {{/mostInnerItems}} + {{/isContainer}} + {{/isEnum}} + {{#gson}} + public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; + {{/gson}} + {{#jackson}} + public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}"; + {{/jackson}} + {{#withXml}} + @Xml{{#isXmlAttribute}}Attribute{{/isXmlAttribute}}{{^isXmlAttribute}}Element{{/isXmlAttribute}}(name = "{{items.xmlName}}{{^items.xmlName}}{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}{{/items.xmlName}}"{{#xmlNamespace}}, namespace = "{{.}}"{{/xmlNamespace}}) + {{#isXmlWrapped}} + @XmlElementWrapper(name = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}"{{#xmlNamespace}}, namespace = "{{.}}"{{/xmlNamespace}}) + {{/isXmlWrapped}} + {{^isXmlAttribute}} + {{#isDateTime}} + @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) + {{/isDateTime}} + {{/isXmlAttribute}} + {{/withXml}} + {{#gson}} + @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) + {{/gson}} + {{>nullable_var_annotations}} + {{#vendorExtensions.x-field-extra-annotation}} + {{{vendorExtensions.x-field-extra-annotation}}} + {{/vendorExtensions.x-field-extra-annotation}} + {{#vendorExtensions.x-is-jackson-optional-nullable}} + {{#isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(); + {{/isContainer}} + {{^isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; + {{/isContainer}} + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{#isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; + {{/isContainer}} + {{^isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; + {{/isContainer}} + {{/vendorExtensions.x-is-jackson-optional-nullable}} + + {{/vars}} + public {{classname}}() { + {{#parent}} + {{#parcelableModel}} + super();{{/parcelableModel}} + {{/parent}} + {{#gson}} + {{#discriminator}} + {{#discriminator.isEnum}} + this.{{{discriminatorName}}} = this.getClass().getSimpleName(); + {{/discriminator.isEnum}} + {{/discriminator}} + {{/gson}} + } + {{#vendorExtensions.x-has-readonly-properties}} + {{^withXml}} + /** + * Constructor with only readonly parameters{{#generateConstructorWithAllArgs}}{{^vendorExtensions.x-java-all-args-constructor}} and all parameters{{/vendorExtensions.x-java-all-args-constructor}}{{/generateConstructorWithAllArgs}} + */ + {{#jsonb}}@JsonbCreator{{/jsonb}}{{#jackson}}@JsonCreator{{/jackson}} + public {{classname}}( + {{#readOnlyVars}} + {{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}} + {{/readOnlyVars}} + ) { + this(); + {{#readOnlyVars}} + this.{{name}} = {{#vendorExtensions.x-is-jackson-optional-nullable}}{{name}} == null ? JsonNullable.<{{{datatypeWithEnum}}}>undefined() : JsonNullable.of({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{name}}{{/vendorExtensions.x-is-jackson-optional-nullable}}; + {{/readOnlyVars}} + } + {{/withXml}} + {{/vendorExtensions.x-has-readonly-properties}} +{{#vendorExtensions.x-java-all-args-constructor}} + + /** + * Constructor with all args parameters + */ + public {{classname}}({{#vendorExtensions.x-java-all-args-constructor-vars}}{{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) { +{{#parent}} + super({{#parentVars}}{{name}}{{^-last}}, {{/-last}}{{/parentVars}}); +{{/parent}} + {{#vars}} + this.{{name}} = {{#vendorExtensions.x-is-jackson-optional-nullable}}{{name}} == null ? JsonNullable.<{{{datatypeWithEnum}}}>undefined() : JsonNullable.of({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{name}}{{/vendorExtensions.x-is-jackson-optional-nullable}}; +{{/vars}} + } +{{/vendorExtensions.x-java-all-args-constructor}} + +{{#vars}} + {{^isReadOnly}} + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}} + return this; + } + {{#isArray}} + + public {{classname}} add{{nameInPascalCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + if (this.{{name}} == null || !this.{{name}}.isPresent()) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}}{{^defaultValue}}new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>(){{/defaultValue}}); + } + try { + this.{{name}}.get().add({{name}}Item); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + if (this.{{name}} == null) { + this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>(){{/defaultValue}}; + } + this.{{name}}.add({{name}}Item); + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + {{/isArray}} + {{#isMap}} + + public {{classname}} put{{nameInPascalCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + if (this.{{name}} == null || !this.{{name}}.isPresent()) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}}); + } + try { + this.{{name}}.get().put(key, {{name}}Item); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{^required}} + if (this.{{name}} == null) { + this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}}; + } + {{/required}} + this.{{name}}.put(key, {{name}}Item); + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + {{/isMap}} + + {{/isReadOnly}} + /** + {{#description}} + * {{.}} + {{/description}} + {{^description}} + * Get {{name}} + {{/description}} + {{#minimum}} + * minimum: {{.}} + {{/minimum}} + {{#maximum}} + * maximum: {{.}} + {{/maximum}} + * @return {{name}} + {{#deprecated}} + * @deprecated + {{/deprecated}} + */ +{{#deprecated}} + @Deprecated +{{/deprecated}} + {{>nullable_var_annotations}} +{{#jsonb}} + @JsonbProperty("{{baseName}}") +{{/jsonb}} +{{#useBeanValidation}} +{{>beanValidation}} +{{/useBeanValidation}} +{{#swagger1AnnotationLibrary}} + @ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") +{{/swagger1AnnotationLibrary}} +{{#swagger2AnnotationLibrary}} + @Schema({{#example}}example = "{{{.}}}", {{/example}}requiredMode = {{#required}}Schema.RequiredMode.REQUIRED{{/required}}{{^required}}Schema.RequiredMode.NOT_REQUIRED{{/required}}, description = "{{{description}}}") +{{/swagger2AnnotationLibrary}} +{{#vendorExtensions.x-extra-annotation}} + {{{vendorExtensions.x-extra-annotation}}} +{{/vendorExtensions.x-extra-annotation}} +{{#vendorExtensions.x-is-jackson-optional-nullable}} + {{!unannotated, Jackson would pick this up automatically and add it *in addition* to the _JsonNullable getter field}} + @JsonIgnore +{{/vendorExtensions.x-is-jackson-optional-nullable}} +{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#jackson}}{{> jackson_annotations}}{{/jackson}}{{/vendorExtensions.x-is-jackson-optional-nullable}} + public {{{datatypeWithEnum}}} {{getter}}() { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + {{#isReadOnly}}{{! A readonly attribute doesn't have setter => jackson will set null directly if explicitly returned by API, so make sure we have an empty JsonNullable}} + if ({{name}} == null) { + {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; + } + {{/isReadOnly}} + return {{name}}.orElse(null); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + return {{name}}; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + + {{#vendorExtensions.x-is-jackson-optional-nullable}} +{{> jackson_annotations}} + public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() { + return {{name}}; + } + {{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-is-jackson-optional-nullable}} + @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + {{#isReadOnly}}private{{/isReadOnly}}{{^isReadOnly}}public{{/isReadOnly}} void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + {{! For getters/setters that have name differing from attribute name, we must include setter (albeit private) for jackson to be able to set the attribute}} + this.{{name}} = {{name}}; + } + {{/vendorExtensions.x-is-jackson-optional-nullable}} + + {{^isReadOnly}} +{{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + this.{{name}} = {{name}}; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + {{/isReadOnly}} + + {{/vars}} +{{>libraries/resttemplate/additional_properties}} + {{#parent}} + {{#readWriteVars}} + {{#isOverridden}} + @Override + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}})); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + this.{{setter}}({{name}}); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + return this; + } + + {{/isOverridden}} + {{/readWriteVars}} + {{/parent}} + @Override + public boolean equals(Object o) { + {{#useReflectionEqualsHashCode}} + return EqualsBuilder.reflectionEquals(this, o, false, null, true); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + }{{#hasVars}} + {{classname}} {{classVarName}} = ({{classname}}) o; + return {{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && + {{/-last}}{{/vars}}{{#additionalPropertiesType}} && + Objects.equals(this.additionalProperties, {{classVarName}}.additionalProperties){{/additionalPropertiesType}}{{#parent}} && + super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}} + return {{#parent}}super.equals(o){{/parent}}{{^parent}}true{{/parent}};{{/hasVars}} + {{/useReflectionEqualsHashCode}} + }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + + @Override + public int hashCode() { + {{#useReflectionEqualsHashCode}} + return HashCodeBuilder.reflectionHashCode(this); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + return Objects.hash({{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}{{#additionalPropertiesType}}, additionalProperties{{/additionalPropertiesType}}); + {{/useReflectionEqualsHashCode}} + }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class {{classname}} {\n"); + {{#parent}} + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + {{/parent}} + {{#vars}} + sb.append(" {{name}}: ").append({{#isPassword}}"*"{{/isPassword}}{{^isPassword}}toIndentedString({{name}}){{/isPassword}}).append("\n"); + {{/vars}} + {{#additionalPropertiesType}} + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + {{/additionalPropertiesType}} + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +{{#supportUrlQuery}} + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + {{#allVars}} + // add `{{baseName}}` to the URL query string + {{#isArray}} + {{#items.isPrimitiveType}} + {{#uniqueItems}} + if ({{getter}}() != null) { + int i = 0; + for ({{{items.datatypeWithEnum}}} _item : {{getter}}()) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(_item), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + i++; + } + {{/uniqueItems}} + {{^uniqueItems}} + if ({{getter}}() != null) { + for (int i = 0; i < {{getter}}().size(); i++) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf({{getter}}().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + {{/uniqueItems}} + {{/items.isPrimitiveType}} + {{^items.isPrimitiveType}} + {{#items.isModel}} + {{#uniqueItems}} + if ({{getter}}() != null) { + int i = 0; + for ({{{items.dataType}}} _item : {{getter}}()) { + if (_item != null) { + joiner.add(_item.toUrlQueryString(String.format("%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + i++; + } + {{/uniqueItems}} + {{^uniqueItems}} + if ({{getter}}() != null) { + for (int i = 0; i < {{getter}}().size(); i++) { + if ({{getter}}().get(i) != null) { + joiner.add({{getter}}().get(i).toUrlQueryString(String.format("%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + {{/uniqueItems}} + {{/items.isModel}} + {{^items.isModel}} + {{#uniqueItems}} + if ({{getter}}() != null) { + int i = 0; + for ({{{items.dataType}}} _item : {{getter}}()) { + if (_item != null) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(_item), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + i++; + } + } + {{/uniqueItems}} + {{^uniqueItems}} + if ({{getter}}() != null) { + for (int i = 0; i < {{getter}}().size(); i++) { + if ({{getter}}().get(i) != null) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf({{getter}}().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + } + {{/uniqueItems}} + {{/items.isModel}} + {{/items.isPrimitiveType}} + {{/isArray}} + {{^isArray}} + {{#isMap}} + {{^items.isModel}} + if ({{getter}}() != null) { + for (String _key : {{getter}}().keySet()) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + {{getter}}().get(_key), URLEncoder.encode(String.valueOf({{getter}}().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + {{/items.isModel}} + {{#items.isModel}} + if ({{getter}}() != null) { + for (String _key : {{getter}}().keySet()) { + if ({{getter}}().get(_key) != null) { + joiner.add({{getter}}().get(_key).toUrlQueryString(String.format("%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix)))); + } + } + } + {{/items.isModel}} + {{/isMap}} + {{^isMap}} + {{#isPrimitiveType}} + if ({{getter}}() != null) { + try { + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf({{{getter}}}()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isModel}} + if ({{getter}}() != null) { + joiner.add({{getter}}().toUrlQueryString(prefix + "{{{baseName}}}" + suffix)); + } + {{/isModel}} + {{^isModel}} + if ({{getter}}() != null) { + try { + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf({{{getter}}}()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + {{/isModel}} + {{/isPrimitiveType}} + {{/isMap}} + {{/isArray}} + + {{/allVars}} + return joiner.toString(); + } +{{/supportUrlQuery}} +{{#parcelableModel}} + + public void writeToParcel(Parcel out, int flags) { +{{#model}} +{{#isArray}} + out.writeList(this); +{{/isArray}} +{{^isArray}} +{{#parent}} + super.writeToParcel(out, flags); +{{/parent}} +{{#vars}} + out.writeValue({{name}}); +{{/vars}} +{{/isArray}} +{{/model}} + } + + {{classname}}(Parcel in) { +{{#isArray}} + in.readTypedList(this, {{arrayModelType}}.CREATOR); +{{/isArray}} +{{^isArray}} +{{#parent}} + super(in); +{{/parent}} +{{#vars}} +{{#isPrimitiveType}} + {{name}} = ({{{datatypeWithEnum}}})in.readValue(null); +{{/isPrimitiveType}} +{{^isPrimitiveType}} + {{name}} = ({{{datatypeWithEnum}}})in.readValue({{complexType}}.class.getClassLoader()); +{{/isPrimitiveType}} +{{/vars}} +{{/isArray}} + } + + public int describeContents() { + return 0; + } + + public static final Parcelable.Creator<{{classname}}> CREATOR = new Parcelable.Creator<{{classname}}>() { + public {{classname}} createFromParcel(Parcel in) { +{{#model}} +{{#isArray}} + {{classname}} result = new {{classname}}(); + result.addAll(in.readArrayList({{arrayModelType}}.class.getClassLoader())); + return result; +{{/isArray}} +{{^isArray}} + return new {{classname}}(in); +{{/isArray}} +{{/model}} + } + public {{classname}}[] newArray(int size) { + return new {{classname}}[size]; + } + }; +{{/parcelableModel}} +{{#generateBuilders}} + + {{>javaBuilder}} +{{/generateBuilders}} + +} diff --git a/sdks/java-v2/templates/libraries/resttemplate/pom.mustache b/sdks/java-v2/templates/libraries/resttemplate/pom.mustache index 250417d78..90de86cba 100644 --- a/sdks/java-v2/templates/libraries/resttemplate/pom.mustache +++ b/sdks/java-v2/templates/libraries/resttemplate/pom.mustache @@ -73,7 +73,7 @@ -Xms512m -Xmx1500m methods - pertest + false true @@ -352,12 +352,6 @@ ${junit-version} test - - org.junit.platform - junit-platform-runner - ${junit-platform-runner.version} - test - UTF-8 @@ -367,33 +361,27 @@ {{#swagger2AnnotationLibrary}} 2.2.15 {{/swagger2AnnotationLibrary}} - {{#useJakartaEe}} - 6.1.5 - {{/useJakartaEe}} - {{^useJakartaEe}} - 5.3.33 - {{/useJakartaEe}} 2.17.1 2.17.1 {{#openApiNullable}} 0.2.6 {{/openApiNullable}} {{#useJakartaEe}} + 6.1.14 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} + 5.3.33 1.3.5 + 2.0.2 {{/useJakartaEe}} {{#joda}} 2.9.9 {{/joda}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} {{#performBeanValidation}} 5.4.3.Final {{/performBeanValidation}} 5.10.2 - 1.10.0 diff --git a/sdks/java-v2/templates/libraries/retrofit2/ApiClient.mustache b/sdks/java-v2/templates/libraries/retrofit2/ApiClient.mustache index 077e8d692..c05159d4e 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/ApiClient.mustache @@ -46,7 +46,9 @@ import java.io.IOException; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.text.DateFormat; +{{#jsr310}} import java.time.format.DateTimeFormatter; +{{/jsr310}} import java.util.LinkedHashMap; import java.util.Map; import java.util.HashMap; diff --git a/sdks/java-v2/templates/libraries/retrofit2/JSON.mustache b/sdks/java-v2/templates/libraries/retrofit2/JSON.mustache index 2ff8b1cb7..2e986485f 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/JSON.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/JSON.mustache @@ -30,9 +30,11 @@ import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; +{{#jsr310}} import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; +{{/jsr310}} import java.util.Date; import java.util.Locale; import java.util.Map; diff --git a/sdks/java-v2/templates/libraries/retrofit2/JSON_jackson.mustache b/sdks/java-v2/templates/libraries/retrofit2/JSON_jackson.mustache index 525fe5d13..697e398e4 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/JSON_jackson.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/JSON_jackson.mustache @@ -32,7 +32,7 @@ public class JSON implements ContextResolver { mapper = JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false) - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true) + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}) .configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) diff --git a/sdks/java-v2/templates/libraries/retrofit2/api.mustache b/sdks/java-v2/templates/libraries/retrofit2/api.mustache index dd521a5fc..0b0105515 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/api.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/api.mustache @@ -35,8 +35,8 @@ import java.util.Map; import java.util.Set; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#operations}} diff --git a/sdks/java-v2/templates/libraries/retrofit2/api_test.mustache b/sdks/java-v2/templates/libraries/retrofit2/api_test.mustache index dab62f328..b84e6b173 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/api_test.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/api_test.mustache @@ -15,8 +15,8 @@ import java.util.List; import java.util.Map; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/retrofit2/play26/api.mustache b/sdks/java-v2/templates/libraries/retrofit2/play26/api.mustache index e78bd985a..7f7b9e2b0 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/play26/api.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/play26/api.mustache @@ -18,8 +18,8 @@ import okhttp3.MultipartBody; {{/imports}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import java.util.ArrayList; diff --git a/sdks/java-v2/templates/libraries/retrofit2/pom.mustache b/sdks/java-v2/templates/libraries/retrofit2/pom.mustache index b02a5fb2e..7f5d6b892 100644 --- a/sdks/java-v2/templates/libraries/retrofit2/pom.mustache +++ b/sdks/java-v2/templates/libraries/retrofit2/pom.mustache @@ -405,13 +405,12 @@ {{/joda}} {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} - {{#useBeanValidation}} - 3.0.2 - {{/useBeanValidation}} 1.0.1 5.10.3 diff --git a/sdks/java-v2/templates/libraries/vertx/ApiClient.mustache b/sdks/java-v2/templates/libraries/vertx/ApiClient.mustache index 6607107ab..1a90c571b 100644 --- a/sdks/java-v2/templates/libraries/vertx/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/vertx/ApiClient.mustache @@ -81,7 +81,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { // Build object mapper this.objectMapper = new ObjectMapper(); this.objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - this.objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + this.objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}); this.objectMapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); this.objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); this.objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); diff --git a/sdks/java-v2/templates/libraries/webclient/ApiClient.mustache b/sdks/java-v2/templates/libraries/webclient/ApiClient.mustache index 9072a8859..ce696128e 100644 --- a/sdks/java-v2/templates/libraries/webclient/ApiClient.mustache +++ b/sdks/java-v2/templates/libraries/webclient/ApiClient.mustache @@ -143,7 +143,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { ObjectMapper mapper = new ObjectMapper(); mapper.setDateFormat(dateFormat); mapper.registerModule(new JavaTimeModule()); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, {{failOnUnknownProperties}}); {{#openApiNullable}} JsonNullableModule jnm = new JsonNullableModule(); mapper.registerModule(jnm); diff --git a/sdks/java-v2/templates/libraries/webclient/additional_properties.mustache b/sdks/java-v2/templates/libraries/webclient/additional_properties.mustache new file mode 100644 index 000000000..8e7182792 --- /dev/null +++ b/sdks/java-v2/templates/libraries/webclient/additional_properties.mustache @@ -0,0 +1,45 @@ +{{#additionalPropertiesType}} + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * @param key the name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public {{classname}} putAdditionalProperty(String key, {{{.}}} value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public {{{.}}} getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } +{{/additionalPropertiesType}} diff --git a/sdks/java-v2/templates/libraries/webclient/api.mustache b/sdks/java-v2/templates/libraries/webclient/api.mustache index 65600dbfc..0a412fb37 100644 --- a/sdks/java-v2/templates/libraries/webclient/api.mustache +++ b/sdks/java-v2/templates/libraries/webclient/api.mustache @@ -12,8 +12,8 @@ import java.util.Map; import java.util.stream.Collectors; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} import org.springframework.beans.factory.annotation.Autowired; @@ -53,7 +53,81 @@ public class {{classname}} { this.apiClient = apiClient; } - {{#operation}} + {{#operation}}{{#singleRequestParameter}}{{#hasParams}}{{^hasSingleParam}} + public {{#staticRequest}}static {{/staticRequest}}class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request { + {{#allParams}} + private {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}; + {{/allParams}} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request() {} + + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) { + {{#allParams}} + this.{{paramName}} = {{paramName}}; + {{/allParams}} + } + + {{#allParams}} + public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() { + return this.{{paramName}}; + } + public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {{paramName}}({{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}) { + this.{{paramName}} = {{paramName}}; + return this; + } + + {{/allParams}} + } + + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + {{#returnType}} * @return {{.}} + {{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public {{#returnType}}{{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Flux<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{^returnType}}{{#vendorExtensions.x-webclient-blocking}}void{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}Mono{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { + {{^returnType}}{{^vendorExtensions.x-webclient-blocking}}return {{/vendorExtensions.x-webclient-blocking}}{{/returnType}}{{#returnType}}return {{/returnType}}this.{{operationId}}({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } + + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + {{#returnType}} * @return ResponseEntity<{{.}}> + {{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}ResponseEntity{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}Mono>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { + return this.{{operationId}}WithHttpInfo({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } + + /** + * {{summary}} + * {{notes}} + {{#responses}} *

{{code}}{{#message}} - {{.}}{{/message}} + {{/responses}} * @param requestParameters The {{operationId}} request parameters as object + * @return ResponseSpec + * @throws WebClientResponseException if an error occurs while attempting to invoke the API + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + public ResponseSpec {{operationId}}WithResponseSpec({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException { + return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}}); + } + + {{/hasSingleParam}}{{/hasParams}}{{/singleRequestParameter}} /** * {{summary}} * {{notes}} diff --git a/sdks/java-v2/templates/libraries/webclient/api_test.mustache b/sdks/java-v2/templates/libraries/webclient/api_test.mustache index c5d568617..e0a960d12 100644 --- a/sdks/java-v2/templates/libraries/webclient/api_test.mustache +++ b/sdks/java-v2/templates/libraries/webclient/api_test.mustache @@ -15,8 +15,8 @@ import java.util.Map; import java.util.stream.Collectors; {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} /** diff --git a/sdks/java-v2/templates/libraries/webclient/build.gradle.mustache b/sdks/java-v2/templates/libraries/webclient/build.gradle.mustache index 597411638..be194ab23 100644 --- a/sdks/java-v2/templates/libraries/webclient/build.gradle.mustache +++ b/sdks/java-v2/templates/libraries/webclient/build.gradle.mustache @@ -133,12 +133,14 @@ ext { {{#useJakartaEe}} spring_boot_version = "3.0.12" jakarta_annotation_version = "2.1.1" + beanvalidation_version = "3.0.2" reactor_version = "3.5.12" reactor_netty_version = "1.1.13" {{/useJakartaEe}} {{^useJakartaEe}} spring_boot_version = "2.7.17" jakarta_annotation_version = "1.3.5" + beanvalidation_version = "2.0.2" reactor_version = "3.4.34" reactor_netty_version = "1.0.39" {{/useJakartaEe}} diff --git a/sdks/java-v2/templates/libraries/webclient/model.mustache b/sdks/java-v2/templates/libraries/webclient/model.mustache new file mode 100644 index 000000000..108748f60 --- /dev/null +++ b/sdks/java-v2/templates/libraries/webclient/model.mustache @@ -0,0 +1,78 @@ +{{>licenseInfo}} + +package {{package}}; + +{{#useReflectionEqualsHashCode}} +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +{{/useReflectionEqualsHashCode}} +{{#models}} +{{#model}} +{{#additionalPropertiesType}} +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +{{/additionalPropertiesType}} +{{/model}} +{{/models}} +import java.util.Objects; +import java.util.Arrays; +{{#imports}} +import {{import}}; +{{/imports}} +{{#serializableModel}} +import java.io.Serializable; +{{/serializableModel}} +{{#jackson}} +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; +{{#withXml}} +import com.fasterxml.jackson.dataformat.xml.annotation.*; +{{/withXml}} +{{#vendorExtensions.x-has-readonly-properties}} +import com.fasterxml.jackson.annotation.JsonCreator; +{{/vendorExtensions.x-has-readonly-properties}} +{{/jackson}} +{{#withXml}} +import {{javaxPackage}}.xml.bind.annotation.*; +import {{javaxPackage}}.xml.bind.annotation.adapters.*; +import io.github.threetenjaxb.core.*; +{{/withXml}} +{{#jsonb}} +import java.lang.reflect.Type; +import {{javaxPackage}}.json.bind.annotation.JsonbTypeDeserializer; +import {{javaxPackage}}.json.bind.annotation.JsonbTypeSerializer; +import {{javaxPackage}}.json.bind.serializer.DeserializationContext; +import {{javaxPackage}}.json.bind.serializer.JsonbDeserializer; +import {{javaxPackage}}.json.bind.serializer.JsonbSerializer; +import {{javaxPackage}}.json.bind.serializer.SerializationContext; +import {{javaxPackage}}.json.stream.JsonGenerator; +import {{javaxPackage}}.json.stream.JsonParser; +import {{javaxPackage}}.json.bind.annotation.JsonbProperty; +{{#vendorExtensions.x-has-readonly-properties}} +import {{javaxPackage}}.json.bind.annotation.JsonbCreator; +{{/vendorExtensions.x-has-readonly-properties}} +{{/jsonb}} +{{#parcelableModel}} +import android.os.Parcelable; +import android.os.Parcel; +{{/parcelableModel}} +{{#useBeanValidation}} +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; +{{/useBeanValidation}} +{{#performBeanValidation}} +import org.hibernate.validator.constraints.*; +{{/performBeanValidation}} +{{#supportUrlQuery}} +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.StringJoiner; +{{/supportUrlQuery}} + +{{#models}} +{{#model}} +{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{#vendorExtensions.x-is-one-of-interface}}{{>oneof_interface}}{{/vendorExtensions.x-is-one-of-interface}}{{^vendorExtensions.x-is-one-of-interface}}{{>pojo}}{{/vendorExtensions.x-is-one-of-interface}}{{/isEnum}} +{{/model}} +{{/models}} diff --git a/sdks/java-v2/templates/libraries/webclient/pojo.mustache b/sdks/java-v2/templates/libraries/webclient/pojo.mustache new file mode 100644 index 000000000..2b9423b77 --- /dev/null +++ b/sdks/java-v2/templates/libraries/webclient/pojo.mustache @@ -0,0 +1,620 @@ +/** + * {{description}}{{^description}}{{classname}}{{/description}}{{#isDeprecated}} + * @deprecated{{/isDeprecated}} + */{{#isDeprecated}} +@Deprecated{{/isDeprecated}} +{{#swagger1AnnotationLibrary}} +{{#description}} +@ApiModel(description = "{{{.}}}") +{{/description}} +{{/swagger1AnnotationLibrary}} +{{#swagger2AnnotationLibrary}} +{{#description}} +@Schema(description = "{{{.}}}") +{{/description}} +{{/swagger2AnnotationLibrary}} +{{#jackson}} +@JsonPropertyOrder({ +{{#vars}} + {{classname}}.JSON_PROPERTY_{{nameInSnakeCase}}{{^-last}},{{/-last}} +{{/vars}} +}) +{{#isClassnameSanitized}} +{{^hasDiscriminatorWithNonEmptyMapping}} +@JsonTypeName("{{name}}") +{{/hasDiscriminatorWithNonEmptyMapping}} +{{/isClassnameSanitized}} +{{/jackson}} +{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} +{{#vendorExtensions.x-class-extra-annotation}} +{{{vendorExtensions.x-class-extra-annotation}}} +{{/vendorExtensions.x-class-extra-annotation}} +public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtensions.x-implements}}{{#-first}}implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{#-last}} {{/-last}}{{/vendorExtensions.x-implements}}{ +{{#serializableModel}} + private static final long serialVersionUID = 1L; + +{{/serializableModel}} + {{#vars}} + {{#isEnum}} + {{^isContainer}} +{{>modelInnerEnum}} + {{/isContainer}} + {{#isContainer}} + {{#mostInnerItems}} +{{>modelInnerEnum}} + {{/mostInnerItems}} + {{/isContainer}} + {{/isEnum}} + {{#gson}} + public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; + {{/gson}} + {{#jackson}} + public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}"; + {{/jackson}} + {{#withXml}} + @Xml{{#isXmlAttribute}}Attribute{{/isXmlAttribute}}{{^isXmlAttribute}}Element{{/isXmlAttribute}}(name = "{{items.xmlName}}{{^items.xmlName}}{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}{{/items.xmlName}}"{{#xmlNamespace}}, namespace = "{{.}}"{{/xmlNamespace}}) + {{#isXmlWrapped}} + @XmlElementWrapper(name = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}"{{#xmlNamespace}}, namespace = "{{.}}"{{/xmlNamespace}}) + {{/isXmlWrapped}} + {{^isXmlAttribute}} + {{#isDateTime}} + @XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class) + {{/isDateTime}} + {{/isXmlAttribute}} + {{/withXml}} + {{#gson}} + @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) + {{/gson}} + {{>nullable_var_annotations}} + {{#vendorExtensions.x-field-extra-annotation}} + {{{vendorExtensions.x-field-extra-annotation}}} + {{/vendorExtensions.x-field-extra-annotation}} + {{#vendorExtensions.x-is-jackson-optional-nullable}} + {{#isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(); + {{/isContainer}} + {{^isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; + {{/isContainer}} + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{#isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; + {{/isContainer}} + {{^isContainer}} + {{#hasChildren}}protected{{/hasChildren}}{{^hasChildren}}private{{/hasChildren}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; + {{/isContainer}} + {{/vendorExtensions.x-is-jackson-optional-nullable}} + + {{/vars}} + public {{classname}}() { + {{#parent}} + {{#parcelableModel}} + super();{{/parcelableModel}} + {{/parent}} + {{#gson}} + {{#discriminator}} + {{#discriminator.isEnum}} + this.{{{discriminatorName}}} = this.getClass().getSimpleName(); + {{/discriminator.isEnum}} + {{/discriminator}} + {{/gson}} + } + {{#vendorExtensions.x-has-readonly-properties}} + {{^withXml}} + /** + * Constructor with only readonly parameters{{#generateConstructorWithAllArgs}}{{^vendorExtensions.x-java-all-args-constructor}} and all parameters{{/vendorExtensions.x-java-all-args-constructor}}{{/generateConstructorWithAllArgs}} + */ + {{#jsonb}}@JsonbCreator{{/jsonb}}{{#jackson}}@JsonCreator{{/jackson}} + public {{classname}}( + {{#readOnlyVars}} + {{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}} + {{/readOnlyVars}} + ) { + this(); + {{#readOnlyVars}} + this.{{name}} = {{#vendorExtensions.x-is-jackson-optional-nullable}}{{name}} == null ? JsonNullable.<{{{datatypeWithEnum}}}>undefined() : JsonNullable.of({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{name}}{{/vendorExtensions.x-is-jackson-optional-nullable}}; + {{/readOnlyVars}} + } + {{/withXml}} + {{/vendorExtensions.x-has-readonly-properties}} +{{#vendorExtensions.x-java-all-args-constructor}} + + /** + * Constructor with all args parameters + */ + public {{classname}}({{#vendorExtensions.x-java-all-args-constructor-vars}}{{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) { +{{#parent}} + super({{#parentVars}}{{name}}{{^-last}}, {{/-last}}{{/parentVars}}); +{{/parent}} + {{#vars}} + this.{{name}} = {{#vendorExtensions.x-is-jackson-optional-nullable}}{{name}} == null ? JsonNullable.<{{{datatypeWithEnum}}}>undefined() : JsonNullable.of({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{name}}{{/vendorExtensions.x-is-jackson-optional-nullable}}; +{{/vars}} + } +{{/vendorExtensions.x-java-all-args-constructor}} + +{{#vars}} + {{^isReadOnly}} + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}} + return this; + } + {{#isArray}} + + public {{classname}} add{{nameInPascalCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + if (this.{{name}} == null || !this.{{name}}.isPresent()) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}}{{^defaultValue}}new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>(){{/defaultValue}}); + } + try { + this.{{name}}.get().add({{name}}Item); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + if (this.{{name}} == null) { + this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>(){{/defaultValue}}; + } + this.{{name}}.add({{name}}Item); + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + {{/isArray}} + {{#isMap}} + + public {{classname}} put{{nameInPascalCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + if (this.{{name}} == null || !this.{{name}}.isPresent()) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}}); + } + try { + this.{{name}}.get().put(key, {{name}}Item); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present + } + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + {{^required}} + if (this.{{name}} == null) { + this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}}; + } + {{/required}} + this.{{name}}.put(key, {{name}}Item); + return this; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + {{/isMap}} + + {{/isReadOnly}} + /** + {{#description}} + * {{.}} + {{/description}} + {{^description}} + * Get {{name}} + {{/description}} + {{#minimum}} + * minimum: {{.}} + {{/minimum}} + {{#maximum}} + * maximum: {{.}} + {{/maximum}} + * @return {{name}} + {{#deprecated}} + * @deprecated + {{/deprecated}} + */ +{{#deprecated}} + @Deprecated +{{/deprecated}} + {{>nullable_var_annotations}} +{{#jsonb}} + @JsonbProperty("{{baseName}}") +{{/jsonb}} +{{#useBeanValidation}} +{{>beanValidation}} +{{/useBeanValidation}} +{{#swagger1AnnotationLibrary}} + @ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}") +{{/swagger1AnnotationLibrary}} +{{#swagger2AnnotationLibrary}} + @Schema({{#example}}example = "{{{.}}}", {{/example}}requiredMode = {{#required}}Schema.RequiredMode.REQUIRED{{/required}}{{^required}}Schema.RequiredMode.NOT_REQUIRED{{/required}}, description = "{{{description}}}") +{{/swagger2AnnotationLibrary}} +{{#vendorExtensions.x-extra-annotation}} + {{{vendorExtensions.x-extra-annotation}}} +{{/vendorExtensions.x-extra-annotation}} +{{#vendorExtensions.x-is-jackson-optional-nullable}} + {{!unannotated, Jackson would pick this up automatically and add it *in addition* to the _JsonNullable getter field}} + @JsonIgnore +{{/vendorExtensions.x-is-jackson-optional-nullable}} +{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#jackson}}{{> jackson_annotations}}{{/jackson}}{{/vendorExtensions.x-is-jackson-optional-nullable}} + public {{{datatypeWithEnum}}} {{getter}}() { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + {{#isReadOnly}}{{! A readonly attribute doesn't have setter => jackson will set null directly if explicitly returned by API, so make sure we have an empty JsonNullable}} + if ({{name}} == null) { + {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}}; + } + {{/isReadOnly}} + return {{name}}.orElse(null); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + return {{name}}; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + + {{#vendorExtensions.x-is-jackson-optional-nullable}} +{{> jackson_annotations}} + public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() { + return {{name}}; + } + {{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-is-jackson-optional-nullable}} + @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + {{#isReadOnly}}private{{/isReadOnly}}{{^isReadOnly}}public{{/isReadOnly}} void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + {{! For getters/setters that have name differing from attribute name, we must include setter (albeit private) for jackson to be able to set the attribute}} + this.{{name}} = {{name}}; + } + {{/vendorExtensions.x-is-jackson-optional-nullable}} + + {{^isReadOnly}} +{{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + this.{{name}} = {{name}}; + {{/vendorExtensions.x-is-jackson-optional-nullable}} + } + {{/isReadOnly}} + + {{/vars}} +{{>libraries/webclient/additional_properties}} + {{#parent}} + {{#readWriteVars}} + {{#isOverridden}} + @Override + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { + {{#vendorExtensions.x-is-jackson-optional-nullable}} + this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}})); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + {{^vendorExtensions.x-is-jackson-optional-nullable}} + this.{{setter}}({{name}}); + {{/vendorExtensions.x-is-jackson-optional-nullable}} + return this; + } + + {{/isOverridden}} + {{/readWriteVars}} + {{/parent}} + @Override + public boolean equals(Object o) { + {{#useReflectionEqualsHashCode}} + return EqualsBuilder.reflectionEquals(this, o, false, null, true); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + }{{#hasVars}} + {{classname}} {{classVarName}} = ({{classname}}) o; + return {{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}equalsNullable(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{name}}, {{classVarName}}.{{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}} && + {{/-last}}{{/vars}}{{#additionalPropertiesType}} && + Objects.equals(this.additionalProperties, {{classVarName}}.additionalProperties){{/additionalPropertiesType}}{{#parent}} && + super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}} + return {{#parent}}super.equals(o){{/parent}}{{^parent}}true{{/parent}};{{/hasVars}} + {{/useReflectionEqualsHashCode}} + }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + + @Override + public int hashCode() { + {{#useReflectionEqualsHashCode}} + return HashCodeBuilder.reflectionHashCode(this); + {{/useReflectionEqualsHashCode}} + {{^useReflectionEqualsHashCode}} + return Objects.hash({{#vars}}{{#vendorExtensions.x-is-jackson-optional-nullable}}hashCodeNullable({{name}}){{/vendorExtensions.x-is-jackson-optional-nullable}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{^-last}}, {{/-last}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}{{#additionalPropertiesType}}, additionalProperties{{/additionalPropertiesType}}); + {{/useReflectionEqualsHashCode}} + }{{#vendorExtensions.x-jackson-optional-nullable-helpers}} + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + }{{/vendorExtensions.x-jackson-optional-nullable-helpers}} + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class {{classname}} {\n"); + {{#parent}} + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + {{/parent}} + {{#vars}} + sb.append(" {{name}}: ").append({{#isPassword}}"*"{{/isPassword}}{{^isPassword}}toIndentedString({{name}}){{/isPassword}}).append("\n"); + {{/vars}} + {{#additionalPropertiesType}} + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + {{/additionalPropertiesType}} + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +{{#supportUrlQuery}} + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + {{#allVars}} + // add `{{baseName}}` to the URL query string + {{#isArray}} + {{#items.isPrimitiveType}} + {{#uniqueItems}} + if ({{getter}}() != null) { + int i = 0; + for ({{{items.datatypeWithEnum}}} _item : {{getter}}()) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(_item), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + i++; + } + {{/uniqueItems}} + {{^uniqueItems}} + if ({{getter}}() != null) { + for (int i = 0; i < {{getter}}().size(); i++) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf({{getter}}().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + {{/uniqueItems}} + {{/items.isPrimitiveType}} + {{^items.isPrimitiveType}} + {{#items.isModel}} + {{#uniqueItems}} + if ({{getter}}() != null) { + int i = 0; + for ({{{items.dataType}}} _item : {{getter}}()) { + if (_item != null) { + joiner.add(_item.toUrlQueryString(String.format("%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + i++; + } + {{/uniqueItems}} + {{^uniqueItems}} + if ({{getter}}() != null) { + for (int i = 0; i < {{getter}}().size(); i++) { + if ({{getter}}().get(i) != null) { + joiner.add({{getter}}().get(i).toUrlQueryString(String.format("%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + {{/uniqueItems}} + {{/items.isModel}} + {{^items.isModel}} + {{#uniqueItems}} + if ({{getter}}() != null) { + int i = 0; + for ({{{items.dataType}}} _item : {{getter}}()) { + if (_item != null) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf(_item), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + i++; + } + } + {{/uniqueItems}} + {{^uniqueItems}} + if ({{getter}}() != null) { + for (int i = 0; i < {{getter}}().size(); i++) { + if ({{getter}}().get(i) != null) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(String.valueOf({{getter}}().get(i)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + } + {{/uniqueItems}} + {{/items.isModel}} + {{/items.isPrimitiveType}} + {{/isArray}} + {{^isArray}} + {{#isMap}} + {{^items.isModel}} + if ({{getter}}() != null) { + for (String _key : {{getter}}().keySet()) { + try { + joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + {{getter}}().get(_key), URLEncoder.encode(String.valueOf({{getter}}().get(_key)), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + } + {{/items.isModel}} + {{#items.isModel}} + if ({{getter}}() != null) { + for (String _key : {{getter}}().keySet()) { + if ({{getter}}().get(_key) != null) { + joiner.add({{getter}}().get(_key).toUrlQueryString(String.format("%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix)))); + } + } + } + {{/items.isModel}} + {{/isMap}} + {{^isMap}} + {{#isPrimitiveType}} + if ({{getter}}() != null) { + try { + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf({{{getter}}}()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + {{/isPrimitiveType}} + {{^isPrimitiveType}} + {{#isModel}} + if ({{getter}}() != null) { + joiner.add({{getter}}().toUrlQueryString(prefix + "{{{baseName}}}" + suffix)); + } + {{/isModel}} + {{^isModel}} + if ({{getter}}() != null) { + try { + joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf({{{getter}}}()), "UTF-8").replaceAll("\\+", "%20"))); + } catch (UnsupportedEncodingException e) { + // Should never happen, UTF-8 is always supported + throw new RuntimeException(e); + } + } + {{/isModel}} + {{/isPrimitiveType}} + {{/isMap}} + {{/isArray}} + + {{/allVars}} + return joiner.toString(); + } +{{/supportUrlQuery}} +{{#parcelableModel}} + + public void writeToParcel(Parcel out, int flags) { +{{#model}} +{{#isArray}} + out.writeList(this); +{{/isArray}} +{{^isArray}} +{{#parent}} + super.writeToParcel(out, flags); +{{/parent}} +{{#vars}} + out.writeValue({{name}}); +{{/vars}} +{{/isArray}} +{{/model}} + } + + {{classname}}(Parcel in) { +{{#isArray}} + in.readTypedList(this, {{arrayModelType}}.CREATOR); +{{/isArray}} +{{^isArray}} +{{#parent}} + super(in); +{{/parent}} +{{#vars}} +{{#isPrimitiveType}} + {{name}} = ({{{datatypeWithEnum}}})in.readValue(null); +{{/isPrimitiveType}} +{{^isPrimitiveType}} + {{name}} = ({{{datatypeWithEnum}}})in.readValue({{complexType}}.class.getClassLoader()); +{{/isPrimitiveType}} +{{/vars}} +{{/isArray}} + } + + public int describeContents() { + return 0; + } + + public static final Parcelable.Creator<{{classname}}> CREATOR = new Parcelable.Creator<{{classname}}>() { + public {{classname}} createFromParcel(Parcel in) { +{{#model}} +{{#isArray}} + {{classname}} result = new {{classname}}(); + result.addAll(in.readArrayList({{arrayModelType}}.class.getClassLoader())); + return result; +{{/isArray}} +{{^isArray}} + return new {{classname}}(in); +{{/isArray}} +{{/model}} + } + public {{classname}}[] newArray(int size) { + return new {{classname}}[size]; + } + }; +{{/parcelableModel}} +{{#generateBuilders}} + + {{>javaBuilder}} +{{/generateBuilders}} + +} diff --git a/sdks/java-v2/templates/model.mustache b/sdks/java-v2/templates/model.mustache index b50416793..55e6678d2 100644 --- a/sdks/java-v2/templates/model.mustache +++ b/sdks/java-v2/templates/model.mustache @@ -49,8 +49,8 @@ import android.os.Parcelable; import android.os.Parcel; {{/parcelableModel}} {{#useBeanValidation}} -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; {{/useBeanValidation}} {{#performBeanValidation}} import org.hibernate.validator.constraints.*; diff --git a/sdks/java-v2/templates/modelInnerEnum.mustache b/sdks/java-v2/templates/modelInnerEnum.mustache index 0096d8407..f87524099 100644 --- a/sdks/java-v2/templates/modelInnerEnum.mustache +++ b/sdks/java-v2/templates/modelInnerEnum.mustache @@ -23,7 +23,7 @@ {{#withXml}} @XmlEnumValue({{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}{{{value}}}{{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}) {{/withXml}} - {{{name}}}({{{value}}}){{^-last}}, + {{{name}}}({{^isUri}}{{dataType}}.valueOf({{/isUri}}{{{value}}}{{^isUri}}){{/isUri}}){{^-last}}, {{/-last}}{{#-last}};{{/-last}} {{/enumVars}} {{/allowableValues}} diff --git a/sdks/java-v2/templates/nullable_var_annotations.mustache b/sdks/java-v2/templates/nullable_var_annotations.mustache new file mode 100644 index 000000000..7dbaf4029 --- /dev/null +++ b/sdks/java-v2/templates/nullable_var_annotations.mustache @@ -0,0 +1 @@ +{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}} \ No newline at end of file diff --git a/sdks/java-v2/templates/pojo.mustache b/sdks/java-v2/templates/pojo.mustache index 05be7e5c5..09482dd66 100644 --- a/sdks/java-v2/templates/pojo.mustache +++ b/sdks/java-v2/templates/pojo.mustache @@ -65,6 +65,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#gson}} @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} + {{>nullable_var_annotations}} {{#vendorExtensions.x-field-extra-annotation}} {{{vendorExtensions.x-field-extra-annotation}}} {{/vendorExtensions.x-field-extra-annotation}} @@ -134,7 +135,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vars}} {{^isReadOnly}} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}} return this; @@ -210,17 +211,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} -{{#required}} -{{#isNullable}} - @{{javaxPackage}}.annotation.Nullable -{{/isNullable}} -{{^isNullable}} - @{{javaxPackage}}.annotation.Nonnull -{{/isNullable}} -{{/required}} -{{^required}} - @{{javaxPackage}}.annotation.Nullable -{{/required}} + {{>nullable_var_annotations}} {{#jsonb}} @JsonbProperty("{{baseName}}") {{/jsonb}} @@ -270,7 +261,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isReadOnly}} {{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}}{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -285,7 +276,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#readWriteVars}} {{#isOverridden}} @Override - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}})); {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -404,7 +395,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#uniqueItems}} if ({{getter}}() != null) { int i = 0; - for ({{{items.dataType}}} _item : {{getter}}()) { + for ({{{items.datatypeWithEnum}}} _item : {{getter}}()) { try { joiner.add(String.format("%s{{baseName}}%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), diff --git a/sdks/java-v2/templates/pom.mustache b/sdks/java-v2/templates/pom.mustache index b733ab9bb..c46bc598e 100644 --- a/sdks/java-v2/templates/pom.mustache +++ b/sdks/java-v2/templates/pom.mustache @@ -289,12 +289,12 @@ {{/useJakartaEe}} {{#withXml}} - - - com.fasterxml.jackson.dataformat - jackson-dataformat-xml - ${jackson-version} - + + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson-version} + {{/withXml}} {{#joda}} @@ -341,6 +341,15 @@ ${jakarta-annotation-version} provided + {{#useReflectionEqualsHashCode}} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + {{/useReflectionEqualsHashCode}} + org.junit.jupiter @@ -368,13 +377,15 @@ 2.17.1 {{#useJakartaEe}} 2.1.1 + 3.0.2 {{/useJakartaEe}} {{^useJakartaEe}} 1.3.5 + 2.0.2 {{/useJakartaEe}} -{{#useBeanValidation}} - 3.0.2 -{{/useBeanValidation}} + {{#useReflectionEqualsHashCode}} + 3.17.0 + {{/useReflectionEqualsHashCode}} 1.0.0 5.10.2 1.10.0 diff --git a/sdks/java-v2/templates/typeInfoAnnotation.mustache b/sdks/java-v2/templates/typeInfoAnnotation.mustache index c21efb490..07f77c75c 100644 --- a/sdks/java-v2/templates/typeInfoAnnotation.mustache +++ b/sdks/java-v2/templates/typeInfoAnnotation.mustache @@ -26,3 +26,9 @@ {{/-last}} {{/discriminator.mappedModels}} {{/jackson}} +{{#jsonbPolymorphism}} +@JsonbTypeInfo(key = "{{{discriminator.propertyBaseName}}}"{{#discriminator.mappedModels}}{{#-first}}, value = { +{{/-first}} + @JsonbSubtype(alias = "{{^vendorExtensions.x-discriminator-value}}{{mappingName}}{{/vendorExtensions.x-discriminator-value}}{{#vendorExtensions.x-discriminator-value}}{{{vendorExtensions.x-discriminator-value}}}{{/vendorExtensions.x-discriminator-value}}", type = {{modelName}}.class), +{{#-last}} +}{{/-last}}{{/discriminator.mappedModels}}){{/jsonbPolymorphism}} \ No newline at end of file

Response Details
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}