From e7f6b842207b8317163451fffc7c54d153d4d37f Mon Sep 17 00:00:00 2001 From: Grzegorz Biernacki Date: Fri, 23 Oct 2026 11:48:08 +0200 Subject: [PATCH] Upgrade Java v1 generator to 7.26.0 --- sdks/java-v1/build.gradle | 23 ++- sdks/java-v1/build.sbt | 10 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- sdks/java-v1/pom.xml | 11 +- sdks/java-v1/run-build | 4 +- .../main/java/com/dropbox/sign/ApiClient.java | 99 ++++++++--- .../java/com/dropbox/sign/ApiException.java | 2 +- .../java/com/dropbox/sign/Configuration.java | 31 +++- .../com/dropbox/sign/EventCallbackHelper.java | 2 +- .../src/main/java/com/dropbox/sign/JSON.java | 3 +- .../com/dropbox/sign/JavaTimeFormatter.java | 3 +- .../src/main/java/com/dropbox/sign/Pair.java | 34 +--- .../com/dropbox/sign/RFC3339DateFormat.java | 2 +- .../sign/RFC3339InstantDeserializer.java | 111 ++++++++++++ .../dropbox/sign/RFC3339JavaTimeModule.java | 39 +++++ .../com/dropbox/sign/ServerConfiguration.java | 2 +- .../java/com/dropbox/sign/ServerVariable.java | 2 +- .../java/com/dropbox/sign/StringUtil.java | 2 +- .../java/com/dropbox/sign/api/AccountApi.java | 28 ++- .../java/com/dropbox/sign/api/ApiAppApi.java | 35 ++-- .../com/dropbox/sign/api/BulkSendJobApi.java | 18 +- .../com/dropbox/sign/api/DocumentApi.java | 8 +- .../com/dropbox/sign/api/EmbeddedApi.java | 17 +- .../java/com/dropbox/sign/api/FaxApi.java | 31 ++-- .../java/com/dropbox/sign/api/FaxLineApi.java | 53 ++++-- .../java/com/dropbox/sign/api/OAuthApi.java | 14 +- .../java/com/dropbox/sign/api/ReportApi.java | 8 +- .../dropbox/sign/api/SignatureRequestApi.java | 160 +++++++++++------- .../java/com/dropbox/sign/api/TeamApi.java | 64 ++++--- .../com/dropbox/sign/api/TemplateApi.java | 80 ++++++--- .../dropbox/sign/api/UnclaimedDraftApi.java | 34 ++-- .../com/dropbox/sign/auth/ApiKeyAuth.java | 2 +- .../com/dropbox/sign/auth/Authentication.java | 3 + .../com/dropbox/sign/auth/HttpBasicAuth.java | 2 +- .../com/dropbox/sign/auth/HttpBearerAuth.java | 2 +- .../sign/model/AbstractOpenApiSchema.java | 7 +- .../sign/model/AccountCreateRequest.java | 23 ++- .../sign/model/AccountCreateResponse.java | 19 +-- .../sign/model/AccountGetResponse.java | 15 +- .../dropbox/sign/model/AccountResponse.java | 55 +++--- .../sign/model/AccountResponseQuotas.java | 31 ++-- .../sign/model/AccountResponseSettings.java | 19 +-- .../sign/model/AccountResponseUsage.java | 11 +- .../sign/model/AccountUpdateRequest.java | 19 +-- .../sign/model/AccountVerifyRequest.java | 11 +- .../sign/model/AccountVerifyResponse.java | 15 +- .../model/AccountVerifyResponseAccount.java | 11 +- .../sign/model/ApiAppCreateRequest.java | 35 ++-- .../dropbox/sign/model/ApiAppGetResponse.java | 15 +- .../sign/model/ApiAppListResponse.java | 19 +-- .../dropbox/sign/model/ApiAppResponse.java | 47 +++-- .../sign/model/ApiAppResponseOAuth.java | 23 ++- .../sign/model/ApiAppResponseOptions.java | 11 +- .../model/ApiAppResponseOwnerAccount.java | 15 +- .../ApiAppResponseWhiteLabelingOptions.java | 63 ++++--- .../sign/model/ApiAppUpdateRequest.java | 35 ++-- .../sign/model/BulkSendJobGetResponse.java | 23 ++- ...lkSendJobGetResponseSignatureRequests.java | 107 ++++++------ .../sign/model/BulkSendJobListResponse.java | 19 +-- .../sign/model/BulkSendJobResponse.java | 23 ++- .../sign/model/BulkSendJobSendResponse.java | 15 +- .../model/DocumentFieldDetectionRequest.java | 23 ++- .../model/DocumentFieldDetectionResponse.java | 15 +- ...FieldDetectionResponseDetectionResult.java | 47 +++-- .../sign/model/EmbeddedEditUrlRequest.java | 47 +++-- .../sign/model/EmbeddedEditUrlResponse.java | 15 +- .../EmbeddedEditUrlResponseEmbedded.java | 15 +- .../sign/model/EmbeddedSignUrlResponse.java | 15 +- .../EmbeddedSignUrlResponseEmbedded.java | 15 +- .../com/dropbox/sign/model/ErrorResponse.java | 11 +- .../sign/model/ErrorResponseError.java | 19 +-- .../sign/model/EventCallbackRequest.java | 23 ++- .../sign/model/EventCallbackRequestEvent.java | 23 ++- .../EventCallbackRequestEventMetadata.java | 23 ++- .../dropbox/sign/model/FaxGetResponse.java | 15 +- .../sign/model/FaxLineAddUserRequest.java | 19 +-- .../model/FaxLineAreaCodeGetResponse.java | 11 +- .../sign/model/FaxLineCreateRequest.java | 23 ++- .../sign/model/FaxLineDeleteRequest.java | 11 +- .../sign/model/FaxLineListResponse.java | 19 +-- .../sign/model/FaxLineRemoveUserRequest.java | 19 +-- .../dropbox/sign/model/FaxLineResponse.java | 15 +- .../sign/model/FaxLineResponseFaxLine.java | 23 ++- .../dropbox/sign/model/FaxListResponse.java | 15 +- .../com/dropbox/sign/model/FaxResponse.java | 55 +++--- .../sign/model/FaxResponseTransmission.java | 19 +-- .../dropbox/sign/model/FaxSendRequest.java | 43 +++-- .../com/dropbox/sign/model/FileResponse.java | 15 +- .../sign/model/FileResponseDataUri.java | 11 +- .../dropbox/sign/model/ListInfoResponse.java | 23 ++- .../sign/model/OAuthTokenGenerateRequest.java | 27 ++- .../sign/model/OAuthTokenRefreshRequest.java | 23 ++- .../sign/model/OAuthTokenResponse.java | 27 ++- .../sign/model/ReportCreateRequest.java | 19 +-- .../sign/model/ReportCreateResponse.java | 15 +- .../dropbox/sign/model/ReportResponse.java | 23 ++- ...BulkCreateEmbeddedWithTemplateRequest.java | 63 ++++--- ...ureRequestBulkSendWithTemplateRequest.java | 63 ++++--- ...SignatureRequestCreateEmbeddedRequest.java | 107 ++++++------ ...uestCreateEmbeddedWithTemplateRequest.java | 71 ++++---- .../SignatureRequestEditEmbeddedRequest.java | 107 ++++++------ ...equestEditEmbeddedWithTemplateRequest.java | 67 ++++---- .../model/SignatureRequestEditRequest.java | 111 ++++++------ ...gnatureRequestEditWithTemplateRequest.java | 71 ++++---- .../model/SignatureRequestGetResponse.java | 15 +- .../model/SignatureRequestListResponse.java | 19 +-- .../model/SignatureRequestRemindRequest.java | 15 +- .../sign/model/SignatureRequestResponse.java | 107 ++++++------ .../SignatureRequestResponseAttachment.java | 31 ++-- ...gnatureRequestResponseCustomFieldBase.java | 27 ++- ...ureRequestResponseCustomFieldCheckbox.java | 15 +- ...gnatureRequestResponseCustomFieldText.java | 15 +- .../SignatureRequestResponseDataBase.java | 27 ++- ...atureRequestResponseDataValueCheckbox.java | 15 +- ...RequestResponseDataValueCheckboxMerge.java | 15 +- ...ureRequestResponseDataValueDateSigned.java | 15 +- ...atureRequestResponseDataValueDropdown.java | 15 +- ...atureRequestResponseDataValueInitials.java | 19 +-- ...ignatureRequestResponseDataValueRadio.java | 15 +- ...tureRequestResponseDataValueSignature.java | 19 +-- ...SignatureRequestResponseDataValueText.java | 15 +- ...tureRequestResponseDataValueTextMerge.java | 15 +- .../SignatureRequestResponseSignatures.java | 83 +++++---- .../model/SignatureRequestSendRequest.java | 115 ++++++------- ...gnatureRequestSendWithTemplateRequest.java | 79 +++++---- .../model/SignatureRequestUpdateRequest.java | 23 ++- .../com/dropbox/sign/model/SubAttachment.java | 23 ++- .../dropbox/sign/model/SubBulkSignerList.java | 15 +- .../model/SubBulkSignerListCustomField.java | 15 +- .../java/com/dropbox/sign/model/SubCC.java | 15 +- .../dropbox/sign/model/SubCustomField.java | 23 ++- .../dropbox/sign/model/SubEditorOptions.java | 15 +- .../dropbox/sign/model/SubFieldOptions.java | 11 +- .../dropbox/sign/model/SubFormFieldGroup.java | 19 +-- .../dropbox/sign/model/SubFormFieldRule.java | 23 ++- .../sign/model/SubFormFieldRuleAction.java | 23 ++- .../sign/model/SubFormFieldRuleTrigger.java | 23 ++- .../model/SubFormFieldsPerDocumentBase.java | 51 +++--- .../SubFormFieldsPerDocumentCheckbox.java | 19 +-- ...SubFormFieldsPerDocumentCheckboxMerge.java | 11 +- .../SubFormFieldsPerDocumentDateSigned.java | 19 +-- .../SubFormFieldsPerDocumentDropdown.java | 27 ++- .../SubFormFieldsPerDocumentHyperlink.java | 27 ++- .../SubFormFieldsPerDocumentInitials.java | 11 +- .../model/SubFormFieldsPerDocumentRadio.java | 19 +-- .../SubFormFieldsPerDocumentSignature.java | 11 +- .../model/SubFormFieldsPerDocumentText.java | 51 +++--- .../SubFormFieldsPerDocumentTextMerge.java | 19 +-- .../com/dropbox/sign/model/SubMergeField.java | 15 +- .../java/com/dropbox/sign/model/SubOAuth.java | 15 +- .../com/dropbox/sign/model/SubOptions.java | 11 +- .../SubSignatureRequestGroupedSigners.java | 19 +-- .../sign/model/SubSignatureRequestSigner.java | 31 ++-- .../SubSignatureRequestTemplateSigner.java | 31 ++-- .../dropbox/sign/model/SubSigningOptions.java | 31 ++-- .../dropbox/sign/model/SubTeamResponse.java | 15 +- .../dropbox/sign/model/SubTemplateRole.java | 15 +- .../sign/model/SubUnclaimedDraftSigner.java | 19 +-- .../SubUnclaimedDraftTemplateSigner.java | 19 +-- .../sign/model/SubWhiteLabelingOptions.java | 67 ++++---- .../sign/model/TeamAddMemberRequest.java | 19 +-- .../dropbox/sign/model/TeamCreateRequest.java | 11 +- .../sign/model/TeamGetInfoResponse.java | 15 +- .../dropbox/sign/model/TeamGetResponse.java | 15 +- .../dropbox/sign/model/TeamInfoResponse.java | 27 ++- .../sign/model/TeamInviteResponse.java | 31 ++-- .../sign/model/TeamInvitesResponse.java | 15 +- .../sign/model/TeamMemberResponse.java | 19 +-- .../sign/model/TeamMembersResponse.java | 19 +-- .../sign/model/TeamParentResponse.java | 15 +- .../sign/model/TeamRemoveMemberRequest.java | 27 ++- .../com/dropbox/sign/model/TeamResponse.java | 23 ++- .../sign/model/TeamSubTeamsResponse.java | 19 +-- .../dropbox/sign/model/TeamUpdateRequest.java | 11 +- .../sign/model/TemplateAddUserRequest.java | 19 +-- .../TemplateCreateEmbeddedDraftRequest.java | 111 ++++++------ .../TemplateCreateEmbeddedDraftResponse.java | 15 +- ...teCreateEmbeddedDraftResponseTemplate.java | 23 ++- .../sign/model/TemplateCreateRequest.java | 83 +++++---- .../sign/model/TemplateCreateResponse.java | 15 +- .../model/TemplateCreateResponseTemplate.java | 11 +- .../sign/model/TemplateGetResponse.java | 15 +- .../sign/model/TemplateListResponse.java | 19 +-- .../sign/model/TemplateRemoveUserRequest.java | 15 +- .../dropbox/sign/model/TemplateResponse.java | 71 ++++---- .../sign/model/TemplateResponseAccount.java | 31 ++-- .../model/TemplateResponseAccountQuota.java | 23 ++- .../sign/model/TemplateResponseCCRole.java | 11 +- .../sign/model/TemplateResponseDocument.java | 31 ++-- ...mplateResponseDocumentCustomFieldBase.java | 47 +++-- ...teResponseDocumentCustomFieldCheckbox.java | 11 +- ...mplateResponseDocumentCustomFieldText.java | 27 ++- .../TemplateResponseDocumentFieldGroup.java | 15 +- ...emplateResponseDocumentFieldGroupRule.java | 15 +- ...TemplateResponseDocumentFormFieldBase.java | 43 +++-- ...lateResponseDocumentFormFieldCheckbox.java | 15 +- ...teResponseDocumentFormFieldDateSigned.java | 15 +- ...lateResponseDocumentFormFieldDropdown.java | 19 +-- ...ateResponseDocumentFormFieldHyperlink.java | 31 ++-- ...lateResponseDocumentFormFieldInitials.java | 15 +- ...emplateResponseDocumentFormFieldRadio.java | 15 +- ...ateResponseDocumentFormFieldSignature.java | 15 +- ...TemplateResponseDocumentFormFieldText.java | 43 +++-- ...mplateResponseDocumentStaticFieldBase.java | 47 +++-- ...teResponseDocumentStaticFieldCheckbox.java | 11 +- ...ResponseDocumentStaticFieldDateSigned.java | 11 +- ...teResponseDocumentStaticFieldDropdown.java | 11 +- ...eResponseDocumentStaticFieldHyperlink.java | 11 +- ...teResponseDocumentStaticFieldInitials.java | 11 +- ...plateResponseDocumentStaticFieldRadio.java | 11 +- ...eResponseDocumentStaticFieldSignature.java | 11 +- ...mplateResponseDocumentStaticFieldText.java | 11 +- .../TemplateResponseFieldAvgTextLength.java | 15 +- .../model/TemplateResponseSignerRole.java | 15 +- .../model/TemplateUpdateFilesRequest.java | 31 ++-- .../model/TemplateUpdateFilesResponse.java | 11 +- .../TemplateUpdateFilesResponseTemplate.java | 15 +- .../UnclaimedDraftCreateEmbeddedRequest.java | 155 +++++++++-------- ...raftCreateEmbeddedWithTemplateRequest.java | 127 +++++++------- .../model/UnclaimedDraftCreateRequest.java | 107 ++++++------ .../model/UnclaimedDraftCreateResponse.java | 15 +- .../UnclaimedDraftEditAndResendRequest.java | 39 ++--- .../sign/model/UnclaimedDraftResponse.java | 31 ++-- .../dropbox/sign/model/WarningResponse.java | 15 +- sdks/java-v1/templates/ApiClient.mustache | 34 ++-- sdks/java-v1/templates/Configuration.mustache | 73 +++++--- .../templates/JavaTimeFormatter.mustache | 75 ++++---- sdks/java-v1/templates/Pair.mustache | 51 ++---- .../templates/RFC3339DateFormat.mustache | 4 +- .../templates/ServerConfiguration.mustache | 1 + .../java-v1/templates/ServerVariable.mustache | 1 + sdks/java-v1/templates/StringUtil.mustache | 1 + sdks/java-v1/templates/api.mustache | 5 +- sdks/java-v1/templates/apiException.mustache | 1 + .../templates/auth/ApiKeyAuth.mustache | 1 + .../templates/auth/Authentication.mustache | 18 +- .../templates/auth/HttpBasicAuth.mustache | 1 + .../templates/auth/HttpBearerAuth.mustache | 11 +- sdks/java-v1/templates/auth/OAuth.mustache | 1 + .../java-v1/templates/auth/OAuthFlow.mustache | 1 + .../java-v1/templates/beanValidation.mustache | 7 - .../templates/beanValidationCore.mustache | 3 +- sdks/java-v1/templates/build.gradle.mustache | 49 +++--- .../gradle-wrapper.properties.mustache | 2 +- .../templates/jackson_annotations.mustache | 2 +- sdks/java-v1/templates/javaBuilder.mustache | 4 +- .../jersey2/AbstractOpenApiSchema.mustache | 7 +- .../libraries/jersey2/ApiClient.mustache | 125 +++++++++----- .../templates/libraries/jersey2/JSON.mustache | 2 + .../libraries/jersey2/anyof_model.mustache | 7 +- .../templates/libraries/jersey2/api.mustache | 20 ++- .../libraries/jersey2/apiException.mustache | 1 + .../jersey2/auth/ApiKeyAuth.mustache | 1 + .../jersey2/auth/Authentication.mustache | 2 + .../jersey2/auth/HttpBasicAuth.mustache | 1 + .../jersey2/auth/HttpBearerAuth.mustache | 1 + .../libraries/jersey2/auth/OAuth.mustache | 1 + .../libraries/jersey2/build.gradle.mustache | 75 ++++---- .../libraries/jersey2/build.sbt.mustache | 14 +- .../libraries/jersey2/model_doc.mustache | 4 + .../libraries/jersey2/oneof_model.mustache | 9 +- .../templates/libraries/jersey2/pojo.mustache | 32 ++-- .../templates/libraries/jersey2/pom.mustache | 11 +- sdks/java-v1/templates/model.mustache | 11 ++ sdks/java-v1/templates/modelEnum.mustache | 11 +- .../java-v1/templates/modelInnerEnum.mustache | 6 +- .../nullable_var_annotations.mustache | 2 +- .../templates/oneof_interface.mustache | 7 +- sdks/java-v1/templates/pojo.mustache | 85 ++++++---- sdks/java-v1/templates/pom.mustache | 7 +- .../templates/typeInfoAnnotation.mustache | 7 +- 271 files changed, 3527 insertions(+), 3584 deletions(-) create mode 100644 sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java create mode 100644 sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java diff --git a/sdks/java-v1/build.gradle b/sdks/java-v1/build.gradle index f4d6098ee..968defe62 100644 --- a/sdks/java-v1/build.gradle +++ b/sdks/java-v1/build.gradle @@ -22,6 +22,16 @@ repositories { mavenCentral() } +ext { + jackson_version = "2.21.6" + jackson_annotations_version = "2.21" + jackson_databind_version = "2.21.6" + jakarta_annotation_version = "1.3.5" + jersey_version = "2.35" + junit_version = "5.8.2" + mockito_version = "3.12.4" +} + tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } @@ -57,18 +67,7 @@ artifacts { archives javadocJar, sourcesJar, fatJar } -ext { - swagger_annotations_version = "1.6.5" - jackson_version = "2.17.1" - jackson_databind_version = "2.17.1" - jakarta_annotation_version = "1.3.5" - jersey_version = "2.35" - junit_version = "5.8.2" - mockito_version = "3.12.4" -} - dependencies { - implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation 'commons-codec:commons-codec:1.15' implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" @@ -77,7 +76,7 @@ dependencies { implementation "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version" implementation "org.glassfish.jersey.connectors:jersey-apache-connector:$jersey_version" implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version" - implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" + implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_annotations_version" implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" diff --git a/sdks/java-v1/build.sbt b/sdks/java-v1/build.sbt index 214c47d8c..455d00cf5 100644 --- a/sdks/java-v1/build.sbt +++ b/sdks/java-v1/build.sbt @@ -3,7 +3,7 @@ lazy val root = (project in file(".")). organization := "com.dropbox.sign", name := "dropbox-sign", version := "1.11-dev", - scalaVersion := "2.11.4", + scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), Compile / packageDoc / publishArtifact := false, @@ -17,10 +17,10 @@ lazy val root = (project in file(".")). "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.35", "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.35", "org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.35", - "com.fasterxml.jackson.core" % "jackson-core" % "2.17.1" % "compile", - "com.fasterxml.jackson.core" % "jackson-annotations" % "2.17.1" % "compile", - "com.fasterxml.jackson.core" % "jackson-databind" % "2.17.1" % "compile", - "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.17.1" % "compile", + "com.fasterxml.jackson.core" % "jackson-core" % "2.21.6" % "compile", + "com.fasterxml.jackson.core" % "jackson-annotations" % "2.21" % "compile", + "com.fasterxml.jackson.core" % "jackson-databind" % "2.21.6" % "compile", + "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.21.6" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % "test" ) diff --git a/sdks/java-v1/gradle/wrapper/gradle-wrapper.properties b/sdks/java-v1/gradle/wrapper/gradle-wrapper.properties index b82aa23a4..4f5eb9dcc 100644 --- a/sdks/java-v1/gradle/wrapper/gradle-wrapper.properties +++ b/sdks/java-v1/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.5-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/sdks/java-v1/pom.xml b/sdks/java-v1/pom.xml index b499f09a3..001cfcb7b 100644 --- a/sdks/java-v1/pom.xml +++ b/sdks/java-v1/pom.xml @@ -311,7 +311,7 @@ com.fasterxml.jackson.core jackson-annotations - ${jackson-version} + ${jackson-annotations-version} com.fasterxml.jackson.core @@ -352,12 +352,13 @@ UTF-8 2.37 - 2.17.1 - 2.17.1 - 0.2.6 + 2.21.6 + 2.21 + 2.21.6 + 0.2.12 1.3.5 2.0.2 - 5.10.0 + 5.14.4 2.21.0 3.12.4 diff --git a/sdks/java-v1/run-build b/sdks/java-v1/run-build index 2262ad532..ef6c88907 100755 --- a/sdks/java-v1/run-build +++ b/sdks/java-v1/run-build @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# see https://github.com/OpenAPITools/openapi-generator/tree/v7.8.0/modules/openapi-generator/src/main/resources/Java +# see https://github.com/OpenAPITools/openapi-generator/tree/v7.26.0/modules/openapi-generator/src/main/resources/Java set -e @@ -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.12.0 generate \ + openapitools/openapi-generator-cli:v7.26.0 generate \ -i "/local/openapi-sdk.yaml" \ -c "/local/openapi-config.yaml" \ -t "/local/templates" \ diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java b/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java index 671efa962..0bcbbd1bb 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java @@ -71,16 +71,16 @@ /** ApiClient class. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ApiClient extends JavaTimeFormatter { - private static final Pattern JSON_MIME_PATTERN = + protected static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); protected Map defaultHeaderMap = new HashMap<>(); protected Map defaultCookieMap = new HashMap<>(); protected String basePath = "https://api.hellosign.com/v3"; protected String userAgent; - private static final Logger log = Logger.getLogger(ApiClient.class.getName()); + protected static final Logger log = Logger.getLogger(ApiClient.class.getName()); protected List servers = new ArrayList<>( @@ -119,7 +119,7 @@ public class ApiClient extends JavaTimeFormatter { protected boolean debugging = false; protected ClientConfig clientConfig; protected int connectionTimeout = 0; - private int readTimeout = 0; + protected int readTimeout = 0; protected Client httpClient; protected JSON json; @@ -287,7 +287,7 @@ public ApiClient setServerVariables(Map serverVariables) { return this; } - private void updateBasePath() { + protected void updateBasePath() { if (serverIndex != null) { setBasePath(servers.get(serverIndex).URL(serverVariables)); } @@ -463,6 +463,7 @@ public boolean isDebugging() { */ public ApiClient setDebugging(boolean debugging) { this.debugging = debugging; + applyDebugSetting(this.clientConfig); // Rebuild HTTP Client according to the new "debugging" value. this.httpClient = buildHttpClient(); return this; @@ -734,6 +735,41 @@ public String escapeString(String str) { } } + /** + * Format the given collection as a path parameter value according to the collection format. + * Each item is escaped individually, so that the delimiter is preserved (e.g. "a,b,c" for csv). + * + * @param collectionFormat Collection format (csv by default) + * @param value Collection value + * @return Escaped path parameter value + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + if (value == null || value.isEmpty()) { + return ""; + } + + // "multi" is not valid for path params, fall back to csv + String delimiter = ","; + if ("ssv".equals(collectionFormat)) { + delimiter = escapeString(" "); + } else if ("tsv".equals(collectionFormat)) { + delimiter = escapeString("\t"); + } else if ("pipes".equals(collectionFormat)) { + delimiter = escapeString("|"); + } + + StringBuilder sb = new StringBuilder(); + boolean first = true; + for (Object item : value) { + if (!first) { + sb.append(delimiter); + } + sb.append(escapeString(parameterToString(item))); + first = false; + } + return sb.toString(); + } + /** * Serialize the given Java object into string entity according the given Content-Type (only * JSON is supported for now). @@ -814,7 +850,7 @@ public Entity serialize( * @param key Key of the object * @param multiPart MultiPart to add the form param to */ - private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + protected void addParamToMultipart(Object value, String key, MultiPart multiPart) { if (value instanceof File) { File file = (File) value; FormDataContentDisposition contentDisp = @@ -1021,9 +1057,11 @@ public ApiResponse invokeAPI( if (index < 0 || index >= serverConfigurations.size()) { throw new ArrayIndexOutOfBoundsException( String.format( + java.util.Locale.ROOT, "Invalid index %d when selecting the host settings. Must be less" + " than %d", - index, serverConfigurations.size())); + index, + serverConfigurations.size())); } targetURL = serverConfigurations.get(index).URL(variables) + path; } else { @@ -1033,6 +1071,22 @@ public ApiResponse invokeAPI( // to support (constant) query string in `path`, e.g. "/posts?draft=1" WebTarget target = httpClient.target(targetURL); + // put all headers in one place + Map allHeaderParams = new HashMap<>(defaultHeaderMap); + allHeaderParams.putAll(headerParams); + + if (authNames != null) { + // update different parameters (e.g. headers) for authentication + updateParamsForAuth( + authNames, + queryParams, + allHeaderParams, + cookieParams, + null, + method, + target.getUri()); + } + if (queryParams != null) { for (Pair queryParam : queryParams) { if (queryParam.getValue() != null) { @@ -1065,22 +1119,6 @@ public ApiResponse invokeAPI( Entity entity = serialize(body, formParams, contentType, isBodyNullable); - // put all headers in one place - Map allHeaderParams = new HashMap<>(defaultHeaderMap); - allHeaderParams.putAll(headerParams); - - if (authNames != null) { - // update different parameters (e.g. headers) for authentication - updateParamsForAuth( - authNames, - queryParams, - allHeaderParams, - cookieParams, - null, - method, - target.getUri()); - } - for (Entry entry : allHeaderParams.entrySet()) { String value = entry.getValue(); if (value != null) { @@ -1142,7 +1180,7 @@ public ApiResponse invokeAPI( } } - private Response sendRequest( + protected Response sendRequest( String method, Invocation.Builder invocationBuilder, Entity entity) { Response response; if ("POST".equals(method)) { @@ -1203,8 +1241,10 @@ public ApiResponse invokeAPI( * @return Client */ protected Client buildHttpClient() { - // recreate the client config to pickup changes - clientConfig = getDefaultClientConfig(); + // Create ClientConfig if it has not been initialized yet + if (clientConfig == null) { + clientConfig = getDefaultClientConfig(); + } ClientBuilder clientBuilder = ClientBuilder.newBuilder(); clientBuilder = clientBuilder.withConfig(clientConfig); @@ -1225,6 +1265,11 @@ public ClientConfig getDefaultClientConfig() { clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); // turn off compliance validation to be able to send payloads with DELETE calls clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true); + applyDebugSetting(clientConfig); + return clientConfig; + } + + protected void applyDebugSetting(ClientConfig clientConfig) { if (debugging) { clientConfig.register( new LoggingFeature( @@ -1242,8 +1287,6 @@ public ClientConfig getDefaultClientConfig() { java.util.logging.Logger.getLogger("org.glassfish.jersey.client") .setLevel(java.util.logging.Level.SEVERE); } - - return clientConfig; } /** diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/ApiException.java b/sdks/java-v1/src/main/java/com/dropbox/sign/ApiException.java index 27476dab3..0da62b8be 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/ApiException.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/ApiException.java @@ -19,7 +19,7 @@ /** API Exception */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java b/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java index 654d69f1d..b6af420ab 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java @@ -12,13 +12,18 @@ package com.dropbox.sign; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class Configuration { public static final String VERSION = "1.11-dev"; - private static volatile ApiClient defaultApiClient = new ApiClient(); + private static final AtomicReference defaultApiClient = new AtomicReference<>(); + private static volatile Supplier apiClientFactory = ApiClient::new; /** * Get the default API client, which would be used when creating API instances without providing @@ -27,7 +32,18 @@ public class Configuration { * @return Default API client */ public static ApiClient getDefaultApiClient() { - return defaultApiClient; + ApiClient client = defaultApiClient.get(); + if (client == null) { + client = + defaultApiClient.updateAndGet( + val -> { + if (val != null) { // changed by another thread + return val; + } + return apiClientFactory.get(); + }); + } + return client; } /** @@ -37,6 +53,13 @@ public static ApiClient getDefaultApiClient() { * @param apiClient API client */ public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; + defaultApiClient.set(apiClient); + } + + /** set the callback used to create new ApiClient objects */ + public static void setApiClientFactory(Supplier factory) { + apiClientFactory = Objects.requireNonNull(factory); } + + public Configuration() {} } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/EventCallbackHelper.java b/sdks/java-v1/src/main/java/com/dropbox/sign/EventCallbackHelper.java index 8d65b8708..e89c6cc09 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/EventCallbackHelper.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/EventCallbackHelper.java @@ -19,7 +19,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class EventCallbackHelper { public static final String EVENT_TYPE_ACCOUNT_CALLBACK = "account_callback"; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/JSON.java b/sdks/java-v1/src/main/java/com/dropbox/sign/JSON.java index cd4a199ef..37ed507d5 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/JSON.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/JSON.java @@ -26,7 +26,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class JSON implements ContextResolver { private ObjectMapper mapper; @@ -42,6 +42,7 @@ public JSON() { .enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING) .defaultDateFormat(new RFC3339DateFormat()) .addModule(new JavaTimeModule()) + .addModule(new RFC3339JavaTimeModule()) .build(); } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/JavaTimeFormatter.java b/sdks/java-v1/src/main/java/com/dropbox/sign/JavaTimeFormatter.java index 806b9b146..b37f55330 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/JavaTimeFormatter.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/JavaTimeFormatter.java @@ -23,9 +23,8 @@ */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class JavaTimeFormatter { - private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; /** diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/Pair.java b/sdks/java-v1/src/main/java/com/dropbox/sign/Pair.java index 0f3d10c47..e098ec714 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/Pair.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/Pair.java @@ -14,30 +14,14 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class Pair { - private String name = ""; - private String value = ""; + private final String name; + private final String value; public Pair(String name, String value) { - setName(name); - setValue(value); - } - - private void setName(String name) { - if (!isValidString(name)) { - return; - } - - this.name = name; - } - - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; } public String getName() { @@ -48,11 +32,7 @@ public String getValue() { return this.value; } - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; + private static boolean isValidString(String arg) { + return arg != null; } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339DateFormat.java b/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339DateFormat.java index 3334a5843..8b0630f1e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339DateFormat.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339DateFormat.java @@ -23,7 +23,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.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-v1/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java b/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java new file mode 100644 index 000000000..5f03352c7 --- /dev/null +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339InstantDeserializer.java @@ -0,0 +1,111 @@ +/* + * Dropbox Sign API + * Dropbox Sign v3 API + * + * The version of the OpenAPI document: 3.0.0 + * Contact: apisupport@hellosign.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.dropbox.sign; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature; +import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer; +import java.io.IOException; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZoneId; +import java.time.ZonedDateTime; +import java.time.format.DateTimeFormatter; +import java.time.temporal.Temporal; +import java.time.temporal.TemporalAccessor; +import java.util.function.BiFunction; +import java.util.function.Function; + +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.26.0") +public class RFC3339InstantDeserializer extends InstantDeserializer { + private static final long serialVersionUID = 1L; + private static final boolean DEFAULT_NORMALIZE_ZONE_ID = + JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault(); + private static final boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS = + JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault(); + + public static final RFC3339InstantDeserializer INSTANT = + new RFC3339InstantDeserializer<>( + Instant.class, + DateTimeFormatter.ISO_INSTANT, + Instant::from, + a -> Instant.ofEpochMilli(a.value), + a -> Instant.ofEpochSecond(a.integer, a.fraction), + null, + true, // yes, replace zero offset with Z + DEFAULT_NORMALIZE_ZONE_ID, + DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS); + + public static final RFC3339InstantDeserializer OFFSET_DATE_TIME = + new RFC3339InstantDeserializer<>( + OffsetDateTime.class, + DateTimeFormatter.ISO_OFFSET_DATE_TIME, + OffsetDateTime::from, + a -> OffsetDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId), + a -> + OffsetDateTime.ofInstant( + Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId), + (d, z) -> + (d.isEqual(OffsetDateTime.MIN) || d.isEqual(OffsetDateTime.MAX) + ? d + : d.withOffsetSameInstant( + z.getRules().getOffset(d.toLocalDateTime()))), + true, // yes, replace zero offset with Z + DEFAULT_NORMALIZE_ZONE_ID, + DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS); + + public static final RFC3339InstantDeserializer ZONED_DATE_TIME = + new RFC3339InstantDeserializer<>( + ZonedDateTime.class, + DateTimeFormatter.ISO_ZONED_DATE_TIME, + ZonedDateTime::from, + a -> ZonedDateTime.ofInstant(Instant.ofEpochMilli(a.value), a.zoneId), + a -> + ZonedDateTime.ofInstant( + Instant.ofEpochSecond(a.integer, a.fraction), a.zoneId), + ZonedDateTime::withZoneSameInstant, + false, // keep zero offset and Z separate since zones explicitly supported + DEFAULT_NORMALIZE_ZONE_ID, + DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS); + + protected RFC3339InstantDeserializer( + Class supportedType, + DateTimeFormatter formatter, + Function parsedToValue, + Function fromMilliseconds, + Function fromNanoseconds, + BiFunction adjust, + boolean replaceZeroOffsetAsZ, + boolean normalizeZoneId, + boolean readNumericStringsAsTimestamp) { + super( + supportedType, + formatter, + parsedToValue, + fromMilliseconds, + fromNanoseconds, + adjust, + replaceZeroOffsetAsZ, + normalizeZoneId, + readNumericStringsAsTimestamp); + } + + @Override + protected T _fromString(JsonParser p, DeserializationContext ctxt, String string0) + throws IOException { + return super._fromString(p, ctxt, string0.replace(' ', 'T')); + } +} diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java b/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java new file mode 100644 index 000000000..d6010499c --- /dev/null +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/RFC3339JavaTimeModule.java @@ -0,0 +1,39 @@ +/* + * Dropbox Sign API + * Dropbox Sign v3 API + * + * The version of the OpenAPI document: 3.0.0 + * Contact: apisupport@hellosign.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.dropbox.sign; + +import com.fasterxml.jackson.databind.Module.SetupContext; +import com.fasterxml.jackson.databind.module.SimpleModule; +import java.time.Instant; +import java.time.OffsetDateTime; +import java.time.ZonedDateTime; + +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.26.0") +public class RFC3339JavaTimeModule extends SimpleModule { + private static final long serialVersionUID = 1L; + + public RFC3339JavaTimeModule() { + super("RFC3339JavaTimeModule"); + } + + @Override + public void setupModule(SetupContext context) { + super.setupModule(context); + + addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT); + addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME); + addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME); + } +} diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/ServerConfiguration.java b/sdks/java-v1/src/main/java/com/dropbox/sign/ServerConfiguration.java index 8d3d8b18c..2f68bf544 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/ServerConfiguration.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/ServerConfiguration.java @@ -17,7 +17,7 @@ /** Representing a Server configuration. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ServerConfiguration { public String URL; public String description; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/ServerVariable.java b/sdks/java-v1/src/main/java/com/dropbox/sign/ServerVariable.java index 4af52f41e..e9a4cc3ba 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/ServerVariable.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/ServerVariable.java @@ -17,7 +17,7 @@ /** Representing a Server Variable for server URL template substitution. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/StringUtil.java b/sdks/java-v1/src/main/java/com/dropbox/sign/StringUtil.java index bcc8a0371..ae5cfc047 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/StringUtil.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/StringUtil.java @@ -17,7 +17,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java index 836bd4bf4..fa756a5e2 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/AccountApi.java @@ -20,7 +20,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class AccountApi { private ApiClient apiClient; @@ -65,7 +65,8 @@ public void setApiClient(ApiClient apiClient) { * 4XX failed_operation - * */ - public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateRequest) + public AccountCreateResponse accountCreate( + @javax.annotation.Nonnull AccountCreateRequest accountCreateRequest) throws ApiException { return accountCreateWithHttpInfo(accountCreateRequest).getData(); } @@ -86,7 +87,8 @@ public AccountCreateResponse accountCreate(AccountCreateRequest accountCreateReq * */ public ApiResponse accountCreateWithHttpInfo( - AccountCreateRequest accountCreateRequest) throws ApiException { + @javax.annotation.Nonnull AccountCreateRequest accountCreateRequest) + throws ApiException { // Check required parameters if (accountCreateRequest == null) { @@ -140,7 +142,9 @@ public ApiResponse accountCreateWithHttpInfo( * 4XX failed_operation - * */ - public AccountGetResponse accountGet(String accountId, String emailAddress) + public AccountGetResponse accountGet( + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable String emailAddress) throws ApiException { return accountGetWithHttpInfo(accountId, emailAddress).getData(); } @@ -202,7 +206,9 @@ public ApiResponse accountGetWithHttpInfo(String accountId) * */ public ApiResponse accountGetWithHttpInfo( - String accountId, String emailAddress) throws ApiException { + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable String emailAddress) + throws ApiException { // Query parameters List localVarQueryParams = @@ -249,7 +255,8 @@ public ApiResponse accountGetWithHttpInfo( * 4XX failed_operation - * */ - public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateRequest) + public AccountGetResponse accountUpdate( + @javax.annotation.Nonnull AccountUpdateRequest accountUpdateRequest) throws ApiException { return accountUpdateWithHttpInfo(accountUpdateRequest).getData(); } @@ -270,7 +277,8 @@ public AccountGetResponse accountUpdate(AccountUpdateRequest accountUpdateReques * */ public ApiResponse accountUpdateWithHttpInfo( - AccountUpdateRequest accountUpdateRequest) throws ApiException { + @javax.annotation.Nonnull AccountUpdateRequest accountUpdateRequest) + throws ApiException { // Check required parameters if (accountUpdateRequest == null) { @@ -321,7 +329,8 @@ public ApiResponse accountUpdateWithHttpInfo( * 4XX failed_operation - * */ - public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyRequest) + public AccountVerifyResponse accountVerify( + @javax.annotation.Nonnull AccountVerifyRequest accountVerifyRequest) throws ApiException { return accountVerifyWithHttpInfo(accountVerifyRequest).getData(); } @@ -341,7 +350,8 @@ public AccountVerifyResponse accountVerify(AccountVerifyRequest accountVerifyReq * */ public ApiResponse accountVerifyWithHttpInfo( - AccountVerifyRequest accountVerifyRequest) throws ApiException { + @javax.annotation.Nonnull AccountVerifyRequest accountVerifyRequest) + throws ApiException { // Check required parameters if (accountVerifyRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java index b74007e35..3319808e5 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ApiAppApi.java @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ApiAppApi { private ApiClient apiClient; @@ -62,8 +62,8 @@ public void setApiClient(ApiClient apiClient) { * 4XX failed_operation - * */ - public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) - throws ApiException { + public ApiAppGetResponse apiAppCreate( + @javax.annotation.Nonnull ApiAppCreateRequest apiAppCreateRequest) throws ApiException { return apiAppCreateWithHttpInfo(apiAppCreateRequest).getData(); } @@ -82,7 +82,7 @@ public ApiAppGetResponse apiAppCreate(ApiAppCreateRequest apiAppCreateRequest) * */ public ApiResponse apiAppCreateWithHttpInfo( - ApiAppCreateRequest apiAppCreateRequest) throws ApiException { + @javax.annotation.Nonnull ApiAppCreateRequest apiAppCreateRequest) throws ApiException { // Check required parameters if (apiAppCreateRequest == null) { @@ -132,7 +132,7 @@ public ApiResponse apiAppCreateWithHttpInfo( * 4XX failed_operation - * */ - public void apiAppDelete(String clientId) throws ApiException { + public void apiAppDelete(@javax.annotation.Nonnull String clientId) throws ApiException { apiAppDeleteWithHttpInfo(clientId); } @@ -150,7 +150,8 @@ public void apiAppDelete(String clientId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse apiAppDeleteWithHttpInfo(String clientId) throws ApiException { + public ApiResponse apiAppDeleteWithHttpInfo(@javax.annotation.Nonnull String clientId) + throws ApiException { // Check required parameters if (clientId == null) { @@ -200,7 +201,8 @@ public ApiResponse apiAppDeleteWithHttpInfo(String clientId) throws ApiExc * 4XX failed_operation - * */ - public ApiAppGetResponse apiAppGet(String clientId) throws ApiException { + public ApiAppGetResponse apiAppGet(@javax.annotation.Nonnull String clientId) + throws ApiException { return apiAppGetWithHttpInfo(clientId).getData(); } @@ -218,8 +220,8 @@ public ApiAppGetResponse apiAppGet(String clientId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse apiAppGetWithHttpInfo(String clientId) - throws ApiException { + public ApiResponse apiAppGetWithHttpInfo( + @javax.annotation.Nonnull String clientId) throws ApiException { // Check required parameters if (clientId == null) { @@ -274,7 +276,9 @@ public ApiResponse apiAppGetWithHttpInfo(String clientId) * 4XX failed_operation - * */ - public ApiAppListResponse apiAppList(Integer page, Integer pageSize) throws ApiException { + public ApiAppListResponse apiAppList( + @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) + throws ApiException { return apiAppListWithHttpInfo(page, pageSize).getData(); } @@ -335,7 +339,8 @@ public ApiResponse apiAppListWithHttpInfo(Integer page) * 4XX failed_operation - * */ - public ApiResponse apiAppListWithHttpInfo(Integer page, Integer pageSize) + public ApiResponse apiAppListWithHttpInfo( + @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { @@ -391,7 +396,9 @@ public ApiResponse apiAppListWithHttpInfo(Integer page, Inte * 4XX failed_operation - * */ - public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAppUpdateRequest) + public ApiAppGetResponse apiAppUpdate( + @javax.annotation.Nonnull String clientId, + @javax.annotation.Nonnull ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { return apiAppUpdateWithHttpInfo(clientId, apiAppUpdateRequest).getData(); } @@ -414,7 +421,9 @@ public ApiAppGetResponse apiAppUpdate(String clientId, ApiAppUpdateRequest apiAp * */ public ApiResponse apiAppUpdateWithHttpInfo( - String clientId, ApiAppUpdateRequest apiAppUpdateRequest) throws ApiException { + @javax.annotation.Nonnull String clientId, + @javax.annotation.Nonnull ApiAppUpdateRequest apiAppUpdateRequest) + throws ApiException { // Check required parameters if (clientId == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java index f928d5c26..8461ed921 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/BulkSendJobApi.java @@ -16,7 +16,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class BulkSendJobApi { private ApiClient apiClient; @@ -66,7 +66,10 @@ public void setApiClient(ApiClient apiClient) { * */ public BulkSendJobGetResponse bulkSendJobGet( - String bulkSendJobId, Integer page, Integer pageSize) throws ApiException { + @javax.annotation.Nonnull String bulkSendJobId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize) + throws ApiException { return bulkSendJobGetWithHttpInfo(bulkSendJobId, page, pageSize).getData(); } @@ -131,7 +134,10 @@ public ApiResponse bulkSendJobGetWithHttpInfo( * */ public ApiResponse bulkSendJobGetWithHttpInfo( - String bulkSendJobId, Integer page, Integer pageSize) throws ApiException { + @javax.annotation.Nonnull String bulkSendJobId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize) + throws ApiException { if (page == null) { page = 1; @@ -200,7 +206,8 @@ public ApiResponse bulkSendJobGetWithHttpInfo( * 4XX failed_operation - * */ - public BulkSendJobListResponse bulkSendJobList(Integer page, Integer pageSize) + public BulkSendJobListResponse bulkSendJobList( + @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { return bulkSendJobListWithHttpInfo(page, pageSize).getData(); } @@ -262,7 +269,8 @@ public ApiResponse bulkSendJobListWithHttpInfo(Integer * */ public ApiResponse bulkSendJobListWithHttpInfo( - Integer page, Integer pageSize) throws ApiException { + @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) + throws ApiException { if (page == null) { page = 1; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java index ccb577536..ee016d2fa 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/DocumentApi.java @@ -13,7 +13,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class DocumentApi { private ApiClient apiClient; @@ -59,7 +59,8 @@ public void setApiClient(ApiClient apiClient) { * */ public DocumentFieldDetectionResponse documentDetectFields( - DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + @javax.annotation.Nonnull DocumentFieldDetectionRequest documentFieldDetectionRequest) + throws ApiException { return documentDetectFieldsWithHttpInfo(documentFieldDetectionRequest).getData(); } @@ -79,7 +80,8 @@ public DocumentFieldDetectionResponse documentDetectFields( * */ public ApiResponse documentDetectFieldsWithHttpInfo( - DocumentFieldDetectionRequest documentFieldDetectionRequest) throws ApiException { + @javax.annotation.Nonnull DocumentFieldDetectionRequest documentFieldDetectionRequest) + throws ApiException { // Check required parameters if (documentFieldDetectionRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java index e89671c3d..8131fe6ed 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/EmbeddedApi.java @@ -15,7 +15,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class EmbeddedApi { private ApiClient apiClient; @@ -63,7 +63,9 @@ public void setApiClient(ApiClient apiClient) { * */ public EmbeddedEditUrlResponse embeddedEditUrl( - String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull EmbeddedEditUrlRequest embeddedEditUrlRequest) + throws ApiException { return embeddedEditUrlWithHttpInfo(templateId, embeddedEditUrlRequest).getData(); } @@ -85,7 +87,9 @@ public EmbeddedEditUrlResponse embeddedEditUrl( * */ public ApiResponse embeddedEditUrlWithHttpInfo( - String templateId, EmbeddedEditUrlRequest embeddedEditUrlRequest) throws ApiException { + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull EmbeddedEditUrlRequest embeddedEditUrlRequest) + throws ApiException { // Check required parameters if (templateId == null) { @@ -149,7 +153,8 @@ public ApiResponse embeddedEditUrlWithHttpInfo( * 4XX failed_operation - * */ - public EmbeddedSignUrlResponse embeddedSignUrl(String signatureId) throws ApiException { + public EmbeddedSignUrlResponse embeddedSignUrl(@javax.annotation.Nonnull String signatureId) + throws ApiException { return embeddedSignUrlWithHttpInfo(signatureId).getData(); } @@ -169,8 +174,8 @@ public EmbeddedSignUrlResponse embeddedSignUrl(String signatureId) throws ApiExc * 4XX failed_operation - * */ - public ApiResponse embeddedSignUrlWithHttpInfo(String signatureId) - throws ApiException { + public ApiResponse embeddedSignUrlWithHttpInfo( + @javax.annotation.Nonnull String signatureId) throws ApiException { // Check required parameters if (signatureId == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java index 259f1117d..20e8aaea6 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxApi.java @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class FaxApi { private ApiClient apiClient; @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { * 4XX failed_operation - * */ - public void faxDelete(String faxId) throws ApiException { + public void faxDelete(@javax.annotation.Nonnull String faxId) throws ApiException { faxDeleteWithHttpInfo(faxId); } @@ -79,7 +79,8 @@ public void faxDelete(String faxId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse faxDeleteWithHttpInfo(String faxId) throws ApiException { + public ApiResponse faxDeleteWithHttpInfo(@javax.annotation.Nonnull String faxId) + throws ApiException { // Check required parameters if (faxId == null) { @@ -128,7 +129,7 @@ public ApiResponse faxDeleteWithHttpInfo(String faxId) throws ApiException * 4XX failed_operation - * */ - public File faxFiles(String faxId) throws ApiException { + public File faxFiles(@javax.annotation.Nonnull String faxId) throws ApiException { return faxFilesWithHttpInfo(faxId).getData(); } @@ -146,7 +147,8 @@ public File faxFiles(String faxId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse faxFilesWithHttpInfo(String faxId) throws ApiException { + public ApiResponse faxFilesWithHttpInfo(@javax.annotation.Nonnull String faxId) + throws ApiException { // Check required parameters if (faxId == null) { @@ -197,7 +199,7 @@ public ApiResponse faxFilesWithHttpInfo(String faxId) throws ApiException * 4XX failed_operation - * */ - public FaxGetResponse faxGet(String faxId) throws ApiException { + public FaxGetResponse faxGet(@javax.annotation.Nonnull String faxId) throws ApiException { return faxGetWithHttpInfo(faxId).getData(); } @@ -215,7 +217,8 @@ public FaxGetResponse faxGet(String faxId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse faxGetWithHttpInfo(String faxId) throws ApiException { + public ApiResponse faxGetWithHttpInfo(@javax.annotation.Nonnull String faxId) + throws ApiException { // Check required parameters if (faxId == null) { @@ -268,7 +271,9 @@ public ApiResponse faxGetWithHttpInfo(String faxId) throws ApiEx * 4XX failed_operation - * */ - public FaxListResponse faxList(Integer page, Integer pageSize) throws ApiException { + public FaxListResponse faxList( + @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) + throws ApiException { return faxListWithHttpInfo(page, pageSize).getData(); } @@ -327,7 +332,8 @@ public ApiResponse faxListWithHttpInfo(Integer page) throws Api * 4XX failed_operation - * */ - public ApiResponse faxListWithHttpInfo(Integer page, Integer pageSize) + public ApiResponse faxListWithHttpInfo( + @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize) throws ApiException { if (page == null) { @@ -379,7 +385,8 @@ public ApiResponse faxListWithHttpInfo(Integer page, Integer pa * 4XX failed_operation - * */ - public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException { + public FaxGetResponse faxSend(@javax.annotation.Nonnull FaxSendRequest faxSendRequest) + throws ApiException { return faxSendWithHttpInfo(faxSendRequest).getData(); } @@ -397,8 +404,8 @@ public FaxGetResponse faxSend(FaxSendRequest faxSendRequest) throws ApiException * 4XX failed_operation - * */ - public ApiResponse faxSendWithHttpInfo(FaxSendRequest faxSendRequest) - throws ApiException { + public ApiResponse faxSendWithHttpInfo( + @javax.annotation.Nonnull FaxSendRequest faxSendRequest) throws ApiException { // Check required parameters if (faxSendRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java index 346232fe7..1e1637231 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/FaxLineApi.java @@ -21,7 +21,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class FaxLineApi { private ApiClient apiClient; @@ -65,7 +65,8 @@ public void setApiClient(ApiClient apiClient) { * 4XX failed_operation - * */ - public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserRequest) + public FaxLineResponse faxLineAddUser( + @javax.annotation.Nonnull FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { return faxLineAddUserWithHttpInfo(faxLineAddUserRequest).getData(); } @@ -85,7 +86,8 @@ public FaxLineResponse faxLineAddUser(FaxLineAddUserRequest faxLineAddUserReques * */ public ApiResponse faxLineAddUserWithHttpInfo( - FaxLineAddUserRequest faxLineAddUserRequest) throws ApiException { + @javax.annotation.Nonnull FaxLineAddUserRequest faxLineAddUserRequest) + throws ApiException { // Check required parameters if (faxLineAddUserRequest == null) { @@ -140,7 +142,11 @@ public ApiResponse faxLineAddUserWithHttpInfo( * */ public FaxLineAreaCodeGetResponse faxLineAreaCodeGet( - String country, String state, String province, String city) throws ApiException { + @javax.annotation.Nonnull String country, + @javax.annotation.Nullable String state, + @javax.annotation.Nullable String province, + @javax.annotation.Nullable String city) + throws ApiException { return faxLineAreaCodeGetWithHttpInfo(country, state, province, city).getData(); } @@ -228,7 +234,11 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo( * */ public ApiResponse faxLineAreaCodeGetWithHttpInfo( - String country, String state, String province, String city) throws ApiException { + @javax.annotation.Nonnull String country, + @javax.annotation.Nullable String state, + @javax.annotation.Nullable String province, + @javax.annotation.Nullable String city) + throws ApiException { // Check required parameters if (country == null) { @@ -283,7 +293,8 @@ public ApiResponse faxLineAreaCodeGetWithHttpInfo( * 4XX failed_operation - * */ - public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) + public FaxLineResponse faxLineCreate( + @javax.annotation.Nonnull FaxLineCreateRequest faxLineCreateRequest) throws ApiException { return faxLineCreateWithHttpInfo(faxLineCreateRequest).getData(); } @@ -303,7 +314,8 @@ public FaxLineResponse faxLineCreate(FaxLineCreateRequest faxLineCreateRequest) * */ public ApiResponse faxLineCreateWithHttpInfo( - FaxLineCreateRequest faxLineCreateRequest) throws ApiException { + @javax.annotation.Nonnull FaxLineCreateRequest faxLineCreateRequest) + throws ApiException { // Check required parameters if (faxLineCreateRequest == null) { @@ -352,7 +364,8 @@ public ApiResponse faxLineCreateWithHttpInfo( * 4XX failed_operation - * */ - public void faxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest) throws ApiException { + public void faxLineDelete(@javax.annotation.Nonnull FaxLineDeleteRequest faxLineDeleteRequest) + throws ApiException { faxLineDeleteWithHttpInfo(faxLineDeleteRequest); } @@ -370,7 +383,8 @@ public void faxLineDelete(FaxLineDeleteRequest faxLineDeleteRequest) throws ApiE * 4XX failed_operation - * */ - public ApiResponse faxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineDeleteRequest) + public ApiResponse faxLineDeleteWithHttpInfo( + @javax.annotation.Nonnull FaxLineDeleteRequest faxLineDeleteRequest) throws ApiException { // Check required parameters @@ -420,7 +434,7 @@ public ApiResponse faxLineDeleteWithHttpInfo(FaxLineDeleteRequest faxLineD * 4XX failed_operation - * */ - public FaxLineResponse faxLineGet(String number) throws ApiException { + public FaxLineResponse faxLineGet(@javax.annotation.Nonnull String number) throws ApiException { return faxLineGetWithHttpInfo(number).getData(); } @@ -438,7 +452,8 @@ public FaxLineResponse faxLineGet(String number) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse faxLineGetWithHttpInfo(String number) throws ApiException { + public ApiResponse faxLineGetWithHttpInfo( + @javax.annotation.Nonnull String number) throws ApiException { // Check required parameters if (number == null) { @@ -494,7 +509,10 @@ public ApiResponse faxLineGetWithHttpInfo(String number) throws * */ public FaxLineListResponse faxLineList( - String accountId, Integer page, Integer pageSize, Boolean showTeamLines) + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize, + @javax.annotation.Nullable Boolean showTeamLines) throws ApiException { return faxLineListWithHttpInfo(accountId, page, pageSize, showTeamLines).getData(); } @@ -607,7 +625,10 @@ public ApiResponse faxLineListWithHttpInfo( * */ public ApiResponse faxLineListWithHttpInfo( - String accountId, Integer page, Integer pageSize, Boolean showTeamLines) + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize, + @javax.annotation.Nullable Boolean showTeamLines) throws ApiException { if (page == null) { @@ -663,7 +684,8 @@ public ApiResponse faxLineListWithHttpInfo( * 4XX failed_operation - * */ - public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveUserRequest) + public FaxLineResponse faxLineRemoveUser( + @javax.annotation.Nonnull FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { return faxLineRemoveUserWithHttpInfo(faxLineRemoveUserRequest).getData(); } @@ -683,7 +705,8 @@ public FaxLineResponse faxLineRemoveUser(FaxLineRemoveUserRequest faxLineRemoveU * */ public ApiResponse faxLineRemoveUserWithHttpInfo( - FaxLineRemoveUserRequest faxLineRemoveUserRequest) throws ApiException { + @javax.annotation.Nonnull FaxLineRemoveUserRequest faxLineRemoveUserRequest) + throws ApiException { // Check required parameters if (faxLineRemoveUserRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/OAuthApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/OAuthApi.java index 4286c030c..f2ef94ad1 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/OAuthApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/OAuthApi.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class OAuthApi { private ApiClient apiClient; @@ -60,7 +60,8 @@ public void setApiClient(ApiClient apiClient) { * */ public OAuthTokenResponse oauthTokenGenerate( - OAuthTokenGenerateRequest oauthTokenGenerateRequest) throws ApiException { + @javax.annotation.Nonnull OAuthTokenGenerateRequest oauthTokenGenerateRequest) + throws ApiException { return oauthTokenGenerateWithHttpInfo(oauthTokenGenerateRequest).getData(); } @@ -80,7 +81,8 @@ public OAuthTokenResponse oauthTokenGenerate( * */ public ApiResponse oauthTokenGenerateWithHttpInfo( - OAuthTokenGenerateRequest oauthTokenGenerateRequest) throws ApiException { + @javax.annotation.Nonnull OAuthTokenGenerateRequest oauthTokenGenerateRequest) + throws ApiException { // Check required parameters if (oauthTokenGenerateRequest == null) { @@ -133,7 +135,8 @@ public ApiResponse oauthTokenGenerateWithHttpInfo( * 4XX failed_operation - * */ - public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenRefreshRequest) + public OAuthTokenResponse oauthTokenRefresh( + @javax.annotation.Nonnull OAuthTokenRefreshRequest oauthTokenRefreshRequest) throws ApiException { return oauthTokenRefreshWithHttpInfo(oauthTokenRefreshRequest).getData(); } @@ -156,7 +159,8 @@ public OAuthTokenResponse oauthTokenRefresh(OAuthTokenRefreshRequest oauthTokenR * */ public ApiResponse oauthTokenRefreshWithHttpInfo( - OAuthTokenRefreshRequest oauthTokenRefreshRequest) throws ApiException { + @javax.annotation.Nonnull OAuthTokenRefreshRequest oauthTokenRefreshRequest) + throws ApiException { // Check required parameters if (oauthTokenRefreshRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java index 32c6bea91..746ce6af4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/ReportApi.java @@ -13,7 +13,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ReportApi { private ApiClient apiClient; @@ -60,8 +60,8 @@ public void setApiClient(ApiClient apiClient) { * 4XX failed_operation - * */ - public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest) - throws ApiException { + public ReportCreateResponse reportCreate( + @javax.annotation.Nonnull ReportCreateRequest reportCreateRequest) throws ApiException { return reportCreateWithHttpInfo(reportCreateRequest).getData(); } @@ -83,7 +83,7 @@ public ReportCreateResponse reportCreate(ReportCreateRequest reportCreateRequest * */ public ApiResponse reportCreateWithHttpInfo( - ReportCreateRequest reportCreateRequest) throws ApiException { + @javax.annotation.Nonnull ReportCreateRequest reportCreateRequest) throws ApiException { // Check required parameters if (reportCreateRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java index acda9a05e..8b67aac30 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/SignatureRequestApi.java @@ -32,7 +32,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class SignatureRequestApi { private ApiClient apiClient; @@ -81,8 +81,9 @@ public void setApiClient(ApiClient apiClient) { * */ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest - signatureRequestBulkCreateEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestBulkCreateEmbeddedWithTemplateRequest + signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { return signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( signatureRequestBulkCreateEmbeddedWithTemplateRequest) @@ -109,8 +110,9 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( */ public ApiResponse signatureRequestBulkCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestBulkCreateEmbeddedWithTemplateRequest - signatureRequestBulkCreateEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestBulkCreateEmbeddedWithTemplateRequest + signatureRequestBulkCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -167,7 +169,9 @@ public BulkSendJobSendResponse signatureRequestBulkCreateEmbeddedWithTemplate( * */ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestBulkSendWithTemplateRequest + signatureRequestBulkSendWithTemplateRequest) throws ApiException { return signatureRequestBulkSendWithTemplateWithHttpInfo( signatureRequestBulkSendWithTemplateRequest) @@ -191,7 +195,9 @@ public BulkSendJobSendResponse signatureRequestBulkSendWithTemplate( * */ public ApiResponse signatureRequestBulkSendWithTemplateWithHttpInfo( - SignatureRequestBulkSendWithTemplateRequest signatureRequestBulkSendWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestBulkSendWithTemplateRequest + signatureRequestBulkSendWithTemplateRequest) throws ApiException { // Check required parameters @@ -260,7 +266,8 @@ public ApiResponse signatureRequestBulkSendWithTemplate * 4XX failed_operation - * */ - public void signatureRequestCancel(String signatureRequestId) throws ApiException { + public void signatureRequestCancel(@javax.annotation.Nonnull String signatureRequestId) + throws ApiException { signatureRequestCancelWithHttpInfo(signatureRequestId); } @@ -295,8 +302,8 @@ public void signatureRequestCancel(String signatureRequestId) throws ApiExceptio * 4XX failed_operation - * */ - public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequestId) - throws ApiException { + public ApiResponse signatureRequestCancelWithHttpInfo( + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -356,7 +363,8 @@ public ApiResponse signatureRequestCancelWithHttpInfo(String signatureRequ * */ public SignatureRequestGetResponse signatureRequestCreateEmbedded( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) + @javax.annotation.Nonnull + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { return signatureRequestCreateEmbeddedWithHttpInfo(signatureRequestCreateEmbeddedRequest) .getData(); @@ -382,7 +390,8 @@ public SignatureRequestGetResponse signatureRequestCreateEmbedded( * */ public ApiResponse signatureRequestCreateEmbeddedWithHttpInfo( - SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) + @javax.annotation.Nonnull + SignatureRequestCreateEmbeddedRequest signatureRequestCreateEmbeddedRequest) throws ApiException { // Check required parameters @@ -439,8 +448,9 @@ public ApiResponse signatureRequestCreateEmbeddedWi * */ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( - SignatureRequestCreateEmbeddedWithTemplateRequest - signatureRequestCreateEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestCreateEmbeddedWithTemplateRequest + signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { return signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( signatureRequestCreateEmbeddedWithTemplateRequest) @@ -466,8 +476,9 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( */ public ApiResponse signatureRequestCreateEmbeddedWithTemplateWithHttpInfo( - SignatureRequestCreateEmbeddedWithTemplateRequest - signatureRequestCreateEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestCreateEmbeddedWithTemplateRequest + signatureRequestCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -526,7 +537,8 @@ public SignatureRequestGetResponse signatureRequestCreateEmbeddedWithTemplate( * */ public SignatureRequestGetResponse signatureRequestEdit( - String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { return signatureRequestEditWithHttpInfo(signatureRequestId, signatureRequestEditRequest) .getData(); @@ -551,7 +563,8 @@ public SignatureRequestGetResponse signatureRequestEdit( * */ public ApiResponse signatureRequestEditWithHttpInfo( - String signatureRequestId, SignatureRequestEditRequest signatureRequestEditRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull SignatureRequestEditRequest signatureRequestEditRequest) throws ApiException { // Check required parameters @@ -624,8 +637,9 @@ public ApiResponse signatureRequestEditWithHttpInfo * */ public SignatureRequestGetResponse signatureRequestEditEmbedded( - String signatureRequestId, - SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { return signatureRequestEditEmbeddedWithHttpInfo( signatureRequestId, signatureRequestEditEmbeddedRequest) @@ -653,8 +667,9 @@ public SignatureRequestGetResponse signatureRequestEditEmbedded( * */ public ApiResponse signatureRequestEditEmbeddedWithHttpInfo( - String signatureRequestId, - SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + SignatureRequestEditEmbeddedRequest signatureRequestEditEmbeddedRequest) throws ApiException { // Check required parameters @@ -725,9 +740,10 @@ public ApiResponse signatureRequestEditEmbeddedWith * */ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( - String signatureRequestId, - SignatureRequestEditEmbeddedWithTemplateRequest - signatureRequestEditEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + SignatureRequestEditEmbeddedWithTemplateRequest + signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { return signatureRequestEditEmbeddedWithTemplateWithHttpInfo( signatureRequestId, signatureRequestEditEmbeddedWithTemplateRequest) @@ -754,9 +770,10 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( */ public ApiResponse signatureRequestEditEmbeddedWithTemplateWithHttpInfo( - String signatureRequestId, - SignatureRequestEditEmbeddedWithTemplateRequest - signatureRequestEditEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + SignatureRequestEditEmbeddedWithTemplateRequest + signatureRequestEditEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -827,8 +844,9 @@ public SignatureRequestGetResponse signatureRequestEditEmbeddedWithTemplate( * */ public SignatureRequestGetResponse signatureRequestEditWithTemplate( - String signatureRequestId, - SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { return signatureRequestEditWithTemplateWithHttpInfo( signatureRequestId, signatureRequestEditWithTemplateRequest) @@ -853,8 +871,9 @@ public SignatureRequestGetResponse signatureRequestEditWithTemplate( * */ public ApiResponse signatureRequestEditWithTemplateWithHttpInfo( - String signatureRequestId, - SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + SignatureRequestEditWithTemplateRequest signatureRequestEditWithTemplateRequest) throws ApiException { // Check required parameters @@ -924,7 +943,9 @@ public ApiResponse signatureRequestEditWithTemplate * 4XX failed_operation - * */ - public File signatureRequestFiles(String signatureRequestId, String fileType) + public File signatureRequestFiles( + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nullable String fileType) throws ApiException { return signatureRequestFilesWithHttpInfo(signatureRequestId, fileType).getData(); } @@ -967,7 +988,9 @@ public ApiResponse signatureRequestFilesWithHttpInfo(String signatureReque * */ public ApiResponse signatureRequestFilesWithHttpInfo( - String signatureRequestId, String fileType) throws ApiException { + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nullable String fileType) + throws ApiException { if (fileType == null) { fileType = "pdf"; @@ -1034,8 +1057,8 @@ public ApiResponse signatureRequestFilesWithHttpInfo( * 4XX failed_operation - * */ - public FileResponseDataUri signatureRequestFilesAsDataUri(String signatureRequestId) - throws ApiException { + public FileResponseDataUri signatureRequestFilesAsDataUri( + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { return signatureRequestFilesAsDataUriWithHttpInfo(signatureRequestId).getData(); } @@ -1057,7 +1080,7 @@ public FileResponseDataUri signatureRequestFilesAsDataUri(String signatureReques * */ public ApiResponse signatureRequestFilesAsDataUriWithHttpInfo( - String signatureRequestId) throws ApiException { + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1120,7 +1143,9 @@ public ApiResponse signatureRequestFilesAsDataUriWithHttpIn * */ public FileResponse signatureRequestFilesAsFileUrl( - String signatureRequestId, Integer forceDownload) throws ApiException { + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nullable Integer forceDownload) + throws ApiException { return signatureRequestFilesAsFileUrlWithHttpInfo(signatureRequestId, forceDownload) .getData(); } @@ -1167,7 +1192,9 @@ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo( * */ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo( - String signatureRequestId, Integer forceDownload) throws ApiException { + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nullable Integer forceDownload) + throws ApiException { if (forceDownload == null) { forceDownload = 1; @@ -1230,8 +1257,8 @@ public ApiResponse signatureRequestFilesAsFileUrlWithHttpInfo( * 4XX failed_operation - * */ - public SignatureRequestGetResponse signatureRequestGet(String signatureRequestId) - throws ApiException { + public SignatureRequestGetResponse signatureRequestGet( + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { return signatureRequestGetWithHttpInfo(signatureRequestId).getData(); } @@ -1251,7 +1278,7 @@ public SignatureRequestGetResponse signatureRequestGet(String signatureRequestId * */ public ApiResponse signatureRequestGetWithHttpInfo( - String signatureRequestId) throws ApiException { + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1318,7 +1345,11 @@ public ApiResponse signatureRequestGetWithHttpInfo( * */ public SignatureRequestListResponse signatureRequestList( - String accountId, Integer page, Integer pageSize, String query) throws ApiException { + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize, + @javax.annotation.Nullable String query) + throws ApiException { return signatureRequestListWithHttpInfo(accountId, page, pageSize, query).getData(); } @@ -1437,7 +1468,11 @@ public ApiResponse signatureRequestListWithHttpInf * */ public ApiResponse signatureRequestListWithHttpInfo( - String accountId, Integer page, Integer pageSize, String query) throws ApiException { + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize, + @javax.annotation.Nullable String query) + throws ApiException { if (page == null) { page = 1; @@ -1494,8 +1529,8 @@ public ApiResponse signatureRequestListWithHttpInf * 4XX failed_operation - * */ - public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureRequestId) - throws ApiException { + public SignatureRequestGetResponse signatureRequestReleaseHold( + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { return signatureRequestReleaseHoldWithHttpInfo(signatureRequestId).getData(); } @@ -1517,7 +1552,7 @@ public SignatureRequestGetResponse signatureRequestReleaseHold(String signatureR * */ public ApiResponse signatureRequestReleaseHoldWithHttpInfo( - String signatureRequestId) throws ApiException { + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1578,7 +1613,8 @@ public ApiResponse signatureRequestReleaseHoldWithH * */ public SignatureRequestGetResponse signatureRequestRemind( - String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { return signatureRequestRemindWithHttpInfo(signatureRequestId, signatureRequestRemindRequest) .getData(); @@ -1603,7 +1639,8 @@ public SignatureRequestGetResponse signatureRequestRemind( * */ public ApiResponse signatureRequestRemindWithHttpInfo( - String signatureRequestId, SignatureRequestRemindRequest signatureRequestRemindRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull SignatureRequestRemindRequest signatureRequestRemindRequest) throws ApiException { // Check required parameters @@ -1672,7 +1709,8 @@ public ApiResponse signatureRequestRemindWithHttpIn * 4XX failed_operation - * */ - public void signatureRequestRemove(String signatureRequestId) throws ApiException { + public void signatureRequestRemove(@javax.annotation.Nonnull String signatureRequestId) + throws ApiException { signatureRequestRemoveWithHttpInfo(signatureRequestId); } @@ -1695,8 +1733,8 @@ public void signatureRequestRemove(String signatureRequestId) throws ApiExceptio * 4XX failed_operation - * */ - public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequestId) - throws ApiException { + public ApiResponse signatureRequestRemoveWithHttpInfo( + @javax.annotation.Nonnull String signatureRequestId) throws ApiException { // Check required parameters if (signatureRequestId == null) { @@ -1754,7 +1792,8 @@ public ApiResponse signatureRequestRemoveWithHttpInfo(String signatureRequ * */ public SignatureRequestGetResponse signatureRequestSend( - SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + @javax.annotation.Nonnull SignatureRequestSendRequest signatureRequestSendRequest) + throws ApiException { return signatureRequestSendWithHttpInfo(signatureRequestSendRequest).getData(); } @@ -1776,7 +1815,8 @@ public SignatureRequestGetResponse signatureRequestSend( * */ public ApiResponse signatureRequestSendWithHttpInfo( - SignatureRequestSendRequest signatureRequestSendRequest) throws ApiException { + @javax.annotation.Nonnull SignatureRequestSendRequest signatureRequestSendRequest) + throws ApiException { // Check required parameters if (signatureRequestSendRequest == null) { @@ -1830,7 +1870,8 @@ public ApiResponse signatureRequestSendWithHttpInfo * */ public SignatureRequestGetResponse signatureRequestSendWithTemplate( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { return signatureRequestSendWithTemplateWithHttpInfo(signatureRequestSendWithTemplateRequest) .getData(); @@ -1852,7 +1893,8 @@ public SignatureRequestGetResponse signatureRequestSendWithTemplate( * */ public ApiResponse signatureRequestSendWithTemplateWithHttpInfo( - SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) + @javax.annotation.Nonnull + SignatureRequestSendWithTemplateRequest signatureRequestSendWithTemplateRequest) throws ApiException { // Check required parameters @@ -1911,7 +1953,8 @@ public ApiResponse signatureRequestSendWithTemplate * */ public SignatureRequestGetResponse signatureRequestUpdate( - String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { return signatureRequestUpdateWithHttpInfo(signatureRequestId, signatureRequestUpdateRequest) .getData(); @@ -1937,7 +1980,8 @@ public SignatureRequestGetResponse signatureRequestUpdate( * */ public ApiResponse signatureRequestUpdateWithHttpInfo( - String signatureRequestId, SignatureRequestUpdateRequest signatureRequestUpdateRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull SignatureRequestUpdateRequest signatureRequestUpdateRequest) throws ApiException { // Check required parameters diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java index 7ccffdb6d..bea4c07c5 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TeamApi.java @@ -23,7 +23,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class TeamApi { private ApiClient apiClient; @@ -71,7 +71,9 @@ public void setApiClient(ApiClient apiClient) { * 4XX failed_operation - * */ - public TeamGetResponse teamAddMember(TeamAddMemberRequest teamAddMemberRequest, String teamId) + public TeamGetResponse teamAddMember( + @javax.annotation.Nonnull TeamAddMemberRequest teamAddMemberRequest, + @javax.annotation.Nullable String teamId) throws ApiException { return teamAddMemberWithHttpInfo(teamAddMemberRequest, teamId).getData(); } @@ -115,7 +117,9 @@ public ApiResponse teamAddMemberWithHttpInfo( * */ public ApiResponse teamAddMemberWithHttpInfo( - TeamAddMemberRequest teamAddMemberRequest, String teamId) throws ApiException { + @javax.annotation.Nonnull TeamAddMemberRequest teamAddMemberRequest, + @javax.annotation.Nullable String teamId) + throws ApiException { // Check required parameters if (teamAddMemberRequest == null) { @@ -170,7 +174,8 @@ public ApiResponse teamAddMemberWithHttpInfo( * 4XX failed_operation - * */ - public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws ApiException { + public TeamGetResponse teamCreate(@javax.annotation.Nonnull TeamCreateRequest teamCreateRequest) + throws ApiException { return teamCreateWithHttpInfo(teamCreateRequest).getData(); } @@ -189,8 +194,8 @@ public TeamGetResponse teamCreate(TeamCreateRequest teamCreateRequest) throws Ap * 4XX failed_operation - * */ - public ApiResponse teamCreateWithHttpInfo(TeamCreateRequest teamCreateRequest) - throws ApiException { + public ApiResponse teamCreateWithHttpInfo( + @javax.annotation.Nonnull TeamCreateRequest teamCreateRequest) throws ApiException { // Check required parameters if (teamCreateRequest == null) { @@ -353,7 +358,8 @@ public ApiResponse teamGetWithHttpInfo() throws ApiException { * 4XX failed_operation - * */ - public TeamGetInfoResponse teamInfo(String teamId) throws ApiException { + public TeamGetInfoResponse teamInfo(@javax.annotation.Nullable String teamId) + throws ApiException { return teamInfoWithHttpInfo(teamId).getData(); } @@ -389,8 +395,8 @@ public ApiResponse teamInfoWithHttpInfo() throws ApiExcepti * 4XX failed_operation - * */ - public ApiResponse teamInfoWithHttpInfo(String teamId) - throws ApiException { + public ApiResponse teamInfoWithHttpInfo( + @javax.annotation.Nullable String teamId) throws ApiException { // Query parameters List localVarQueryParams = @@ -435,7 +441,8 @@ public ApiResponse teamInfoWithHttpInfo(String teamId) * 4XX failed_operation - * */ - public TeamInvitesResponse teamInvites(String emailAddress) throws ApiException { + public TeamInvitesResponse teamInvites(@javax.annotation.Nullable String emailAddress) + throws ApiException { return teamInvitesWithHttpInfo(emailAddress).getData(); } @@ -471,8 +478,8 @@ public ApiResponse teamInvitesWithHttpInfo() throws ApiExce * 4XX failed_operation - * */ - public ApiResponse teamInvitesWithHttpInfo(String emailAddress) - throws ApiException { + public ApiResponse teamInvitesWithHttpInfo( + @javax.annotation.Nullable String emailAddress) throws ApiException { // Query parameters List localVarQueryParams = @@ -522,7 +529,10 @@ public ApiResponse teamInvitesWithHttpInfo(String emailAddr * 4XX failed_operation - * */ - public TeamMembersResponse teamMembers(String teamId, Integer page, Integer pageSize) + public TeamMembersResponse teamMembers( + @javax.annotation.Nonnull String teamId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize) throws ApiException { return teamMembersWithHttpInfo(teamId, page, pageSize).getData(); } @@ -587,7 +597,10 @@ public ApiResponse teamMembersWithHttpInfo(String teamId, I * */ public ApiResponse teamMembersWithHttpInfo( - String teamId, Integer page, Integer pageSize) throws ApiException { + @javax.annotation.Nonnull String teamId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize) + throws ApiException { if (page == null) { page = 1; @@ -655,7 +668,8 @@ public ApiResponse teamMembersWithHttpInfo( * 4XX failed_operation - * */ - public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMemberRequest) + public TeamGetResponse teamRemoveMember( + @javax.annotation.Nonnull TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { return teamRemoveMemberWithHttpInfo(teamRemoveMemberRequest).getData(); } @@ -680,7 +694,8 @@ public TeamGetResponse teamRemoveMember(TeamRemoveMemberRequest teamRemoveMember * */ public ApiResponse teamRemoveMemberWithHttpInfo( - TeamRemoveMemberRequest teamRemoveMemberRequest) throws ApiException { + @javax.annotation.Nonnull TeamRemoveMemberRequest teamRemoveMemberRequest) + throws ApiException { // Check required parameters if (teamRemoveMemberRequest == null) { @@ -734,7 +749,10 @@ public ApiResponse teamRemoveMemberWithHttpInfo( * 4XX failed_operation - * */ - public TeamSubTeamsResponse teamSubTeams(String teamId, Integer page, Integer pageSize) + public TeamSubTeamsResponse teamSubTeams( + @javax.annotation.Nonnull String teamId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize) throws ApiException { return teamSubTeamsWithHttpInfo(teamId, page, pageSize).getData(); } @@ -798,7 +816,10 @@ public ApiResponse teamSubTeamsWithHttpInfo(String teamId, * */ public ApiResponse teamSubTeamsWithHttpInfo( - String teamId, Integer page, Integer pageSize) throws ApiException { + @javax.annotation.Nonnull String teamId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize) + throws ApiException { if (page == null) { page = 1; @@ -861,7 +882,8 @@ public ApiResponse teamSubTeamsWithHttpInfo( * 4XX failed_operation - * */ - public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws ApiException { + public TeamGetResponse teamUpdate(@javax.annotation.Nonnull TeamUpdateRequest teamUpdateRequest) + throws ApiException { return teamUpdateWithHttpInfo(teamUpdateRequest).getData(); } @@ -879,8 +901,8 @@ public TeamGetResponse teamUpdate(TeamUpdateRequest teamUpdateRequest) throws Ap * 4XX failed_operation - * */ - public ApiResponse teamUpdateWithHttpInfo(TeamUpdateRequest teamUpdateRequest) - throws ApiException { + public ApiResponse teamUpdateWithHttpInfo( + @javax.annotation.Nonnull TeamUpdateRequest teamUpdateRequest) throws ApiException { // Check required parameters if (teamUpdateRequest == null) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java index f70c0134b..1b55fe16e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/TemplateApi.java @@ -27,7 +27,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class TemplateApi { private ApiClient apiClient; @@ -74,7 +74,9 @@ public void setApiClient(ApiClient apiClient) { * */ public TemplateGetResponse templateAddUser( - String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull TemplateAddUserRequest templateAddUserRequest) + throws ApiException { return templateAddUserWithHttpInfo(templateId, templateAddUserRequest).getData(); } @@ -95,7 +97,9 @@ public TemplateGetResponse templateAddUser( * */ public ApiResponse templateAddUserWithHttpInfo( - String templateId, TemplateAddUserRequest templateAddUserRequest) throws ApiException { + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull TemplateAddUserRequest templateAddUserRequest) + throws ApiException { // Check required parameters if (templateId == null) { @@ -168,7 +172,8 @@ public ApiResponse templateAddUserWithHttpInfo( * 4XX failed_operation - * */ - public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreateRequest) + public TemplateCreateResponse templateCreate( + @javax.annotation.Nonnull TemplateCreateRequest templateCreateRequest) throws ApiException { return templateCreateWithHttpInfo(templateCreateRequest).getData(); } @@ -199,7 +204,8 @@ public TemplateCreateResponse templateCreate(TemplateCreateRequest templateCreat * */ public ApiResponse templateCreateWithHttpInfo( - TemplateCreateRequest templateCreateRequest) throws ApiException { + @javax.annotation.Nonnull TemplateCreateRequest templateCreateRequest) + throws ApiException { // Check required parameters if (templateCreateRequest == null) { @@ -253,7 +259,8 @@ public ApiResponse templateCreateWithHttpInfo( * */ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) + @javax.annotation.Nonnull + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { return templateCreateEmbeddedDraftWithHttpInfo(templateCreateEmbeddedDraftRequest) .getData(); @@ -275,7 +282,8 @@ public TemplateCreateEmbeddedDraftResponse templateCreateEmbeddedDraft( * */ public ApiResponse templateCreateEmbeddedDraftWithHttpInfo( - TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) + @javax.annotation.Nonnull + TemplateCreateEmbeddedDraftRequest templateCreateEmbeddedDraftRequest) throws ApiException { // Check required parameters @@ -327,7 +335,7 @@ public ApiResponse templateCreateEmbeddedDr * 4XX failed_operation - * */ - public void templateDelete(String templateId) throws ApiException { + public void templateDelete(@javax.annotation.Nonnull String templateId) throws ApiException { templateDeleteWithHttpInfo(templateId); } @@ -345,7 +353,8 @@ public void templateDelete(String templateId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse templateDeleteWithHttpInfo(String templateId) throws ApiException { + public ApiResponse templateDeleteWithHttpInfo(@javax.annotation.Nonnull String templateId) + throws ApiException { // Check required parameters if (templateId == null) { @@ -401,7 +410,9 @@ public ApiResponse templateDeleteWithHttpInfo(String templateId) throws Ap * 4XX failed_operation - * */ - public File templateFiles(String templateId, String fileType) throws ApiException { + public File templateFiles( + @javax.annotation.Nonnull String templateId, @javax.annotation.Nullable String fileType) + throws ApiException { return templateFilesWithHttpInfo(templateId, fileType).getData(); } @@ -442,7 +453,8 @@ public ApiResponse templateFilesWithHttpInfo(String templateId) throws Api * 4XX failed_operation - * */ - public ApiResponse templateFilesWithHttpInfo(String templateId, String fileType) + public ApiResponse templateFilesWithHttpInfo( + @javax.annotation.Nonnull String templateId, @javax.annotation.Nullable String fileType) throws ApiException { // Check required parameters @@ -505,7 +517,8 @@ public ApiResponse templateFilesWithHttpInfo(String templateId, String fil * 4XX failed_operation - * */ - public FileResponseDataUri templateFilesAsDataUri(String templateId) throws ApiException { + public FileResponseDataUri templateFilesAsDataUri(@javax.annotation.Nonnull String templateId) + throws ApiException { return templateFilesAsDataUriWithHttpInfo(templateId).getData(); } @@ -527,8 +540,8 @@ public FileResponseDataUri templateFilesAsDataUri(String templateId) throws ApiE * 4XX failed_operation - * */ - public ApiResponse templateFilesAsDataUriWithHttpInfo(String templateId) - throws ApiException { + public ApiResponse templateFilesAsDataUriWithHttpInfo( + @javax.annotation.Nonnull String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -589,7 +602,9 @@ public ApiResponse templateFilesAsDataUriWithHttpInfo(Strin * 4XX failed_operation - * */ - public FileResponse templateFilesAsFileUrl(String templateId, Integer forceDownload) + public FileResponse templateFilesAsFileUrl( + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nullable Integer forceDownload) throws ApiException { return templateFilesAsFileUrlWithHttpInfo(templateId, forceDownload).getData(); } @@ -634,7 +649,9 @@ public ApiResponse templateFilesAsFileUrlWithHttpInfo(String templ * */ public ApiResponse templateFilesAsFileUrlWithHttpInfo( - String templateId, Integer forceDownload) throws ApiException { + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nullable Integer forceDownload) + throws ApiException { if (forceDownload == null) { forceDownload = 1; @@ -695,7 +712,8 @@ public ApiResponse templateFilesAsFileUrlWithHttpInfo( * 4XX failed_operation - * */ - public TemplateGetResponse templateGet(String templateId) throws ApiException { + public TemplateGetResponse templateGet(@javax.annotation.Nonnull String templateId) + throws ApiException { return templateGetWithHttpInfo(templateId).getData(); } @@ -713,8 +731,8 @@ public TemplateGetResponse templateGet(String templateId) throws ApiException { * 4XX failed_operation - * */ - public ApiResponse templateGetWithHttpInfo(String templateId) - throws ApiException { + public ApiResponse templateGetWithHttpInfo( + @javax.annotation.Nonnull String templateId) throws ApiException { // Check required parameters if (templateId == null) { @@ -776,7 +794,11 @@ public ApiResponse templateGetWithHttpInfo(String templateI * */ public TemplateListResponse templateList( - String accountId, Integer page, Integer pageSize, String query) throws ApiException { + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize, + @javax.annotation.Nullable String query) + throws ApiException { return templateListWithHttpInfo(accountId, page, pageSize, query).getData(); } @@ -891,7 +913,11 @@ public ApiResponse templateListWithHttpInfo( * */ public ApiResponse templateListWithHttpInfo( - String accountId, Integer page, Integer pageSize, String query) throws ApiException { + @javax.annotation.Nullable String accountId, + @javax.annotation.Nullable Integer page, + @javax.annotation.Nullable Integer pageSize, + @javax.annotation.Nullable String query) + throws ApiException { if (page == null) { page = 1; @@ -948,7 +974,8 @@ public ApiResponse templateListWithHttpInfo( * */ public TemplateGetResponse templateRemoveUser( - String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { return templateRemoveUserWithHttpInfo(templateId, templateRemoveUserRequest).getData(); } @@ -970,7 +997,8 @@ public TemplateGetResponse templateRemoveUser( * */ public ApiResponse templateRemoveUserWithHttpInfo( - String templateId, TemplateRemoveUserRequest templateRemoveUserRequest) + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull TemplateRemoveUserRequest templateRemoveUserRequest) throws ApiException { // Check required parameters @@ -1048,7 +1076,8 @@ public ApiResponse templateRemoveUserWithHttpInfo( * */ public TemplateUpdateFilesResponse templateUpdateFiles( - String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { return templateUpdateFilesWithHttpInfo(templateId, templateUpdateFilesRequest).getData(); } @@ -1082,7 +1111,8 @@ public TemplateUpdateFilesResponse templateUpdateFiles( * */ public ApiResponse templateUpdateFilesWithHttpInfo( - String templateId, TemplateUpdateFilesRequest templateUpdateFilesRequest) + @javax.annotation.Nonnull String templateId, + @javax.annotation.Nonnull TemplateUpdateFilesRequest templateUpdateFilesRequest) throws ApiException { // Check required parameters diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java b/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java index 61289c29f..ae02b3649 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/api/UnclaimedDraftApi.java @@ -16,7 +16,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class UnclaimedDraftApi { private ApiClient apiClient; @@ -64,7 +64,8 @@ public void setApiClient(ApiClient apiClient) { * */ public UnclaimedDraftCreateResponse unclaimedDraftCreate( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + @javax.annotation.Nonnull UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) + throws ApiException { return unclaimedDraftCreateWithHttpInfo(unclaimedDraftCreateRequest).getData(); } @@ -86,7 +87,8 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreate( * */ public ApiResponse unclaimedDraftCreateWithHttpInfo( - UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) throws ApiException { + @javax.annotation.Nonnull UnclaimedDraftCreateRequest unclaimedDraftCreateRequest) + throws ApiException { // Check required parameters if (unclaimedDraftCreateRequest == null) { @@ -145,7 +147,8 @@ public ApiResponse unclaimedDraftCreateWithHttpInf * */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) + @javax.annotation.Nonnull + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { return unclaimedDraftCreateEmbeddedWithHttpInfo(unclaimedDraftCreateEmbeddedRequest) .getData(); @@ -172,7 +175,8 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbedded( * */ public ApiResponse unclaimedDraftCreateEmbeddedWithHttpInfo( - UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) + @javax.annotation.Nonnull + UnclaimedDraftCreateEmbeddedRequest unclaimedDraftCreateEmbeddedRequest) throws ApiException { // Check required parameters @@ -232,8 +236,9 @@ public ApiResponse unclaimedDraftCreateEmbeddedWit * */ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( - UnclaimedDraftCreateEmbeddedWithTemplateRequest - unclaimedDraftCreateEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull + UnclaimedDraftCreateEmbeddedWithTemplateRequest + unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { return unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( unclaimedDraftCreateEmbeddedWithTemplateRequest) @@ -262,8 +267,9 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( */ public ApiResponse unclaimedDraftCreateEmbeddedWithTemplateWithHttpInfo( - UnclaimedDraftCreateEmbeddedWithTemplateRequest - unclaimedDraftCreateEmbeddedWithTemplateRequest) + @javax.annotation.Nonnull + UnclaimedDraftCreateEmbeddedWithTemplateRequest + unclaimedDraftCreateEmbeddedWithTemplateRequest) throws ApiException { // Check required parameters @@ -324,8 +330,9 @@ public UnclaimedDraftCreateResponse unclaimedDraftCreateEmbeddedWithTemplate( * */ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( - String signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { return unclaimedDraftEditAndResendWithHttpInfo( signatureRequestId, unclaimedDraftEditAndResendRequest) @@ -353,8 +360,9 @@ public UnclaimedDraftCreateResponse unclaimedDraftEditAndResend( * */ public ApiResponse unclaimedDraftEditAndResendWithHttpInfo( - String signatureRequestId, - UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) + @javax.annotation.Nonnull String signatureRequestId, + @javax.annotation.Nonnull + UnclaimedDraftEditAndResendRequest unclaimedDraftEditAndResendRequest) throws ApiException { // Check required parameters diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java index 9f8742a3d..60b5684d3 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/Authentication.java b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/Authentication.java index 9d183342d..870da1121 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/Authentication.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/Authentication.java @@ -18,6 +18,9 @@ import java.util.List; import java.util.Map; +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.26.0") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java index 9fd1f753b..397668cbd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBasicAuth.java @@ -22,7 +22,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java index a77c13eda..cded62bcd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java index 4e340e3f1..747f909fd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AbstractOpenApiSchema.java @@ -20,7 +20,7 @@ /** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -108,10 +108,7 @@ public String toString() { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } public boolean equals(Object o) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java index 9d881c79f..29e845f81 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateRequest.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountCreateRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -74,13 +74,13 @@ public AccountCreateRequest emailAddress(@javax.annotation.Nonnull String emailA * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -97,13 +97,13 @@ public AccountCreateRequest clientId(@javax.annotation.Nullable String clientId) * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -120,13 +120,13 @@ public AccountCreateRequest clientSecret(@javax.annotation.Nullable String clien * * @return clientSecret */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientSecret() { return clientSecret; } - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientSecret(@javax.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; @@ -144,13 +144,13 @@ public AccountCreateRequest locale(@javax.annotation.Nullable String locale) { * * @return locale */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCALE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocale() { return locale; } - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -308,9 +308,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java index 328622b72..addaa8e58 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountCreateResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountCreateResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; @@ -73,13 +73,13 @@ public AccountCreateResponse account(@javax.annotation.Nonnull AccountResponse a * @return account */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public AccountResponse getAccount() { return account; } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccount(@javax.annotation.Nonnull AccountResponse account) { this.account = account; @@ -96,13 +96,13 @@ public AccountCreateResponse oauthData( * * @return oauthData */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OAUTH_DATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OAUTH_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OAuthTokenResponse getOauthData() { return oauthData; } - @JsonProperty(JSON_PROPERTY_OAUTH_DATA) + @JsonProperty(value = JSON_PROPERTY_OAUTH_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauthData(@javax.annotation.Nullable OAuthTokenResponse oauthData) { this.oauthData = oauthData; @@ -127,13 +127,13 @@ public AccountCreateResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -267,9 +267,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountGetResponse.java index c63b7c4b9..cb8703d08 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountGetResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountGetResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; @@ -68,13 +68,13 @@ public AccountGetResponse account(@javax.annotation.Nonnull AccountResponse acco * @return account */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public AccountResponse getAccount() { return account; } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccount(@javax.annotation.Nonnull AccountResponse account) { this.account = account; @@ -98,13 +98,13 @@ public AccountGetResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -216,9 +216,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponse.java index 7d694847b..7e238b020 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponse.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountResponse { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -105,13 +105,13 @@ public AccountResponse accountId(@javax.annotation.Nullable String accountId) { * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -127,13 +127,13 @@ public AccountResponse emailAddress(@javax.annotation.Nullable String emailAddre * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -149,13 +149,13 @@ public AccountResponse isLocked(@javax.annotation.Nullable Boolean isLocked) { * * @return isLocked */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLocked() { return isLocked; } - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsLocked(@javax.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; @@ -171,13 +171,13 @@ public AccountResponse isPaidHs(@javax.annotation.Nullable Boolean isPaidHs) { * * @return isPaidHs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHs() { return isPaidHs; } - @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHs(@javax.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; @@ -193,13 +193,13 @@ public AccountResponse isPaidHf(@javax.annotation.Nullable Boolean isPaidHf) { * * @return isPaidHf */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHf() { return isPaidHf; } - @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHf(@javax.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; @@ -215,13 +215,13 @@ public AccountResponse quotas(@javax.annotation.Nullable AccountResponseQuotas q * * @return quotas */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUOTAS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponseQuotas getQuotas() { return quotas; } - @JsonProperty(JSON_PROPERTY_QUOTAS) + @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuotas(@javax.annotation.Nullable AccountResponseQuotas quotas) { this.quotas = quotas; @@ -237,13 +237,13 @@ public AccountResponse callbackUrl(@javax.annotation.Nullable String callbackUrl * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -259,13 +259,13 @@ public AccountResponse roleCode(@javax.annotation.Nullable String roleCode) { * * @return roleCode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE_CODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ROLE_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRoleCode() { return roleCode; } - @JsonProperty(JSON_PROPERTY_ROLE_CODE) + @JsonProperty(value = JSON_PROPERTY_ROLE_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRoleCode(@javax.annotation.Nullable String roleCode) { this.roleCode = roleCode; @@ -281,13 +281,13 @@ public AccountResponse teamId(@javax.annotation.Nullable String teamId) { * * @return teamId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEAM_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { return teamId; } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@javax.annotation.Nullable String teamId) { this.teamId = teamId; @@ -305,13 +305,13 @@ public AccountResponse locale(@javax.annotation.Nullable String locale) { * * @return locale */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCALE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocale() { return locale; } - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -327,13 +327,13 @@ public AccountResponse usage(@javax.annotation.Nullable AccountResponseUsage usa * * @return usage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponseUsage getUsage() { return usage; } - @JsonProperty(JSON_PROPERTY_USAGE) + @JsonProperty(value = JSON_PROPERTY_USAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsage(@javax.annotation.Nullable AccountResponseUsage usage) { this.usage = usage; @@ -349,13 +349,13 @@ public AccountResponse settings(@javax.annotation.Nullable AccountResponseSettin * * @return settings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SETTINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SETTINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponseSettings getSettings() { return settings; } - @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonProperty(value = JSON_PROPERTY_SETTINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSettings(@javax.annotation.Nullable AccountResponseSettings settings) { this.settings = settings; @@ -693,9 +693,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java index 9385b863c..c6d670a0f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseQuotas.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountResponseQuotas { public static final String JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT = @@ -84,13 +84,13 @@ public AccountResponseQuotas apiSignatureRequestsLeft( * * @return apiSignatureRequestsLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getApiSignatureRequestsLeft() { return apiSignatureRequestsLeft; } - @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiSignatureRequestsLeft( @javax.annotation.Nullable Integer apiSignatureRequestsLeft) { @@ -107,13 +107,13 @@ public AccountResponseQuotas documentsLeft(@javax.annotation.Nullable Integer do * * @return documentsLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getDocumentsLeft() { return documentsLeft; } - @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocumentsLeft(@javax.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; @@ -129,13 +129,13 @@ public AccountResponseQuotas templatesTotal(@javax.annotation.Nullable Integer t * * @return templatesTotal */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATES_TOTAL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATES_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTemplatesTotal() { return templatesTotal; } - @JsonProperty(JSON_PROPERTY_TEMPLATES_TOTAL) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplatesTotal(@javax.annotation.Nullable Integer templatesTotal) { this.templatesTotal = templatesTotal; @@ -151,13 +151,13 @@ public AccountResponseQuotas templatesLeft(@javax.annotation.Nullable Integer te * * @return templatesLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTemplatesLeft() { return templatesLeft; } - @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplatesLeft(@javax.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; @@ -174,13 +174,13 @@ public AccountResponseQuotas smsVerificationsLeft( * * @return smsVerificationsLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSmsVerificationsLeft() { return smsVerificationsLeft; } - @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsVerificationsLeft(@javax.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; @@ -197,13 +197,13 @@ public AccountResponseQuotas numFaxPagesLeft( * * @return numFaxPagesLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_FAX_PAGES_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_FAX_PAGES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumFaxPagesLeft() { return numFaxPagesLeft; } - @JsonProperty(JSON_PROPERTY_NUM_FAX_PAGES_LEFT) + @JsonProperty(value = JSON_PROPERTY_NUM_FAX_PAGES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumFaxPagesLeft(@javax.annotation.Nullable Integer numFaxPagesLeft) { this.numFaxPagesLeft = numFaxPagesLeft; @@ -426,9 +426,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java index 1f43c1d3a..e34628cec 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseSettings.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountResponseSettings { public static final String JSON_PROPERTY_SIGNER_ACCESS_CODES = "signer_access_codes"; @@ -72,13 +72,13 @@ public AccountResponseSettings signerAccessCodes( * * @return signerAccessCodes */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_ACCESS_CODES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_ACCESS_CODES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSignerAccessCodes() { return signerAccessCodes; } - @JsonProperty(JSON_PROPERTY_SIGNER_ACCESS_CODES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ACCESS_CODES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerAccessCodes(@javax.annotation.Nullable Boolean signerAccessCodes) { this.signerAccessCodes = signerAccessCodes; @@ -95,13 +95,13 @@ public AccountResponseSettings smsDelivery(@javax.annotation.Nullable Boolean sm * * @return smsDelivery */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_DELIVERY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSmsDelivery() { return smsDelivery; } - @JsonProperty(JSON_PROPERTY_SMS_DELIVERY) + @JsonProperty(value = JSON_PROPERTY_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsDelivery(@javax.annotation.Nullable Boolean smsDelivery) { this.smsDelivery = smsDelivery; @@ -119,13 +119,13 @@ public AccountResponseSettings smsAuthentication( * * @return smsAuthentication */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_AUTHENTICATION) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_AUTHENTICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSmsAuthentication() { return smsAuthentication; } - @JsonProperty(JSON_PROPERTY_SMS_AUTHENTICATION) + @JsonProperty(value = JSON_PROPERTY_SMS_AUTHENTICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsAuthentication(@javax.annotation.Nullable Boolean smsAuthentication) { this.smsAuthentication = smsAuthentication; @@ -270,9 +270,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java index 7906498fe..46ed438c6 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountResponseUsage.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({AccountResponseUsage.JSON_PROPERTY_FAX_PAGES_SENT}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountResponseUsage { public static final String JSON_PROPERTY_FAX_PAGES_SENT = "fax_pages_sent"; @@ -59,13 +59,13 @@ public AccountResponseUsage faxPagesSent(@javax.annotation.Nullable Integer faxP * * @return faxPagesSent */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FAX_PAGES_SENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FAX_PAGES_SENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFaxPagesSent() { return faxPagesSent; } - @JsonProperty(JSON_PROPERTY_FAX_PAGES_SENT) + @JsonProperty(value = JSON_PROPERTY_FAX_PAGES_SENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFaxPagesSent(@javax.annotation.Nullable Integer faxPagesSent) { this.faxPagesSent = faxPagesSent; @@ -159,9 +159,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java index 547051d2a..c7b9e8a46 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountUpdateRequest.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountUpdateRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -69,13 +69,13 @@ public AccountUpdateRequest accountId(@javax.annotation.Nullable String accountI * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -91,13 +91,13 @@ public AccountUpdateRequest callbackUrl(@javax.annotation.Nullable String callba * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -115,13 +115,13 @@ public AccountUpdateRequest locale(@javax.annotation.Nullable String locale) { * * @return locale */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCALE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLocale() { return locale; } - @JsonProperty(JSON_PROPERTY_LOCALE) + @JsonProperty(value = JSON_PROPERTY_LOCALE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(@javax.annotation.Nullable String locale) { this.locale = locale; @@ -257,9 +257,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java index d484b5052..8ece1af0e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyRequest.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({AccountVerifyRequest.JSON_PROPERTY_EMAIL_ADDRESS}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountVerifyRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -60,13 +60,13 @@ public AccountVerifyRequest emailAddress(@javax.annotation.Nonnull String emailA * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -160,9 +160,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java index d5b7c64bb..c8c8f23ca 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountVerifyResponse { public static final String JSON_PROPERTY_ACCOUNT = "account"; @@ -69,13 +69,13 @@ public AccountVerifyResponse account( * * @return account */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountVerifyResponseAccount getAccount() { return account; } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccount(@javax.annotation.Nullable AccountVerifyResponseAccount account) { this.account = account; @@ -100,13 +100,13 @@ public AccountVerifyResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -218,9 +218,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java index e8002ca39..86919fade 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/AccountVerifyResponseAccount.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({AccountVerifyResponseAccount.JSON_PROPERTY_EMAIL_ADDRESS}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class AccountVerifyResponseAccount { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -62,13 +62,13 @@ public AccountVerifyResponseAccount emailAddress( * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -163,9 +163,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java index 40e1c9482..fe882d448 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppCreateRequest.java @@ -38,7 +38,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppCreateRequest { public static final String JSON_PROPERTY_DOMAINS = "domains"; @@ -97,13 +97,13 @@ public ApiAppCreateRequest addDomainsItem(String domainsItem) { * @return domains */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getDomains() { return domains; } - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDomains(@javax.annotation.Nonnull List domains) { this.domains = domains; @@ -120,13 +120,13 @@ public ApiAppCreateRequest name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -142,13 +142,13 @@ public ApiAppCreateRequest callbackUrl(@javax.annotation.Nullable String callbac * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -164,13 +164,13 @@ public ApiAppCreateRequest customLogoFile(@javax.annotation.Nullable File custom * * @return customLogoFile */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getCustomLogoFile() { return customLogoFile; } - @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomLogoFile(@javax.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; @@ -186,13 +186,13 @@ public ApiAppCreateRequest oauth(@javax.annotation.Nullable SubOAuth oauth) { * * @return oauth */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OAUTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOAuth getOauth() { return oauth; } - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauth(@javax.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; @@ -208,13 +208,13 @@ public ApiAppCreateRequest options(@javax.annotation.Nullable SubOptions options * * @return options */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOptions getOptions() { return options; } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@javax.annotation.Nullable SubOptions options) { this.options = options; @@ -231,13 +231,13 @@ public ApiAppCreateRequest whiteLabelingOptions( * * @return whiteLabelingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubWhiteLabelingOptions getWhiteLabelingOptions() { return whiteLabelingOptions; } - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWhiteLabelingOptions( @javax.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { @@ -462,9 +462,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java index 54ce2c4bb..a079be4f2 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppGetResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppGetResponse { public static final String JSON_PROPERTY_API_APP = "api_app"; @@ -68,13 +68,13 @@ public ApiAppGetResponse apiApp(@javax.annotation.Nonnull ApiAppResponse apiApp) * @return apiApp */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_APP) + @JsonProperty(value = JSON_PROPERTY_API_APP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ApiAppResponse getApiApp() { return apiApp; } - @JsonProperty(JSON_PROPERTY_API_APP) + @JsonProperty(value = JSON_PROPERTY_API_APP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setApiApp(@javax.annotation.Nonnull ApiAppResponse apiApp) { this.apiApp = apiApp; @@ -98,13 +98,13 @@ public ApiAppGetResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -216,9 +216,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java index 8a50aef37..552c79e8e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppListResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppListResponse { public static final String JSON_PROPERTY_API_APPS = "api_apps"; @@ -80,13 +80,13 @@ public ApiAppListResponse addApiAppsItem(ApiAppResponse apiAppsItem) { * @return apiApps */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_APPS) + @JsonProperty(value = JSON_PROPERTY_API_APPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getApiApps() { return apiApps; } - @JsonProperty(JSON_PROPERTY_API_APPS) + @JsonProperty(value = JSON_PROPERTY_API_APPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setApiApps(@javax.annotation.Nonnull List apiApps) { this.apiApps = apiApps; @@ -103,13 +103,13 @@ public ApiAppListResponse listInfo(@javax.annotation.Nonnull ListInfoResponse li * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -133,13 +133,13 @@ public ApiAppListResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -273,9 +273,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java index 913a1e2c3..27af3a6de 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponse.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppResponse { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -99,13 +99,13 @@ public ApiAppResponse callbackUrl(@javax.annotation.Nullable String callbackUrl) * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -121,13 +121,13 @@ public ApiAppResponse clientId(@javax.annotation.Nullable String clientId) { * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -143,13 +143,13 @@ public ApiAppResponse createdAt(@javax.annotation.Nullable Integer createdAt) { * * @return createdAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { return createdAt; } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@javax.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -173,13 +173,13 @@ public ApiAppResponse addDomainsItem(String domainsItem) { * * @return domains */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAINS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDomains() { return domains; } - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDomains(@javax.annotation.Nullable List domains) { this.domains = domains; @@ -195,13 +195,13 @@ public ApiAppResponse name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -217,13 +217,13 @@ public ApiAppResponse isApproved(@javax.annotation.Nullable Boolean isApproved) * * @return isApproved */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_APPROVED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_APPROVED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsApproved() { return isApproved; } - @JsonProperty(JSON_PROPERTY_IS_APPROVED) + @JsonProperty(value = JSON_PROPERTY_IS_APPROVED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsApproved(@javax.annotation.Nullable Boolean isApproved) { this.isApproved = isApproved; @@ -239,13 +239,13 @@ public ApiAppResponse oauth(@javax.annotation.Nullable ApiAppResponseOAuth oauth * * @return oauth */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OAUTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseOAuth getOauth() { return oauth; } - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauth(@javax.annotation.Nullable ApiAppResponseOAuth oauth) { this.oauth = oauth; @@ -261,13 +261,13 @@ public ApiAppResponse options(@javax.annotation.Nullable ApiAppResponseOptions o * * @return options */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseOptions getOptions() { return options; } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@javax.annotation.Nullable ApiAppResponseOptions options) { this.options = options; @@ -284,13 +284,13 @@ public ApiAppResponse ownerAccount( * * @return ownerAccount */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OWNER_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseOwnerAccount getOwnerAccount() { return ownerAccount; } - @JsonProperty(JSON_PROPERTY_OWNER_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_OWNER_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOwnerAccount( @javax.annotation.Nullable ApiAppResponseOwnerAccount ownerAccount) { @@ -308,13 +308,13 @@ public ApiAppResponse whiteLabelingOptions( * * @return whiteLabelingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ApiAppResponseWhiteLabelingOptions getWhiteLabelingOptions() { return whiteLabelingOptions; } - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWhiteLabelingOptions( @javax.annotation.Nullable ApiAppResponseWhiteLabelingOptions whiteLabelingOptions) { @@ -613,9 +613,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java index daf3f0826..fda07c500 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOAuth.java @@ -37,7 +37,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppResponseOAuth { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -78,13 +78,13 @@ public ApiAppResponseOAuth callbackUrl(@javax.annotation.Nullable String callbac * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -100,13 +100,13 @@ public ApiAppResponseOAuth secret(@javax.annotation.Nullable String secret) { * * @return secret */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECRET) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecret() { return secret; } - @JsonProperty(JSON_PROPERTY_SECRET) + @JsonProperty(value = JSON_PROPERTY_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecret(@javax.annotation.Nullable String secret) { this.secret = secret; @@ -130,13 +130,13 @@ public ApiAppResponseOAuth addScopesItem(String scopesItem) { * * @return scopes */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCOPES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getScopes() { return scopes; } - @JsonProperty(JSON_PROPERTY_SCOPES) + @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScopes(@javax.annotation.Nullable List scopes) { this.scopes = scopes; @@ -153,13 +153,13 @@ public ApiAppResponseOAuth chargesUsers(@javax.annotation.Nullable Boolean charg * * @return chargesUsers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHARGES_USERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CHARGES_USERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getChargesUsers() { return chargesUsers; } - @JsonProperty(JSON_PROPERTY_CHARGES_USERS) + @JsonProperty(value = JSON_PROPERTY_CHARGES_USERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChargesUsers(@javax.annotation.Nullable Boolean chargesUsers) { this.chargesUsers = chargesUsers; @@ -315,9 +315,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java index ace145fa9..7d402aa26 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOptions.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({ApiAppResponseOptions.JSON_PROPERTY_CAN_INSERT_EVERYWHERE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppResponseOptions { public static final String JSON_PROPERTY_CAN_INSERT_EVERYWHERE = "can_insert_everywhere"; @@ -62,13 +62,13 @@ public ApiAppResponseOptions canInsertEverywhere( * * @return canInsertEverywhere */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getCanInsertEverywhere() { return canInsertEverywhere; } - @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCanInsertEverywhere(@javax.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; @@ -166,9 +166,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java index de840b202..a7b888277 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseOwnerAccount.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppResponseOwnerAccount { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -67,13 +67,13 @@ public ApiAppResponseOwnerAccount accountId(@javax.annotation.Nullable String ac * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -89,13 +89,13 @@ public ApiAppResponseOwnerAccount emailAddress(@javax.annotation.Nullable String * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -211,9 +211,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java index ae9441e24..5266ccb87 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppResponseWhiteLabelingOptions.java @@ -42,7 +42,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppResponseWhiteLabelingOptions { public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color"; @@ -122,13 +122,13 @@ public ApiAppResponseWhiteLabelingOptions headerBackgroundColor( * * @return headerBackgroundColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHeaderBackgroundColor() { return headerBackgroundColor; } - @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeaderBackgroundColor(@javax.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; @@ -145,13 +145,13 @@ public ApiAppResponseWhiteLabelingOptions legalVersion( * * @return legalVersion */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLegalVersion() { return legalVersion; } - @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLegalVersion(@javax.annotation.Nullable String legalVersion) { this.legalVersion = legalVersion; @@ -168,13 +168,13 @@ public ApiAppResponseWhiteLabelingOptions linkColor( * * @return linkColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkColor() { return linkColor; } - @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkColor(@javax.annotation.Nullable String linkColor) { this.linkColor = linkColor; @@ -191,13 +191,13 @@ public ApiAppResponseWhiteLabelingOptions pageBackgroundColor( * * @return pageBackgroundColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPageBackgroundColor() { return pageBackgroundColor; } - @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageBackgroundColor(@javax.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; @@ -214,13 +214,13 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColor( * * @return primaryButtonColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColor() { return primaryButtonColor; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonColor(@javax.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; @@ -237,13 +237,13 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonColorHover( * * @return primaryButtonColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColorHover() { return primaryButtonColorHover; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonColorHover( @javax.annotation.Nullable String primaryButtonColorHover) { @@ -261,13 +261,13 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColor( * * @return primaryButtonTextColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonTextColor() { return primaryButtonTextColor; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonTextColor( @javax.annotation.Nullable String primaryButtonTextColor) { @@ -285,13 +285,13 @@ public ApiAppResponseWhiteLabelingOptions primaryButtonTextColorHover( * * @return primaryButtonTextColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonTextColorHover() { return primaryButtonTextColorHover; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonTextColorHover( @javax.annotation.Nullable String primaryButtonTextColorHover) { @@ -309,13 +309,13 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColor( * * @return secondaryButtonColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColor() { return secondaryButtonColor; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonColor(@javax.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; @@ -332,13 +332,13 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonColorHover( * * @return secondaryButtonColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColorHover() { return secondaryButtonColorHover; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonColorHover( @javax.annotation.Nullable String secondaryButtonColorHover) { @@ -356,13 +356,13 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColor( * * @return secondaryButtonTextColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonTextColor() { return secondaryButtonTextColor; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonTextColor( @javax.annotation.Nullable String secondaryButtonTextColor) { @@ -380,13 +380,13 @@ public ApiAppResponseWhiteLabelingOptions secondaryButtonTextColorHover( * * @return secondaryButtonTextColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonTextColorHover() { return secondaryButtonTextColorHover; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonTextColorHover( @javax.annotation.Nullable String secondaryButtonTextColorHover) { @@ -404,13 +404,13 @@ public ApiAppResponseWhiteLabelingOptions textColor1( * * @return textColor1 */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor1() { return textColor1; } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor1(@javax.annotation.Nullable String textColor1) { this.textColor1 = textColor1; @@ -427,13 +427,13 @@ public ApiAppResponseWhiteLabelingOptions textColor2( * * @return textColor2 */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor2() { return textColor2; } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor2(@javax.annotation.Nullable String textColor2) { this.textColor2 = textColor2; @@ -903,9 +903,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java index a27dfcd8c..fb0b100d0 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ApiAppUpdateRequest.java @@ -38,7 +38,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ApiAppUpdateRequest { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -88,13 +88,13 @@ public ApiAppUpdateRequest callbackUrl(@javax.annotation.Nullable String callbac * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -110,13 +110,13 @@ public ApiAppUpdateRequest customLogoFile(@javax.annotation.Nullable File custom * * @return customLogoFile */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getCustomLogoFile() { return customLogoFile; } - @JsonProperty(JSON_PROPERTY_CUSTOM_LOGO_FILE) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_LOGO_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomLogoFile(@javax.annotation.Nullable File customLogoFile) { this.customLogoFile = customLogoFile; @@ -140,13 +140,13 @@ public ApiAppUpdateRequest addDomainsItem(String domainsItem) { * * @return domains */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOMAINS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDomains() { return domains; } - @JsonProperty(JSON_PROPERTY_DOMAINS) + @JsonProperty(value = JSON_PROPERTY_DOMAINS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDomains(@javax.annotation.Nullable List domains) { this.domains = domains; @@ -162,13 +162,13 @@ public ApiAppUpdateRequest name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -184,13 +184,13 @@ public ApiAppUpdateRequest oauth(@javax.annotation.Nullable SubOAuth oauth) { * * @return oauth */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OAUTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOAuth getOauth() { return oauth; } - @JsonProperty(JSON_PROPERTY_OAUTH) + @JsonProperty(value = JSON_PROPERTY_OAUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOauth(@javax.annotation.Nullable SubOAuth oauth) { this.oauth = oauth; @@ -206,13 +206,13 @@ public ApiAppUpdateRequest options(@javax.annotation.Nullable SubOptions options * * @return options */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubOptions getOptions() { return options; } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@javax.annotation.Nullable SubOptions options) { this.options = options; @@ -229,13 +229,13 @@ public ApiAppUpdateRequest whiteLabelingOptions( * * @return whiteLabelingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubWhiteLabelingOptions getWhiteLabelingOptions() { return whiteLabelingOptions; } - @JsonProperty(JSON_PROPERTY_WHITE_LABELING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_WHITE_LABELING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWhiteLabelingOptions( @javax.annotation.Nullable SubWhiteLabelingOptions whiteLabelingOptions) { @@ -460,9 +460,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java index 80ade2f0d..904123123 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponse.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class BulkSendJobGetResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB = "bulk_send_job"; @@ -80,13 +80,13 @@ public BulkSendJobGetResponse bulkSendJob( * @return bulkSendJob */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BulkSendJobResponse getBulkSendJob() { return bulkSendJob; } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBulkSendJob(@javax.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; @@ -103,13 +103,13 @@ public BulkSendJobGetResponse listInfo(@javax.annotation.Nonnull ListInfoRespons * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -137,13 +137,13 @@ public BulkSendJobGetResponse addSignatureRequestsItem( * @return signatureRequests */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSignatureRequests() { return signatureRequests; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureRequests( @javax.annotation.Nonnull @@ -170,13 +170,13 @@ public BulkSendJobGetResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -336,9 +336,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java index dc04b97e4..8ec6ff54a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java @@ -55,7 +55,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class BulkSendJobGetResponseSignatureRequests { public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; @@ -165,13 +165,13 @@ public BulkSendJobGetResponseSignatureRequests testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -188,13 +188,13 @@ public BulkSendJobGetResponseSignatureRequests signatureRequestId( * * @return signatureRequestId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureRequestId() { return signatureRequestId; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequestId(@javax.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; @@ -211,13 +211,13 @@ public BulkSendJobGetResponseSignatureRequests requesterEmailAddress( * * @return requesterEmailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequesterEmailAddress() { return requesterEmailAddress; } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequesterEmailAddress(@javax.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -233,13 +233,13 @@ public BulkSendJobGetResponseSignatureRequests title(@javax.annotation.Nullable * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -256,13 +256,13 @@ public BulkSendJobGetResponseSignatureRequests originalTitle( * * @return originalTitle */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOriginalTitle() { return originalTitle; } - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalTitle(@javax.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; @@ -279,13 +279,13 @@ public BulkSendJobGetResponseSignatureRequests subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -302,13 +302,13 @@ public BulkSendJobGetResponseSignatureRequests message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -334,13 +334,13 @@ public BulkSendJobGetResponseSignatureRequests putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -357,13 +357,13 @@ public BulkSendJobGetResponseSignatureRequests createdAt( * * @return createdAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { return createdAt; } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@javax.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -382,13 +382,13 @@ public BulkSendJobGetResponseSignatureRequests expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -405,13 +405,13 @@ public BulkSendJobGetResponseSignatureRequests isComplete( * * @return isComplete */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsComplete() { return isComplete; } - @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsComplete(@javax.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; @@ -428,13 +428,13 @@ public BulkSendJobGetResponseSignatureRequests isDeclined( * * @return isDeclined */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsDeclined() { return isDeclined; } - @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsDeclined(@javax.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; @@ -452,13 +452,13 @@ public BulkSendJobGetResponseSignatureRequests hasError( * * @return hasError */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasError() { return hasError; } - @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasError(@javax.annotation.Nullable Boolean hasError) { this.hasError = hasError; @@ -475,13 +475,13 @@ public BulkSendJobGetResponseSignatureRequests filesUrl( * * @return filesUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFilesUrl() { return filesUrl; } - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFilesUrl(@javax.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; @@ -500,13 +500,13 @@ public BulkSendJobGetResponseSignatureRequests signingUrl( * * @return signingUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningUrl() { return signingUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningUrl(@javax.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; @@ -524,13 +524,13 @@ public BulkSendJobGetResponseSignatureRequests detailsUrl( * * @return detailsUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDetailsUrl() { return detailsUrl; } - @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDetailsUrl(@javax.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; @@ -557,13 +557,13 @@ public BulkSendJobGetResponseSignatureRequests addCcEmailAddressesItem( * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -580,13 +580,13 @@ public BulkSendJobGetResponseSignatureRequests signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -603,13 +603,13 @@ public BulkSendJobGetResponseSignatureRequests finalCopyUri( * * @return finalCopyUri */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFinalCopyUri() { return finalCopyUri; } - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFinalCopyUri(@javax.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; @@ -634,13 +634,13 @@ public BulkSendJobGetResponseSignatureRequests addTemplateIdsItem(String templat * * @return templateIds */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateIds(@javax.annotation.Nullable List templateIds) { this.templateIds = templateIds; @@ -668,13 +668,13 @@ public BulkSendJobGetResponseSignatureRequests addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields( @javax.annotation.Nullable List customFields) { @@ -701,13 +701,13 @@ public BulkSendJobGetResponseSignatureRequests addAttachmentsItem( * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments( @javax.annotation.Nullable List attachments) { @@ -735,13 +735,13 @@ public BulkSendJobGetResponseSignatureRequests addResponseDataItem( * * @return responseData */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getResponseData() { return responseData; } - @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResponseData( @javax.annotation.Nullable List responseData) { @@ -768,13 +768,13 @@ public BulkSendJobGetResponseSignatureRequests addSignaturesItem( * * @return signatures */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignatures() { return signatures; } - @JsonProperty(JSON_PROPERTY_SIGNATURES) + @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatures( @javax.annotation.Nullable List signatures) { @@ -792,13 +792,13 @@ public BulkSendJobGetResponseSignatureRequests bulkSendJobId( * * @return bulkSendJobId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBulkSendJobId() { return bulkSendJobId; } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBulkSendJobId(@javax.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; @@ -1472,9 +1472,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java index a47d9a259..93ae52397 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobListResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class BulkSendJobListResponse { public static final String JSON_PROPERTY_BULK_SEND_JOBS = "bulk_send_jobs"; @@ -82,13 +82,13 @@ public BulkSendJobListResponse addBulkSendJobsItem(BulkSendJobResponse bulkSendJ * @return bulkSendJobs */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOBS) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOBS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getBulkSendJobs() { return bulkSendJobs; } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOBS) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOBS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBulkSendJobs(@javax.annotation.Nonnull List bulkSendJobs) { this.bulkSendJobs = bulkSendJobs; @@ -105,13 +105,13 @@ public BulkSendJobListResponse listInfo(@javax.annotation.Nonnull ListInfoRespon * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -136,13 +136,13 @@ public BulkSendJobListResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -278,9 +278,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java index 442e2b628..76d0ba5d6 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobResponse.java @@ -35,7 +35,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class BulkSendJobResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB_ID = "bulk_send_job_id"; @@ -76,13 +76,13 @@ public BulkSendJobResponse bulkSendJobId(@javax.annotation.Nullable String bulkS * * @return bulkSendJobId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBulkSendJobId() { return bulkSendJobId; } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBulkSendJobId(@javax.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; @@ -98,13 +98,13 @@ public BulkSendJobResponse total(@javax.annotation.Nullable Integer total) { * * @return total */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTotal() { return total; } - @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonProperty(value = JSON_PROPERTY_TOTAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTotal(@javax.annotation.Nullable Integer total) { this.total = total; @@ -121,13 +121,13 @@ public BulkSendJobResponse isCreator(@javax.annotation.Nullable Boolean isCreato * * @return isCreator */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsCreator() { return isCreator; } - @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsCreator(@javax.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; @@ -143,13 +143,13 @@ public BulkSendJobResponse createdAt(@javax.annotation.Nullable Integer createdA * * @return createdAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { return createdAt; } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@javax.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -307,9 +307,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java index b59c28092..0dad52928 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobSendResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class BulkSendJobSendResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB = "bulk_send_job"; @@ -70,13 +70,13 @@ public BulkSendJobSendResponse bulkSendJob( * @return bulkSendJob */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BulkSendJobResponse getBulkSendJob() { return bulkSendJob; } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBulkSendJob(@javax.annotation.Nonnull BulkSendJobResponse bulkSendJob) { this.bulkSendJob = bulkSendJob; @@ -101,13 +101,13 @@ public BulkSendJobSendResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -221,9 +221,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java index a9db580c3..3cb590cec 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionRequest.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class DocumentFieldDetectionRequest { public static final String JSON_PROPERTY_DETECTION_MODE = "detection_mode"; @@ -80,13 +80,13 @@ public DocumentFieldDetectionRequest detectionMode( * @return detectionMode */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDetectionMode() { return detectionMode; } - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectionMode(@javax.annotation.Nonnull String detectionMode) { this.detectionMode = detectionMode; @@ -103,13 +103,13 @@ public DocumentFieldDetectionRequest _file(@javax.annotation.Nullable File _file * * @return _file */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getFile() { return _file; } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable File _file) { this._file = _file; @@ -126,13 +126,13 @@ public DocumentFieldDetectionRequest fileUrl(@javax.annotation.Nullable URI file * * @return fileUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public URI getFileUrl() { return fileUrl; } - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrl(@javax.annotation.Nullable URI fileUrl) { this.fileUrl = fileUrl; @@ -150,13 +150,13 @@ public DocumentFieldDetectionRequest pageRange(@javax.annotation.Nullable String * * @return pageRange */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_RANGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PAGE_RANGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPageRange() { return pageRange; } - @JsonProperty(JSON_PROPERTY_PAGE_RANGE) + @JsonProperty(value = JSON_PROPERTY_PAGE_RANGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageRange(@javax.annotation.Nullable String pageRange) { this.pageRange = pageRange; @@ -313,9 +313,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java index d877c978d..6aeb17b29 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class DocumentFieldDetectionResponse { public static final String JSON_PROPERTY_DETECTION_RESULT = "detection_result"; @@ -72,13 +72,13 @@ public DocumentFieldDetectionResponse detectionResult( * @return detectionResult */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTION_RESULT) + @JsonProperty(value = JSON_PROPERTY_DETECTION_RESULT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DocumentFieldDetectionResponseDetectionResult getDetectionResult() { return detectionResult; } - @JsonProperty(JSON_PROPERTY_DETECTION_RESULT) + @JsonProperty(value = JSON_PROPERTY_DETECTION_RESULT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectionResult( @javax.annotation.Nonnull @@ -105,13 +105,13 @@ public DocumentFieldDetectionResponse addWarningsItem(WarningResponse warningsIt * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -226,9 +226,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java index 37eac201e..b4ed97a3b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/DocumentFieldDetectionResponseDetectionResult.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class DocumentFieldDetectionResponseDetectionResult { public static final String JSON_PROPERTY_DOCUMENT_HASH = "document_hash"; @@ -108,13 +108,13 @@ public DocumentFieldDetectionResponseDetectionResult documentHash( * @return documentHash */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DOCUMENT_HASH) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDocumentHash() { return documentHash; } - @JsonProperty(JSON_PROPERTY_DOCUMENT_HASH) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDocumentHash(@javax.annotation.Nonnull String documentHash) { this.documentHash = documentHash; @@ -133,13 +133,13 @@ public DocumentFieldDetectionResponseDetectionResult detectionMode( * @return detectionMode */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDetectionMode() { return detectionMode; } - @JsonProperty(JSON_PROPERTY_DETECTION_MODE) + @JsonProperty(value = JSON_PROPERTY_DETECTION_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectionMode(@javax.annotation.Nonnull String detectionMode) { this.detectionMode = detectionMode; @@ -157,13 +157,13 @@ public DocumentFieldDetectionResponseDetectionResult pageCount( * @return pageCount */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PAGE_COUNT) + @JsonProperty(value = JSON_PROPERTY_PAGE_COUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getPageCount() { return pageCount; } - @JsonProperty(JSON_PROPERTY_PAGE_COUNT) + @JsonProperty(value = JSON_PROPERTY_PAGE_COUNT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPageCount(@javax.annotation.Nonnull Integer pageCount) { this.pageCount = pageCount; @@ -182,13 +182,13 @@ public DocumentFieldDetectionResponseDetectionResult pagesAnalyzed( * @return pagesAnalyzed */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PAGES_ANALYZED) + @JsonProperty(value = JSON_PROPERTY_PAGES_ANALYZED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPagesAnalyzed() { return pagesAnalyzed; } - @JsonProperty(JSON_PROPERTY_PAGES_ANALYZED) + @JsonProperty(value = JSON_PROPERTY_PAGES_ANALYZED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPagesAnalyzed(@javax.annotation.Nonnull String pagesAnalyzed) { this.pagesAnalyzed = pagesAnalyzed; @@ -206,13 +206,13 @@ public DocumentFieldDetectionResponseDetectionResult detectedAt( * @return detectedAt */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DETECTED_AT) + @JsonProperty(value = JSON_PROPERTY_DETECTED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Long getDetectedAt() { return detectedAt; } - @JsonProperty(JSON_PROPERTY_DETECTED_AT) + @JsonProperty(value = JSON_PROPERTY_DETECTED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDetectedAt(@javax.annotation.Nonnull Long detectedAt) { this.detectedAt = detectedAt; @@ -254,13 +254,13 @@ public DocumentFieldDetectionResponseDetectionResult addFormFieldsPerDocumentIte * @return formFieldsPerDocument */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFormFieldsPerDocument( @javax.annotation.Nonnull List formFieldsPerDocument) { @@ -291,13 +291,13 @@ public DocumentFieldDetectionResponseDetectionResult addFormFieldGroupsItem( * @return formFieldGroups */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFormFieldGroups( @javax.annotation.Nonnull List formFieldGroups) { @@ -325,13 +325,13 @@ public DocumentFieldDetectionResponseDetectionResult addWarningsItem( * @return warnings */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWarnings(@javax.annotation.Nonnull List warnings) { this.warnings = warnings; @@ -359,13 +359,13 @@ public DocumentFieldDetectionResponseDetectionResult addErrorsItem( * @return errors */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getErrors() { return errors; } - @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonProperty(value = JSON_PROPERTY_ERRORS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setErrors(@javax.annotation.Nonnull List errors) { this.errors = errors; @@ -392,13 +392,13 @@ public DocumentFieldDetectionResponseDetectionResult addSuggestionsItem( * @return suggestions */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUGGESTIONS) + @JsonProperty(value = JSON_PROPERTY_SUGGESTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSuggestions() { return suggestions; } - @JsonProperty(JSON_PROPERTY_SUGGESTIONS) + @JsonProperty(value = JSON_PROPERTY_SUGGESTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSuggestions(@javax.annotation.Nonnull List suggestions) { this.suggestions = suggestions; @@ -719,9 +719,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java index e46d30980..1efca2af9 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlRequest.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EmbeddedEditUrlRequest { public static final String JSON_PROPERTY_ALLOW_EDIT_CCS = "allow_edit_ccs"; @@ -101,13 +101,13 @@ public EmbeddedEditUrlRequest allowEditCcs(@javax.annotation.Nullable Boolean al * * @return allowEditCcs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowEditCcs() { return allowEditCcs; } - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowEditCcs(@javax.annotation.Nullable Boolean allowEditCcs) { this.allowEditCcs = allowEditCcs; @@ -132,13 +132,13 @@ public EmbeddedEditUrlRequest addCcRolesItem(String ccRolesItem) { * * @return ccRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { return ccRoles; } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@javax.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -155,13 +155,13 @@ public EmbeddedEditUrlRequest editorOptions( * * @return editorOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { return editorOptions; } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@javax.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -178,13 +178,13 @@ public EmbeddedEditUrlRequest forceSignerRoles( * * @return forceSignerRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerRoles() { return forceSignerRoles; } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerRoles(@javax.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; @@ -201,13 +201,13 @@ public EmbeddedEditUrlRequest forceSubjectMessage( * * @return forceSubjectMessage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { return forceSubjectMessage; } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@javax.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -234,13 +234,13 @@ public EmbeddedEditUrlRequest addMergeFieldsItem(SubMergeField mergeFieldsItem) * * @return mergeFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getMergeFields() { return mergeFields; } - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMergeFields(@javax.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; @@ -258,13 +258,13 @@ public EmbeddedEditUrlRequest previewOnly(@javax.annotation.Nullable Boolean pre * * @return previewOnly */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPreviewOnly() { return previewOnly; } - @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreviewOnly(@javax.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; @@ -280,13 +280,13 @@ public EmbeddedEditUrlRequest showPreview(@javax.annotation.Nullable Boolean sho * * @return showPreview */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { return showPreview; } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@javax.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -304,13 +304,13 @@ public EmbeddedEditUrlRequest showProgressStepper( * * @return showProgressStepper */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { return showProgressStepper; } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@javax.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -327,13 +327,13 @@ public EmbeddedEditUrlRequest testMode(@javax.annotation.Nullable Boolean testMo * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -643,9 +643,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java index 30bd517e5..3554e9f38 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EmbeddedEditUrlResponse { public static final String JSON_PROPERTY_EMBEDDED = "embedded"; @@ -70,13 +70,13 @@ public EmbeddedEditUrlResponse embedded( * @return embedded */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EmbeddedEditUrlResponseEmbedded getEmbedded() { return embedded; } - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmbedded(@javax.annotation.Nonnull EmbeddedEditUrlResponseEmbedded embedded) { this.embedded = embedded; @@ -101,13 +101,13 @@ public EmbeddedEditUrlResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -219,9 +219,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java index 92ea6cbe0..10b1b561a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedEditUrlResponseEmbedded.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EmbeddedEditUrlResponseEmbedded { public static final String JSON_PROPERTY_EDIT_URL = "edit_url"; @@ -67,13 +67,13 @@ public EmbeddedEditUrlResponseEmbedded editUrl(@javax.annotation.Nullable String * * @return editUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDIT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditUrl() { return editUrl; } - @JsonProperty(JSON_PROPERTY_EDIT_URL) + @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditUrl(@javax.annotation.Nullable String editUrl) { this.editUrl = editUrl; @@ -89,13 +89,13 @@ public EmbeddedEditUrlResponseEmbedded expiresAt(@javax.annotation.Nullable Inte * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -210,9 +210,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java index a49ec4993..82bfd4e24 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EmbeddedSignUrlResponse { public static final String JSON_PROPERTY_EMBEDDED = "embedded"; @@ -70,13 +70,13 @@ public EmbeddedSignUrlResponse embedded( * @return embedded */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EmbeddedSignUrlResponseEmbedded getEmbedded() { return embedded; } - @JsonProperty(JSON_PROPERTY_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_EMBEDDED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmbedded(@javax.annotation.Nonnull EmbeddedSignUrlResponseEmbedded embedded) { this.embedded = embedded; @@ -101,13 +101,13 @@ public EmbeddedSignUrlResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -219,9 +219,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java index cb4820ae6..35fa26ac8 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EmbeddedSignUrlResponseEmbedded.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EmbeddedSignUrlResponseEmbedded { public static final String JSON_PROPERTY_SIGN_URL = "sign_url"; @@ -67,13 +67,13 @@ public EmbeddedSignUrlResponseEmbedded signUrl(@javax.annotation.Nullable String * * @return signUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGN_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGN_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignUrl() { return signUrl; } - @JsonProperty(JSON_PROPERTY_SIGN_URL) + @JsonProperty(value = JSON_PROPERTY_SIGN_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignUrl(@javax.annotation.Nullable String signUrl) { this.signUrl = signUrl; @@ -89,13 +89,13 @@ public EmbeddedSignUrlResponseEmbedded expiresAt(@javax.annotation.Nullable Inte * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -210,9 +210,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponse.java index e8d26b220..968bb357a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponse.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({ErrorResponse.JSON_PROPERTY_ERROR}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ErrorResponse { public static final String JSON_PROPERTY_ERROR = "error"; @@ -60,13 +60,13 @@ public ErrorResponse error(@javax.annotation.Nonnull ErrorResponseError error) { * @return error */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ErrorResponseError getError() { return error; } - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setError(@javax.annotation.Nonnull ErrorResponseError error) { this.error = error; @@ -158,9 +158,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponseError.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponseError.java index dfe621edd..02527b3f0 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponseError.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ErrorResponseError.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ErrorResponseError { public static final String JSON_PROPERTY_ERROR_MSG = "error_msg"; @@ -70,13 +70,13 @@ public ErrorResponseError errorMsg(@javax.annotation.Nonnull String errorMsg) { * @return errorMsg */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_MSG) + @JsonProperty(value = JSON_PROPERTY_ERROR_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getErrorMsg() { return errorMsg; } - @JsonProperty(JSON_PROPERTY_ERROR_MSG) + @JsonProperty(value = JSON_PROPERTY_ERROR_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setErrorMsg(@javax.annotation.Nonnull String errorMsg) { this.errorMsg = errorMsg; @@ -95,13 +95,13 @@ public ErrorResponseError errorName(@javax.annotation.Nonnull String errorName) * @return errorName */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ERROR_NAME) + @JsonProperty(value = JSON_PROPERTY_ERROR_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getErrorName() { return errorName; } - @JsonProperty(JSON_PROPERTY_ERROR_NAME) + @JsonProperty(value = JSON_PROPERTY_ERROR_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setErrorName(@javax.annotation.Nonnull String errorName) { this.errorName = errorName; @@ -117,13 +117,13 @@ public ErrorResponseError errorPath(@javax.annotation.Nullable String errorPath) * * @return errorPath */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ERROR_PATH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ERROR_PATH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getErrorPath() { return errorPath; } - @JsonProperty(JSON_PROPERTY_ERROR_PATH) + @JsonProperty(value = JSON_PROPERTY_ERROR_PATH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setErrorPath(@javax.annotation.Nullable String errorPath) { this.errorPath = errorPath; @@ -261,9 +261,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java index a7c7f100e..12f516dbc 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequest.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EventCallbackRequest { public static final String JSON_PROPERTY_EVENT = "event"; @@ -74,13 +74,13 @@ public EventCallbackRequest event(@javax.annotation.Nonnull EventCallbackRequest * @return event */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT) + @JsonProperty(value = JSON_PROPERTY_EVENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EventCallbackRequestEvent getEvent() { return event; } - @JsonProperty(JSON_PROPERTY_EVENT) + @JsonProperty(value = JSON_PROPERTY_EVENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEvent(@javax.annotation.Nonnull EventCallbackRequestEvent event) { this.event = event; @@ -96,13 +96,13 @@ public EventCallbackRequest account(@javax.annotation.Nullable AccountResponse a * * @return account */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AccountResponse getAccount() { return account; } - @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccount(@javax.annotation.Nullable AccountResponse account) { this.account = account; @@ -119,13 +119,13 @@ public EventCallbackRequest signatureRequest( * * @return signatureRequest */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SignatureRequestResponse getSignatureRequest() { return signatureRequest; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequest( @javax.annotation.Nullable SignatureRequestResponse signatureRequest) { @@ -142,13 +142,13 @@ public EventCallbackRequest template(@javax.annotation.Nullable TemplateResponse * * @return template */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponse getTemplate() { return template; } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplate(@javax.annotation.Nullable TemplateResponse template) { this.template = template; @@ -302,9 +302,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java index 32152454f..1f1b7314d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEvent.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EventCallbackRequestEvent { public static final String JSON_PROPERTY_EVENT_TIME = "event_time"; @@ -167,13 +167,13 @@ public EventCallbackRequestEvent eventTime(@javax.annotation.Nonnull String even * @return eventTime */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_TIME) + @JsonProperty(value = JSON_PROPERTY_EVENT_TIME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEventTime() { return eventTime; } - @JsonProperty(JSON_PROPERTY_EVENT_TIME) + @JsonProperty(value = JSON_PROPERTY_EVENT_TIME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEventTime(@javax.annotation.Nonnull String eventTime) { this.eventTime = eventTime; @@ -190,13 +190,13 @@ public EventCallbackRequestEvent eventType(@javax.annotation.Nonnull EventTypeEn * @return eventType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) + @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EventTypeEnum getEventType() { return eventType; } - @JsonProperty(JSON_PROPERTY_EVENT_TYPE) + @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEventType(@javax.annotation.Nonnull EventTypeEnum eventType) { this.eventType = eventType; @@ -213,13 +213,13 @@ public EventCallbackRequestEvent eventHash(@javax.annotation.Nonnull String even * @return eventHash */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EVENT_HASH) + @JsonProperty(value = JSON_PROPERTY_EVENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEventHash() { return eventHash; } - @JsonProperty(JSON_PROPERTY_EVENT_HASH) + @JsonProperty(value = JSON_PROPERTY_EVENT_HASH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEventHash(@javax.annotation.Nonnull String eventHash) { this.eventHash = eventHash; @@ -236,13 +236,13 @@ public EventCallbackRequestEvent eventMetadata( * * @return eventMetadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVENT_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EVENT_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EventCallbackRequestEventMetadata getEventMetadata() { return eventMetadata; } - @JsonProperty(JSON_PROPERTY_EVENT_METADATA) + @JsonProperty(value = JSON_PROPERTY_EVENT_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEventMetadata( @javax.annotation.Nullable EventCallbackRequestEventMetadata eventMetadata) { @@ -403,9 +403,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java index 453c6a291..2c8e5373f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/EventCallbackRequestEventMetadata.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class EventCallbackRequestEventMetadata { public static final String JSON_PROPERTY_RELATED_SIGNATURE_ID = "related_signature_id"; @@ -77,13 +77,13 @@ public EventCallbackRequestEventMetadata relatedSignatureId( * * @return relatedSignatureId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATED_SIGNATURE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_RELATED_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRelatedSignatureId() { return relatedSignatureId; } - @JsonProperty(JSON_PROPERTY_RELATED_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_RELATED_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRelatedSignatureId(@javax.annotation.Nullable String relatedSignatureId) { this.relatedSignatureId = relatedSignatureId; @@ -100,13 +100,13 @@ public EventCallbackRequestEventMetadata reportedForAccountId( * * @return reportedForAccountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReportedForAccountId() { return reportedForAccountId; } - @JsonProperty(JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_REPORTED_FOR_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReportedForAccountId(@javax.annotation.Nullable String reportedForAccountId) { this.reportedForAccountId = reportedForAccountId; @@ -123,13 +123,13 @@ public EventCallbackRequestEventMetadata reportedForAppId( * * @return reportedForAppId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REPORTED_FOR_APP_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REPORTED_FOR_APP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReportedForAppId() { return reportedForAppId; } - @JsonProperty(JSON_PROPERTY_REPORTED_FOR_APP_ID) + @JsonProperty(value = JSON_PROPERTY_REPORTED_FOR_APP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReportedForAppId(@javax.annotation.Nullable String reportedForAppId) { this.reportedForAppId = reportedForAppId; @@ -146,13 +146,13 @@ public EventCallbackRequestEventMetadata eventMessage( * * @return eventMessage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVENT_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EVENT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEventMessage() { return eventMessage; } - @JsonProperty(JSON_PROPERTY_EVENT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_EVENT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEventMessage(@javax.annotation.Nullable String eventMessage) { this.eventMessage = eventMessage; @@ -328,9 +328,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxGetResponse.java index 8d018468f..0b7de5561 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxGetResponse.java @@ -29,7 +29,7 @@ @JsonPropertyOrder({FaxGetResponse.JSON_PROPERTY_FAX, FaxGetResponse.JSON_PROPERTY_WARNINGS}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxGetResponse { public static final String JSON_PROPERTY_FAX = "fax"; @@ -65,13 +65,13 @@ public FaxGetResponse fax(@javax.annotation.Nonnull FaxResponse fax) { * @return fax */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX) + @JsonProperty(value = JSON_PROPERTY_FAX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public FaxResponse getFax() { return fax; } - @JsonProperty(JSON_PROPERTY_FAX) + @JsonProperty(value = JSON_PROPERTY_FAX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFax(@javax.annotation.Nonnull FaxResponse fax) { this.fax = fax; @@ -95,13 +95,13 @@ public FaxGetResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -213,9 +213,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java index c8163b3a1..605f74479 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAddUserRequest.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineAddUserRequest { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -71,13 +71,13 @@ public FaxLineAddUserRequest number(@javax.annotation.Nonnull String number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull String number) { this.number = number; @@ -93,13 +93,13 @@ public FaxLineAddUserRequest accountId(@javax.annotation.Nullable String account * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -115,13 +115,13 @@ public FaxLineAddUserRequest emailAddress(@javax.annotation.Nullable String emai * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -257,9 +257,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java index bdf27b0cc..ea3466d4b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineAreaCodeGetResponse.java @@ -29,7 +29,7 @@ @JsonPropertyOrder({FaxLineAreaCodeGetResponse.JSON_PROPERTY_AREA_CODES}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineAreaCodeGetResponse { public static final String JSON_PROPERTY_AREA_CODES = "area_codes"; @@ -72,13 +72,13 @@ public FaxLineAreaCodeGetResponse addAreaCodesItem(Integer areaCodesItem) { * @return areaCodes */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AREA_CODES) + @JsonProperty(value = JSON_PROPERTY_AREA_CODES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getAreaCodes() { return areaCodes; } - @JsonProperty(JSON_PROPERTY_AREA_CODES) + @JsonProperty(value = JSON_PROPERTY_AREA_CODES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAreaCodes(@javax.annotation.Nonnull List areaCodes) { this.areaCodes = areaCodes; @@ -172,9 +172,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java index 66c469623..4f9ab4dce 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineCreateRequest.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineCreateRequest { public static final String JSON_PROPERTY_AREA_CODE = "area_code"; @@ -111,13 +111,13 @@ public FaxLineCreateRequest areaCode(@javax.annotation.Nonnull Integer areaCode) * @return areaCode */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AREA_CODE) + @JsonProperty(value = JSON_PROPERTY_AREA_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getAreaCode() { return areaCode; } - @JsonProperty(JSON_PROPERTY_AREA_CODE) + @JsonProperty(value = JSON_PROPERTY_AREA_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAreaCode(@javax.annotation.Nonnull Integer areaCode) { this.areaCode = areaCode; @@ -134,13 +134,13 @@ public FaxLineCreateRequest country(@javax.annotation.Nonnull CountryEnum countr * @return country */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_COUNTRY) + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public CountryEnum getCountry() { return country; } - @JsonProperty(JSON_PROPERTY_COUNTRY) + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCountry(@javax.annotation.Nonnull CountryEnum country) { this.country = country; @@ -156,13 +156,13 @@ public FaxLineCreateRequest city(@javax.annotation.Nullable String city) { * * @return city */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CITY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCity() { return city; } - @JsonProperty(JSON_PROPERTY_CITY) + @JsonProperty(value = JSON_PROPERTY_CITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCity(@javax.annotation.Nullable String city) { this.city = city; @@ -178,13 +178,13 @@ public FaxLineCreateRequest accountId(@javax.annotation.Nullable String accountI * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -340,9 +340,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java index 37873d146..af3171921 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineDeleteRequest.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({FaxLineDeleteRequest.JSON_PROPERTY_NUMBER}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineDeleteRequest { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -60,13 +60,13 @@ public FaxLineDeleteRequest number(@javax.annotation.Nonnull String number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull String number) { this.number = number; @@ -158,9 +158,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java index 9aaf96bdb..9db8a05da 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineListResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineListResponse { public static final String JSON_PROPERTY_LIST_INFO = "list_info"; @@ -72,13 +72,13 @@ public FaxLineListResponse listInfo(@javax.annotation.Nonnull ListInfoResponse l * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -104,13 +104,13 @@ public FaxLineListResponse addFaxLinesItem(FaxLineResponseFaxLine faxLinesItem) * @return faxLines */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX_LINES) + @JsonProperty(value = JSON_PROPERTY_FAX_LINES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFaxLines() { return faxLines; } - @JsonProperty(JSON_PROPERTY_FAX_LINES) + @JsonProperty(value = JSON_PROPERTY_FAX_LINES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxLines(@javax.annotation.Nonnull List faxLines) { this.faxLines = faxLines; @@ -126,13 +126,13 @@ public FaxLineListResponse warnings(@javax.annotation.Nullable WarningResponse w * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public WarningResponse getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; @@ -268,9 +268,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java index 9faabb1bf..946fd0ac3 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineRemoveUserRequest.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineRemoveUserRequest { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -72,13 +72,13 @@ public FaxLineRemoveUserRequest number(@javax.annotation.Nonnull String number) * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull String number) { this.number = number; @@ -94,13 +94,13 @@ public FaxLineRemoveUserRequest accountId(@javax.annotation.Nullable String acco * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -116,13 +116,13 @@ public FaxLineRemoveUserRequest emailAddress(@javax.annotation.Nullable String e * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -258,9 +258,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponse.java index c982b16ec..f1ce48226 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponse.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({FaxLineResponse.JSON_PROPERTY_FAX_LINE, FaxLineResponse.JSON_PROPERTY_WARNINGS}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineResponse { public static final String JSON_PROPERTY_FAX_LINE = "fax_line"; @@ -63,13 +63,13 @@ public FaxLineResponse faxLine(@javax.annotation.Nonnull FaxLineResponseFaxLine * @return faxLine */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX_LINE) + @JsonProperty(value = JSON_PROPERTY_FAX_LINE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public FaxLineResponseFaxLine getFaxLine() { return faxLine; } - @JsonProperty(JSON_PROPERTY_FAX_LINE) + @JsonProperty(value = JSON_PROPERTY_FAX_LINE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxLine(@javax.annotation.Nonnull FaxLineResponseFaxLine faxLine) { this.faxLine = faxLine; @@ -85,13 +85,13 @@ public FaxLineResponse warnings(@javax.annotation.Nullable WarningResponse warni * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public WarningResponse getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable WarningResponse warnings) { this.warnings = warnings; @@ -203,9 +203,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java index 79e0d943e..a04ecd37b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxLineResponseFaxLine.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxLineResponseFaxLine { public static final String JSON_PROPERTY_NUMBER = "number"; @@ -76,13 +76,13 @@ public FaxLineResponseFaxLine number(@javax.annotation.Nullable String number) { * * @return number */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@javax.annotation.Nullable String number) { this.number = number; @@ -98,13 +98,13 @@ public FaxLineResponseFaxLine createdAt(@javax.annotation.Nullable Integer creat * * @return createdAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { return createdAt; } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@javax.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -120,13 +120,13 @@ public FaxLineResponseFaxLine updatedAt(@javax.annotation.Nullable Integer updat * * @return updatedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUpdatedAt() { return updatedAt; } - @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUpdatedAt(@javax.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; @@ -151,13 +151,13 @@ public FaxLineResponseFaxLine addAccountsItem(AccountResponse accountsItem) { * * @return accounts */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAccounts() { return accounts; } - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccounts(@javax.annotation.Nullable List accounts) { this.accounts = accounts; @@ -313,9 +313,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxListResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxListResponse.java index a8f6296b9..dc7b229e6 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxListResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxListResponse.java @@ -29,7 +29,7 @@ @JsonPropertyOrder({FaxListResponse.JSON_PROPERTY_FAXES, FaxListResponse.JSON_PROPERTY_LIST_INFO}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxListResponse { public static final String JSON_PROPERTY_FAXES = "faxes"; @@ -73,13 +73,13 @@ public FaxListResponse addFaxesItem(FaxResponse faxesItem) { * @return faxes */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAXES) + @JsonProperty(value = JSON_PROPERTY_FAXES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFaxes() { return faxes; } - @JsonProperty(JSON_PROPERTY_FAXES) + @JsonProperty(value = JSON_PROPERTY_FAXES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxes(@javax.annotation.Nonnull List faxes) { this.faxes = faxes; @@ -96,13 +96,13 @@ public FaxListResponse listInfo(@javax.annotation.Nonnull ListInfoResponse listI * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -216,9 +216,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java index b72e26e86..3bb5e4d03 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java @@ -42,7 +42,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxResponse { public static final String JSON_PROPERTY_FAX_ID = "fax_id"; @@ -110,13 +110,13 @@ public FaxResponse faxId(@javax.annotation.Nonnull String faxId) { * @return faxId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FAX_ID) + @JsonProperty(value = JSON_PROPERTY_FAX_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getFaxId() { return faxId; } - @JsonProperty(JSON_PROPERTY_FAX_ID) + @JsonProperty(value = JSON_PROPERTY_FAX_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFaxId(@javax.annotation.Nonnull String faxId) { this.faxId = faxId; @@ -133,13 +133,13 @@ public FaxResponse title(@javax.annotation.Nonnull String title) { * @return title */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTitle(@javax.annotation.Nonnull String title) { this.title = title; @@ -156,13 +156,13 @@ public FaxResponse originalTitle(@javax.annotation.Nonnull String originalTitle) * @return originalTitle */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getOriginalTitle() { return originalTitle; } - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOriginalTitle(@javax.annotation.Nonnull String originalTitle) { this.originalTitle = originalTitle; @@ -187,13 +187,13 @@ public FaxResponse putMetadataItem(String key, Object metadataItem) { * @return metadata */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = true) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) public void setMetadata(@javax.annotation.Nonnull Map metadata) { this.metadata = metadata; @@ -210,13 +210,13 @@ public FaxResponse createdAt(@javax.annotation.Nonnull Integer createdAt) { * @return createdAt */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getCreatedAt() { return createdAt; } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCreatedAt(@javax.annotation.Nonnull Integer createdAt) { this.createdAt = createdAt; @@ -233,13 +233,13 @@ public FaxResponse sender(@javax.annotation.Nonnull String sender) { * @return sender */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSender() { return sender; } - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSender(@javax.annotation.Nonnull String sender) { this.sender = sender; @@ -256,13 +256,13 @@ public FaxResponse filesUrl(@javax.annotation.Nonnull String filesUrl) { * @return filesUrl */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getFilesUrl() { return filesUrl; } - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFilesUrl(@javax.annotation.Nonnull String filesUrl) { this.filesUrl = filesUrl; @@ -288,13 +288,13 @@ public FaxResponse addTransmissionsItem(FaxResponseTransmission transmissionsIte * @return transmissions */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRANSMISSIONS) + @JsonProperty(value = JSON_PROPERTY_TRANSMISSIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTransmissions() { return transmissions; } - @JsonProperty(JSON_PROPERTY_TRANSMISSIONS) + @JsonProperty(value = JSON_PROPERTY_TRANSMISSIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTransmissions( @javax.annotation.Nonnull List transmissions) { @@ -313,13 +313,13 @@ public FaxResponse testMode(@javax.annotation.Nonnull Boolean testMode) { * @return testMode */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTestMode(@javax.annotation.Nonnull Boolean testMode) { this.testMode = testMode; @@ -335,13 +335,13 @@ public FaxResponse subject(@javax.annotation.Nullable String subject) { * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -357,13 +357,13 @@ public FaxResponse message(@javax.annotation.Nullable String message) { * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -379,13 +379,13 @@ public FaxResponse finalCopyUri(@javax.annotation.Nullable String finalCopyUri) * * @return finalCopyUri */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFinalCopyUri() { return finalCopyUri; } - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFinalCopyUri(@javax.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; @@ -721,9 +721,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java index 133bde289..f4e92da45 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxResponseTransmission { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; @@ -118,13 +118,13 @@ public FaxResponseTransmission recipient(@javax.annotation.Nonnull String recipi * @return recipient */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRecipient() { return recipient; } - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRecipient(@javax.annotation.Nonnull String recipient) { this.recipient = recipient; @@ -141,13 +141,13 @@ public FaxResponseTransmission statusCode(@javax.annotation.Nonnull StatusCodeEn * @return statusCode */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public StatusCodeEnum getStatusCode() { return statusCode; } - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStatusCode(@javax.annotation.Nonnull StatusCodeEnum statusCode) { this.statusCode = statusCode; @@ -163,13 +163,13 @@ public FaxResponseTransmission sentAt(@javax.annotation.Nullable Integer sentAt) * * @return sentAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENT_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSentAt() { return sentAt; } - @JsonProperty(JSON_PROPERTY_SENT_AT) + @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSentAt(@javax.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; @@ -305,9 +305,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxSendRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxSendRequest.java index 27975b0d3..027aa1885 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxSendRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxSendRequest.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FaxSendRequest { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; @@ -97,13 +97,13 @@ public FaxSendRequest recipient(@javax.annotation.Nonnull String recipient) { * @return recipient */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRecipient() { return recipient; } - @JsonProperty(JSON_PROPERTY_RECIPIENT) + @JsonProperty(value = JSON_PROPERTY_RECIPIENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRecipient(@javax.annotation.Nonnull String recipient) { this.recipient = recipient; @@ -119,13 +119,13 @@ public FaxSendRequest sender(@javax.annotation.Nullable String sender) { * * @return sender */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SENDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSender() { return sender; } - @JsonProperty(JSON_PROPERTY_SENDER) + @JsonProperty(value = JSON_PROPERTY_SENDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSender(@javax.annotation.Nullable String sender) { this.sender = sender; @@ -150,13 +150,13 @@ public FaxSendRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -181,13 +181,13 @@ public FaxSendRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -203,13 +203,13 @@ public FaxSendRequest testMode(@javax.annotation.Nullable Boolean testMode) { * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -225,13 +225,13 @@ public FaxSendRequest coverPageTo(@javax.annotation.Nullable String coverPageTo) * * @return coverPageTo */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COVER_PAGE_TO) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_TO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCoverPageTo() { return coverPageTo; } - @JsonProperty(JSON_PROPERTY_COVER_PAGE_TO) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_TO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverPageTo(@javax.annotation.Nullable String coverPageTo) { this.coverPageTo = coverPageTo; @@ -247,13 +247,13 @@ public FaxSendRequest coverPageFrom(@javax.annotation.Nullable String coverPageF * * @return coverPageFrom */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COVER_PAGE_FROM) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCoverPageFrom() { return coverPageFrom; } - @JsonProperty(JSON_PROPERTY_COVER_PAGE_FROM) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverPageFrom(@javax.annotation.Nullable String coverPageFrom) { this.coverPageFrom = coverPageFrom; @@ -269,13 +269,13 @@ public FaxSendRequest coverPageMessage(@javax.annotation.Nullable String coverPa * * @return coverPageMessage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_COVER_PAGE_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCoverPageMessage() { return coverPageMessage; } - @JsonProperty(JSON_PROPERTY_COVER_PAGE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_COVER_PAGE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCoverPageMessage(@javax.annotation.Nullable String coverPageMessage) { this.coverPageMessage = coverPageMessage; @@ -291,13 +291,13 @@ public FaxSendRequest title(@javax.annotation.Nullable String title) { * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -570,9 +570,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponse.java index c03740895..20660a9c1 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponse.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({FileResponse.JSON_PROPERTY_FILE_URL, FileResponse.JSON_PROPERTY_EXPIRES_AT}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FileResponse { public static final String JSON_PROPERTY_FILE_URL = "file_url"; @@ -63,13 +63,13 @@ public FileResponse fileUrl(@javax.annotation.Nonnull String fileUrl) { * @return fileUrl */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getFileUrl() { return fileUrl; } - @JsonProperty(JSON_PROPERTY_FILE_URL) + @JsonProperty(value = JSON_PROPERTY_FILE_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFileUrl(@javax.annotation.Nonnull String fileUrl) { this.fileUrl = fileUrl; @@ -86,13 +86,13 @@ public FileResponse expiresAt(@javax.annotation.Nonnull Integer expiresAt) { * @return expiresAt */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setExpiresAt(@javax.annotation.Nonnull Integer expiresAt) { this.expiresAt = expiresAt; @@ -206,9 +206,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java index 2a27822eb..7ecaf7364 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FileResponseDataUri.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({FileResponseDataUri.JSON_PROPERTY_DATA_URI}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class FileResponseDataUri { public static final String JSON_PROPERTY_DATA_URI = "data_uri"; @@ -60,13 +60,13 @@ public FileResponseDataUri dataUri(@javax.annotation.Nonnull String dataUri) { * @return dataUri */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATA_URI) + @JsonProperty(value = JSON_PROPERTY_DATA_URI, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getDataUri() { return dataUri; } - @JsonProperty(JSON_PROPERTY_DATA_URI) + @JsonProperty(value = JSON_PROPERTY_DATA_URI, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDataUri(@javax.annotation.Nonnull String dataUri) { this.dataUri = dataUri; @@ -158,9 +158,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ListInfoResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ListInfoResponse.java index 3ed8ddfe5..248ea8c3f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ListInfoResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ListInfoResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ListInfoResponse { public static final String JSON_PROPERTY_NUM_PAGES = "num_pages"; @@ -73,13 +73,13 @@ public ListInfoResponse numPages(@javax.annotation.Nullable Integer numPages) { * * @return numPages */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_PAGES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_PAGES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumPages() { return numPages; } - @JsonProperty(JSON_PROPERTY_NUM_PAGES) + @JsonProperty(value = JSON_PROPERTY_NUM_PAGES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumPages(@javax.annotation.Nullable Integer numPages) { this.numPages = numPages; @@ -95,13 +95,13 @@ public ListInfoResponse numResults(@javax.annotation.Nullable Integer numResults * * @return numResults */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_RESULTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_RESULTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumResults() { return numResults; } - @JsonProperty(JSON_PROPERTY_NUM_RESULTS) + @JsonProperty(value = JSON_PROPERTY_NUM_RESULTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumResults(@javax.annotation.Nullable Integer numResults) { this.numResults = numResults; @@ -117,13 +117,13 @@ public ListInfoResponse page(@javax.annotation.Nullable Integer page) { * * @return page */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPage() { return page; } - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPage(@javax.annotation.Nullable Integer page) { this.page = page; @@ -139,13 +139,13 @@ public ListInfoResponse pageSize(@javax.annotation.Nullable Integer pageSize) { * * @return pageSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PAGE_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPageSize() { return pageSize; } - @JsonProperty(JSON_PROPERTY_PAGE_SIZE) + @JsonProperty(value = JSON_PROPERTY_PAGE_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageSize(@javax.annotation.Nullable Integer pageSize) { this.pageSize = pageSize; @@ -303,9 +303,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java index 5ef1cb685..ec829c501 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenGenerateRequest.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class OAuthTokenGenerateRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -80,13 +80,13 @@ public OAuthTokenGenerateRequest clientId(@javax.annotation.Nonnull String clien * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -103,13 +103,13 @@ public OAuthTokenGenerateRequest clientSecret(@javax.annotation.Nonnull String c * @return clientSecret */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientSecret() { return clientSecret; } - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientSecret(@javax.annotation.Nonnull String clientSecret) { this.clientSecret = clientSecret; @@ -126,13 +126,13 @@ public OAuthTokenGenerateRequest code(@javax.annotation.Nonnull String code) { * @return code */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCode() { return code; } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCode(@javax.annotation.Nonnull String code) { this.code = code; @@ -149,13 +149,13 @@ public OAuthTokenGenerateRequest grantType(@javax.annotation.Nonnull String gran * @return grantType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGrantType() { return grantType; } - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGrantType(@javax.annotation.Nonnull String grantType) { this.grantType = grantType; @@ -172,13 +172,13 @@ public OAuthTokenGenerateRequest state(@javax.annotation.Nonnull String state) { * @return state */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getState() { return state; } - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setState(@javax.annotation.Nonnull String state) { this.state = state; @@ -356,9 +356,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java index 58cdfdb6d..3e7d8faa8 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenRefreshRequest.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class OAuthTokenRefreshRequest { public static final String JSON_PROPERTY_GRANT_TYPE = "grant_type"; @@ -76,13 +76,13 @@ public OAuthTokenRefreshRequest grantType(@javax.annotation.Nonnull String grant * @return grantType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGrantType() { return grantType; } - @JsonProperty(JSON_PROPERTY_GRANT_TYPE) + @JsonProperty(value = JSON_PROPERTY_GRANT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGrantType(@javax.annotation.Nonnull String grantType) { this.grantType = grantType; @@ -99,13 +99,13 @@ public OAuthTokenRefreshRequest refreshToken(@javax.annotation.Nonnull String re * @return refreshToken */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRefreshToken() { return refreshToken; } - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRefreshToken(@javax.annotation.Nonnull String refreshToken) { this.refreshToken = refreshToken; @@ -122,13 +122,13 @@ public OAuthTokenRefreshRequest clientId(@javax.annotation.Nullable String clien * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -145,13 +145,13 @@ public OAuthTokenRefreshRequest clientSecret(@javax.annotation.Nullable String c * * @return clientSecret */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientSecret() { return clientSecret; } - @JsonProperty(JSON_PROPERTY_CLIENT_SECRET) + @JsonProperty(value = JSON_PROPERTY_CLIENT_SECRET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientSecret(@javax.annotation.Nullable String clientSecret) { this.clientSecret = clientSecret; @@ -311,9 +311,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java index 278d62579..d4b6a6893 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/OAuthTokenResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class OAuthTokenResponse { public static final String JSON_PROPERTY_ACCESS_TOKEN = "access_token"; @@ -77,13 +77,13 @@ public OAuthTokenResponse accessToken(@javax.annotation.Nullable String accessTo * * @return accessToken */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCESS_TOKEN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCESS_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccessToken() { return accessToken; } - @JsonProperty(JSON_PROPERTY_ACCESS_TOKEN) + @JsonProperty(value = JSON_PROPERTY_ACCESS_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccessToken(@javax.annotation.Nullable String accessToken) { this.accessToken = accessToken; @@ -99,13 +99,13 @@ public OAuthTokenResponse tokenType(@javax.annotation.Nullable String tokenType) * * @return tokenType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TOKEN_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTokenType() { return tokenType; } - @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) + @JsonProperty(value = JSON_PROPERTY_TOKEN_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTokenType(@javax.annotation.Nullable String tokenType) { this.tokenType = tokenType; @@ -121,13 +121,13 @@ public OAuthTokenResponse refreshToken(@javax.annotation.Nullable String refresh * * @return refreshToken */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRefreshToken() { return refreshToken; } - @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonProperty(value = JSON_PROPERTY_REFRESH_TOKEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRefreshToken(@javax.annotation.Nullable String refreshToken) { this.refreshToken = refreshToken; @@ -143,13 +143,13 @@ public OAuthTokenResponse expiresIn(@javax.annotation.Nullable Integer expiresIn * * @return expiresIn */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_IN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_IN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresIn() { return expiresIn; } - @JsonProperty(JSON_PROPERTY_EXPIRES_IN) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_IN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresIn(@javax.annotation.Nullable Integer expiresIn) { this.expiresIn = expiresIn; @@ -165,13 +165,13 @@ public OAuthTokenResponse state(@javax.annotation.Nullable String state) { * * @return state */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_STATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getState() { return state; } - @JsonProperty(JSON_PROPERTY_STATE) + @JsonProperty(value = JSON_PROPERTY_STATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setState(@javax.annotation.Nullable String state) { this.state = state; @@ -351,9 +351,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java index 3efd6b860..aa8b311de 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateRequest.java @@ -35,7 +35,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ReportCreateRequest { public static final String JSON_PROPERTY_END_DATE = "end_date"; @@ -111,13 +111,13 @@ public ReportCreateRequest endDate(@javax.annotation.Nonnull String endDate) { * @return endDate */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEndDate() { return endDate; } - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEndDate(@javax.annotation.Nonnull String endDate) { this.endDate = endDate; @@ -146,13 +146,13 @@ public ReportCreateRequest addReportTypeItem(ReportTypeEnum reportTypeItem) { * @return reportType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getReportType() { return reportType; } - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setReportType(@javax.annotation.Nonnull List reportType) { this.reportType = reportType; @@ -169,13 +169,13 @@ public ReportCreateRequest startDate(@javax.annotation.Nonnull String startDate) * @return startDate */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStartDate() { return startDate; } - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStartDate(@javax.annotation.Nonnull String startDate) { this.startDate = startDate; @@ -311,9 +311,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java index 70af485a1..d2565db36 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportCreateResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ReportCreateResponse { public static final String JSON_PROPERTY_REPORT = "report"; @@ -68,13 +68,13 @@ public ReportCreateResponse report(@javax.annotation.Nonnull ReportResponse repo * @return report */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REPORT) + @JsonProperty(value = JSON_PROPERTY_REPORT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ReportResponse getReport() { return report; } - @JsonProperty(JSON_PROPERTY_REPORT) + @JsonProperty(value = JSON_PROPERTY_REPORT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setReport(@javax.annotation.Nonnull ReportResponse report) { this.report = report; @@ -99,13 +99,13 @@ public ReportCreateResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -217,9 +217,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportResponse.java index b919980cf..c38bf6ddd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/ReportResponse.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class ReportResponse { public static final String JSON_PROPERTY_SUCCESS = "success"; @@ -114,13 +114,13 @@ public ReportResponse success(@javax.annotation.Nullable String success) { * * @return success */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUCCESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuccess() { return success; } - @JsonProperty(JSON_PROPERTY_SUCCESS) + @JsonProperty(value = JSON_PROPERTY_SUCCESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuccess(@javax.annotation.Nullable String success) { this.success = success; @@ -136,13 +136,13 @@ public ReportResponse startDate(@javax.annotation.Nullable String startDate) { * * @return startDate */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_DATE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_START_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStartDate() { return startDate; } - @JsonProperty(JSON_PROPERTY_START_DATE) + @JsonProperty(value = JSON_PROPERTY_START_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStartDate(@javax.annotation.Nullable String startDate) { this.startDate = startDate; @@ -158,13 +158,13 @@ public ReportResponse endDate(@javax.annotation.Nullable String endDate) { * * @return endDate */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_DATE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_END_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEndDate() { return endDate; } - @JsonProperty(JSON_PROPERTY_END_DATE) + @JsonProperty(value = JSON_PROPERTY_END_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEndDate(@javax.annotation.Nullable String endDate) { this.endDate = endDate; @@ -191,13 +191,13 @@ public ReportResponse addReportTypeItem(ReportTypeEnum reportTypeItem) { * * @return reportType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getReportType() { return reportType; } - @JsonProperty(JSON_PROPERTY_REPORT_TYPE) + @JsonProperty(value = JSON_PROPERTY_REPORT_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReportType(@javax.annotation.Nullable List reportType) { this.reportType = reportType; @@ -353,9 +353,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java index b83a7c823..f8fc4fc18 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.java @@ -45,7 +45,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestBulkCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -133,13 +133,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addTemplateIdsItem( * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -158,13 +158,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest clientId( * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -198,13 +198,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signerFile( * * @return signerFile */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getSignerFile() { return signerFile; } - @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerFile(@javax.annotation.Nullable File signerFile) { this.signerFile = signerFile; @@ -231,13 +231,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addSignerListItem( * * @return signerList */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerList() { return signerList; } - @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerList(@javax.annotation.Nullable List signerList) { this.signerList = signerList; @@ -255,13 +255,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -286,13 +286,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addCcsItem(SubCC cc * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -328,13 +328,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest addCustomFieldsItem * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -351,13 +351,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -387,13 +387,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -410,13 +410,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -433,13 +433,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -457,13 +457,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -480,13 +480,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest title( * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -505,13 +505,13 @@ public SignatureRequestBulkCreateEmbeddedWithTemplateRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -928,9 +928,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java index 96b3b03fd..3850da14e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestBulkSendWithTemplateRequest.java @@ -45,7 +45,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestBulkSendWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -131,13 +131,13 @@ public SignatureRequestBulkSendWithTemplateRequest addTemplateIdsItem(String tem * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -171,13 +171,13 @@ public SignatureRequestBulkSendWithTemplateRequest signerFile( * * @return signerFile */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getSignerFile() { return signerFile; } - @JsonProperty(JSON_PROPERTY_SIGNER_FILE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerFile(@javax.annotation.Nullable File signerFile) { this.signerFile = signerFile; @@ -204,13 +204,13 @@ public SignatureRequestBulkSendWithTemplateRequest addSignerListItem( * * @return signerList */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerList() { return signerList; } - @JsonProperty(JSON_PROPERTY_SIGNER_LIST) + @JsonProperty(value = JSON_PROPERTY_SIGNER_LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerList(@javax.annotation.Nullable List signerList) { this.signerList = signerList; @@ -228,13 +228,13 @@ public SignatureRequestBulkSendWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -259,13 +259,13 @@ public SignatureRequestBulkSendWithTemplateRequest addCcsItem(SubCC ccsItem) { * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -283,13 +283,13 @@ public SignatureRequestBulkSendWithTemplateRequest clientId( * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -325,13 +325,13 @@ public SignatureRequestBulkSendWithTemplateRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -348,13 +348,13 @@ public SignatureRequestBulkSendWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -384,13 +384,13 @@ public SignatureRequestBulkSendWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -407,13 +407,13 @@ public SignatureRequestBulkSendWithTemplateRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -430,13 +430,13 @@ public SignatureRequestBulkSendWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -454,13 +454,13 @@ public SignatureRequestBulkSendWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -477,13 +477,13 @@ public SignatureRequestBulkSendWithTemplateRequest title( * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -502,13 +502,13 @@ public SignatureRequestBulkSendWithTemplateRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -908,9 +908,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java index 619de9b1b..323e54c31 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedRequest.java @@ -56,7 +56,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestCreateEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -169,13 +169,13 @@ public SignatureRequestCreateEmbeddedRequest clientId( * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -201,13 +201,13 @@ public SignatureRequestCreateEmbeddedRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -233,13 +233,13 @@ public SignatureRequestCreateEmbeddedRequest addFileUrlsItem(String fileUrlsItem * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -266,13 +266,13 @@ public SignatureRequestCreateEmbeddedRequest addSignersItem( * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@javax.annotation.Nullable List signers) { this.signers = signers; @@ -299,13 +299,13 @@ public SignatureRequestCreateEmbeddedRequest addGroupedSignersItem( * * @return groupedSigners */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { return groupedSigners; } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners( @javax.annotation.Nullable List groupedSigners) { @@ -324,13 +324,13 @@ public SignatureRequestCreateEmbeddedRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -348,13 +348,13 @@ public SignatureRequestCreateEmbeddedRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -379,13 +379,13 @@ public SignatureRequestCreateEmbeddedRequest addAttachmentsItem(SubAttachment at * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -411,13 +411,13 @@ public SignatureRequestCreateEmbeddedRequest addCcEmailAddressesItem( * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -453,13 +453,13 @@ public SignatureRequestCreateEmbeddedRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -476,13 +476,13 @@ public SignatureRequestCreateEmbeddedRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -511,13 +511,13 @@ public SignatureRequestCreateEmbeddedRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -544,13 +544,13 @@ public SignatureRequestCreateEmbeddedRequest addFormFieldRulesItem( * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -592,13 +592,13 @@ public SignatureRequestCreateEmbeddedRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -620,13 +620,13 @@ public SignatureRequestCreateEmbeddedRequest hideTextTags( * * @return hideTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { return hideTextTags; } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@javax.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -643,13 +643,13 @@ public SignatureRequestCreateEmbeddedRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -678,13 +678,13 @@ public SignatureRequestCreateEmbeddedRequest putMetadataItem(String key, Object * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -701,13 +701,13 @@ public SignatureRequestCreateEmbeddedRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -724,13 +724,13 @@ public SignatureRequestCreateEmbeddedRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -748,13 +748,13 @@ public SignatureRequestCreateEmbeddedRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -770,13 +770,13 @@ public SignatureRequestCreateEmbeddedRequest title(@javax.annotation.Nullable St * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -795,13 +795,13 @@ public SignatureRequestCreateEmbeddedRequest useTextTags( * * @return useTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { return useTextTags; } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -819,13 +819,13 @@ public SignatureRequestCreateEmbeddedRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -847,13 +847,13 @@ public SignatureRequestCreateEmbeddedRequest populateAutoFillFields( * * @return populateAutoFillFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { return populateAutoFillFields; } - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPopulateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { @@ -873,13 +873,13 @@ public SignatureRequestCreateEmbeddedRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1552,9 +1552,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java index c734926f8..d18d1a4e5 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestCreateEmbeddedWithTemplateRequest.java @@ -47,7 +47,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -144,13 +144,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addTemplateIdsItem( * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -169,13 +169,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest clientId( * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -202,13 +202,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addSignersItem( * @return signers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners( @javax.annotation.Nonnull List signers) { @@ -227,13 +227,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -258,13 +258,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addCcsItem(SubCC ccsIte * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -291,13 +291,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -323,13 +323,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addFilesItem(File files * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -355,13 +355,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest addFileUrlsItem(String * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -378,13 +378,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -414,13 +414,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -437,13 +437,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -460,13 +460,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -484,13 +484,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -507,13 +507,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest title( * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -534,13 +534,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest populateAutoFillFields( * * @return populateAutoFillFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { return populateAutoFillFields; } - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPopulateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { @@ -560,13 +560,13 @@ public SignatureRequestCreateEmbeddedWithTemplateRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1023,9 +1023,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java index 7e81329a4..fca47cc08 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedRequest.java @@ -56,7 +56,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestEditEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -168,13 +168,13 @@ public SignatureRequestEditEmbeddedRequest clientId(@javax.annotation.Nonnull St * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -199,13 +199,13 @@ public SignatureRequestEditEmbeddedRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -231,13 +231,13 @@ public SignatureRequestEditEmbeddedRequest addFileUrlsItem(String fileUrlsItem) * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -264,13 +264,13 @@ public SignatureRequestEditEmbeddedRequest addSignersItem( * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@javax.annotation.Nullable List signers) { this.signers = signers; @@ -297,13 +297,13 @@ public SignatureRequestEditEmbeddedRequest addGroupedSignersItem( * * @return groupedSigners */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { return groupedSigners; } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners( @javax.annotation.Nullable List groupedSigners) { @@ -322,13 +322,13 @@ public SignatureRequestEditEmbeddedRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -346,13 +346,13 @@ public SignatureRequestEditEmbeddedRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -377,13 +377,13 @@ public SignatureRequestEditEmbeddedRequest addAttachmentsItem(SubAttachment atta * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -409,13 +409,13 @@ public SignatureRequestEditEmbeddedRequest addCcEmailAddressesItem( * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -451,13 +451,13 @@ public SignatureRequestEditEmbeddedRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -474,13 +474,13 @@ public SignatureRequestEditEmbeddedRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -509,13 +509,13 @@ public SignatureRequestEditEmbeddedRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -542,13 +542,13 @@ public SignatureRequestEditEmbeddedRequest addFormFieldRulesItem( * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -590,13 +590,13 @@ public SignatureRequestEditEmbeddedRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -618,13 +618,13 @@ public SignatureRequestEditEmbeddedRequest hideTextTags( * * @return hideTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { return hideTextTags; } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@javax.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -640,13 +640,13 @@ public SignatureRequestEditEmbeddedRequest message(@javax.annotation.Nullable St * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -675,13 +675,13 @@ public SignatureRequestEditEmbeddedRequest putMetadataItem(String key, Object me * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -698,13 +698,13 @@ public SignatureRequestEditEmbeddedRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -720,13 +720,13 @@ public SignatureRequestEditEmbeddedRequest subject(@javax.annotation.Nullable St * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -744,13 +744,13 @@ public SignatureRequestEditEmbeddedRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -766,13 +766,13 @@ public SignatureRequestEditEmbeddedRequest title(@javax.annotation.Nullable Stri * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -791,13 +791,13 @@ public SignatureRequestEditEmbeddedRequest useTextTags( * * @return useTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { return useTextTags; } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -815,13 +815,13 @@ public SignatureRequestEditEmbeddedRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -843,13 +843,13 @@ public SignatureRequestEditEmbeddedRequest populateAutoFillFields( * * @return populateAutoFillFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { return populateAutoFillFields; } - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPopulateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { @@ -869,13 +869,13 @@ public SignatureRequestEditEmbeddedRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1545,9 +1545,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java index 6cd3dbed4..c1fec3ade 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditEmbeddedWithTemplateRequest.java @@ -46,7 +46,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestEditEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -140,13 +140,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addTemplateIdsItem( * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -165,13 +165,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest clientId( * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -198,13 +198,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addSignersItem( * @return signers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners( @javax.annotation.Nonnull List signers) { @@ -223,13 +223,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -254,13 +254,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addCcsItem(SubCC ccsItem) * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -287,13 +287,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -319,13 +319,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addFilesItem(File filesIt * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -351,13 +351,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest addFileUrlsItem(String fi * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -374,13 +374,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -410,13 +410,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -433,13 +433,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -456,13 +456,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -480,13 +480,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -503,13 +503,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest title( * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -530,13 +530,13 @@ public SignatureRequestEditEmbeddedWithTemplateRequest populateAutoFillFields( * * @return populateAutoFillFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { return populateAutoFillFields; } - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPopulateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { @@ -965,9 +965,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java index 16d8e42b8..31f41af51 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditRequest.java @@ -57,7 +57,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestEditRequest { public static final String JSON_PROPERTY_FILES = "files"; @@ -178,13 +178,13 @@ public SignatureRequestEditRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -209,13 +209,13 @@ public SignatureRequestEditRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -241,13 +241,13 @@ public SignatureRequestEditRequest addSignersItem(SubSignatureRequestSigner sign * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@javax.annotation.Nullable List signers) { this.signers = signers; @@ -274,13 +274,13 @@ public SignatureRequestEditRequest addGroupedSignersItem( * * @return groupedSigners */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { return groupedSigners; } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners( @javax.annotation.Nullable List groupedSigners) { @@ -299,13 +299,13 @@ public SignatureRequestEditRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -324,13 +324,13 @@ public SignatureRequestEditRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -355,13 +355,13 @@ public SignatureRequestEditRequest addAttachmentsItem(SubAttachment attachmentsI * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -386,13 +386,13 @@ public SignatureRequestEditRequest addCcEmailAddressesItem(String ccEmailAddress * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -409,13 +409,13 @@ public SignatureRequestEditRequest clientId(@javax.annotation.Nullable String cl * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -450,13 +450,13 @@ public SignatureRequestEditRequest addCustomFieldsItem(SubCustomField customFiel * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -473,13 +473,13 @@ public SignatureRequestEditRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -508,13 +508,13 @@ public SignatureRequestEditRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -540,13 +540,13 @@ public SignatureRequestEditRequest addFormFieldRulesItem(SubFormFieldRule formFi * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -588,13 +588,13 @@ public SignatureRequestEditRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -616,13 +616,13 @@ public SignatureRequestEditRequest hideTextTags( * * @return hideTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { return hideTextTags; } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@javax.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -643,13 +643,13 @@ public SignatureRequestEditRequest isEid(@javax.annotation.Nullable Boolean isEi * * @return isEid */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_EID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { return isEid; } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@javax.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -665,13 +665,13 @@ public SignatureRequestEditRequest message(@javax.annotation.Nullable String mes * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -700,13 +700,13 @@ public SignatureRequestEditRequest putMetadataItem(String key, Object metadataIt * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -723,13 +723,13 @@ public SignatureRequestEditRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -746,13 +746,13 @@ public SignatureRequestEditRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -768,13 +768,13 @@ public SignatureRequestEditRequest subject(@javax.annotation.Nullable String sub * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -791,13 +791,13 @@ public SignatureRequestEditRequest testMode(@javax.annotation.Nullable Boolean t * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -813,13 +813,13 @@ public SignatureRequestEditRequest title(@javax.annotation.Nullable String title * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -837,13 +837,13 @@ public SignatureRequestEditRequest useTextTags(@javax.annotation.Nullable Boolea * * @return useTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { return useTextTags; } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -861,13 +861,13 @@ public SignatureRequestEditRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -886,13 +886,13 @@ public SignatureRequestEditRequest expiresAt(@javax.annotation.Nullable Integer * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1570,9 +1570,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java index 21daacc77..39c23188b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestEditWithTemplateRequest.java @@ -47,7 +47,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestEditWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -140,13 +140,13 @@ public SignatureRequestEditWithTemplateRequest addTemplateIdsItem(String templat * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -173,13 +173,13 @@ public SignatureRequestEditWithTemplateRequest addSignersItem( * @return signers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners( @javax.annotation.Nonnull List signers) { @@ -198,13 +198,13 @@ public SignatureRequestEditWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -228,13 +228,13 @@ public SignatureRequestEditWithTemplateRequest addCcsItem(SubCC ccsItem) { * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -252,13 +252,13 @@ public SignatureRequestEditWithTemplateRequest clientId( * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -285,13 +285,13 @@ public SignatureRequestEditWithTemplateRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -317,13 +317,13 @@ public SignatureRequestEditWithTemplateRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -349,13 +349,13 @@ public SignatureRequestEditWithTemplateRequest addFileUrlsItem(String fileUrlsIt * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -376,13 +376,13 @@ public SignatureRequestEditWithTemplateRequest isEid(@javax.annotation.Nullable * * @return isEid */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_EID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { return isEid; } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@javax.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -399,13 +399,13 @@ public SignatureRequestEditWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -435,13 +435,13 @@ public SignatureRequestEditWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -458,13 +458,13 @@ public SignatureRequestEditWithTemplateRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -481,13 +481,13 @@ public SignatureRequestEditWithTemplateRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -504,13 +504,13 @@ public SignatureRequestEditWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -528,13 +528,13 @@ public SignatureRequestEditWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -550,13 +550,13 @@ public SignatureRequestEditWithTemplateRequest title(@javax.annotation.Nullable * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -990,9 +990,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java index 713db0586..a6f85d261 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestGetResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestGetResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUEST = "signature_request"; @@ -71,13 +71,13 @@ public SignatureRequestGetResponse signatureRequest( * @return signatureRequest */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public SignatureRequestResponse getSignatureRequest() { return signatureRequest; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureRequest( @javax.annotation.Nonnull SignatureRequestResponse signatureRequest) { @@ -103,13 +103,13 @@ public SignatureRequestGetResponse addWarningsItem(WarningResponse warningsItem) * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -223,9 +223,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java index 2829c0ded..8e438dc67 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestListResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestListResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUESTS = "signature_requests"; @@ -86,13 +86,13 @@ public SignatureRequestListResponse addSignatureRequestsItem( * @return signatureRequests */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSignatureRequests() { return signatureRequests; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUESTS) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUESTS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureRequests( @javax.annotation.Nonnull List signatureRequests) { @@ -111,13 +111,13 @@ public SignatureRequestListResponse listInfo( * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -142,13 +142,13 @@ public SignatureRequestListResponse addWarningsItem(WarningResponse warningsItem * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -288,9 +288,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java index ee3fae591..2b7f7fe4c 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestRemindRequest.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestRemindRequest { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -69,13 +69,13 @@ public SignatureRequestRemindRequest emailAddress( * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -92,13 +92,13 @@ public SignatureRequestRemindRequest name(@javax.annotation.Nullable String name * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -213,9 +213,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java index 85da7fb61..be834ae59 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java @@ -55,7 +55,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestResponse { public static final String JSON_PROPERTY_TEST_MODE = "test_mode"; @@ -163,13 +163,13 @@ public SignatureRequestResponse testMode(@javax.annotation.Nullable Boolean test * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -186,13 +186,13 @@ public SignatureRequestResponse signatureRequestId( * * @return signatureRequestId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureRequestId() { return signatureRequestId; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequestId(@javax.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; @@ -209,13 +209,13 @@ public SignatureRequestResponse requesterEmailAddress( * * @return requesterEmailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequesterEmailAddress() { return requesterEmailAddress; } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequesterEmailAddress(@javax.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -231,13 +231,13 @@ public SignatureRequestResponse title(@javax.annotation.Nullable String title) { * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -253,13 +253,13 @@ public SignatureRequestResponse originalTitle(@javax.annotation.Nullable String * * @return originalTitle */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOriginalTitle() { return originalTitle; } - @JsonProperty(JSON_PROPERTY_ORIGINAL_TITLE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalTitle(@javax.annotation.Nullable String originalTitle) { this.originalTitle = originalTitle; @@ -275,13 +275,13 @@ public SignatureRequestResponse subject(@javax.annotation.Nullable String subjec * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -297,13 +297,13 @@ public SignatureRequestResponse message(@javax.annotation.Nullable String messag * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -328,13 +328,13 @@ public SignatureRequestResponse putMetadataItem(String key, Object metadataItem) * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -350,13 +350,13 @@ public SignatureRequestResponse createdAt(@javax.annotation.Nullable Integer cre * * @return createdAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCreatedAt() { return createdAt; } - @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreatedAt(@javax.annotation.Nullable Integer createdAt) { this.createdAt = createdAt; @@ -374,13 +374,13 @@ public SignatureRequestResponse expiresAt(@javax.annotation.Nullable Integer exp * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -396,13 +396,13 @@ public SignatureRequestResponse isComplete(@javax.annotation.Nullable Boolean is * * @return isComplete */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsComplete() { return isComplete; } - @JsonProperty(JSON_PROPERTY_IS_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_IS_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsComplete(@javax.annotation.Nullable Boolean isComplete) { this.isComplete = isComplete; @@ -418,13 +418,13 @@ public SignatureRequestResponse isDeclined(@javax.annotation.Nullable Boolean is * * @return isDeclined */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsDeclined() { return isDeclined; } - @JsonProperty(JSON_PROPERTY_IS_DECLINED) + @JsonProperty(value = JSON_PROPERTY_IS_DECLINED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsDeclined(@javax.annotation.Nullable Boolean isDeclined) { this.isDeclined = isDeclined; @@ -441,13 +441,13 @@ public SignatureRequestResponse hasError(@javax.annotation.Nullable Boolean hasE * * @return hasError */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasError() { return hasError; } - @JsonProperty(JSON_PROPERTY_HAS_ERROR) + @JsonProperty(value = JSON_PROPERTY_HAS_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasError(@javax.annotation.Nullable Boolean hasError) { this.hasError = hasError; @@ -463,13 +463,13 @@ public SignatureRequestResponse filesUrl(@javax.annotation.Nullable String files * * @return filesUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFilesUrl() { return filesUrl; } - @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonProperty(value = JSON_PROPERTY_FILES_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFilesUrl(@javax.annotation.Nullable String filesUrl) { this.filesUrl = filesUrl; @@ -487,13 +487,13 @@ public SignatureRequestResponse signingUrl(@javax.annotation.Nullable String sig * * @return signingUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningUrl() { return signingUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningUrl(@javax.annotation.Nullable String signingUrl) { this.signingUrl = signingUrl; @@ -510,13 +510,13 @@ public SignatureRequestResponse detailsUrl(@javax.annotation.Nullable String det * * @return detailsUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDetailsUrl() { return detailsUrl; } - @JsonProperty(JSON_PROPERTY_DETAILS_URL) + @JsonProperty(value = JSON_PROPERTY_DETAILS_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDetailsUrl(@javax.annotation.Nullable String detailsUrl) { this.detailsUrl = detailsUrl; @@ -542,13 +542,13 @@ public SignatureRequestResponse addCcEmailAddressesItem(String ccEmailAddressesI * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -565,13 +565,13 @@ public SignatureRequestResponse signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -587,13 +587,13 @@ public SignatureRequestResponse finalCopyUri(@javax.annotation.Nullable String f * * @return finalCopyUri */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFinalCopyUri() { return finalCopyUri; } - @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonProperty(value = JSON_PROPERTY_FINAL_COPY_URI, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFinalCopyUri(@javax.annotation.Nullable String finalCopyUri) { this.finalCopyUri = finalCopyUri; @@ -618,13 +618,13 @@ public SignatureRequestResponse addTemplateIdsItem(String templateIdsItem) { * * @return templateIds */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateIds(@javax.annotation.Nullable List templateIds) { this.templateIds = templateIds; @@ -652,13 +652,13 @@ public SignatureRequestResponse addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields( @javax.annotation.Nullable List customFields) { @@ -685,13 +685,13 @@ public SignatureRequestResponse addAttachmentsItem( * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments( @javax.annotation.Nullable List attachments) { @@ -719,13 +719,13 @@ public SignatureRequestResponse addResponseDataItem( * * @return responseData */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getResponseData() { return responseData; } - @JsonProperty(JSON_PROPERTY_RESPONSE_DATA) + @JsonProperty(value = JSON_PROPERTY_RESPONSE_DATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResponseData( @javax.annotation.Nullable List responseData) { @@ -752,13 +752,13 @@ public SignatureRequestResponse addSignaturesItem( * * @return signatures */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignatures() { return signatures; } - @JsonProperty(JSON_PROPERTY_SIGNATURES) + @JsonProperty(value = JSON_PROPERTY_SIGNATURES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatures( @javax.annotation.Nullable List signatures) { @@ -775,13 +775,13 @@ public SignatureRequestResponse bulkSendJobId(@javax.annotation.Nullable String * * @return bulkSendJobId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBulkSendJobId() { return bulkSendJobId; } - @JsonProperty(JSON_PROPERTY_BULK_SEND_JOB_ID) + @JsonProperty(value = JSON_PROPERTY_BULK_SEND_JOB_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBulkSendJobId(@javax.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; @@ -1437,9 +1437,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java index 8c0486a26..c0f32b914 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseAttachment.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestResponseAttachment { public static final String JSON_PROPERTY_ID = "id"; @@ -84,13 +84,13 @@ public SignatureRequestResponseAttachment id(@javax.annotation.Nonnull String id * @return id */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@javax.annotation.Nonnull String id) { this.id = id; @@ -112,13 +112,13 @@ public SignatureRequestResponseAttachment signer(Integer signer) { * @return signer */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSigner() { return signer; } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigner(@javax.annotation.Nonnull String signer) { this.signer = signer; @@ -139,13 +139,13 @@ public SignatureRequestResponseAttachment name(@javax.annotation.Nonnull String * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -162,13 +162,13 @@ public SignatureRequestResponseAttachment required(@javax.annotation.Nonnull Boo * @return required */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequired(@javax.annotation.Nonnull Boolean required) { this.required = required; @@ -185,13 +185,13 @@ public SignatureRequestResponseAttachment instructions( * * @return instructions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstructions() { return instructions; } - @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInstructions(@javax.annotation.Nullable String instructions) { this.instructions = instructions; @@ -208,13 +208,13 @@ public SignatureRequestResponseAttachment uploadedAt( * * @return uploadedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPLOADED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_UPLOADED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUploadedAt() { return uploadedAt; } - @JsonProperty(JSON_PROPERTY_UPLOADED_AT) + @JsonProperty(value = JSON_PROPERTY_UPLOADED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUploadedAt(@javax.annotation.Nullable Integer uploadedAt) { this.uploadedAt = uploadedAt; @@ -412,9 +412,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java index 4eb96aa4d..7749e414a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldBase.java @@ -39,7 +39,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -101,13 +101,13 @@ public SignatureRequestResponseCustomFieldBase type(@javax.annotation.Nonnull St * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -124,13 +124,13 @@ public SignatureRequestResponseCustomFieldBase name(@javax.annotation.Nonnull St * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -147,13 +147,13 @@ public SignatureRequestResponseCustomFieldBase required( * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -169,13 +169,13 @@ public SignatureRequestResponseCustomFieldBase apiId(@javax.annotation.Nullable * * @return apiId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { return apiId; } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@javax.annotation.Nullable String apiId) { this.apiId = apiId; @@ -192,13 +192,13 @@ public SignatureRequestResponseCustomFieldBase editor( * * @return editor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditor() { return editor; } - @JsonProperty(JSON_PROPERTY_EDITOR) + @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditor(@javax.annotation.Nullable String editor) { this.editor = editor; @@ -371,10 +371,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java index 8e0952e3d..876ce0706 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldCheckbox.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public SignatureRequestResponseCustomFieldCheckbox type(@javax.annotation.Nonnul * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -103,13 +103,13 @@ public SignatureRequestResponseCustomFieldCheckbox value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable Boolean value) { this.value = value; @@ -225,10 +225,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java index bb882571a..357fbcb7f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseCustomFieldText.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -79,13 +79,13 @@ public SignatureRequestResponseCustomFieldText type(@javax.annotation.Nonnull St * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -101,13 +101,13 @@ public SignatureRequestResponseCustomFieldText value(@javax.annotation.Nullable * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -223,10 +223,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java index e50d2024f..37779b987 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataBase.java @@ -38,7 +38,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -110,13 +110,13 @@ public SignatureRequestResponseDataBase apiId(@javax.annotation.Nullable String * * @return apiId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { return apiId; } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@javax.annotation.Nullable String apiId) { this.apiId = apiId; @@ -133,13 +133,13 @@ public SignatureRequestResponseDataBase signatureId( * * @return signatureId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureId() { return signatureId; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureId(@javax.annotation.Nullable String signatureId) { this.signatureId = signatureId; @@ -155,13 +155,13 @@ public SignatureRequestResponseDataBase name(@javax.annotation.Nullable String n * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -177,13 +177,13 @@ public SignatureRequestResponseDataBase required(@javax.annotation.Nullable Bool * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -199,13 +199,13 @@ public SignatureRequestResponseDataBase type(@javax.annotation.Nullable String t * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -380,10 +380,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java index aa196e173..f4e52be4b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckbox.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -76,13 +76,13 @@ public SignatureRequestResponseDataValueCheckbox type(@javax.annotation.Nullable * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -99,13 +99,13 @@ public SignatureRequestResponseDataValueCheckbox value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable Boolean value) { this.value = value; @@ -221,10 +221,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java index 99139c870..d1fd687f5 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueCheckboxMerge.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public SignatureRequestResponseDataValueCheckboxMerge type( * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -103,13 +103,13 @@ public SignatureRequestResponseDataValueCheckboxMerge value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -226,10 +226,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java index 038a3cc60..3213a2b85 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDateSigned.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -78,13 +78,13 @@ public SignatureRequestResponseDataValueDateSigned type( * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -101,13 +101,13 @@ public SignatureRequestResponseDataValueDateSigned value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -223,10 +223,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java index e702df116..e08a8c893 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueDropdown.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -76,13 +76,13 @@ public SignatureRequestResponseDataValueDropdown type(@javax.annotation.Nullable * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -99,13 +99,13 @@ public SignatureRequestResponseDataValueDropdown value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -221,10 +221,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index bd936ff8d..df84fb5ea 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public SignatureRequestResponseDataValueInitials type(@javax.annotation.Nullable * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -103,13 +103,13 @@ public SignatureRequestResponseDataValueInitials value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -126,13 +126,13 @@ public SignatureRequestResponseDataValueInitials isSigned( * * @return isSigned */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsSigned() { return isSigned; } - @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsSigned(@javax.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; @@ -270,10 +270,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java index 58eb6518c..0ea069dc0 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueRadio.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -75,13 +75,13 @@ public SignatureRequestResponseDataValueRadio type(@javax.annotation.Nullable St * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -97,13 +97,13 @@ public SignatureRequestResponseDataValueRadio value(@javax.annotation.Nullable B * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable Boolean value) { this.value = value; @@ -219,10 +219,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index e08d208d0..864ada2e2 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -81,13 +81,13 @@ public SignatureRequestResponseDataValueSignature type(@javax.annotation.Nullabl * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -104,13 +104,13 @@ public SignatureRequestResponseDataValueSignature value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -127,13 +127,13 @@ public SignatureRequestResponseDataValueSignature isSigned( * * @return isSigned */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsSigned() { return isSigned; } - @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonProperty(value = JSON_PROPERTY_IS_SIGNED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsSigned(@javax.annotation.Nullable Boolean isSigned) { this.isSigned = isSigned; @@ -272,10 +272,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java index ea517a79b..05de83ce0 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueText.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -75,13 +75,13 @@ public SignatureRequestResponseDataValueText type(@javax.annotation.Nullable Str * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -97,13 +97,13 @@ public SignatureRequestResponseDataValueText value(@javax.annotation.Nullable St * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -219,10 +219,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java index 0c3deed89..ca7b016f0 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueTextMerge.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -77,13 +77,13 @@ public SignatureRequestResponseDataValueTextMerge type(@javax.annotation.Nullabl * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -100,13 +100,13 @@ public SignatureRequestResponseDataValueTextMerge value( * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -222,10 +222,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java index ede6ebb32..0b1569322 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseSignatures.java @@ -47,7 +47,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestResponseSignatures { public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; @@ -136,13 +136,13 @@ public SignatureRequestResponseSignatures signatureId( * * @return signatureId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureId() { return signatureId; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureId(@javax.annotation.Nullable String signatureId) { this.signatureId = signatureId; @@ -159,13 +159,13 @@ public SignatureRequestResponseSignatures signerGroupGuid( * * @return signerGroupGuid */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_GROUP_GUID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_GROUP_GUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerGroupGuid() { return signerGroupGuid; } - @JsonProperty(JSON_PROPERTY_SIGNER_GROUP_GUID) + @JsonProperty(value = JSON_PROPERTY_SIGNER_GROUP_GUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerGroupGuid(@javax.annotation.Nullable String signerGroupGuid) { this.signerGroupGuid = signerGroupGuid; @@ -182,13 +182,13 @@ public SignatureRequestResponseSignatures signerEmailAddress( * * @return signerEmailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerEmailAddress() { return signerEmailAddress; } - @JsonProperty(JSON_PROPERTY_SIGNER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_SIGNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerEmailAddress(@javax.annotation.Nullable String signerEmailAddress) { this.signerEmailAddress = signerEmailAddress; @@ -205,13 +205,13 @@ public SignatureRequestResponseSignatures signerName( * * @return signerName */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerName() { return signerName; } - @JsonProperty(JSON_PROPERTY_SIGNER_NAME) + @JsonProperty(value = JSON_PROPERTY_SIGNER_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerName(@javax.annotation.Nullable String signerName) { this.signerName = signerName; @@ -228,13 +228,13 @@ public SignatureRequestResponseSignatures signerRole( * * @return signerRole */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_ROLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignerRole() { return signerRole; } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLE) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerRole(@javax.annotation.Nullable String signerRole) { this.signerRole = signerRole; @@ -250,13 +250,13 @@ public SignatureRequestResponseSignatures order(@javax.annotation.Nullable Integ * * @return order */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { return order; } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@javax.annotation.Nullable Integer order) { this.order = order; @@ -273,13 +273,13 @@ public SignatureRequestResponseSignatures statusCode( * * @return statusCode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStatusCode() { return statusCode; } - @JsonProperty(JSON_PROPERTY_STATUS_CODE) + @JsonProperty(value = JSON_PROPERTY_STATUS_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatusCode(@javax.annotation.Nullable String statusCode) { this.statusCode = statusCode; @@ -296,13 +296,13 @@ public SignatureRequestResponseSignatures declineReason( * * @return declineReason */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLINE_REASON) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DECLINE_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDeclineReason() { return declineReason; } - @JsonProperty(JSON_PROPERTY_DECLINE_REASON) + @JsonProperty(value = JSON_PROPERTY_DECLINE_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclineReason(@javax.annotation.Nullable String declineReason) { this.declineReason = declineReason; @@ -319,13 +319,13 @@ public SignatureRequestResponseSignatures signedAt( * * @return signedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSignedAt() { return signedAt; } - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(value = JSON_PROPERTY_SIGNED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignedAt(@javax.annotation.Nullable Integer signedAt) { this.signedAt = signedAt; @@ -342,13 +342,13 @@ public SignatureRequestResponseSignatures lastViewedAt( * * @return lastViewedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_VIEWED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LAST_VIEWED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getLastViewedAt() { return lastViewedAt; } - @JsonProperty(JSON_PROPERTY_LAST_VIEWED_AT) + @JsonProperty(value = JSON_PROPERTY_LAST_VIEWED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastViewedAt(@javax.annotation.Nullable Integer lastViewedAt) { this.lastViewedAt = lastViewedAt; @@ -365,13 +365,13 @@ public SignatureRequestResponseSignatures lastRemindedAt( * * @return lastRemindedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LAST_REMINDED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LAST_REMINDED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getLastRemindedAt() { return lastRemindedAt; } - @JsonProperty(JSON_PROPERTY_LAST_REMINDED_AT) + @JsonProperty(value = JSON_PROPERTY_LAST_REMINDED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastRemindedAt(@javax.annotation.Nullable Integer lastRemindedAt) { this.lastRemindedAt = lastRemindedAt; @@ -387,13 +387,13 @@ public SignatureRequestResponseSignatures hasPin(@javax.annotation.Nullable Bool * * @return hasPin */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_PIN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HAS_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasPin() { return hasPin; } - @JsonProperty(JSON_PROPERTY_HAS_PIN) + @JsonProperty(value = JSON_PROPERTY_HAS_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasPin(@javax.annotation.Nullable Boolean hasPin) { this.hasPin = hasPin; @@ -410,13 +410,13 @@ public SignatureRequestResponseSignatures hasSmsAuth( * * @return hasSmsAuth */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_SMS_AUTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HAS_SMS_AUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasSmsAuth() { return hasSmsAuth; } - @JsonProperty(JSON_PROPERTY_HAS_SMS_AUTH) + @JsonProperty(value = JSON_PROPERTY_HAS_SMS_AUTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasSmsAuth(@javax.annotation.Nullable Boolean hasSmsAuth) { this.hasSmsAuth = hasSmsAuth; @@ -433,13 +433,13 @@ public SignatureRequestResponseSignatures hasSmsDelivery( * * @return hasSmsDelivery */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HAS_SMS_DELIVERY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HAS_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasSmsDelivery() { return hasSmsDelivery; } - @JsonProperty(JSON_PROPERTY_HAS_SMS_DELIVERY) + @JsonProperty(value = JSON_PROPERTY_HAS_SMS_DELIVERY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasSmsDelivery(@javax.annotation.Nullable Boolean hasSmsDelivery) { this.hasSmsDelivery = hasSmsDelivery; @@ -456,13 +456,13 @@ public SignatureRequestResponseSignatures smsPhoneNumber( * * @return smsPhoneNumber */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmsPhoneNumber() { return smsPhoneNumber; } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumber(@javax.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; @@ -479,13 +479,13 @@ public SignatureRequestResponseSignatures reassignedBy( * * @return reassignedBy */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASSIGNED_BY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REASSIGNED_BY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReassignedBy() { return reassignedBy; } - @JsonProperty(JSON_PROPERTY_REASSIGNED_BY) + @JsonProperty(value = JSON_PROPERTY_REASSIGNED_BY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReassignedBy(@javax.annotation.Nullable String reassignedBy) { this.reassignedBy = reassignedBy; @@ -502,13 +502,13 @@ public SignatureRequestResponseSignatures reassignmentReason( * * @return reassignmentReason */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASSIGNMENT_REASON) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REASSIGNMENT_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReassignmentReason() { return reassignmentReason; } - @JsonProperty(JSON_PROPERTY_REASSIGNMENT_REASON) + @JsonProperty(value = JSON_PROPERTY_REASSIGNMENT_REASON, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReassignmentReason(@javax.annotation.Nullable String reassignmentReason) { this.reassignmentReason = reassignmentReason; @@ -525,13 +525,13 @@ public SignatureRequestResponseSignatures reassignedFrom( * * @return reassignedFrom */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASSIGNED_FROM) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REASSIGNED_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReassignedFrom() { return reassignedFrom; } - @JsonProperty(JSON_PROPERTY_REASSIGNED_FROM) + @JsonProperty(value = JSON_PROPERTY_REASSIGNED_FROM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReassignedFrom(@javax.annotation.Nullable String reassignedFrom) { this.reassignedFrom = reassignedFrom; @@ -547,13 +547,13 @@ public SignatureRequestResponseSignatures error(@javax.annotation.Nullable Strin * * @return error */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ERROR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getError() { return error; } - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(value = JSON_PROPERTY_ERROR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setError(@javax.annotation.Nullable String error) { this.error = error; @@ -1077,9 +1077,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java index 9f66585f6..8845a18f2 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendRequest.java @@ -58,7 +58,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestSendRequest { public static final String JSON_PROPERTY_FILES = "files"; @@ -182,13 +182,13 @@ public SignatureRequestSendRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -213,13 +213,13 @@ public SignatureRequestSendRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -245,13 +245,13 @@ public SignatureRequestSendRequest addSignersItem(SubSignatureRequestSigner sign * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@javax.annotation.Nullable List signers) { this.signers = signers; @@ -278,13 +278,13 @@ public SignatureRequestSendRequest addGroupedSignersItem( * * @return groupedSigners */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getGroupedSigners() { return groupedSigners; } - @JsonProperty(JSON_PROPERTY_GROUPED_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_GROUPED_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupedSigners( @javax.annotation.Nullable List groupedSigners) { @@ -303,13 +303,13 @@ public SignatureRequestSendRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -328,13 +328,13 @@ public SignatureRequestSendRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -359,13 +359,13 @@ public SignatureRequestSendRequest addAttachmentsItem(SubAttachment attachmentsI * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -390,13 +390,13 @@ public SignatureRequestSendRequest addCcEmailAddressesItem(String ccEmailAddress * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -413,13 +413,13 @@ public SignatureRequestSendRequest clientId(@javax.annotation.Nullable String cl * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -454,13 +454,13 @@ public SignatureRequestSendRequest addCustomFieldsItem(SubCustomField customFiel * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -477,13 +477,13 @@ public SignatureRequestSendRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -512,13 +512,13 @@ public SignatureRequestSendRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -544,13 +544,13 @@ public SignatureRequestSendRequest addFormFieldRulesItem(SubFormFieldRule formFi * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -592,13 +592,13 @@ public SignatureRequestSendRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -620,13 +620,13 @@ public SignatureRequestSendRequest hideTextTags( * * @return hideTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { return hideTextTags; } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@javax.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -650,14 +650,14 @@ public SignatureRequestSendRequest isQualifiedSignature( * @deprecated */ @Deprecated - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_QUALIFIED_SIGNATURE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsQualifiedSignature() { return isQualifiedSignature; } @Deprecated - @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) + @JsonProperty(value = JSON_PROPERTY_IS_QUALIFIED_SIGNATURE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsQualifiedSignature(@javax.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; @@ -678,13 +678,13 @@ public SignatureRequestSendRequest isEid(@javax.annotation.Nullable Boolean isEi * * @return isEid */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_EID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { return isEid; } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@javax.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -700,13 +700,13 @@ public SignatureRequestSendRequest message(@javax.annotation.Nullable String mes * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -735,13 +735,13 @@ public SignatureRequestSendRequest putMetadataItem(String key, Object metadataIt * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -758,13 +758,13 @@ public SignatureRequestSendRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -781,13 +781,13 @@ public SignatureRequestSendRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -803,13 +803,13 @@ public SignatureRequestSendRequest subject(@javax.annotation.Nullable String sub * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -826,13 +826,13 @@ public SignatureRequestSendRequest testMode(@javax.annotation.Nullable Boolean t * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -848,13 +848,13 @@ public SignatureRequestSendRequest title(@javax.annotation.Nullable String title * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -872,13 +872,13 @@ public SignatureRequestSendRequest useTextTags(@javax.annotation.Nullable Boolea * * @return useTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { return useTextTags; } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -896,13 +896,13 @@ public SignatureRequestSendRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -921,13 +921,13 @@ public SignatureRequestSendRequest expiresAt(@javax.annotation.Nullable Integer * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1633,9 +1633,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java index a09639d03..acca378ba 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSendWithTemplateRequest.java @@ -49,7 +49,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestSendWithTemplateRequest { public static final String JSON_PROPERTY_TEMPLATE_IDS = "template_ids"; @@ -148,13 +148,13 @@ public SignatureRequestSendWithTemplateRequest addTemplateIdsItem(String templat * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -181,13 +181,13 @@ public SignatureRequestSendWithTemplateRequest addSignersItem( * @return signers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners( @javax.annotation.Nonnull List signers) { @@ -206,13 +206,13 @@ public SignatureRequestSendWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -236,13 +236,13 @@ public SignatureRequestSendWithTemplateRequest addCcsItem(SubCC ccsItem) { * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -260,13 +260,13 @@ public SignatureRequestSendWithTemplateRequest clientId( * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -293,13 +293,13 @@ public SignatureRequestSendWithTemplateRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -325,13 +325,13 @@ public SignatureRequestSendWithTemplateRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -357,13 +357,13 @@ public SignatureRequestSendWithTemplateRequest addFileUrlsItem(String fileUrlsIt * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -387,14 +387,14 @@ public SignatureRequestSendWithTemplateRequest isQualifiedSignature( * @deprecated */ @Deprecated - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_QUALIFIED_SIGNATURE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsQualifiedSignature() { return isQualifiedSignature; } @Deprecated - @JsonProperty(JSON_PROPERTY_IS_QUALIFIED_SIGNATURE) + @JsonProperty(value = JSON_PROPERTY_IS_QUALIFIED_SIGNATURE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsQualifiedSignature(@javax.annotation.Nullable Boolean isQualifiedSignature) { this.isQualifiedSignature = isQualifiedSignature; @@ -415,13 +415,13 @@ public SignatureRequestSendWithTemplateRequest isEid(@javax.annotation.Nullable * * @return isEid */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_EID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEid() { return isEid; } - @JsonProperty(JSON_PROPERTY_IS_EID) + @JsonProperty(value = JSON_PROPERTY_IS_EID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEid(@javax.annotation.Nullable Boolean isEid) { this.isEid = isEid; @@ -438,13 +438,13 @@ public SignatureRequestSendWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -474,13 +474,13 @@ public SignatureRequestSendWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -497,13 +497,13 @@ public SignatureRequestSendWithTemplateRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -520,13 +520,13 @@ public SignatureRequestSendWithTemplateRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -543,13 +543,13 @@ public SignatureRequestSendWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -567,13 +567,13 @@ public SignatureRequestSendWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -589,13 +589,13 @@ public SignatureRequestSendWithTemplateRequest title(@javax.annotation.Nullable * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -614,13 +614,13 @@ public SignatureRequestSendWithTemplateRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1107,9 +1107,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java index ee3251b41..8c3fc25b4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestUpdateRequest.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SignatureRequestUpdateRequest { public static final String JSON_PROPERTY_SIGNATURE_ID = "signature_id"; @@ -76,13 +76,13 @@ public SignatureRequestUpdateRequest signatureId(@javax.annotation.Nonnull Strin * @return signatureId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSignatureId() { return signatureId; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignatureId(@javax.annotation.Nonnull String signatureId) { this.signatureId = signatureId; @@ -100,13 +100,13 @@ public SignatureRequestUpdateRequest emailAddress( * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -122,13 +122,13 @@ public SignatureRequestUpdateRequest name(@javax.annotation.Nullable String name * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -146,13 +146,13 @@ public SignatureRequestUpdateRequest expiresAt(@javax.annotation.Nullable Intege * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -311,9 +311,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubAttachment.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubAttachment.java index d9f3ad2e5..3af173a39 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubAttachment.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubAttachment.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubAttachment { public static final String JSON_PROPERTY_NAME = "name"; @@ -74,13 +74,13 @@ public SubAttachment name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -98,13 +98,13 @@ public SubAttachment signerIndex(@javax.annotation.Nonnull Integer signerIndex) * @return signerIndex */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER_INDEX) + @JsonProperty(value = JSON_PROPERTY_SIGNER_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getSignerIndex() { return signerIndex; } - @JsonProperty(JSON_PROPERTY_SIGNER_INDEX) + @JsonProperty(value = JSON_PROPERTY_SIGNER_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignerIndex(@javax.annotation.Nonnull Integer signerIndex) { this.signerIndex = signerIndex; @@ -120,13 +120,13 @@ public SubAttachment instructions(@javax.annotation.Nullable String instructions * * @return instructions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getInstructions() { return instructions; } - @JsonProperty(JSON_PROPERTY_INSTRUCTIONS) + @JsonProperty(value = JSON_PROPERTY_INSTRUCTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInstructions(@javax.annotation.Nullable String instructions) { this.instructions = instructions; @@ -142,13 +142,13 @@ public SubAttachment required(@javax.annotation.Nullable Boolean required) { * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -304,9 +304,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java index d08a75d1e..dfef53936 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerList.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubBulkSignerList { public static final String JSON_PROPERTY_CUSTOM_FIELDS = "custom_fields"; @@ -76,13 +76,13 @@ public SubBulkSignerList addCustomFieldsItem(SubBulkSignerListCustomField custom * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields( @javax.annotation.Nullable List customFields) { @@ -110,13 +110,13 @@ public SubBulkSignerList addSignersItem(SubSignatureRequestTemplateSigner signer * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners( @javax.annotation.Nullable List signers) { @@ -231,9 +231,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java index 40145d4ed..dda31b098 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubBulkSignerListCustomField.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubBulkSignerListCustomField { public static final String JSON_PROPERTY_NAME = "name"; @@ -68,13 +68,13 @@ public SubBulkSignerListCustomField name(@javax.annotation.Nonnull String name) * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -91,13 +91,13 @@ public SubBulkSignerListCustomField value(@javax.annotation.Nonnull String value * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull String value) { this.value = value; @@ -210,9 +210,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCC.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCC.java index f9b550b7e..ef35fa9c1 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCC.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCC.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({SubCC.JSON_PROPERTY_ROLE, SubCC.JSON_PROPERTY_EMAIL_ADDRESS}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubCC { public static final String JSON_PROPERTY_ROLE = "role"; @@ -64,13 +64,13 @@ public SubCC role(@javax.annotation.Nonnull String role) { * @return role */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRole() { return role; } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRole(@javax.annotation.Nonnull String role) { this.role = role; @@ -87,13 +87,13 @@ public SubCC emailAddress(@javax.annotation.Nonnull String emailAddress) { * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -207,9 +207,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCustomField.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCustomField.java index 4cd3a8dc2..09811c3c1 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCustomField.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubCustomField.java @@ -41,7 +41,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubCustomField { public static final String JSON_PROPERTY_NAME = "name"; @@ -85,13 +85,13 @@ public SubCustomField name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -113,13 +113,13 @@ public SubCustomField editor(@javax.annotation.Nullable String editor) { * * @return editor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditor() { return editor; } - @JsonProperty(JSON_PROPERTY_EDITOR) + @JsonProperty(value = JSON_PROPERTY_EDITOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditor(@javax.annotation.Nullable String editor) { this.editor = editor; @@ -136,13 +136,13 @@ public SubCustomField required(@javax.annotation.Nullable Boolean required) { * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -159,13 +159,13 @@ public SubCustomField value(@javax.annotation.Nullable String value) { * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -317,9 +317,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubEditorOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubEditorOptions.java index d93127b44..d4fab646f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubEditorOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubEditorOptions.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubEditorOptions { public static final String JSON_PROPERTY_ALLOW_EDIT_SIGNERS = "allow_edit_signers"; @@ -65,13 +65,13 @@ public SubEditorOptions allowEditSigners(@javax.annotation.Nullable Boolean allo * * @return allowEditSigners */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowEditSigners() { return allowEditSigners; } - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowEditSigners(@javax.annotation.Nullable Boolean allowEditSigners) { this.allowEditSigners = allowEditSigners; @@ -88,13 +88,13 @@ public SubEditorOptions allowEditDocuments( * * @return allowEditDocuments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowEditDocuments() { return allowEditDocuments; } - @JsonProperty(JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_EDIT_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowEditDocuments(@javax.annotation.Nullable Boolean allowEditDocuments) { this.allowEditDocuments = allowEditDocuments; @@ -214,9 +214,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFieldOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFieldOptions.java index b739c2d42..ee5748a73 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFieldOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFieldOptions.java @@ -29,7 +29,7 @@ @JsonPropertyOrder({SubFieldOptions.JSON_PROPERTY_DATE_FORMAT}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubFieldOptions { /** @@ -109,13 +109,13 @@ public SubFieldOptions dateFormat(@javax.annotation.Nonnull DateFormatEnum dateF * @return dateFormat */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE_FORMAT) + @JsonProperty(value = JSON_PROPERTY_DATE_FORMAT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DateFormatEnum getDateFormat() { return dateFormat; } - @JsonProperty(JSON_PROPERTY_DATE_FORMAT) + @JsonProperty(value = JSON_PROPERTY_DATE_FORMAT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDateFormat(@javax.annotation.Nonnull DateFormatEnum dateFormat) { this.dateFormat = dateFormat; @@ -209,9 +209,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java index 11338d70a..e871e6a1b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldGroup.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubFormFieldGroup { public static final String JSON_PROPERTY_GROUP_ID = "group_id"; @@ -71,13 +71,13 @@ public SubFormFieldGroup groupId(@javax.annotation.Nonnull String groupId) { * @return groupId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroupId() { return groupId; } - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroupId(@javax.annotation.Nonnull String groupId) { this.groupId = groupId; @@ -94,13 +94,13 @@ public SubFormFieldGroup groupLabel(@javax.annotation.Nonnull String groupLabel) * @return groupLabel */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroupLabel() { return groupLabel; } - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroupLabel(@javax.annotation.Nonnull String groupLabel) { this.groupLabel = groupLabel; @@ -122,13 +122,13 @@ public SubFormFieldGroup requirement(@javax.annotation.Nonnull String requiremen * @return requirement */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRequirement() { return requirement; } - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequirement(@javax.annotation.Nonnull String requirement) { this.requirement = requirement; @@ -264,9 +264,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java index a32b6eb6c..3ad312bb1 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRule.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubFormFieldRule { public static final String JSON_PROPERTY_ID = "id"; @@ -76,13 +76,13 @@ public SubFormFieldRule id(@javax.annotation.Nonnull String id) { * @return id */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@javax.annotation.Nonnull String id) { this.id = id; @@ -99,13 +99,13 @@ public SubFormFieldRule triggerOperator(@javax.annotation.Nonnull String trigger * @return triggerOperator */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIGGER_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_TRIGGER_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriggerOperator() { return triggerOperator; } - @JsonProperty(JSON_PROPERTY_TRIGGER_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_TRIGGER_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriggerOperator(@javax.annotation.Nonnull String triggerOperator) { this.triggerOperator = triggerOperator; @@ -132,13 +132,13 @@ public SubFormFieldRule addTriggersItem(SubFormFieldRuleTrigger triggersItem) { * @return triggers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonProperty(value = JSON_PROPERTY_TRIGGERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTriggers() { return triggers; } - @JsonProperty(JSON_PROPERTY_TRIGGERS) + @JsonProperty(value = JSON_PROPERTY_TRIGGERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriggers(@javax.annotation.Nonnull List triggers) { this.triggers = triggers; @@ -165,13 +165,13 @@ public SubFormFieldRule addActionsItem(SubFormFieldRuleAction actionsItem) { * @return actions */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonProperty(value = JSON_PROPERTY_ACTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getActions() { return actions; } - @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonProperty(value = JSON_PROPERTY_ACTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setActions(@javax.annotation.Nonnull List actions) { this.actions = actions; @@ -325,9 +325,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java index c26d25b82..b8fd07996 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleAction.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubFormFieldRuleAction { public static final String JSON_PROPERTY_HIDDEN = "hidden"; @@ -113,13 +113,13 @@ public SubFormFieldRuleAction hidden(@javax.annotation.Nonnull Boolean hidden) { * @return hidden */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonProperty(value = JSON_PROPERTY_HIDDEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getHidden() { return hidden; } - @JsonProperty(JSON_PROPERTY_HIDDEN) + @JsonProperty(value = JSON_PROPERTY_HIDDEN, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHidden(@javax.annotation.Nonnull Boolean hidden) { this.hidden = hidden; @@ -136,13 +136,13 @@ public SubFormFieldRuleAction type(@javax.annotation.Nonnull TypeEnum type) { * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TypeEnum getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull TypeEnum type) { this.type = type; @@ -160,13 +160,13 @@ public SubFormFieldRuleAction fieldId(@javax.annotation.Nullable String fieldId) * * @return fieldId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFieldId() { return fieldId; } - @JsonProperty(JSON_PROPERTY_FIELD_ID) + @JsonProperty(value = JSON_PROPERTY_FIELD_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldId(@javax.annotation.Nullable String fieldId) { this.fieldId = fieldId; @@ -184,13 +184,13 @@ public SubFormFieldRuleAction groupId(@javax.annotation.Nullable String groupId) * * @return groupId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroupId() { return groupId; } - @JsonProperty(JSON_PROPERTY_GROUP_ID) + @JsonProperty(value = JSON_PROPERTY_GROUP_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupId(@javax.annotation.Nullable String groupId) { this.groupId = groupId; @@ -342,9 +342,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java index d421a5926..33a22c3a3 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldRuleTrigger.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubFormFieldRuleTrigger { public static final String JSON_PROPERTY_ID = "id"; @@ -129,13 +129,13 @@ public SubFormFieldRuleTrigger id(@javax.annotation.Nonnull String id) { * @return id */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@javax.annotation.Nonnull String id) { this.id = id; @@ -159,13 +159,13 @@ public SubFormFieldRuleTrigger operator(@javax.annotation.Nonnull OperatorEnum o * @return operator */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OperatorEnum getOperator() { return operator; } - @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonProperty(value = JSON_PROPERTY_OPERATOR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOperator(@javax.annotation.Nonnull OperatorEnum operator) { this.operator = operator; @@ -185,13 +185,13 @@ public SubFormFieldRuleTrigger value(@javax.annotation.Nullable String value) { * * @return value */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValue() { return value; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(@javax.annotation.Nullable String value) { this.value = value; @@ -216,13 +216,13 @@ public SubFormFieldRuleTrigger addValuesItem(String valuesItem) { * * @return values */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { return values; } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@javax.annotation.Nullable List values) { this.values = values; @@ -374,9 +374,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java index 34bfc8529..3c3173e1c 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentBase.java @@ -57,7 +57,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -145,13 +145,13 @@ public SubFormFieldsPerDocumentBase documentIndex( * @return documentIndex */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DOCUMENT_INDEX) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getDocumentIndex() { return documentIndex; } - @JsonProperty(JSON_PROPERTY_DOCUMENT_INDEX) + @JsonProperty(value = JSON_PROPERTY_DOCUMENT_INDEX, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDocumentIndex(@javax.annotation.Nonnull Integer documentIndex) { this.documentIndex = documentIndex; @@ -168,13 +168,13 @@ public SubFormFieldsPerDocumentBase apiId(@javax.annotation.Nonnull String apiId * @return apiId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getApiId() { return apiId; } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setApiId(@javax.annotation.Nonnull String apiId) { this.apiId = apiId; @@ -191,13 +191,13 @@ public SubFormFieldsPerDocumentBase height(@javax.annotation.Nonnull Integer hei * @return height */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getHeight() { return height; } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHeight(@javax.annotation.Nonnull Integer height) { this.height = height; @@ -214,13 +214,13 @@ public SubFormFieldsPerDocumentBase required(@javax.annotation.Nonnull Boolean r * @return required */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequired(@javax.annotation.Nonnull Boolean required) { this.required = required; @@ -245,13 +245,13 @@ public SubFormFieldsPerDocumentBase signer(Integer signer) { * @return signer */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSigner() { return signer; } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigner(@javax.annotation.Nonnull String signer) { this.signer = signer; @@ -272,13 +272,13 @@ public SubFormFieldsPerDocumentBase type(@javax.annotation.Nonnull String type) * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -295,13 +295,13 @@ public SubFormFieldsPerDocumentBase width(@javax.annotation.Nonnull Integer widt * @return width */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getWidth() { return width; } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWidth(@javax.annotation.Nonnull Integer width) { this.width = width; @@ -318,13 +318,13 @@ public SubFormFieldsPerDocumentBase x(@javax.annotation.Nonnull Integer x) { * @return x */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getX() { return x; } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setX(@javax.annotation.Nonnull Integer x) { this.x = x; @@ -341,13 +341,13 @@ public SubFormFieldsPerDocumentBase y(@javax.annotation.Nonnull Integer y) { * @return y */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getY() { return y; } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setY(@javax.annotation.Nonnull Integer y) { this.y = y; @@ -363,13 +363,13 @@ public SubFormFieldsPerDocumentBase name(@javax.annotation.Nullable String name) * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -388,13 +388,13 @@ public SubFormFieldsPerDocumentBase page(@javax.annotation.Nullable Integer page * * @return page */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPage() { return page; } - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(value = JSON_PROPERTY_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPage(@javax.annotation.Nullable Integer page) { this.page = page; @@ -690,10 +690,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java index edfc9ed9d..612de084e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckbox.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public SubFormFieldsPerDocumentCheckbox type(@javax.annotation.Nonnull String ty * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -103,13 +103,13 @@ public SubFormFieldsPerDocumentCheckbox isChecked(@javax.annotation.Nonnull Bool * @return isChecked */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getIsChecked() { return isChecked; } - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIsChecked(@javax.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; @@ -125,13 +125,13 @@ public SubFormFieldsPerDocumentCheckbox group(@javax.annotation.Nullable String * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -269,10 +269,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java index d414d0c74..d6b36121a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentCheckboxMerge.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({SubFormFieldsPerDocumentCheckboxMerge.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -71,13 +71,13 @@ public SubFormFieldsPerDocumentCheckboxMerge type(@javax.annotation.Nonnull Stri * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -173,10 +173,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java index afb25159e..6d8271070 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDateSigned.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -143,13 +143,13 @@ public SubFormFieldsPerDocumentDateSigned type(@javax.annotation.Nonnull String * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -166,13 +166,13 @@ public SubFormFieldsPerDocumentDateSigned fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -191,13 +191,13 @@ public SubFormFieldsPerDocumentDateSigned fontSize( * * @return fontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { return fontSize; } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@javax.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -337,10 +337,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java index 035f0e7f3..eda7b96ac 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentDropdown.java @@ -38,7 +38,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -153,13 +153,13 @@ public SubFormFieldsPerDocumentDropdown type(@javax.annotation.Nonnull String ty * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -185,13 +185,13 @@ public SubFormFieldsPerDocumentDropdown addOptionsItem(String optionsItem) { * @return options */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getOptions() { return options; } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOptions(@javax.annotation.Nonnull List options) { this.options = options; @@ -207,13 +207,13 @@ public SubFormFieldsPerDocumentDropdown content(@javax.annotation.Nullable Strin * * @return content */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getContent() { return content; } - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContent(@javax.annotation.Nullable String content) { this.content = content; @@ -230,13 +230,13 @@ public SubFormFieldsPerDocumentDropdown fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -254,13 +254,13 @@ public SubFormFieldsPerDocumentDropdown fontSize(@javax.annotation.Nullable Inte * * @return fontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { return fontSize; } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@javax.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -440,10 +440,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java index 0a1af8390..97bc2779d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentHyperlink.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -151,13 +151,13 @@ public SubFormFieldsPerDocumentHyperlink type(@javax.annotation.Nonnull String t * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -174,13 +174,13 @@ public SubFormFieldsPerDocumentHyperlink content(@javax.annotation.Nonnull Strin * @return content */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getContent() { return content; } - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setContent(@javax.annotation.Nonnull String content) { this.content = content; @@ -198,13 +198,13 @@ public SubFormFieldsPerDocumentHyperlink contentUrl( * @return contentUrl */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CONTENT_URL) + @JsonProperty(value = JSON_PROPERTY_CONTENT_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getContentUrl() { return contentUrl; } - @JsonProperty(JSON_PROPERTY_CONTENT_URL) + @JsonProperty(value = JSON_PROPERTY_CONTENT_URL, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setContentUrl(@javax.annotation.Nonnull String contentUrl) { this.contentUrl = contentUrl; @@ -221,13 +221,13 @@ public SubFormFieldsPerDocumentHyperlink fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -245,13 +245,13 @@ public SubFormFieldsPerDocumentHyperlink fontSize(@javax.annotation.Nullable Int * * @return fontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { return fontSize; } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@javax.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -433,10 +433,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java index d00c7e281..bbe67f537 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentInitials.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({SubFormFieldsPerDocumentInitials.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -70,13 +70,13 @@ public SubFormFieldsPerDocumentInitials type(@javax.annotation.Nonnull String ty * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -171,10 +171,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java index e72b7f9b2..f666f7808 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentRadio.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public SubFormFieldsPerDocumentRadio type(@javax.annotation.Nonnull String type) * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -103,13 +103,13 @@ public SubFormFieldsPerDocumentRadio group(@javax.annotation.Nonnull String grou * @return group */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroup(@javax.annotation.Nonnull String group) { this.group = group; @@ -127,13 +127,13 @@ public SubFormFieldsPerDocumentRadio isChecked(@javax.annotation.Nonnull Boolean * @return isChecked */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getIsChecked() { return isChecked; } - @JsonProperty(JSON_PROPERTY_IS_CHECKED) + @JsonProperty(value = JSON_PROPERTY_IS_CHECKED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIsChecked(@javax.annotation.Nonnull Boolean isChecked) { this.isChecked = isChecked; @@ -271,10 +271,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java index 71370c6d2..b1841a093 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentSignature.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({SubFormFieldsPerDocumentSignature.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -70,13 +70,13 @@ public SubFormFieldsPerDocumentSignature type(@javax.annotation.Nonnull String t * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -171,10 +171,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java index 00d47ecb5..77dc1bd02 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentText.java @@ -42,7 +42,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -232,13 +232,13 @@ public SubFormFieldsPerDocumentText type(@javax.annotation.Nonnull String type) * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -254,13 +254,13 @@ public SubFormFieldsPerDocumentText placeholder(@javax.annotation.Nullable Strin * * @return placeholder */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PLACEHOLDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PLACEHOLDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPlaceholder() { return placeholder; } - @JsonProperty(JSON_PROPERTY_PLACEHOLDER) + @JsonProperty(value = JSON_PROPERTY_PLACEHOLDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPlaceholder(@javax.annotation.Nullable String placeholder) { this.placeholder = placeholder; @@ -278,13 +278,13 @@ public SubFormFieldsPerDocumentText autoFillType( * * @return autoFillType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTO_FILL_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_AUTO_FILL_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAutoFillType() { return autoFillType; } - @JsonProperty(JSON_PROPERTY_AUTO_FILL_TYPE) + @JsonProperty(value = JSON_PROPERTY_AUTO_FILL_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAutoFillType(@javax.annotation.Nullable String autoFillType) { this.autoFillType = autoFillType; @@ -301,13 +301,13 @@ public SubFormFieldsPerDocumentText linkId(@javax.annotation.Nullable String lin * * @return linkId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINK_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LINK_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkId() { return linkId; } - @JsonProperty(JSON_PROPERTY_LINK_ID) + @JsonProperty(value = JSON_PROPERTY_LINK_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkId(@javax.annotation.Nullable String linkId) { this.linkId = linkId; @@ -325,13 +325,13 @@ public SubFormFieldsPerDocumentText masked(@javax.annotation.Nullable Boolean ma * * @return masked */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MASKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMasked() { return masked; } - @JsonProperty(JSON_PROPERTY_MASKED) + @JsonProperty(value = JSON_PROPERTY_MASKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMasked(@javax.annotation.Nullable Boolean masked) { this.masked = masked; @@ -353,13 +353,13 @@ public SubFormFieldsPerDocumentText validationType( * * @return validationType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ValidationTypeEnum getValidationType() { return validationType; } - @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationType(@javax.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; @@ -376,13 +376,13 @@ public SubFormFieldsPerDocumentText validationCustomRegex( * * @return validationCustomRegex */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationCustomRegex() { return validationCustomRegex; } - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationCustomRegex(@javax.annotation.Nullable String validationCustomRegex) { this.validationCustomRegex = validationCustomRegex; @@ -399,13 +399,13 @@ public SubFormFieldsPerDocumentText validationCustomRegexFormatLabel( * * @return validationCustomRegexFormatLabel */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationCustomRegexFormatLabel() { return validationCustomRegexFormatLabel; } - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationCustomRegexFormatLabel( @javax.annotation.Nullable String validationCustomRegexFormatLabel) { @@ -422,13 +422,13 @@ public SubFormFieldsPerDocumentText content(@javax.annotation.Nullable String co * * @return content */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getContent() { return content; } - @JsonProperty(JSON_PROPERTY_CONTENT) + @JsonProperty(value = JSON_PROPERTY_CONTENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContent(@javax.annotation.Nullable String content) { this.content = content; @@ -445,13 +445,13 @@ public SubFormFieldsPerDocumentText fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -469,13 +469,13 @@ public SubFormFieldsPerDocumentText fontSize(@javax.annotation.Nullable Integer * * @return fontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { return fontSize; } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@javax.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -815,10 +815,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java index d4bf984d5..d67b6990f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubFormFieldsPerDocumentTextMerge.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -144,13 +144,13 @@ public SubFormFieldsPerDocumentTextMerge type(@javax.annotation.Nonnull String t * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -167,13 +167,13 @@ public SubFormFieldsPerDocumentTextMerge fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FontFamilyEnum getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable FontFamilyEnum fontFamily) { this.fontFamily = fontFamily; @@ -191,13 +191,13 @@ public SubFormFieldsPerDocumentTextMerge fontSize(@javax.annotation.Nullable Int * * @return fontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getFontSize() { return fontSize; } - @JsonProperty(JSON_PROPERTY_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontSize(@javax.annotation.Nullable Integer fontSize) { this.fontSize = fontSize; @@ -337,10 +337,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubMergeField.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubMergeField.java index d4f7fba9f..ae2324d66 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubMergeField.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubMergeField.java @@ -29,7 +29,7 @@ @JsonPropertyOrder({SubMergeField.JSON_PROPERTY_NAME, SubMergeField.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubMergeField { public static final String JSON_PROPERTY_NAME = "name"; @@ -98,13 +98,13 @@ public SubMergeField name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -121,13 +121,13 @@ public SubMergeField type(@javax.annotation.Nonnull TypeEnum type) { * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TypeEnum getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull TypeEnum type) { this.type = type; @@ -239,9 +239,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOAuth.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOAuth.java index 1d7220b38..5baab13ff 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOAuth.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOAuth.java @@ -31,7 +31,7 @@ @JsonPropertyOrder({SubOAuth.JSON_PROPERTY_CALLBACK_URL, SubOAuth.JSON_PROPERTY_SCOPES}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubOAuth { public static final String JSON_PROPERTY_CALLBACK_URL = "callback_url"; @@ -112,13 +112,13 @@ public SubOAuth callbackUrl(@javax.annotation.Nullable String callbackUrl) { * * @return callbackUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCallbackUrl() { return callbackUrl; } - @JsonProperty(JSON_PROPERTY_CALLBACK_URL) + @JsonProperty(value = JSON_PROPERTY_CALLBACK_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCallbackUrl(@javax.annotation.Nullable String callbackUrl) { this.callbackUrl = callbackUrl; @@ -143,13 +143,13 @@ public SubOAuth addScopesItem(ScopesEnum scopesItem) { * * @return scopes */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCOPES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getScopes() { return scopes; } - @JsonProperty(JSON_PROPERTY_SCOPES) + @JsonProperty(value = JSON_PROPERTY_SCOPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScopes(@javax.annotation.Nullable List scopes) { this.scopes = scopes; @@ -263,9 +263,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOptions.java index dca71d2ef..1e93a561b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubOptions.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({SubOptions.JSON_PROPERTY_CAN_INSERT_EVERYWHERE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubOptions { public static final String JSON_PROPERTY_CAN_INSERT_EVERYWHERE = "can_insert_everywhere"; @@ -59,13 +59,13 @@ public SubOptions canInsertEverywhere(@javax.annotation.Nullable Boolean canInse * * @return canInsertEverywhere */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getCanInsertEverywhere() { return canInsertEverywhere; } - @JsonProperty(JSON_PROPERTY_CAN_INSERT_EVERYWHERE) + @JsonProperty(value = JSON_PROPERTY_CAN_INSERT_EVERYWHERE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCanInsertEverywhere(@javax.annotation.Nullable Boolean canInsertEverywhere) { this.canInsertEverywhere = canInsertEverywhere; @@ -163,9 +163,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java index b67ccb989..ff13bfe88 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestGroupedSigners.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubSignatureRequestGroupedSigners { public static final String JSON_PROPERTY_GROUP = "group"; @@ -74,13 +74,13 @@ public SubSignatureRequestGroupedSigners group(@javax.annotation.Nonnull String * @return group */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroup(@javax.annotation.Nonnull String group) { this.group = group; @@ -108,13 +108,13 @@ public SubSignatureRequestGroupedSigners addSignersItem(SubSignatureRequestSigne * @return signers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSigners(@javax.annotation.Nonnull List signers) { this.signers = signers; @@ -131,13 +131,13 @@ public SubSignatureRequestGroupedSigners order(@javax.annotation.Nullable Intege * * @return order */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { return order; } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@javax.annotation.Nullable Integer order) { this.order = order; @@ -270,9 +270,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java index 6bfe0c6eb..b28910bc7 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestSigner.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubSignatureRequestSigner { public static final String JSON_PROPERTY_NAME = "name"; @@ -124,13 +124,13 @@ public SubSignatureRequestSigner name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -147,13 +147,13 @@ public SubSignatureRequestSigner emailAddress(@javax.annotation.Nonnull String e * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -169,13 +169,13 @@ public SubSignatureRequestSigner order(@javax.annotation.Nullable Integer order) * * @return order */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { return order; } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@javax.annotation.Nullable Integer order) { this.order = order; @@ -191,13 +191,13 @@ public SubSignatureRequestSigner pin(@javax.annotation.Nullable String pin) { * * @return pin */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PIN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPin() { return pin; } - @JsonProperty(JSON_PROPERTY_PIN) + @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPin(@javax.annotation.Nullable String pin) { this.pin = pin; @@ -219,13 +219,13 @@ public SubSignatureRequestSigner smsPhoneNumber( * * @return smsPhoneNumber */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmsPhoneNumber() { return smsPhoneNumber; } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumber(@javax.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; @@ -245,13 +245,13 @@ public SubSignatureRequestSigner smsPhoneNumberType( * * @return smsPhoneNumberType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { return smsPhoneNumberType; } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumberType( @javax.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { @@ -455,9 +455,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java index a43dfa702..10daf5ea5 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSignatureRequestTemplateSigner.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubSignatureRequestTemplateSigner { public static final String JSON_PROPERTY_ROLE = "role"; @@ -124,13 +124,13 @@ public SubSignatureRequestTemplateSigner role(@javax.annotation.Nonnull String r * @return role */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRole() { return role; } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRole(@javax.annotation.Nonnull String role) { this.role = role; @@ -147,13 +147,13 @@ public SubSignatureRequestTemplateSigner name(@javax.annotation.Nonnull String n * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -171,13 +171,13 @@ public SubSignatureRequestTemplateSigner emailAddress( * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -193,13 +193,13 @@ public SubSignatureRequestTemplateSigner pin(@javax.annotation.Nullable String p * * @return pin */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PIN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPin() { return pin; } - @JsonProperty(JSON_PROPERTY_PIN) + @JsonProperty(value = JSON_PROPERTY_PIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPin(@javax.annotation.Nullable String pin) { this.pin = pin; @@ -221,13 +221,13 @@ public SubSignatureRequestTemplateSigner smsPhoneNumber( * * @return smsPhoneNumber */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmsPhoneNumber() { return smsPhoneNumber; } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumber(@javax.annotation.Nullable String smsPhoneNumber) { this.smsPhoneNumber = smsPhoneNumber; @@ -247,13 +247,13 @@ public SubSignatureRequestTemplateSigner smsPhoneNumberType( * * @return smsPhoneNumberType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SmsPhoneNumberTypeEnum getSmsPhoneNumberType() { return smsPhoneNumberType; } - @JsonProperty(JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE) + @JsonProperty(value = JSON_PROPERTY_SMS_PHONE_NUMBER_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsPhoneNumberType( @javax.annotation.Nullable SmsPhoneNumberTypeEnum smsPhoneNumberType) { @@ -460,9 +460,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSigningOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSigningOptions.java index 6b9c493da..199ed925b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSigningOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubSigningOptions.java @@ -41,7 +41,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubSigningOptions { /** The default type shown (limited to the listed types) */ @@ -127,13 +127,13 @@ public SubSigningOptions defaultType(@javax.annotation.Nonnull DefaultTypeEnum d * @return defaultType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DEFAULT_TYPE) + @JsonProperty(value = JSON_PROPERTY_DEFAULT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DefaultTypeEnum getDefaultType() { return defaultType; } - @JsonProperty(JSON_PROPERTY_DEFAULT_TYPE) + @JsonProperty(value = JSON_PROPERTY_DEFAULT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDefaultType(@javax.annotation.Nonnull DefaultTypeEnum defaultType) { this.defaultType = defaultType; @@ -149,13 +149,13 @@ public SubSigningOptions draw(@javax.annotation.Nullable Boolean draw) { * * @return draw */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DRAW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DRAW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDraw() { return draw; } - @JsonProperty(JSON_PROPERTY_DRAW) + @JsonProperty(value = JSON_PROPERTY_DRAW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDraw(@javax.annotation.Nullable Boolean draw) { this.draw = draw; @@ -171,13 +171,13 @@ public SubSigningOptions phone(@javax.annotation.Nullable Boolean phone) { * * @return phone */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPhone() { return phone; } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable Boolean phone) { this.phone = phone; @@ -193,13 +193,13 @@ public SubSigningOptions type(@javax.annotation.Nullable Boolean type) { * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable Boolean type) { this.type = type; @@ -215,13 +215,13 @@ public SubSigningOptions upload(@javax.annotation.Nullable Boolean upload) { * * @return upload */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPLOAD) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_UPLOAD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUpload() { return upload; } - @JsonProperty(JSON_PROPERTY_UPLOAD) + @JsonProperty(value = JSON_PROPERTY_UPLOAD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUpload(@javax.annotation.Nullable Boolean upload) { this.upload = upload; @@ -238,13 +238,13 @@ public SubSigningOptions forceAdvancedSignatureDetails( * * @return forceAdvancedSignatureDetails */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceAdvancedSignatureDetails() { return forceAdvancedSignatureDetails; } - @JsonProperty(JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS) + @JsonProperty(value = JSON_PROPERTY_FORCE_ADVANCED_SIGNATURE_DETAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceAdvancedSignatureDetails( @javax.annotation.Nullable Boolean forceAdvancedSignatureDetails) { @@ -449,9 +449,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTeamResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTeamResponse.java index 34ff420c4..a97c032aa 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTeamResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTeamResponse.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({SubTeamResponse.JSON_PROPERTY_TEAM_ID, SubTeamResponse.JSON_PROPERTY_NAME}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubTeamResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; @@ -62,13 +62,13 @@ public SubTeamResponse teamId(@javax.annotation.Nullable String teamId) { * * @return teamId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEAM_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { return teamId; } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@javax.annotation.Nullable String teamId) { this.teamId = teamId; @@ -84,13 +84,13 @@ public SubTeamResponse name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -202,9 +202,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTemplateRole.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTemplateRole.java index d1d482e85..4a1eef839 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTemplateRole.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubTemplateRole.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({SubTemplateRole.JSON_PROPERTY_NAME, SubTemplateRole.JSON_PROPERTY_ORDER}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubTemplateRole { public static final String JSON_PROPERTY_NAME = "name"; @@ -63,13 +63,13 @@ public SubTemplateRole name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -85,13 +85,13 @@ public SubTemplateRole order(@javax.annotation.Nullable Integer order) { * * @return order */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { return order; } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@javax.annotation.Nullable Integer order) { this.order = order; @@ -203,9 +203,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java index e7761bd14..dd144923d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftSigner.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubUnclaimedDraftSigner { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -71,13 +71,13 @@ public SubUnclaimedDraftSigner emailAddress(@javax.annotation.Nonnull String ema * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -94,13 +94,13 @@ public SubUnclaimedDraftSigner name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -116,13 +116,13 @@ public SubUnclaimedDraftSigner order(@javax.annotation.Nullable Integer order) { * * @return order */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { return order; } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@javax.annotation.Nullable Integer order) { this.order = order; @@ -256,9 +256,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java index 337c82ff8..fe7d45c02 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUnclaimedDraftTemplateSigner.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubUnclaimedDraftTemplateSigner { public static final String JSON_PROPERTY_ROLE = "role"; @@ -72,13 +72,13 @@ public SubUnclaimedDraftTemplateSigner role(@javax.annotation.Nonnull String rol * @return role */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRole() { return role; } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRole(@javax.annotation.Nonnull String role) { this.role = role; @@ -95,13 +95,13 @@ public SubUnclaimedDraftTemplateSigner name(@javax.annotation.Nonnull String nam * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -119,13 +119,13 @@ public SubUnclaimedDraftTemplateSigner emailAddress( * @return emailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEmailAddress(@javax.annotation.Nonnull String emailAddress) { this.emailAddress = emailAddress; @@ -260,9 +260,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java index aaa5e980f..579e051e6 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubWhiteLabelingOptions.java @@ -49,7 +49,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class SubWhiteLabelingOptions { public static final String JSON_PROPERTY_HEADER_BACKGROUND_COLOR = "header_background_color"; @@ -164,13 +164,13 @@ public SubWhiteLabelingOptions headerBackgroundColor( * * @return headerBackgroundColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHeaderBackgroundColor() { return headerBackgroundColor; } - @JsonProperty(JSON_PROPERTY_HEADER_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_HEADER_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeaderBackgroundColor(@javax.annotation.Nullable String headerBackgroundColor) { this.headerBackgroundColor = headerBackgroundColor; @@ -187,13 +187,13 @@ public SubWhiteLabelingOptions legalVersion( * * @return legalVersion */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public LegalVersionEnum getLegalVersion() { return legalVersion; } - @JsonProperty(JSON_PROPERTY_LEGAL_VERSION) + @JsonProperty(value = JSON_PROPERTY_LEGAL_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLegalVersion(@javax.annotation.Nullable LegalVersionEnum legalVersion) { this.legalVersion = legalVersion; @@ -209,13 +209,13 @@ public SubWhiteLabelingOptions linkColor(@javax.annotation.Nullable String linkC * * @return linkColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLinkColor() { return linkColor; } - @JsonProperty(JSON_PROPERTY_LINK_COLOR) + @JsonProperty(value = JSON_PROPERTY_LINK_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLinkColor(@javax.annotation.Nullable String linkColor) { this.linkColor = linkColor; @@ -232,13 +232,13 @@ public SubWhiteLabelingOptions pageBackgroundColor( * * @return pageBackgroundColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPageBackgroundColor() { return pageBackgroundColor; } - @JsonProperty(JSON_PROPERTY_PAGE_BACKGROUND_COLOR) + @JsonProperty(value = JSON_PROPERTY_PAGE_BACKGROUND_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPageBackgroundColor(@javax.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; @@ -255,13 +255,13 @@ public SubWhiteLabelingOptions primaryButtonColor( * * @return primaryButtonColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColor() { return primaryButtonColor; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonColor(@javax.annotation.Nullable String primaryButtonColor) { this.primaryButtonColor = primaryButtonColor; @@ -278,13 +278,13 @@ public SubWhiteLabelingOptions primaryButtonColorHover( * * @return primaryButtonColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonColorHover() { return primaryButtonColorHover; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonColorHover( @javax.annotation.Nullable String primaryButtonColorHover) { @@ -302,13 +302,13 @@ public SubWhiteLabelingOptions primaryButtonTextColor( * * @return primaryButtonTextColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonTextColor() { return primaryButtonTextColor; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonTextColor( @javax.annotation.Nullable String primaryButtonTextColor) { @@ -326,13 +326,13 @@ public SubWhiteLabelingOptions primaryButtonTextColorHover( * * @return primaryButtonTextColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrimaryButtonTextColorHover() { return primaryButtonTextColorHover; } - @JsonProperty(JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_PRIMARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrimaryButtonTextColorHover( @javax.annotation.Nullable String primaryButtonTextColorHover) { @@ -350,13 +350,13 @@ public SubWhiteLabelingOptions secondaryButtonColor( * * @return secondaryButtonColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColor() { return secondaryButtonColor; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonColor(@javax.annotation.Nullable String secondaryButtonColor) { this.secondaryButtonColor = secondaryButtonColor; @@ -373,13 +373,13 @@ public SubWhiteLabelingOptions secondaryButtonColorHover( * * @return secondaryButtonColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonColorHover() { return secondaryButtonColorHover; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonColorHover( @javax.annotation.Nullable String secondaryButtonColorHover) { @@ -397,13 +397,13 @@ public SubWhiteLabelingOptions secondaryButtonTextColor( * * @return secondaryButtonTextColor */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonTextColor() { return secondaryButtonTextColor; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonTextColor( @javax.annotation.Nullable String secondaryButtonTextColor) { @@ -421,13 +421,13 @@ public SubWhiteLabelingOptions secondaryButtonTextColorHover( * * @return secondaryButtonTextColorHover */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSecondaryButtonTextColorHover() { return secondaryButtonTextColorHover; } - @JsonProperty(JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER) + @JsonProperty(value = JSON_PROPERTY_SECONDARY_BUTTON_TEXT_COLOR_HOVER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSecondaryButtonTextColorHover( @javax.annotation.Nullable String secondaryButtonTextColorHover) { @@ -444,13 +444,13 @@ public SubWhiteLabelingOptions textColor1(@javax.annotation.Nullable String text * * @return textColor1 */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor1() { return textColor1; } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR1) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor1(@javax.annotation.Nullable String textColor1) { this.textColor1 = textColor1; @@ -466,13 +466,13 @@ public SubWhiteLabelingOptions textColor2(@javax.annotation.Nullable String text * * @return textColor2 */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTextColor2() { return textColor2; } - @JsonProperty(JSON_PROPERTY_TEXT_COLOR2) + @JsonProperty(value = JSON_PROPERTY_TEXT_COLOR2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTextColor2(@javax.annotation.Nullable String textColor2) { this.textColor2 = textColor2; @@ -489,13 +489,13 @@ public SubWhiteLabelingOptions resetToDefault( * * @return resetToDefault */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESET_TO_DEFAULT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_RESET_TO_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getResetToDefault() { return resetToDefault; } - @JsonProperty(JSON_PROPERTY_RESET_TO_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_RESET_TO_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResetToDefault(@javax.annotation.Nullable Boolean resetToDefault) { this.resetToDefault = resetToDefault; @@ -981,9 +981,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java index 0c25c96b8..21b611e8f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamAddMemberRequest.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamAddMemberRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -112,13 +112,13 @@ public TeamAddMemberRequest accountId(@javax.annotation.Nullable String accountI * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -135,13 +135,13 @@ public TeamAddMemberRequest emailAddress(@javax.annotation.Nullable String email * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -158,13 +158,13 @@ public TeamAddMemberRequest role(@javax.annotation.Nullable RoleEnum role) { * * @return role */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RoleEnum getRole() { return role; } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRole(@javax.annotation.Nullable RoleEnum role) { this.role = role; @@ -300,9 +300,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java index 2766e1d20..538c8a9f0 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamCreateRequest.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({TeamCreateRequest.JSON_PROPERTY_NAME}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamCreateRequest { public static final String JSON_PROPERTY_NAME = "name"; @@ -59,13 +59,13 @@ public TeamCreateRequest name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -157,9 +157,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java index b26c99715..d7bfd816e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetInfoResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamGetInfoResponse { public static final String JSON_PROPERTY_TEAM = "team"; @@ -68,13 +68,13 @@ public TeamGetInfoResponse team(@javax.annotation.Nonnull TeamInfoResponse team) * @return team */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TeamInfoResponse getTeam() { return team; } - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeam(@javax.annotation.Nonnull TeamInfoResponse team) { this.team = team; @@ -98,13 +98,13 @@ public TeamGetInfoResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -216,9 +216,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetResponse.java index 2bee16d9e..dbafa668c 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamGetResponse.java @@ -29,7 +29,7 @@ @JsonPropertyOrder({TeamGetResponse.JSON_PROPERTY_TEAM, TeamGetResponse.JSON_PROPERTY_WARNINGS}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamGetResponse { public static final String JSON_PROPERTY_TEAM = "team"; @@ -65,13 +65,13 @@ public TeamGetResponse team(@javax.annotation.Nonnull TeamResponse team) { * @return team */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TeamResponse getTeam() { return team; } - @JsonProperty(JSON_PROPERTY_TEAM) + @JsonProperty(value = JSON_PROPERTY_TEAM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeam(@javax.annotation.Nonnull TeamResponse team) { this.team = team; @@ -95,13 +95,13 @@ public TeamGetResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -213,9 +213,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java index 09b1f9c66..8c51019ee 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInfoResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamInfoResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; @@ -77,13 +77,13 @@ public TeamInfoResponse teamId(@javax.annotation.Nullable String teamId) { * * @return teamId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEAM_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { return teamId; } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@javax.annotation.Nullable String teamId) { this.teamId = teamId; @@ -99,13 +99,13 @@ public TeamInfoResponse teamParent(@javax.annotation.Nullable TeamParentResponse * * @return teamParent */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEAM_PARENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEAM_PARENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TeamParentResponse getTeamParent() { return teamParent; } - @JsonProperty(JSON_PROPERTY_TEAM_PARENT) + @JsonProperty(value = JSON_PROPERTY_TEAM_PARENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamParent(@javax.annotation.Nullable TeamParentResponse teamParent) { this.teamParent = teamParent; @@ -121,13 +121,13 @@ public TeamInfoResponse name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -143,13 +143,13 @@ public TeamInfoResponse numMembers(@javax.annotation.Nullable Integer numMembers * * @return numMembers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_MEMBERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_MEMBERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumMembers() { return numMembers; } - @JsonProperty(JSON_PROPERTY_NUM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_NUM_MEMBERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumMembers(@javax.annotation.Nullable Integer numMembers) { this.numMembers = numMembers; @@ -165,13 +165,13 @@ public TeamInfoResponse numSubTeams(@javax.annotation.Nullable Integer numSubTea * * @return numSubTeams */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_SUB_TEAMS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_SUB_TEAMS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumSubTeams() { return numSubTeams; } - @JsonProperty(JSON_PROPERTY_NUM_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_NUM_SUB_TEAMS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumSubTeams(@javax.annotation.Nullable Integer numSubTeams) { this.numSubTeams = numSubTeams; @@ -349,9 +349,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java index 05bcf91b5..2d7fe99b9 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInviteResponse.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamInviteResponse { public static final String JSON_PROPERTY_EMAIL_ADDRESS = "email_address"; @@ -81,13 +81,13 @@ public TeamInviteResponse emailAddress(@javax.annotation.Nullable String emailAd * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -103,13 +103,13 @@ public TeamInviteResponse teamId(@javax.annotation.Nullable String teamId) { * * @return teamId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEAM_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { return teamId; } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@javax.annotation.Nullable String teamId) { this.teamId = teamId; @@ -125,13 +125,13 @@ public TeamInviteResponse role(@javax.annotation.Nullable String role) { * * @return role */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRole() { return role; } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRole(@javax.annotation.Nullable String role) { this.role = role; @@ -147,13 +147,13 @@ public TeamInviteResponse sentAt(@javax.annotation.Nullable Integer sentAt) { * * @return sentAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENT_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSentAt() { return sentAt; } - @JsonProperty(JSON_PROPERTY_SENT_AT) + @JsonProperty(value = JSON_PROPERTY_SENT_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSentAt(@javax.annotation.Nullable Integer sentAt) { this.sentAt = sentAt; @@ -169,13 +169,13 @@ public TeamInviteResponse redeemedAt(@javax.annotation.Nullable Integer redeemed * * @return redeemedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REDEEMED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REDEEMED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getRedeemedAt() { return redeemedAt; } - @JsonProperty(JSON_PROPERTY_REDEEMED_AT) + @JsonProperty(value = JSON_PROPERTY_REDEEMED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRedeemedAt(@javax.annotation.Nullable Integer redeemedAt) { this.redeemedAt = redeemedAt; @@ -191,13 +191,13 @@ public TeamInviteResponse expiresAt(@javax.annotation.Nullable Integer expiresAt * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -395,9 +395,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java index 0fee37e1f..ffb86d0d4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamInvitesResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamInvitesResponse { public static final String JSON_PROPERTY_TEAM_INVITES = "team_invites"; @@ -77,13 +77,13 @@ public TeamInvitesResponse addTeamInvitesItem(TeamInviteResponse teamInvitesItem * @return teamInvites */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM_INVITES) + @JsonProperty(value = JSON_PROPERTY_TEAM_INVITES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTeamInvites() { return teamInvites; } - @JsonProperty(JSON_PROPERTY_TEAM_INVITES) + @JsonProperty(value = JSON_PROPERTY_TEAM_INVITES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeamInvites(@javax.annotation.Nonnull List teamInvites) { this.teamInvites = teamInvites; @@ -107,13 +107,13 @@ public TeamInvitesResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -227,9 +227,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java index ce80c5eb7..365762f5d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMemberResponse.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamMemberResponse { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -69,13 +69,13 @@ public TeamMemberResponse accountId(@javax.annotation.Nullable String accountId) * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -91,13 +91,13 @@ public TeamMemberResponse emailAddress(@javax.annotation.Nullable String emailAd * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -113,13 +113,13 @@ public TeamMemberResponse role(@javax.annotation.Nullable String role) { * * @return role */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRole() { return role; } - @JsonProperty(JSON_PROPERTY_ROLE) + @JsonProperty(value = JSON_PROPERTY_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRole(@javax.annotation.Nullable String role) { this.role = role; @@ -255,9 +255,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java index 8dd4d104c..407b801be 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamMembersResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamMembersResponse { public static final String JSON_PROPERTY_TEAM_MEMBERS = "team_members"; @@ -81,13 +81,13 @@ public TeamMembersResponse addTeamMembersItem(TeamMemberResponse teamMembersItem * @return teamMembers */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEAM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_TEAM_MEMBERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTeamMembers() { return teamMembers; } - @JsonProperty(JSON_PROPERTY_TEAM_MEMBERS) + @JsonProperty(value = JSON_PROPERTY_TEAM_MEMBERS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTeamMembers(@javax.annotation.Nonnull List teamMembers) { this.teamMembers = teamMembers; @@ -104,13 +104,13 @@ public TeamMembersResponse listInfo(@javax.annotation.Nonnull ListInfoResponse l * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -134,13 +134,13 @@ public TeamMembersResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -276,9 +276,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamParentResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamParentResponse.java index 9c8125e4b..7ff54ac10 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamParentResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamParentResponse.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamParentResponse { public static final String JSON_PROPERTY_TEAM_ID = "team_id"; @@ -65,13 +65,13 @@ public TeamParentResponse teamId(@javax.annotation.Nullable String teamId) { * * @return teamId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEAM_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTeamId() { return teamId; } - @JsonProperty(JSON_PROPERTY_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTeamId(@javax.annotation.Nullable String teamId) { this.teamId = teamId; @@ -87,13 +87,13 @@ public TeamParentResponse name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -205,9 +205,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java index f78b47e7b..282d67034 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamRemoveMemberRequest.java @@ -35,7 +35,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamRemoveMemberRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -121,13 +121,13 @@ public TeamRemoveMemberRequest accountId(@javax.annotation.Nullable String accou * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -144,13 +144,13 @@ public TeamRemoveMemberRequest emailAddress(@javax.annotation.Nullable String em * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -170,13 +170,13 @@ public TeamRemoveMemberRequest newOwnerEmailAddress( * * @return newOwnerEmailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNewOwnerEmailAddress() { return newOwnerEmailAddress; } - @JsonProperty(JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_NEW_OWNER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNewOwnerEmailAddress(@javax.annotation.Nullable String newOwnerEmailAddress) { this.newOwnerEmailAddress = newOwnerEmailAddress; @@ -192,13 +192,13 @@ public TeamRemoveMemberRequest newTeamId(@javax.annotation.Nullable String newTe * * @return newTeamId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEW_TEAM_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NEW_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNewTeamId() { return newTeamId; } - @JsonProperty(JSON_PROPERTY_NEW_TEAM_ID) + @JsonProperty(value = JSON_PROPERTY_NEW_TEAM_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNewTeamId(@javax.annotation.Nullable String newTeamId) { this.newTeamId = newTeamId; @@ -215,13 +215,13 @@ public TeamRemoveMemberRequest newRole(@javax.annotation.Nullable NewRoleEnum ne * * @return newRole */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEW_ROLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NEW_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public NewRoleEnum getNewRole() { return newRole; } - @JsonProperty(JSON_PROPERTY_NEW_ROLE) + @JsonProperty(value = JSON_PROPERTY_NEW_ROLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNewRole(@javax.annotation.Nullable NewRoleEnum newRole) { this.newRole = newRole; @@ -406,9 +406,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamResponse.java index 6fcc0fd87..3360fe5d8 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamResponse.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamResponse { public static final String JSON_PROPERTY_NAME = "name"; @@ -75,13 +75,13 @@ public TeamResponse name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -105,13 +105,13 @@ public TeamResponse addAccountsItem(AccountResponse accountsItem) { * * @return accounts */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAccounts() { return accounts; } - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccounts(@javax.annotation.Nullable List accounts) { this.accounts = accounts; @@ -137,13 +137,13 @@ public TeamResponse addInvitedAccountsItem(AccountResponse invitedAccountsItem) * * @return invitedAccounts */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INVITED_ACCOUNTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_INVITED_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInvitedAccounts() { return invitedAccounts; } - @JsonProperty(JSON_PROPERTY_INVITED_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_INVITED_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInvitedAccounts( @javax.annotation.Nullable List invitedAccounts) { @@ -169,13 +169,13 @@ public TeamResponse addInvitedEmailsItem(String invitedEmailsItem) { * * @return invitedEmails */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INVITED_EMAILS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_INVITED_EMAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getInvitedEmails() { return invitedEmails; } - @JsonProperty(JSON_PROPERTY_INVITED_EMAILS) + @JsonProperty(value = JSON_PROPERTY_INVITED_EMAILS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInvitedEmails(@javax.annotation.Nullable List invitedEmails) { this.invitedEmails = invitedEmails; @@ -331,9 +331,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java index c0570de58..3ef6da503 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamSubTeamsResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamSubTeamsResponse { public static final String JSON_PROPERTY_SUB_TEAMS = "sub_teams"; @@ -80,13 +80,13 @@ public TeamSubTeamsResponse addSubTeamsItem(SubTeamResponse subTeamsItem) { * @return subTeams */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_SUB_TEAMS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSubTeams() { return subTeams; } - @JsonProperty(JSON_PROPERTY_SUB_TEAMS) + @JsonProperty(value = JSON_PROPERTY_SUB_TEAMS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSubTeams(@javax.annotation.Nonnull List subTeams) { this.subTeams = subTeams; @@ -103,13 +103,13 @@ public TeamSubTeamsResponse listInfo(@javax.annotation.Nonnull ListInfoResponse * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -134,13 +134,13 @@ public TeamSubTeamsResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -276,9 +276,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java index 91242a042..45cc0548d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TeamUpdateRequest.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({TeamUpdateRequest.JSON_PROPERTY_NAME}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TeamUpdateRequest { public static final String JSON_PROPERTY_NAME = "name"; @@ -59,13 +59,13 @@ public TeamUpdateRequest name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -157,9 +157,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java index ea66fbbd0..bdcb9b59a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateAddUserRequest.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateAddUserRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -71,13 +71,13 @@ public TemplateAddUserRequest accountId(@javax.annotation.Nullable String accoun * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -94,13 +94,13 @@ public TemplateAddUserRequest emailAddress(@javax.annotation.Nullable String ema * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -118,13 +118,13 @@ public TemplateAddUserRequest skipNotification( * * @return skipNotification */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKIP_NOTIFICATION) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SKIP_NOTIFICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipNotification() { return skipNotification; } - @JsonProperty(JSON_PROPERTY_SKIP_NOTIFICATION) + @JsonProperty(value = JSON_PROPERTY_SKIP_NOTIFICATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipNotification(@javax.annotation.Nullable Boolean skipNotification) { this.skipNotification = skipNotification; @@ -262,9 +262,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java index df96f4263..a8ec1766e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftRequest.java @@ -57,7 +57,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateCreateEmbeddedDraftRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -170,13 +170,13 @@ public TemplateCreateEmbeddedDraftRequest clientId(@javax.annotation.Nonnull Str * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -201,13 +201,13 @@ public TemplateCreateEmbeddedDraftRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -233,13 +233,13 @@ public TemplateCreateEmbeddedDraftRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -257,13 +257,13 @@ public TemplateCreateEmbeddedDraftRequest allowCcs( * * @return allowCcs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowCcs() { return allowCcs; } - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowCcs(@javax.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; @@ -282,13 +282,13 @@ public TemplateCreateEmbeddedDraftRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -313,13 +313,13 @@ public TemplateCreateEmbeddedDraftRequest addAttachmentsItem(SubAttachment attac * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -344,13 +344,13 @@ public TemplateCreateEmbeddedDraftRequest addCcRolesItem(String ccRolesItem) { * * @return ccRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { return ccRoles; } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@javax.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -367,13 +367,13 @@ public TemplateCreateEmbeddedDraftRequest editorOptions( * * @return editorOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { return editorOptions; } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@javax.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -390,13 +390,13 @@ public TemplateCreateEmbeddedDraftRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -413,13 +413,13 @@ public TemplateCreateEmbeddedDraftRequest forceSignerRoles( * * @return forceSignerRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerRoles() { return forceSignerRoles; } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerRoles(@javax.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; @@ -436,13 +436,13 @@ public TemplateCreateEmbeddedDraftRequest forceSubjectMessage( * * @return forceSubjectMessage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { return forceSubjectMessage; } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@javax.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -471,13 +471,13 @@ public TemplateCreateEmbeddedDraftRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -504,13 +504,13 @@ public TemplateCreateEmbeddedDraftRequest addFormFieldRulesItem( * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -552,13 +552,13 @@ public TemplateCreateEmbeddedDraftRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -587,13 +587,13 @@ public TemplateCreateEmbeddedDraftRequest addMergeFieldsItem(SubMergeField merge * * @return mergeFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getMergeFields() { return mergeFields; } - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMergeFields(@javax.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; @@ -609,13 +609,13 @@ public TemplateCreateEmbeddedDraftRequest message(@javax.annotation.Nullable Str * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -644,13 +644,13 @@ public TemplateCreateEmbeddedDraftRequest putMetadataItem(String key, Object met * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -670,13 +670,13 @@ public TemplateCreateEmbeddedDraftRequest showPreview( * * @return showPreview */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { return showPreview; } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@javax.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -694,13 +694,13 @@ public TemplateCreateEmbeddedDraftRequest showProgressStepper( * * @return showProgressStepper */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { return showProgressStepper; } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@javax.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -726,13 +726,13 @@ public TemplateCreateEmbeddedDraftRequest addSignerRolesItem(SubTemplateRole sig * * @return signerRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerRoles() { return signerRoles; } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerRoles(@javax.annotation.Nullable List signerRoles) { this.signerRoles = signerRoles; @@ -750,13 +750,13 @@ public TemplateCreateEmbeddedDraftRequest skipMeNow( * * @return skipMeNow */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipMeNow() { return skipMeNow; } - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipMeNow(@javax.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; @@ -772,13 +772,13 @@ public TemplateCreateEmbeddedDraftRequest subject(@javax.annotation.Nullable Str * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -796,13 +796,13 @@ public TemplateCreateEmbeddedDraftRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -818,13 +818,13 @@ public TemplateCreateEmbeddedDraftRequest title(@javax.annotation.Nullable Strin * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -843,13 +843,13 @@ public TemplateCreateEmbeddedDraftRequest usePreexistingFields( * * @return usePreexistingFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { return usePreexistingFields; } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -867,13 +867,13 @@ public TemplateCreateEmbeddedDraftRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -1573,9 +1573,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java index d9ab41602..596aea749 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateCreateEmbeddedDraftResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -71,13 +71,13 @@ public TemplateCreateEmbeddedDraftResponse template( * @return template */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateCreateEmbeddedDraftResponseTemplate getTemplate() { return template; } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate( @javax.annotation.Nonnull TemplateCreateEmbeddedDraftResponseTemplate template) { @@ -103,13 +103,13 @@ public TemplateCreateEmbeddedDraftResponse addWarningsItem(WarningResponse warni * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -222,9 +222,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java index 1f11a454b..cf513c606 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateEmbeddedDraftResponseTemplate.java @@ -37,7 +37,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateCreateEmbeddedDraftResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -83,13 +83,13 @@ public TemplateCreateEmbeddedDraftResponseTemplate templateId( * * @return templateId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { return templateId; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@javax.annotation.Nullable String templateId) { this.templateId = templateId; @@ -106,13 +106,13 @@ public TemplateCreateEmbeddedDraftResponseTemplate editUrl( * * @return editUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDIT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEditUrl() { return editUrl; } - @JsonProperty(JSON_PROPERTY_EDIT_URL) + @JsonProperty(value = JSON_PROPERTY_EDIT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditUrl(@javax.annotation.Nullable String editUrl) { this.editUrl = editUrl; @@ -129,13 +129,13 @@ public TemplateCreateEmbeddedDraftResponseTemplate expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -164,14 +164,14 @@ public TemplateCreateEmbeddedDraftResponseTemplate addWarningsItem( * @deprecated */ @Deprecated - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } @Deprecated - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -331,9 +331,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java index 2a54368c5..70c72acca 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateRequest.java @@ -50,7 +50,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateCreateRequest { public static final String JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT = "form_fields_per_document"; @@ -166,13 +166,13 @@ public TemplateCreateRequest addFormFieldsPerDocumentItem( * @return formFieldsPerDocument */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFormFieldsPerDocument( @javax.annotation.Nonnull List formFieldsPerDocument) { @@ -200,13 +200,13 @@ public TemplateCreateRequest addSignerRolesItem(SubTemplateRole signerRolesItem) * @return signerRoles */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getSignerRoles() { return signerRoles; } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSignerRoles(@javax.annotation.Nonnull List signerRoles) { this.signerRoles = signerRoles; @@ -231,13 +231,13 @@ public TemplateCreateRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -262,13 +262,13 @@ public TemplateCreateRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -286,13 +286,13 @@ public TemplateCreateRequest allowReassign(@javax.annotation.Nullable Boolean al * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -317,13 +317,13 @@ public TemplateCreateRequest addAttachmentsItem(SubAttachment attachmentsItem) { * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -347,13 +347,13 @@ public TemplateCreateRequest addCcRolesItem(String ccRolesItem) { * * @return ccRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { return ccRoles; } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@javax.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -370,13 +370,13 @@ public TemplateCreateRequest clientId(@javax.annotation.Nullable String clientId * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -393,13 +393,13 @@ public TemplateCreateRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -427,13 +427,13 @@ public TemplateCreateRequest addFormFieldGroupsItem(SubFormFieldGroup formFieldG * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -459,13 +459,13 @@ public TemplateCreateRequest addFormFieldRulesItem(SubFormFieldRule formFieldRul * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -494,13 +494,13 @@ public TemplateCreateRequest addMergeFieldsItem(SubMergeField mergeFieldsItem) { * * @return mergeFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getMergeFields() { return mergeFields; } - @JsonProperty(JSON_PROPERTY_MERGE_FIELDS) + @JsonProperty(value = JSON_PROPERTY_MERGE_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMergeFields(@javax.annotation.Nullable List mergeFields) { this.mergeFields = mergeFields; @@ -516,13 +516,13 @@ public TemplateCreateRequest message(@javax.annotation.Nullable String message) * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -550,13 +550,13 @@ public TemplateCreateRequest putMetadataItem(String key, Object metadataItem) { * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -572,13 +572,13 @@ public TemplateCreateRequest subject(@javax.annotation.Nullable String subject) * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -595,13 +595,13 @@ public TemplateCreateRequest testMode(@javax.annotation.Nullable Boolean testMod * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -617,13 +617,13 @@ public TemplateCreateRequest title(@javax.annotation.Nullable String title) { * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -642,13 +642,13 @@ public TemplateCreateRequest usePreexistingFields( * * @return usePreexistingFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { return usePreexistingFields; } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -666,13 +666,13 @@ public TemplateCreateRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -1190,9 +1190,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java index 511bb2391..52156dce9 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateCreateResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -70,13 +70,13 @@ public TemplateCreateResponse template( * @return template */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateCreateResponseTemplate getTemplate() { return template; } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate(@javax.annotation.Nonnull TemplateCreateResponseTemplate template) { this.template = template; @@ -101,13 +101,13 @@ public TemplateCreateResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -219,9 +219,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java index 5368e41b3..7831999aa 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateCreateResponseTemplate.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({TemplateCreateResponseTemplate.JSON_PROPERTY_TEMPLATE_ID}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateCreateResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -61,13 +61,13 @@ public TemplateCreateResponseTemplate templateId(@javax.annotation.Nullable Stri * * @return templateId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { return templateId; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@javax.annotation.Nullable String templateId) { this.templateId = templateId; @@ -162,9 +162,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java index f1e79244d..a8b01a378 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateGetResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateGetResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -68,13 +68,13 @@ public TemplateGetResponse template(@javax.annotation.Nonnull TemplateResponse t * @return template */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateResponse getTemplate() { return template; } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate(@javax.annotation.Nonnull TemplateResponse template) { this.template = template; @@ -98,13 +98,13 @@ public TemplateGetResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -216,9 +216,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateListResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateListResponse.java index 624836a79..921ae8b54 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateListResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateListResponse.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateListResponse { public static final String JSON_PROPERTY_TEMPLATES = "templates"; @@ -81,13 +81,13 @@ public TemplateListResponse addTemplatesItem(TemplateResponse templatesItem) { * @return templates */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATES) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplates() { return templates; } - @JsonProperty(JSON_PROPERTY_TEMPLATES) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplates(@javax.annotation.Nonnull List templates) { this.templates = templates; @@ -104,13 +104,13 @@ public TemplateListResponse listInfo(@javax.annotation.Nonnull ListInfoResponse * @return listInfo */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ListInfoResponse getListInfo() { return listInfo; } - @JsonProperty(JSON_PROPERTY_LIST_INFO) + @JsonProperty(value = JSON_PROPERTY_LIST_INFO, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setListInfo(@javax.annotation.Nonnull ListInfoResponse listInfo) { this.listInfo = listInfo; @@ -135,13 +135,13 @@ public TemplateListResponse addWarningsItem(WarningResponse warningsItem) { * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -277,9 +277,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java index 401a1a8d8..8d932453f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateRemoveUserRequest.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateRemoveUserRequest { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -68,13 +68,13 @@ public TemplateRemoveUserRequest accountId(@javax.annotation.Nullable String acc * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -91,13 +91,13 @@ public TemplateRemoveUserRequest emailAddress(@javax.annotation.Nullable String * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -213,9 +213,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java index 794722520..ac7f4dfa4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java @@ -46,7 +46,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponse { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -125,13 +125,13 @@ public TemplateResponse templateId(@javax.annotation.Nullable String templateId) * * @return templateId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { return templateId; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@javax.annotation.Nullable String templateId) { this.templateId = templateId; @@ -149,13 +149,13 @@ public TemplateResponse title(@javax.annotation.Nullable String title) { * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -172,13 +172,13 @@ public TemplateResponse message(@javax.annotation.Nullable String message) { * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -194,13 +194,13 @@ public TemplateResponse updatedAt(@javax.annotation.Nullable Integer updatedAt) * * @return updatedAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUpdatedAt() { return updatedAt; } - @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonProperty(value = JSON_PROPERTY_UPDATED_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUpdatedAt(@javax.annotation.Nullable Integer updatedAt) { this.updatedAt = updatedAt; @@ -218,13 +218,13 @@ public TemplateResponse isEmbedded(@javax.annotation.Nullable Boolean isEmbedded * * @return isEmbedded */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_EMBEDDED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_EMBEDDED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsEmbedded() { return isEmbedded; } - @JsonProperty(JSON_PROPERTY_IS_EMBEDDED) + @JsonProperty(value = JSON_PROPERTY_IS_EMBEDDED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsEmbedded(@javax.annotation.Nullable Boolean isEmbedded) { this.isEmbedded = isEmbedded; @@ -241,13 +241,13 @@ public TemplateResponse isCreator(@javax.annotation.Nullable Boolean isCreator) * * @return isCreator */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsCreator() { return isCreator; } - @JsonProperty(JSON_PROPERTY_IS_CREATOR) + @JsonProperty(value = JSON_PROPERTY_IS_CREATOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsCreator(@javax.annotation.Nullable Boolean isCreator) { this.isCreator = isCreator; @@ -264,13 +264,13 @@ public TemplateResponse canEdit(@javax.annotation.Nullable Boolean canEdit) { * * @return canEdit */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CAN_EDIT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CAN_EDIT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getCanEdit() { return canEdit; } - @JsonProperty(JSON_PROPERTY_CAN_EDIT) + @JsonProperty(value = JSON_PROPERTY_CAN_EDIT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCanEdit(@javax.annotation.Nullable Boolean canEdit) { this.canEdit = canEdit; @@ -288,13 +288,13 @@ public TemplateResponse isLocked(@javax.annotation.Nullable Boolean isLocked) { * * @return isLocked */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLocked() { return isLocked; } - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsLocked(@javax.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; @@ -318,13 +318,13 @@ public TemplateResponse putMetadataItem(String key, Object metadataItem) { * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -350,13 +350,13 @@ public TemplateResponse addSignerRolesItem(TemplateResponseSignerRole signerRole * * @return signerRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSignerRoles() { return signerRoles; } - @JsonProperty(JSON_PROPERTY_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignerRoles( @javax.annotation.Nullable List signerRoles) { @@ -383,13 +383,13 @@ public TemplateResponse addCcRolesItem(TemplateResponseCCRole ccRolesItem) { * * @return ccRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcRoles() { return ccRoles; } - @JsonProperty(JSON_PROPERTY_CC_ROLES) + @JsonProperty(value = JSON_PROPERTY_CC_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcRoles(@javax.annotation.Nullable List ccRoles) { this.ccRoles = ccRoles; @@ -415,13 +415,13 @@ public TemplateResponse addDocumentsItem(TemplateResponseDocument documentsItem) * * @return documents */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDocuments() { return documents; } - @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocuments(@javax.annotation.Nullable List documents) { this.documents = documents; @@ -452,14 +452,14 @@ public TemplateResponse addCustomFieldsItem( * @deprecated */ @Deprecated - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } @Deprecated - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields( @javax.annotation.Nullable List customFields) { @@ -491,14 +491,14 @@ public TemplateResponse addNamedFormFieldsItem( * @deprecated */ @Deprecated - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAMED_FORM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAMED_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamedFormFields() { return namedFormFields; } @Deprecated - @JsonProperty(JSON_PROPERTY_NAMED_FORM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_NAMED_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamedFormFields( @javax.annotation.Nullable List namedFormFields) { @@ -524,13 +524,13 @@ public TemplateResponse addAccountsItem(TemplateResponseAccount accountsItem) { * * @return accounts */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAccounts() { return accounts; } - @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonProperty(value = JSON_PROPERTY_ACCOUNTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccounts(@javax.annotation.Nullable List accounts) { this.accounts = accounts; @@ -555,13 +555,13 @@ public TemplateResponse addAttachmentsItem(SignatureRequestResponseAttachment at * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments( @javax.annotation.Nullable List attachments) { @@ -990,9 +990,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java index 1f8cdbab4..1b05cae5f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccount.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseAccount { public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; @@ -82,13 +82,13 @@ public TemplateResponseAccount accountId(@javax.annotation.Nullable String accou * * @return accountId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAccountId() { return accountId; } - @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonProperty(value = JSON_PROPERTY_ACCOUNT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; @@ -104,13 +104,13 @@ public TemplateResponseAccount emailAddress(@javax.annotation.Nullable String em * * @return emailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmailAddress() { return emailAddress; } - @JsonProperty(JSON_PROPERTY_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmailAddress(@javax.annotation.Nullable String emailAddress) { this.emailAddress = emailAddress; @@ -126,13 +126,13 @@ public TemplateResponseAccount isLocked(@javax.annotation.Nullable Boolean isLoc * * @return isLocked */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLocked() { return isLocked; } - @JsonProperty(JSON_PROPERTY_IS_LOCKED) + @JsonProperty(value = JSON_PROPERTY_IS_LOCKED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsLocked(@javax.annotation.Nullable Boolean isLocked) { this.isLocked = isLocked; @@ -148,13 +148,13 @@ public TemplateResponseAccount isPaidHs(@javax.annotation.Nullable Boolean isPai * * @return isPaidHs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHs() { return isPaidHs; } - @JsonProperty(JSON_PROPERTY_IS_PAID_HS) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHs(@javax.annotation.Nullable Boolean isPaidHs) { this.isPaidHs = isPaidHs; @@ -170,13 +170,13 @@ public TemplateResponseAccount isPaidHf(@javax.annotation.Nullable Boolean isPai * * @return isPaidHf */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsPaidHf() { return isPaidHf; } - @JsonProperty(JSON_PROPERTY_IS_PAID_HF) + @JsonProperty(value = JSON_PROPERTY_IS_PAID_HF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsPaidHf(@javax.annotation.Nullable Boolean isPaidHf) { this.isPaidHf = isPaidHf; @@ -193,13 +193,13 @@ public TemplateResponseAccount quotas( * * @return quotas */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUOTAS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseAccountQuota getQuotas() { return quotas; } - @JsonProperty(JSON_PROPERTY_QUOTAS) + @JsonProperty(value = JSON_PROPERTY_QUOTAS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuotas(@javax.annotation.Nullable TemplateResponseAccountQuota quotas) { this.quotas = quotas; @@ -401,9 +401,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java index edad6110e..4258659ed 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseAccountQuota.java @@ -35,7 +35,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseAccountQuota { public static final String JSON_PROPERTY_TEMPLATES_LEFT = "templates_left"; @@ -80,13 +80,13 @@ public TemplateResponseAccountQuota templatesLeft( * * @return templatesLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTemplatesLeft() { return templatesLeft; } - @JsonProperty(JSON_PROPERTY_TEMPLATES_LEFT) + @JsonProperty(value = JSON_PROPERTY_TEMPLATES_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplatesLeft(@javax.annotation.Nullable Integer templatesLeft) { this.templatesLeft = templatesLeft; @@ -103,13 +103,13 @@ public TemplateResponseAccountQuota apiSignatureRequestsLeft( * * @return apiSignatureRequestsLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getApiSignatureRequestsLeft() { return apiSignatureRequestsLeft; } - @JsonProperty(JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_API_SIGNATURE_REQUESTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiSignatureRequestsLeft( @javax.annotation.Nullable Integer apiSignatureRequestsLeft) { @@ -127,13 +127,13 @@ public TemplateResponseAccountQuota documentsLeft( * * @return documentsLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getDocumentsLeft() { return documentsLeft; } - @JsonProperty(JSON_PROPERTY_DOCUMENTS_LEFT) + @JsonProperty(value = JSON_PROPERTY_DOCUMENTS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDocumentsLeft(@javax.annotation.Nullable Integer documentsLeft) { this.documentsLeft = documentsLeft; @@ -150,13 +150,13 @@ public TemplateResponseAccountQuota smsVerificationsLeft( * * @return smsVerificationsLeft */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSmsVerificationsLeft() { return smsVerificationsLeft; } - @JsonProperty(JSON_PROPERTY_SMS_VERIFICATIONS_LEFT) + @JsonProperty(value = JSON_PROPERTY_SMS_VERIFICATIONS_LEFT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmsVerificationsLeft(@javax.annotation.Nullable Integer smsVerificationsLeft) { this.smsVerificationsLeft = smsVerificationsLeft; @@ -332,9 +332,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java index 00f72e343..4996bc34a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseCCRole.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({TemplateResponseCCRole.JSON_PROPERTY_NAME}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseCCRole { public static final String JSON_PROPERTY_NAME = "name"; @@ -60,13 +60,13 @@ public TemplateResponseCCRole name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -158,9 +158,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java index 3cabbf112..1e09a0326 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocument.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseDocument { public static final String JSON_PROPERTY_NAME = "name"; @@ -88,13 +88,13 @@ public TemplateResponseDocument name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -111,13 +111,13 @@ public TemplateResponseDocument index(@javax.annotation.Nullable Integer index) * * @return index */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDEX) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_INDEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getIndex() { return index; } - @JsonProperty(JSON_PROPERTY_INDEX) + @JsonProperty(value = JSON_PROPERTY_INDEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndex(@javax.annotation.Nullable Integer index) { this.index = index; @@ -143,13 +143,13 @@ public TemplateResponseDocument addFieldGroupsItem( * * @return fieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFieldGroups() { return fieldGroups; } - @JsonProperty(JSON_PROPERTY_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldGroups( @javax.annotation.Nullable List fieldGroups) { @@ -176,13 +176,13 @@ public TemplateResponseDocument addFormFieldsItem( * * @return formFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFields() { return formFields; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFields( @javax.annotation.Nullable List formFields) { @@ -209,13 +209,13 @@ public TemplateResponseDocument addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields( @javax.annotation.Nullable List customFields) { @@ -243,13 +243,13 @@ public TemplateResponseDocument addStaticFieldsItem( * * @return staticFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATIC_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_STATIC_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getStaticFields() { return staticFields; } - @JsonProperty(JSON_PROPERTY_STATIC_FIELDS) + @JsonProperty(value = JSON_PROPERTY_STATIC_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStaticFields( @javax.annotation.Nullable List staticFields) { @@ -450,9 +450,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java index f1190eac4..7c971abbd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldBase.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -116,13 +116,13 @@ public TemplateResponseDocumentCustomFieldBase type(@javax.annotation.Nonnull St * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -138,13 +138,13 @@ public TemplateResponseDocumentCustomFieldBase apiId(@javax.annotation.Nullable * * @return apiId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { return apiId; } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@javax.annotation.Nullable String apiId) { this.apiId = apiId; @@ -160,13 +160,13 @@ public TemplateResponseDocumentCustomFieldBase name(@javax.annotation.Nullable S * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -189,13 +189,13 @@ public TemplateResponseDocumentCustomFieldBase signer(Integer signer) { * * @return signer */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigner() { return signer; } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigner(@javax.annotation.Nullable String signer) { this.signer = signer; @@ -215,13 +215,13 @@ public TemplateResponseDocumentCustomFieldBase x(@javax.annotation.Nullable Inte * * @return x */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_X) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getX() { return x; } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setX(@javax.annotation.Nullable Integer x) { this.x = x; @@ -237,13 +237,13 @@ public TemplateResponseDocumentCustomFieldBase y(@javax.annotation.Nullable Inte * * @return y */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_Y) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getY() { return y; } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setY(@javax.annotation.Nullable Integer y) { this.y = y; @@ -259,13 +259,13 @@ public TemplateResponseDocumentCustomFieldBase width(@javax.annotation.Nullable * * @return width */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WIDTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getWidth() { return width; } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWidth(@javax.annotation.Nullable Integer width) { this.width = width; @@ -282,13 +282,13 @@ public TemplateResponseDocumentCustomFieldBase height( * * @return height */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEIGHT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getHeight() { return height; } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeight(@javax.annotation.Nullable Integer height) { this.height = height; @@ -305,13 +305,13 @@ public TemplateResponseDocumentCustomFieldBase required( * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -328,13 +328,13 @@ public TemplateResponseDocumentCustomFieldBase group(@javax.annotation.Nullable * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -607,10 +607,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java index ffde88fb2..d3a3902ed 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldCheckbox.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentCustomFieldCheckbox.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -75,13 +75,13 @@ public TemplateResponseDocumentCustomFieldCheckbox type(@javax.annotation.Nonnul * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -177,10 +177,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java index 1540bbba5..96d5ef064 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentCustomFieldText.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -92,13 +92,13 @@ public TemplateResponseDocumentCustomFieldText type(@javax.annotation.Nonnull St * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -115,13 +115,13 @@ public TemplateResponseDocumentCustomFieldText avgTextLength( * * @return avgTextLength */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseFieldAvgTextLength getAvgTextLength() { return avgTextLength; } - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAvgTextLength( @javax.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { @@ -139,13 +139,13 @@ public TemplateResponseDocumentCustomFieldText isMultiline( * * @return isMultiline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsMultiline() { return isMultiline; } - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMultiline(@javax.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; @@ -162,13 +162,13 @@ public TemplateResponseDocumentCustomFieldText originalFontSize( * * @return originalFontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOriginalFontSize() { return originalFontSize; } - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalFontSize(@javax.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; @@ -185,13 +185,13 @@ public TemplateResponseDocumentCustomFieldText fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; @@ -381,10 +381,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java index d7e2969d5..5971ddb7a 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroup.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseDocumentFieldGroup { public static final String JSON_PROPERTY_NAME = "name"; @@ -67,13 +67,13 @@ public TemplateResponseDocumentFieldGroup name(@javax.annotation.Nullable String * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -90,13 +90,13 @@ public TemplateResponseDocumentFieldGroup rule( * * @return rule */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_RULE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_RULE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseDocumentFieldGroupRule getRule() { return rule; } - @JsonProperty(JSON_PROPERTY_RULE) + @JsonProperty(value = JSON_PROPERTY_RULE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRule(@javax.annotation.Nullable TemplateResponseDocumentFieldGroupRule rule) { this.rule = rule; @@ -209,9 +209,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java index ea499db4b..ee891a4e9 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFieldGroupRule.java @@ -33,7 +33,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseDocumentFieldGroupRule { public static final String JSON_PROPERTY_REQUIREMENT = "requirement"; @@ -76,13 +76,13 @@ public TemplateResponseDocumentFieldGroupRule requirement( * * @return requirement */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequirement() { return requirement; } - @JsonProperty(JSON_PROPERTY_REQUIREMENT) + @JsonProperty(value = JSON_PROPERTY_REQUIREMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequirement(@javax.annotation.Nullable String requirement) { this.requirement = requirement; @@ -99,13 +99,13 @@ public TemplateResponseDocumentFieldGroupRule groupLabel( * * @return groupLabel */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroupLabel() { return groupLabel; } - @JsonProperty(JSON_PROPERTY_GROUP_LABEL) + @JsonProperty(value = JSON_PROPERTY_GROUP_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroupLabel(@javax.annotation.Nullable String groupLabel) { this.groupLabel = groupLabel; @@ -223,9 +223,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java index 9ab25a45b..250aeacbd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldBase.java @@ -39,7 +39,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -121,13 +121,13 @@ public TemplateResponseDocumentFormFieldBase type(@javax.annotation.Nonnull Stri * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -143,13 +143,13 @@ public TemplateResponseDocumentFormFieldBase apiId(@javax.annotation.Nullable St * * @return apiId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { return apiId; } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@javax.annotation.Nullable String apiId) { this.apiId = apiId; @@ -165,13 +165,13 @@ public TemplateResponseDocumentFormFieldBase name(@javax.annotation.Nullable Str * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -192,13 +192,13 @@ public TemplateResponseDocumentFormFieldBase signer(Integer signer) { * * @return signer */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigner() { return signer; } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigner(@javax.annotation.Nullable String signer) { this.signer = signer; @@ -218,13 +218,13 @@ public TemplateResponseDocumentFormFieldBase x(@javax.annotation.Nullable Intege * * @return x */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_X) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getX() { return x; } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setX(@javax.annotation.Nullable Integer x) { this.x = x; @@ -240,13 +240,13 @@ public TemplateResponseDocumentFormFieldBase y(@javax.annotation.Nullable Intege * * @return y */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_Y) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getY() { return y; } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setY(@javax.annotation.Nullable Integer y) { this.y = y; @@ -262,13 +262,13 @@ public TemplateResponseDocumentFormFieldBase width(@javax.annotation.Nullable In * * @return width */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WIDTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getWidth() { return width; } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWidth(@javax.annotation.Nullable Integer width) { this.width = width; @@ -284,13 +284,13 @@ public TemplateResponseDocumentFormFieldBase height(@javax.annotation.Nullable I * * @return height */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEIGHT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getHeight() { return height; } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeight(@javax.annotation.Nullable Integer height) { this.height = height; @@ -307,13 +307,13 @@ public TemplateResponseDocumentFormFieldBase required( * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -566,10 +566,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java index 2e7cc69cf..5f118462b 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldCheckbox.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -86,13 +86,13 @@ public TemplateResponseDocumentFormFieldCheckbox type(@javax.annotation.Nonnull * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -110,13 +110,13 @@ public TemplateResponseDocumentFormFieldCheckbox group( * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java index 80cfc712f..a3cff96ef 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDateSigned.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -87,13 +87,13 @@ public TemplateResponseDocumentFormFieldDateSigned type(@javax.annotation.Nonnul * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -111,13 +111,13 @@ public TemplateResponseDocumentFormFieldDateSigned group( * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -233,10 +233,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java index 86de698c7..13c441276 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -92,13 +92,13 @@ public TemplateResponseDocumentFormFieldDropdown type(@javax.annotation.Nonnull * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -116,13 +116,13 @@ public TemplateResponseDocumentFormFieldDropdown group( * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -147,13 +147,13 @@ public TemplateResponseDocumentFormFieldDropdown addOptionsItem(String optionsIt * * @return options */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOptions() { return options; } - @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOptions(@javax.annotation.Nullable List options) { this.options = options; @@ -289,10 +289,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java index d1d89de56..ae1502ef8 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldHyperlink.java @@ -35,7 +35,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -103,13 +103,13 @@ public TemplateResponseDocumentFormFieldHyperlink type(@javax.annotation.Nonnull * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -126,13 +126,13 @@ public TemplateResponseDocumentFormFieldHyperlink avgTextLength( * * @return avgTextLength */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseFieldAvgTextLength getAvgTextLength() { return avgTextLength; } - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAvgTextLength( @javax.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { @@ -150,13 +150,13 @@ public TemplateResponseDocumentFormFieldHyperlink isMultiline( * * @return isMultiline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsMultiline() { return isMultiline; } - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMultiline(@javax.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; @@ -173,13 +173,13 @@ public TemplateResponseDocumentFormFieldHyperlink originalFontSize( * * @return originalFontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOriginalFontSize() { return originalFontSize; } - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalFontSize(@javax.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; @@ -196,13 +196,13 @@ public TemplateResponseDocumentFormFieldHyperlink fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; @@ -220,13 +220,13 @@ public TemplateResponseDocumentFormFieldHyperlink group( * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -443,10 +443,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java index 6e0f78592..b74a7d66c 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldInitials.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -86,13 +86,13 @@ public TemplateResponseDocumentFormFieldInitials type(@javax.annotation.Nonnull * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -110,13 +110,13 @@ public TemplateResponseDocumentFormFieldInitials group( * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -232,10 +232,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java index 0ff1b8a4b..cb42a9dda 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldRadio.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -84,13 +84,13 @@ public TemplateResponseDocumentFormFieldRadio type(@javax.annotation.Nonnull Str * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -108,13 +108,13 @@ public TemplateResponseDocumentFormFieldRadio group(@javax.annotation.Nonnull St * @return group */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setGroup(@javax.annotation.Nonnull String group) { this.group = group; @@ -230,10 +230,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java index 53e1b3776..eaf9d8b0f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldSignature.java @@ -31,7 +31,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -87,13 +87,13 @@ public TemplateResponseDocumentFormFieldSignature type(@javax.annotation.Nonnull * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -111,13 +111,13 @@ public TemplateResponseDocumentFormFieldSignature group( * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -233,10 +233,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java index 1eb8a426c..a3f8c794d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldText.java @@ -40,7 +40,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -168,13 +168,13 @@ public TemplateResponseDocumentFormFieldText type(@javax.annotation.Nonnull Stri * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -191,13 +191,13 @@ public TemplateResponseDocumentFormFieldText avgTextLength( * * @return avgTextLength */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TemplateResponseFieldAvgTextLength getAvgTextLength() { return avgTextLength; } - @JsonProperty(JSON_PROPERTY_AVG_TEXT_LENGTH) + @JsonProperty(value = JSON_PROPERTY_AVG_TEXT_LENGTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAvgTextLength( @javax.annotation.Nullable TemplateResponseFieldAvgTextLength avgTextLength) { @@ -215,13 +215,13 @@ public TemplateResponseDocumentFormFieldText isMultiline( * * @return isMultiline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsMultiline() { return isMultiline; } - @JsonProperty(JSON_PROPERTY_IS_MULTILINE) + @JsonProperty(value = JSON_PROPERTY_IS_MULTILINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsMultiline(@javax.annotation.Nullable Boolean isMultiline) { this.isMultiline = isMultiline; @@ -238,13 +238,13 @@ public TemplateResponseDocumentFormFieldText originalFontSize( * * @return originalFontSize */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOriginalFontSize() { return originalFontSize; } - @JsonProperty(JSON_PROPERTY_ORIGINAL_FONT_SIZE) + @JsonProperty(value = JSON_PROPERTY_ORIGINAL_FONT_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOriginalFontSize(@javax.annotation.Nullable Integer originalFontSize) { this.originalFontSize = originalFontSize; @@ -261,13 +261,13 @@ public TemplateResponseDocumentFormFieldText fontFamily( * * @return fontFamily */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFontFamily() { return fontFamily; } - @JsonProperty(JSON_PROPERTY_FONT_FAMILY) + @JsonProperty(value = JSON_PROPERTY_FONT_FAMILY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFontFamily(@javax.annotation.Nullable String fontFamily) { this.fontFamily = fontFamily; @@ -286,13 +286,13 @@ public TemplateResponseDocumentFormFieldText validationType( * * @return validationType */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ValidationTypeEnum getValidationType() { return validationType; } - @JsonProperty(JSON_PROPERTY_VALIDATION_TYPE) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationType(@javax.annotation.Nullable ValidationTypeEnum validationType) { this.validationType = validationType; @@ -310,13 +310,13 @@ public TemplateResponseDocumentFormFieldText validationCustomRegex( * * @return validationCustomRegex */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationCustomRegex() { return validationCustomRegex; } - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationCustomRegex(@javax.annotation.Nullable String validationCustomRegex) { this.validationCustomRegex = validationCustomRegex; @@ -334,13 +334,13 @@ public TemplateResponseDocumentFormFieldText validationCustomRegexFormatLabel( * * @return validationCustomRegexFormatLabel */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationCustomRegexFormatLabel() { return validationCustomRegexFormatLabel; } - @JsonProperty(JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL) + @JsonProperty(value = JSON_PROPERTY_VALIDATION_CUSTOM_REGEX_FORMAT_LABEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationCustomRegexFormatLabel( @javax.annotation.Nullable String validationCustomRegexFormatLabel) { @@ -358,13 +358,13 @@ public TemplateResponseDocumentFormFieldText group(@javax.annotation.Nullable St * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -667,10 +667,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java index 6a2ae2ce6..f44e5441d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldBase.java @@ -42,7 +42,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -134,13 +134,13 @@ public TemplateResponseDocumentStaticFieldBase type(@javax.annotation.Nonnull St * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -156,13 +156,13 @@ public TemplateResponseDocumentStaticFieldBase apiId(@javax.annotation.Nullable * * @return apiId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_API_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getApiId() { return apiId; } - @JsonProperty(JSON_PROPERTY_API_ID) + @JsonProperty(value = JSON_PROPERTY_API_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setApiId(@javax.annotation.Nullable String apiId) { this.apiId = apiId; @@ -178,13 +178,13 @@ public TemplateResponseDocumentStaticFieldBase name(@javax.annotation.Nullable S * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -201,13 +201,13 @@ public TemplateResponseDocumentStaticFieldBase signer( * * @return signer */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigner() { return signer; } - @JsonProperty(JSON_PROPERTY_SIGNER) + @JsonProperty(value = JSON_PROPERTY_SIGNER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigner(@javax.annotation.Nullable String signer) { this.signer = signer; @@ -223,13 +223,13 @@ public TemplateResponseDocumentStaticFieldBase x(@javax.annotation.Nullable Inte * * @return x */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_X) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getX() { return x; } - @JsonProperty(JSON_PROPERTY_X) + @JsonProperty(value = JSON_PROPERTY_X, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setX(@javax.annotation.Nullable Integer x) { this.x = x; @@ -245,13 +245,13 @@ public TemplateResponseDocumentStaticFieldBase y(@javax.annotation.Nullable Inte * * @return y */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_Y) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getY() { return y; } - @JsonProperty(JSON_PROPERTY_Y) + @JsonProperty(value = JSON_PROPERTY_Y, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setY(@javax.annotation.Nullable Integer y) { this.y = y; @@ -267,13 +267,13 @@ public TemplateResponseDocumentStaticFieldBase width(@javax.annotation.Nullable * * @return width */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WIDTH) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getWidth() { return width; } - @JsonProperty(JSON_PROPERTY_WIDTH) + @JsonProperty(value = JSON_PROPERTY_WIDTH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWidth(@javax.annotation.Nullable Integer width) { this.width = width; @@ -290,13 +290,13 @@ public TemplateResponseDocumentStaticFieldBase height( * * @return height */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEIGHT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getHeight() { return height; } - @JsonProperty(JSON_PROPERTY_HEIGHT) + @JsonProperty(value = JSON_PROPERTY_HEIGHT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHeight(@javax.annotation.Nullable Integer height) { this.height = height; @@ -313,13 +313,13 @@ public TemplateResponseDocumentStaticFieldBase required( * * @return required */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRED) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getRequired() { return required; } - @JsonProperty(JSON_PROPERTY_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequired(@javax.annotation.Nullable Boolean required) { this.required = required; @@ -336,13 +336,13 @@ public TemplateResponseDocumentStaticFieldBase group(@javax.annotation.Nullable * * @return group */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_GROUP) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getGroup() { return group; } - @JsonProperty(JSON_PROPERTY_GROUP) + @JsonProperty(value = JSON_PROPERTY_GROUP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGroup(@javax.annotation.Nullable String group) { this.group = group; @@ -615,10 +615,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java index 97294dd19..0fb2f3c9f 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldCheckbox.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldCheckbox.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -81,13 +81,13 @@ public TemplateResponseDocumentStaticFieldCheckbox type(@javax.annotation.Nonnul * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -183,10 +183,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java index 3a42fbb7b..166731a6d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDateSigned.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldDateSigned.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -83,13 +83,13 @@ public TemplateResponseDocumentStaticFieldDateSigned type( * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -186,10 +186,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java index ba9fc8e2d..e11845888 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldDropdown.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldDropdown.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -81,13 +81,13 @@ public TemplateResponseDocumentStaticFieldDropdown type(@javax.annotation.Nonnul * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -183,10 +183,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java index 29052c92c..e0fd07f27 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldHyperlink.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldHyperlink.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -82,13 +82,13 @@ public TemplateResponseDocumentStaticFieldHyperlink type( * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -184,10 +184,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java index bd5c5f0e5..7a29596e8 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldInitials.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldInitials.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -81,13 +81,13 @@ public TemplateResponseDocumentStaticFieldInitials type(@javax.annotation.Nonnul * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -183,10 +183,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java index 3b0590111..6104e2e55 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldRadio.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldRadio.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public TemplateResponseDocumentStaticFieldRadio type(@javax.annotation.Nonnull S * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -182,10 +182,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java index cd319353d..aaceb319e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldSignature.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldSignature.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -82,13 +82,13 @@ public TemplateResponseDocumentStaticFieldSignature type( * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -184,10 +184,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java index ca3d5682c..3a4013dfd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentStaticFieldText.java @@ -28,7 +28,7 @@ @JsonPropertyOrder({TemplateResponseDocumentStaticFieldText.JSON_PROPERTY_TYPE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties( allowSetters = true, // allows the type to be set during deserialization ignoreUnknown = true) @@ -80,13 +80,13 @@ public TemplateResponseDocumentStaticFieldText type(@javax.annotation.Nonnull St * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull String type) { this.type = type; @@ -182,10 +182,7 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } static { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java index 9c0fca40a..69c619461 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseFieldAvgTextLength.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseFieldAvgTextLength { public static final String JSON_PROPERTY_NUM_LINES = "num_lines"; @@ -68,13 +68,13 @@ public TemplateResponseFieldAvgTextLength numLines( * * @return numLines */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_LINES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_LINES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumLines() { return numLines; } - @JsonProperty(JSON_PROPERTY_NUM_LINES) + @JsonProperty(value = JSON_PROPERTY_NUM_LINES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumLines(@javax.annotation.Nullable Integer numLines) { this.numLines = numLines; @@ -91,13 +91,13 @@ public TemplateResponseFieldAvgTextLength numCharsPerLine( * * @return numCharsPerLine */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUM_CHARS_PER_LINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NUM_CHARS_PER_LINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumCharsPerLine() { return numCharsPerLine; } - @JsonProperty(JSON_PROPERTY_NUM_CHARS_PER_LINE) + @JsonProperty(value = JSON_PROPERTY_NUM_CHARS_PER_LINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumCharsPerLine(@javax.annotation.Nullable Integer numCharsPerLine) { this.numCharsPerLine = numCharsPerLine; @@ -215,9 +215,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java index b313ab8d8..68b6b7b17 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseSignerRole.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateResponseSignerRole { public static final String JSON_PROPERTY_NAME = "name"; @@ -67,13 +67,13 @@ public TemplateResponseSignerRole name(@javax.annotation.Nullable String name) { * * @return name */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -89,13 +89,13 @@ public TemplateResponseSignerRole order(@javax.annotation.Nullable Integer order * * @return order */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORDER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getOrder() { return order; } - @JsonProperty(JSON_PROPERTY_ORDER) + @JsonProperty(value = JSON_PROPERTY_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrder(@javax.annotation.Nullable Integer order) { this.order = order; @@ -207,9 +207,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java index d1720e7ef..67fa2aa9e 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesRequest.java @@ -37,7 +37,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateUpdateFilesRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -86,13 +86,13 @@ public TemplateUpdateFilesRequest clientId(@javax.annotation.Nullable String cli * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -117,13 +117,13 @@ public TemplateUpdateFilesRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -148,13 +148,13 @@ public TemplateUpdateFilesRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -170,13 +170,13 @@ public TemplateUpdateFilesRequest message(@javax.annotation.Nullable String mess * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -192,13 +192,13 @@ public TemplateUpdateFilesRequest subject(@javax.annotation.Nullable String subj * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -215,13 +215,13 @@ public TemplateUpdateFilesRequest testMode(@javax.annotation.Nullable Boolean te * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -419,9 +419,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java index be84c8a80..eae15c629 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponse.java @@ -27,7 +27,7 @@ @JsonPropertyOrder({TemplateUpdateFilesResponse.JSON_PROPERTY_TEMPLATE}) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateUpdateFilesResponse { public static final String JSON_PROPERTY_TEMPLATE = "template"; @@ -63,13 +63,13 @@ public TemplateUpdateFilesResponse template( * @return template */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TemplateUpdateFilesResponseTemplate getTemplate() { return template; } - @JsonProperty(JSON_PROPERTY_TEMPLATE) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplate( @javax.annotation.Nonnull TemplateUpdateFilesResponseTemplate template) { @@ -162,9 +162,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java index 26fa213ca..e959fb1ef 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateUpdateFilesResponseTemplate.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateUpdateFilesResponseTemplate { public static final String JSON_PROPERTY_TEMPLATE_ID = "template_id"; @@ -70,13 +70,13 @@ public TemplateUpdateFilesResponseTemplate templateId( * * @return templateId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTemplateId() { return templateId; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_ID) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTemplateId(@javax.annotation.Nullable String templateId) { this.templateId = templateId; @@ -104,14 +104,14 @@ public TemplateUpdateFilesResponseTemplate addWarningsItem(WarningResponse warni * @deprecated */ @Deprecated - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } @Deprecated - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -226,9 +226,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java index 18ad7b825..c60833e3d 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedRequest.java @@ -70,7 +70,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class UnclaimedDraftCreateEmbeddedRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -253,13 +253,13 @@ public UnclaimedDraftCreateEmbeddedRequest clientId(@javax.annotation.Nonnull St * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -278,13 +278,13 @@ public UnclaimedDraftCreateEmbeddedRequest requesterEmailAddress( * @return requesterEmailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRequesterEmailAddress() { return requesterEmailAddress; } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequesterEmailAddress(@javax.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -309,13 +309,13 @@ public UnclaimedDraftCreateEmbeddedRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -341,13 +341,13 @@ public UnclaimedDraftCreateEmbeddedRequest addFileUrlsItem(String fileUrlsItem) * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -365,13 +365,13 @@ public UnclaimedDraftCreateEmbeddedRequest allowCcs( * * @return allowCcs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowCcs() { return allowCcs; } - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowCcs(@javax.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; @@ -389,13 +389,13 @@ public UnclaimedDraftCreateEmbeddedRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -414,13 +414,13 @@ public UnclaimedDraftCreateEmbeddedRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -445,13 +445,13 @@ public UnclaimedDraftCreateEmbeddedRequest addAttachmentsItem(SubAttachment atta * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -477,13 +477,13 @@ public UnclaimedDraftCreateEmbeddedRequest addCcEmailAddressesItem( * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -519,13 +519,13 @@ public UnclaimedDraftCreateEmbeddedRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -542,13 +542,13 @@ public UnclaimedDraftCreateEmbeddedRequest editorOptions( * * @return editorOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { return editorOptions; } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@javax.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -565,13 +565,13 @@ public UnclaimedDraftCreateEmbeddedRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -588,13 +588,13 @@ public UnclaimedDraftCreateEmbeddedRequest forceSignerPage( * * @return forceSignerPage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_PAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerPage() { return forceSignerPage; } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_PAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_PAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerPage(@javax.annotation.Nullable Boolean forceSignerPage) { this.forceSignerPage = forceSignerPage; @@ -611,13 +611,13 @@ public UnclaimedDraftCreateEmbeddedRequest forceSubjectMessage( * * @return forceSubjectMessage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { return forceSubjectMessage; } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@javax.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -646,13 +646,13 @@ public UnclaimedDraftCreateEmbeddedRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -679,13 +679,13 @@ public UnclaimedDraftCreateEmbeddedRequest addFormFieldRulesItem( * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -727,13 +727,13 @@ public UnclaimedDraftCreateEmbeddedRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -756,13 +756,13 @@ public UnclaimedDraftCreateEmbeddedRequest hideTextTags( * * @return hideTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { return hideTextTags; } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@javax.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -782,13 +782,13 @@ public UnclaimedDraftCreateEmbeddedRequest holdRequest( * * @return holdRequest */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHoldRequest() { return holdRequest; } - @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHoldRequest(@javax.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; @@ -806,13 +806,13 @@ public UnclaimedDraftCreateEmbeddedRequest isForEmbeddedSigning( * * @return isForEmbeddedSigning */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsForEmbeddedSigning() { return isForEmbeddedSigning; } - @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsForEmbeddedSigning(@javax.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; @@ -828,13 +828,13 @@ public UnclaimedDraftCreateEmbeddedRequest message(@javax.annotation.Nullable St * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -863,13 +863,13 @@ public UnclaimedDraftCreateEmbeddedRequest putMetadataItem(String key, Object me * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -886,13 +886,13 @@ public UnclaimedDraftCreateEmbeddedRequest requestingRedirectUrl( * * @return requestingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { return requestingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@javax.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -912,13 +912,13 @@ public UnclaimedDraftCreateEmbeddedRequest showPreview( * * @return showPreview */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { return showPreview; } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@javax.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -936,13 +936,13 @@ public UnclaimedDraftCreateEmbeddedRequest showProgressStepper( * * @return showProgressStepper */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { return showProgressStepper; } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@javax.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -967,13 +967,13 @@ public UnclaimedDraftCreateEmbeddedRequest addSignersItem(SubUnclaimedDraftSigne * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@javax.annotation.Nullable List signers) { this.signers = signers; @@ -990,13 +990,13 @@ public UnclaimedDraftCreateEmbeddedRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -1013,13 +1013,13 @@ public UnclaimedDraftCreateEmbeddedRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -1037,13 +1037,13 @@ public UnclaimedDraftCreateEmbeddedRequest skipMeNow( * * @return skipMeNow */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipMeNow() { return skipMeNow; } - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipMeNow(@javax.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; @@ -1059,13 +1059,13 @@ public UnclaimedDraftCreateEmbeddedRequest subject(@javax.annotation.Nullable St * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -1083,13 +1083,13 @@ public UnclaimedDraftCreateEmbeddedRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -1106,13 +1106,13 @@ public UnclaimedDraftCreateEmbeddedRequest type(@javax.annotation.Nullable TypeE * * @return type */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -1135,13 +1135,13 @@ public UnclaimedDraftCreateEmbeddedRequest usePreexistingFields( * * @return usePreexistingFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { return usePreexistingFields; } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -1164,13 +1164,13 @@ public UnclaimedDraftCreateEmbeddedRequest useTextTags( * * @return useTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { return useTextTags; } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -1188,13 +1188,13 @@ public UnclaimedDraftCreateEmbeddedRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -1216,13 +1216,13 @@ public UnclaimedDraftCreateEmbeddedRequest populateAutoFillFields( * * @return populateAutoFillFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { return populateAutoFillFields; } - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPopulateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { @@ -1243,13 +1243,13 @@ public UnclaimedDraftCreateEmbeddedRequest expiresAt( * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -2242,9 +2242,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java index 94848f92d..f3deafdec 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateEmbeddedWithTemplateRequest.java @@ -61,7 +61,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class UnclaimedDraftCreateEmbeddedWithTemplateRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -189,13 +189,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest clientId( * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -213,13 +213,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest requesterEmailAddress( * @return requesterEmailAddress */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getRequesterEmailAddress() { return requesterEmailAddress; } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setRequesterEmailAddress(@javax.annotation.Nonnull String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -247,13 +247,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addTemplateIdsItem( * @return templateIds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getTemplateIds() { return templateIds; } - @JsonProperty(JSON_PROPERTY_TEMPLATE_IDS) + @JsonProperty(value = JSON_PROPERTY_TEMPLATE_IDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTemplateIds(@javax.annotation.Nonnull List templateIds) { this.templateIds = templateIds; @@ -271,13 +271,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -296,13 +296,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowReassign( * * @return allowReassign */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowReassign() { return allowReassign; } - @JsonProperty(JSON_PROPERTY_ALLOW_REASSIGN) + @JsonProperty(value = JSON_PROPERTY_ALLOW_REASSIGN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowReassign(@javax.annotation.Nullable Boolean allowReassign) { this.allowReassign = allowReassign; @@ -327,13 +327,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addCcsItem(SubCC ccsItem) * * @return ccs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcs() { return ccs; } - @JsonProperty(JSON_PROPERTY_CCS) + @JsonProperty(value = JSON_PROPERTY_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcs(@javax.annotation.Nullable List ccs) { this.ccs = ccs; @@ -360,13 +360,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addCustomFieldsItem( * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -383,13 +383,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest editorOptions( * * @return editorOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { return editorOptions; } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@javax.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -406,13 +406,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -441,13 +441,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addFilesItem(File filesIt * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -476,13 +476,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addFileUrlsItem(String fi * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -499,13 +499,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSignerRoles( * * @return forceSignerRoles */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSignerRoles() { return forceSignerRoles; } - @JsonProperty(JSON_PROPERTY_FORCE_SIGNER_ROLES) + @JsonProperty(value = JSON_PROPERTY_FORCE_SIGNER_ROLES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSignerRoles(@javax.annotation.Nullable Boolean forceSignerRoles) { this.forceSignerRoles = forceSignerRoles; @@ -522,13 +522,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest forceSubjectMessage( * * @return forceSubjectMessage */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getForceSubjectMessage() { return forceSubjectMessage; } - @JsonProperty(JSON_PROPERTY_FORCE_SUBJECT_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_FORCE_SUBJECT_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setForceSubjectMessage(@javax.annotation.Nullable Boolean forceSubjectMessage) { this.forceSubjectMessage = forceSubjectMessage; @@ -547,13 +547,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest holdRequest( * * @return holdRequest */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHoldRequest() { return holdRequest; } - @JsonProperty(JSON_PROPERTY_HOLD_REQUEST) + @JsonProperty(value = JSON_PROPERTY_HOLD_REQUEST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHoldRequest(@javax.annotation.Nullable Boolean holdRequest) { this.holdRequest = holdRequest; @@ -571,13 +571,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest isForEmbeddedSigning( * * @return isForEmbeddedSigning */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsForEmbeddedSigning() { return isForEmbeddedSigning; } - @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsForEmbeddedSigning(@javax.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; @@ -594,13 +594,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest message( * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -630,13 +630,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest putMetadataItem( * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -657,13 +657,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest previewOnly( * * @return previewOnly */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPreviewOnly() { return previewOnly; } - @JsonProperty(JSON_PROPERTY_PREVIEW_ONLY) + @JsonProperty(value = JSON_PROPERTY_PREVIEW_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreviewOnly(@javax.annotation.Nullable Boolean previewOnly) { this.previewOnly = previewOnly; @@ -680,13 +680,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest requestingRedirectUrl( * * @return requestingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { return requestingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@javax.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -706,13 +706,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest showPreview( * * @return showPreview */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowPreview() { return showPreview; } - @JsonProperty(JSON_PROPERTY_SHOW_PREVIEW) + @JsonProperty(value = JSON_PROPERTY_SHOW_PREVIEW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowPreview(@javax.annotation.Nullable Boolean showPreview) { this.showPreview = showPreview; @@ -730,13 +730,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest showProgressStepper( * * @return showProgressStepper */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { return showProgressStepper; } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@javax.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -762,13 +762,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest addSignersItem( * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners( @javax.annotation.Nullable List signers) { @@ -786,13 +786,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -809,13 +809,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -833,13 +833,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest skipMeNow( * * @return skipMeNow */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipMeNow() { return skipMeNow; } - @JsonProperty(JSON_PROPERTY_SKIP_ME_NOW) + @JsonProperty(value = JSON_PROPERTY_SKIP_ME_NOW, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipMeNow(@javax.annotation.Nullable Boolean skipMeNow) { this.skipMeNow = skipMeNow; @@ -856,13 +856,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest subject( * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -880,13 +880,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -903,13 +903,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest title( * * @return title */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } - @JsonProperty(JSON_PROPERTY_TITLE) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(@javax.annotation.Nullable String title) { this.title = title; @@ -930,13 +930,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest populateAutoFillFields( * * @return populateAutoFillFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPopulateAutoFillFields() { return populateAutoFillFields; } - @JsonProperty(JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS) + @JsonProperty(value = JSON_PROPERTY_POPULATE_AUTO_FILL_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPopulateAutoFillFields( @javax.annotation.Nullable Boolean populateAutoFillFields) { @@ -955,13 +955,13 @@ public UnclaimedDraftCreateEmbeddedWithTemplateRequest allowCcs( * * @return allowCcs */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowCcs() { return allowCcs; } - @JsonProperty(JSON_PROPERTY_ALLOW_CCS) + @JsonProperty(value = JSON_PROPERTY_ALLOW_CCS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowCcs(@javax.annotation.Nullable Boolean allowCcs) { this.allowCcs = allowCcs; @@ -1790,9 +1790,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java index 3bd0086dc..1c78f1335 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateRequest.java @@ -58,7 +58,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class UnclaimedDraftCreateRequest { /** @@ -206,13 +206,13 @@ public UnclaimedDraftCreateRequest type(@javax.annotation.Nonnull TypeEnum type) * @return type */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public TypeEnum getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setType(@javax.annotation.Nonnull TypeEnum type) { this.type = type; @@ -237,13 +237,13 @@ public UnclaimedDraftCreateRequest addFilesItem(File filesItem) { * * @return files */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; @@ -268,13 +268,13 @@ public UnclaimedDraftCreateRequest addFileUrlsItem(String fileUrlsItem) { * * @return fileUrls */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FILE_URLS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFileUrls() { return fileUrls; } - @JsonProperty(JSON_PROPERTY_FILE_URLS) + @JsonProperty(value = JSON_PROPERTY_FILE_URLS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFileUrls(@javax.annotation.Nullable List fileUrls) { this.fileUrls = fileUrls; @@ -292,13 +292,13 @@ public UnclaimedDraftCreateRequest allowDecline( * * @return allowDecline */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAllowDecline() { return allowDecline; } - @JsonProperty(JSON_PROPERTY_ALLOW_DECLINE) + @JsonProperty(value = JSON_PROPERTY_ALLOW_DECLINE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAllowDecline(@javax.annotation.Nullable Boolean allowDecline) { this.allowDecline = allowDecline; @@ -323,13 +323,13 @@ public UnclaimedDraftCreateRequest addAttachmentsItem(SubAttachment attachmentsI * * @return attachments */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getAttachments() { return attachments; } - @JsonProperty(JSON_PROPERTY_ATTACHMENTS) + @JsonProperty(value = JSON_PROPERTY_ATTACHMENTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(@javax.annotation.Nullable List attachments) { this.attachments = attachments; @@ -354,13 +354,13 @@ public UnclaimedDraftCreateRequest addCcEmailAddressesItem(String ccEmailAddress * * @return ccEmailAddresses */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCcEmailAddresses() { return ccEmailAddresses; } - @JsonProperty(JSON_PROPERTY_CC_EMAIL_ADDRESSES) + @JsonProperty(value = JSON_PROPERTY_CC_EMAIL_ADDRESSES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCcEmailAddresses(@javax.annotation.Nullable List ccEmailAddresses) { this.ccEmailAddresses = ccEmailAddresses; @@ -377,13 +377,13 @@ public UnclaimedDraftCreateRequest clientId(@javax.annotation.Nullable String cl * * @return clientId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClientId(@javax.annotation.Nullable String clientId) { this.clientId = clientId; @@ -418,13 +418,13 @@ public UnclaimedDraftCreateRequest addCustomFieldsItem(SubCustomField customFiel * * @return customFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getCustomFields() { return customFields; } - @JsonProperty(JSON_PROPERTY_CUSTOM_FIELDS) + @JsonProperty(value = JSON_PROPERTY_CUSTOM_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCustomFields(@javax.annotation.Nullable List customFields) { this.customFields = customFields; @@ -441,13 +441,13 @@ public UnclaimedDraftCreateRequest fieldOptions( * * @return fieldOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubFieldOptions getFieldOptions() { return fieldOptions; } - @JsonProperty(JSON_PROPERTY_FIELD_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_FIELD_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFieldOptions(@javax.annotation.Nullable SubFieldOptions fieldOptions) { this.fieldOptions = fieldOptions; @@ -476,13 +476,13 @@ public UnclaimedDraftCreateRequest addFormFieldGroupsItem( * * @return formFieldGroups */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldGroups() { return formFieldGroups; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_GROUPS) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_GROUPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldGroups( @javax.annotation.Nullable List formFieldGroups) { @@ -508,13 +508,13 @@ public UnclaimedDraftCreateRequest addFormFieldRulesItem(SubFormFieldRule formFi * * @return formFieldRules */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldRules() { return formFieldRules; } - @JsonProperty(JSON_PROPERTY_FORM_FIELD_RULES) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELD_RULES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldRules( @javax.annotation.Nullable List formFieldRules) { @@ -556,13 +556,13 @@ public UnclaimedDraftCreateRequest addFormFieldsPerDocumentItem( * * @return formFieldsPerDocument */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFormFieldsPerDocument() { return formFieldsPerDocument; } - @JsonProperty(JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT) + @JsonProperty(value = JSON_PROPERTY_FORM_FIELDS_PER_DOCUMENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFormFieldsPerDocument( @javax.annotation.Nullable List formFieldsPerDocument) { @@ -585,13 +585,13 @@ public UnclaimedDraftCreateRequest hideTextTags( * * @return hideTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHideTextTags() { return hideTextTags; } - @JsonProperty(JSON_PROPERTY_HIDE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_HIDE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHideTextTags(@javax.annotation.Nullable Boolean hideTextTags) { this.hideTextTags = hideTextTags; @@ -607,13 +607,13 @@ public UnclaimedDraftCreateRequest message(@javax.annotation.Nullable String mes * * @return message */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; @@ -642,13 +642,13 @@ public UnclaimedDraftCreateRequest putMetadataItem(String key, Object metadataIt * * @return metadata */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMetadata() { return metadata; } - @JsonProperty(JSON_PROPERTY_METADATA) + @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; @@ -666,13 +666,13 @@ public UnclaimedDraftCreateRequest showProgressStepper( * * @return showProgressStepper */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { return showProgressStepper; } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@javax.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -697,13 +697,13 @@ public UnclaimedDraftCreateRequest addSignersItem(SubUnclaimedDraftSigner signer * * @return signers */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNERS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getSigners() { return signers; } - @JsonProperty(JSON_PROPERTY_SIGNERS) + @JsonProperty(value = JSON_PROPERTY_SIGNERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigners(@javax.annotation.Nullable List signers) { this.signers = signers; @@ -720,13 +720,13 @@ public UnclaimedDraftCreateRequest signingOptions( * * @return signingOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubSigningOptions getSigningOptions() { return signingOptions; } - @JsonProperty(JSON_PROPERTY_SIGNING_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_SIGNING_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningOptions(@javax.annotation.Nullable SubSigningOptions signingOptions) { this.signingOptions = signingOptions; @@ -743,13 +743,13 @@ public UnclaimedDraftCreateRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -765,13 +765,13 @@ public UnclaimedDraftCreateRequest subject(@javax.annotation.Nullable String sub * * @return subject */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSubject() { return subject; } - @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonProperty(value = JSON_PROPERTY_SUBJECT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSubject(@javax.annotation.Nullable String subject) { this.subject = subject; @@ -788,13 +788,13 @@ public UnclaimedDraftCreateRequest testMode(@javax.annotation.Nullable Boolean t * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -817,13 +817,13 @@ public UnclaimedDraftCreateRequest usePreexistingFields( * * @return usePreexistingFields */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUsePreexistingFields() { return usePreexistingFields; } - @JsonProperty(JSON_PROPERTY_USE_PREEXISTING_FIELDS) + @JsonProperty(value = JSON_PROPERTY_USE_PREEXISTING_FIELDS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsePreexistingFields(@javax.annotation.Nullable Boolean usePreexistingFields) { this.usePreexistingFields = usePreexistingFields; @@ -845,13 +845,13 @@ public UnclaimedDraftCreateRequest useTextTags(@javax.annotation.Nullable Boolea * * @return useTextTags */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getUseTextTags() { return useTextTags; } - @JsonProperty(JSON_PROPERTY_USE_TEXT_TAGS) + @JsonProperty(value = JSON_PROPERTY_USE_TEXT_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUseTextTags(@javax.annotation.Nullable Boolean useTextTags) { this.useTextTags = useTextTags; @@ -869,13 +869,13 @@ public UnclaimedDraftCreateRequest ignoreTextTagsExtractionErrors( * * @return ignoreTextTagsExtractionErrors */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIgnoreTextTagsExtractionErrors() { return ignoreTextTagsExtractionErrors; } - @JsonProperty(JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS) + @JsonProperty(value = JSON_PROPERTY_IGNORE_TEXT_TAGS_EXTRACTION_ERRORS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIgnoreTextTagsExtractionErrors( @javax.annotation.Nullable Boolean ignoreTextTagsExtractionErrors) { @@ -895,13 +895,13 @@ public UnclaimedDraftCreateRequest expiresAt(@javax.annotation.Nullable Integer * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -1568,9 +1568,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java index f93c402e8..e5a808afd 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftCreateResponse.java @@ -32,7 +32,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class UnclaimedDraftCreateResponse { public static final String JSON_PROPERTY_UNCLAIMED_DRAFT = "unclaimed_draft"; @@ -71,13 +71,13 @@ public UnclaimedDraftCreateResponse unclaimedDraft( * @return unclaimedDraft */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_UNCLAIMED_DRAFT) + @JsonProperty(value = JSON_PROPERTY_UNCLAIMED_DRAFT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public UnclaimedDraftResponse getUnclaimedDraft() { return unclaimedDraft; } - @JsonProperty(JSON_PROPERTY_UNCLAIMED_DRAFT) + @JsonProperty(value = JSON_PROPERTY_UNCLAIMED_DRAFT, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUnclaimedDraft(@javax.annotation.Nonnull UnclaimedDraftResponse unclaimedDraft) { this.unclaimedDraft = unclaimedDraft; @@ -102,13 +102,13 @@ public UnclaimedDraftCreateResponse addWarningsItem(WarningResponse warningsItem * * @return warnings */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_WARNINGS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWarnings() { return warnings; } - @JsonProperty(JSON_PROPERTY_WARNINGS) + @JsonProperty(value = JSON_PROPERTY_WARNINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWarnings(@javax.annotation.Nullable List warnings) { this.warnings = warnings; @@ -223,9 +223,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java index adf4c94e6..41e107286 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftEditAndResendRequest.java @@ -36,7 +36,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class UnclaimedDraftEditAndResendRequest { public static final String JSON_PROPERTY_CLIENT_ID = "client_id"; @@ -93,13 +93,13 @@ public UnclaimedDraftEditAndResendRequest clientId(@javax.annotation.Nonnull Str * @return clientId */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClientId() { return clientId; } - @JsonProperty(JSON_PROPERTY_CLIENT_ID) + @JsonProperty(value = JSON_PROPERTY_CLIENT_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClientId(@javax.annotation.Nonnull String clientId) { this.clientId = clientId; @@ -116,13 +116,13 @@ public UnclaimedDraftEditAndResendRequest editorOptions( * * @return editorOptions */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SubEditorOptions getEditorOptions() { return editorOptions; } - @JsonProperty(JSON_PROPERTY_EDITOR_OPTIONS) + @JsonProperty(value = JSON_PROPERTY_EDITOR_OPTIONS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEditorOptions(@javax.annotation.Nullable SubEditorOptions editorOptions) { this.editorOptions = editorOptions; @@ -140,13 +140,13 @@ public UnclaimedDraftEditAndResendRequest isForEmbeddedSigning( * * @return isForEmbeddedSigning */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsForEmbeddedSigning() { return isForEmbeddedSigning; } - @JsonProperty(JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING) + @JsonProperty(value = JSON_PROPERTY_IS_FOR_EMBEDDED_SIGNING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsForEmbeddedSigning(@javax.annotation.Nullable Boolean isForEmbeddedSigning) { this.isForEmbeddedSigning = isForEmbeddedSigning; @@ -164,13 +164,13 @@ public UnclaimedDraftEditAndResendRequest requesterEmailAddress( * * @return requesterEmailAddress */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequesterEmailAddress() { return requesterEmailAddress; } - @JsonProperty(JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS) + @JsonProperty(value = JSON_PROPERTY_REQUESTER_EMAIL_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequesterEmailAddress(@javax.annotation.Nullable String requesterEmailAddress) { this.requesterEmailAddress = requesterEmailAddress; @@ -187,13 +187,13 @@ public UnclaimedDraftEditAndResendRequest requestingRedirectUrl( * * @return requestingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { return requestingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@javax.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -211,13 +211,13 @@ public UnclaimedDraftEditAndResendRequest showProgressStepper( * * @return showProgressStepper */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getShowProgressStepper() { return showProgressStepper; } - @JsonProperty(JSON_PROPERTY_SHOW_PROGRESS_STEPPER) + @JsonProperty(value = JSON_PROPERTY_SHOW_PROGRESS_STEPPER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShowProgressStepper(@javax.annotation.Nullable Boolean showProgressStepper) { this.showProgressStepper = showProgressStepper; @@ -234,13 +234,13 @@ public UnclaimedDraftEditAndResendRequest signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -258,13 +258,13 @@ public UnclaimedDraftEditAndResendRequest testMode( * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -556,9 +556,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java index cf497fce5..0b104cb77 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/UnclaimedDraftResponse.java @@ -34,7 +34,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class UnclaimedDraftResponse { public static final String JSON_PROPERTY_SIGNATURE_REQUEST_ID = "signature_request_id"; @@ -83,13 +83,13 @@ public UnclaimedDraftResponse signatureRequestId( * * @return signatureRequestId */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSignatureRequestId() { return signatureRequestId; } - @JsonProperty(JSON_PROPERTY_SIGNATURE_REQUEST_ID) + @JsonProperty(value = JSON_PROPERTY_SIGNATURE_REQUEST_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSignatureRequestId(@javax.annotation.Nullable String signatureRequestId) { this.signatureRequestId = signatureRequestId; @@ -105,13 +105,13 @@ public UnclaimedDraftResponse claimUrl(@javax.annotation.Nullable String claimUr * * @return claimUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLAIM_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_CLAIM_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClaimUrl() { return claimUrl; } - @JsonProperty(JSON_PROPERTY_CLAIM_URL) + @JsonProperty(value = JSON_PROPERTY_CLAIM_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClaimUrl(@javax.annotation.Nullable String claimUrl) { this.claimUrl = claimUrl; @@ -128,13 +128,13 @@ public UnclaimedDraftResponse signingRedirectUrl( * * @return signingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSigningRedirectUrl() { return signingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_SIGNING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_SIGNING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSigningRedirectUrl(@javax.annotation.Nullable String signingRedirectUrl) { this.signingRedirectUrl = signingRedirectUrl; @@ -152,13 +152,13 @@ public UnclaimedDraftResponse requestingRedirectUrl( * * @return requestingRedirectUrl */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getRequestingRedirectUrl() { return requestingRedirectUrl; } - @JsonProperty(JSON_PROPERTY_REQUESTING_REDIRECT_URL) + @JsonProperty(value = JSON_PROPERTY_REQUESTING_REDIRECT_URL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRequestingRedirectUrl(@javax.annotation.Nullable String requestingRedirectUrl) { this.requestingRedirectUrl = requestingRedirectUrl; @@ -174,13 +174,13 @@ public UnclaimedDraftResponse expiresAt(@javax.annotation.Nullable Integer expir * * @return expiresAt */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getExpiresAt() { return expiresAt; } - @JsonProperty(JSON_PROPERTY_EXPIRES_AT) + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setExpiresAt(@javax.annotation.Nullable Integer expiresAt) { this.expiresAt = expiresAt; @@ -196,13 +196,13 @@ public UnclaimedDraftResponse testMode(@javax.annotation.Nullable Boolean testMo * * @return testMode */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_MODE) + @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTestMode() { return testMode; } - @JsonProperty(JSON_PROPERTY_TEST_MODE) + @JsonProperty(value = JSON_PROPERTY_TEST_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTestMode(@javax.annotation.Nullable Boolean testMode) { this.testMode = testMode; @@ -428,9 +428,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/WarningResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/WarningResponse.java index df3fc0502..2e4f93357 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/WarningResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/WarningResponse.java @@ -30,7 +30,7 @@ }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") + comments = "Generator version: 7.26.0") @JsonIgnoreProperties(ignoreUnknown = true) public class WarningResponse { public static final String JSON_PROPERTY_WARNING_MSG = "warning_msg"; @@ -66,13 +66,13 @@ public WarningResponse warningMsg(@javax.annotation.Nonnull String warningMsg) { * @return warningMsg */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WARNING_MSG) + @JsonProperty(value = JSON_PROPERTY_WARNING_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getWarningMsg() { return warningMsg; } - @JsonProperty(JSON_PROPERTY_WARNING_MSG) + @JsonProperty(value = JSON_PROPERTY_WARNING_MSG, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWarningMsg(@javax.annotation.Nonnull String warningMsg) { this.warningMsg = warningMsg; @@ -89,13 +89,13 @@ public WarningResponse warningName(@javax.annotation.Nonnull String warningName) * @return warningName */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_WARNING_NAME) + @JsonProperty(value = JSON_PROPERTY_WARNING_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getWarningName() { return warningName; } - @JsonProperty(JSON_PROPERTY_WARNING_NAME) + @JsonProperty(value = JSON_PROPERTY_WARNING_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setWarningName(@javax.annotation.Nonnull String warningName) { this.warningName = warningName; @@ -211,9 +211,6 @@ private int getListSize(Object obj) throws Exception { * line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } } diff --git a/sdks/java-v1/templates/ApiClient.mustache b/sdks/java-v1/templates/ApiClient.mustache index 9cf548d44..c38f59dcb 100644 --- a/sdks/java-v1/templates/ApiClient.mustache +++ b/sdks/java-v1/templates/ApiClient.mustache @@ -64,10 +64,11 @@ import {{invokerPackage}}.auth.OAuth; {{/hasOAuthMethods}} {{>generatedAnnotation}} + public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String basePath = "{{{basePath}}}"; + protected Map defaultHeaderMap = new HashMap(); + protected Map defaultCookieMap = new HashMap(); + protected String basePath = "{{{basePath}}}"; protected List servers = new ArrayList({{#servers}}{{#-first}}Arrays.asList( {{/-first}} new ServerConfiguration( "{{{url}}}", @@ -95,18 +96,18 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { ){{/-last}}{{/servers}}); protected Integer serverIndex = 0; protected Map serverVariables = null; - private boolean debugging = false; - private int connectionTimeout = 0; + protected boolean debugging = false; + protected int connectionTimeout = 0; - private Client httpClient; - private ObjectMapper objectMapper; + protected Client httpClient; + protected ObjectMapper objectMapper; - private Map authentications; + protected Map authentications; - private int statusCode; - private Map> responseHeaders; + protected int statusCode; + protected Map> responseHeaders; - private DateFormat dateFormat; + protected DateFormat dateFormat; public ApiClient() { objectMapper = new ObjectMapper(); @@ -534,7 +535,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 @@ -688,11 +689,12 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param collectionQueryParams The collection query parameters * @return The full URL */ - private String buildUrl(String path, List queryParams, List collectionQueryParams) { + protected String buildUrl(String path, List queryParams, List collectionQueryParams) { String baseURL; if (serverIndex != null) { if (serverIndex < 0 || serverIndex >= servers.size()) { throw new ArrayIndexOutOfBoundsException(String.format( + java.util.Locale.ROOT, "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() )); } @@ -741,7 +743,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { return url.toString(); } - private ClientResponse getAPIResponse(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String accept, String contentType, String[] authNames) throws ApiException { + protected ClientResponse getAPIResponse(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String accept, String contentType, String[] authNames) throws ApiException { if (body != null && !formParams.isEmpty()) { throw new ApiException(500, "Cannot have body and form params"); } @@ -854,7 +856,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param headerParams Header parameters * @param cookieParams Cookie parameters */ - private void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams) { + protected void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams) { for (String authName : authNames) { Authentication auth = authentications.get(authName); if (auth == null) throw new RuntimeException("Authentication undefined: " + authName); @@ -867,7 +869,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param formParams Form parameters * @return HTTP form encoded parameters */ - private String getXWWWFormUrlencodedParams(Map formParams) { + protected String getXWWWFormUrlencodedParams(Map formParams) { StringBuilder formParamBuilder = new StringBuilder(); for (Entry param : formParams.entrySet()) { diff --git a/sdks/java-v1/templates/Configuration.mustache b/sdks/java-v1/templates/Configuration.mustache index 61b08ab67..814e579d2 100644 --- a/sdks/java-v1/templates/Configuration.mustache +++ b/sdks/java-v1/templates/Configuration.mustache @@ -2,29 +2,58 @@ package {{invokerPackage}}; +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + {{>generatedAnnotation}} + public class Configuration { - public static final String VERSION = "{{{artifactVersion}}}"; - - private static volatile ApiClient defaultApiClient = new ApiClient(); - - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; - } + public static final String VERSION = "{{{artifactVersion}}}"; + + private static final AtomicReference defaultApiClient = new AtomicReference<>(); + private static volatile Supplier apiClientFactory = ApiClient::new; - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; + /** + * Get the default API client, which would be used when creating API instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + ApiClient client = defaultApiClient.get(); + if (client == null) { + client = defaultApiClient.updateAndGet(val -> { + if (val != null) { // changed by another thread + return val; + } + return apiClientFactory.get(); + }); } -} + return client; + } + + /** + * Set the default API client, which would be used when creating API instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient.set(apiClient); + } + + /** + * set the callback used to create new ApiClient objects + */ + public static void setApiClientFactory(Supplier factory) { + apiClientFactory = Objects.requireNonNull(factory); + } + +{{^useCustomTemplateCode}} + private Configuration() { + } +{{/useCustomTemplateCode}} +{{#useCustomTemplateCode}} + public Configuration() { + } +{{/useCustomTemplateCode}} +} \ No newline at end of file diff --git a/sdks/java-v1/templates/JavaTimeFormatter.mustache b/sdks/java-v1/templates/JavaTimeFormatter.mustache index f3fb34e55..e96325c40 100644 --- a/sdks/java-v1/templates/JavaTimeFormatter.mustache +++ b/sdks/java-v1/templates/JavaTimeFormatter.mustache @@ -10,44 +10,49 @@ import java.time.format.DateTimeParseException; * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ {{>generatedAnnotation}} + public class JavaTimeFormatter { + private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; + /** + * Get the date format used to parse/format {@code OffsetDateTime} parameters. + * + * @return DateTimeFormatter + */ + public DateTimeFormatter getOffsetDateTimeFormatter() { + return offsetDateTimeFormatter; + } - /** - * Get the date format used to parse/format {@code OffsetDateTime} parameters. - * @return DateTimeFormatter - */ - public DateTimeFormatter getOffsetDateTimeFormatter() { - return offsetDateTimeFormatter; - } + /** + * Set the date format used to parse/format {@code OffsetDateTime} parameters. + * + * @param offsetDateTimeFormatter {@code DateTimeFormatter} + */ + public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter) { + this.offsetDateTimeFormatter = offsetDateTimeFormatter; + } - /** - * Set the date format used to parse/format {@code OffsetDateTime} parameters. - * @param offsetDateTimeFormatter {@code DateTimeFormatter} - */ - public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter) { - this.offsetDateTimeFormatter = offsetDateTimeFormatter; + /** + * Parse the given string into {@code OffsetDateTime} object. + * + * @param str String + * @return {@code OffsetDateTime} + */ + public OffsetDateTime parseOffsetDateTime(String str) { + try { + return OffsetDateTime.parse(str, offsetDateTimeFormatter); + } catch (DateTimeParseException e) { + throw new RuntimeException(e); } + } - /** - * Parse the given string into {@code OffsetDateTime} object. - * @param str String - * @return {@code OffsetDateTime} - */ - public OffsetDateTime parseOffsetDateTime(String str) { - try { - return OffsetDateTime.parse(str, offsetDateTimeFormatter); - } catch (DateTimeParseException e) { - throw new RuntimeException(e); - } - } - /** - * Format the given {@code OffsetDateTime} object into string. - * @param offsetDateTime {@code OffsetDateTime} - * @return {@code OffsetDateTime} in string format - */ - public String formatOffsetDateTime(OffsetDateTime offsetDateTime) { - return offsetDateTimeFormatter.format(offsetDateTime); - } -} + /** + * Format the given {@code OffsetDateTime} object into string. + * + * @param offsetDateTime {@code OffsetDateTime} + * @return {@code OffsetDateTime} in string format + */ + public String formatOffsetDateTime(OffsetDateTime offsetDateTime) { + return offsetDateTimeFormatter.format(offsetDateTime); + } +} \ No newline at end of file diff --git a/sdks/java-v1/templates/Pair.mustache b/sdks/java-v1/templates/Pair.mustache index ed767ce72..fc7d0568d 100644 --- a/sdks/java-v1/templates/Pair.mustache +++ b/sdks/java-v1/templates/Pair.mustache @@ -3,44 +3,25 @@ package {{invokerPackage}}; {{>generatedAnnotation}} -public class Pair { - private String name = ""; - private String value = ""; - - public Pair (String name, String value) { - setName(name); - setValue(value); - } - - private void setName(String name) { - if (!isValidString(name)) { - return; - } - this.name = name; - } - - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } +public class Pair { + private final String name; + private final String value; - public String getName() { - return this.name; - } + public Pair(String name, String value) { + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; + } - public String getValue() { - return this.value; - } + public String getName() { + return this.name; + } - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } + public String getValue() { + return this.value; + } - return true; - } + private static boolean isValidString(String arg) { + return arg != null; + } } diff --git a/sdks/java-v1/templates/RFC3339DateFormat.mustache b/sdks/java-v1/templates/RFC3339DateFormat.mustache index d35040f05..f18474dbb 100644 --- a/sdks/java-v1/templates/RFC3339DateFormat.mustache +++ b/sdks/java-v1/templates/RFC3339DateFormat.mustache @@ -1,8 +1,6 @@ {{>licenseInfo}} package {{invokerPackage}}; -import com.fasterxml.jackson.databind.util.StdDateFormat; - import java.text.DateFormat; import java.text.FieldPosition; import java.text.ParsePosition; @@ -10,8 +8,10 @@ import java.util.Date; import java.text.DecimalFormat; import java.util.GregorianCalendar; import java.util.TimeZone; +import {{jacksonPackage}}.databind.util.StdDateFormat; {{>generatedAnnotation}} + 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-v1/templates/ServerConfiguration.mustache b/sdks/java-v1/templates/ServerConfiguration.mustache index 728400427..4c94d0bd0 100644 --- a/sdks/java-v1/templates/ServerConfiguration.mustache +++ b/sdks/java-v1/templates/ServerConfiguration.mustache @@ -8,6 +8,7 @@ import java.util.Map; * Representing a Server configuration. */ {{>generatedAnnotation}} + public class ServerConfiguration { public String URL; public String description; diff --git a/sdks/java-v1/templates/ServerVariable.mustache b/sdks/java-v1/templates/ServerVariable.mustache index 41246a7ac..f8261c444 100644 --- a/sdks/java-v1/templates/ServerVariable.mustache +++ b/sdks/java-v1/templates/ServerVariable.mustache @@ -8,6 +8,7 @@ import java.util.HashSet; * Representing a Server Variable for server URL template substitution. */ {{>generatedAnnotation}} + public class ServerVariable { public String description; public String defaultValue; diff --git a/sdks/java-v1/templates/StringUtil.mustache b/sdks/java-v1/templates/StringUtil.mustache index e3d5d6e90..31af8371f 100644 --- a/sdks/java-v1/templates/StringUtil.mustache +++ b/sdks/java-v1/templates/StringUtil.mustache @@ -6,6 +6,7 @@ import java.util.Collection; import java.util.Iterator; {{>generatedAnnotation}} + public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/sdks/java-v1/templates/api.mustache b/sdks/java-v1/templates/api.mustache index 8ce0ae1c4..fcc4fe64a 100644 --- a/sdks/java-v1/templates/api.mustache +++ b/sdks/java-v1/templates/api.mustache @@ -19,6 +19,7 @@ import java.util.List; import java.util.Map; {{>generatedAnnotation}} + {{#operations}} public class {{classname}} { private ApiClient apiClient; @@ -44,7 +45,7 @@ public class {{classname}} { * {{summary}} * {{notes}} {{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{#lambda.escapeJavaDoc}}{{.}}{{/lambda.escapeJavaDoc}}{{/defaultValue}}{{/isContainer}}){{/required}} {{/allParams}} {{#returnType}} * @return {{.}} @@ -61,7 +62,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set diff --git a/sdks/java-v1/templates/apiException.mustache b/sdks/java-v1/templates/apiException.mustache index 894486729..93e28ec89 100644 --- a/sdks/java-v1/templates/apiException.mustache +++ b/sdks/java-v1/templates/apiException.mustache @@ -6,6 +6,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class ApiException extends{{#useRuntimeException}} RuntimeException {{/useRuntimeException}}{{^useRuntimeException}} Exception {{/useRuntimeException}}{ private static final long serialVersionUID = 1L; diff --git a/sdks/java-v1/templates/auth/ApiKeyAuth.mustache b/sdks/java-v1/templates/auth/ApiKeyAuth.mustache index 991ae2350..8703bedd3 100644 --- a/sdks/java-v1/templates/auth/ApiKeyAuth.mustache +++ b/sdks/java-v1/templates/auth/ApiKeyAuth.mustache @@ -8,6 +8,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/sdks/java-v1/templates/auth/Authentication.mustache b/sdks/java-v1/templates/auth/Authentication.mustache index 033de98d5..78bddebaf 100644 --- a/sdks/java-v1/templates/auth/Authentication.mustache +++ b/sdks/java-v1/templates/auth/Authentication.mustache @@ -7,13 +7,15 @@ import {{invokerPackage}}.Pair; import java.util.Map; import java.util.List; +{{>generatedAnnotation}} + public interface Authentication { - /** - * Apply authentication settings to header and query params. - * - * @param queryParams List of query parameters - * @param headerParams Map of header parameters - * @param cookieParams Map of cookie parameters - */ - void applyToParams(List queryParams, Map headerParams, Map cookieParams); + /** + * Apply authentication settings to header and query params. + * + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + */ + void applyToParams(List queryParams, Map headerParams, Map cookieParams); } diff --git a/sdks/java-v1/templates/auth/HttpBasicAuth.mustache b/sdks/java-v1/templates/auth/HttpBasicAuth.mustache index b5c72de6e..be2863d62 100644 --- a/sdks/java-v1/templates/auth/HttpBasicAuth.mustache +++ b/sdks/java-v1/templates/auth/HttpBasicAuth.mustache @@ -11,6 +11,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/sdks/java-v1/templates/auth/HttpBearerAuth.mustache b/sdks/java-v1/templates/auth/HttpBearerAuth.mustache index 6ed21107d..5290e3fb7 100644 --- a/sdks/java-v1/templates/auth/HttpBearerAuth.mustache +++ b/sdks/java-v1/templates/auth/HttpBearerAuth.mustache @@ -6,16 +6,16 @@ import {{invokerPackage}}.Pair; import java.util.List; import java.util.Map; -import java.util.Optional; import java.util.function.Supplier; {{>generatedAnnotation}} + public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; public HttpBearerAuth(String scheme) { - this.scheme = scheme; + this.scheme = upperCaseBearer(scheme); } /** @@ -47,15 +47,14 @@ public class HttpBearerAuth implements Authentication { @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams) { - String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); + String bearerToken = tokenSupplier != null ? tokenSupplier.get() : null; if (bearerToken == null) { return; } - - headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + headerParams.put("Authorization", (scheme != null ? scheme + " " : "") + bearerToken); } private static String upperCaseBearer(String scheme) { - return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; + return "bearer".equalsIgnoreCase(scheme) ? "Bearer" : scheme; } } diff --git a/sdks/java-v1/templates/auth/OAuth.mustache b/sdks/java-v1/templates/auth/OAuth.mustache index 5cb98e7cb..a500f67cf 100644 --- a/sdks/java-v1/templates/auth/OAuth.mustache +++ b/sdks/java-v1/templates/auth/OAuth.mustache @@ -8,6 +8,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class OAuth implements Authentication { private String accessToken; diff --git a/sdks/java-v1/templates/auth/OAuthFlow.mustache b/sdks/java-v1/templates/auth/OAuthFlow.mustache index 7a4252662..8dd1cad4e 100644 --- a/sdks/java-v1/templates/auth/OAuthFlow.mustache +++ b/sdks/java-v1/templates/auth/OAuthFlow.mustache @@ -6,6 +6,7 @@ package {{invokerPackage}}.auth; * OAuth flows that are supported by this client */ {{>generatedAnnotation}} + public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/sdks/java-v1/templates/beanValidation.mustache b/sdks/java-v1/templates/beanValidation.mustache index 47f7109e5..f1b3a0070 100644 --- a/sdks/java-v1/templates/beanValidation.mustache +++ b/sdks/java-v1/templates/beanValidation.mustache @@ -3,13 +3,6 @@ @NotNull {{/isReadOnly}} {{/required}} -{{#isContainer}} -{{^isPrimitiveType}} -{{^isEnum}} - @Valid -{{/isEnum}} -{{/isPrimitiveType}} -{{/isContainer}} {{^isContainer}} {{^isPrimitiveType}} @Valid diff --git a/sdks/java-v1/templates/beanValidationCore.mustache b/sdks/java-v1/templates/beanValidationCore.mustache index ff4ffe26c..f10acf51c 100644 --- a/sdks/java-v1/templates/beanValidationCore.mustache +++ b/sdks/java-v1/templates/beanValidationCore.mustache @@ -1,4 +1,5 @@ -{{#pattern}}{{^isByteArray}} @Pattern(regexp="{{{pattern}}}"){{/isByteArray}}{{/pattern}}{{! +{{#isEmail}} @Email{{/isEmail}}{{! +}}{{#pattern}}{{^isByteArray}} @Pattern(regexp="{{{pattern}}}"){{/isByteArray}}{{/pattern}}{{! minLength && maxLength set }}{{#minLength}}{{#maxLength}} @Size(min={{minLength}},max={{maxLength}}){{/maxLength}}{{/minLength}}{{! minLength set, maxLength not diff --git a/sdks/java-v1/templates/build.gradle.mustache b/sdks/java-v1/templates/build.gradle.mustache index 6557a7c70..b9ed9b7e5 100644 --- a/sdks/java-v1/templates/build.gradle.mustache +++ b/sdks/java-v1/templates/build.gradle.mustache @@ -18,6 +18,26 @@ repositories { mavenCentral() } +ext { + swagger_annotations_version = "1.6.3" + jackson_version = "2.21.6" + jackson_annotations_version = "2.21" + jackson_databind_version = "2.21.6" + {{#openApiNullable}} + jackson_databind_nullable_version = "0.2.12" + {{/openApiNullable}} + jakarta_annotation_version = "1.3.5" + {{#useBeanValidation}} + bean_validation_version = "3.0.2" + {{/useBeanValidation}} + jersey_version = "1.19.4" + jodatime_version = "2.9.9" + junit_version = "5.10.2" + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} +} + if(hasProperty('target') && target == 'android') { apply plugin: 'com.android.library' @@ -78,8 +98,10 @@ if(hasProperty('target') && target == 'android') { apply plugin: 'java' apply plugin: 'maven-publish' - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } publishing { publications { @@ -92,7 +114,7 @@ if(hasProperty('target') && target == 'android') { } task execute(type:JavaExec) { - main = System.getProperty('mainClass') + mainClass = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } @@ -112,32 +134,13 @@ if(hasProperty('target') && target == 'android') { } } -ext { - swagger_annotations_version = "1.6.3" - jackson_version = "2.17.1" - jackson_databind_version = "2.17.1" - {{#openApiNullable}} - jackson_databind_nullable_version = "0.2.6" - {{/openApiNullable}} - jakarta_annotation_version = "1.3.5" - {{#useBeanValidation}} - bean_validation_version = "3.0.2" - {{/useBeanValidation}} - jersey_version = "1.19.4" - jodatime_version = "2.9.9" - junit_version = "5.10.2" - {{#useReflectionEqualsHashCode}} - commons_lang3_version = "3.17.0" - {{/useReflectionEqualsHashCode}} -} - dependencies { implementation "io.swagger:swagger-annotations:$swagger_annotations_version" implementation "com.google.code.findbugs:jsr305:3.0.2" implementation "com.sun.jersey:jersey-client:$jersey_version" implementation "com.sun.jersey.contribs:jersey-multipart:$jersey_version" implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version" - implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" + implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_annotations_version" implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" implementation "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version" {{#openApiNullable}} diff --git a/sdks/java-v1/templates/gradle-wrapper.properties.mustache b/sdks/java-v1/templates/gradle-wrapper.properties.mustache index b82aa23a4..4f5eb9dcc 100644 --- a/sdks/java-v1/templates/gradle-wrapper.properties.mustache +++ b/sdks/java-v1/templates/gradle-wrapper.properties.mustache @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.5-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/sdks/java-v1/templates/jackson_annotations.mustache b/sdks/java-v1/templates/jackson_annotations.mustache index 4fbaf983b..08b43352e 100644 --- a/sdks/java-v1/templates/jackson_annotations.mustache +++ b/sdks/java-v1/templates/jackson_annotations.mustache @@ -4,7 +4,7 @@ * If the field is required, always include it, even if it is null. * Else use custom behaviour, IOW use whatever is defined on the object mapper }} - @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + @JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}) @JsonInclude({{#isMap}}{{#items.isNullable}}content = JsonInclude.Include.ALWAYS, {{/items.isNullable}}{{/isMap}}value = JsonInclude.Include.{{#required}}ALWAYS{{/required}}{{^required}}USE_DEFAULTS{{/required}}) {{#withXml}} @JacksonXmlProperty(localName = "{{items.xmlName}}{{^items.xmlName}}{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}{{/items.xmlName}}"{{#isXmlAttribute}}, isAttribute = true{{/isXmlAttribute}}{{#xmlNamespace}}, namespace = "{{.}}"{{/xmlNamespace}}) diff --git a/sdks/java-v1/templates/javaBuilder.mustache b/sdks/java-v1/templates/javaBuilder.mustache index 4a0e102b8..a60997a1b 100644 --- a/sdks/java-v1/templates/javaBuilder.mustache +++ b/sdks/java-v1/templates/javaBuilder.mustache @@ -14,7 +14,7 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par } {{#vars}} - public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { + public {{classname}}.Builder {{name}}({{>nullableArgument_builder}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.instance.{{name}} = JsonNullable.<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} @@ -32,7 +32,7 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par {{/vars}} {{#parentVars}} - public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { // inherited: {{isInherited}} + public {{classname}}.Builder {{name}}({{>nullableArgument_builder}} {{name}}) { // inherited: {{isInherited}} super.{{name}}({{name}}); return this; } diff --git a/sdks/java-v1/templates/libraries/jersey2/AbstractOpenApiSchema.mustache b/sdks/java-v1/templates/libraries/jersey2/AbstractOpenApiSchema.mustache index d92c85e26..4ad93f1c4 100644 --- a/sdks/java-v1/templates/libraries/jersey2/AbstractOpenApiSchema.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/AbstractOpenApiSchema.mustache @@ -14,6 +14,7 @@ import com.fasterxml.jackson.annotation.JsonValue; * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ {{>generatedAnnotation}} + public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -96,10 +97,7 @@ public abstract class AbstractOpenApiSchema { * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } public boolean equals(Object o) { @@ -135,4 +133,5 @@ public abstract class AbstractOpenApiSchema { {{>libraries/jersey2/additional_properties}} + } diff --git a/sdks/java-v1/templates/libraries/jersey2/ApiClient.mustache b/sdks/java-v1/templates/libraries/jersey2/ApiClient.mustache index fef695d69..6044656c1 100644 --- a/sdks/java-v1/templates/libraries/jersey2/ApiClient.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/ApiClient.mustache @@ -29,6 +29,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.URI; +{{#generateInsecureTlsHook}} import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; @@ -36,6 +37,7 @@ import java.security.cert.X509Certificate; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; +{{/generateInsecureTlsHook}} import java.nio.file.Files; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; @@ -87,14 +89,15 @@ import com.dropbox.sign.model.ErrorResponse; *

ApiClient class.

*/ {{>generatedAnnotation}} + public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { - private static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); + protected static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); protected Map defaultHeaderMap = new HashMap<>(); protected Map defaultCookieMap = new HashMap<>(); protected String basePath = "{{{basePath}}}"; protected String userAgent; - private static final Logger log = Logger.getLogger(ApiClient.class.getName()); + protected static final Logger log = Logger.getLogger(ApiClient.class.getName()); protected List servers = new ArrayList<>({{#servers}}{{#-first}}Arrays.asList( {{/-first}} new ServerConfiguration( @@ -178,7 +181,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { protected boolean debugging = false; protected ClientConfig clientConfig; protected int connectionTimeout = 0; - private int readTimeout = 0; + protected int readTimeout = 0; protected Client httpClient; protected JSON json; @@ -376,14 +379,14 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { return this; } - private void updateBasePath() { + protected void updateBasePath() { if (serverIndex != null) { setBasePath(servers.get(serverIndex).URL(serverVariables)); } } {{#hasOAuthMethods}} - private void setOauthBasePath(String basePath) { + protected void setOauthBasePath(String basePath) { for(Authentication auth : authentications.values()) { if (auth instanceof OAuth) { ((OAuth) auth).setBasePath(basePath); @@ -707,6 +710,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { */ public ApiClient setDebugging(boolean debugging) { this.debugging = debugging; + applyDebugSetting(this.clientConfig); // Rebuild HTTP Client according to the new "debugging" value. this.httpClient = buildHttpClient(); return this; @@ -986,6 +990,41 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } } + /** + * Format the given collection as a path parameter value according to the collection format. + * Each item is escaped individually, so that the delimiter is preserved (e.g. "a,b,c" for csv). + * + * @param collectionFormat Collection format (csv by default) + * @param value Collection value + * @return Escaped path parameter value + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + if (value == null || value.isEmpty()) { + return ""; + } + + // "multi" is not valid for path params, fall back to csv + String delimiter = ","; + if ("ssv".equals(collectionFormat)) { + delimiter = escapeString(" "); + } else if ("tsv".equals(collectionFormat)) { + delimiter = escapeString("\t"); + } else if ("pipes".equals(collectionFormat)) { + delimiter = escapeString("|"); + } + + StringBuilder sb = new StringBuilder(); + boolean first = true; + for (Object item : value) { + if (!first) { + sb.append(delimiter); + } + sb.append(escapeString(parameterToString(item))); + first = false; + } + return sb.toString(); + } + /** * Serialize the given Java object into string entity according the given * Content-Type (only JSON is supported for now). @@ -1033,7 +1072,7 @@ 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. * @@ -1041,7 +1080,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @param key Key of the object * @param multiPart MultiPart to add the form param to */ - private void addParamToMultipart(Object value, String key, MultiPart multiPart) { + protected void addParamToMultipart(Object value, String key, MultiPart multiPart) { if (value instanceof File) { File file = (File) value; FormDataContentDisposition contentDisp = FormDataContentDisposition.name(key) @@ -1234,6 +1273,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { if (index < 0 || index >= serverConfigurations.size()) { throw new ArrayIndexOutOfBoundsException( String.format( + java.util.Locale.ROOT, "Invalid index %d when selecting the host settings. Must be less than %d", index, serverConfigurations.size())); } @@ -1245,6 +1285,27 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { // to support (constant) query string in `path`, e.g. "/posts?draft=1" WebTarget target = httpClient.target(targetURL); + // put all headers in one place + Map allHeaderParams = new HashMap<>(defaultHeaderMap); + allHeaderParams.putAll(headerParams); + + if (authNames != null) { + // update different parameters (e.g. headers) for authentication + updateParamsForAuth( + authNames, + queryParams, + allHeaderParams, + cookieParams, + {{#hasHttpSignatureMethods}} + serializeToString(body, formParams, contentType, isBodyNullable), + {{/hasHttpSignatureMethods}} + {{^hasHttpSignatureMethods}} + null, + {{/hasHttpSignatureMethods}} + method, + target.getUri()); + } + if (queryParams != null) { for (Pair queryParam : queryParams) { if (queryParam.getValue() != null) { @@ -1275,27 +1336,6 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { Entity entity = serialize(body, formParams, contentType, isBodyNullable); - // put all headers in one place - Map allHeaderParams = new HashMap<>(defaultHeaderMap); - allHeaderParams.putAll(headerParams); - - if (authNames != null) { - // update different parameters (e.g. headers) for authentication - updateParamsForAuth( - authNames, - queryParams, - allHeaderParams, - cookieParams, - {{#hasHttpSignatureMethods}} - serializeToString(body, formParams, contentType, isBodyNullable), - {{/hasHttpSignatureMethods}} - {{^hasHttpSignatureMethods}} - null, - {{/hasHttpSignatureMethods}} - method, - target.getUri()); - } - for (Entry entry : allHeaderParams.entrySet()) { String value = entry.getValue(); if (value != null) { @@ -1308,11 +1348,9 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { try { response = sendRequest(method, invocationBuilder, entity); - final int statusCode = response.getStatusInfo().getStatusCode(); - {{#hasOAuthMethods}} // If OAuth is used and a status 401 is received, renew the access token and retry the request - if (authNames != null && statusCode == Status.UNAUTHORIZED.getStatusCode()) { + if (authNames != null && response.getStatusInfo().getStatusCode() == Status.UNAUTHORIZED.getStatusCode()) { for (String authName : authNames) { Authentication authentication = authentications.get(authName); if (authentication instanceof OAuth) { @@ -1326,8 +1364,10 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } } } - + {{/hasOAuthMethods}} + final int statusCode = response.getStatusInfo().getStatusCode(); + Map> responseHeaders = buildResponseHeaders(response); if (statusCode == Status.NO_CONTENT.getStatusCode()) { @@ -1386,7 +1426,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { } } - private Response sendRequest(String method, Invocation.Builder invocationBuilder, Entity entity) { + protected Response sendRequest(String method, Invocation.Builder invocationBuilder, Entity entity) { Response response; if ("POST".equals(method)) { response = invocationBuilder.post(entity); @@ -1420,8 +1460,10 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @return Client */ protected Client buildHttpClient() { - // recreate the client config to pickup changes - clientConfig = getDefaultClientConfig(); + // Create ClientConfig if it has not been initialized yet + if (clientConfig == null) { + clientConfig = getDefaultClientConfig(); + } ClientBuilder clientBuilder = ClientBuilder.newBuilder(); clientBuilder = clientBuilder.withConfig(clientConfig); @@ -1442,6 +1484,11 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { clientConfig.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); // turn off compliance validation to be able to send payloads with DELETE calls clientConfig.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true); + applyDebugSetting(clientConfig); + return clientConfig; + } + + protected void applyDebugSetting(ClientConfig clientConfig) { if (debugging) { clientConfig.register(new LoggingFeature(java.util.logging.Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME), java.util.logging.Level.INFO, LoggingFeature.Verbosity.PAYLOAD_ANY, 1024*50 /* Log payloads up to 50K */)); clientConfig.property(LoggingFeature.LOGGING_FEATURE_VERBOSITY, LoggingFeature.Verbosity.PAYLOAD_ANY); @@ -1451,8 +1498,6 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { // suppress warnings for payloads with DELETE calls: java.util.logging.Logger.getLogger("org.glassfish.jersey.client").setLevel(java.util.logging.Level.SEVERE); } - - return clientConfig; } /** @@ -1466,14 +1511,17 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * server endpoints from web targets created by the client instance that is using this SSL context. * 4. Set the client-side trust store. * +{{#generateInsecureTlsHook}} * To completely disable certificate validation (at your own risk), you can * override this method and invoke disableCertificateValidation(clientBuilder). * +{{/generateInsecureTlsHook}} * @param clientBuilder a {@link {{javaxPackage}}.ws.rs.client.ClientBuilder} object. */ protected void customizeClientBuilder(ClientBuilder clientBuilder) { // No-op extension point } +{{#generateInsecureTlsHook}} /** * Disable X.509 certificate validation in TLS connections. @@ -1504,6 +1552,7 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { sslContext.init(null, trustAllCerts, new SecureRandom()); clientBuilder.sslContext(sslContext); } +{{/generateInsecureTlsHook}} /** *

Build the response headers.

@@ -1544,4 +1593,4 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); } } -} +} \ No newline at end of file diff --git a/sdks/java-v1/templates/libraries/jersey2/JSON.mustache b/sdks/java-v1/templates/libraries/jersey2/JSON.mustache index 613a4a276..1eb2b74a2 100644 --- a/sdks/java-v1/templates/libraries/jersey2/JSON.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/JSON.mustache @@ -22,6 +22,7 @@ import {{javaxPackage}}.ws.rs.core.GenericType; import {{javaxPackage}}.ws.rs.ext.ContextResolver; {{>generatedAnnotation}} + public class JSON implements ContextResolver { private ObjectMapper mapper; @@ -42,6 +43,7 @@ public class JSON implements ContextResolver { {{#openApiNullable}} .addModule(new JsonNullableModule()) {{/openApiNullable}} + .addModule(new RFC3339JavaTimeModule()) .build(); } diff --git a/sdks/java-v1/templates/libraries/jersey2/anyof_model.mustache b/sdks/java-v1/templates/libraries/jersey2/anyof_model.mustache index 46c2cdc3a..803d3ee62 100644 --- a/sdks/java-v1/templates/libraries/jersey2/anyof_model.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/anyof_model.mustache @@ -53,7 +53,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im @Override public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); + JsonNode tree = ctxt.readTree(jp); Object deserialized = null; {{#discriminator}} @@ -95,7 +95,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im {{/anyOf}} {{/composedSchemas}} - throw new IOException(String.format("Failed deserialization for {{classname}}: no match found")); + throw new IOException("Failed deserialization for {{classname}}: no match found"); } /** @@ -119,6 +119,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}}); } {{> libraries/jersey2/additional_properties }} + {{#additionalPropertiesType}} /** * Return true if this {{name}} object is equal to o. @@ -218,7 +219,7 @@ 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{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { + public {{{dataType}}} get{{#sanitizeDataType}}{{{dataType}}}{{/sanitizeDataType}}() throws ClassCastException { return ({{{dataType}}})super.getActualInstance(); } diff --git a/sdks/java-v1/templates/libraries/jersey2/api.mustache b/sdks/java-v1/templates/libraries/jersey2/api.mustache index 1b5968121..da92be4ea 100644 --- a/sdks/java-v1/templates/libraries/jersey2/api.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/api.mustache @@ -23,6 +23,7 @@ import java.util.List; import java.util.Map; {{>generatedAnnotation}} + {{#operations}} public class {{classname}} { private ApiClient apiClient; @@ -59,7 +60,7 @@ public class {{classname}} { * {{summary}} * {{notes}} {{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{#lambda.escapeJavaDoc}}{{.}}{{/lambda.escapeJavaDoc}}{{/defaultValue}}){{/required}} {{/allParams}} {{#returnType}} * @return {{.}} @@ -86,7 +87,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#returnType}}return {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){{#returnType}}.getData(){{/returnType}}; } {{/vendorExtensions.x-group-parameters}} @@ -100,7 +101,7 @@ public class {{classname}} { * {{summary}} * {{notes}} {{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{#defaultValue}}, default to {{#lambda.escapeJavaDoc}}{{.}}{{/lambda.escapeJavaDoc}}{{/defaultValue}}){{/required}} {{/allParams}} * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> * @throws ApiException if fails to make API call @@ -125,7 +126,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { {{#useCustomTemplateCode}} {{#allParams}}{{^required}}{{#defaultValue}} if ({{paramName}} == null) { @@ -146,7 +147,7 @@ public class {{classname}} { {{#hasPathParams}} // Path parameters String localVarPath = "{{{path}}}"{{#pathParams}} - .replaceAll({{=% %=}}"\\{%baseName%}"%={{ }}=%, apiClient.escapeString({{{paramName}}}.toString())){{/pathParams}}; + .replaceAll({{=% %=}}"\\{%baseName%}"%={{ }}=%, {{#isArray}}apiClient.collectionPathParameterToString("{{{collectionFormat}}}", {{{paramName}}}){{/isArray}}{{^isArray}}apiClient.escapeString({{{paramName}}}.toString()){{/isArray}}){{/pathParams}}; {{/hasPathParams}} {{#queryParams}} @@ -245,10 +246,11 @@ public class {{classname}} { public class API{{operationId}}Request { {{#allParams}} + {{>nullable_var_annotations}}{{! prevent indent}} private {{{dataType}}} {{paramName}}; {{/allParams}} - private API{{operationId}}Request({{#pathParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) { + private API{{operationId}}Request({{#pathParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) { {{#pathParams}} this.{{paramName}} = {{paramName}}; {{/pathParams}} @@ -258,10 +260,10 @@ public class {{classname}} { /** * Set {{paramName}} - * @param {{paramName}} {{description}} ({{^required}}optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}{{/required}}{{#required}}required{{/required}}) + * @param {{paramName}} {{description}} ({{^required}}optional{{^isContainer}}{{#defaultValue}}, default to {{#lambda.escapeJavaDoc}}{{.}}{{/lambda.escapeJavaDoc}}{{/defaultValue}}{{/isContainer}}{{/required}}{{#required}}required{{/required}}) * @return API{{operationId}}Request */ - public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { + public API{{operationId}}Request {{paramName}}({{>nullable_var_annotations}} {{{dataType}}} {{paramName}}) { this.{{paramName}} = {{paramName}}; return this; } @@ -327,7 +329,7 @@ public class {{classname}} { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public API{{operationId}}Request {{operationId}}({{#pathParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) throws ApiException { + public API{{operationId}}Request {{operationId}}({{#pathParams}}{{>nullable_var_annotations}} {{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}) throws ApiException { return new API{{operationId}}Request({{#pathParams}}{{paramName}}{{^-last}}, {{/-last}}{{/pathParams}}); } {{/vendorExtensions.x-group-parameters}} diff --git a/sdks/java-v1/templates/libraries/jersey2/apiException.mustache b/sdks/java-v1/templates/libraries/jersey2/apiException.mustache index 70c2af504..1c043cee6 100644 --- a/sdks/java-v1/templates/libraries/jersey2/apiException.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/apiException.mustache @@ -16,6 +16,7 @@ import com.dropbox.sign.model.ErrorResponse; * API Exception */ {{>generatedAnnotation}} + public class ApiException extends{{#useRuntimeException}} RuntimeException {{/useRuntimeException}}{{^useRuntimeException}} Exception {{/useRuntimeException}}{ private static final long serialVersionUID = 1L; diff --git a/sdks/java-v1/templates/libraries/jersey2/auth/ApiKeyAuth.mustache b/sdks/java-v1/templates/libraries/jersey2/auth/ApiKeyAuth.mustache index 1731f936f..82576065f 100644 --- a/sdks/java-v1/templates/libraries/jersey2/auth/ApiKeyAuth.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/auth/ApiKeyAuth.mustache @@ -10,6 +10,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/sdks/java-v1/templates/libraries/jersey2/auth/Authentication.mustache b/sdks/java-v1/templates/libraries/jersey2/auth/Authentication.mustache index 46d9c1ab6..169e3abdc 100644 --- a/sdks/java-v1/templates/libraries/jersey2/auth/Authentication.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/auth/Authentication.mustache @@ -9,6 +9,8 @@ import java.net.URI; import java.util.Map; import java.util.List; +{{>generatedAnnotation}} + public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/sdks/java-v1/templates/libraries/jersey2/auth/HttpBasicAuth.mustache b/sdks/java-v1/templates/libraries/jersey2/auth/HttpBasicAuth.mustache index 13cecfa90..2a8774b6a 100644 --- a/sdks/java-v1/templates/libraries/jersey2/auth/HttpBasicAuth.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/auth/HttpBasicAuth.mustache @@ -13,6 +13,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/sdks/java-v1/templates/libraries/jersey2/auth/HttpBearerAuth.mustache b/sdks/java-v1/templates/libraries/jersey2/auth/HttpBearerAuth.mustache index 110a11ea7..cb78e4799 100644 --- a/sdks/java-v1/templates/libraries/jersey2/auth/HttpBearerAuth.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/auth/HttpBearerAuth.mustache @@ -10,6 +10,7 @@ import java.util.Map; import java.util.List; {{>generatedAnnotation}} + public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/sdks/java-v1/templates/libraries/jersey2/auth/OAuth.mustache b/sdks/java-v1/templates/libraries/jersey2/auth/OAuth.mustache index 6617522ed..4725badff 100644 --- a/sdks/java-v1/templates/libraries/jersey2/auth/OAuth.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/auth/OAuth.mustache @@ -21,6 +21,7 @@ import java.util.logging.Level; import java.util.logging.Logger; {{>generatedAnnotation}} + public class OAuth implements Authentication { private static final Logger log = Logger.getLogger(OAuth.class.getName()); diff --git a/sdks/java-v1/templates/libraries/jersey2/build.gradle.mustache b/sdks/java-v1/templates/libraries/jersey2/build.gradle.mustache index 2339cfe0f..c3739d581 100644 --- a/sdks/java-v1/templates/libraries/jersey2/build.gradle.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/build.gradle.mustache @@ -44,6 +44,39 @@ repositories { mavenCentral() } +ext { + {{#swagger1AnnotationLibrary}} + swagger_annotations_version = "1.6.6" + {{/swagger1AnnotationLibrary}} + {{#swagger2AnnotationLibrary}} + swagger_annotations_version = "2.2.15" + {{/swagger2AnnotationLibrary}} + jackson_version = "2.21.6" + jackson_annotations_version = "2.21" + jackson_databind_version = "2.21.6" + {{#openApiNullable}} + jackson_databind_nullable_version = "0.2.12" + {{/openApiNullable}} + jakarta_annotation_version = "1.3.5" + {{#useBeanValidation}} + bean_validation_version = "3.0.2" + {{/useBeanValidation}} + jersey_version = "2.35" + junit_version = "5.8.2" + {{#hasOAuthMethods}} + scribejava_apis_version = "8.3.1" + {{/hasOAuthMethods}} + {{#hasHttpSignatureMethods}} + tomitribe_http_signatures_version = "1.7" + {{/hasHttpSignatureMethods}} + {{#useReflectionEqualsHashCode}} + commons_lang3_version = "3.17.0" + {{/useReflectionEqualsHashCode}} +{{#useCustomTemplateCode}} + mockito_version = "3.12.4" +{{/useCustomTemplateCode}} +} + {{^useCustomTemplateCode}} if(hasProperty('target') && target == 'android') { @@ -103,8 +136,10 @@ if(hasProperty('target') && target == 'android') { apply plugin: 'java' apply plugin: 'maven-publish' - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } publishing { publications { @@ -117,7 +152,7 @@ if(hasProperty('target') && target == 'android') { } task execute(type:JavaExec) { - main = System.getProperty('mainClass') + mainClass = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } } @@ -159,35 +194,13 @@ artifacts { } {{/useCustomTemplateCode}} -ext { - swagger_annotations_version = "1.6.5" - jackson_version = "2.17.1" - jackson_databind_version = "2.17.1" - {{#openApiNullable}} - jackson_databind_nullable_version = "0.2.6" - {{/openApiNullable}} - jakarta_annotation_version = "1.3.5" - {{#useBeanValidation}} - bean_validation_version = "3.0.2" - {{/useBeanValidation}} - jersey_version = "2.35" - junit_version = "5.8.2" - {{#hasOAuthMethods}} - scribejava_apis_version = "8.3.1" - {{/hasOAuthMethods}} - {{#hasHttpSignatureMethods}} - tomitribe_http_signatures_version = "1.7" - {{/hasHttpSignatureMethods}} - {{#useReflectionEqualsHashCode}} - commons_lang3_version = "3.17.0" - {{/useReflectionEqualsHashCode}} -{{#useCustomTemplateCode}} - mockito_version = "3.12.4" -{{/useCustomTemplateCode}} -} - dependencies { + {{#swagger1AnnotationLibrary}} implementation "io.swagger:swagger-annotations:$swagger_annotations_version" + {{/swagger1AnnotationLibrary}} + {{#swagger2AnnotationLibrary}} + implementation "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version" + {{/swagger2AnnotationLibrary}} {{#useCustomTemplateCode}} implementation 'commons-codec:commons-codec:1.15' {{/useCustomTemplateCode}} @@ -198,7 +211,7 @@ dependencies { implementation "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version" implementation "org.glassfish.jersey.connectors:jersey-apache-connector:$jersey_version" implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version" - implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" + implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_annotations_version" implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" {{#openApiNullable}} implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" diff --git a/sdks/java-v1/templates/libraries/jersey2/build.sbt.mustache b/sdks/java-v1/templates/libraries/jersey2/build.sbt.mustache index 3883888fe..b706a7f45 100644 --- a/sdks/java-v1/templates/libraries/jersey2/build.sbt.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/build.sbt.mustache @@ -3,7 +3,7 @@ lazy val root = (project in file(".")). organization := "{{groupId}}", name := "{{artifactId}}", version := "{{artifactVersion}}", - scalaVersion := "2.11.4", + scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), Compile / packageDoc / publishArtifact := false, @@ -19,15 +19,15 @@ lazy val root = (project in file(".")). "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.35", "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.35", "org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.35", - "com.fasterxml.jackson.core" % "jackson-core" % "2.17.1" % "compile", - "com.fasterxml.jackson.core" % "jackson-annotations" % "2.17.1" % "compile", - "com.fasterxml.jackson.core" % "jackson-databind" % "2.17.1" % "compile", + "com.fasterxml.jackson.core" % "jackson-core" % "2.21.6" % "compile", + "com.fasterxml.jackson.core" % "jackson-annotations" % "2.21" % "compile", + "com.fasterxml.jackson.core" % "jackson-databind" % "2.21.6" % "compile", {{#joda}} - "com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.17.1" % "compile", + "com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.21.6" % "compile", {{/joda}} - "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.17.1" % "compile", + "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.21.6" % "compile", {{#openApiNullable}} - "org.openapitools" % "jackson-databind-nullable" % "0.2.6" % "compile", + "org.openapitools" % "jackson-databind-nullable" % "0.2.12" % "compile", {{/openApiNullable}} {{#hasOAuthMethods}} "com.github.scribejava" % "scribejava-apis" % "8.3.1" % "compile", diff --git a/sdks/java-v1/templates/libraries/jersey2/model_doc.mustache b/sdks/java-v1/templates/libraries/jersey2/model_doc.mustache index be1aedcf2..f17263f08 100644 --- a/sdks/java-v1/templates/libraries/jersey2/model_doc.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/model_doc.mustache @@ -2,17 +2,21 @@ {{#isEnum}} {{>enum_outer_doc}} + {{/isEnum}} {{^isEnum}} {{^oneOf.isEmpty}} {{>model_oneof_doc}} + {{/oneOf.isEmpty}} {{^anyOf.isEmpty}} {{>model_anyof_doc}} + {{/anyOf.isEmpty}} {{^anyOf}} {{^oneOf}} {{>pojo_doc}} + {{/oneOf}} {{/anyOf}} {{/isEnum}} diff --git a/sdks/java-v1/templates/libraries/jersey2/oneof_model.mustache b/sdks/java-v1/templates/libraries/jersey2/oneof_model.mustache index 5b60d0743..dcbfdf49f 100644 --- a/sdks/java-v1/templates/libraries/jersey2/oneof_model.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/oneof_model.mustache @@ -55,7 +55,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im @Override public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { - JsonNode tree = jp.readValueAsTree(); + JsonNode tree = ctxt.readTree(jp); Object deserialized = null; {{#useOneOfDiscriminatorLookup}} {{#discriminator}} @@ -70,7 +70,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im return new{{classname}}; {{/mappedModels}} default: - log.log(Level.WARNING, String.format("Failed to lookup discriminator value `%s` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue)); + log.log(Level.WARNING, String.format(java.util.Locale.ROOT, "Failed to lookup discriminator value `%s` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue)); } {{/discriminator}} @@ -157,7 +157,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im ret.setActualInstance(deserialized); return ret; } - throw new IOException(String.format("Failed deserialization for {{classname}}: %d classes match result, expected 1", match)); + throw new IOException(String.format(java.util.Locale.ROOT, "Failed deserialization for {{classname}}: %d classes match result, expected 1", match)); } /** @@ -181,6 +181,7 @@ public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-im super("oneOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}}); } {{> libraries/jersey2/additional_properties }} + {{#additionalPropertiesType}} /** * Return true if this {{name}} object is equal to o. @@ -280,7 +281,7 @@ 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{{#sanitizeGeneric}}{{{dataType}}}{{/sanitizeGeneric}}() throws ClassCastException { + public {{{dataType}}} get{{#sanitizeDataType}}{{{dataType}}}{{/sanitizeDataType}}() throws ClassCastException { return ({{{dataType}}})super.getActualInstance(); } diff --git a/sdks/java-v1/templates/libraries/jersey2/pojo.mustache b/sdks/java-v1/templates/libraries/jersey2/pojo.mustache index a73f86943..4f4b77ce5 100644 --- a/sdks/java-v1/templates/libraries/jersey2/pojo.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/pojo.mustache @@ -28,7 +28,7 @@ import com.dropbox.sign.ApiException; {{/jackson}} {{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}} {{#vendorExtensions.x-class-extra-annotation}} -{{{vendorExtensions.x-class-extra-annotation}}} +{{{.}}} {{/vendorExtensions.x-class-extra-annotation}} {{#useCustomTemplateCode}} {{^parent}} @@ -47,11 +47,13 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isContainer}} {{^vendorExtensions.x-enum-as-string}} {{>modelInnerEnum}} + {{/vendorExtensions.x-enum-as-string}} {{/isContainer}} {{#isContainer}} {{#mostInnerItems}} {{>modelInnerEnum}} + {{/mostInnerItems}} {{/isContainer}} {{/isEnum}} @@ -71,7 +73,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} {{#vendorExtensions.x-field-extra-annotation}} - {{{vendorExtensions.x-field-extra-annotation}}} + {{{.}}} {{/vendorExtensions.x-field-extra-annotation}} {{#vendorExtensions.x-is-jackson-optional-nullable}} {{#isContainer}} @@ -91,7 +93,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - {{>nullable_var_annotations}} + {{>nullable_var_annotations}}{{! prevent indent}} {{^useCustomTemplateCode}} private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/useCustomTemplateCode}} @@ -178,8 +180,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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}}); + if (this.{{name}} == null || !this.{{name}}.isPresent() || this.{{name}}.get() == null) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of(new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>()); } try { this.{{name}}.get().add({{name}}Item); @@ -190,7 +192,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/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}} = new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>(); } this.{{name}}.add({{name}}Item); return this; @@ -201,8 +203,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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}}); + if (this.{{name}} == null || !this.{{name}}.isPresent() || this.{{name}}.get() == null) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of(new HashMap<>()); } try { this.{{name}}.get().put(key, {{name}}Item); @@ -213,7 +215,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} if (this.{{name}} == null) { - this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}}; + this.{{name}} = new HashMap<>(); } this.{{name}}.put(key, {{name}}Item); return this; @@ -243,15 +245,16 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - {{>nullable_var_annotations}} + {{>nullable_var_annotations}}{{! prevent indent}} {{#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}}}") + @Schema({{#example}}example = "{{{.}}}", {{/example}}requiredMode = {{#required}}Schema.RequiredMode.REQUIRED{{/required}}{{^required}}Schema.RequiredMode.NOT_REQUIRED{{/required}}, description = "{{{description}}}"{{#isNullable}}, nullable = true{{/isNullable}}) {{/swagger2AnnotationLibrary}} {{#vendorExtensions.x-extra-annotation}} {{{vendorExtensions.x-extra-annotation}}} @@ -277,6 +280,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#vendorExtensions.x-is-jackson-optional-nullable}} {{> jackson_annotations}} + public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() { return {{name}}; } @@ -319,6 +323,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/vars}} {{>libraries/jersey2/additional_properties}} + /** * Return true if this {{name}} object is equal to o. */ @@ -443,10 +448,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens * (except the first line). */ private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } {{#parcelableModel}} diff --git a/sdks/java-v1/templates/libraries/jersey2/pom.mustache b/sdks/java-v1/templates/libraries/jersey2/pom.mustache index 74d3ef000..eec12ae56 100644 --- a/sdks/java-v1/templates/libraries/jersey2/pom.mustache +++ b/sdks/java-v1/templates/libraries/jersey2/pom.mustache @@ -336,7 +336,7 @@ com.fasterxml.jackson.core jackson-annotations - ${jackson-version} + ${jackson-annotations-version} com.fasterxml.jackson.core @@ -438,9 +438,10 @@ 2.2.15 {{/swagger2AnnotationLibrary}} 2.37 - 2.17.1 - 2.17.1 - 0.2.6 + 2.21.6 + 2.21 + 2.21.6 + 0.2.12 {{#useJakartaEe}} 2.1.1 3.0.2 @@ -449,7 +450,7 @@ 1.3.5 2.0.2 {{/useJakartaEe}} - 5.10.0 + 5.14.4 {{#hasHttpSignatureMethods}} 1.8 {{/hasHttpSignatureMethods}} diff --git a/sdks/java-v1/templates/model.mustache b/sdks/java-v1/templates/model.mustache index 55e6678d2..0c3c6df51 100644 --- a/sdks/java-v1/templates/model.mustache +++ b/sdks/java-v1/templates/model.mustache @@ -17,6 +17,17 @@ import java.io.Serializable; {{#jackson}} import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; +{{#models}} +{{#model}} +{{#additionalPropertiesType}} +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonFormat; +{{/additionalPropertiesType}} +{{/model}} +{{/models}} {{#withXml}} import com.fasterxml.jackson.dataformat.xml.annotation.*; {{/withXml}} diff --git a/sdks/java-v1/templates/modelEnum.mustache b/sdks/java-v1/templates/modelEnum.mustache index d1ba359d9..b8431b9f5 100644 --- a/sdks/java-v1/templates/modelEnum.mustache +++ b/sdks/java-v1/templates/modelEnum.mustache @@ -16,6 +16,9 @@ import java.net.URI; /** * {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}} */ +{{#isDeprecated}} +@Deprecated +{{/isDeprecated}} {{#gson}} @JsonAdapter({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.Adapter.class) {{/gson}} @@ -23,7 +26,7 @@ import java.net.URI; @JsonbTypeSerializer({{datatypeWithEnum}}.Serializer.class) @JsonbTypeDeserializer({{datatypeWithEnum}}.Deserializer.class) {{/jsonb}} -{{>additionalEnumTypeAnnotations}}public enum {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} { +{{>additionalEnumTypeAnnotations}}public enum {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}{{#vendorExtensions.x-implements}}{{#-first}} implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { {{#allowableValues}}{{#enumVars}} {{#enumDescription}} /** @@ -31,7 +34,7 @@ import java.net.URI; */ {{/enumDescription}} {{#withXml}} - @XmlEnumValue({{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}{{{value}}}{{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}) + @XmlEnumValue({{#lambda.javaStringLiteral}}{{{rawValue}}}{{/lambda.javaStringLiteral}}) {{/withXml}} {{{name}}}({{{value}}}){{^-last}}, {{/-last}}{{#-last}};{{/-last}}{{/enumVars}}{{/allowableValues}} @@ -59,7 +62,7 @@ import java.net.URI; {{/jackson}} public static {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} fromValue({{{dataType}}} value) { for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) { - if (b.value.{{^isString}}equals{{/isString}}{{#isString}}{{#useEnumCaseInsensitive}}equalsIgnoreCase{{/useEnumCaseInsensitive}}{{^useEnumCaseInsensitive}}equals{{/useEnumCaseInsensitive}}{{/isString}}(value)) { + if (b.value.equals{{#isString}}{{#useEnumCaseInsensitive}}IgnoreCase{{/useEnumCaseInsensitive}}{{/isString}}(value)) { return b; } } @@ -114,7 +117,7 @@ import java.net.URI; prefix = ""; } - return String.format("%s=%s", prefix, this.toString()); + return String.format(java.util.Locale.ROOT, "%s=%s", prefix, this.toString()); } {{/supportUrlQuery}} } diff --git a/sdks/java-v1/templates/modelInnerEnum.mustache b/sdks/java-v1/templates/modelInnerEnum.mustache index f87524099..d2a6f4f16 100644 --- a/sdks/java-v1/templates/modelInnerEnum.mustache +++ b/sdks/java-v1/templates/modelInnerEnum.mustache @@ -12,7 +12,7 @@ @XmlType(name="{{datatypeWithEnum}}") @XmlEnum({{dataType}}.class) {{/withXml}} - {{>additionalEnumTypeAnnotations}}public enum {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} { + {{>additionalEnumTypeAnnotations}}public enum {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}{{#vendorExtensions.x-implements}}{{#-first}} implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { {{#allowableValues}} {{#enumVars}} {{#enumDescription}} @@ -21,7 +21,7 @@ */ {{/enumDescription}} {{#withXml}} - @XmlEnumValue({{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}{{{value}}}{{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}) + @XmlEnumValue({{#lambda.javaStringLiteral}}{{{rawValue}}}{{/lambda.javaStringLiteral}}) {{/withXml}} {{{name}}}({{^isUri}}{{dataType}}.valueOf({{/isUri}}{{{value}}}{{^isUri}}){{/isUri}}){{^-last}}, {{/-last}}{{#-last}};{{/-last}} @@ -51,7 +51,7 @@ {{/jackson}} public static {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} fromValue({{{dataType}}} value) { for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) { - if (b.value.{{^isString}}equals{{/isString}}{{#isString}}{{#useEnumCaseInsensitive}}equalsIgnoreCase{{/useEnumCaseInsensitive}}{{^useEnumCaseInsensitive}}equals{{/useEnumCaseInsensitive}}{{/isString}}(value)) { + if ({{#isString}}{{#useEnumCaseInsensitive}}b.value{{#dataFormat}}.toString(){{/dataFormat}}.equalsIgnoreCase({{#dataFormat}}value == null ? null : value.toString(){{/dataFormat}}{{^dataFormat}}value{{/dataFormat}}){{/useEnumCaseInsensitive}}{{^useEnumCaseInsensitive}}b.value.equals(value){{/useEnumCaseInsensitive}}{{/isString}}{{^isString}}b.value.equals(value){{/isString}}) { return b; } } diff --git a/sdks/java-v1/templates/nullable_var_annotations.mustache b/sdks/java-v1/templates/nullable_var_annotations.mustache index 7dbaf4029..7b13c89bc 100644 --- a/sdks/java-v1/templates/nullable_var_annotations.mustache +++ b/sdks/java-v1/templates/nullable_var_annotations.mustache @@ -1 +1 @@ -{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}} \ No newline at end of file +{{#lambda.jSpecifyNullable}}{{^useJspecify}}{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}}{{/useJspecify}}{{#useJspecify}}{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable {{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable {{/required}}{{/useJspecify}}{{/lambda.jSpecifyNullable}} \ No newline at end of file diff --git a/sdks/java-v1/templates/oneof_interface.mustache b/sdks/java-v1/templates/oneof_interface.mustache index d67277274..71888430c 100644 --- a/sdks/java-v1/templates/oneof_interface.mustache +++ b/sdks/java-v1/templates/oneof_interface.mustache @@ -1,5 +1,8 @@ -{{>additionalOneOfTypeAnnotations}}{{>generatedAnnotation}}{{>typeInfoAnnotation}}{{>xmlAnnotation}} -public interface {{classname}} {{#vendorExtensions.x-implements}}{{#-first}}extends {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} { +{{>additionalOneOfTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{^discriminator}}{{^useDeductionForOneOfInterfaces}}{{>typeInfoAnnotation}}{{/useDeductionForOneOfInterfaces}}{{/discriminator}}{{>deductionAnnotation}}{{>xmlAnnotation}} +{{#vendorExtensions.x-class-extra-annotation}} +{{{.}}} +{{/vendorExtensions.x-class-extra-annotation}} +public {{>sealed}}interface {{classname}} {{#vendorExtensions.x-implements}}{{#-first}}extends {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{#-last}} {{/-last}}{{/vendorExtensions.x-implements}}{{>permits}}{ {{#discriminator}} public {{propertyType}} {{propertyGetter}}(); {{/discriminator}} diff --git a/sdks/java-v1/templates/pojo.mustache b/sdks/java-v1/templates/pojo.mustache index 09482dd66..b2e3ae607 100644 --- a/sdks/java-v1/templates/pojo.mustache +++ b/sdks/java-v1/templates/pojo.mustache @@ -24,10 +24,13 @@ @JsonTypeName("{{name}}") {{/hasDiscriminatorWithNonEmptyMapping}} {{/isClassnameSanitized}} +{{#additionalPropertiesType}} +@JsonFormat(shape=JsonFormat.Shape.OBJECT) +{{/additionalPropertiesType}} {{/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}} @@ -38,10 +41,12 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#isEnum}} {{^isContainer}} {{>modelInnerEnum}} + {{/isContainer}} {{#isContainer}} {{#mostInnerItems}} {{>modelInnerEnum}} + {{/mostInnerItems}} {{/isContainer}} {{/isEnum}} @@ -65,9 +70,14 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#gson}} @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} - {{>nullable_var_annotations}} + {{^isDiscriminator}} + {{>nullable_var_annotations}}{{! prevent indent}} + {{/isDiscriminator}} + {{#isDiscriminator}} + // The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation + {{/isDiscriminator}} {{#vendorExtensions.x-field-extra-annotation}} - {{{vendorExtensions.x-field-extra-annotation}}} + {{{.}}} {{/vendorExtensions.x-field-extra-annotation}} {{#vendorExtensions.x-is-jackson-optional-nullable}} {{#isContainer}} @@ -108,7 +118,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#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}} + {{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}} {{/readOnlyVars}} ) { this(); @@ -123,7 +133,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens /** * 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}}) { + public {{classname}}({{#vendorExtensions.x-java-all-args-constructor-vars}}{{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}){{/jackson}} {{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) { {{#parent}} super({{#parentVars}}{{name}}{{^-last}}, {{/-last}}{{/parentVars}}); {{/parent}} @@ -144,8 +154,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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}}); + if (this.{{name}} == null || !this.{{name}}.isPresent() || this.{{name}}.get() == null) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of(new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>()); } try { this.{{name}}.get().add({{name}}Item); @@ -156,7 +166,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/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}} = new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}ArrayList{{/uniqueItems}}<>(); } this.{{name}}.add({{name}}Item); return this; @@ -167,8 +177,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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}}); + if (this.{{name}} == null || !this.{{name}}.isPresent() || this.{{name}}.get() == null) { + this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of(new HashMap<>()); } try { this.{{name}}.get().put(key, {{name}}Item); @@ -180,7 +190,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^vendorExtensions.x-is-jackson-optional-nullable}} {{^required}} if (this.{{name}} == null) { - this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}}; + this.{{name}} = new HashMap<>(); } {{/required}} this.{{name}}.put(key, {{name}}Item); @@ -211,18 +221,19 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#deprecated}} @Deprecated {{/deprecated}} - {{>nullable_var_annotations}} + {{>nullable_var_annotations}}{{! prevent indent}} {{#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}}}") + @Schema({{#example}}example = "{{{.}}}", {{/example}}requiredMode = {{#required}}Schema.RequiredMode.REQUIRED{{/required}}{{^required}}Schema.RequiredMode.NOT_REQUIRED{{/required}}, description = "{{{description}}}"{{#isNullable}}, nullable = true{{/isNullable}}) {{/swagger2AnnotationLibrary}} {{#vendorExtensions.x-extra-annotation}} {{{vendorExtensions.x-extra-annotation}}} @@ -248,11 +259,12 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#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}}) + @JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}) {{#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}}; @@ -272,6 +284,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/isReadOnly}} {{/vars}} +{{>additional_properties}} + {{#parent}} {{#readWriteVars}} {{#isOverridden}} @@ -349,10 +363,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens * (except the first line). */ private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); + return o == null ? "null" : o.toString().replace("\n", "\n "); } {{#supportUrlQuery}} @@ -397,8 +408,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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), + joiner.add(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%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 @@ -412,8 +423,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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), + joiner.add(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%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 @@ -430,8 +441,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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)))); + joiner.add(_item.toUrlQueryString(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, i, containerSuffix)))); } } i++; @@ -441,8 +452,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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)))); + joiner.add({{getter}}().get(i).toUrlQueryString(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, i, containerSuffix)))); } } } @@ -455,8 +466,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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), + joiner.add(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%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 @@ -472,8 +483,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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), + joiner.add(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%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 @@ -492,8 +503,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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), + joiner.add(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%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 @@ -506,8 +517,8 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens 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)))); + joiner.add({{getter}}().get(_key).toUrlQueryString(String.format(java.util.Locale.ROOT, "%s{{baseName}}%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, _key, containerSuffix)))); } } } @@ -517,7 +528,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#isPrimitiveType}} if ({{getter}}() != null) { try { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf({{{getter}}}()), "UTF-8").replaceAll("\\+", "%20"))); + joiner.add(String.format(java.util.Locale.ROOT, "%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); @@ -533,7 +544,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{^isModel}} if ({{getter}}() != null) { try { - joiner.add(String.format("%s{{{baseName}}}%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf({{{getter}}}()), "UTF-8").replaceAll("\\+", "%20"))); + joiner.add(String.format(java.util.Locale.ROOT, "%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); @@ -609,7 +620,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{/parcelableModel}} {{#generateBuilders}} - {{>javaBuilder}} + {{>javaBuilder}}{{! prevent indent}} {{/generateBuilders}} } diff --git a/sdks/java-v1/templates/pom.mustache b/sdks/java-v1/templates/pom.mustache index c46bc598e..8d6d35de5 100644 --- a/sdks/java-v1/templates/pom.mustache +++ b/sdks/java-v1/templates/pom.mustache @@ -266,7 +266,7 @@ com.fasterxml.jackson.core jackson-annotations - ${jackson-version} + ${jackson-annotations-version} com.fasterxml.jackson.core @@ -373,8 +373,9 @@ 2.2.15 {{/swagger2AnnotationLibrary}} 1.19.4 - 2.17.1 - 2.17.1 + 2.21.6 + 2.21 + 2.21.6 {{#useJakartaEe}} 2.1.1 3.0.2 diff --git a/sdks/java-v1/templates/typeInfoAnnotation.mustache b/sdks/java-v1/templates/typeInfoAnnotation.mustache index 07f77c75c..04f97320f 100644 --- a/sdks/java-v1/templates/typeInfoAnnotation.mustache +++ b/sdks/java-v1/templates/typeInfoAnnotation.mustache @@ -1,5 +1,6 @@ {{#jackson}} +{{^disableDiscriminatorJsonIgnoreProperties}} @JsonIgnoreProperties( {{^useCustomTemplateCode}} value = "{{{discriminator.propertyBaseName}}}", // ignore manually set {{{discriminator.propertyBaseName}}}, it will be automatically generated by Jackson during serialization @@ -11,11 +12,15 @@ {{/useCustomTemplateCode}} ) {{^useCustomTemplateCode}} -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true{{#discriminator.vendorExtensions.x-jackson-resolved-default-impl}}, defaultImpl = {{discriminator.vendorExtensions.x-jackson-resolved-default-impl}}.class{{/discriminator.vendorExtensions.x-jackson-resolved-default-impl}}) {{/useCustomTemplateCode}} {{#useCustomTemplateCode}} @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true) {{/useCustomTemplateCode}} +{{/disableDiscriminatorJsonIgnoreProperties}} +{{#disableDiscriminatorJsonIgnoreProperties}} +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true{{#discriminator.vendorExtensions.x-jackson-resolved-default-impl}}, defaultImpl = {{discriminator.vendorExtensions.x-jackson-resolved-default-impl}}.class{{/discriminator.vendorExtensions.x-jackson-resolved-default-impl}}) +{{/disableDiscriminatorJsonIgnoreProperties}} {{#discriminator.mappedModels}} {{#-first}} @JsonSubTypes({